diff options
| author | K. Handa | 2015-09-02 18:28:54 +0900 |
|---|---|---|
| committer | K. Handa | 2015-09-02 18:28:54 +0900 |
| commit | e7b62736aade24620c8ba6fa6bd467d017f16ee0 (patch) | |
| tree | d00a2203437a168b2414c6b73afc00a88d90b4b1 /lisp | |
| parent | ae08d073d7e2738580341534adc3c5924dc76860 (diff) | |
| parent | 30866274e21c5f0a1c5f60cfe290743e7d482349 (diff) | |
| download | emacs-e7b62736aade24620c8ba6fa6bd467d017f16ee0.tar.gz emacs-e7b62736aade24620c8ba6fa6bd467d017f16ee0.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp')
52 files changed, 302 insertions, 233 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el index 55229bc03fb..49d47a0519b 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -191,7 +191,7 @@ Each element in this list is a list of a character and a number that | |||
| 191 | will be stored in that character's register. | 191 | will be stored in that character's register. |
| 192 | 192 | ||
| 193 | For example, use this to define the golden ratio number: | 193 | For example, use this to define the golden ratio number: |
| 194 | (setq calculator-user-registers '((?g . 1.61803398875))) | 194 | (setq calculator-user-registers \\='((?g . 1.61803398875))) |
| 195 | before you load calculator." | 195 | before you load calculator." |
| 196 | :type '(repeat (cons character number)) | 196 | :type '(repeat (cons character number)) |
| 197 | :set (lambda (_ val) | 197 | :set (lambda (_ val) |
| @@ -214,7 +214,7 @@ Examples: | |||
| 214 | t as a prefix key: | 214 | t as a prefix key: |
| 215 | 215 | ||
| 216 | (setq calculator-user-operators | 216 | (setq calculator-user-operators |
| 217 | '((\"tf\" cl-to-fr (+ 32 (/ (* X 9) 5)) 1) | 217 | \\='((\"tf\" cl-to-fr (+ 32 (/ (* X 9) 5)) 1) |
| 218 | (\"tc\" fr-to-cl (/ (* (- X 32) 5) 9) 1) | 218 | (\"tc\" fr-to-cl (/ (* (- X 32) 5) 9) 1) |
| 219 | (\"tp\" kg-to-lb (/ X 0.453592) 1) | 219 | (\"tp\" kg-to-lb (/ X 0.453592) 1) |
| 220 | (\"tk\" lb-to-kg (* X 0.453592) 1) | 220 | (\"tk\" lb-to-kg (* X 0.453592) 1) |
| @@ -226,8 +226,8 @@ Examples: | |||
| 226 | version of `X' and `F' for a recursive call. Here is a [very | 226 | version of `X' and `F' for a recursive call. Here is a [very |
| 227 | inefficient] Fibonacci number calculation: | 227 | inefficient] Fibonacci number calculation: |
| 228 | 228 | ||
| 229 | (add-to-list 'calculator-user-operators | 229 | (add-to-list \\='calculator-user-operators |
| 230 | '(\"F\" fib | 230 | \\='(\"F\" fib |
| 231 | (if (<= TX 1) 1 (+ (F (- TX 1)) (F (- TX 2)))))) | 231 | (if (<= TX 1) 1 (+ (F (- TX 1)) (F (- TX 2)))))) |
| 232 | 232 | ||
| 233 | Note that this will be either postfix or prefix, according to | 233 | Note that this will be either postfix or prefix, according to |
diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el index e8d6077b165..a0d0def61a5 100644 --- a/lisp/calendar/cal-dst.el +++ b/lisp/calendar/cal-dst.el | |||
| @@ -82,7 +82,7 @@ list and for correcting times of day in the solar and lunar calculations. | |||
| 82 | 82 | ||
| 83 | For example, if daylight saving time ends on the last Sunday in October: | 83 | For example, if daylight saving time ends on the last Sunday in October: |
| 84 | 84 | ||
| 85 | '(calendar-nth-named-day -1 0 10 year) | 85 | (calendar-nth-named-day -1 0 10 year) |
| 86 | 86 | ||
| 87 | If the locale never uses daylight saving time, set this to nil." | 87 | If the locale never uses daylight saving time, set this to nil." |
| 88 | :type 'sexp | 88 | :type 'sexp |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index c35bd38bb64..07977afc397 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -550,12 +550,12 @@ For example, to display the ISO week numbers: | |||
| 550 | 550 | ||
| 551 | (setq calendar-week-start-day 1 | 551 | (setq calendar-week-start-day 1 |
| 552 | calendar-intermonth-text | 552 | calendar-intermonth-text |
| 553 | '(propertize | 553 | \\='(propertize |
| 554 | (format \"%2d\" | 554 | (format \"%2d\" |
| 555 | (car | 555 | (car |
| 556 | (calendar-iso-from-absolute | 556 | (calendar-iso-from-absolute |
| 557 | (calendar-absolute-from-gregorian (list month day year))))) | 557 | (calendar-absolute-from-gregorian (list month day year))))) |
| 558 | 'font-lock-face 'font-lock-function-name-face)) | 558 | \\='font-lock-face \\='font-lock-function-name-face)) |
| 559 | 559 | ||
| 560 | See also `calendar-intermonth-header'." | 560 | See also `calendar-intermonth-header'." |
| 561 | :group 'calendar | 561 | :group 'calendar |
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index 225caa599fb..95d9d846466 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el | |||
| @@ -716,8 +716,8 @@ It might be useful to override this variable to add comment faces | |||
| 716 | specific to a major mode. For example, in jde mode: | 716 | specific to a major mode. For example, in jde mode: |
| 717 | 717 | ||
| 718 | \(defvar-mode-local jde-mode semantic-idle-summary-out-of-context-faces | 718 | \(defvar-mode-local jde-mode semantic-idle-summary-out-of-context-faces |
| 719 | (append (default-value 'semantic-idle-summary-out-of-context-faces) | 719 | (append (default-value \\='semantic-idle-summary-out-of-context-faces) |
| 720 | '(jde-java-font-lock-doc-tag-face | 720 | \\='(jde-java-font-lock-doc-tag-face |
| 721 | jde-java-font-lock-link-face | 721 | jde-java-font-lock-link-face |
| 722 | jde-java-font-lock-bold-face | 722 | jde-java-font-lock-bold-face |
| 723 | jde-java-font-lock-underline-face | 723 | jde-java-font-lock-underline-face |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 70308334183..08c1acdae86 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -1189,8 +1189,8 @@ and `defface'. | |||
| 1189 | 1189 | ||
| 1190 | For example, the MH-E package updates this alist as follows: | 1190 | For example, the MH-E package updates this alist as follows: |
| 1191 | 1191 | ||
| 1192 | (add-to-list 'customize-package-emacs-version-alist | 1192 | (add-to-list \\='customize-package-emacs-version-alist |
| 1193 | '(MH-E (\"6.0\" . \"22.1\") (\"6.1\" . \"22.1\") | 1193 | \\='(MH-E (\"6.0\" . \"22.1\") (\"6.1\" . \"22.1\") |
| 1194 | (\"7.0\" . \"22.1\") (\"7.1\" . \"22.1\") | 1194 | (\"7.0\" . \"22.1\") (\"7.1\" . \"22.1\") |
| 1195 | (\"7.2\" . \"22.1\") (\"7.3\" . \"22.1\") | 1195 | (\"7.2\" . \"22.1\") (\"7.3\" . \"22.1\") |
| 1196 | (\"7.4\" . \"22.1\") (\"8.0\" . \"22.1\"))) | 1196 | (\"7.4\" . \"22.1\") (\"8.0\" . \"22.1\"))) |
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index 38deeaeaaa9..ba50680e8b9 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el | |||
| @@ -568,7 +568,7 @@ may be bound to temporary variables which are introduced | |||
| 568 | automatically to preserve proper execution order of the arguments. | 568 | automatically to preserve proper execution order of the arguments. |
| 569 | For example: | 569 | For example: |
| 570 | 570 | ||
| 571 | (defsetf nth (n x) (v) `(setcar (nthcdr ,n ,x) ,v)) | 571 | (defsetf nth (n x) (v) \\=`(setcar (nthcdr ,n ,x) ,v)) |
| 572 | 572 | ||
| 573 | You can replace this form with `gv-define-setter'. | 573 | You can replace this form with `gv-define-setter'. |
| 574 | 574 | ||
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 84c07d96c8d..ad178c3a2c2 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -683,12 +683,12 @@ This class is not stored in the `parent' slot of a class vector." | |||
| 683 | "Make a new instance of CLASS based on INITARGS. | 683 | "Make a new instance of CLASS based on INITARGS. |
| 684 | For example: | 684 | For example: |
| 685 | 685 | ||
| 686 | (make-instance 'foo) | 686 | (make-instance \\='foo) |
| 687 | 687 | ||
| 688 | INITARGS is a property list with keywords based on the `:initarg' | 688 | INITARGS is a property list with keywords based on the `:initarg' |
| 689 | for each slot. For example: | 689 | for each slot. For example: |
| 690 | 690 | ||
| 691 | (make-instance 'foo :slot1 value1 :slotN valueN)") | 691 | (make-instance \\='foo :slot1 value1 :slotN valueN)") |
| 692 | 692 | ||
| 693 | (define-obsolete-function-alias 'constructor #'make-instance "25.1") | 693 | (define-obsolete-function-alias 'constructor #'make-instance "25.1") |
| 694 | 694 | ||
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index feffd5470c4..2dae86ebc95 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -337,8 +337,8 @@ and the face `eldoc-highlight-function-argument', if they are to have any | |||
| 337 | effect. | 337 | effect. |
| 338 | 338 | ||
| 339 | Major modes should modify this variable using `add-function', for example: | 339 | Major modes should modify this variable using `add-function', for example: |
| 340 | (add-function :before-until (local 'eldoc-documentation-function) | 340 | (add-function :before-until (local \\='eldoc-documentation-function) |
| 341 | #'foo-mode-eldoc-function) | 341 | #\\='foo-mode-eldoc-function) |
| 342 | so that the global documentation function (i.e. the default value of the | 342 | so that the global documentation function (i.e. the default value of the |
| 343 | variable) is taken into account if the major mode specific function does not | 343 | variable) is taken into account if the major mode specific function does not |
| 344 | return any documentation.") | 344 | return any documentation.") |
diff --git a/lisp/emacs-lisp/gv.el b/lisp/emacs-lisp/gv.el index bed9024e037..67609820a33 100644 --- a/lisp/emacs-lisp/gv.el +++ b/lisp/emacs-lisp/gv.el | |||
| @@ -218,7 +218,7 @@ return a Lisp form that does the assignment. | |||
| 218 | The first arg in ARGLIST (the one that receives VAL) receives an expression | 218 | The first arg in ARGLIST (the one that receives VAL) receives an expression |
| 219 | which can do arbitrary things, whereas the other arguments are all guaranteed | 219 | which can do arbitrary things, whereas the other arguments are all guaranteed |
| 220 | to be pure and copyable. Example use: | 220 | to be pure and copyable. Example use: |
| 221 | (gv-define-setter aref (v a i) `(aset ,a ,i ,v))" | 221 | (gv-define-setter aref (v a i) \\=`(aset ,a ,i ,v))" |
| 222 | (declare (indent 2) (debug (&define name sexp body))) | 222 | (declare (indent 2) (debug (&define name sexp body))) |
| 223 | `(gv-define-expander ,name | 223 | `(gv-define-expander ,name |
| 224 | (lambda (do &rest args) | 224 | (lambda (do &rest args) |
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index e91ce80bbe2..52e1647ede7 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -685,7 +685,7 @@ a cons (TYPE . COLOR), then both properties are affected." | |||
| 685 | (defvar cua--prefix-override-timer nil) | 685 | (defvar cua--prefix-override-timer nil) |
| 686 | (defvar cua--prefix-override-length nil) | 686 | (defvar cua--prefix-override-length nil) |
| 687 | 687 | ||
| 688 | (defun cua--prefix-override-replay (arg repeat) | 688 | (defun cua--prefix-override-replay (repeat) |
| 689 | (let* ((keys (this-command-keys)) | 689 | (let* ((keys (this-command-keys)) |
| 690 | (i (length keys)) | 690 | (i (length keys)) |
| 691 | (key (aref keys (1- i)))) | 691 | (key (aref keys (1- i)))) |
| @@ -705,21 +705,23 @@ a cons (TYPE . COLOR), then both properties are affected." | |||
| 705 | ;; Don't record this command | 705 | ;; Don't record this command |
| 706 | (setq this-command last-command) | 706 | (setq this-command last-command) |
| 707 | ;; Restore the prefix arg | 707 | ;; Restore the prefix arg |
| 708 | (setq prefix-arg arg) | 708 | ;; This should make it so that exchange-point-and-mark gets the prefix when |
| 709 | (reset-this-command-lengths) | 709 | ;; you do C-u C-x C-x C-x work (where the C-u is properly passed to the C-x |
| 710 | ;; C-x binding after the first C-x C-x was rewritten to just C-x). | ||
| 711 | (prefix-command-preserve-state) | ||
| 710 | ;; Push the key back on the event queue | 712 | ;; Push the key back on the event queue |
| 711 | (setq unread-command-events (cons key unread-command-events)))) | 713 | (setq unread-command-events (cons key unread-command-events)))) |
| 712 | 714 | ||
| 713 | (defun cua--prefix-override-handler (arg) | 715 | (defun cua--prefix-override-handler () |
| 714 | "Start timer waiting for prefix key to be followed by another key. | 716 | "Start timer waiting for prefix key to be followed by another key. |
| 715 | Repeating prefix key when region is active works as a single prefix key." | 717 | Repeating prefix key when region is active works as a single prefix key." |
| 716 | (interactive "P") | 718 | (interactive) |
| 717 | (cua--prefix-override-replay arg 0)) | 719 | (cua--prefix-override-replay 0)) |
| 718 | 720 | ||
| 719 | (defun cua--prefix-repeat-handler (arg) | 721 | (defun cua--prefix-repeat-handler () |
| 720 | "Repeating prefix key when region is active works as a single prefix key." | 722 | "Repeating prefix key when region is active works as a single prefix key." |
| 721 | (interactive "P") | 723 | (interactive) |
| 722 | (cua--prefix-override-replay arg 1)) | 724 | (cua--prefix-override-replay 1)) |
| 723 | 725 | ||
| 724 | (defun cua--prefix-copy-handler (arg) | 726 | (defun cua--prefix-copy-handler (arg) |
| 725 | "Copy region/rectangle, then replay last key." | 727 | "Copy region/rectangle, then replay last key." |
| @@ -742,7 +744,8 @@ Repeating prefix key when region is active works as a single prefix key." | |||
| 742 | (when (= (length (this-command-keys)) cua--prefix-override-length) | 744 | (when (= (length (this-command-keys)) cua--prefix-override-length) |
| 743 | (setq unread-command-events (cons 'timeout unread-command-events)) | 745 | (setq unread-command-events (cons 'timeout unread-command-events)) |
| 744 | (if prefix-arg | 746 | (if prefix-arg |
| 745 | (reset-this-command-lengths) | 747 | nil |
| 748 | ;; FIXME: Why? | ||
| 746 | (setq overriding-terminal-local-map nil)) | 749 | (setq overriding-terminal-local-map nil)) |
| 747 | (cua--select-keymaps))) | 750 | (cua--select-keymaps))) |
| 748 | 751 | ||
| @@ -755,8 +758,9 @@ Repeating prefix key when region is active works as a single prefix key." | |||
| 755 | (call-interactively this-command)) | 758 | (call-interactively this-command)) |
| 756 | 759 | ||
| 757 | (defun cua--keep-active () | 760 | (defun cua--keep-active () |
| 758 | (setq mark-active t | 761 | (when (mark t) |
| 759 | deactivate-mark nil)) | 762 | (setq mark-active t |
| 763 | deactivate-mark nil))) | ||
| 760 | 764 | ||
| 761 | (defun cua--deactivate (&optional now) | 765 | (defun cua--deactivate (&optional now) |
| 762 | (if (not now) | 766 | (if (not now) |
| @@ -944,7 +948,7 @@ See also `exchange-point-and-mark'." | |||
| 944 | (cond ((null cua-enable-cua-keys) | 948 | (cond ((null cua-enable-cua-keys) |
| 945 | (exchange-point-and-mark arg)) | 949 | (exchange-point-and-mark arg)) |
| 946 | (arg | 950 | (arg |
| 947 | (setq mark-active t)) | 951 | (when (mark t) (setq mark-active t))) |
| 948 | (t | 952 | (t |
| 949 | (let (mark-active) | 953 | (let (mark-active) |
| 950 | (exchange-point-and-mark) | 954 | (exchange-point-and-mark) |
| @@ -1212,25 +1216,28 @@ If ARG is the atom `-', scroll upward by nearly full screen." | |||
| 1212 | 1216 | ||
| 1213 | (defvar cua--keymaps-initialized nil) | 1217 | (defvar cua--keymaps-initialized nil) |
| 1214 | 1218 | ||
| 1215 | (defun cua--shift-control-prefix (prefix arg) | 1219 | (defun cua--shift-control-prefix (prefix) |
| 1216 | ;; handle S-C-x and S-C-c by emulating the fast double prefix function. | 1220 | ;; handle S-C-x and S-C-c by emulating the fast double prefix function. |
| 1217 | ;; Don't record this command | 1221 | ;; Don't record this command |
| 1218 | (setq this-command last-command) | 1222 | (setq this-command last-command) |
| 1219 | ;; Restore the prefix arg | 1223 | ;; Restore the prefix arg |
| 1220 | (setq prefix-arg arg) | 1224 | ;; This should make it so that exchange-point-and-mark gets the prefix when |
| 1221 | (reset-this-command-lengths) | 1225 | ;; you do C-u S-C-x C-x work (where the C-u is properly passed to the C-x |
| 1226 | ;; C-x binding after the first S-C-x was rewritten to just C-x). | ||
| 1227 | (prefix-command-preserve-state) | ||
| 1222 | ;; Activate the cua--prefix-repeat-keymap | 1228 | ;; Activate the cua--prefix-repeat-keymap |
| 1223 | (setq cua--prefix-override-timer 'shift) | 1229 | (setq cua--prefix-override-timer 'shift) |
| 1224 | ;; Push duplicate keys back on the event queue | 1230 | ;; Push duplicate keys back on the event queue |
| 1225 | (setq unread-command-events (cons prefix (cons prefix unread-command-events)))) | 1231 | (setq unread-command-events |
| 1232 | (cons prefix (cons prefix unread-command-events)))) | ||
| 1226 | 1233 | ||
| 1227 | (defun cua--shift-control-c-prefix (arg) | 1234 | (defun cua--shift-control-c-prefix () |
| 1228 | (interactive "P") | 1235 | (interactive) |
| 1229 | (cua--shift-control-prefix ?\C-c arg)) | 1236 | (cua--shift-control-prefix ?\C-c)) |
| 1230 | 1237 | ||
| 1231 | (defun cua--shift-control-x-prefix (arg) | 1238 | (defun cua--shift-control-x-prefix () |
| 1232 | (interactive "P") | 1239 | (interactive) |
| 1233 | (cua--shift-control-prefix ?\C-x arg)) | 1240 | (cua--shift-control-prefix ?\C-x)) |
| 1234 | 1241 | ||
| 1235 | (defun cua--init-keymaps () | 1242 | (defun cua--init-keymaps () |
| 1236 | ;; Cache actual rectangle modifier key. | 1243 | ;; Cache actual rectangle modifier key. |
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el index db5f6a63519..eec69256db6 100644 --- a/lisp/erc/erc-backend.el +++ b/lisp/erc/erc-backend.el | |||
| @@ -1082,7 +1082,7 @@ As an example: | |||
| 1082 | Would expand to: | 1082 | Would expand to: |
| 1083 | 1083 | ||
| 1084 | (prog2 | 1084 | (prog2 |
| 1085 | (defvar erc-server-311-functions 'erc-server-311 | 1085 | (defvar erc-server-311-functions \\='erc-server-311 |
| 1086 | \"Some non-generic variable documentation. | 1086 | \"Some non-generic variable documentation. |
| 1087 | 1087 | ||
| 1088 | Hook called upon receiving a 311 server response. | 1088 | Hook called upon receiving a 311 server response. |
diff --git a/lisp/erc/erc-networks.el b/lisp/erc/erc-networks.el index 9de9b257c10..441663f3b3b 100644 --- a/lisp/erc/erc-networks.el +++ b/lisp/erc/erc-networks.el | |||
| @@ -782,9 +782,9 @@ PORTS should be a list of either: | |||
| 782 | numbers between LOW and HIGH (inclusive) is returned. | 782 | numbers between LOW and HIGH (inclusive) is returned. |
| 783 | 783 | ||
| 784 | As an example: | 784 | As an example: |
| 785 | (erc-ports-list '(1)) => (1) | 785 | (erc-ports-list \\='(1)) => (1) |
| 786 | (erc-ports-list '((1 5))) => (1 2 3 4 5) | 786 | (erc-ports-list \\='((1 5))) => (1 2 3 4 5) |
| 787 | (erc-ports-list '(1 (3 5))) => (1 3 4 5)" | 787 | (erc-ports-list \\='(1 (3 5))) => (1 3 4 5)" |
| 788 | (let (result) | 788 | (let (result) |
| 789 | (dolist (p ports) | 789 | (dolist (p ports) |
| 790 | (cond ((numberp p) | 790 | (cond ((numberp p) |
| @@ -866,4 +866,3 @@ VALUE is the options value.") | |||
| 866 | ;; indent-tabs-mode: t | 866 | ;; indent-tabs-mode: t |
| 867 | ;; tab-width: 8 | 867 | ;; tab-width: 8 |
| 868 | ;; End: | 868 | ;; End: |
| 869 | |||
diff --git a/lisp/erc/erc-services.el b/lisp/erc/erc-services.el index 07a4274dcb6..2d2fa6230c3 100644 --- a/lisp/erc/erc-services.el +++ b/lisp/erc/erc-services.el | |||
| @@ -172,7 +172,7 @@ You can also use M-x erc-nickserv-identify-mode to change modes." | |||
| 172 | 172 | ||
| 173 | Example of use: | 173 | Example of use: |
| 174 | (setq erc-nickserv-passwords | 174 | (setq erc-nickserv-passwords |
| 175 | '((freenode ((\"nick-one\" . \"password\") | 175 | \\='((freenode ((\"nick-one\" . \"password\") |
| 176 | (\"nick-two\" . \"password\"))) | 176 | (\"nick-two\" . \"password\"))) |
| 177 | (DALnet ((\"nick\" . \"password\")))))" | 177 | (DALnet ((\"nick\" . \"password\")))))" |
| 178 | :group 'erc-services | 178 | :group 'erc-services |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index f2821798103..726e9ed9a21 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -927,7 +927,7 @@ If no elements match, then the empty string is used. | |||
| 927 | 927 | ||
| 928 | As an example: | 928 | As an example: |
| 929 | (setq erc-quit-reason-various-alist | 929 | (setq erc-quit-reason-various-alist |
| 930 | '((\"xmms\" dme:now-playing) | 930 | \\='((\"xmms\" dme:now-playing) |
| 931 | (\"version\" erc-quit-reason-normal) | 931 | (\"version\" erc-quit-reason-normal) |
| 932 | (\"home\" \"Gone home !\") | 932 | (\"home\" \"Gone home !\") |
| 933 | (\"^$\" \"Default Reason\"))) | 933 | (\"^$\" \"Default Reason\"))) |
| @@ -950,7 +950,7 @@ If no elements match, then the empty string is used. | |||
| 950 | 950 | ||
| 951 | As an example: | 951 | As an example: |
| 952 | (setq erc-part-reason-various-alist | 952 | (setq erc-part-reason-various-alist |
| 953 | '((\"xmms\" dme:now-playing) | 953 | \\='((\"xmms\" dme:now-playing) |
| 954 | (\"version\" erc-part-reason-normal) | 954 | (\"version\" erc-part-reason-normal) |
| 955 | (\"home\" \"Gone home !\") | 955 | (\"home\" \"Gone home !\") |
| 956 | (\"^$\" \"Default Reason\"))) | 956 | (\"^$\" \"Default Reason\"))) |
diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el index 2e929b05f49..4d28208b234 100644 --- a/lisp/eshell/esh-opt.el +++ b/lisp/eshell/esh-opt.el | |||
| @@ -82,7 +82,7 @@ and `eshell-stringify-list'. | |||
| 82 | 82 | ||
| 83 | For example, OPTIONS might look like: | 83 | For example, OPTIONS might look like: |
| 84 | 84 | ||
| 85 | '((?C nil nil multi-column \"multi-column display\") | 85 | ((?C nil nil multi-column \"multi-column display\") |
| 86 | (nil \"help\" nil nil \"show this usage display\") | 86 | (nil \"help\" nil nil \"show this usage display\") |
| 87 | (?r \"reverse\" nil reverse-list \"reverse order while sorting\") | 87 | (?r \"reverse\" nil reverse-list \"reverse order while sorting\") |
| 88 | :external \"ls\" | 88 | :external \"ls\" |
diff --git a/lisp/filesets.el b/lisp/filesets.el index 8e2b145d04c..c098879d49d 100644 --- a/lisp/filesets.el +++ b/lisp/filesets.el | |||
| @@ -951,7 +951,7 @@ variable will take effect after rebuilding the menu. | |||
| 951 | Caveat: Fileset names have to be unique. | 951 | Caveat: Fileset names have to be unique. |
| 952 | 952 | ||
| 953 | Example definition: | 953 | Example definition: |
| 954 | '\(\(\"My Wiki\" | 954 | \\='\(\(\"My Wiki\" |
| 955 | \(:ingroup \"~/Etc/My-Wiki/WikiContents\")) | 955 | \(:ingroup \"~/Etc/My-Wiki/WikiContents\")) |
| 956 | \(\"My Homepage\" | 956 | \(\"My Homepage\" |
| 957 | \(:pattern \"~/public_html/\" \"^.+\\\\.html$\") | 957 | \(:pattern \"~/public_html/\" \"^.+\\\\.html$\") |
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 5f12c6c129f..b74b60341bd 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -683,9 +683,9 @@ end of the current highlighting list. | |||
| 683 | 683 | ||
| 684 | For example: | 684 | For example: |
| 685 | 685 | ||
| 686 | (font-lock-add-keywords 'c-mode | 686 | (font-lock-add-keywords \\='c-mode |
| 687 | '((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 'font-lock-warning-face prepend) | 687 | \\='((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 \\='font-lock-warning-face prepend) |
| 688 | (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" . 'font-lock-keyword-face))) | 688 | (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" . \\='font-lock-keyword-face))) |
| 689 | 689 | ||
| 690 | adds two fontification patterns for C mode, to fontify `FIXME:' words, even in | 690 | adds two fontification patterns for C mode, to fontify `FIXME:' words, even in |
| 691 | comments, and to fontify `and', `or' and `not' words as keywords. | 691 | comments, and to fontify `and', `or' and `not' words as keywords. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b4a2f6a1773..01eb6c5cd48 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -330,7 +330,7 @@ to match a mail address in the From: header, BANNER is one of a symbol | |||
| 330 | If ADDRESS matches author's mail address, it will remove things like | 330 | If ADDRESS matches author's mail address, it will remove things like |
| 331 | advertisements. For example: | 331 | advertisements. For example: |
| 332 | 332 | ||
| 333 | \((\"@yoo-hoo\\\\.co\\\\.jp\\\\'\" . \"\\n_+\\nDo You Yoo-hoo!\\\\?\\n.*\\n.*\\n\")) | 333 | \((\"@yoo-hoo\\\\.co\\\\.jp\\\\\\='\" . \"\\n_+\\nDo You Yoo-hoo!\\\\?\\n.*\\n.*\\n\")) |
| 334 | " | 334 | " |
| 335 | :type '(repeat | 335 | :type '(repeat |
| 336 | (cons | 336 | (cons |
| @@ -886,12 +886,12 @@ Here are examples: | |||
| 886 | 886 | ||
| 887 | ;; Specify the altitude of Face images in the From header. | 887 | ;; Specify the altitude of Face images in the From header. |
| 888 | \(setq gnus-face-properties-alist | 888 | \(setq gnus-face-properties-alist |
| 889 | '((pbm . (:face gnus-x-face :ascent 80)) | 889 | \\='((pbm . (:face gnus-x-face :ascent 80)) |
| 890 | (png . (:ascent 80)))) | 890 | (png . (:ascent 80)))) |
| 891 | 891 | ||
| 892 | ;; Show Face images as pressed buttons. | 892 | ;; Show Face images as pressed buttons. |
| 893 | \(setq gnus-face-properties-alist | 893 | \(setq gnus-face-properties-alist |
| 894 | '((pbm . (:face gnus-x-face :relief -2)) | 894 | \\='((pbm . (:face gnus-x-face :relief -2)) |
| 895 | (png . (:relief -2)))) | 895 | (png . (:relief -2)))) |
| 896 | 896 | ||
| 897 | See the manual for the valid properties for various image types. | 897 | See the manual for the valid properties for various image types. |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 447bd5d56f2..6b90204beb6 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -1656,7 +1656,7 @@ while still allowing them to affect operations done in other buffers. | |||
| 1656 | For example: | 1656 | For example: |
| 1657 | 1657 | ||
| 1658 | \(setq gnus-newsgroup-variables | 1658 | \(setq gnus-newsgroup-variables |
| 1659 | '(message-use-followup-to | 1659 | \\='(message-use-followup-to |
| 1660 | (gnus-visible-headers . | 1660 | (gnus-visible-headers . |
| 1661 | \"^From:\\\\|^Newsgroups:\\\\|^Subject:\\\\|^Date:\\\\|^To:\"))) | 1661 | \"^From:\\\\|^Newsgroups:\\\\|^Subject:\\\\|^Date:\\\\|^To:\"))) |
| 1662 | ") | 1662 | ") |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 54cf099e078..215eac88aef 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1974,10 +1974,10 @@ to case differences." | |||
| 1974 | (string-equal (downcase str1) (downcase prefix)) | 1974 | (string-equal (downcase str1) (downcase prefix)) |
| 1975 | (string-equal str1 prefix)))))) | 1975 | (string-equal str1 prefix)))))) |
| 1976 | 1976 | ||
| 1977 | (if (fboundp 'format-message) | 1977 | (defalias 'gnus-format-message |
| 1978 | (defalias 'gnus-format-message 'format-message) | 1978 | (if (fboundp 'format-message) 'format-message |
| 1979 | ;; for Emacs < 25, and XEmacs, don't worry about quote translation. | 1979 | ;; for Emacs < 25, and XEmacs, don't worry about quote translation. |
| 1980 | (defalias 'gnus-format-message 'format)) | 1980 | 'format)) |
| 1981 | 1981 | ||
| 1982 | ;; Simple check: can be a macro but this way, although slow, it's really clear. | 1982 | ;; Simple check: can be a macro but this way, although slow, it's really clear. |
| 1983 | ;; We don't use `bound-and-true-p' because it's not in XEmacs. | 1983 | ;; We don't use `bound-and-true-p' because it's not in XEmacs. |
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el index 31344382029..a6e75b739dd 100644 --- a/lisp/gnus/nndiary.el +++ b/lisp/gnus/nndiary.el | |||
| @@ -151,15 +151,15 @@ maximum in the reminder is not that painful, I think. Although this | |||
| 151 | scheme might appear somewhat weird at a first glance, it is very powerful. | 151 | scheme might appear somewhat weird at a first glance, it is very powerful. |
| 152 | In order to make this clear, here are some examples: | 152 | In order to make this clear, here are some examples: |
| 153 | 153 | ||
| 154 | - '(0 . day): this is the default value of `nndiary-reminders'. It means | 154 | - (0 . day): this is the default value of `nndiary-reminders'. It means |
| 155 | pop up the appointments of the day each morning at 00:00. | 155 | pop up the appointments of the day each morning at 00:00. |
| 156 | 156 | ||
| 157 | - '(1 . day): this means pop up the appointments the day before, at 00:00. | 157 | - (1 . day): this means pop up the appointments the day before, at 00:00. |
| 158 | 158 | ||
| 159 | - '(6 . hour): for an appointment at 18:30, this would pop up the | 159 | - (6 . hour): for an appointment at 18:30, this would pop up the |
| 160 | appointment message at 12:00. | 160 | appointment message at 12:00. |
| 161 | 161 | ||
| 162 | - '(360 . minute): for an appointment at 18:30 and 15 seconds, this would | 162 | - (360 . minute): for an appointment at 18:30 and 15 seconds, this would |
| 163 | pop up the appointment message at 12:30." | 163 | pop up the appointment message at 12:30." |
| 164 | :group 'nndiary | 164 | :group 'nndiary |
| 165 | :type '(repeat (cons :format "%v\n" | 165 | :type '(repeat (cons :format "%v\n" |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index 2292849ccb1..681116017ba 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -217,7 +217,7 @@ will try to match against both the From and the To header. | |||
| 217 | Example: | 217 | Example: |
| 218 | 218 | ||
| 219 | \(setq nnmail-fancy-expiry-targets | 219 | \(setq nnmail-fancy-expiry-targets |
| 220 | '((to-from \"boss\" \"nnfolder:Work\") | 220 | \\='((to-from \"boss\" \"nnfolder:Work\") |
| 221 | (\"Subject\" \"IMPORTANT\" \"nnfolder:IMPORTANT.%Y.%b\") | 221 | (\"Subject\" \"IMPORTANT\" \"nnfolder:IMPORTANT.%Y.%b\") |
| 222 | (\"from\" \".*\" \"nnfolder:Archive-%Y\"))) | 222 | (\"from\" \".*\" \"nnfolder:Archive-%Y\"))) |
| 223 | 223 | ||
| @@ -465,7 +465,7 @@ GROUP: Mail will be stored in GROUP (a string). | |||
| 465 | junk: Mail will be deleted. Use with care! Do not submerge in water! | 465 | junk: Mail will be deleted. Use with care! Do not submerge in water! |
| 466 | Example: | 466 | Example: |
| 467 | (setq nnmail-split-fancy | 467 | (setq nnmail-split-fancy |
| 468 | '(| (\"Subject\" \"MAKE MONEY FAST\" junk) | 468 | \\='(| (\"Subject\" \"MAKE MONEY FAST\" junk) |
| 469 | ...other.rules.omitted...)) | 469 | ...other.rules.omitted...)) |
| 470 | 470 | ||
| 471 | FIELD must match a complete field name. VALUE must match a complete | 471 | FIELD must match a complete field name. VALUE must match a complete |
diff --git a/lisp/iimage.el b/lisp/iimage.el index 5852c9497d7..08808b1b4c4 100644 --- a/lisp/iimage.el +++ b/lisp/iimage.el | |||
| @@ -71,7 +71,7 @@ NUM specifies which parenthesized expression in the regexp. | |||
| 71 | 71 | ||
| 72 | Examples of image filename patterns to match: | 72 | Examples of image filename patterns to match: |
| 73 | file://foo.png | 73 | file://foo.png |
| 74 | `file://foo.png' | 74 | \\=`file://foo.png\\=' |
| 75 | \\[\\[foo.gif]] | 75 | \\[\\[foo.gif]] |
| 76 | <foo.png> | 76 | <foo.png> |
| 77 | foo.JPG | 77 | foo.JPG |
diff --git a/lisp/international/ogonek.el b/lisp/international/ogonek.el index 9e5a4501357..7caa5d4b30c 100644 --- a/lisp/international/ogonek.el +++ b/lisp/international/ogonek.el | |||
| @@ -244,17 +244,17 @@ The functions come in the following groups. | |||
| 244 | (defun deprefixify-iso8859-2-region (start end) | 244 | (defun deprefixify-iso8859-2-region (start end) |
| 245 | (interactive \"*r\") | 245 | (interactive \"*r\") |
| 246 | (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) | 246 | (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) |
| 247 | (global-set-key \"\\C-cd\" 'deprefixify-iso8859-2-region) ; ctrl-c d | 247 | (global-set-key \"\\C-cd\" \\='deprefixify-iso8859-2-region) ; ctrl-c d |
| 248 | 248 | ||
| 249 | (defun mazovia-to-iso8859-2 (start end) | 249 | (defun mazovia-to-iso8859-2 (start end) |
| 250 | (interactive \"*r\") | 250 | (interactive \"*r\") |
| 251 | (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) | 251 | (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) |
| 252 | (global-set-key \"\\C-cr\" 'mazovia-to-iso8859-2) ; ctrl-c r | 252 | (global-set-key \"\\C-cr\" \\='mazovia-to-iso8859-2) ; ctrl-c r |
| 253 | 253 | ||
| 254 | (defun prefixify-iso8859-2-region (start end) | 254 | (defun prefixify-iso8859-2-region (start end) |
| 255 | (interactive \"*r\") | 255 | (interactive \"*r\") |
| 256 | (ogonek-prefixify-region start end \"iso8859-2\" ?/)) | 256 | (ogonek-prefixify-region start end \"iso8859-2\" ?/)) |
| 257 | (global-set-key \"\\C-cp\" 'prefixify-iso8859-2-region) ; ctrl-c p | 257 | (global-set-key \"\\C-cp\" \\='prefixify-iso8859-2-region) ; ctrl-c p |
| 258 | 258 | ||
| 259 | Each recoding operation can be called off using the `undo' command.") | 259 | Each recoding operation can be called off using the `undo' command.") |
| 260 | 260 | ||
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index 9636a36b1e2..ddf3005bab5 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -941,7 +941,6 @@ without repeating the prefix." | |||
| 941 | (defvar kmacro-step-edit-inserting) ;; inserting into macro | 941 | (defvar kmacro-step-edit-inserting) ;; inserting into macro |
| 942 | (defvar kmacro-step-edit-appending) ;; append to end of macro | 942 | (defvar kmacro-step-edit-appending) ;; append to end of macro |
| 943 | (defvar kmacro-step-edit-replace) ;; replace orig macro when done | 943 | (defvar kmacro-step-edit-replace) ;; replace orig macro when done |
| 944 | (defvar kmacro-step-edit-prefix-index) ;; index of first prefix arg key | ||
| 945 | (defvar kmacro-step-edit-key-index) ;; index of current key | 944 | (defvar kmacro-step-edit-key-index) ;; index of current key |
| 946 | (defvar kmacro-step-edit-action) ;; automatic action on next pre-command hook | 945 | (defvar kmacro-step-edit-action) ;; automatic action on next pre-command hook |
| 947 | (defvar kmacro-step-edit-help) ;; kmacro step edit help enabled | 946 | (defvar kmacro-step-edit-help) ;; kmacro step edit help enabled |
| @@ -976,11 +975,6 @@ This keymap is an extension to the `query-replace-map', allowing the | |||
| 976 | following additional answers: `insert', `insert-1', `replace', `replace-1', | 975 | following additional answers: `insert', `insert-1', `replace', `replace-1', |
| 977 | `append', `append-end', `act-repeat', `skip-end', `skip-keep'.") | 976 | `append', `append-end', `act-repeat', `skip-end', `skip-keep'.") |
| 978 | 977 | ||
| 979 | (defvar kmacro-step-edit-prefix-commands | ||
| 980 | '(universal-argument universal-argument-more universal-argument-minus | ||
| 981 | digit-argument negative-argument) | ||
| 982 | "Commands which build up a prefix arg for the current command.") | ||
| 983 | |||
| 984 | (defun kmacro-step-edit-prompt (macro index) | 978 | (defun kmacro-step-edit-prompt (macro index) |
| 985 | ;; Show step-edit prompt | 979 | ;; Show step-edit prompt |
| 986 | (let ((keys (and (not kmacro-step-edit-appending) | 980 | (let ((keys (and (not kmacro-step-edit-appending) |
| @@ -1084,21 +1078,13 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1084 | ;; Handle prefix arg, or query user | 1078 | ;; Handle prefix arg, or query user |
| 1085 | (cond | 1079 | (cond |
| 1086 | (act act) ;; set above | 1080 | (act act) ;; set above |
| 1087 | ((memq this-command kmacro-step-edit-prefix-commands) | ||
| 1088 | (unless kmacro-step-edit-prefix-index | ||
| 1089 | (setq kmacro-step-edit-prefix-index kmacro-step-edit-key-index)) | ||
| 1090 | (setq act 'universal-argument)) | ||
| 1091 | ((eq this-command 'universal-argument-other-key) | ||
| 1092 | (setq act 'universal-argument)) | ||
| 1093 | (t | 1081 | (t |
| 1094 | (kmacro-step-edit-prompt macro (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index)) | 1082 | (kmacro-step-edit-prompt macro kmacro-step-edit-key-index) |
| 1095 | (setq act (lookup-key kmacro-step-edit-map | 1083 | (setq act (lookup-key kmacro-step-edit-map |
| 1096 | (vector (with-current-buffer (current-buffer) (read-event)))))))) | 1084 | (vector (with-current-buffer (current-buffer) (read-event)))))))) |
| 1097 | 1085 | ||
| 1098 | ;; Resume macro execution and perform the action | 1086 | ;; Resume macro execution and perform the action |
| 1099 | (cond | 1087 | (cond |
| 1100 | ((eq act 'universal-argument) | ||
| 1101 | nil) | ||
| 1102 | ((cond | 1088 | ((cond |
| 1103 | ((eq act 'act) | 1089 | ((eq act 'act) |
| 1104 | t) | 1090 | t) |
| @@ -1110,7 +1096,6 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1110 | (setq kmacro-step-edit-active 'ignore) | 1096 | (setq kmacro-step-edit-active 'ignore) |
| 1111 | nil) | 1097 | nil) |
| 1112 | ((eq act 'skip) | 1098 | ((eq act 'skip) |
| 1113 | (setq kmacro-step-edit-prefix-index nil) | ||
| 1114 | nil) | 1099 | nil) |
| 1115 | ((eq act 'skip-keep) | 1100 | ((eq act 'skip-keep) |
| 1116 | (setq this-command 'ignore) | 1101 | (setq this-command 'ignore) |
| @@ -1123,12 +1108,11 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1123 | (setq act t) | 1108 | (setq act t) |
| 1124 | t) | 1109 | t) |
| 1125 | ((member act '(insert-1 insert)) | 1110 | ((member act '(insert-1 insert)) |
| 1126 | (setq executing-kbd-macro-index (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index)) | 1111 | (setq executing-kbd-macro-index kmacro-step-edit-key-index) |
| 1127 | (setq kmacro-step-edit-inserting (if (eq act 'insert-1) 1 t)) | 1112 | (setq kmacro-step-edit-inserting (if (eq act 'insert-1) 1 t)) |
| 1128 | nil) | 1113 | nil) |
| 1129 | ((member act '(replace-1 replace)) | 1114 | ((member act '(replace-1 replace)) |
| 1130 | (setq kmacro-step-edit-inserting (if (eq act 'replace-1) 1 t)) | 1115 | (setq kmacro-step-edit-inserting (if (eq act 'replace-1) 1 t)) |
| 1131 | (setq kmacro-step-edit-prefix-index nil) | ||
| 1132 | (if (= executing-kbd-macro-index (length executing-kbd-macro)) | 1116 | (if (= executing-kbd-macro-index (length executing-kbd-macro)) |
| 1133 | (setq executing-kbd-macro (vconcat executing-kbd-macro [nil]) | 1117 | (setq executing-kbd-macro (vconcat executing-kbd-macro [nil]) |
| 1134 | kmacro-step-edit-appending t)) | 1118 | kmacro-step-edit-appending t)) |
| @@ -1148,19 +1132,19 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1148 | (setq act t) | 1132 | (setq act t) |
| 1149 | t) | 1133 | t) |
| 1150 | ((eq act 'help) | 1134 | ((eq act 'help) |
| 1151 | (setq executing-kbd-macro-index (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index)) | 1135 | (setq executing-kbd-macro-index kmacro-step-edit-key-index) |
| 1152 | (setq kmacro-step-edit-help (not kmacro-step-edit-help)) | 1136 | (setq kmacro-step-edit-help (not kmacro-step-edit-help)) |
| 1153 | nil) | 1137 | nil) |
| 1154 | (t ;; Ignore unknown responses | 1138 | (t ;; Ignore unknown responses |
| 1155 | (setq executing-kbd-macro-index (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index)) | 1139 | (setq executing-kbd-macro-index kmacro-step-edit-key-index) |
| 1156 | nil)) | 1140 | nil)) |
| 1157 | (if (> executing-kbd-macro-index (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index)) | 1141 | (if (> executing-kbd-macro-index kmacro-step-edit-key-index) |
| 1158 | (setq kmacro-step-edit-new-macro | 1142 | (setq kmacro-step-edit-new-macro |
| 1159 | (vconcat kmacro-step-edit-new-macro | 1143 | (vconcat kmacro-step-edit-new-macro |
| 1160 | (substring executing-kbd-macro | 1144 | (substring executing-kbd-macro |
| 1161 | (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index) | 1145 | kmacro-step-edit-key-index |
| 1162 | (if (eq act t) nil executing-kbd-macro-index))) | 1146 | (if (eq act t) nil |
| 1163 | kmacro-step-edit-prefix-index nil)) | 1147 | executing-kbd-macro-index))))) |
| 1164 | (if restore-index | 1148 | (if restore-index |
| 1165 | (setq executing-kbd-macro-index restore-index))) | 1149 | (setq executing-kbd-macro-index restore-index))) |
| 1166 | (t | 1150 | (t |
| @@ -1175,12 +1159,10 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1175 | (executing-kbd-macro nil) | 1159 | (executing-kbd-macro nil) |
| 1176 | (defining-kbd-macro nil) | 1160 | (defining-kbd-macro nil) |
| 1177 | cmd keys next-index) | 1161 | cmd keys next-index) |
| 1178 | (setq executing-kbd-macro-index (or kmacro-step-edit-prefix-index kmacro-step-edit-key-index) | 1162 | (setq executing-kbd-macro-index kmacro-step-edit-key-index) |
| 1179 | kmacro-step-edit-prefix-index nil) | ||
| 1180 | (kmacro-step-edit-prompt macro nil) | 1163 | (kmacro-step-edit-prompt macro nil) |
| 1181 | ;; Now, we have read a key sequence from the macro, but we don't want | 1164 | ;; Now, we have read a key sequence from the macro, but we don't want |
| 1182 | ;; to execute it yet. So push it back and read another sequence. | 1165 | ;; to execute it yet. So push it back and read another sequence. |
| 1183 | (reset-this-command-lengths) | ||
| 1184 | (setq keys (read-key-sequence nil nil nil nil t)) | 1166 | (setq keys (read-key-sequence nil nil nil nil t)) |
| 1185 | (setq cmd (key-binding keys t nil)) | 1167 | (setq cmd (key-binding keys t nil)) |
| 1186 | (if (cond | 1168 | (if (cond |
| @@ -1201,25 +1183,12 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1201 | unread-command-events nil))) | 1183 | unread-command-events nil))) |
| 1202 | (setq cmd 'ignore) | 1184 | (setq cmd 'ignore) |
| 1203 | nil) | 1185 | nil) |
| 1204 | ((memq cmd kmacro-step-edit-prefix-commands) | ||
| 1205 | (reset-this-command-lengths) | ||
| 1206 | nil) | ||
| 1207 | ((eq cmd 'universal-argument-other-key) | ||
| 1208 | (setq kmacro-step-edit-action t) | ||
| 1209 | (reset-this-command-lengths) | ||
| 1210 | (if (numberp kmacro-step-edit-inserting) | ||
| 1211 | (setq kmacro-step-edit-inserting nil)) | ||
| 1212 | nil) | ||
| 1213 | ((numberp kmacro-step-edit-inserting) | 1186 | ((numberp kmacro-step-edit-inserting) |
| 1214 | (setq kmacro-step-edit-inserting nil) | 1187 | (setq kmacro-step-edit-inserting nil) |
| 1215 | nil) | 1188 | nil) |
| 1216 | ((equal keys "\C-j") | 1189 | ((equal keys "\C-j") |
| 1217 | (setq kmacro-step-edit-inserting nil) | 1190 | (setq kmacro-step-edit-inserting nil) |
| 1218 | (setq kmacro-step-edit-action nil) | 1191 | (setq kmacro-step-edit-action nil) |
| 1219 | ;; Forget any (partial) prefix arg from next command | ||
| 1220 | (setq kmacro-step-edit-prefix-index nil) | ||
| 1221 | (reset-this-command-lengths) | ||
| 1222 | (setq overriding-terminal-local-map nil) | ||
| 1223 | (setq next-index kmacro-step-edit-key-index) | 1192 | (setq next-index kmacro-step-edit-key-index) |
| 1224 | t) | 1193 | t) |
| 1225 | (t nil)) | 1194 | (t nil)) |
| @@ -1278,7 +1247,6 @@ To customize possible responses, change the \"bindings\" in `kmacro-step-edit-ma | |||
| 1278 | (kmacro-step-edit-inserting nil) | 1247 | (kmacro-step-edit-inserting nil) |
| 1279 | (kmacro-step-edit-appending nil) | 1248 | (kmacro-step-edit-appending nil) |
| 1280 | (kmacro-step-edit-replace t) | 1249 | (kmacro-step-edit-replace t) |
| 1281 | (kmacro-step-edit-prefix-index nil) | ||
| 1282 | (kmacro-step-edit-key-index 0) | 1250 | (kmacro-step-edit-key-index 0) |
| 1283 | (kmacro-step-edit-action nil) | 1251 | (kmacro-step-edit-action nil) |
| 1284 | (kmacro-step-edit-help nil) | 1252 | (kmacro-step-edit-help nil) |
diff --git a/lisp/msb.el b/lisp/msb.el index 03b29202efe..b717dcc8cd9 100644 --- a/lisp/msb.el +++ b/lisp/msb.el | |||
| @@ -777,7 +777,7 @@ SORT-PREDICATE. | |||
| 777 | 777 | ||
| 778 | Example: | 778 | Example: |
| 779 | \(msb--aggregate-alist | 779 | \(msb--aggregate-alist |
| 780 | '((a . a1) (a . a2) (b . b1) (c . c3) (a . a4) (a . a3) (b . b3) (b . b2)) | 780 | \\='((a . a1) (a . a2) (b . b1) (c . c3) (a . a4) (a . a3) (b . b3) (b . b2)) |
| 781 | (function string=) | 781 | (function string=) |
| 782 | (lambda (item1 item2) | 782 | (lambda (item1 item2) |
| 783 | (string< (symbol-name item1) (symbol-name item2)))) | 783 | (string< (symbol-name item1) (symbol-name item2)))) |
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index 8f7754137cb..a7efaf81dbc 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el | |||
| @@ -377,7 +377,7 @@ Example: | |||
| 377 | 377 | ||
| 378 | \(dbus-call-method-asynchronously | 378 | \(dbus-call-method-asynchronously |
| 379 | :system \"org.freedesktop.Hal\" \"/org/freedesktop/Hal/devices/computer\" | 379 | :system \"org.freedesktop.Hal\" \"/org/freedesktop/Hal/devices/computer\" |
| 380 | \"org.freedesktop.Hal.Device\" \"GetPropertyString\" 'message | 380 | \"org.freedesktop.Hal.Device\" \"GetPropertyString\" \\='message |
| 381 | \"system.kernel.machine\") | 381 | \"system.kernel.machine\") |
| 382 | 382 | ||
| 383 | => \(:serial :system 2) | 383 | => \(:serial :system 2) |
| @@ -654,7 +654,7 @@ Example: | |||
| 654 | 654 | ||
| 655 | \(dbus-register-signal | 655 | \(dbus-register-signal |
| 656 | :system \"org.freedesktop.Hal\" \"/org/freedesktop/Hal/Manager\" | 656 | :system \"org.freedesktop.Hal\" \"/org/freedesktop/Hal/Manager\" |
| 657 | \"org.freedesktop.Hal.Manager\" \"DeviceAdded\" 'my-signal-handler) | 657 | \"org.freedesktop.Hal.Manager\" \"DeviceAdded\" \\='my-signal-handler) |
| 658 | 658 | ||
| 659 | => \(\(:signal :system \"org.freedesktop.Hal.Manager\" \"DeviceAdded\") | 659 | => \(\(:signal :system \"org.freedesktop.Hal.Manager\" \"DeviceAdded\") |
| 660 | \(\"org.freedesktop.Hal\" \"/org/freedesktop/Hal/Manager\" my-signal-handler)) | 660 | \(\"org.freedesktop.Hal\" \"/org/freedesktop/Hal/Manager\" my-signal-handler)) |
diff --git a/lisp/net/tls.el b/lisp/net/tls.el index 46891be38e6..544aec5cfda 100644 --- a/lisp/net/tls.el +++ b/lisp/net/tls.el | |||
| @@ -174,11 +174,10 @@ Used by `tls-certificate-information'." | |||
| 174 | :type 'string | 174 | :type 'string |
| 175 | :group 'tls) | 175 | :group 'tls) |
| 176 | 176 | ||
| 177 | (eval-and-compile | 177 | (defalias 'tls-format-message |
| 178 | (if (fboundp 'format-message) | 178 | (if (fboundp 'format-message) 'format-message |
| 179 | (defalias 'tls-format-message 'format-message) | ||
| 180 | ;; for Emacs < 25, and XEmacs, don't worry about quote translation. | 179 | ;; for Emacs < 25, and XEmacs, don't worry about quote translation. |
| 181 | (defalias 'tls-format-message 'format))) | 180 | 'format)) |
| 182 | 181 | ||
| 183 | (defun tls-certificate-information (der) | 182 | (defun tls-certificate-information (der) |
| 184 | "Parse X.509 certificate in DER format into an assoc list." | 183 | "Parse X.509 certificate in DER format into an assoc list." |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 8cae8dc92b9..79b024e8310 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -288,7 +288,10 @@ The string is used in `tramp-methods'.") | |||
| 288 | (add-to-list 'tramp-methods | 288 | (add-to-list 'tramp-methods |
| 289 | '("sudo" | 289 | '("sudo" |
| 290 | (tramp-login-program "sudo") | 290 | (tramp-login-program "sudo") |
| 291 | (tramp-login-args (("-u" "%u") ("-s") ("-H") ("-p" "Password:"))) | 291 | ;; The password template must be masked. Otherwise, it could be |
| 292 | ;; interpreted as password prompt if the remote host echoes the command. | ||
| 293 | (tramp-login-args (("-u" "%u") ("-s") ("-H") | ||
| 294 | ("-p" "P\"\"a\"\"s\"\"s\"\"w\"\"o\"\"r\"\"d\"\":"))) | ||
| 292 | ;; Local $SHELL could be a nasty one, like zsh or fish. Let's override it. | 295 | ;; Local $SHELL could be a nasty one, like zsh or fish. Let's override it. |
| 293 | (tramp-login-env (("SHELL") ("/bin/sh"))) | 296 | (tramp-login-env (("SHELL") ("/bin/sh"))) |
| 294 | (tramp-remote-shell "/bin/sh") | 297 | (tramp-remote-shell "/bin/sh") |
| @@ -4316,6 +4319,7 @@ with the encoded or decoded results, respectively.") | |||
| 4316 | ;; However, I don't know whether all base64 versions do supports | 4319 | ;; However, I don't know whether all base64 versions do supports |
| 4317 | ;; this option. | 4320 | ;; this option. |
| 4318 | (b64 "base64" "base64 -d") | 4321 | (b64 "base64" "base64 -d") |
| 4322 | (b64 "openssl enc -base64" "openssl enc -d -base64") | ||
| 4319 | (b64 "mimencode -b" "mimencode -u -b") | 4323 | (b64 "mimencode -b" "mimencode -u -b") |
| 4320 | (b64 "mmencode -b" "mmencode -u -b") | 4324 | (b64 "mmencode -b" "mmencode -u -b") |
| 4321 | (b64 "recode data..base64" "recode base64..data") | 4325 | (b64 "recode data..base64" "recode base64..data") |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index bf3e1c740de..6cec3c55bc9 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1750,7 +1750,7 @@ Example: | |||
| 1750 | 1750 | ||
| 1751 | (tramp-set-completion-function | 1751 | (tramp-set-completion-function |
| 1752 | \"ssh\" | 1752 | \"ssh\" |
| 1753 | '((tramp-parse-sconfig \"/etc/ssh_config\") | 1753 | \\='((tramp-parse-sconfig \"/etc/ssh_config\") |
| 1754 | (tramp-parse-sconfig \"~/.ssh/config\")))" | 1754 | (tramp-parse-sconfig \"~/.ssh/config\")))" |
| 1755 | 1755 | ||
| 1756 | (let ((r function-list) | 1756 | (let ((r function-list) |
| @@ -4258,6 +4258,16 @@ Invokes `password-read' if available, `read-passwd' else." | |||
| 4258 | ;;;###tramp-autoload | 4258 | ;;;###tramp-autoload |
| 4259 | (defun tramp-clear-passwd (vec) | 4259 | (defun tramp-clear-passwd (vec) |
| 4260 | "Clear password cache for connection related to VEC." | 4260 | "Clear password cache for connection related to VEC." |
| 4261 | (let ((hop (tramp-file-name-hop vec))) | ||
| 4262 | (when hop | ||
| 4263 | ;; Clear also the passwords of the hops. | ||
| 4264 | (tramp-clear-passwd | ||
| 4265 | (tramp-dissect-file-name | ||
| 4266 | (concat | ||
| 4267 | tramp-prefix-format | ||
| 4268 | (tramp-compat-replace-regexp-in-string | ||
| 4269 | (concat tramp-postfix-hop-regexp "$") | ||
| 4270 | tramp-postfix-host-format hop)))))) | ||
| 4261 | (tramp-compat-funcall | 4271 | (tramp-compat-funcall |
| 4262 | 'password-cache-remove | 4272 | 'password-cache-remove |
| 4263 | (tramp-make-tramp-file-name | 4273 | (tramp-make-tramp-file-name |
diff --git a/lisp/obsolete/sregex.el b/lisp/obsolete/sregex.el index 0a15f50be28..de0b1d913ba 100644 --- a/lisp/obsolete/sregex.el +++ b/lisp/obsolete/sregex.el | |||
| @@ -262,15 +262,15 @@ | |||
| 262 | This is exactly like `sregexq' (q.v.) except that it evaluates all its | 262 | This is exactly like `sregexq' (q.v.) except that it evaluates all its |
| 263 | arguments, so literal sregex clauses must be quoted. For example: | 263 | arguments, so literal sregex clauses must be quoted. For example: |
| 264 | 264 | ||
| 265 | (sregex '(or \"Bob\" \"Robert\")) => \"Bob\\\\|Robert\" | 265 | (sregex \\='(or \"Bob\" \"Robert\")) => \"Bob\\\\|Robert\" |
| 266 | 266 | ||
| 267 | An argument-evaluating sregex interpreter lets you reuse sregex | 267 | An argument-evaluating sregex interpreter lets you reuse sregex |
| 268 | subexpressions: | 268 | subexpressions: |
| 269 | 269 | ||
| 270 | (let ((dotstar '(0+ any)) | 270 | (let ((dotstar \\='(0+ any)) |
| 271 | (whitespace '(1+ (syntax ?-))) | 271 | (whitespace \\='(1+ (syntax ?-))) |
| 272 | (digits '(1+ (char (?0 . ?9))))) | 272 | (digits \\='(1+ (char (?0 . ?9))))) |
| 273 | (sregex 'bol dotstar \":\" whitespace digits)) => \"^.*:\\\\s-+[0-9]+\"" | 273 | (sregex \\='bol dotstar \":\" whitespace digits)) => \"^.*:\\\\s-+[0-9]+\"" |
| 274 | (sregex--sequence exps nil)) | 274 | (sregex--sequence exps nil)) |
| 275 | 275 | ||
| 276 | (defmacro sregexq (&rest exps) | 276 | (defmacro sregexq (&rest exps) |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index a3c8b84bfca..3a87f6bedbd 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -1990,8 +1990,8 @@ the lower-case version of all tags." | |||
| 1990 | "Alist of characters and custom functions for bulk actions. | 1990 | "Alist of characters and custom functions for bulk actions. |
| 1991 | For example, this value makes those two functions available: | 1991 | For example, this value makes those two functions available: |
| 1992 | 1992 | ||
| 1993 | '((?R set-category) | 1993 | ((?R set-category) |
| 1994 | (?C bulk-cut)) | 1994 | (?C bulk-cut)) |
| 1995 | 1995 | ||
| 1996 | With selected entries in an agenda buffer, `B R' will call | 1996 | With selected entries in an agenda buffer, `B R' will call |
| 1997 | the custom function `set-category' on the selected entries. | 1997 | the custom function `set-category' on the selected entries. |
| @@ -4937,13 +4937,13 @@ the `regexp' or `notregexp' element. | |||
| 4937 | `todo' and `nottodo' accept as an argument a list of todo | 4937 | `todo' and `nottodo' accept as an argument a list of todo |
| 4938 | keywords, which may include \"*\" to match any todo keyword. | 4938 | keywords, which may include \"*\" to match any todo keyword. |
| 4939 | 4939 | ||
| 4940 | (org-agenda-skip-entry-if 'todo '(\"TODO\" \"WAITING\")) | 4940 | (org-agenda-skip-entry-if \\='todo \\='(\"TODO\" \"WAITING\")) |
| 4941 | 4941 | ||
| 4942 | would skip all entries with \"TODO\" or \"WAITING\" keywords. | 4942 | would skip all entries with \"TODO\" or \"WAITING\" keywords. |
| 4943 | 4943 | ||
| 4944 | Instead of a list, a keyword class may be given. For example: | 4944 | Instead of a list, a keyword class may be given. For example: |
| 4945 | 4945 | ||
| 4946 | (org-agenda-skip-entry-if 'nottodo 'done) | 4946 | (org-agenda-skip-entry-if \\='nottodo \\='done) |
| 4947 | 4947 | ||
| 4948 | would skip entries that haven't been marked with any of \"DONE\" | 4948 | would skip entries that haven't been marked with any of \"DONE\" |
| 4949 | keywords. Possible classes are: `todo', `done', `any'. | 4949 | keywords. Possible classes are: `todo', `done', `any'. |
| @@ -10005,10 +10005,10 @@ calling the function returns nil. This function takes one | |||
| 10005 | argument: an entry from `org-agenda-get-day-entries'. | 10005 | argument: an entry from `org-agenda-get-day-entries'. |
| 10006 | 10006 | ||
| 10007 | FILTER can also be an alist with the car of each cell being | 10007 | FILTER can also be an alist with the car of each cell being |
| 10008 | either 'headline or 'category. For example: | 10008 | either `headline' or `category'. For example: |
| 10009 | 10009 | ||
| 10010 | '((headline \"IMPORTANT\") | 10010 | ((headline \"IMPORTANT\") |
| 10011 | (category \"Work\")) | 10011 | (category \"Work\")) |
| 10012 | 10012 | ||
| 10013 | will only add headlines containing IMPORTANT or headlines | 10013 | will only add headlines containing IMPORTANT or headlines |
| 10014 | belonging to the \"Work\" category. | 10014 | belonging to the \"Work\" category. |
diff --git a/lisp/org/org-protocol.el b/lisp/org/org-protocol.el index 4d9e79f54ea..ae0f4946832 100644 --- a/lisp/org/org-protocol.el +++ b/lisp/org/org-protocol.el | |||
| @@ -197,7 +197,7 @@ Possible properties are: | |||
| 197 | Example: | 197 | Example: |
| 198 | 198 | ||
| 199 | (setq org-protocol-project-alist | 199 | (setq org-protocol-project-alist |
| 200 | '((\"http://orgmode.org/worg/\" | 200 | \\='((\"http://orgmode.org/worg/\" |
| 201 | :online-suffix \".php\" | 201 | :online-suffix \".php\" |
| 202 | :working-suffix \".org\" | 202 | :working-suffix \".org\" |
| 203 | :base-url \"http://orgmode.org/worg/\" | 203 | :base-url \"http://orgmode.org/worg/\" |
| @@ -251,7 +251,7 @@ kill-client - If t, kill the client immediately, once the sub-protocol is | |||
| 251 | Here is an example: | 251 | Here is an example: |
| 252 | 252 | ||
| 253 | (setq org-protocol-protocol-alist | 253 | (setq org-protocol-protocol-alist |
| 254 | '((\"my-protocol\" | 254 | \\='((\"my-protocol\" |
| 255 | :protocol \"my-protocol\" | 255 | :protocol \"my-protocol\" |
| 256 | :function my-protocol-handler-function) | 256 | :function my-protocol-handler-function) |
| 257 | (\"your-protocol\" | 257 | (\"your-protocol\" |
diff --git a/lisp/org/ox-html.el b/lisp/org/ox-html.el index 144b58b9bc8..fc4f574a4c4 100644 --- a/lisp/org/ox-html.el +++ b/lisp/org/ox-html.el | |||
| @@ -833,7 +833,7 @@ you can reuse them: | |||
| 833 | For example: | 833 | For example: |
| 834 | 834 | ||
| 835 | \(setq org-html-table-row-tags | 835 | \(setq org-html-table-row-tags |
| 836 | (cons '(cond (top-row-p \"<tr class=\\\"tr-top\\\">\") | 836 | (cons \\='(cond (top-row-p \"<tr class=\\\"tr-top\\\">\") |
| 837 | (bottom-row-p \"<tr class=\\\"tr-bottom\\\">\") | 837 | (bottom-row-p \"<tr class=\\\"tr-bottom\\\">\") |
| 838 | (t (if (= (mod row-number 2) 1) | 838 | (t (if (= (mod row-number 2) 1) |
| 839 | \"<tr class=\\\"tr-odd\\\">\" | 839 | \"<tr class=\\\"tr-odd\\\">\" |
diff --git a/lisp/outline.el b/lisp/outline.el index d9142c5a604..816cd9ae7c9 100644 --- a/lisp/outline.el +++ b/lisp/outline.el | |||
| @@ -338,7 +338,7 @@ numbered and unnumbered sections), list them set by set and sorted by level | |||
| 338 | within each set. For example in texinfo mode: | 338 | within each set. For example in texinfo mode: |
| 339 | 339 | ||
| 340 | (setq outline-heading-alist | 340 | (setq outline-heading-alist |
| 341 | '((\"@chapter\" . 2) (\"@section\" . 3) (\"@subsection\" . 4) | 341 | \\='((\"@chapter\" . 2) (\"@section\" . 3) (\"@subsection\" . 4) |
| 342 | (\"@subsubsection\" . 5) | 342 | (\"@subsubsection\" . 5) |
| 343 | (\"@unnumbered\" . 2) (\"@unnumberedsec\" . 3) | 343 | (\"@unnumbered\" . 2) (\"@unnumberedsec\" . 3) |
| 344 | (\"@unnumberedsubsec\" . 4) (\"@unnumberedsubsubsec\" . 5) | 344 | (\"@unnumberedsubsec\" . 4) (\"@unnumberedsubsubsec\" . 5) |
diff --git a/lisp/printing.el b/lisp/printing.el index 8ad56f413e2..ae0f3fdbc67 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -1746,14 +1746,14 @@ Examples: | |||
| 1746 | 1746 | ||
| 1747 | * On GNU or Unix system: | 1747 | * On GNU or Unix system: |
| 1748 | 1748 | ||
| 1749 | '((unix \".\" \"~/bin\" ghostview mpage PATH) | 1749 | ((unix \".\" \"~/bin\" ghostview mpage PATH) |
| 1750 | (ghostview \"$HOME/bin/gsview-dir\") | 1750 | (ghostview \"$HOME/bin/gsview-dir\") |
| 1751 | (mpage \"$HOME/bin/mpage-dir\") | 1751 | (mpage \"$HOME/bin/mpage-dir\") |
| 1752 | ) | 1752 | ) |
| 1753 | 1753 | ||
| 1754 | * On Windows system: | 1754 | * On Windows system: |
| 1755 | 1755 | ||
| 1756 | '((windows \"c:/applications/executables\" PATH ghostview mpage) | 1756 | ((windows \"c:/applications/executables\" PATH ghostview mpage) |
| 1757 | (ghostview \"c:/gs/gsview-dir\") | 1757 | (ghostview \"c:/gs/gsview-dir\") |
| 1758 | (mpage \"c:/mpage-dir\") | 1758 | (mpage \"c:/mpage-dir\") |
| 1759 | )" | 1759 | )" |
| @@ -1810,8 +1810,8 @@ Where: | |||
| 1810 | SYMBOL It's a symbol to identify a text printer. It's for | 1810 | SYMBOL It's a symbol to identify a text printer. It's for |
| 1811 | setting option `pr-txt-name' and for menu selection. | 1811 | setting option `pr-txt-name' and for menu selection. |
| 1812 | Examples: | 1812 | Examples: |
| 1813 | 'prt_06a | 1813 | prt_06a |
| 1814 | 'my_printer | 1814 | my_printer |
| 1815 | 1815 | ||
| 1816 | COMMAND Name of the program for printing a text file. On MS-DOS and | 1816 | COMMAND Name of the program for printing a text file. On MS-DOS and |
| 1817 | MS-Windows systems, if the value is an empty string, then Emacs | 1817 | MS-Windows systems, if the value is an empty string, then Emacs |
| @@ -1838,7 +1838,7 @@ SWITCHES List of sexp's to pass as extra options for text printer | |||
| 1838 | instead of including an explicit switch on this list. | 1838 | instead of including an explicit switch on this list. |
| 1839 | Example: | 1839 | Example: |
| 1840 | . for lpr | 1840 | . for lpr |
| 1841 | '(\"-#3\" \"-l\") | 1841 | (\"-#3\" \"-l\") |
| 1842 | nil | 1842 | nil |
| 1843 | 1843 | ||
| 1844 | NAME A string that specifies a text printer name. | 1844 | NAME A string that specifies a text printer name. |
| @@ -1869,13 +1869,13 @@ Examples: | |||
| 1869 | 1869 | ||
| 1870 | * On GNU or Unix system: | 1870 | * On GNU or Unix system: |
| 1871 | 1871 | ||
| 1872 | '((prt_06a \"lpr\" nil \"prt_06a\") | 1872 | ((prt_06a \"lpr\" nil \"prt_06a\") |
| 1873 | (prt_07c nil nil \"prt_07c\") | 1873 | (prt_07c nil nil \"prt_07c\") |
| 1874 | ) | 1874 | ) |
| 1875 | 1875 | ||
| 1876 | * On Windows system: | 1876 | * On Windows system: |
| 1877 | 1877 | ||
| 1878 | '((prt_06a \"print\" nil \"/D:\\\\\\\\printers\\\\prt_06a\") | 1878 | ((prt_06a \"print\" nil \"/D:\\\\\\\\printers\\\\prt_06a\") |
| 1879 | (prt_07c nil nil \"/D:\\\\\\\\printers\\\\prt_07c\") | 1879 | (prt_07c nil nil \"/D:\\\\\\\\printers\\\\prt_07c\") |
| 1880 | (PRN \"\" nil \"PRN\") | 1880 | (PRN \"\" nil \"PRN\") |
| 1881 | (standard \"redpr.exe\" nil \"\") | 1881 | (standard \"redpr.exe\" nil \"\") |
| @@ -1961,8 +1961,8 @@ Where: | |||
| 1961 | SYMBOL It's a symbol to identify a PostScript printer. It's for | 1961 | SYMBOL It's a symbol to identify a PostScript printer. It's for |
| 1962 | setting option `pr-ps-name' and for menu selection. | 1962 | setting option `pr-ps-name' and for menu selection. |
| 1963 | Examples: | 1963 | Examples: |
| 1964 | 'prt_06a | 1964 | prt_06a |
| 1965 | 'my_printer | 1965 | my_printer |
| 1966 | 1966 | ||
| 1967 | COMMAND Name of the program for printing a PostScript file. On MS-DOS | 1967 | COMMAND Name of the program for printing a PostScript file. On MS-DOS |
| 1968 | and MS-Windows systems, if the value is an empty string then | 1968 | and MS-Windows systems, if the value is an empty string then |
| @@ -1991,11 +1991,11 @@ SWITCHES List of sexp's to pass as extra options for PostScript printer | |||
| 1991 | instead of including an explicit switch on this list. | 1991 | instead of including an explicit switch on this list. |
| 1992 | Example: | 1992 | Example: |
| 1993 | . for lpr | 1993 | . for lpr |
| 1994 | '(\"-#3\" \"-l\") | 1994 | (\"-#3\" \"-l\") |
| 1995 | nil | 1995 | nil |
| 1996 | 1996 | ||
| 1997 | . for gsprint.exe | 1997 | . for gsprint.exe |
| 1998 | '(\"-all\" \"-twoup\") | 1998 | (\"-all\" \"-twoup\") |
| 1999 | 1999 | ||
| 2000 | PRINTER-SWITCH A string that specifies PostScript printer name switch. If | 2000 | PRINTER-SWITCH A string that specifies PostScript printer name switch. If |
| 2001 | it's necessary to have a space between PRINTER-SWITCH and NAME, | 2001 | it's necessary to have a space between PRINTER-SWITCH and NAME, |
| @@ -2057,9 +2057,9 @@ DEFAULT It's a way to set default values when this entry is selected. | |||
| 2057 | which the current setting inherits the context. Take care with | 2057 | which the current setting inherits the context. Take care with |
| 2058 | circular inheritance. | 2058 | circular inheritance. |
| 2059 | Examples: | 2059 | Examples: |
| 2060 | '(ps-landscape-mode . nil) | 2060 | (ps-landscape-mode . nil) |
| 2061 | '(ps-spool-duplex . t) | 2061 | (ps-spool-duplex . t) |
| 2062 | '(pr-gs-device . (my-gs-device t)) | 2062 | (pr-gs-device . (my-gs-device t)) |
| 2063 | 2063 | ||
| 2064 | This variable should be modified by customization engine. If this variable is | 2064 | This variable should be modified by customization engine. If this variable is |
| 2065 | modified by other means (for example, a lisp function), use `pr-update-menus' | 2065 | modified by other means (for example, a lisp function), use `pr-update-menus' |
| @@ -2069,14 +2069,14 @@ Examples: | |||
| 2069 | 2069 | ||
| 2070 | * On GNU or Unix system: | 2070 | * On GNU or Unix system: |
| 2071 | 2071 | ||
| 2072 | '((lps_06b \"lpr\" nil \"-P\" \"lps_06b\") | 2072 | ((lps_06b \"lpr\" nil \"-P\" \"lps_06b\") |
| 2073 | (lps_07c \"lpr\" nil nil \"lps_07c\") | 2073 | (lps_07c \"lpr\" nil nil \"lps_07c\") |
| 2074 | (lps_08c nil nil nil \"lps_08c\") | 2074 | (lps_08c nil nil nil \"lps_08c\") |
| 2075 | ) | 2075 | ) |
| 2076 | 2076 | ||
| 2077 | * On Windows system: | 2077 | * On Windows system: |
| 2078 | 2078 | ||
| 2079 | '((lps_06a \"print\" nil \"/D:\" \"\\\\\\\\printers\\\\lps_06a\") | 2079 | ((lps_06a \"print\" nil \"/D:\" \"\\\\\\\\printers\\\\lps_06a\") |
| 2080 | (lps_06b \"print\" nil nil \"\\\\\\\\printers\\\\lps_06b\") | 2080 | (lps_06b \"print\" nil nil \"\\\\\\\\printers\\\\lps_06b\") |
| 2081 | (lps_07c \"print\" nil \"\" \"/D:\\\\\\\\printers\\\\lps_07c\") | 2081 | (lps_07c \"print\" nil \"\" \"/D:\\\\\\\\printers\\\\lps_07c\") |
| 2082 | (lps_08c nil nil nil \"\\\\\\\\printers\\\\lps_08c\") | 2082 | (lps_08c nil nil nil \"\\\\\\\\printers\\\\lps_08c\") |
| @@ -2102,7 +2102,7 @@ Also the gsprint utility comes together with gsview distribution. | |||
| 2102 | As an example of gsprint declaration: | 2102 | As an example of gsprint declaration: |
| 2103 | 2103 | ||
| 2104 | (setq pr-ps-printer-alist | 2104 | (setq pr-ps-printer-alist |
| 2105 | '((A \"gsprint\" (\"-all\" \"-twoup\") \"-printer \" \"lps_015\") | 2105 | \\='((A \"gsprint\" (\"-all\" \"-twoup\") \"-printer \" \"lps_015\") |
| 2106 | (B \"gsprint\" (\"-all\" \"-twoup\") nil \"-printer lps_015\") | 2106 | (B \"gsprint\" (\"-all\" \"-twoup\") nil \"-printer lps_015\") |
| 2107 | ;; some other printer declaration | 2107 | ;; some other printer declaration |
| 2108 | )) | 2108 | )) |
| @@ -2594,9 +2594,9 @@ DEFAULT It's a way to set default values when this entry is selected. | |||
| 2594 | which the current setting inherits the context. Take care with | 2594 | which the current setting inherits the context. Take care with |
| 2595 | circular inheritance. | 2595 | circular inheritance. |
| 2596 | Examples: | 2596 | Examples: |
| 2597 | '(ps-landscape-mode . nil) | 2597 | (ps-landscape-mode . nil) |
| 2598 | '(ps-spool-duplex . t) | 2598 | (ps-spool-duplex . t) |
| 2599 | '(pr-gs-device . (my-gs-device t))" | 2599 | (pr-gs-device . (my-gs-device t))" |
| 2600 | :type '(repeat | 2600 | :type '(repeat |
| 2601 | (list | 2601 | (list |
| 2602 | :tag "" | 2602 | :tag "" |
| @@ -2690,8 +2690,8 @@ Where: | |||
| 2690 | SYMBOL It's a symbol to identify a PostScript utility. It's for | 2690 | SYMBOL It's a symbol to identify a PostScript utility. It's for |
| 2691 | `pr-ps-utility' variable setting and for menu selection. | 2691 | `pr-ps-utility' variable setting and for menu selection. |
| 2692 | Examples: | 2692 | Examples: |
| 2693 | 'mpage | 2693 | mpage |
| 2694 | 'psnup | 2694 | psnup |
| 2695 | 2695 | ||
| 2696 | UTILITY Name of utility for processing a PostScript file. | 2696 | UTILITY Name of utility for processing a PostScript file. |
| 2697 | See also `pr-path-alist'. | 2697 | See also `pr-path-alist'. |
| @@ -2708,7 +2708,7 @@ MUST-SWITCHES List of sexp's to pass as options to the PostScript utility | |||
| 2708 | program and must be placed before any other switches. | 2708 | program and must be placed before any other switches. |
| 2709 | Example: | 2709 | Example: |
| 2710 | . for psnup: | 2710 | . for psnup: |
| 2711 | '(\"-q\") | 2711 | (\"-q\") |
| 2712 | 2712 | ||
| 2713 | PAPERSIZE It's a format string to specify paper size switch. | 2713 | PAPERSIZE It's a format string to specify paper size switch. |
| 2714 | Example: | 2714 | Example: |
| @@ -2752,7 +2752,7 @@ SWITCHES List of sexp's to pass as extra options to the PostScript utility | |||
| 2752 | program. | 2752 | program. |
| 2753 | Example: | 2753 | Example: |
| 2754 | . for psnup | 2754 | . for psnup |
| 2755 | '(\"-q\") | 2755 | (\"-q\") |
| 2756 | nil | 2756 | nil |
| 2757 | 2757 | ||
| 2758 | DEFAULT It's a way to set default values when this entry is selected. | 2758 | DEFAULT It's a way to set default values when this entry is selected. |
| @@ -2772,9 +2772,9 @@ DEFAULT It's a way to set default values when this entry is selected. | |||
| 2772 | which the current setting inherits the context. Take care with | 2772 | which the current setting inherits the context. Take care with |
| 2773 | circular inheritance. | 2773 | circular inheritance. |
| 2774 | Examples: | 2774 | Examples: |
| 2775 | '(pr-file-landscape . nil) | 2775 | (pr-file-landscape . nil) |
| 2776 | '(pr-file-duplex . t) | 2776 | (pr-file-duplex . t) |
| 2777 | '(pr-gs-device . (my-gs-device t)) | 2777 | (pr-gs-device . (my-gs-device t)) |
| 2778 | 2778 | ||
| 2779 | This variable should be modified by customization engine. If this variable is | 2779 | This variable should be modified by customization engine. If this variable is |
| 2780 | modified by other means (for example, a lisp function), use `pr-update-menus' | 2780 | modified by other means (for example, a lisp function), use `pr-update-menus' |
| @@ -2787,14 +2787,14 @@ Examples: | |||
| 2787 | 2787 | ||
| 2788 | * On GNU or Unix system: | 2788 | * On GNU or Unix system: |
| 2789 | 2789 | ||
| 2790 | '((mpage \"mpage\" nil \"-b%s\" \"-%d\" \"-l\" \"-t\" \"-T\" \">\" nil) | 2790 | ((mpage \"mpage\" nil \"-b%s\" \"-%d\" \"-l\" \"-t\" \"-T\" \">\" nil) |
| 2791 | (psnup \"psnup\" (\"-q\") \"-P%s\" \"-%d\" \"-l\" nil nil \" \" nil | 2791 | (psnup \"psnup\" (\"-q\") \"-P%s\" \"-%d\" \"-l\" nil nil \" \" nil |
| 2792 | (pr-file-duplex . nil) (pr-file-tumble . nil)) | 2792 | (pr-file-duplex . nil) (pr-file-tumble . nil)) |
| 2793 | ) | 2793 | ) |
| 2794 | 2794 | ||
| 2795 | * On Windows system: | 2795 | * On Windows system: |
| 2796 | 2796 | ||
| 2797 | '((psnup \"c:/psutils/psnup\" (\"-q\") \"-P%s\" \"-%d\" \"-l\" nil nil \" \" | 2797 | ((psnup \"c:/psutils/psnup\" (\"-q\") \"-P%s\" \"-%d\" \"-l\" nil nil \" \" |
| 2798 | nil (pr-file-duplex . nil) (pr-file-tumble . nil)) | 2798 | nil (pr-file-duplex . nil) (pr-file-tumble . nil)) |
| 2799 | ) | 2799 | ) |
| 2800 | 2800 | ||
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 611ba84e25b..d38a7cd7706 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -171,7 +171,7 @@ is the symbol being selected. | |||
| 171 | 171 | ||
| 172 | Example value: | 172 | Example value: |
| 173 | 173 | ||
| 174 | '((\"Emacs Lisp\" Info-goto-emacs-command-node obarray) | 174 | ((\"Emacs Lisp\" Info-goto-emacs-command-node obarray) |
| 175 | (\"Common Lisp\" common-lisp-hyperspec common-lisp-hyperspec-obarray) | 175 | (\"Common Lisp\" common-lisp-hyperspec common-lisp-hyperspec-obarray) |
| 176 | (\"SCWM\" scwm-documentation scwm-obarray))" | 176 | (\"SCWM\" scwm-documentation scwm-obarray))" |
| 177 | :group 'etags | 177 | :group 'etags |
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index fb4d445b595..845abc09842 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -323,13 +323,13 @@ Hideshow puts a unique overlay on each range of text to be hidden | |||
| 323 | in the buffer. Here is a simple example of how to use this variable: | 323 | in the buffer. Here is a simple example of how to use this variable: |
| 324 | 324 | ||
| 325 | (defun display-code-line-counts (ov) | 325 | (defun display-code-line-counts (ov) |
| 326 | (when (eq 'code (overlay-get ov 'hs)) | 326 | (when (eq \\='code (overlay-get ov \\='hs)) |
| 327 | (overlay-put ov 'display | 327 | (overlay-put ov \\='display |
| 328 | (format \"... / %d\" | 328 | (format \"... / %d\" |
| 329 | (count-lines (overlay-start ov) | 329 | (count-lines (overlay-start ov) |
| 330 | (overlay-end ov)))))) | 330 | (overlay-end ov)))))) |
| 331 | 331 | ||
| 332 | (setq hs-set-up-overlay 'display-code-line-counts) | 332 | (setq hs-set-up-overlay \\='display-code-line-counts) |
| 333 | 333 | ||
| 334 | This example shows how to get information from the overlay as well | 334 | This example shows how to get information from the overlay as well |
| 335 | as how to set its `display' property. See `hs-make-overlay' and | 335 | as how to set its `display' property. See `hs-make-overlay' and |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 18299c7f116..daf919adb2f 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -1571,11 +1571,11 @@ Otherwise, if SELECT is non-nil then only an action is created. | |||
| 1571 | 1571 | ||
| 1572 | Some examples: | 1572 | Some examples: |
| 1573 | No spaces before and 1 after a comma | 1573 | No spaces before and 1 after a comma |
| 1574 | (idlwave-action-and-binding \",\" '(idlwave-surround 0 1)) | 1574 | (idlwave-action-and-binding \",\" \\='(idlwave-surround 0 1)) |
| 1575 | A minimum of 1 space before and after `=' (see `idlwave-expand-equal'). | 1575 | A minimum of 1 space before and after `=' (see `idlwave-expand-equal'). |
| 1576 | (idlwave-action-and-binding \"=\" '(idlwave-expand-equal -1 -1)) | 1576 | (idlwave-action-and-binding \"=\" \\='(idlwave-expand-equal -1 -1)) |
| 1577 | Capitalize system variables - action only | 1577 | Capitalize system variables - action only |
| 1578 | (idlwave-action-and-binding idlwave-sysvar '(capitalize-word 1) t)" | 1578 | (idlwave-action-and-binding idlwave-sysvar \\='(capitalize-word 1) t)" |
| 1579 | (if (not (equal select 'noaction)) | 1579 | (if (not (equal select 'noaction)) |
| 1580 | ;; Add action | 1580 | ;; Add action |
| 1581 | (let* ((table (if select 'idlwave-indent-action-table | 1581 | (let* ((table (if select 'idlwave-indent-action-table |
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 18f445ca5cf..f46c8a99b67 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -2609,8 +2609,8 @@ of the current highlighting list. | |||
| 2609 | 2609 | ||
| 2610 | For example: | 2610 | For example: |
| 2611 | 2611 | ||
| 2612 | (sql-add-product-keywords 'ms | 2612 | (sql-add-product-keywords \\='ms |
| 2613 | '((\"\\\\b\\\\w+_t\\\\b\" . font-lock-type-face))) | 2613 | \\='((\"\\\\b\\\\w+_t\\\\b\" . font-lock-type-face))) |
| 2614 | 2614 | ||
| 2615 | adds a fontification pattern to fontify identifiers ending in | 2615 | adds a fontification pattern to fontify identifiers ending in |
| 2616 | `_t' as data types." | 2616 | `_t' as data types." |
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 76d85c68c99..caae746779e 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el | |||
| @@ -12794,7 +12794,7 @@ Constant signals: | |||
| 12794 | is put into the AUTOSENSE list and is not desired, use the AUTO_CONSTANT | 12794 | is put into the AUTOSENSE list and is not desired, use the AUTO_CONSTANT |
| 12795 | declaration anywhere in the module (parenthesis are required): | 12795 | declaration anywhere in the module (parenthesis are required): |
| 12796 | 12796 | ||
| 12797 | /* AUTO_CONSTANT ( `this_is_really_constant_dont_autosense_it ) */ | 12797 | /* AUTO_CONSTANT ( \\=`this_is_really_constant_dont_autosense_it ) */ |
| 12798 | 12798 | ||
| 12799 | Better yet, use a parameter, which will be understood to be constant | 12799 | Better yet, use a parameter, which will be understood to be constant |
| 12800 | automatically. | 12800 | automatically. |
| @@ -12810,16 +12810,16 @@ OOps! | |||
| 12810 | An example: | 12810 | An example: |
| 12811 | 12811 | ||
| 12812 | always @ (/*AS*/) begin | 12812 | always @ (/*AS*/) begin |
| 12813 | /* AUTO_CONSTANT (`constant) */ | 12813 | /* AUTO_CONSTANT (\\=`constant) */ |
| 12814 | outin = ina | inb | `constant; | 12814 | outin = ina | inb | \\=`constant; |
| 12815 | out = outin; | 12815 | out = outin; |
| 12816 | end | 12816 | end |
| 12817 | 12817 | ||
| 12818 | Typing \\[verilog-auto] will make this into: | 12818 | Typing \\[verilog-auto] will make this into: |
| 12819 | 12819 | ||
| 12820 | always @ (/*AS*/ina or inb) begin | 12820 | always @ (/*AS*/ina or inb) begin |
| 12821 | /* AUTO_CONSTANT (`constant) */ | 12821 | /* AUTO_CONSTANT (\\=`constant) */ |
| 12822 | outin = ina | inb | `constant; | 12822 | outin = ina | inb | \\=`constant; |
| 12823 | out = outin; | 12823 | out = outin; |
| 12824 | end | 12824 | end |
| 12825 | 12825 | ||
| @@ -12827,7 +12827,7 @@ Note in Verilog 2001, you can often get the same result from the new @* | |||
| 12827 | operator. (This was added to the language in part due to AUTOSENSE!) | 12827 | operator. (This was added to the language in part due to AUTOSENSE!) |
| 12828 | 12828 | ||
| 12829 | always @* begin | 12829 | always @* begin |
| 12830 | outin = ina | inb | `constant; | 12830 | outin = ina | inb | \\=`constant; |
| 12831 | out = outin; | 12831 | out = outin; |
| 12832 | end" | 12832 | end" |
| 12833 | (save-excursion | 12833 | (save-excursion |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index faafe9ce87f..218a02a7f6d 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -1953,7 +1953,7 @@ If you set option `ps-selected-pages', first the pages are | |||
| 1953 | filtered by option `ps-selected-pages' and then by `ps-even-or-odd-pages'. | 1953 | filtered by option `ps-selected-pages' and then by `ps-even-or-odd-pages'. |
| 1954 | For example, if we have: | 1954 | For example, if we have: |
| 1955 | 1955 | ||
| 1956 | (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20)) | 1956 | (setq ps-selected-pages \\='(1 4 (6 . 10) (12 . 16) 20)) |
| 1957 | 1957 | ||
| 1958 | Combining with `ps-even-or-odd-pages' and option `ps-n-up-printing', we have: | 1958 | Combining with `ps-even-or-odd-pages' and option `ps-n-up-printing', we have: |
| 1959 | 1959 | ||
| @@ -2249,9 +2249,9 @@ X, Y, XSCALE, YSCALE and ROTATION may be a floating point number, an integer | |||
| 2249 | number or a string. If it is a string, the string should contain PostScript | 2249 | number or a string. If it is a string, the string should contain PostScript |
| 2250 | programming that returns a float or integer value. | 2250 | programming that returns a float or integer value. |
| 2251 | 2251 | ||
| 2252 | For example, if you wish to print an EPS image on all pages do: | 2252 | For example, if you wish to print an EPS image on all pages use: |
| 2253 | 2253 | ||
| 2254 | '((\"~/images/EPS-image.ps\"))" | 2254 | ((\"~/images/EPS-image.ps\"))" |
| 2255 | :type '(repeat | 2255 | :type '(repeat |
| 2256 | (list | 2256 | (list |
| 2257 | (file :tag "EPS File") | 2257 | (file :tag "EPS File") |
| @@ -2300,9 +2300,9 @@ X, Y, FONTSIZE, GRAY and ROTATION may be a floating point number, an integer | |||
| 2300 | number or a string. If it is a string, the string should contain PostScript | 2300 | number or a string. If it is a string, the string should contain PostScript |
| 2301 | programming that returns a float or integer value. | 2301 | programming that returns a float or integer value. |
| 2302 | 2302 | ||
| 2303 | For example, if you wish to print text \"Preliminary\" on all pages do: | 2303 | For example, if you wish to print text \"Preliminary\" on all pages use: |
| 2304 | 2304 | ||
| 2305 | '((\"Preliminary\"))" | 2305 | ((\"Preliminary\"))" |
| 2306 | :type '(repeat | 2306 | :type '(repeat |
| 2307 | (list | 2307 | (list |
| 2308 | (string :tag "Text") | 2308 | (string :tag "Text") |
diff --git a/lisp/server.el b/lisp/server.el index 57c16af0cd5..b16a06e79f0 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -1649,7 +1649,7 @@ only these files will be asked to be saved." | |||
| 1649 | "Contact the Emacs server named SERVER and evaluate FORM there. | 1649 | "Contact the Emacs server named SERVER and evaluate FORM there. |
| 1650 | Returns the result of the evaluation, or signals an error if it | 1650 | Returns the result of the evaluation, or signals an error if it |
| 1651 | cannot contact the specified server. For example: | 1651 | cannot contact the specified server. For example: |
| 1652 | (server-eval-at \"server\" '(emacs-pid)) | 1652 | (server-eval-at \"server\" \\='(emacs-pid)) |
| 1653 | returns the process ID of the Emacs instance running \"server\"." | 1653 | returns the process ID of the Emacs instance running \"server\"." |
| 1654 | (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) | 1654 | (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) |
| 1655 | (server-file (expand-file-name server server-dir)) | 1655 | (server-file (expand-file-name server server-dir)) |
diff --git a/lisp/ses.el b/lisp/ses.el index 0bc43ec8b58..ec1359bbbcb 100644 --- a/lisp/ses.el +++ b/lisp/ses.el | |||
| @@ -1491,11 +1491,11 @@ by (ROWINCR,COLINCR)." | |||
| 1491 | "Produce a copy of FORMULA where all symbols that refer to cells in row | 1491 | "Produce a copy of FORMULA where all symbols that refer to cells in row |
| 1492 | STARTROW or above, and col STARTCOL or above, are altered by adding ROWINCR | 1492 | STARTROW or above, and col STARTCOL or above, are altered by adding ROWINCR |
| 1493 | and COLINCR. STARTROW and STARTCOL are 0-based. Example: | 1493 | and COLINCR. STARTROW and STARTCOL are 0-based. Example: |
| 1494 | (ses-relocate-formula '(+ A1 B2 D3) 1 2 1 -1) | 1494 | (ses-relocate-formula \\='(+ A1 B2 D3) 1 2 1 -1) |
| 1495 | => (+ A1 B2 C4) | 1495 | => (+ A1 B2 C4) |
| 1496 | If ROWINCR or COLINCR is negative, references to cells being deleted are | 1496 | If ROWINCR or COLINCR is negative, references to cells being deleted are |
| 1497 | removed. Example: | 1497 | removed. Example: |
| 1498 | (ses-relocate-formula '(+ A1 B2 D3) 0 1 0 -1) | 1498 | (ses-relocate-formula \\='(+ A1 B2 D3) 0 1 0 -1) |
| 1499 | => (+ A1 C3) | 1499 | => (+ A1 C3) |
| 1500 | Sets `ses-relocate-return' to 'delete if cell-references were removed." | 1500 | Sets `ses-relocate-return' to 'delete if cell-references were removed." |
| 1501 | (let (rowcol result) | 1501 | (let (rowcol result) |
diff --git a/lisp/simple.el b/lisp/simple.el index 6f76d755292..b8d4e741775 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1711,9 +1711,13 @@ The argument SPECIAL, if non-nil, means that this command is executing | |||
| 1711 | a special event, so ignore the prefix argument and don't clear it." | 1711 | a special event, so ignore the prefix argument and don't clear it." |
| 1712 | (setq debug-on-next-call nil) | 1712 | (setq debug-on-next-call nil) |
| 1713 | (let ((prefixarg (unless special | 1713 | (let ((prefixarg (unless special |
| 1714 | ;; FIXME: This should probably be done around | ||
| 1715 | ;; pre-command-hook rather than here! | ||
| 1714 | (prog1 prefix-arg | 1716 | (prog1 prefix-arg |
| 1715 | (setq current-prefix-arg prefix-arg) | 1717 | (setq current-prefix-arg prefix-arg) |
| 1716 | (setq prefix-arg nil))))) | 1718 | (setq prefix-arg nil) |
| 1719 | (when current-prefix-arg | ||
| 1720 | (prefix-command-update)))))) | ||
| 1717 | (if (and (symbolp cmd) | 1721 | (if (and (symbolp cmd) |
| 1718 | (get cmd 'disabled) | 1722 | (get cmd 'disabled) |
| 1719 | disabled-command-function) | 1723 | disabled-command-function) |
| @@ -3626,6 +3630,73 @@ see other processes running on the system, use `list-system-processes'." | |||
| 3626 | (display-buffer buffer) | 3630 | (display-buffer buffer) |
| 3627 | nil) | 3631 | nil) |
| 3628 | 3632 | ||
| 3633 | ;;;; Prefix commands | ||
| 3634 | |||
| 3635 | (setq prefix-command--needs-update nil) | ||
| 3636 | (setq prefix-command--last-echo nil) | ||
| 3637 | |||
| 3638 | (defun internal-echo-keystrokes-prefix () | ||
| 3639 | ;; BEWARE: Called directly from the C code. | ||
| 3640 | (if (not prefix-command--needs-update) | ||
| 3641 | prefix-command--last-echo | ||
| 3642 | (setq prefix-command--last-echo | ||
| 3643 | (let ((strs nil)) | ||
| 3644 | (run-hook-wrapped 'prefix-command-echo-keystrokes-functions | ||
| 3645 | (lambda (fun) (push (funcall fun) strs))) | ||
| 3646 | (setq strs (delq nil strs)) | ||
| 3647 | (when strs (mapconcat #'identity strs " ")))))) | ||
| 3648 | |||
| 3649 | (defvar prefix-command-echo-keystrokes-functions nil | ||
| 3650 | "Abnormal hook which constructs the description of the current prefix state. | ||
| 3651 | Each function is called with no argument, should return a string or nil.") | ||
| 3652 | |||
| 3653 | (defun prefix-command-update () | ||
| 3654 | "Update state of prefix commands. | ||
| 3655 | Call it whenever you change the \"prefix command state\"." | ||
| 3656 | (setq prefix-command--needs-update t)) | ||
| 3657 | |||
| 3658 | (defvar prefix-command-preserve-state-hook nil | ||
| 3659 | "Normal hook run when a command needs to preserve the prefix.") | ||
| 3660 | |||
| 3661 | (defun prefix-command-preserve-state () | ||
| 3662 | "Pass the current prefix command state to the next command. | ||
| 3663 | Should be called by all prefix commands. | ||
| 3664 | Runs `prefix-command-preserve-state-hook'." | ||
| 3665 | (run-hooks 'prefix-command-preserve-state-hook) | ||
| 3666 | ;; If the current command is a prefix command, we don't want the next (real) | ||
| 3667 | ;; command to have `last-command' set to, say, `universal-argument'. | ||
| 3668 | (setq this-command last-command) | ||
| 3669 | (setq real-this-command real-last-command) | ||
| 3670 | (prefix-command-update)) | ||
| 3671 | |||
| 3672 | (defun reset-this-command-lengths () | ||
| 3673 | (declare (obsolete prefix-command-preserve-state "25.1")) | ||
| 3674 | nil) | ||
| 3675 | |||
| 3676 | ;;;;; The main prefix command. | ||
| 3677 | |||
| 3678 | ;; FIXME: Declaration of `prefix-arg' should be moved here!? | ||
| 3679 | |||
| 3680 | (add-hook 'prefix-command-echo-keystrokes-functions | ||
| 3681 | #'universal-argument--description) | ||
| 3682 | (defun universal-argument--description () | ||
| 3683 | (when prefix-arg | ||
| 3684 | (concat "C-u" | ||
| 3685 | (pcase prefix-arg | ||
| 3686 | (`(-) " -") | ||
| 3687 | (`(,(and (pred integerp) n)) | ||
| 3688 | (let ((str "")) | ||
| 3689 | (while (and (> n 4) (= (mod n 4) 0)) | ||
| 3690 | (setq str (concat str " C-u")) | ||
| 3691 | (setq n (/ n 4))) | ||
| 3692 | (if (= n 4) str (format " %s" prefix-arg)))) | ||
| 3693 | (_ (format " %s" prefix-arg)))))) | ||
| 3694 | |||
| 3695 | (add-hook 'prefix-command-preserve-state-hook | ||
| 3696 | #'universal-argument--preserve) | ||
| 3697 | (defun universal-argument--preserve () | ||
| 3698 | (setq prefix-arg current-prefix-arg)) | ||
| 3699 | |||
| 3629 | (defvar universal-argument-map | 3700 | (defvar universal-argument-map |
| 3630 | (let ((map (make-sparse-keymap)) | 3701 | (let ((map (make-sparse-keymap)) |
| 3631 | (universal-argument-minus | 3702 | (universal-argument-minus |
| @@ -3664,7 +3735,8 @@ see other processes running on the system, use `list-system-processes'." | |||
| 3664 | "Keymap used while processing \\[universal-argument].") | 3735 | "Keymap used while processing \\[universal-argument].") |
| 3665 | 3736 | ||
| 3666 | (defun universal-argument--mode () | 3737 | (defun universal-argument--mode () |
| 3667 | (set-transient-map universal-argument-map)) | 3738 | (prefix-command-update) |
| 3739 | (set-transient-map universal-argument-map nil)) | ||
| 3668 | 3740 | ||
| 3669 | (defun universal-argument () | 3741 | (defun universal-argument () |
| 3670 | "Begin a numeric argument for the following command. | 3742 | "Begin a numeric argument for the following command. |
| @@ -3677,6 +3749,7 @@ For some commands, just \\[universal-argument] by itself serves as a flag | |||
| 3677 | which is different in effect from any particular numeric argument. | 3749 | which is different in effect from any particular numeric argument. |
| 3678 | These commands include \\[set-mark-command] and \\[start-kbd-macro]." | 3750 | These commands include \\[set-mark-command] and \\[start-kbd-macro]." |
| 3679 | (interactive) | 3751 | (interactive) |
| 3752 | (prefix-command-preserve-state) | ||
| 3680 | (setq prefix-arg (list 4)) | 3753 | (setq prefix-arg (list 4)) |
| 3681 | (universal-argument--mode)) | 3754 | (universal-argument--mode)) |
| 3682 | 3755 | ||
| @@ -3684,6 +3757,7 @@ These commands include \\[set-mark-command] and \\[start-kbd-macro]." | |||
| 3684 | ;; A subsequent C-u means to multiply the factor by 4 if we've typed | 3757 | ;; A subsequent C-u means to multiply the factor by 4 if we've typed |
| 3685 | ;; nothing but C-u's; otherwise it means to terminate the prefix arg. | 3758 | ;; nothing but C-u's; otherwise it means to terminate the prefix arg. |
| 3686 | (interactive "P") | 3759 | (interactive "P") |
| 3760 | (prefix-command-preserve-state) | ||
| 3687 | (setq prefix-arg (if (consp arg) | 3761 | (setq prefix-arg (if (consp arg) |
| 3688 | (list (* 4 (car arg))) | 3762 | (list (* 4 (car arg))) |
| 3689 | (if (eq arg '-) | 3763 | (if (eq arg '-) |
| @@ -3695,6 +3769,7 @@ These commands include \\[set-mark-command] and \\[start-kbd-macro]." | |||
| 3695 | "Begin a negative numeric argument for the next command. | 3769 | "Begin a negative numeric argument for the next command. |
| 3696 | \\[universal-argument] following digits or minus sign ends the argument." | 3770 | \\[universal-argument] following digits or minus sign ends the argument." |
| 3697 | (interactive "P") | 3771 | (interactive "P") |
| 3772 | (prefix-command-preserve-state) | ||
| 3698 | (setq prefix-arg (cond ((integerp arg) (- arg)) | 3773 | (setq prefix-arg (cond ((integerp arg) (- arg)) |
| 3699 | ((eq arg '-) nil) | 3774 | ((eq arg '-) nil) |
| 3700 | (t '-))) | 3775 | (t '-))) |
| @@ -3704,6 +3779,7 @@ These commands include \\[set-mark-command] and \\[start-kbd-macro]." | |||
| 3704 | "Part of the numeric argument for the next command. | 3779 | "Part of the numeric argument for the next command. |
| 3705 | \\[universal-argument] following digits or minus sign ends the argument." | 3780 | \\[universal-argument] following digits or minus sign ends the argument." |
| 3706 | (interactive "P") | 3781 | (interactive "P") |
| 3782 | (prefix-command-preserve-state) | ||
| 3707 | (let* ((char (if (integerp last-command-event) | 3783 | (let* ((char (if (integerp last-command-event) |
| 3708 | last-command-event | 3784 | last-command-event |
| 3709 | (get last-command-event 'ascii-character))) | 3785 | (get last-command-event 'ascii-character))) |
diff --git a/lisp/startup.el b/lisp/startup.el index 8c63ed263c2..b5e258f56c0 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -803,6 +803,15 @@ to prepare for opening the first frame (e.g. open a connection to an X server)." | |||
| 803 | (defvar server-name) | 803 | (defvar server-name) |
| 804 | (defvar server-process) | 804 | (defvar server-process) |
| 805 | 805 | ||
| 806 | (defun startup--setup-quote-display () | ||
| 807 | "If curved quotes don't work, display ASCII approximations." | ||
| 808 | (dolist (char-repl '((?‘ . ?\`) (?’ . ?\') (?“ . ?\") (?” . ?\"))) | ||
| 809 | (when (not (char-displayable-p (car char-repl))) | ||
| 810 | (unless standard-display-table | ||
| 811 | (setq standard-display-table (make-display-table))) | ||
| 812 | (aset standard-display-table (car char-repl) | ||
| 813 | (vector (make-glyph-code (cdr char-repl) 'shadow)))))) | ||
| 814 | |||
| 806 | (defun command-line () | 815 | (defun command-line () |
| 807 | "A subroutine of `normal-top-level'. | 816 | "A subroutine of `normal-top-level'. |
| 808 | Amongst another things, it parses the command-line arguments." | 817 | Amongst another things, it parses the command-line arguments." |
| @@ -1017,13 +1026,9 @@ please check its value") | |||
| 1017 | '("no" "off" "false" "0"))))) | 1026 | '("no" "off" "false" "0"))))) |
| 1018 | (setq no-blinking-cursor t)) | 1027 | (setq no-blinking-cursor t)) |
| 1019 | 1028 | ||
| 1020 | ;; If curved quotes don't work, display ASCII approximations. | 1029 | (unless noninteractive |
| 1021 | (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) | 1030 | (startup--setup-quote-display) |
| 1022 | (when (not (char-displayable-p (car char-repl))) | 1031 | (setq internal--text-quoting-flag t)) |
| 1023 | (or standard-display-table | ||
| 1024 | (setq standard-display-table (make-display-table))) | ||
| 1025 | (aset standard-display-table (car char-repl) (cdr char-repl)))) | ||
| 1026 | (setq internal--text-quoting-flag t) | ||
| 1027 | 1032 | ||
| 1028 | ;; Re-evaluate predefined variables whose initial value depends on | 1033 | ;; Re-evaluate predefined variables whose initial value depends on |
| 1029 | ;; the runtime context. | 1034 | ;; the runtime context. |
diff --git a/lisp/term/w32console.el b/lisp/term/w32console.el index 2df137839d0..58856858502 100644 --- a/lisp/term/w32console.el +++ b/lisp/term/w32console.el | |||
| @@ -68,12 +68,7 @@ | |||
| 68 | (if oem-o-cs-p oem-code-page-output-coding oem-code-page-coding)) | 68 | (if oem-o-cs-p oem-code-page-output-coding oem-code-page-coding)) |
| 69 | ;; Since we changed the terminal encoding, we need to repeat | 69 | ;; Since we changed the terminal encoding, we need to repeat |
| 70 | ;; the test for Unicode quotes being displayable. | 70 | ;; the test for Unicode quotes being displayable. |
| 71 | (dolist (char-repl | 71 | (startup--setup-quote-display))) |
| 72 | '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) | ||
| 73 | (when (not (char-displayable-p (car char-repl))) | ||
| 74 | (or standard-display-table | ||
| 75 | (setq standard-display-table (make-display-table))) | ||
| 76 | (aset standard-display-table (car char-repl) (cdr char-repl)))))) | ||
| 77 | (let* ((colors w32-tty-standard-colors) | 72 | (let* ((colors w32-tty-standard-colors) |
| 78 | (color (car colors))) | 73 | (color (car colors))) |
| 79 | (tty-color-clear) | 74 | (tty-color-clear) |
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 93b31d5c86c..9c50eca6419 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -3349,17 +3349,17 @@ Example: | |||
| 3349 | (progn | 3349 | (progn |
| 3350 | (table-insert 16 3 5 1) | 3350 | (table-insert 16 3 5 1) |
| 3351 | (table-forward-cell 15) | 3351 | (table-forward-cell 15) |
| 3352 | (table-insert-sequence \"D0\" -16 1 1 'center) | 3352 | (table-insert-sequence \"D0\" -16 1 1 \\='center) |
| 3353 | (table-forward-cell 16) | 3353 | (table-forward-cell 16) |
| 3354 | (table-insert-sequence \"A[0]\" -16 1 1 'center) | 3354 | (table-insert-sequence \"A[0]\" -16 1 1 \\='center) |
| 3355 | (table-forward-cell 1) | 3355 | (table-forward-cell 1) |
| 3356 | (table-insert-sequence \"-\" 16 0 1 'center)) | 3356 | (table-insert-sequence \"-\" 16 0 1 \\='center)) |
| 3357 | 3357 | ||
| 3358 | (progn | 3358 | (progn |
| 3359 | (table-insert 16 8 5 1) | 3359 | (table-insert 16 8 5 1) |
| 3360 | (table-insert-sequence \"@\" 0 1 2 'right) | 3360 | (table-insert-sequence \"@\" 0 1 2 \\='right) |
| 3361 | (table-forward-cell 1) | 3361 | (table-forward-cell 1) |
| 3362 | (table-insert-sequence \"64\" 0 1 2 'left))" | 3362 | (table-insert-sequence \"64\" 0 1 2 \\='left))" |
| 3363 | (interactive | 3363 | (interactive |
| 3364 | (progn | 3364 | (progn |
| 3365 | (barf-if-buffer-read-only) | 3365 | (barf-if-buffer-read-only) |
diff --git a/lisp/textmodes/tildify.el b/lisp/textmodes/tildify.el index 4e385a0fbd3..c94e417a7ea 100644 --- a/lisp/textmodes/tildify.el +++ b/lisp/textmodes/tildify.el | |||
| @@ -291,8 +291,8 @@ BEG argument is ignored. | |||
| 291 | This function is meant to be used to set `tildify-foreach-region-function' | 291 | This function is meant to be used to set `tildify-foreach-region-function' |
| 292 | variable. For example, for an XML file one might use: | 292 | variable. For example, for an XML file one might use: |
| 293 | (setq-local tildify-foreach-region-function | 293 | (setq-local tildify-foreach-region-function |
| 294 | (apply-partially 'tildify-foreach-ignore-environments | 294 | (apply-partially \\='tildify-foreach-ignore-environments |
| 295 | '((\"<! *--\" . \"-- *>\") (\"<\" . \">\"))))" | 295 | \\='((\"<! *--\" . \"-- *>\") (\"<\" . \">\"))))" |
| 296 | (let ((beg-re (concat "\\(?:" (mapconcat 'car pairs "\\)\\|\\(?:") "\\)")) | 296 | (let ((beg-re (concat "\\(?:" (mapconcat 'car pairs "\\)\\|\\(?:") "\\)")) |
| 297 | p end-re) | 297 | p end-re) |
| 298 | (save-excursion | 298 | (save-excursion |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 9522328cae8..50c6d96e911 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -248,26 +248,30 @@ matching the resulting Git log output, and KEYWORDS is a list of | |||
| 248 | (vc-git--state-code diff-letter))) | 248 | (vc-git--state-code diff-letter))) |
| 249 | (if (vc-git--empty-db-p) 'added 'up-to-date)))) | 249 | (if (vc-git--empty-db-p) 'added 'up-to-date)))) |
| 250 | 250 | ||
| 251 | (defun vc-git-working-revision (file) | 251 | (defun vc-git-working-revision (_file) |
| 252 | "Git-specific version of `vc-working-revision'." | 252 | "Git-specific version of `vc-working-revision'." |
| 253 | (let* (process-file-side-effects | 253 | (let (process-file-side-effects) |
| 254 | (str (vc-git--run-command-string nil "symbolic-ref" "HEAD"))) | 254 | (vc-git--rev-parse "HEAD"))) |
| 255 | (vc-file-setprop file 'vc-git-detached (null str)) | 255 | |
| 256 | (if str | 256 | (defun vc-git--symbolic-ref (file) |
| 257 | (if (string-match "^\\(refs/heads/\\)?\\(.+\\)$" str) | 257 | (or |
| 258 | (match-string 2 str) | 258 | (vc-file-getprop file 'vc-git-symbolic-ref) |
| 259 | str) | 259 | (let* (process-file-side-effects |
| 260 | (vc-git--rev-parse "HEAD")))) | 260 | (str (vc-git--run-command-string nil "symbolic-ref" "HEAD"))) |
| 261 | (vc-file-setprop file 'vc-git-symbolic-ref | ||
| 262 | (if str | ||
| 263 | (if (string-match "^\\(refs/heads/\\)?\\(.+\\)$" str) | ||
| 264 | (match-string 2 str) | ||
| 265 | str)))))) | ||
| 261 | 266 | ||
| 262 | (defun vc-git-mode-line-string (file) | 267 | (defun vc-git-mode-line-string (file) |
| 263 | "Return a string for `vc-mode-line' to put in the mode line for FILE." | 268 | "Return a string for `vc-mode-line' to put in the mode line for FILE." |
| 264 | (let* ((rev (vc-working-revision file)) | 269 | (let* ((rev (vc-working-revision file)) |
| 265 | (detached (vc-file-getprop file 'vc-git-detached)) | 270 | (disp-rev (or (vc-git--symbolic-ref file) |
| 271 | (substring rev 0 7))) | ||
| 266 | (def-ml (vc-default-mode-line-string 'Git file)) | 272 | (def-ml (vc-default-mode-line-string 'Git file)) |
| 267 | (help-echo (get-text-property 0 'help-echo def-ml))) | 273 | (help-echo (get-text-property 0 'help-echo def-ml))) |
| 268 | (propertize (if detached | 274 | (propertize (replace-regexp-in-string (concat rev "\\'") disp-rev def-ml t t) |
| 269 | (substring def-ml 0 (- 7 (length rev))) | ||
| 270 | def-ml) | ||
| 271 | 'help-echo (concat help-echo "\nCurrent revision: " rev)))) | 275 | 'help-echo (concat help-echo "\nCurrent revision: " rev)))) |
| 272 | 276 | ||
| 273 | (cl-defstruct (vc-git-extra-fileinfo | 277 | (cl-defstruct (vc-git-extra-fileinfo |
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index bae991936b5..e674f0e4d4e 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el | |||
| @@ -790,8 +790,9 @@ current, and kill the buffer that visits the link." | |||
| 790 | (defun vc-default-find-file-hook (_backend) | 790 | (defun vc-default-find-file-hook (_backend) |
| 791 | nil) | 791 | nil) |
| 792 | 792 | ||
| 793 | (defun vc-find-file-hook () | 793 | (defun vc-refresh-state () |
| 794 | "Function for `find-file-hook' activating VC mode if appropriate." | 794 | "Activate or deactivate VC mode as appropriate." |
| 795 | (interactive) | ||
| 795 | ;; Recompute whether file is version controlled, | 796 | ;; Recompute whether file is version controlled, |
| 796 | ;; if user has killed the buffer and revisited. | 797 | ;; if user has killed the buffer and revisited. |
| 797 | (when vc-mode | 798 | (when vc-mode |
| @@ -838,18 +839,19 @@ current, and kill the buffer that visits the link." | |||
| 838 | 839 | ||
| 839 | (vc-follow-link) | 840 | (vc-follow-link) |
| 840 | (message "Followed link to %s" buffer-file-name) | 841 | (message "Followed link to %s" buffer-file-name) |
| 841 | (vc-find-file-hook)) | 842 | (vc-refresh-state)) |
| 842 | (t | 843 | (t |
| 843 | (if (yes-or-no-p (format | 844 | (if (yes-or-no-p (format |
| 844 | "Symbolic link to %s-controlled source file; follow link? " link-type)) | 845 | "Symbolic link to %s-controlled source file; follow link? " link-type)) |
| 845 | (progn (vc-follow-link) | 846 | (progn (vc-follow-link) |
| 846 | (message "Followed link to %s" buffer-file-name) | 847 | (message "Followed link to %s" buffer-file-name) |
| 847 | (vc-find-file-hook)) | 848 | (vc-refresh-state)) |
| 848 | (message | 849 | (message |
| 849 | "Warning: editing through the link bypasses version control") | 850 | "Warning: editing through the link bypasses version control") |
| 850 | ))))))))) | 851 | ))))))))) |
| 851 | 852 | ||
| 852 | (add-hook 'find-file-hook 'vc-find-file-hook) | 853 | (add-hook 'find-file-hook #'vc-refresh-state) |
| 854 | (define-obsolete-function-alias 'vc-find-file-hook 'vc-refresh-state "25.1") | ||
| 853 | 855 | ||
| 854 | (defun vc-kill-buffer-hook () | 856 | (defun vc-kill-buffer-hook () |
| 855 | "Discard VC info about a file when we kill its buffer." | 857 | "Discard VC info about a file when we kill its buffer." |
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 0c8f4af58e1..b64de4759d7 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -3477,10 +3477,10 @@ themselves. A list, for example, is defined as either nil, or a cons | |||
| 3477 | cell whose cdr itself is a list. The obvious way to translate this | 3477 | cell whose cdr itself is a list. The obvious way to translate this |
| 3478 | into a widget type would be | 3478 | into a widget type would be |
| 3479 | 3479 | ||
| 3480 | (define-widget 'my-list 'choice | 3480 | (define-widget \\='my-list \\='choice |
| 3481 | \"A list of sexps.\" | 3481 | \"A list of sexps.\" |
| 3482 | :tag \"Sexp list\" | 3482 | :tag \"Sexp list\" |
| 3483 | :args '((const nil) (cons :value (nil) sexp my-list))) | 3483 | :args \\='((const nil) (cons :value (nil) sexp my-list))) |
| 3484 | 3484 | ||
| 3485 | Here we attempt to define my-list as a choice of either the constant | 3485 | Here we attempt to define my-list as a choice of either the constant |
| 3486 | nil, or a cons-cell containing a sexp and my-lisp. This will not work | 3486 | nil, or a cons-cell containing a sexp and my-lisp. This will not work |
| @@ -3489,10 +3489,10 @@ because the `choice' widget does not allow recursion. | |||
| 3489 | Using the `lazy' widget you can overcome this problem, as in this | 3489 | Using the `lazy' widget you can overcome this problem, as in this |
| 3490 | example: | 3490 | example: |
| 3491 | 3491 | ||
| 3492 | (define-widget 'sexp-list 'lazy | 3492 | (define-widget \\='sexp-list \\='lazy |
| 3493 | \"A list of sexps.\" | 3493 | \"A list of sexps.\" |
| 3494 | :tag \"Sexp list\" | 3494 | :tag \"Sexp list\" |
| 3495 | :type '(choice (const nil) (cons :value (nil) sexp sexp-list)))" | 3495 | :type \\='(choice (const nil) (cons :value (nil) sexp sexp-list)))" |
| 3496 | :format "%{%t%}: %v" | 3496 | :format "%{%t%}: %v" |
| 3497 | ;; We don't convert :type because we want to allow recursive | 3497 | ;; We don't convert :type because we want to allow recursive |
| 3498 | ;; data structures. This is slow, so we should not create speed | 3498 | ;; data structures. This is slow, so we should not create speed |