summaryrefslogtreecommitdiff
path: root/lisp/hfy-cmap.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-03-04 17:38:43 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-03-04 17:39:53 -0800
commit0e10b6fce7568077797c5a16cd2a584a8dcba46e (patch)
treeef351fd4b5c32f89acc67573926b13db661a5c94 /lisp/hfy-cmap.el
parentbd6c1976fba03bd2e4ca0a52cea562c8ecf23ef8 (diff)
downloademacs-0e10b6fce7568077797c5a16cd2a584a8dcba46e.tar.gz
Spelling fixes (Bug#10068)
* lisp/gnus/gnus-score.el (gnus-score-find-favorite-words): Rename from gnus-score-find-favourite-words. * lisp/hfy-cmap.el (hfy-fallback-color-map) (hfy-rgb-txt-color-map, hfy-fallback-color-values): * lisp/htmlfontify.el (hfy-color-vals, hfy-color): Rename from names that used 'colour' instead of 'color'.
Diffstat (limited to 'lisp/hfy-cmap.el')
-rw-r--r--lisp/hfy-cmap.el35
1 files changed, 22 insertions, 13 deletions
diff --git a/lisp/hfy-cmap.el b/lisp/hfy-cmap.el
index 6dea345f286..4ec24cea70a 100644
--- a/lisp/hfy-cmap.el
+++ b/lisp/hfy-cmap.el
@@ -1,15 +1,15 @@
-;;; hfy-cmap.el --- Fallback colour name -> rgb mapping for `htmlfontify'
+;;; hfy-cmap.el --- Fallback color name -> rgb mapping for `htmlfontify'
;; Copyright (C) 2002-2003, 2009-2018 Free Software Foundation, Inc.
;; Emacs Lisp Archive Entry
;; Package: htmlfontify
;; Filename: hfy-cmap.el
-;; Keywords: colour, rgb
+;; Keywords: color, rgb
;; Author: Vivek Dasmohapatra <vivek@etla.org>
;; Maintainer: Vivek Dasmohapatra <vivek@etla.org>
;; Created: 2002-01-20
-;; Description: fallback code for colour name -> rgb mapping
+;; Description: fallback code for color name -> rgb mapping
;; URL: http://rtfm.etla.org/emacs/htmlfontify/
;; Last-Updated: Sat 2003-02-15 03:49:32 +0000
@@ -32,7 +32,7 @@
;;; Code:
-(defconst hfy-fallback-colour-map
+(defconst hfy-fallback-color-map
'(("snow" 65535 64250 64250)
("ghost white" 63736 63736 65535)
("GhostWhite" 63736 63736 65535)
@@ -785,8 +785,14 @@
("DarkRed" 35723 0 0)
("light green" 37008 61166 37008)
("LightGreen" 37008 61166 37008)) )
+(define-obsolete-variable-alias
+ 'hfy-fallback-colour-map
+ 'hfy-fallback-color-map "27.1")
-(defvar hfy-rgb-txt-colour-map nil)
+(defvar hfy-rgb-txt-color-map nil)
+(define-obsolete-variable-alias
+ 'hfy-rgb-txt-colour-map
+ 'hfy-rgb-txt-color-map "27.1")
(defvar hfy-rgb-load-path
(list "/etc/X11"
@@ -806,8 +812,8 @@
(defun htmlfontify-load-rgb-file (&optional file)
"Load an X11 style rgb.txt FILE.
Search `hfy-rgb-load-path' if FILE is not specified.
-Loads the variable `hfy-rgb-txt-colour-map', which is used by
-`hfy-fallback-colour-values'."
+Loads the variable `hfy-rgb-txt-color-map', which is used by
+`hfy-fallback-color-values'."
(interactive
(list
(read-file-name "rgb.txt (equivalent) file: " "" nil t (hfy-rgb-file))))
@@ -822,25 +828,28 @@ Loads the variable `hfy-rgb-txt-colour-map', which is used by
(htmlfontify-unload-rgb-file)
(while (/= end-of-rgb 1)
(if (looking-at hfy-rgb-regex)
- (setq hfy-rgb-txt-colour-map
+ (setq hfy-rgb-txt-color-map
(cons (list (match-string 4)
(string-to-number (match-string 1))
(string-to-number (match-string 2))
(string-to-number (match-string 3)))
- hfy-rgb-txt-colour-map)) )
+ hfy-rgb-txt-color-map)) )
(setq end-of-rgb (forward-line)))
(kill-buffer rgb-buffer)))))
(defun htmlfontify-unload-rgb-file ()
"Unload the current color name -> rgb translation map."
(interactive)
- (setq hfy-rgb-txt-colour-map nil))
+ (setq hfy-rgb-txt-color-map nil))
;;;###autoload
-(defun hfy-fallback-colour-values (colour-string)
+(defun hfy-fallback-color-values (color-string)
"Use a fallback method for obtaining the rgb values for a color."
- (cdr (assoc-string colour-string (or hfy-rgb-txt-colour-map
- hfy-fallback-colour-map))) )
+ (cdr (assoc-string color-string (or hfy-rgb-txt-color-map
+ hfy-fallback-color-map))) )
+(define-obsolete-function-alias
+ 'hfy-fallback-colour-values
+ 'hfy-fallback-color-values "27.1")
(provide 'hfy-cmap)