Changeset 24544 for lang/elisp
- Timestamp:
- 11/21/08 11:25:17 (5 years ago)
- Files:
-
- 1 modified
-
lang/elisp/outputz/outputz.el (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/outputz/outputz.el
r24543 r24544 39 39 ;; 40 40 41 ;;; Change Log: 42 43 ;; 2008-11-21: 44 ;; * Applied a patch from id:hayamiz++. Some bugs are fixed. 45 ;; http://d.hatena.ne.jp/hayamiz/20081121/1227228535 46 ;; * `outpuz-url' now can be format template. `outputz' command adds 47 ;; `major-mode' string into url when posting. 48 ;; http://d.hatena.ne.jp/higepon/20081120/1227192709 49 ;; 50 ;; 2008-11-20: 51 ;; * Initial import 52 41 53 (defvar outputz-key nil) 42 54 (defvar outputz-url nil) … … 58 70 (dolist (path load-path) 59 71 (when (or (file-exists-p (expand-file-name "mailcap.el" path)) 60 (file-exists-p (expand-file-name "mailcap.elc" path)))61 (load (expand-file-name "mailcap" path)))72 (file-exists-p (expand-file-name "mailcap.elc" path))) 73 (load (expand-file-name "mailcap" path))) 62 74 (when (fboundp 'mailcap-parse-mailcaps) 63 (return)))))75 (return))))) 64 76 65 77 (require 'easy-mmode) … … 83 95 84 96 (add-hook 'find-file-hook 85 (lambda ()86 (when outputz-mode87 (setq outputz-count88 (max 0 (- (point-max) (point-min)))))))97 (lambda () 98 (when outputz-mode 99 (setq outputz-count 100 (max 0 (- (point-max) (point-min))))))) 89 101 90 102 (add-hook 'after-save-hook 'outputz) … … 96 108 (when (and (> current-count 0) 97 109 (> current-count outputz-count)) 98 (outputz-post (- current-count outputz-count)) 99 ) 110 (outputz-post (- current-count outputz-count))) 100 111 (setq outputz-count current-count)))) 101 112 … … 107 118 (url-request-data 108 119 (concat "key=" outputz-key 109 "&uri=" outputz-uri120 "&uri=" (format outputz-uri major-mode) 110 121 "&size=" (int-to-string count)))) 111 122 (url-retrieve url 'outputz-callback)))
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)