aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-03-04 17:38:43 -0800
committerPaul Eggert2018-03-04 17:39:53 -0800
commit0e10b6fce7568077797c5a16cd2a584a8dcba46e (patch)
treeef351fd4b5c32f89acc67573926b13db661a5c94
parentbd6c1976fba03bd2e4ca0a52cea562c8ecf23ef8 (diff)
downloademacs-0e10b6fce7568077797c5a16cd2a584a8dcba46e.tar.gz
emacs-0e10b6fce7568077797c5a16cd2a584a8dcba46e.zip
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'.
-rw-r--r--doc/misc/gnus.texi4
-rw-r--r--etc/NEWS10
-rw-r--r--lisp/gnus/gnus-score.el7
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/hfy-cmap.el35
-rw-r--r--lisp/htmlfontify.el48
-rw-r--r--lisp/net/tramp-adb.el2
7 files changed, 66 insertions, 42 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 8a0b6319363..cc4b2342be6 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -19471,8 +19471,8 @@ score file and edit it.
19471 19471
19472@item V w 19472@item V w
19473@kindex V w @r{(Summary)} 19473@kindex V w @r{(Summary)}
19474@findex gnus-score-find-favourite-words 19474@findex gnus-score-find-favorite-words
19475List words used in scoring (@code{gnus-score-find-favourite-words}). 19475List words used in scoring (@code{gnus-score-find-favorite-words}).
19476 19476
19477@item V R 19477@item V R
19478@kindex V R @r{(Summary)} 19478@kindex V R @r{(Summary)}
diff --git a/etc/NEWS b/etc/NEWS
index 08c7e7eb56c..c998ad6663e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -142,6 +142,16 @@ This can be controlled by the new `ecomplete-sort-predicate' variable.
142*** The 'ecompleterc' file is now placed in ~/.emacs.d/ecompleterc by default 142*** The 'ecompleterc' file is now placed in ~/.emacs.d/ecompleterc by default
143Of course it will still find it if you have it in ~/.ecompleterc 143Of course it will still find it if you have it in ~/.ecompleterc
144 144
145** Gnus
146*** The function 'gnus-score-find-favorite-words' has been renamed
147from 'gnus-score-find-favourite-words'.
148
149** Htmlfontify
150*** The functions 'hfy-color', 'hfy-color-vals' and
151'hfy-fallback-color-values' and the variables 'hfy-fallback-color-map'
152and 'hfy-rgb-txt-color-map' have been renamed from names that used
153'colour' instead of 'color'.
154
145** Smtpmail 155** Smtpmail
146Authentication mechanisms can be added via external packages, by 156Authentication mechanisms can be added via external packages, by
147defining new cl-defmethod of smtpmail-try-auth-method. 157defining new cl-defmethod of smtpmail-try-auth-method.
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index ec07d1ab15a..ad11ff4a5c5 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -514,7 +514,7 @@ of the last successful match.")
514 "f" gnus-score-edit-file 514 "f" gnus-score-edit-file
515 "F" gnus-score-flush-cache 515 "F" gnus-score-flush-cache
516 "t" gnus-score-find-trace 516 "t" gnus-score-find-trace
517 "w" gnus-score-find-favourite-words) 517 "w" gnus-score-find-favorite-words)
518 518
519;; Summary score file commands 519;; Summary score file commands
520 520
@@ -2517,7 +2517,7 @@ the score file and its full name, including the directory.")
2517 (set-buffer gnus-summary-buffer) 2517 (set-buffer gnus-summary-buffer)
2518 (setq gnus-newsgroup-scored old-scored))) 2518 (setq gnus-newsgroup-scored old-scored)))
2519 2519
2520(defun gnus-score-find-favourite-words () 2520(defun gnus-score-find-favorite-words ()
2521 "List words used in scoring." 2521 "List words used in scoring."
2522 (interactive) 2522 (interactive)
2523 (let ((alists (gnus-score-load-files (gnus-all-score-files))) 2523 (let ((alists (gnus-score-load-files (gnus-all-score-files)))
@@ -2553,6 +2553,9 @@ the score file and its full name, including the directory.")
2553 (pop rules)) 2553 (pop rules))
2554 (goto-char (point-min)) 2554 (goto-char (point-min))
2555 (gnus-configure-windows 'score-words)))) 2555 (gnus-configure-windows 'score-words))))
2556(define-obsolete-function-alias
2557 'gnus-score-find-favourite-words
2558 'gnus-score-find-favorite-words "27.1")
2556 2559
2557(defun gnus-summary-rescore () 2560(defun gnus-summary-rescore ()
2558 "Redo the entire scoring process in the current summary." 2561 "Redo the entire scoring process in the current summary."
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index a28c00be946..468f2b195e2 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -2370,7 +2370,7 @@ increase the score of each group you read."
2370 ["Edit current score file" gnus-score-edit-current-scores t] 2370 ["Edit current score file" gnus-score-edit-current-scores t]
2371 ["Edit score file..." gnus-score-edit-file t] 2371 ["Edit score file..." gnus-score-edit-file t]
2372 ["Trace score" gnus-score-find-trace t] 2372 ["Trace score" gnus-score-find-trace t]
2373 ["Find words" gnus-score-find-favourite-words t] 2373 ["Find words" gnus-score-find-favorite-words t]
2374 ["Rescore buffer" gnus-summary-rescore t] 2374 ["Rescore buffer" gnus-summary-rescore t]
2375 ["Increase score..." gnus-summary-increase-score t] 2375 ["Increase score..." gnus-summary-increase-score t]
2376 ["Lower score..." gnus-summary-lower-score t])))) 2376 ["Lower score..." gnus-summary-lower-score t]))))
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 @@
1;;; hfy-cmap.el --- Fallback colour name -> rgb mapping for `htmlfontify' 1;;; hfy-cmap.el --- Fallback color name -> rgb mapping for `htmlfontify'
2 2
3;; Copyright (C) 2002-2003, 2009-2018 Free Software Foundation, Inc. 3;; Copyright (C) 2002-2003, 2009-2018 Free Software Foundation, Inc.
4 4
5;; Emacs Lisp Archive Entry 5;; Emacs Lisp Archive Entry
6;; Package: htmlfontify 6;; Package: htmlfontify
7;; Filename: hfy-cmap.el 7;; Filename: hfy-cmap.el
8;; Keywords: colour, rgb 8;; Keywords: color, rgb
9;; Author: Vivek Dasmohapatra <vivek@etla.org> 9;; Author: Vivek Dasmohapatra <vivek@etla.org>
10;; Maintainer: Vivek Dasmohapatra <vivek@etla.org> 10;; Maintainer: Vivek Dasmohapatra <vivek@etla.org>
11;; Created: 2002-01-20 11;; Created: 2002-01-20
12;; Description: fallback code for colour name -> rgb mapping 12;; Description: fallback code for color name -> rgb mapping
13;; URL: http://rtfm.etla.org/emacs/htmlfontify/ 13;; URL: http://rtfm.etla.org/emacs/htmlfontify/
14;; Last-Updated: Sat 2003-02-15 03:49:32 +0000 14;; Last-Updated: Sat 2003-02-15 03:49:32 +0000
15 15
@@ -32,7 +32,7 @@
32 32
33;;; Code: 33;;; Code:
34 34
35(defconst hfy-fallback-colour-map 35(defconst hfy-fallback-color-map
36 '(("snow" 65535 64250 64250) 36 '(("snow" 65535 64250 64250)
37 ("ghost white" 63736 63736 65535) 37 ("ghost white" 63736 63736 65535)
38 ("GhostWhite" 63736 63736 65535) 38 ("GhostWhite" 63736 63736 65535)
@@ -785,8 +785,14 @@
785 ("DarkRed" 35723 0 0) 785 ("DarkRed" 35723 0 0)
786 ("light green" 37008 61166 37008) 786 ("light green" 37008 61166 37008)
787 ("LightGreen" 37008 61166 37008)) ) 787 ("LightGreen" 37008 61166 37008)) )
788(define-obsolete-variable-alias
789 'hfy-fallback-colour-map
790 'hfy-fallback-color-map "27.1")
788 791
789(defvar hfy-rgb-txt-colour-map nil) 792(defvar hfy-rgb-txt-color-map nil)
793(define-obsolete-variable-alias
794 'hfy-rgb-txt-colour-map
795 'hfy-rgb-txt-color-map "27.1")
790 796
791(defvar hfy-rgb-load-path 797(defvar hfy-rgb-load-path
792 (list "/etc/X11" 798 (list "/etc/X11"
@@ -806,8 +812,8 @@
806(defun htmlfontify-load-rgb-file (&optional file) 812(defun htmlfontify-load-rgb-file (&optional file)
807 "Load an X11 style rgb.txt FILE. 813 "Load an X11 style rgb.txt FILE.
808Search `hfy-rgb-load-path' if FILE is not specified. 814Search `hfy-rgb-load-path' if FILE is not specified.
809Loads the variable `hfy-rgb-txt-colour-map', which is used by 815Loads the variable `hfy-rgb-txt-color-map', which is used by
810`hfy-fallback-colour-values'." 816`hfy-fallback-color-values'."
811 (interactive 817 (interactive
812 (list 818 (list
813 (read-file-name "rgb.txt (equivalent) file: " "" nil t (hfy-rgb-file)))) 819 (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
822 (htmlfontify-unload-rgb-file) 828 (htmlfontify-unload-rgb-file)
823 (while (/= end-of-rgb 1) 829 (while (/= end-of-rgb 1)
824 (if (looking-at hfy-rgb-regex) 830 (if (looking-at hfy-rgb-regex)
825 (setq hfy-rgb-txt-colour-map 831 (setq hfy-rgb-txt-color-map
826 (cons (list (match-string 4) 832 (cons (list (match-string 4)
827 (string-to-number (match-string 1)) 833 (string-to-number (match-string 1))
828 (string-to-number (match-string 2)) 834 (string-to-number (match-string 2))
829 (string-to-number (match-string 3))) 835 (string-to-number (match-string 3)))
830 hfy-rgb-txt-colour-map)) ) 836 hfy-rgb-txt-color-map)) )
831 (setq end-of-rgb (forward-line))) 837 (setq end-of-rgb (forward-line)))
832 (kill-buffer rgb-buffer))))) 838 (kill-buffer rgb-buffer)))))
833 839
834(defun htmlfontify-unload-rgb-file () 840(defun htmlfontify-unload-rgb-file ()
835 "Unload the current color name -> rgb translation map." 841 "Unload the current color name -> rgb translation map."
836 (interactive) 842 (interactive)
837 (setq hfy-rgb-txt-colour-map nil)) 843 (setq hfy-rgb-txt-color-map nil))
838 844
839;;;###autoload 845;;;###autoload
840(defun hfy-fallback-colour-values (colour-string) 846(defun hfy-fallback-color-values (color-string)
841 "Use a fallback method for obtaining the rgb values for a color." 847 "Use a fallback method for obtaining the rgb values for a color."
842 (cdr (assoc-string colour-string (or hfy-rgb-txt-colour-map 848 (cdr (assoc-string color-string (or hfy-rgb-txt-color-map
843 hfy-fallback-colour-map))) ) 849 hfy-fallback-color-map))) )
850(define-obsolete-function-alias
851 'hfy-fallback-colour-values
852 'hfy-fallback-color-values "27.1")
844 853
845(provide 'hfy-cmap) 854(provide 'hfy-cmap)
846 855
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index dfa6bde2972..799da86cd44 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -584,22 +584,23 @@ therefore no longer care about) will be invalid at any time.\n
584 (if (memq elt set-b) (setq interq (cons elt interq)))) 584 (if (memq elt set-b) (setq interq (cons elt interq))))
585 interq)) 585 interq))
586 586
587(defun hfy-colour-vals (colour) 587(defun hfy-color-vals (color)
588 "Where COLOUR is a color name or #XXXXXX style triplet, return a 588 "Where COLOR is a color name or #XXXXXX style triplet, return a
589list of three (16 bit) rgb values for said color.\n 589list of three (16 bit) rgb values for said color.\n
590If a window system is unavailable, calls `hfy-fallback-colour-values'." 590If a window system is unavailable, calls `hfy-fallback-color-values'."
591 (if (string-match hfy-triplet-regex colour) 591 (if (string-match hfy-triplet-regex color)
592 (mapcar 592 (mapcar
593 (lambda (x) (* (string-to-number (match-string x colour) 16) 257)) 593 (lambda (x) (* (string-to-number (match-string x color) 16) 257))
594 '(1 2 3)) 594 '(1 2 3))
595 ;;(message ">> %s" colour) 595 ;;(message ">> %s" color)
596 (if window-system 596 (if window-system
597 (if (fboundp 'color-values) 597 (if (fboundp 'color-values)
598 (color-values colour) 598 (color-values color)
599 ;;(message "[%S]" window-system) 599 ;;(message "[%S]" window-system)
600 (x-color-values colour)) 600 (x-color-values color))
601 ;; blarg - tty colors are no good - go fetch some X colors: 601 ;; blarg - tty colors are no good - go fetch some X colors:
602 (hfy-fallback-colour-values colour)))) 602 (hfy-fallback-color-values color))))
603(define-obsolete-function-alias 'hfy-colour-vals 'hfy-color-vals "27.1")
603 604
604(defvar hfy-cperl-mode-kludged-p nil) 605(defvar hfy-cperl-mode-kludged-p nil)
605 606
@@ -738,7 +739,7 @@ FILE is the name of the file being rendered, in case it is needed."
738 "Replace the end of a CSS style declaration STYLE-STRING with the contents 739 "Replace the end of a CSS style declaration STYLE-STRING with the contents
739of the variable `hfy-src-doc-link-style', removing text matching the regex 740of the variable `hfy-src-doc-link-style', removing text matching the regex
740`hfy-src-doc-link-unstyle' first, if necessary." 741`hfy-src-doc-link-unstyle' first, if necessary."
741 ;;(message "hfy-colour-vals");;DBUG 742 ;;(message "hfy-color-vals");;DBUG
742 (if (string-match hfy-src-doc-link-unstyle style-string) 743 (if (string-match hfy-src-doc-link-unstyle style-string)
743 (setq style-string (replace-match "" 'fixed-case 'literal style-string))) 744 (setq style-string (replace-match "" 'fixed-case 'literal style-string)))
744 (if (and (not (string-match hfy-src-doc-link-style style-string)) 745 (if (and (not (string-match hfy-src-doc-link-style style-string))
@@ -751,19 +752,19 @@ of the variable `hfy-src-doc-link-style', removing text matching the regex
751 752
752;; utility functions - cast emacs style specification values into their 753;; utility functions - cast emacs style specification values into their
753;; css2 equivalents: 754;; css2 equivalents:
754(defun hfy-triplet (colour) 755(defun hfy-triplet (color)
755 "Takes a COLOUR name (string) and return a CSS rgb(R, G, B) triplet string. 756 "Takes a COLOR name (string) and return a CSS rgb(R, G, B) triplet string.
756Uses the definition of \"white\" to map the numbers to the 0-255 range, so 757Uses the definition of \"white\" to map the numbers to the 0-255 range, so
757if you've redefined white, (esp. if you've redefined it to have a triplet 758if you've redefined white, (esp. if you've redefined it to have a triplet
758member lower than that of the color you are processing) strange things 759member lower than that of the color you are processing) strange things
759may happen." 760may happen."
760 ;;(message "hfy-colour-vals");;DBUG 761 ;;(message "hfy-color-vals");;DBUG
761 ;; TODO? Can we do somehow do better than this? 762 ;; TODO? Can we do somehow do better than this?
762 (cond 763 (cond
763 ((equal colour "unspecified-fg") (setq colour "black")) 764 ((equal color "unspecified-fg") (setq color "black"))
764 ((equal colour "unspecified-bg") (setq colour "white"))) 765 ((equal color "unspecified-bg") (setq color "white")))
765 (let ((white (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals "white"))) 766 (let ((white (mapcar (lambda (I) (float (1+ I))) (hfy-color-vals "white")))
766 (rgb16 (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals colour)))) 767 (rgb16 (mapcar (lambda (I) (float (1+ I))) (hfy-color-vals color))))
767 (if rgb16 768 (if rgb16
768 ;;(apply 'format "rgb(%d, %d, %d)" 769 ;;(apply 'format "rgb(%d, %d, %d)"
769 ;; Use #rrggbb instead, it is smaller 770 ;; Use #rrggbb instead, it is smaller
@@ -774,8 +775,9 @@ may happen."
774 '(0 1 2)))))) 775 '(0 1 2))))))
775 776
776(defun hfy-family (family) (list (cons "font-family" family))) 777(defun hfy-family (family) (list (cons "font-family" family)))
777(defun hfy-bgcol (colour) (list (cons "background" (hfy-triplet colour)))) 778(defun hfy-bgcol (color) (list (cons "background" (hfy-triplet color))))
778(defun hfy-colour (colour) (list (cons "color" (hfy-triplet colour)))) 779(defun hfy-color (color) (list (cons "color" (hfy-triplet color))))
780(define-obsolete-function-alias 'hfy-colour 'hfy-color "27.1")
779(defun hfy-width (width) (list (cons "font-stretch" (symbol-name width)))) 781(defun hfy-width (width) (list (cons "font-stretch" (symbol-name width))))
780 782
781(defcustom hfy-font-zoom 1.05 783(defcustom hfy-font-zoom 1.05
@@ -825,17 +827,17 @@ regular specifiers."
825 (let ((tag (car spec)) 827 (let ((tag (car spec))
826 (val (cadr spec))) 828 (val (cadr spec)))
827 (cons (cl-case tag 829 (cons (cl-case tag
828 (:color (cons "colour" val)) 830 (:color (cons "color" val))
829 (:width (cons "width" val)) 831 (:width (cons "width" val))
830 (:style (cons "style" val))) 832 (:style (cons "style" val)))
831 (hfy-box-to-border-assoc (cddr spec)))))) 833 (hfy-box-to-border-assoc (cddr spec))))))
832 834
833(defun hfy-box-to-style (spec) 835(defun hfy-box-to-style (spec)
834 (let* ((css (hfy-box-to-border-assoc spec)) 836 (let* ((css (hfy-box-to-border-assoc spec))
835 (col (cdr (assoc "colour" css))) 837 (col (cdr (assoc "color" css)))
836 (s (cdr (assoc "style" css)))) 838 (s (cdr (assoc "style" css))))
837 (list 839 (list
838 (if col (cons "border-color" (cdr (assoc "colour" css)))) 840 (if col (cons "border-color" (cdr (assoc "color" css))))
839 (cons "border-width" (format "%dpx" (or (cdr (assoc "width" css)) 1))) 841 (cons "border-width" (format "%dpx" (or (cdr (assoc "width" css)) 1)))
840 (cons "border-style" (cl-case s 842 (cons "border-style" (cl-case s
841 (released-button "outset") 843 (released-button "outset")
@@ -1014,7 +1016,7 @@ merged by the user - `hfy-flatten-style' should do this."
1014 (:width (hfy-width val)) 1016 (:width (hfy-width val))
1015 (:weight (hfy-weight val)) 1017 (:weight (hfy-weight val))
1016 (:slant (hfy-slant val)) 1018 (:slant (hfy-slant val))
1017 (:foreground (hfy-colour val)) 1019 (:foreground (hfy-color val))
1018 (:background (hfy-bgcol val)) 1020 (:background (hfy-bgcol val))
1019 (:box (hfy-box val)) 1021 (:box (hfy-box val))
1020 (:height (hfy-size val)) 1022 (:height (hfy-size val))
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index 7ac61b843ff..7a0ea71aee9 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -464,7 +464,7 @@ pass to the OPERATION."
464 (cond 464 (cond
465 ;; Support Android derived systems where "ls" command is provided 465 ;; Support Android derived systems where "ls" command is provided
466 ;; by GNU Coreutils. Force "ls" to print one column and set 466 ;; by GNU Coreutils. Force "ls" to print one column and set
467 ;; time-style to imitate other "ls" flavours. 467 ;; time-style to imitate other "ls" flavors.
468 ((tramp-adb-send-command-and-check 468 ((tramp-adb-send-command-and-check
469 vec "ls --time-style=long-iso /dev/null") 469 vec "ls --time-style=long-iso /dev/null")
470 "ls -1 --time-style=long-iso") 470 "ls -1 --time-style=long-iso")