diff options
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/Makefile.in | 2 | ||||
| -rw-r--r-- | lisp/hfy-cmap.el | 10 | ||||
| -rw-r--r-- | lisp/htmlfontify.el | 56 |
4 files changed, 43 insertions, 36 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index feb33ec4807..f23a9156c18 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -12,6 +12,17 @@ | |||
| 12 | (authors-canonical-file-name, authors-scan-el): | 12 | (authors-canonical-file-name, authors-scan-el): |
| 13 | Use authors-disambiguate-file-name. | 13 | Use authors-disambiguate-file-name. |
| 14 | 14 | ||
| 15 | * hfy-cmap.el (htmlfontify-load-rgb-file, hfy-fallback-colour-values): | ||
| 16 | Add autoload cookies. | ||
| 17 | (htmlfontify-unload-rgb-file, hfy-fallback-colour-values): Add docs. | ||
| 18 | (generated-autoload-file): Set file-local value to "htmlfontify.el". | ||
| 19 | * htmlfontify.el (caddr, cadddr): Remove fallback definitions. | ||
| 20 | They have definitions / compiler macros in cl.el. | ||
| 21 | (htmlfontify-load-rgb-file, hfy-fallback-colour-values): | ||
| 22 | Replace manual autoloads with generated ones. | ||
| 23 | (htmlfontify-unload-rgb-file): Remove autoload. | ||
| 24 | * Makefile.in (autoloads): Ensure htmlfontify.el is writable. | ||
| 25 | |||
| 15 | 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca> | 26 | 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 16 | 27 | ||
| 17 | * emacs-lisp/bytecomp.el (byte-compile-set-default): New function. | 28 | * emacs-lisp/bytecomp.el (byte-compile-set-default): New function. |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index e4a211399aa..fe7dcfa4e99 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -151,7 +151,7 @@ finder-data: doit | |||
| 151 | autoloads: $(LOADDEFS) doit | 151 | autoloads: $(LOADDEFS) doit |
| 152 | chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \ | 152 | chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \ |
| 153 | $(lisp)/emacs-lisp/cl-loaddefs.el $(lisp)/mail/rmail.el \ | 153 | $(lisp)/emacs-lisp/cl-loaddefs.el $(lisp)/mail/rmail.el \ |
| 154 | $(lisp)/dired.el $(lisp)/ibuffer.el | 154 | $(lisp)/dired.el $(lisp)/ibuffer.el $(lisp)/htmlfontify.el |
| 155 | cd $(lisp); $(setwins_almost); \ | 155 | cd $(lisp); $(setwins_almost); \ |
| 156 | echo Directories: $$wins; \ | 156 | echo Directories: $$wins; \ |
| 157 | $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins | 157 | $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
diff --git a/lisp/hfy-cmap.el b/lisp/hfy-cmap.el index fc5359e1f65..0eff90d2298 100644 --- a/lisp/hfy-cmap.el +++ b/lisp/hfy-cmap.el | |||
| @@ -803,6 +803,7 @@ | |||
| 803 | (defconst hfy-rgb-regex | 803 | (defconst hfy-rgb-regex |
| 804 | "^\\s-*\\([0-9]+\\)\\s-+\\([0-9]+\\)\\s-+\\([0-9]+\\)\\s-+\\(.+\\)\\s-*$") | 804 | "^\\s-*\\([0-9]+\\)\\s-+\\([0-9]+\\)\\s-+\\([0-9]+\\)\\s-+\\(.+\\)\\s-*$") |
| 805 | 805 | ||
| 806 | ;;;###autoload | ||
| 806 | (defun htmlfontify-load-rgb-file (&optional file) | 807 | (defun htmlfontify-load-rgb-file (&optional file) |
| 807 | "Load an X11 style rgb.txt FILE. | 808 | "Load an X11 style rgb.txt FILE. |
| 808 | Search `hfy-rgb-load-path' if FILE is not specified. | 809 | Search `hfy-rgb-load-path' if FILE is not specified. |
| @@ -832,14 +833,21 @@ Loads the variable `hfy-rgb-txt-colour-map', which is used by | |||
| 832 | (kill-buffer rgb-buffer))))) | 833 | (kill-buffer rgb-buffer))))) |
| 833 | 834 | ||
| 834 | (defun htmlfontify-unload-rgb-file () | 835 | (defun htmlfontify-unload-rgb-file () |
| 836 | "Unload the current color name -> rgb translation map." | ||
| 835 | (interactive) | 837 | (interactive) |
| 836 | (setq hfy-rgb-txt-colour-map nil)) | 838 | (setq hfy-rgb-txt-colour-map nil)) |
| 837 | 839 | ||
| 840 | ;;;###autoload | ||
| 838 | (defun hfy-fallback-colour-values (colour-string) | 841 | (defun hfy-fallback-colour-values (colour-string) |
| 842 | "Use a fallback method for obtaining the rgb values for a color." | ||
| 839 | (cdr (assoc-string colour-string (or hfy-rgb-txt-colour-map | 843 | (cdr (assoc-string colour-string (or hfy-rgb-txt-colour-map |
| 840 | hfy-fallback-colour-map))) ) | 844 | hfy-fallback-colour-map))) ) |
| 841 | 845 | ||
| 842 | (provide 'hfy-cmap) | 846 | (provide 'hfy-cmap) |
| 843 | ;;; hfy-cmap.el ends here | 847 | |
| 848 | ;; Local Variables: | ||
| 849 | ;; generated-autoload-file: "htmlfontify.el" | ||
| 850 | ;; End: | ||
| 844 | 851 | ||
| 845 | ;; arch-tag: dff7feea-add4-48ba-937c-e79ac40cec9b | 852 | ;; arch-tag: dff7feea-add4-48ba-937c-e79ac40cec9b |
| 853 | ;;; hfy-cmap.el ends here | ||
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el index 19aae590cb2..d4dd49ac17d 100644 --- a/lisp/htmlfontify.el +++ b/lisp/htmlfontify.el | |||
| @@ -90,39 +90,6 @@ | |||
| 90 | ;; (`font-lock-fontify-region') | 90 | ;; (`font-lock-fontify-region') |
| 91 | (require 'cus-edit) | 91 | (require 'cus-edit) |
| 92 | 92 | ||
| 93 | (eval-and-compile | ||
| 94 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 95 | ;; I want these - can't be bothered requiring all of cl though. | ||
| 96 | (if (not (fboundp 'caddr)) | ||
| 97 | (defun caddr (list) | ||
| 98 | "Return the `car' of the `cddr' of LIST." | ||
| 99 | (car (cddr list)))) | ||
| 100 | |||
| 101 | (if (not (fboundp 'cadddr)) | ||
| 102 | (defun cadddr (list) | ||
| 103 | "Return the `cadr' of the `cddr' of LIST." | ||
| 104 | (cadr (cddr list)))) | ||
| 105 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 106 | |||
| 107 | (autoload | ||
| 108 | 'htmlfontify-load-rgb-file | ||
| 109 | "hfy-cmap" | ||
| 110 | "Load an rgb.txt file for color name -> rgb translation purposes." | ||
| 111 | 'interactive) | ||
| 112 | |||
| 113 | (autoload | ||
| 114 | 'htmlfontify-unload-rgb-file | ||
| 115 | "hfy-cmap" | ||
| 116 | "Unload the current color name -> rgb translation map." | ||
| 117 | 'interactive) | ||
| 118 | |||
| 119 | (autoload | ||
| 120 | 'hfy-fallback-colour-values | ||
| 121 | "hfy-cmap" | ||
| 122 | "Use a fallback method for obtaining the rgb values for a color." | ||
| 123 | 'interactive) | ||
| 124 | ) | ||
| 125 | |||
| 126 | (defconst htmlfontify-version 0.21) | 93 | (defconst htmlfontify-version 0.21) |
| 127 | 94 | ||
| 128 | (defconst hfy-meta-tags | 95 | (defconst hfy-meta-tags |
| @@ -2368,7 +2335,28 @@ You may also want to set `hfy-page-header' and `hfy-page-footer'." | |||
| 2368 | (let ((file (hfy-initfile))) | 2335 | (let ((file (hfy-initfile))) |
| 2369 | (load file 'NOERROR nil nil) )) | 2336 | (load file 'NOERROR nil nil) )) |
| 2370 | 2337 | ||
| 2338 | |||
| 2339 | ;;;### (autoloads (hfy-fallback-colour-values htmlfontify-load-rgb-file) | ||
| 2340 | ;;;;;; "hfy-cmap" "hfy-cmap.el" "3de2db2d213813bb3afe170ffd66cdde") | ||
| 2341 | ;;; Generated autoloads from hfy-cmap.el | ||
| 2342 | |||
| 2343 | (autoload 'htmlfontify-load-rgb-file "hfy-cmap" "\ | ||
| 2344 | Load an X11 style rgb.txt FILE. | ||
| 2345 | Search `hfy-rgb-load-path' if FILE is not specified. | ||
| 2346 | Loads the variable `hfy-rgb-txt-colour-map', which is used by | ||
| 2347 | `hfy-fallback-colour-values'. | ||
| 2348 | |||
| 2349 | \(fn &optional FILE)" t nil) | ||
| 2350 | |||
| 2351 | (autoload 'hfy-fallback-colour-values "hfy-cmap" "\ | ||
| 2352 | Use a fallback method for obtaining the rgb values for a color. | ||
| 2353 | |||
| 2354 | \(fn COLOUR-STRING)" nil nil) | ||
| 2355 | |||
| 2356 | ;;;*** | ||
| 2357 | |||
| 2358 | |||
| 2371 | (provide 'htmlfontify) | 2359 | (provide 'htmlfontify) |
| 2372 | ;;; htmlfontify.el ends here | ||
| 2373 | 2360 | ||
| 2374 | ;; arch-tag: 944e5e63-c81d-4baa-a82a-0275f9c30e61 | 2361 | ;; arch-tag: 944e5e63-c81d-4baa-a82a-0275f9c30e61 |
| 2362 | ;;; htmlfontify.el ends here | ||