diff options
220 files changed, 1340 insertions, 1349 deletions
diff --git a/admin/admin.el b/admin/admin.el index 1cad7ae2776..3fc50afe9f0 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -657,7 +657,7 @@ style=\"text-align:left\">") | |||
| 657 | 657 | ||
| 658 | 658 | ||
| 659 | (defconst make-manuals-dist-output-variables | 659 | (defconst make-manuals-dist-output-variables |
| 660 | `(("@\\(top_\\)?srcdir@" . ".") ; top_srcdir is wrong, but not used | 660 | '(("@\\(top_\\)?srcdir@" . ".") ; top_srcdir is wrong, but not used |
| 661 | ("^\\(\\(?:texinfo\\|buildinfo\\|emacs\\)dir *=\\).*" . "\\1 .") | 661 | ("^\\(\\(?:texinfo\\|buildinfo\\|emacs\\)dir *=\\).*" . "\\1 .") |
| 662 | ("^\\(clean:.*\\)" . "\\1 infoclean") | 662 | ("^\\(clean:.*\\)" . "\\1 infoclean") |
| 663 | ("@MAKEINFO@" . "makeinfo") | 663 | ("@MAKEINFO@" . "makeinfo") |
diff --git a/lisp/apropos.el b/lisp/apropos.el index b774036261b..a13a0c25359 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -688,12 +688,12 @@ the output includes key-bindings of commands." | |||
| 688 | (dolist (x (cdr lh-entry)) | 688 | (dolist (x (cdr lh-entry)) |
| 689 | (pcase (car-safe x) | 689 | (pcase (car-safe x) |
| 690 | ;; (autoload (push (cdr x) autoloads)) | 690 | ;; (autoload (push (cdr x) autoloads)) |
| 691 | (`require (push (cdr x) requires)) | 691 | ('require (push (cdr x) requires)) |
| 692 | (`provide (push (cdr x) provides)) | 692 | ('provide (push (cdr x) provides)) |
| 693 | (`t nil) ; Skip "was an autoload" entries. | 693 | ('t nil) ; Skip "was an autoload" entries. |
| 694 | ;; FIXME: Print information about each individual method: both | 694 | ;; FIXME: Print information about each individual method: both |
| 695 | ;; its docstring and specializers (bug#21422). | 695 | ;; its docstring and specializers (bug#21422). |
| 696 | (`cl-defmethod (push (cadr x) provides)) | 696 | ('cl-defmethod (push (cadr x) provides)) |
| 697 | (_ (push (or (cdr-safe x) x) symbols)))) | 697 | (_ (push (or (cdr-safe x) x) symbols)))) |
| 698 | (let ((apropos-pattern "")) ;Dummy binding for apropos-symbols-internal. | 698 | (let ((apropos-pattern "")) ;Dummy binding for apropos-symbols-internal. |
| 699 | (apropos-symbols-internal | 699 | (apropos-symbols-internal |
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 50048c0cb39..068702bc71b 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -2066,7 +2066,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself." | |||
| 2066 | ;; The code below assumes the name is relative and may do undesirable | 2066 | ;; The code below assumes the name is relative and may do undesirable |
| 2067 | ;; things otherwise. | 2067 | ;; things otherwise. |
| 2068 | (error "Can't extract files with non-relative names") | 2068 | (error "Can't extract files with non-relative names") |
| 2069 | (archive-extract-by-file archive name `("unar" "-no-directory" "-o") "Successfully extracted"))) | 2069 | (archive-extract-by-file archive name '("unar" "-no-directory" "-o") "Successfully extracted"))) |
| 2070 | 2070 | ||
| 2071 | ;;; Section: Rar self-extracting .exe archives. | 2071 | ;;; Section: Rar self-extracting .exe archives. |
| 2072 | 2072 | ||
diff --git a/lisp/auth-source.el b/lisp/auth-source.el index fd529b392ab..fda6cfc34b8 100644 --- a/lisp/auth-source.el +++ b/lisp/auth-source.el | |||
| @@ -167,7 +167,7 @@ let-binding." | |||
| 167 | (defcustom auth-source-save-behavior 'ask | 167 | (defcustom auth-source-save-behavior 'ask |
| 168 | "If set, auth-source will respect it for save behavior." | 168 | "If set, auth-source will respect it for save behavior." |
| 169 | :version "23.2" ;; No Gnus | 169 | :version "23.2" ;; No Gnus |
| 170 | :type `(choice | 170 | :type '(choice |
| 171 | :tag "auth-source new token save behavior" | 171 | :tag "auth-source new token save behavior" |
| 172 | (const :tag "Always save" t) | 172 | (const :tag "Always save" t) |
| 173 | (const :tag "Never save" nil) | 173 | (const :tag "Never save" nil) |
| @@ -200,7 +200,7 @@ Note that if EPA/EPG is not available, this should NOT be used." | |||
| 200 | (defcustom auth-source-do-cache t | 200 | (defcustom auth-source-do-cache t |
| 201 | "Whether auth-source should cache information with `password-cache'." | 201 | "Whether auth-source should cache information with `password-cache'." |
| 202 | :version "23.2" ;; No Gnus | 202 | :version "23.2" ;; No Gnus |
| 203 | :type `boolean) | 203 | :type 'boolean) |
| 204 | 204 | ||
| 205 | (defcustom auth-source-debug nil | 205 | (defcustom auth-source-debug nil |
| 206 | "Whether auth-source should log debug messages. | 206 | "Whether auth-source should log debug messages. |
| @@ -214,7 +214,7 @@ for passwords). | |||
| 214 | If the value is a function, debug messages are logged by calling | 214 | If the value is a function, debug messages are logged by calling |
| 215 | that function using the same arguments as `message'." | 215 | that function using the same arguments as `message'." |
| 216 | :version "23.2" ;; No Gnus | 216 | :version "23.2" ;; No Gnus |
| 217 | :type `(choice | 217 | :type '(choice |
| 218 | :tag "auth-source debugging mode" | 218 | :tag "auth-source debugging mode" |
| 219 | (const :tag "Log using `message' to the *Messages* buffer" t) | 219 | (const :tag "Log using `message' to the *Messages* buffer" t) |
| 220 | (const :tag "Log all trivia with `message' to the *Messages* buffer" | 220 | (const :tag "Log all trivia with `message' to the *Messages* buffer" |
diff --git a/lisp/avoid.el b/lisp/avoid.el index 5e99dd8eba8..f5519e94932 100644 --- a/lisp/avoid.el +++ b/lisp/avoid.el | |||
| @@ -205,8 +205,8 @@ If you want the mouse banished to a different corner set | |||
| 205 | 'frame-or-window | 205 | 'frame-or-window |
| 206 | mouse-avoidance-banish-position 'eq)) | 206 | mouse-avoidance-banish-position 'eq)) |
| 207 | (list-values (pcase fra-or-win | 207 | (list-values (pcase fra-or-win |
| 208 | (`frame (list 0 0 (frame-width) (frame-height))) | 208 | ('frame (list 0 0 (frame-width) (frame-height))) |
| 209 | (`window (window-edges)))) | 209 | ('window (window-edges)))) |
| 210 | (alist (cl-loop for v in list-values | 210 | (alist (cl-loop for v in list-values |
| 211 | for k in '(left top right bottom) | 211 | for k in '(left top right bottom) |
| 212 | collect (cons k v))) | 212 | collect (cons k v))) |
| @@ -223,11 +223,11 @@ If you want the mouse banished to a different corner set | |||
| 223 | 'top-or-bottom-pos | 223 | 'top-or-bottom-pos |
| 224 | mouse-avoidance-banish-position #'eq)) | 224 | mouse-avoidance-banish-position #'eq)) |
| 225 | (side-fn (pcase side | 225 | (side-fn (pcase side |
| 226 | (`left '+) | 226 | ('left '+) |
| 227 | (`right '-))) | 227 | ('right '-))) |
| 228 | (top-or-bottom-fn (pcase top-or-bottom | 228 | (top-or-bottom-fn (pcase top-or-bottom |
| 229 | (`top '+) | 229 | ('top '+) |
| 230 | (`bottom '-)))) | 230 | ('bottom '-)))) |
| 231 | (cons (funcall side-fn ; -/+ | 231 | (cons (funcall side-fn ; -/+ |
| 232 | (assoc-default side alist 'eq) ; right or left | 232 | (assoc-default side alist 'eq) ; right or left |
| 233 | side-dist) ; distance from side | 233 | side-dist) ; distance from side |
diff --git a/lisp/bindings.el b/lisp/bindings.el index bc4e741d01b..10c4ae50a99 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -417,7 +417,7 @@ zero, otherwise they start from one." | |||
| 417 | This option specifies both the field width and the type of offset | 417 | This option specifies both the field width and the type of offset |
| 418 | displayed in `mode-line-position', a component of the default | 418 | displayed in `mode-line-position', a component of the default |
| 419 | `mode-line-format'." | 419 | `mode-line-format'." |
| 420 | :type `(radio | 420 | :type '(radio |
| 421 | (const :tag "nil: No offset is displayed" nil) | 421 | (const :tag "nil: No offset is displayed" nil) |
| 422 | (const :tag "\"%o\": Proportion of \"travel\" of the window through the buffer" | 422 | (const :tag "\"%o\": Proportion of \"travel\" of the window through the buffer" |
| 423 | (-3 "%o")) | 423 | (-3 "%o")) |
| @@ -724,11 +724,11 @@ okay. See `mode-line-format'.") | |||
| 724 | ;; FIXME: Maybe beginning-of-line, beginning-of-buffer, end-of-line, | 724 | ;; FIXME: Maybe beginning-of-line, beginning-of-buffer, end-of-line, |
| 725 | ;; end-of-buffer, end-of-file, buffer-read-only, and | 725 | ;; end-of-buffer, end-of-file, buffer-read-only, and |
| 726 | ;; file-supersession should all be user-errors! | 726 | ;; file-supersession should all be user-errors! |
| 727 | `(beginning-of-line beginning-of-buffer end-of-line | 727 | '(beginning-of-line beginning-of-buffer end-of-line |
| 728 | end-of-buffer end-of-file buffer-read-only | 728 | end-of-buffer end-of-file buffer-read-only |
| 729 | file-supersession mark-inactive | 729 | file-supersession mark-inactive |
| 730 | user-error ;; That's the main one! | 730 | user-error ;; That's the main one! |
| 731 | )) | 731 | )) |
| 732 | 732 | ||
| 733 | (make-variable-buffer-local 'indent-tabs-mode) | 733 | (make-variable-buffer-local 'indent-tabs-mode) |
| 734 | 734 | ||
diff --git a/lisp/bs.el b/lisp/bs.el index 32431ba4466..1021e824302 100644 --- a/lisp/bs.el +++ b/lisp/bs.el | |||
| @@ -828,8 +828,8 @@ See `visit-tags-table'." | |||
| 828 | (let ((res | 828 | (let ((res |
| 829 | (with-current-buffer (bs--current-buffer) | 829 | (with-current-buffer (bs--current-buffer) |
| 830 | (setq bs-buffer-show-mark (pcase bs-buffer-show-mark | 830 | (setq bs-buffer-show-mark (pcase bs-buffer-show-mark |
| 831 | (`nil 'never) | 831 | ('nil 'never) |
| 832 | (`never 'always) | 832 | ('never 'always) |
| 833 | (_ nil)))))) | 833 | (_ nil)))))) |
| 834 | (bs--update-current-line) | 834 | (bs--update-current-line) |
| 835 | (bs--set-window-height) | 835 | (bs--set-window-height) |
diff --git a/lisp/calculator.el b/lisp/calculator.el index f559fb48284..c3fb68931e9 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -1184,7 +1184,7 @@ arguments." | |||
| 1184 | (DX (if (and X calculator-deg) (degrees-to-radians X) X)) | 1184 | (DX (if (and X calculator-deg) (degrees-to-radians X) X)) |
| 1185 | (L calculator-saved-list) | 1185 | (L calculator-saved-list) |
| 1186 | (fF `(calculator-funcall ',f x y)) | 1186 | (fF `(calculator-funcall ',f x y)) |
| 1187 | (fD `(if calculator-deg (radians-to-degrees x) x))) | 1187 | (fD '(if calculator-deg (radians-to-degrees x) x))) |
| 1188 | (eval `(cl-flet ((F (&optional x y) ,fF) (D (x) ,fD)) | 1188 | (eval `(cl-flet ((F (&optional x y) ,fF) (D (x) ,fD)) |
| 1189 | (let ((X ,X) (Y ,Y) (DX ,DX) (TX ,TX) (TY ,TY) (L ',L)) | 1189 | (let ((X ,X) (Y ,Y) (DX ,DX) (TX ,TX) (TY ,TY) (L ',L)) |
| 1190 | ,f)) | 1190 | ,f)) |
| @@ -1226,7 +1226,7 @@ OP is the operator (if any) that caused this call." | |||
| 1226 | (when (and (or calculator-display-fragile | 1226 | (when (and (or calculator-display-fragile |
| 1227 | (not (numberp (car calculator-stack)))) | 1227 | (not (numberp (car calculator-stack)))) |
| 1228 | (<= inp (pcase calculator-input-radix | 1228 | (<= inp (pcase calculator-input-radix |
| 1229 | (`nil ?9) (`bin ?1) (`oct ?7) (_ 999)))) | 1229 | ('nil ?9) ('bin ?1) ('oct ?7) (_ 999)))) |
| 1230 | (calculator-clear-fragile) | 1230 | (calculator-clear-fragile) |
| 1231 | (setq calculator-curnum | 1231 | (setq calculator-curnum |
| 1232 | (concat (if (equal calculator-curnum "0") "" | 1232 | (concat (if (equal calculator-curnum "0") "" |
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 7d01fe31fb2..41fe57e60ce 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -6389,8 +6389,7 @@ Filtered Items mode following todo (not done) items." | |||
| 6389 | ;; ----------------------------------------------------------------------------- | 6389 | ;; ----------------------------------------------------------------------------- |
| 6390 | 6390 | ||
| 6391 | (defvar todo-key-bindings-t | 6391 | (defvar todo-key-bindings-t |
| 6392 | `( | 6392 | '(("Af" todo-find-archive) |
| 6393 | ("Af" todo-find-archive) | ||
| 6394 | ("Ac" todo-choose-archive) | 6393 | ("Ac" todo-choose-archive) |
| 6395 | ("Ad" todo-archive-done-item) | 6394 | ("Ad" todo-archive-done-item) |
| 6396 | ("Cv" todo-toggle-view-done-items) | 6395 | ("Cv" todo-toggle-view-done-items) |
| @@ -6421,13 +6420,11 @@ Filtered Items mode following todo (not done) items." | |||
| 6421 | ("k" todo-delete-item) | 6420 | ("k" todo-delete-item) |
| 6422 | ("m" todo-move-item) | 6421 | ("m" todo-move-item) |
| 6423 | ("u" todo-item-undone) | 6422 | ("u" todo-item-undone) |
| 6424 | ([remap newline] newline-and-indent) | 6423 | ([remap newline] newline-and-indent)) |
| 6425 | ) | ||
| 6426 | "List of key bindings for Todo mode only.") | 6424 | "List of key bindings for Todo mode only.") |
| 6427 | 6425 | ||
| 6428 | (defvar todo-key-bindings-t+a+f | 6426 | (defvar todo-key-bindings-t+a+f |
| 6429 | `( | 6427 | '(("C*" todo-mark-category) |
| 6430 | ("C*" todo-mark-category) | ||
| 6431 | ("Cu" todo-unmark-category) | 6428 | ("Cu" todo-unmark-category) |
| 6432 | ("Fh" todo-toggle-item-header) | 6429 | ("Fh" todo-toggle-item-header) |
| 6433 | ("h" todo-toggle-item-header) | 6430 | ("h" todo-toggle-item-header) |
| @@ -6444,27 +6441,22 @@ Filtered Items mode following todo (not done) items." | |||
| 6444 | ("p" todo-previous-item) | 6441 | ("p" todo-previous-item) |
| 6445 | ("q" todo-quit) | 6442 | ("q" todo-quit) |
| 6446 | ("s" todo-save) | 6443 | ("s" todo-save) |
| 6447 | ("t" todo-show) | 6444 | ("t" todo-show)) |
| 6448 | ) | ||
| 6449 | "List of key bindings for Todo, Archive, and Filtered Items modes.") | 6445 | "List of key bindings for Todo, Archive, and Filtered Items modes.") |
| 6450 | 6446 | ||
| 6451 | (defvar todo-key-bindings-t+a | 6447 | (defvar todo-key-bindings-t+a |
| 6452 | `( | 6448 | '(("Fc" todo-show-categories-table) |
| 6453 | ("Fc" todo-show-categories-table) | ||
| 6454 | ("S" todo-search) | 6449 | ("S" todo-search) |
| 6455 | ("X" todo-clear-matches) | 6450 | ("X" todo-clear-matches) |
| 6456 | ("b" todo-backward-category) | 6451 | ("b" todo-backward-category) |
| 6457 | ("f" todo-forward-category) | 6452 | ("f" todo-forward-category) |
| 6458 | ("*" todo-toggle-mark-item) | 6453 | ("*" todo-toggle-mark-item)) |
| 6459 | ) | ||
| 6460 | "List of key bindings for Todo and Todo Archive modes.") | 6454 | "List of key bindings for Todo and Todo Archive modes.") |
| 6461 | 6455 | ||
| 6462 | (defvar todo-key-bindings-t+f | 6456 | (defvar todo-key-bindings-t+f |
| 6463 | `( | 6457 | '(("l" todo-lower-item-priority) |
| 6464 | ("l" todo-lower-item-priority) | ||
| 6465 | ("r" todo-raise-item-priority) | 6458 | ("r" todo-raise-item-priority) |
| 6466 | ("#" todo-set-item-priority) | 6459 | ("#" todo-set-item-priority)) |
| 6467 | ) | ||
| 6468 | "List of key bindings for Todo and Todo Filtered Items modes.") | 6460 | "List of key bindings for Todo and Todo Filtered Items modes.") |
| 6469 | 6461 | ||
| 6470 | (defvar todo-mode-map | 6462 | (defvar todo-mode-map |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index f0a1e6bb5a8..08a827ffa20 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -225,37 +225,37 @@ during a flush when the cache is given a new value of nil.") | |||
| 225 | "Indicate that the current buffer is unparseable. | 225 | "Indicate that the current buffer is unparseable. |
| 226 | It is also true that the parse tree will need either updating or | 226 | It is also true that the parse tree will need either updating or |
| 227 | a rebuild. This state will be changed when the user edits the buffer." | 227 | a rebuild. This state will be changed when the user edits the buffer." |
| 228 | `(setq semantic-parse-tree-state 'unparseable)) | 228 | '(setq semantic-parse-tree-state 'unparseable)) |
| 229 | 229 | ||
| 230 | (defmacro semantic-parse-tree-unparseable-p () | 230 | (defmacro semantic-parse-tree-unparseable-p () |
| 231 | "Return non-nil if the current buffer has been marked unparseable." | 231 | "Return non-nil if the current buffer has been marked unparseable." |
| 232 | `(eq semantic-parse-tree-state 'unparseable)) | 232 | '(eq semantic-parse-tree-state 'unparseable)) |
| 233 | 233 | ||
| 234 | (defmacro semantic-parse-tree-set-needs-update () | 234 | (defmacro semantic-parse-tree-set-needs-update () |
| 235 | "Indicate that the current parse tree needs to be updated. | 235 | "Indicate that the current parse tree needs to be updated. |
| 236 | The parse tree can be updated by `semantic-parse-changes'." | 236 | The parse tree can be updated by `semantic-parse-changes'." |
| 237 | `(setq semantic-parse-tree-state 'needs-update)) | 237 | '(setq semantic-parse-tree-state 'needs-update)) |
| 238 | 238 | ||
| 239 | (defmacro semantic-parse-tree-needs-update-p () | 239 | (defmacro semantic-parse-tree-needs-update-p () |
| 240 | "Return non-nil if the current parse tree needs to be updated." | 240 | "Return non-nil if the current parse tree needs to be updated." |
| 241 | `(eq semantic-parse-tree-state 'needs-update)) | 241 | '(eq semantic-parse-tree-state 'needs-update)) |
| 242 | 242 | ||
| 243 | (defmacro semantic-parse-tree-set-needs-rebuild () | 243 | (defmacro semantic-parse-tree-set-needs-rebuild () |
| 244 | "Indicate that the current parse tree needs to be rebuilt. | 244 | "Indicate that the current parse tree needs to be rebuilt. |
| 245 | The parse tree must be rebuilt by `semantic-parse-region'." | 245 | The parse tree must be rebuilt by `semantic-parse-region'." |
| 246 | `(setq semantic-parse-tree-state 'needs-rebuild)) | 246 | '(setq semantic-parse-tree-state 'needs-rebuild)) |
| 247 | 247 | ||
| 248 | (defmacro semantic-parse-tree-needs-rebuild-p () | 248 | (defmacro semantic-parse-tree-needs-rebuild-p () |
| 249 | "Return non-nil if the current parse tree needs to be rebuilt." | 249 | "Return non-nil if the current parse tree needs to be rebuilt." |
| 250 | `(eq semantic-parse-tree-state 'needs-rebuild)) | 250 | '(eq semantic-parse-tree-state 'needs-rebuild)) |
| 251 | 251 | ||
| 252 | (defmacro semantic-parse-tree-set-up-to-date () | 252 | (defmacro semantic-parse-tree-set-up-to-date () |
| 253 | "Indicate that the current parse tree is up to date." | 253 | "Indicate that the current parse tree is up to date." |
| 254 | `(setq semantic-parse-tree-state nil)) | 254 | '(setq semantic-parse-tree-state nil)) |
| 255 | 255 | ||
| 256 | (defmacro semantic-parse-tree-up-to-date-p () | 256 | (defmacro semantic-parse-tree-up-to-date-p () |
| 257 | "Return non-nil if the current parse tree is up to date." | 257 | "Return non-nil if the current parse tree is up to date." |
| 258 | `(null semantic-parse-tree-state)) | 258 | '(null semantic-parse-tree-state)) |
| 259 | 259 | ||
| 260 | ;;; Interfacing with the system | 260 | ;;; Interfacing with the system |
| 261 | ;; | 261 | ;; |
diff --git a/lisp/cedet/semantic/analyze/debug.el b/lisp/cedet/semantic/analyze/debug.el index 60415569345..cff20a549b9 100644 --- a/lisp/cedet/semantic/analyze/debug.el +++ b/lisp/cedet/semantic/analyze/debug.el | |||
| @@ -558,19 +558,19 @@ PARENT is a possible parent (by nesting) tag." | |||
| 558 | 'mouse-face 'custom-button-pressed-face | 558 | 'mouse-face 'custom-button-pressed-face |
| 559 | 'tag tag | 559 | 'tag tag |
| 560 | 'action | 560 | 'action |
| 561 | `(lambda (button) | 561 | (lambda (button) |
| 562 | (let ((buff nil) | 562 | (let ((buff nil) |
| 563 | (pnt nil)) | 563 | (pnt nil)) |
| 564 | (save-excursion | 564 | (save-excursion |
| 565 | (semantic-go-to-tag | 565 | (semantic-go-to-tag |
| 566 | (button-get button 'tag)) | 566 | (button-get button 'tag)) |
| 567 | (setq buff (current-buffer)) | 567 | (setq buff (current-buffer)) |
| 568 | (setq pnt (point))) | 568 | (setq pnt (point))) |
| 569 | (if (get-buffer-window buff) | 569 | (if (get-buffer-window buff) |
| 570 | (select-window (get-buffer-window buff)) | 570 | (select-window (get-buffer-window buff)) |
| 571 | (pop-to-buffer buff t)) | 571 | (pop-to-buffer buff t)) |
| 572 | (goto-char pnt) | 572 | (goto-char pnt) |
| 573 | (pulse-line-hook-function))) | 573 | (pulse-line-hook-function))) |
| 574 | )) | 574 | )) |
| 575 | (princ "\"") | 575 | (princ "\"") |
| 576 | (princ str) | 576 | (princ str) |
diff --git a/lisp/cedet/semantic/bovine.el b/lisp/cedet/semantic/bovine.el index 2e372896003..dbd7c3e211c 100644 --- a/lisp/cedet/semantic/bovine.el +++ b/lisp/cedet/semantic/bovine.el | |||
| @@ -72,7 +72,7 @@ The return list is a lambda expression to be used in a bovine table." | |||
| 72 | "Return the current nonterminal symbol. | 72 | "Return the current nonterminal symbol. |
| 73 | Part of the grammar source debugger. Depends on the existing | 73 | Part of the grammar source debugger. Depends on the existing |
| 74 | environment of `semantic-bovinate-stream'." | 74 | environment of `semantic-bovinate-stream'." |
| 75 | `(if nt-stack | 75 | '(if nt-stack |
| 76 | (car (aref (car nt-stack) 2)) | 76 | (car (aref (car nt-stack) 2)) |
| 77 | nonterminal)) | 77 | nonterminal)) |
| 78 | 78 | ||
diff --git a/lisp/cedet/semantic/dep.el b/lisp/cedet/semantic/dep.el index 640884d014b..3f19f516580 100644 --- a/lisp/cedet/semantic/dep.el +++ b/lisp/cedet/semantic/dep.el | |||
| @@ -56,7 +56,7 @@ reparsed, the cache will be reset. | |||
| 56 | TODO: use ffap.el to locate such items? | 56 | TODO: use ffap.el to locate such items? |
| 57 | 57 | ||
| 58 | NOTE: Obsolete this, or use as special user") | 58 | NOTE: Obsolete this, or use as special user") |
| 59 | (make-variable-buffer-local `semantic-dependency-include-path) | 59 | (make-variable-buffer-local 'semantic-dependency-include-path) |
| 60 | 60 | ||
| 61 | (defvar semantic-dependency-system-include-path nil | 61 | (defvar semantic-dependency-system-include-path nil |
| 62 | "Defines the system include path. | 62 | "Defines the system include path. |
| @@ -71,7 +71,7 @@ When searching for a file associated with a name found in a tag of | |||
| 71 | class include, this path will be inspected for includes of type | 71 | class include, this path will be inspected for includes of type |
| 72 | `system'. Some include tags are agnostic to this setting and will | 72 | `system'. Some include tags are agnostic to this setting and will |
| 73 | check both the project and system directories.") | 73 | check both the project and system directories.") |
| 74 | (make-variable-buffer-local `semantic-dependency-system-include-path) | 74 | (make-variable-buffer-local 'semantic-dependency-system-include-path) |
| 75 | 75 | ||
| 76 | (defmacro defcustom-mode-local-semantic-dependency-system-include-path | 76 | (defmacro defcustom-mode-local-semantic-dependency-system-include-path |
| 77 | (mode name value &optional docstring) | 77 | (mode name value &optional docstring) |
diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el index ccfb4ecf8e0..e4dfd5c4c5c 100644 --- a/lisp/cedet/semantic/grammar.el +++ b/lisp/cedet/semantic/grammar.el | |||
| @@ -1611,7 +1611,7 @@ Select the buffer containing the tag's definition, and move point there." | |||
| 1611 | ;; | 1611 | ;; |
| 1612 | 1612 | ||
| 1613 | (defvar semantic-grammar-syntax-help | 1613 | (defvar semantic-grammar-syntax-help |
| 1614 | `( | 1614 | '( |
| 1615 | ;; Lexical Symbols | 1615 | ;; Lexical Symbols |
| 1616 | ("symbol" . "Syntax: A symbol of alpha numeric and symbol characters") | 1616 | ("symbol" . "Syntax: A symbol of alpha numeric and symbol characters") |
| 1617 | ("number" . "Syntax: Numeric characters.") | 1617 | ("number" . "Syntax: Numeric characters.") |
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el index 21ea7ed0665..479b07c4291 100644 --- a/lisp/cedet/semantic/wisent/comp.el +++ b/lisp/cedet/semantic/wisent/comp.el | |||
| @@ -196,11 +196,11 @@ If optional LEFT is non-nil insert spaces on left." | |||
| 196 | (defmacro wisent-log-buffer () | 196 | (defmacro wisent-log-buffer () |
| 197 | "Return the log buffer. | 197 | "Return the log buffer. |
| 198 | Its name is defined in constant `wisent-log-buffer-name'." | 198 | Its name is defined in constant `wisent-log-buffer-name'." |
| 199 | `(get-buffer-create wisent-log-buffer-name)) | 199 | '(get-buffer-create wisent-log-buffer-name)) |
| 200 | 200 | ||
| 201 | (defmacro wisent-clear-log () | 201 | (defmacro wisent-clear-log () |
| 202 | "Delete the entire contents of the log buffer." | 202 | "Delete the entire contents of the log buffer." |
| 203 | `(with-current-buffer (wisent-log-buffer) | 203 | '(with-current-buffer (wisent-log-buffer) |
| 204 | (erase-buffer))) | 204 | (erase-buffer))) |
| 205 | 205 | ||
| 206 | (defvar byte-compile-current-file) | 206 | (defvar byte-compile-current-file) |
diff --git a/lisp/cedet/semantic/wisent/grammar.el b/lisp/cedet/semantic/wisent/grammar.el index d55b38aac49..4b5cc0be899 100644 --- a/lisp/cedet/semantic/wisent/grammar.el +++ b/lisp/cedet/semantic/wisent/grammar.el | |||
| @@ -194,7 +194,7 @@ See also the function `wisent-skip-block'." | |||
| 194 | "Expand call to SKIP-TOKEN grammar macro. | 194 | "Expand call to SKIP-TOKEN grammar macro. |
| 195 | Return the form to skip the lookahead token. | 195 | Return the form to skip the lookahead token. |
| 196 | See also the function `wisent-skip-token'." | 196 | See also the function `wisent-skip-token'." |
| 197 | `(wisent-skip-token)) | 197 | '(wisent-skip-token)) |
| 198 | 198 | ||
| 199 | (defun wisent-grammar-assocs () | 199 | (defun wisent-grammar-assocs () |
| 200 | "Return associativity and precedence level definitions." | 200 | "Return associativity and precedence level definitions." |
diff --git a/lisp/cedet/srecode/mode.el b/lisp/cedet/srecode/mode.el index 28e8b3b64ea..2bdc58a70e5 100644 --- a/lisp/cedet/srecode/mode.el +++ b/lisp/cedet/srecode/mode.el | |||
| @@ -89,14 +89,14 @@ | |||
| 89 | ]) | 89 | ]) |
| 90 | "---" | 90 | "---" |
| 91 | '( "Insert ..." :filter srecode-minor-mode-templates-menu ) | 91 | '( "Insert ..." :filter srecode-minor-mode-templates-menu ) |
| 92 | `( "Generate ..." :filter srecode-minor-mode-generate-menu ) | 92 | '( "Generate ..." :filter srecode-minor-mode-generate-menu ) |
| 93 | "---" | 93 | "---" |
| 94 | (semantic-menu-item | 94 | (semantic-menu-item |
| 95 | ["Customize..." | 95 | ["Customize..." |
| 96 | (customize-group "srecode") | 96 | (customize-group "srecode") |
| 97 | :active t | 97 | :active t |
| 98 | :help "Customize SRecode options" | 98 | :help "Customize SRecode options" |
| 99 | ]) | 99 | ]) |
| 100 | (list | 100 | (list |
| 101 | "Debugging Tools..." | 101 | "Debugging Tools..." |
| 102 | (semantic-menu-item | 102 | (semantic-menu-item |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index b69a63b80f5..9aac0fba353 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -2444,7 +2444,7 @@ If INITIAL-STRING is non-nil, use that rather than \"Parent groups:\"." | |||
| 2444 | :group 'custom-faces) | 2444 | :group 'custom-faces) |
| 2445 | 2445 | ||
| 2446 | (defface custom-variable-tag | 2446 | (defface custom-variable-tag |
| 2447 | `((((class color) (background dark)) | 2447 | '((((class color) (background dark)) |
| 2448 | :foreground "light blue" :weight bold) | 2448 | :foreground "light blue" :weight bold) |
| 2449 | (((min-colors 88) (class color) (background light)) | 2449 | (((min-colors 88) (class color) (background light)) |
| 2450 | :foreground "blue1" :weight bold) | 2450 | :foreground "blue1" :weight bold) |
| @@ -3920,7 +3920,7 @@ restoring it to the state of a face that has never been customized." | |||
| 3920 | (defun custom-hook-convert-widget (widget) | 3920 | (defun custom-hook-convert-widget (widget) |
| 3921 | ;; Handle `:options'. | 3921 | ;; Handle `:options'. |
| 3922 | (let* ((options (widget-get widget :options)) | 3922 | (let* ((options (widget-get widget :options)) |
| 3923 | (other `(editable-list :inline t | 3923 | (other '(editable-list :inline t |
| 3924 | :entry-format "%i %d%v" | 3924 | :entry-format "%i %d%v" |
| 3925 | (function :format " %v"))) | 3925 | (function :format " %v"))) |
| 3926 | (args (if options | 3926 | (args (if options |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 6f1143ba85a..48d0c080c1d 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -494,10 +494,10 @@ Typically \"page-%s.png\".") | |||
| 494 | 494 | ||
| 495 | (defmacro doc-view-current-page (&optional win) | 495 | (defmacro doc-view-current-page (&optional win) |
| 496 | `(image-mode-window-get 'page ,win)) | 496 | `(image-mode-window-get 'page ,win)) |
| 497 | (defmacro doc-view-current-info () `(image-mode-window-get 'info)) | 497 | (defmacro doc-view-current-info () '(image-mode-window-get 'info)) |
| 498 | (defmacro doc-view-current-overlay () `(image-mode-window-get 'overlay)) | 498 | (defmacro doc-view-current-overlay () '(image-mode-window-get 'overlay)) |
| 499 | (defmacro doc-view-current-image () `(image-mode-window-get 'image)) | 499 | (defmacro doc-view-current-image () '(image-mode-window-get 'image)) |
| 500 | (defmacro doc-view-current-slice () `(image-mode-window-get 'slice)) | 500 | (defmacro doc-view-current-slice () '(image-mode-window-get 'slice)) |
| 501 | 501 | ||
| 502 | (defun doc-view-last-page-number () | 502 | (defun doc-view-last-page-number () |
| 503 | (length doc-view--current-files)) | 503 | (length doc-view--current-files)) |
| @@ -1004,8 +1004,8 @@ is named like ODF with the extension turned to pdf." | |||
| 1004 | "Convert PDF-PS to PNG asynchronously." | 1004 | "Convert PDF-PS to PNG asynchronously." |
| 1005 | (funcall | 1005 | (funcall |
| 1006 | (pcase doc-view-doc-type | 1006 | (pcase doc-view-doc-type |
| 1007 | (`pdf doc-view-pdf->png-converter-function) | 1007 | ('pdf doc-view-pdf->png-converter-function) |
| 1008 | (`djvu #'doc-view-djvu->tiff-converter-ddjvu) | 1008 | ('djvu #'doc-view-djvu->tiff-converter-ddjvu) |
| 1009 | (_ #'doc-view-ps->png-converter-ghostscript)) | 1009 | (_ #'doc-view-ps->png-converter-ghostscript)) |
| 1010 | pdf-ps png nil | 1010 | pdf-ps png nil |
| 1011 | (let ((resolution doc-view-resolution)) | 1011 | (let ((resolution doc-view-resolution)) |
| @@ -1074,20 +1074,20 @@ Start by converting PAGES, and then the rest." | |||
| 1074 | "Convert the current document to text and call CALLBACK when done." | 1074 | "Convert the current document to text and call CALLBACK when done." |
| 1075 | (make-directory (doc-view--current-cache-dir) t) | 1075 | (make-directory (doc-view--current-cache-dir) t) |
| 1076 | (pcase doc-view-doc-type | 1076 | (pcase doc-view-doc-type |
| 1077 | 1077 | ||
| 1078 | ;; Doc is a PDF, so convert it to TXT | 1078 | ;; Doc is a PDF, so convert it to TXT |
| 1079 | (doc-view-pdf->txt doc-view--buffer-file-name txt callback)) | 1079 | (doc-view-pdf->txt doc-view--buffer-file-name txt callback)) |
| 1080 | (`ps | 1080 | ('ps |
| 1081 | ;; Doc is a PS, so convert it to PDF (which will be converted to | 1081 | ;; Doc is a PS, so convert it to PDF (which will be converted to |
| 1082 | ;; TXT thereafter). | 1082 | ;; TXT thereafter). |
| 1083 | (let ((pdf (doc-view-current-cache-doc-pdf))) | 1083 | (let ((pdf (doc-view-current-cache-doc-pdf))) |
| 1084 | (doc-view-ps->pdf doc-view--buffer-file-name pdf | 1084 | (doc-view-ps->pdf doc-view--buffer-file-name pdf |
| 1085 | (lambda () (doc-view-pdf->txt pdf txt callback))))) | 1085 | (lambda () (doc-view-pdf->txt pdf txt callback))))) |
| 1086 | (`dvi | 1086 | ('dvi |
| 1087 | ;; Doc is a DVI. This means that a doc.pdf already exists in its | 1087 | ;; Doc is a DVI. This means that a doc.pdf already exists in its |
| 1088 | ;; cache subdirectory. | 1088 | ;; cache subdirectory. |
| 1089 | (doc-view-pdf->txt (doc-view-current-cache-doc-pdf) txt callback)) | 1089 | (doc-view-pdf->txt (doc-view-current-cache-doc-pdf) txt callback)) |
| 1090 | (`odf | 1090 | ('odf |
| 1091 | ;; Doc is some ODF (or MS Office) doc. This means that a doc.pdf | 1091 | ;; Doc is some ODF (or MS Office) doc. This means that a doc.pdf |
| 1092 | ;; already exists in its cache subdirectory. | 1092 | ;; already exists in its cache subdirectory. |
| 1093 | (doc-view-pdf->txt (doc-view-current-cache-doc-pdf) txt callback)) | 1093 | (doc-view-pdf->txt (doc-view-current-cache-doc-pdf) txt callback)) |
| @@ -1128,13 +1128,13 @@ Those files are saved in the directory given by the function | |||
| 1128 | (doc-view--current-cache-dir)))) | 1128 | (doc-view--current-cache-dir)))) |
| 1129 | (make-directory (doc-view--current-cache-dir) t) | 1129 | (make-directory (doc-view--current-cache-dir) t) |
| 1130 | (pcase doc-view-doc-type | 1130 | (pcase doc-view-doc-type |
| 1131 | (`dvi | 1131 | ('dvi |
| 1132 | ;; DVI files have to be converted to PDF before Ghostscript can process | 1132 | ;; DVI files have to be converted to PDF before Ghostscript can process |
| 1133 | ;; it. | 1133 | ;; it. |
| 1134 | (let ((pdf (doc-view-current-cache-doc-pdf))) | 1134 | (let ((pdf (doc-view-current-cache-doc-pdf))) |
| 1135 | (doc-view-dvi->pdf doc-view--buffer-file-name pdf | 1135 | (doc-view-dvi->pdf doc-view--buffer-file-name pdf |
| 1136 | (lambda () (doc-view-pdf/ps->png pdf png-file))))) | 1136 | (lambda () (doc-view-pdf/ps->png pdf png-file))))) |
| 1137 | (`odf | 1137 | ('odf |
| 1138 | ;; ODF files have to be converted to PDF before Ghostscript can | 1138 | ;; ODF files have to be converted to PDF before Ghostscript can |
| 1139 | ;; process it. | 1139 | ;; process it. |
| 1140 | (let ((pdf (doc-view-current-cache-doc-pdf)) | 1140 | (let ((pdf (doc-view-current-cache-doc-pdf)) |
| @@ -1147,11 +1147,11 @@ Those files are saved in the directory given by the function | |||
| 1147 | ;; file name. It's named like the input file with the | 1147 | ;; file name. It's named like the input file with the |
| 1148 | ;; extension replaced by pdf. | 1148 | ;; extension replaced by pdf. |
| 1149 | (funcall doc-view-odf->pdf-converter-function doc-view--buffer-file-name | 1149 | (funcall doc-view-odf->pdf-converter-function doc-view--buffer-file-name |
| 1150 | (lambda () | 1150 | (lambda () |
| 1151 | ;; Rename to doc.pdf | 1151 | ;; Rename to doc.pdf |
| 1152 | (rename-file opdf pdf) | 1152 | (rename-file opdf pdf) |
| 1153 | (doc-view-pdf/ps->png pdf png-file))))) | 1153 | (doc-view-pdf/ps->png pdf png-file))))) |
| 1154 | ((or `pdf `djvu) | 1154 | ((or 'pdf 'djvu) |
| 1155 | (let ((pages (doc-view-active-pages))) | 1155 | (let ((pages (doc-view-active-pages))) |
| 1156 | ;; Convert doc to bitmap images starting with the active pages. | 1156 | ;; Convert doc to bitmap images starting with the active pages. |
| 1157 | (doc-view-document->bitmap doc-view--buffer-file-name png-file pages))) | 1157 | (doc-view-document->bitmap doc-view--buffer-file-name png-file pages))) |
| @@ -1695,7 +1695,7 @@ If BACKWARD is non-nil, jump to the previous match." | |||
| 1695 | "Find the right single-page converter for the current document type" | 1695 | "Find the right single-page converter for the current document type" |
| 1696 | (pcase-let ((`(,conv-function ,type ,extension) | 1696 | (pcase-let ((`(,conv-function ,type ,extension) |
| 1697 | (pcase doc-view-doc-type | 1697 | (pcase doc-view-doc-type |
| 1698 | (`djvu (list #'doc-view-djvu->tiff-converter-ddjvu 'tiff "tif")) | 1698 | ('djvu (list #'doc-view-djvu->tiff-converter-ddjvu 'tiff "tif")) |
| 1699 | (_ (list doc-view-pdf->png-converter-function 'png "png"))))) | 1699 | (_ (list doc-view-pdf->png-converter-function 'png "png"))))) |
| 1700 | (setq-local doc-view-single-page-converter-function conv-function) | 1700 | (setq-local doc-view-single-page-converter-function conv-function) |
| 1701 | (setq-local doc-view--image-type type) | 1701 | (setq-local doc-view--image-type type) |
diff --git a/lisp/elec-pair.el b/lisp/elec-pair.el index 7df70982957..64ed0f6be5c 100644 --- a/lisp/elec-pair.el +++ b/lisp/elec-pair.el | |||
| @@ -522,7 +522,7 @@ happened." | |||
| 522 | pos)) | 522 | pos)) |
| 523 | (forward-char)) | 523 | (forward-char)) |
| 524 | ;; Insert matching pair. | 524 | ;; Insert matching pair. |
| 525 | ((and (memq syntax `(?\( ?\" ?\$)) | 525 | ((and (memq syntax '(?\( ?\" ?\$)) |
| 526 | (not overwrite-mode) | 526 | (not overwrite-mode) |
| 527 | (or unconditional | 527 | (or unconditional |
| 528 | (not (funcall electric-pair-inhibit-predicate | 528 | (not (funcall electric-pair-inhibit-predicate |
diff --git a/lisp/electric.el b/lisp/electric.el index 8730b0752c8..6dbf46b80c8 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -391,13 +391,13 @@ newline after CHAR but stay in the same place.") | |||
| 391 | ;; multiple times), but I'm not sure it's what we want. | 391 | ;; multiple times), but I'm not sure it's what we want. |
| 392 | ;; | 392 | ;; |
| 393 | ;; FIXME: check eolp before inserting \n? | 393 | ;; FIXME: check eolp before inserting \n? |
| 394 | (`before (goto-char (1- pos)) (skip-chars-backward " \t") | 394 | ('before (goto-char (1- pos)) (skip-chars-backward " \t") |
| 395 | (unless (bolp) (insert "\n"))) | 395 | (unless (bolp) (insert "\n"))) |
| 396 | (`after (insert "\n")) | 396 | ('after (insert "\n")) |
| 397 | (`after-stay (save-excursion | 397 | ('after-stay (save-excursion |
| 398 | (let ((electric-layout-rules nil)) | 398 | (let ((electric-layout-rules nil)) |
| 399 | (newline 1 t)))) | 399 | (newline 1 t)))) |
| 400 | (`around (save-excursion | 400 | ('around (save-excursion |
| 401 | (goto-char (1- pos)) (skip-chars-backward " \t") | 401 | (goto-char (1- pos)) (skip-chars-backward " \t") |
| 402 | (unless (bolp) (insert "\n"))) | 402 | (unless (bolp) (insert "\n"))) |
| 403 | (insert "\n"))) ; FIXME: check eolp before inserting \n? | 403 | (insert "\n"))) ; FIXME: check eolp before inserting \n? |
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 22aac954d17..e4290baee94 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -182,13 +182,13 @@ expression, in which case we want to handle forms differently." | |||
| 182 | (let* ((macrop (memq car '(defmacro cl-defmacro defmacro*))) | 182 | (let* ((macrop (memq car '(defmacro cl-defmacro defmacro*))) |
| 183 | (name (nth 1 form)) | 183 | (name (nth 1 form)) |
| 184 | (args (pcase car | 184 | (args (pcase car |
| 185 | ((or `defun `defmacro | 185 | ((or 'defun 'defmacro |
| 186 | `defun* `defmacro* `cl-defun `cl-defmacro | 186 | 'defun* 'defmacro* 'cl-defun 'cl-defmacro |
| 187 | `define-overloadable-function) | 187 | 'define-overloadable-function) |
| 188 | (nth 2 form)) | 188 | (nth 2 form)) |
| 189 | (`define-skeleton '(&optional str arg)) | 189 | ('define-skeleton '(&optional str arg)) |
| 190 | ((or `define-generic-mode `define-derived-mode | 190 | ((or 'define-generic-mode 'define-derived-mode |
| 191 | `define-compilation-mode) | 191 | 'define-compilation-mode) |
| 192 | nil) | 192 | nil) |
| 193 | (_ t))) | 193 | (_ t))) |
| 194 | (body (nthcdr (or (function-get car 'doc-string-elt) 3) form)) | 194 | (body (nthcdr (or (function-get car 'doc-string-elt) 3) form)) |
diff --git a/lisp/emacs-lisp/benchmark.el b/lisp/emacs-lisp/benchmark.el index e062a1867a8..a9fa7c44c24 100644 --- a/lisp/emacs-lisp/benchmark.el +++ b/lisp/emacs-lisp/benchmark.el | |||
| @@ -81,7 +81,7 @@ result. The overhead of the `lambda's is accounted for." | |||
| 81 | (gcs (make-symbol "gcs")) | 81 | (gcs (make-symbol "gcs")) |
| 82 | (gc (make-symbol "gc")) | 82 | (gc (make-symbol "gc")) |
| 83 | (code (byte-compile `(lambda () ,@forms))) | 83 | (code (byte-compile `(lambda () ,@forms))) |
| 84 | (lambda-code (byte-compile `(lambda ())))) | 84 | (lambda-code (byte-compile '(lambda ())))) |
| 85 | `(let ((,gc gc-elapsed) | 85 | `(let ((,gc gc-elapsed) |
| 86 | (,gcs gcs-done)) | 86 | (,gcs gcs-done)) |
| 87 | (list ,(if (or (symbolp repetitions) (> repetitions 1)) | 87 | (list ,(if (or (symbolp repetitions) (> repetitions 1)) |
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 4854808fd02..8d9779ea83d 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el | |||
| @@ -255,7 +255,7 @@ | |||
| 255 | (setq fn (or (symbol-function name) | 255 | (setq fn (or (symbol-function name) |
| 256 | (cdr (assq name byte-compile-function-environment))))) | 256 | (cdr (assq name byte-compile-function-environment))))) |
| 257 | (pcase fn | 257 | (pcase fn |
| 258 | (`nil | 258 | ('nil |
| 259 | (byte-compile-warn "attempt to inline `%s' before it was defined" | 259 | (byte-compile-warn "attempt to inline `%s' before it was defined" |
| 260 | name) | 260 | name) |
| 261 | form) | 261 | form) |
| @@ -635,7 +635,7 @@ | |||
| 635 | (setq form (car (last (cdr form))))) | 635 | (setq form (car (last (cdr form))))) |
| 636 | (cond ((consp form) | 636 | (cond ((consp form) |
| 637 | (pcase (car form) | 637 | (pcase (car form) |
| 638 | (`quote (cadr form)) | 638 | ('quote (cadr form)) |
| 639 | ;; Can't use recursion in a defsubst. | 639 | ;; Can't use recursion in a defsubst. |
| 640 | ;; (`progn (byte-compile-trueconstp (car (last (cdr form))))) | 640 | ;; (`progn (byte-compile-trueconstp (car (last (cdr form))))) |
| 641 | )) | 641 | )) |
| @@ -649,7 +649,7 @@ | |||
| 649 | (setq form (car (last (cdr form))))) | 649 | (setq form (car (last (cdr form))))) |
| 650 | (cond ((consp form) | 650 | (cond ((consp form) |
| 651 | (pcase (car form) | 651 | (pcase (car form) |
| 652 | (`quote (null (cadr form))) | 652 | ('quote (null (cadr form))) |
| 653 | ;; Can't use recursion in a defsubst. | 653 | ;; Can't use recursion in a defsubst. |
| 654 | ;; (`progn (byte-compile-nilconstp (car (last (cdr form))))) | 654 | ;; (`progn (byte-compile-nilconstp (car (last (cdr form))))) |
| 655 | )) | 655 | )) |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 0b8f8824b4c..15f31dd5f2b 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1730,8 +1730,8 @@ that already has a `.elc' file." | |||
| 1730 | (file-name-nondirectory source)))) | 1730 | (file-name-nondirectory source)))) |
| 1731 | (progn (cl-incf | 1731 | (progn (cl-incf |
| 1732 | (pcase (byte-recompile-file source force arg) | 1732 | (pcase (byte-recompile-file source force arg) |
| 1733 | (`no-byte-compile skip-count) | 1733 | ('no-byte-compile skip-count) |
| 1734 | (`t file-count) | 1734 | ('t file-count) |
| 1735 | (_ fail-count))) | 1735 | (_ fail-count))) |
| 1736 | (or noninteractive | 1736 | (or noninteractive |
| 1737 | (message "Checking %s..." directory)) | 1737 | (message "Checking %s..." directory)) |
| @@ -3277,8 +3277,8 @@ for symbols generated by the byte compiler itself." | |||
| 3277 | (cl-assert (listp fargs)) | 3277 | (cl-assert (listp fargs)) |
| 3278 | (while fargs | 3278 | (while fargs |
| 3279 | (pcase (car fargs) | 3279 | (pcase (car fargs) |
| 3280 | (`&optional (setq fargs (cdr fargs))) | 3280 | ('&optional (setq fargs (cdr fargs))) |
| 3281 | (`&rest (setq fmax2 (+ (* 2 (length dynbinds)) 1)) | 3281 | ('&rest (setq fmax2 (+ (* 2 (length dynbinds)) 1)) |
| 3282 | (push (cadr fargs) dynbinds) | 3282 | (push (cadr fargs) dynbinds) |
| 3283 | (setq fargs nil)) | 3283 | (setq fargs nil)) |
| 3284 | (_ (push (pop fargs) dynbinds)))) | 3284 | (_ (push (pop fargs) dynbinds)))) |
| @@ -3325,8 +3325,8 @@ for symbols generated by the byte compiler itself." | |||
| 3325 | (not (memq var byte-compile-not-obsolete-vars)) | 3325 | (not (memq var byte-compile-not-obsolete-vars)) |
| 3326 | (not (memq var byte-compile-global-not-obsolete-vars)) | 3326 | (not (memq var byte-compile-global-not-obsolete-vars)) |
| 3327 | (or (pcase (nth 1 od) | 3327 | (or (pcase (nth 1 od) |
| 3328 | (`set (not (eq access-type 'reference))) | 3328 | ('set (not (eq access-type 'reference))) |
| 3329 | (`get (eq access-type 'reference)) | 3329 | ('get (eq access-type 'reference)) |
| 3330 | (_ t))))) | 3330 | (_ t))))) |
| 3331 | (byte-compile-warn-obsolete var)))) | 3331 | (byte-compile-warn-obsolete var)))) |
| 3332 | 3332 | ||
| @@ -4731,7 +4731,7 @@ binding slots have been popped." | |||
| 4731 | arg) | 4731 | arg) |
| 4732 | ;; `lam' is the lambda expression in `fun' (or nil if not | 4732 | ;; `lam' is the lambda expression in `fun' (or nil if not |
| 4733 | ;; recognized). | 4733 | ;; recognized). |
| 4734 | ((or `(,(or `quote `function) ,lam) (let lam nil)) | 4734 | ((or `(,(or 'quote 'function) ,lam) (let lam nil)) |
| 4735 | fun) | 4735 | fun) |
| 4736 | ;; `arglist' is the list of arguments (or t if not recognized). | 4736 | ;; `arglist' is the list of arguments (or t if not recognized). |
| 4737 | ;; `body' is the body of `lam' (or t if not recognized). | 4737 | ;; `body' is the body of `lam' (or t if not recognized). |
| @@ -4918,18 +4918,18 @@ invoked interactively." | |||
| 4918 | (setq byte-compile-call-tree | 4918 | (setq byte-compile-call-tree |
| 4919 | (sort byte-compile-call-tree | 4919 | (sort byte-compile-call-tree |
| 4920 | (pcase byte-compile-call-tree-sort | 4920 | (pcase byte-compile-call-tree-sort |
| 4921 | (`callers | 4921 | ('callers |
| 4922 | (lambda (x y) (< (length (nth 1 x)) | 4922 | (lambda (x y) (< (length (nth 1 x)) |
| 4923 | (length (nth 1 y))))) | 4923 | (length (nth 1 y))))) |
| 4924 | (`calls | 4924 | ('calls |
| 4925 | (lambda (x y) (< (length (nth 2 x)) | 4925 | (lambda (x y) (< (length (nth 2 x)) |
| 4926 | (length (nth 2 y))))) | 4926 | (length (nth 2 y))))) |
| 4927 | (`calls+callers | 4927 | ('calls+callers |
| 4928 | (lambda (x y) (< (+ (length (nth 1 x)) | 4928 | (lambda (x y) (< (+ (length (nth 1 x)) |
| 4929 | (length (nth 2 x))) | 4929 | (length (nth 2 x))) |
| 4930 | (+ (length (nth 1 y)) | 4930 | (+ (length (nth 1 y)) |
| 4931 | (length (nth 2 y)))))) | 4931 | (length (nth 2 y)))))) |
| 4932 | (`name | 4932 | ('name |
| 4933 | (lambda (x y) (string< (car x) (car y)))) | 4933 | (lambda (x y) (string< (car x) (car y)))) |
| 4934 | (_ (error "`byte-compile-call-tree-sort': `%s' - unknown sort mode" | 4934 | (_ (error "`byte-compile-call-tree-sort': `%s' - unknown sort mode" |
| 4935 | byte-compile-call-tree-sort)))))) | 4935 | byte-compile-call-tree-sort)))))) |
diff --git a/lisp/emacs-lisp/cconv.el b/lisp/emacs-lisp/cconv.el index 010026b4166..d776297fd06 100644 --- a/lisp/emacs-lisp/cconv.el +++ b/lisp/emacs-lisp/cconv.el | |||
| @@ -322,7 +322,7 @@ places where they originally did not directly appear." | |||
| 322 | ;; so we never touch it(unless we enter to the other closure). | 322 | ;; so we never touch it(unless we enter to the other closure). |
| 323 | ;;(if (listp form) (print (car form)) form) | 323 | ;;(if (listp form) (print (car form)) form) |
| 324 | (pcase form | 324 | (pcase form |
| 325 | (`(,(and letsym (or `let* `let)) ,binders . ,body) | 325 | (`(,(and letsym (or 'let* 'let)) ,binders . ,body) |
| 326 | 326 | ||
| 327 | ; let and let* special forms | 327 | ; let and let* special forms |
| 328 | (let ((binders-new '()) | 328 | (let ((binders-new '()) |
| @@ -454,7 +454,7 @@ places where they originally did not directly appear." | |||
| 454 | (`(function . ,_) form) | 454 | (`(function . ,_) form) |
| 455 | 455 | ||
| 456 | ;defconst, defvar | 456 | ;defconst, defvar |
| 457 | (`(,(and sym (or `defconst `defvar)) ,definedsymbol . ,forms) | 457 | (`(,(and sym (or 'defconst 'defvar)) ,definedsymbol . ,forms) |
| 458 | `(,sym ,definedsymbol | 458 | `(,sym ,definedsymbol |
| 459 | . ,(when (consp forms) | 459 | . ,(when (consp forms) |
| 460 | (cons (cconv-convert (car forms) env extend) | 460 | (cons (cconv-convert (car forms) env extend) |
| @@ -496,8 +496,8 @@ places where they originally did not directly appear." | |||
| 496 | `((let ((,var (list ,var))) ,@body)))))) | 496 | `((let ((,var (list ,var))) ,@body)))))) |
| 497 | handlers)))) | 497 | handlers)))) |
| 498 | 498 | ||
| 499 | (`(,(and head (or (and `catch (guard byte-compile--use-old-handlers)) | 499 | (`(,(and head (or (and 'catch (guard byte-compile--use-old-handlers)) |
| 500 | `unwind-protect)) | 500 | 'unwind-protect)) |
| 501 | ,form . ,body) | 501 | ,form . ,body) |
| 502 | `(,head ,(cconv-convert form env extend) | 502 | `(,head ,(cconv-convert form env extend) |
| 503 | :fun-body ,(cconv--convert-function () body env form))) | 503 | :fun-body ,(cconv--convert-function () body env form))) |
| @@ -526,7 +526,7 @@ places where they originally did not directly appear." | |||
| 526 | `(progn . ,(nreverse prognlist)) | 526 | `(progn . ,(nreverse prognlist)) |
| 527 | (car prognlist))))) | 527 | (car prognlist))))) |
| 528 | 528 | ||
| 529 | (`(,(and (or `funcall `apply) callsym) ,fun . ,args) | 529 | (`(,(and (or 'funcall 'apply) callsym) ,fun . ,args) |
| 530 | ;; These are not special forms but we treat them separately for the needs | 530 | ;; These are not special forms but we treat them separately for the needs |
| 531 | ;; of lambda lifting. | 531 | ;; of lambda lifting. |
| 532 | (let ((mapping (cdr (assq fun env)))) | 532 | (let ((mapping (cdr (assq fun env)))) |
| @@ -655,7 +655,7 @@ This function does not return anything but instead fills the | |||
| 655 | and updates the data stored in ENV." | 655 | and updates the data stored in ENV." |
| 656 | (pcase form | 656 | (pcase form |
| 657 | ; let special form | 657 | ; let special form |
| 658 | (`(,(and (or `let* `let) letsym) ,binders . ,body-forms) | 658 | (`(,(and (or 'let* 'let) letsym) ,binders . ,body-forms) |
| 659 | 659 | ||
| 660 | (let ((orig-env env) | 660 | (let ((orig-env env) |
| 661 | (newvars nil) | 661 | (newvars nil) |
| @@ -739,18 +739,18 @@ and updates the data stored in ENV." | |||
| 739 | form "variable")))) | 739 | form "variable")))) |
| 740 | 740 | ||
| 741 | ;; FIXME: The bytecode for unwind-protect forces us to wrap the unwind. | 741 | ;; FIXME: The bytecode for unwind-protect forces us to wrap the unwind. |
| 742 | (`(,(or (and `catch (guard byte-compile--use-old-handlers)) | 742 | (`(,(or (and 'catch (guard byte-compile--use-old-handlers)) |
| 743 | `unwind-protect) | 743 | 'unwind-protect) |
| 744 | ,form . ,body) | 744 | ,form . ,body) |
| 745 | (cconv-analyze-form form env) | 745 | (cconv-analyze-form form env) |
| 746 | (cconv--analyze-function () body env form)) | 746 | (cconv--analyze-function () body env form)) |
| 747 | 747 | ||
| 748 | (`(defvar ,var) (push var byte-compile-bound-variables)) | 748 | (`(defvar ,var) (push var byte-compile-bound-variables)) |
| 749 | (`(,(or `defconst `defvar) ,var ,value . ,_) | 749 | (`(,(or 'defconst 'defvar) ,var ,value . ,_) |
| 750 | (push var byte-compile-bound-variables) | 750 | (push var byte-compile-bound-variables) |
| 751 | (cconv-analyze-form value env)) | 751 | (cconv-analyze-form value env)) |
| 752 | 752 | ||
| 753 | (`(,(or `funcall `apply) ,fun . ,args) | 753 | (`(,(or 'funcall 'apply) ,fun . ,args) |
| 754 | ;; Here we ignore fun because funcall and apply are the only two | 754 | ;; Here we ignore fun because funcall and apply are the only two |
| 755 | ;; functions where we can pass a candidate for lambda lifting as | 755 | ;; functions where we can pass a candidate for lambda lifting as |
| 756 | ;; argument. So, if we see fun elsewhere, we'll delete it from | 756 | ;; argument. So, if we see fun elsewhere, we'll delete it from |
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el index bea38a05096..13988db9a86 100644 --- a/lisp/emacs-lisp/cl-extra.el +++ b/lisp/emacs-lisp/cl-extra.el | |||
| @@ -576,9 +576,9 @@ too large if positive or too small if negative)." | |||
| 576 | "Concatenate, into a sequence of type TYPE, the argument SEQUENCEs. | 576 | "Concatenate, into a sequence of type TYPE, the argument SEQUENCEs. |
| 577 | \n(fn TYPE SEQUENCE...)" | 577 | \n(fn TYPE SEQUENCE...)" |
| 578 | (pcase type | 578 | (pcase type |
| 579 | (`vector (apply #'vconcat sequences)) | 579 | ('vector (apply #'vconcat sequences)) |
| 580 | (`string (apply #'concat sequences)) | 580 | ('string (apply #'concat sequences)) |
| 581 | (`list (apply #'append (append sequences '(nil)))) | 581 | ('list (apply #'append (append sequences '(nil)))) |
| 582 | (_ (error "Not a sequence type name: %S" type)))) | 582 | (_ (error "Not a sequence type name: %S" type)))) |
| 583 | 583 | ||
| 584 | ;;; List functions. | 584 | ;;; List functions. |
| @@ -742,7 +742,7 @@ including `cl-block' and `cl-eval-when'." | |||
| 742 | (with-eval-after-load 'find-func | 742 | (with-eval-after-load 'find-func |
| 743 | (defvar find-function-regexp-alist) | 743 | (defvar find-function-regexp-alist) |
| 744 | (add-to-list 'find-function-regexp-alist | 744 | (add-to-list 'find-function-regexp-alist |
| 745 | `(define-type . cl--typedef-regexp))) | 745 | '(define-type . cl--typedef-regexp))) |
| 746 | 746 | ||
| 747 | (define-button-type 'cl-help-type | 747 | (define-button-type 'cl-help-type |
| 748 | :supertype 'help-function-def | 748 | :supertype 'help-function-def |
diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index c7f0c48f85c..cad629d9498 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el | |||
| @@ -938,7 +938,7 @@ MET-NAME is as returned by `cl--generic-load-hist-format'." | |||
| 938 | (add-to-list 'find-function-regexp-alist | 938 | (add-to-list 'find-function-regexp-alist |
| 939 | `(cl-defmethod . ,#'cl--generic-search-method)) | 939 | `(cl-defmethod . ,#'cl--generic-search-method)) |
| 940 | (add-to-list 'find-function-regexp-alist | 940 | (add-to-list 'find-function-regexp-alist |
| 941 | `(cl-defgeneric . cl--generic-find-defgeneric-regexp))) | 941 | '(cl-defgeneric . cl--generic-find-defgeneric-regexp))) |
| 942 | 942 | ||
| 943 | (defun cl--generic-method-info (method) | 943 | (defun cl--generic-method-info (method) |
| 944 | (let* ((specializers (cl--generic-method-specializers method)) | 944 | (let* ((specializers (cl--generic-method-specializers method)) |
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 29ddd491af0..bc78d80c674 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -1902,7 +1902,7 @@ Labels have lexical scope and dynamic extent." | |||
| 1902 | (push (nreverse block) blocks) | 1902 | (push (nreverse block) blocks) |
| 1903 | (setq block (list label-or-stmt)))) | 1903 | (setq block (list label-or-stmt)))) |
| 1904 | (unless (eq 'go (car-safe (car-safe block))) | 1904 | (unless (eq 'go (car-safe (car-safe block))) |
| 1905 | (push `(go cl--exit) block)) | 1905 | (push '(go cl--exit) block)) |
| 1906 | (push (nreverse block) blocks)) | 1906 | (push (nreverse block) blocks)) |
| 1907 | (let ((catch-tag (make-symbol "cl--tagbody-tag")) | 1907 | (let ((catch-tag (make-symbol "cl--tagbody-tag")) |
| 1908 | (cl--tagbody-alist cl--tagbody-alist)) | 1908 | (cl--tagbody-alist cl--tagbody-alist)) |
| @@ -2185,7 +2185,7 @@ of `cl-symbol-macrolet' to additionally expand symbol macros." | |||
| 2185 | ;; The behavior of CL made sense in a dynamically scoped | 2185 | ;; The behavior of CL made sense in a dynamically scoped |
| 2186 | ;; language, but nowadays, lexical scoping semantics is more often | 2186 | ;; language, but nowadays, lexical scoping semantics is more often |
| 2187 | ;; expected. | 2187 | ;; expected. |
| 2188 | (`(,(or `let `let*) . ,(or `(,bindings . ,body) dontcare)) | 2188 | (`(,(or 'let 'let*) . ,(or `(,bindings . ,body) dontcare)) |
| 2189 | (let ((nbs ()) (found nil)) | 2189 | (let ((nbs ()) (found nil)) |
| 2190 | (dolist (binding bindings) | 2190 | (dolist (binding bindings) |
| 2191 | (let* ((var (if (symbolp binding) binding (car binding))) | 2191 | (let* ((var (if (symbolp binding) binding (car binding))) |
| @@ -3021,7 +3021,7 @@ the form NAME which is a shorthand for (NAME NAME)." | |||
| 3021 | 3021 | ||
| 3022 | (defun cl--defstruct-predicate (type) | 3022 | (defun cl--defstruct-predicate (type) |
| 3023 | (let ((cons (assq (cl-struct-sequence-type type) | 3023 | (let ((cons (assq (cl-struct-sequence-type type) |
| 3024 | `((list . consp) | 3024 | '((list . consp) |
| 3025 | (vector . vectorp) | 3025 | (vector . vectorp) |
| 3026 | (nil . recordp))))) | 3026 | (nil . recordp))))) |
| 3027 | (if cons | 3027 | (if cons |
| @@ -3355,7 +3355,7 @@ The type name can then be used in `cl-typecase', `cl-check-type', etc." | |||
| 3355 | (put ',name 'cl-deftype-handler | 3355 | (put ',name 'cl-deftype-handler |
| 3356 | (cl-function (lambda (&cl-defs ('*) ,@arglist) ,@body))))) | 3356 | (cl-function (lambda (&cl-defs ('*) ,@arglist) ,@body))))) |
| 3357 | 3357 | ||
| 3358 | (cl-deftype extended-char () `(and character (not base-char))) | 3358 | (cl-deftype extended-char () '(and character (not base-char))) |
| 3359 | 3359 | ||
| 3360 | ;;; Additional functions that we can now define because we've defined | 3360 | ;;; Additional functions that we can now define because we've defined |
| 3361 | ;;; `cl-defsubst' and `cl-typep'. | 3361 | ;;; `cl-defsubst' and `cl-typep'. |
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 2f29c196964..54d9aa01189 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -347,7 +347,7 @@ independently replaces consecutive years with a range." | |||
| 347 | "Insert a copyright by $ORGANIZATION notice at cursor." | 347 | "Insert a copyright by $ORGANIZATION notice at cursor." |
| 348 | "Company: " | 348 | "Company: " |
| 349 | comment-start | 349 | comment-start |
| 350 | "Copyright (C) " `(format-time-string "%Y") " by " | 350 | "Copyright (C) " '(format-time-string "%Y") " by " |
| 351 | (or (getenv "ORGANIZATION") | 351 | (or (getenv "ORGANIZATION") |
| 352 | str) | 352 | str) |
| 353 | '(if (copyright-offset-too-large-p) | 353 | '(if (copyright-offset-too-large-p) |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 7fc2b41c70c..34a2a1336d6 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -354,26 +354,26 @@ Include the reason for debugger entry from ARGS." | |||
| 354 | (pcase (car args) | 354 | (pcase (car args) |
| 355 | ;; lambda is for debug-on-call when a function call is next. | 355 | ;; lambda is for debug-on-call when a function call is next. |
| 356 | ;; debug is for debug-on-entry function called. | 356 | ;; debug is for debug-on-entry function called. |
| 357 | ((or `lambda `debug) | 357 | ((or 'lambda 'debug) |
| 358 | (insert "--entering a function:\n")) | 358 | (insert "--entering a function:\n")) |
| 359 | ;; Exiting a function. | 359 | ;; Exiting a function. |
| 360 | (`exit | 360 | ('exit |
| 361 | (insert "--returning value: ") | 361 | (insert "--returning value: ") |
| 362 | (insert (backtrace-print-to-string debugger-value)) | 362 | (insert (backtrace-print-to-string debugger-value)) |
| 363 | (insert ?\n)) | 363 | (insert ?\n)) |
| 364 | ;; Watchpoint triggered. | 364 | ;; Watchpoint triggered. |
| 365 | ((and `watchpoint (let `(,symbol ,newval . ,details) (cdr args))) | 365 | ((and 'watchpoint (let `(,symbol ,newval . ,details) (cdr args))) |
| 366 | (insert | 366 | (insert |
| 367 | "--" | 367 | "--" |
| 368 | (pcase details | 368 | (pcase details |
| 369 | (`(makunbound nil) (format "making %s void" symbol)) | 369 | ('(makunbound nil) (format "making %s void" symbol)) |
| 370 | (`(makunbound ,buffer) (format "killing local value of %s in buffer %s" | 370 | (`(makunbound ,buffer) (format "killing local value of %s in buffer %s" |
| 371 | symbol buffer)) | 371 | symbol buffer)) |
| 372 | (`(defvaralias ,_) (format "aliasing %s to %s" symbol newval)) | 372 | (`(defvaralias ,_) (format "aliasing %s to %s" symbol newval)) |
| 373 | (`(let ,_) (format "let-binding %s to %s" symbol | 373 | (`(let ,_) (format "let-binding %s to %s" symbol |
| 374 | (backtrace-print-to-string newval))) | 374 | (backtrace-print-to-string newval))) |
| 375 | (`(unlet ,_) (format "ending let-binding of %s" symbol)) | 375 | (`(unlet ,_) (format "ending let-binding of %s" symbol)) |
| 376 | (`(set nil) (format "setting %s to %s" symbol | 376 | ('(set nil) (format "setting %s to %s" symbol |
| 377 | (backtrace-print-to-string newval))) | 377 | (backtrace-print-to-string newval))) |
| 378 | (`(set ,buffer) (format "setting %s in buffer %s to %s" | 378 | (`(set ,buffer) (format "setting %s in buffer %s to %s" |
| 379 | symbol buffer | 379 | symbol buffer |
| @@ -382,12 +382,12 @@ Include the reason for debugger entry from ARGS." | |||
| 382 | ": ") | 382 | ": ") |
| 383 | (insert ?\n)) | 383 | (insert ?\n)) |
| 384 | ;; Debugger entered for an error. | 384 | ;; Debugger entered for an error. |
| 385 | (`error | 385 | ('error |
| 386 | (insert "--Lisp error: ") | 386 | (insert "--Lisp error: ") |
| 387 | (insert (backtrace-print-to-string (nth 1 args))) | 387 | (insert (backtrace-print-to-string (nth 1 args))) |
| 388 | (insert ?\n)) | 388 | (insert ?\n)) |
| 389 | ;; debug-on-call, when the next thing is an eval. | 389 | ;; debug-on-call, when the next thing is an eval. |
| 390 | (`t | 390 | ('t |
| 391 | (insert "--beginning evaluation of function call form:\n")) | 391 | (insert "--beginning evaluation of function call form:\n")) |
| 392 | ;; User calls debug directly. | 392 | ;; User calls debug directly. |
| 393 | (_ | 393 | (_ |
diff --git a/lisp/emacs-lisp/eieio-compat.el b/lisp/emacs-lisp/eieio-compat.el index e048d0e9ad4..e343dcf37f9 100644 --- a/lisp/emacs-lisp/eieio-compat.el +++ b/lisp/emacs-lisp/eieio-compat.el | |||
| @@ -182,11 +182,11 @@ Summary: | |||
| 182 | ;; `no-applicable-method', which have slightly different calling | 182 | ;; `no-applicable-method', which have slightly different calling |
| 183 | ;; convention than their cl-generic counterpart. | 183 | ;; convention than their cl-generic counterpart. |
| 184 | (pcase method | 184 | (pcase method |
| 185 | (`no-next-method | 185 | ('no-next-method |
| 186 | (setq method 'cl-no-next-method) | 186 | (setq method 'cl-no-next-method) |
| 187 | (setq specializers `(generic method ,@specializers)) | 187 | (setq specializers `(generic method ,@specializers)) |
| 188 | (lambda (_generic _method &rest args) (apply code args))) | 188 | (lambda (_generic _method &rest args) (apply code args))) |
| 189 | (`no-applicable-method | 189 | ('no-applicable-method |
| 190 | (setq method 'cl-no-applicable-method) | 190 | (setq method 'cl-no-applicable-method) |
| 191 | (setq specializers `(generic ,@specializers)) | 191 | (setq specializers `(generic ,@specializers)) |
| 192 | (lambda (generic arg &rest args) | 192 | (lambda (generic arg &rest args) |
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index eb9695d0c12..9702a11998e 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el | |||
| @@ -971,7 +971,7 @@ contained in UNIVERSE." | |||
| 971 | test | 971 | test |
| 972 | (ert-test-most-recent-result test)))) | 972 | (ert-test-most-recent-result test)))) |
| 973 | universe)) | 973 | universe)) |
| 974 | (:unexpected (ert-select-tests `(not :expected) universe)) | 974 | (:unexpected (ert-select-tests '(not :expected) universe)) |
| 975 | ((pred stringp) | 975 | ((pred stringp) |
| 976 | (pcase-exhaustive universe | 976 | (pcase-exhaustive universe |
| 977 | (`t (mapcar #'ert-get-test | 977 | (`t (mapcar #'ert-get-test |
diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el index e38c7d91096..63783219fa1 100644 --- a/lisp/emacs-lisp/generator.el +++ b/lisp/emacs-lisp/generator.el | |||
| @@ -213,8 +213,8 @@ don't yield.") | |||
| 213 | 213 | ||
| 214 | ;; Process `and'. | 214 | ;; Process `and'. |
| 215 | 215 | ||
| 216 | (`(and) ; (and) -> t | 216 | ('(and) ; (and) -> t |
| 217 | (cps--transform-1 t next-state)) | 217 | (cps--transform-1 t next-state)) |
| 218 | (`(and ,condition) ; (and CONDITION) -> CONDITION | 218 | (`(and ,condition) ; (and CONDITION) -> CONDITION |
| 219 | (cps--transform-1 condition next-state)) | 219 | (cps--transform-1 condition next-state)) |
| 220 | (`(and ,condition . ,rest) | 220 | (`(and ,condition . ,rest) |
| @@ -246,8 +246,8 @@ don't yield.") | |||
| 246 | ;; Process `cond': transform into `if' or `or' depending on the | 246 | ;; Process `cond': transform into `if' or `or' depending on the |
| 247 | ;; precise kind of the condition we're looking at. | 247 | ;; precise kind of the condition we're looking at. |
| 248 | 248 | ||
| 249 | (`(cond) ; (cond) -> nil | 249 | ('(cond) ; (cond) -> nil |
| 250 | (cps--transform-1 nil next-state)) | 250 | (cps--transform-1 nil next-state)) |
| 251 | (`(cond (,condition) . ,rest) | 251 | (`(cond (,condition) . ,rest) |
| 252 | (cps--transform-1 `(or ,condition (cond ,@rest)) | 252 | (cps--transform-1 `(or ,condition (cond ,@rest)) |
| 253 | next-state)) | 253 | next-state)) |
| @@ -281,14 +281,14 @@ don't yield.") | |||
| 281 | ;; Process `progn' and `inline': they are identical except for the | 281 | ;; Process `progn' and `inline': they are identical except for the |
| 282 | ;; name, which has some significance to the byte compiler. | 282 | ;; name, which has some significance to the byte compiler. |
| 283 | 283 | ||
| 284 | (`(inline) (cps--transform-1 nil next-state)) | 284 | ('(inline) (cps--transform-1 nil next-state)) |
| 285 | (`(inline ,form) (cps--transform-1 form next-state)) | 285 | (`(inline ,form) (cps--transform-1 form next-state)) |
| 286 | (`(inline ,form . ,rest) | 286 | (`(inline ,form . ,rest) |
| 287 | (cps--transform-1 form | 287 | (cps--transform-1 form |
| 288 | (cps--transform-1 `(inline ,@rest) | 288 | (cps--transform-1 `(inline ,@rest) |
| 289 | next-state))) | 289 | next-state))) |
| 290 | 290 | ||
| 291 | (`(progn) (cps--transform-1 nil next-state)) | 291 | ('(progn) (cps--transform-1 nil next-state)) |
| 292 | (`(progn ,form) (cps--transform-1 form next-state)) | 292 | (`(progn ,form) (cps--transform-1 form next-state)) |
| 293 | (`(progn ,form . ,rest) | 293 | (`(progn ,form . ,rest) |
| 294 | (cps--transform-1 form | 294 | (cps--transform-1 form |
| @@ -345,7 +345,7 @@ don't yield.") | |||
| 345 | 345 | ||
| 346 | ;; Process `or'. | 346 | ;; Process `or'. |
| 347 | 347 | ||
| 348 | (`(or) (cps--transform-1 nil next-state)) | 348 | ('(or) (cps--transform-1 nil next-state)) |
| 349 | (`(or ,condition) (cps--transform-1 condition next-state)) | 349 | (`(or ,condition) (cps--transform-1 condition next-state)) |
| 350 | (`(or ,condition . ,rest) | 350 | (`(or ,condition . ,rest) |
| 351 | (cps--transform-1 | 351 | (cps--transform-1 |
| @@ -646,11 +646,11 @@ modified copy." | |||
| 646 | ,(cps--make-close-iterator-form terminal-state))))) | 646 | ,(cps--make-close-iterator-form terminal-state))))) |
| 647 | (t (error "unknown iterator operation %S" op)))))) | 647 | (t (error "unknown iterator operation %S" op)))))) |
| 648 | ,(when finalizer-symbol | 648 | ,(when finalizer-symbol |
| 649 | `(funcall iterator | 649 | '(funcall iterator |
| 650 | :stash-finalizer | 650 | :stash-finalizer |
| 651 | (make-finalizer | 651 | (make-finalizer |
| 652 | (lambda () | 652 | (lambda () |
| 653 | (iter-close iterator))))) | 653 | (iter-close iterator))))) |
| 654 | iterator)))) | 654 | iterator)))) |
| 655 | 655 | ||
| 656 | (defun iter-yield (value) | 656 | (defun iter-yield (value) |
diff --git a/lisp/emacs-lisp/inline.el b/lisp/emacs-lisp/inline.el index 865e17e3d7d..b6afcc0db94 100644 --- a/lisp/emacs-lisp/inline.el +++ b/lisp/emacs-lisp/inline.el | |||
| @@ -259,7 +259,7 @@ See Info node `(elisp)Defining Functions' for more details." | |||
| 259 | `(error ,@args)) | 259 | `(error ,@args)) |
| 260 | 260 | ||
| 261 | (defun inline--warning (&rest _args) | 261 | (defun inline--warning (&rest _args) |
| 262 | `(throw 'inline--just-use | 262 | '(throw 'inline--just-use |
| 263 | ;; FIXME: This would inf-loop by calling us right back when | 263 | ;; FIXME: This would inf-loop by calling us right back when |
| 264 | ;; macroexpand-all recurses to expand inline--form. | 264 | ;; macroexpand-all recurses to expand inline--form. |
| 265 | ;; (macroexp--warn-and-return (format ,@args) | 265 | ;; (macroexp--warn-and-return (format ,@args) |
diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el index 93678bad7a6..2418264bdbc 100644 --- a/lisp/emacs-lisp/macroexp.el +++ b/lisp/emacs-lisp/macroexp.el | |||
| @@ -222,15 +222,15 @@ Assumes the caller has bound `macroexpand-all-environment'." | |||
| 222 | (cddr form)) | 222 | (cddr form)) |
| 223 | (cdr form)) | 223 | (cdr form)) |
| 224 | form)) | 224 | form)) |
| 225 | (`(,(or `defvar `defconst) . ,_) (macroexp--all-forms form 2)) | 225 | (`(,(or 'defvar 'defconst) . ,_) (macroexp--all-forms form 2)) |
| 226 | (`(function ,(and f `(lambda . ,_))) | 226 | (`(function ,(and f `(lambda . ,_))) |
| 227 | (macroexp--cons 'function | 227 | (macroexp--cons 'function |
| 228 | (macroexp--cons (macroexp--all-forms f 2) | 228 | (macroexp--cons (macroexp--all-forms f 2) |
| 229 | nil | 229 | nil |
| 230 | (cdr form)) | 230 | (cdr form)) |
| 231 | form)) | 231 | form)) |
| 232 | (`(,(or `function `quote) . ,_) form) | 232 | (`(,(or 'function 'quote) . ,_) form) |
| 233 | (`(,(and fun (or `let `let*)) . ,(or `(,bindings . ,body) dontcare)) | 233 | (`(,(and fun (or 'let 'let*)) . ,(or `(,bindings . ,body) dontcare)) |
| 234 | (macroexp--cons fun | 234 | (macroexp--cons fun |
| 235 | (macroexp--cons (macroexp--all-clauses bindings 1) | 235 | (macroexp--cons (macroexp--all-clauses bindings 1) |
| 236 | (macroexp--all-forms body) | 236 | (macroexp--all-forms body) |
| @@ -249,14 +249,14 @@ Assumes the caller has bound `macroexpand-all-environment'." | |||
| 249 | ;; here, so that any code that cares about the difference will | 249 | ;; here, so that any code that cares about the difference will |
| 250 | ;; see the same transformation. | 250 | ;; see the same transformation. |
| 251 | ;; First arg is a function: | 251 | ;; First arg is a function: |
| 252 | (`(,(and fun (or `funcall `apply `mapcar `mapatoms `mapconcat `mapc)) | 252 | (`(,(and fun (or 'funcall 'apply 'mapcar 'mapatoms 'mapconcat 'mapc)) |
| 253 | ',(and f `(lambda . ,_)) . ,args) | 253 | ',(and f `(lambda . ,_)) . ,args) |
| 254 | (macroexp--warn-and-return | 254 | (macroexp--warn-and-return |
| 255 | (format "%s quoted with ' rather than with #'" | 255 | (format "%s quoted with ' rather than with #'" |
| 256 | (list 'lambda (nth 1 f) '...)) | 256 | (list 'lambda (nth 1 f) '...)) |
| 257 | (macroexp--expand-all `(,fun ,f . ,args)))) | 257 | (macroexp--expand-all `(,fun ,f . ,args)))) |
| 258 | ;; Second arg is a function: | 258 | ;; Second arg is a function: |
| 259 | (`(,(and fun (or `sort)) ,arg1 ',(and f `(lambda . ,_)) . ,args) | 259 | (`(,(and fun (or 'sort)) ,arg1 ',(and f `(lambda . ,_)) . ,args) |
| 260 | (macroexp--warn-and-return | 260 | (macroexp--warn-and-return |
| 261 | (format "%s quoted with ' rather than with #'" | 261 | (format "%s quoted with ' rather than with #'" |
| 262 | (list 'lambda (nth 1 f) '...)) | 262 | (list 'lambda (nth 1 f) '...)) |
| @@ -406,7 +406,7 @@ cases where EXP is a constant." | |||
| 406 | "Bind each binding in BINDINGS as `macroexp-let2' does." | 406 | "Bind each binding in BINDINGS as `macroexp-let2' does." |
| 407 | (declare (indent 2) (debug (sexp (&rest (sexp form)) body))) | 407 | (declare (indent 2) (debug (sexp (&rest (sexp form)) body))) |
| 408 | (pcase-exhaustive bindings | 408 | (pcase-exhaustive bindings |
| 409 | (`nil (macroexp-progn body)) | 409 | ('nil (macroexp-progn body)) |
| 410 | (`((,var ,exp) . ,tl) | 410 | (`((,var ,exp) . ,tl) |
| 411 | `(macroexp-let2 ,test ,var ,exp | 411 | `(macroexp-let2 ,test ,var ,exp |
| 412 | (macroexp-let2* ,test ,tl ,@body))))) | 412 | (macroexp-let2* ,test ,tl ,@body))))) |
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el index 1f6f1ffbcda..987521d9d85 100644 --- a/lisp/emacs-lisp/map.el +++ b/lisp/emacs-lisp/map.el | |||
| @@ -331,8 +331,8 @@ MAP can be a list, hash-table or array." | |||
| 331 | TYPE can be one of the following symbols: list or hash-table. | 331 | TYPE can be one of the following symbols: list or hash-table. |
| 332 | MAP can be a list, hash-table or array." | 332 | MAP can be a list, hash-table or array." |
| 333 | (pcase type | 333 | (pcase type |
| 334 | (`list (map-pairs map)) | 334 | ('list (map-pairs map)) |
| 335 | (`hash-table (map--into-hash-table map)) | 335 | ('hash-table (map--into-hash-table map)) |
| 336 | (_ (error "Not a map type name: %S" type)))) | 336 | (_ (error "Not a map type name: %S" type)))) |
| 337 | 337 | ||
| 338 | (defun map--put (map key v) | 338 | (defun map--put (map key v) |
diff --git a/lisp/emacs-lisp/package-x.el b/lisp/emacs-lisp/package-x.el index 3ec214a2af0..d3120ac1460 100644 --- a/lisp/emacs-lisp/package-x.el +++ b/lisp/emacs-lisp/package-x.el | |||
| @@ -202,8 +202,8 @@ if it exists." | |||
| 202 | (split-version (package-desc-version pkg-desc)) | 202 | (split-version (package-desc-version pkg-desc)) |
| 203 | (commentary | 203 | (commentary |
| 204 | (pcase file-type | 204 | (pcase file-type |
| 205 | (`single (lm-commentary)) | 205 | ('single (lm-commentary)) |
| 206 | (`tar nil))) ;; FIXME: Get it from the README file. | 206 | ('tar nil))) ;; FIXME: Get it from the README file. |
| 207 | (extras (package-desc-extras pkg-desc)) | 207 | (extras (package-desc-extras pkg-desc)) |
| 208 | (pkg-version (package-version-join split-version)) | 208 | (pkg-version (package-version-join split-version)) |
| 209 | (pkg-buffer (current-buffer))) | 209 | (pkg-buffer (current-buffer))) |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f2ffef8da7a..dcede1a5b27 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -496,9 +496,9 @@ This is, approximately, the inverse of `version-to-list'. | |||
| 496 | 496 | ||
| 497 | (defun package-desc-suffix (pkg-desc) | 497 | (defun package-desc-suffix (pkg-desc) |
| 498 | (pcase (package-desc-kind pkg-desc) | 498 | (pcase (package-desc-kind pkg-desc) |
| 499 | (`single ".el") | 499 | ('single ".el") |
| 500 | (`tar ".tar") | 500 | ('tar ".tar") |
| 501 | (`dir "") | 501 | ('dir "") |
| 502 | (kind (error "Unknown package kind: %s" kind)))) | 502 | (kind (error "Unknown package kind: %s" kind)))) |
| 503 | 503 | ||
| 504 | (defun package-desc--keywords (pkg-desc) | 504 | (defun package-desc--keywords (pkg-desc) |
| @@ -846,7 +846,7 @@ untar into a directory named DIR; otherwise, signal an error." | |||
| 846 | (dirname (package-desc-full-name pkg-desc)) | 846 | (dirname (package-desc-full-name pkg-desc)) |
| 847 | (pkg-dir (expand-file-name dirname package-user-dir))) | 847 | (pkg-dir (expand-file-name dirname package-user-dir))) |
| 848 | (pcase (package-desc-kind pkg-desc) | 848 | (pcase (package-desc-kind pkg-desc) |
| 849 | (`dir | 849 | ('dir |
| 850 | (make-directory pkg-dir t) | 850 | (make-directory pkg-dir t) |
| 851 | (let ((file-list | 851 | (let ((file-list |
| 852 | (directory-files | 852 | (directory-files |
| @@ -860,12 +860,12 @@ untar into a directory named DIR; otherwise, signal an error." | |||
| 860 | ;; things simple by ensuring we're one of them. | 860 | ;; things simple by ensuring we're one of them. |
| 861 | (setf (package-desc-kind pkg-desc) | 861 | (setf (package-desc-kind pkg-desc) |
| 862 | (if (> (length file-list) 1) 'tar 'single)))) | 862 | (if (> (length file-list) 1) 'tar 'single)))) |
| 863 | (`tar | 863 | ('tar |
| 864 | (make-directory package-user-dir t) | 864 | (make-directory package-user-dir t) |
| 865 | ;; FIXME: should we delete PKG-DIR if it exists? | 865 | ;; FIXME: should we delete PKG-DIR if it exists? |
| 866 | (let* ((default-directory (file-name-as-directory package-user-dir))) | 866 | (let* ((default-directory (file-name-as-directory package-user-dir))) |
| 867 | (package-untar-buffer dirname))) | 867 | (package-untar-buffer dirname))) |
| 868 | (`single | 868 | ('single |
| 869 | (let ((el-file (expand-file-name (format "%s.el" name) pkg-dir))) | 869 | (let ((el-file (expand-file-name (format "%s.el" name) pkg-dir))) |
| 870 | (make-directory pkg-dir t) | 870 | (make-directory pkg-dir t) |
| 871 | (package--write-file-no-coding el-file))) | 871 | (package--write-file-no-coding el-file))) |
| @@ -2494,7 +2494,7 @@ Otherwise no newline is inserted." | |||
| 2494 | 2494 | ||
| 2495 | (easy-menu-define package-menu-mode-menu package-menu-mode-map | 2495 | (easy-menu-define package-menu-mode-menu package-menu-mode-map |
| 2496 | "Menu for `package-menu-mode'." | 2496 | "Menu for `package-menu-mode'." |
| 2497 | `("Package" | 2497 | '("Package" |
| 2498 | ["Describe Package" package-menu-describe-package :help "Display information about this package"] | 2498 | ["Describe Package" package-menu-describe-package :help "Display information about this package"] |
| 2499 | ["Help" package-menu-quick-help :help "Show short key binding help for package-menu-mode"] | 2499 | ["Help" package-menu-quick-help :help "Show short key binding help for package-menu-mode"] |
| 2500 | "--" | 2500 | "--" |
diff --git a/lisp/emacs-lisp/radix-tree.el b/lisp/emacs-lisp/radix-tree.el index 2491ccea95b..f4184e8700d 100644 --- a/lisp/emacs-lisp/radix-tree.el +++ b/lisp/emacs-lisp/radix-tree.el | |||
| @@ -74,7 +74,7 @@ | |||
| 74 | (cmp (compare-strings prefix nil nil key i ni))) | 74 | (cmp (compare-strings prefix nil nil key i ni))) |
| 75 | (if (eq t cmp) | 75 | (if (eq t cmp) |
| 76 | (pcase (radix-tree--remove ptree key ni) | 76 | (pcase (radix-tree--remove ptree key ni) |
| 77 | (`nil rtree) | 77 | ('nil rtree) |
| 78 | (`((,pprefix . ,pptree)) | 78 | (`((,pprefix . ,pptree)) |
| 79 | `((,(concat prefix pprefix) . ,pptree) . ,rtree)) | 79 | `((,(concat prefix pprefix) . ,pptree) . ,rtree)) |
| 80 | (nptree `((,prefix . ,nptree) . ,rtree))) | 80 | (nptree `((,prefix . ,nptree) . ,rtree))) |
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el index 4b821729840..be4031946e2 100644 --- a/lisp/emacs-lisp/smie.el +++ b/lisp/emacs-lisp/smie.el | |||
| @@ -533,9 +533,9 @@ PREC2 is a table as returned by `smie-precs->prec2' or | |||
| 533 | (setq y (cons nil (cons nil nil))) | 533 | (setq y (cons nil (cons nil nil))) |
| 534 | (push (cons (cdr k) y) table)) | 534 | (push (cons (cdr k) y) table)) |
| 535 | (pcase v | 535 | (pcase v |
| 536 | (`= (push (cons x y) eqs)) | 536 | ('= (push (cons x y) eqs)) |
| 537 | (`< (push (cons x y) csts)) | 537 | ('< (push (cons x y) csts)) |
| 538 | (`> (push (cons y x) csts)) | 538 | ('> (push (cons y x) csts)) |
| 539 | (_ (error "SMIE error: prec2 has %S↦%S which ∉ {<,+,>}" | 539 | (_ (error "SMIE error: prec2 has %S↦%S which ∉ {<,+,>}" |
| 540 | k v)))))) | 540 | k v)))))) |
| 541 | prec2) | 541 | prec2) |
| @@ -612,8 +612,8 @@ PREC2 is a table as returned by `smie-precs->prec2' or | |||
| 612 | (dolist (x (gethash :smie-open/close-alist prec2)) | 612 | (dolist (x (gethash :smie-open/close-alist prec2)) |
| 613 | (let* ((token (car x)) | 613 | (let* ((token (car x)) |
| 614 | (cons (pcase (cdr x) | 614 | (cons (pcase (cdr x) |
| 615 | (`closer (cddr (assoc token table))) | 615 | ('closer (cddr (assoc token table))) |
| 616 | (`opener (cdr (assoc token table)))))) | 616 | ('opener (cdr (assoc token table)))))) |
| 617 | ;; `cons' can be nil for openers/closers which only contain | 617 | ;; `cons' can be nil for openers/closers which only contain |
| 618 | ;; "atomic" elements. | 618 | ;; "atomic" elements. |
| 619 | (when cons | 619 | (when cons |
diff --git a/lisp/epa.el b/lisp/epa.el index c3938e90a71..9f091288881 100644 --- a/lisp/epa.el +++ b/lisp/epa.el | |||
| @@ -597,12 +597,12 @@ If SECRET is non-nil, list secret keys instead of public keys." | |||
| 597 | (erase-buffer) | 597 | (erase-buffer) |
| 598 | (insert (format | 598 | (insert (format |
| 599 | (pcase (epg-context-operation context) | 599 | (pcase (epg-context-operation context) |
| 600 | (`decrypt "Error while decrypting with \"%s\":") | 600 | ('decrypt "Error while decrypting with \"%s\":") |
| 601 | (`verify "Error while verifying with \"%s\":") | 601 | ('verify "Error while verifying with \"%s\":") |
| 602 | (`sign "Error while signing with \"%s\":") | 602 | ('sign "Error while signing with \"%s\":") |
| 603 | (`encrypt "Error while encrypting with \"%s\":") | 603 | ('encrypt "Error while encrypting with \"%s\":") |
| 604 | (`import-keys "Error while importing keys with \"%s\":") | 604 | ('import-keys "Error while importing keys with \"%s\":") |
| 605 | (`export-keys "Error while exporting keys with \"%s\":") | 605 | ('export-keys "Error while exporting keys with \"%s\":") |
| 606 | (_ "Error while executing \"%s\":\n\n")) | 606 | (_ "Error while executing \"%s\":\n\n")) |
| 607 | (epg-context-program context)) | 607 | (epg-context-program context)) |
| 608 | "\n\n" | 608 | "\n\n" |
diff --git a/lisp/erc/erc-dcc.el b/lisp/erc/erc-dcc.el index 8de00070583..0ad73785a8a 100644 --- a/lisp/erc/erc-dcc.el +++ b/lisp/erc/erc-dcc.el | |||
| @@ -422,23 +422,23 @@ where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc." | |||
| 422 | (when (fboundp 'make-network-process) '("send")))) | 422 | (when (fboundp 'make-network-process) '("send")))) |
| 423 | (pcomplete-here | 423 | (pcomplete-here |
| 424 | (pcase (intern (downcase (pcomplete-arg 1))) | 424 | (pcase (intern (downcase (pcomplete-arg 1))) |
| 425 | (`chat (mapcar (lambda (elt) (plist-get elt :nick)) | 425 | ('chat (mapcar (lambda (elt) (plist-get elt :nick)) |
| 426 | (erc-remove-if-not | 426 | (erc-remove-if-not |
| 427 | #'(lambda (elt) | 427 | #'(lambda (elt) |
| 428 | (eq (plist-get elt :type) 'CHAT)) | 428 | (eq (plist-get elt :type) 'CHAT)) |
| 429 | erc-dcc-list))) | 429 | erc-dcc-list))) |
| 430 | (`close (erc-delete-dups | 430 | ('close (erc-delete-dups |
| 431 | (mapcar (lambda (elt) (symbol-name (plist-get elt :type))) | 431 | (mapcar (lambda (elt) (symbol-name (plist-get elt :type))) |
| 432 | erc-dcc-list))) | 432 | erc-dcc-list))) |
| 433 | (`get (mapcar #'erc-dcc-nick | 433 | ('get (mapcar #'erc-dcc-nick |
| 434 | (erc-remove-if-not | 434 | (erc-remove-if-not |
| 435 | #'(lambda (elt) | 435 | #'(lambda (elt) |
| 436 | (eq (plist-get elt :type) 'GET)) | 436 | (eq (plist-get elt :type) 'GET)) |
| 437 | erc-dcc-list))) | 437 | erc-dcc-list))) |
| 438 | (`send (pcomplete-erc-all-nicks)))) | 438 | ('send (pcomplete-erc-all-nicks)))) |
| 439 | (pcomplete-here | 439 | (pcomplete-here |
| 440 | (pcase (intern (downcase (pcomplete-arg 2))) | 440 | (pcase (intern (downcase (pcomplete-arg 2))) |
| 441 | (`get (mapcar (lambda (elt) (plist-get elt :file)) | 441 | ('get (mapcar (lambda (elt) (plist-get elt :file)) |
| 442 | (erc-remove-if-not | 442 | (erc-remove-if-not |
| 443 | #'(lambda (elt) | 443 | #'(lambda (elt) |
| 444 | (and (eq (plist-get elt :type) 'GET) | 444 | (and (eq (plist-get elt :type) 'GET) |
| @@ -446,13 +446,13 @@ where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc." | |||
| 446 | (plist-get elt :nick)) | 446 | (plist-get elt :nick)) |
| 447 | (pcomplete-arg 1)))) | 447 | (pcomplete-arg 1)))) |
| 448 | erc-dcc-list))) | 448 | erc-dcc-list))) |
| 449 | (`close (mapcar #'erc-dcc-nick | 449 | ('close (mapcar #'erc-dcc-nick |
| 450 | (erc-remove-if-not | 450 | (erc-remove-if-not |
| 451 | #'(lambda (elt) | 451 | #'(lambda (elt) |
| 452 | (eq (plist-get elt :type) | 452 | (eq (plist-get elt :type) |
| 453 | (intern (upcase (pcomplete-arg 1))))) | 453 | (intern (upcase (pcomplete-arg 1))))) |
| 454 | erc-dcc-list))) | 454 | erc-dcc-list))) |
| 455 | (`send (pcomplete-entries))))) | 455 | ('send (pcomplete-entries))))) |
| 456 | 456 | ||
| 457 | (defun erc-dcc-do-CHAT-command (proc &optional nick) | 457 | (defun erc-dcc-do-CHAT-command (proc &optional nick) |
| 458 | (when nick | 458 | (when nick |
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index cae18f60937..d1f4d4acaee 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el | |||
| @@ -929,14 +929,14 @@ relative to `erc-track-switch-direction'" | |||
| 929 | offset) | 929 | offset) |
| 930 | (when (< arg 0) | 930 | (when (< arg 0) |
| 931 | (setq dir (pcase dir | 931 | (setq dir (pcase dir |
| 932 | (`oldest 'newest) | 932 | ('oldest 'newest) |
| 933 | (`newest 'oldest) | 933 | ('newest 'oldest) |
| 934 | (`mostactive 'leastactive) | 934 | ('mostactive 'leastactive) |
| 935 | (`leastactive 'mostactive) | 935 | ('leastactive 'mostactive) |
| 936 | (`importance 'oldest))) | 936 | ('importance 'oldest))) |
| 937 | (setq arg (- arg))) | 937 | (setq arg (- arg))) |
| 938 | (setq offset (pcase dir | 938 | (setq offset (pcase dir |
| 939 | ((or `oldest `leastactive) | 939 | ((or 'oldest 'leastactive) |
| 940 | (- (length erc-modified-channels-alist) arg)) | 940 | (- (length erc-modified-channels-alist) arg)) |
| 941 | (_ (1- arg)))) | 941 | (_ (1- arg)))) |
| 942 | ;; normalize out of range user input | 942 | ;; normalize out of range user input |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index a7e27424f29..60f877fe37e 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -1943,15 +1943,15 @@ removed from the list will be disabled." | |||
| 1943 | (defun erc-setup-buffer (buffer) | 1943 | (defun erc-setup-buffer (buffer) |
| 1944 | "Consults `erc-join-buffer' to find out how to display `BUFFER'." | 1944 | "Consults `erc-join-buffer' to find out how to display `BUFFER'." |
| 1945 | (pcase erc-join-buffer | 1945 | (pcase erc-join-buffer |
| 1946 | (`window | 1946 | ('window |
| 1947 | (if (active-minibuffer-window) | 1947 | (if (active-minibuffer-window) |
| 1948 | (display-buffer buffer) | 1948 | (display-buffer buffer) |
| 1949 | (switch-to-buffer-other-window buffer))) | 1949 | (switch-to-buffer-other-window buffer))) |
| 1950 | (`window-noselect | 1950 | ('window-noselect |
| 1951 | (display-buffer buffer)) | 1951 | (display-buffer buffer)) |
| 1952 | (`bury | 1952 | ('bury |
| 1953 | nil) | 1953 | nil) |
| 1954 | (`frame | 1954 | ('frame |
| 1955 | (when (or (not erc-reuse-frames) | 1955 | (when (or (not erc-reuse-frames) |
| 1956 | (not (get-buffer-window buffer t))) | 1956 | (not (get-buffer-window buffer t))) |
| 1957 | (let ((frame (make-frame (or erc-frame-alist | 1957 | (let ((frame (make-frame (or erc-frame-alist |
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index 53de7f7ec63..1e09ed61781 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el | |||
| @@ -346,7 +346,7 @@ instead." | |||
| 346 | "ls" (if eshell-ls-initial-args | 346 | "ls" (if eshell-ls-initial-args |
| 347 | (list eshell-ls-initial-args args) | 347 | (list eshell-ls-initial-args args) |
| 348 | args) | 348 | args) |
| 349 | `((?a "all" nil show-all | 349 | '((?a "all" nil show-all |
| 350 | "do not ignore entries starting with .") | 350 | "do not ignore entries starting with .") |
| 351 | (?A "almost-all" nil show-almost-all | 351 | (?A "almost-all" nil show-almost-all |
| 352 | "do not list implied . and ..") | 352 | "do not list implied . and ..") |
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 92cac612d4c..8daaa0e0d39 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el | |||
| @@ -816,7 +816,7 @@ This is used on systems where async subprocesses are not supported." | |||
| 816 | ;; The last process in the pipe should get its handles | 816 | ;; The last process in the pipe should get its handles |
| 817 | ;; redirected as we found them before running the pipe. | 817 | ;; redirected as we found them before running the pipe. |
| 818 | ,(if (null (cdr pipeline)) | 818 | ,(if (null (cdr pipeline)) |
| 819 | `(progn | 819 | '(progn |
| 820 | (setq eshell-current-handles tail-handles) | 820 | (setq eshell-current-handles tail-handles) |
| 821 | (setq eshell-in-pipeline-p nil))) | 821 | (setq eshell-in-pipeline-p nil))) |
| 822 | (let ((result ,(car pipeline))) | 822 | (let ((result ,(car pipeline))) |
diff --git a/lisp/files.el b/lisp/files.el index dbac6f614fc..fb6cf0193a9 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1158,7 +1158,7 @@ consecutive checks. For example: | |||
| 1158 | (file-attributes (file-chase-links file)))))))" | 1158 | (file-attributes (file-chase-links file)))))))" |
| 1159 | :group 'files | 1159 | :group 'files |
| 1160 | :version "24.1" | 1160 | :version "24.1" |
| 1161 | :type `(choice | 1161 | :type '(choice |
| 1162 | (const :tag "Do not inhibit file name cache" nil) | 1162 | (const :tag "Do not inhibit file name cache" nil) |
| 1163 | (const :tag "Do not use file name cache" t) | 1163 | (const :tag "Do not use file name cache" t) |
| 1164 | (integer :tag "Do not use file name cache" | 1164 | (integer :tag "Do not use file name cache" |
| @@ -3837,13 +3837,13 @@ It is dangerous if either of these conditions are met: | |||
| 3837 | If VAR is `mode', call `VAL-mode' as a function unless it's | 3837 | If VAR is `mode', call `VAL-mode' as a function unless it's |
| 3838 | already the major mode." | 3838 | already the major mode." |
| 3839 | (pcase var | 3839 | (pcase var |
| 3840 | (`mode | 3840 | ('mode |
| 3841 | (let ((mode (intern (concat (downcase (symbol-name val)) | 3841 | (let ((mode (intern (concat (downcase (symbol-name val)) |
| 3842 | "-mode")))) | 3842 | "-mode")))) |
| 3843 | (unless (eq (indirect-function mode) | 3843 | (unless (eq (indirect-function mode) |
| 3844 | (indirect-function major-mode)) | 3844 | (indirect-function major-mode)) |
| 3845 | (funcall mode)))) | 3845 | (funcall mode)))) |
| 3846 | (`eval | 3846 | ('eval |
| 3847 | (pcase val | 3847 | (pcase val |
| 3848 | (`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook))) | 3848 | (`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook))) |
| 3849 | (save-excursion (eval val))) | 3849 | (save-excursion (eval val))) |
| @@ -7168,18 +7168,18 @@ only these files will be asked to be saved." | |||
| 7168 | (setcar pair (file-name-unquote (car pair) t)))) | 7168 | (setcar pair (file-name-unquote (car pair) t)))) |
| 7169 | (setq file-arg-indices (cdr file-arg-indices)))) | 7169 | (setq file-arg-indices (cdr file-arg-indices)))) |
| 7170 | (pcase method | 7170 | (pcase method |
| 7171 | (`identity (car arguments)) | 7171 | ('identity (car arguments)) |
| 7172 | (`add (file-name-quote (apply operation arguments) t)) | 7172 | ('add (file-name-quote (apply operation arguments) t)) |
| 7173 | (`buffer-file-name | 7173 | ('buffer-file-name |
| 7174 | (let ((buffer-file-name (file-name-unquote buffer-file-name t))) | 7174 | (let ((buffer-file-name (file-name-unquote buffer-file-name t))) |
| 7175 | (apply operation arguments))) | 7175 | (apply operation arguments))) |
| 7176 | (`insert-file-contents | 7176 | ('insert-file-contents |
| 7177 | (let ((visit (nth 1 arguments))) | 7177 | (let ((visit (nth 1 arguments))) |
| 7178 | (unwind-protect | 7178 | (unwind-protect |
| 7179 | (apply operation arguments) | 7179 | (apply operation arguments) |
| 7180 | (when (and visit buffer-file-name) | 7180 | (when (and visit buffer-file-name) |
| 7181 | (setq buffer-file-name (file-name-quote buffer-file-name t)))))) | 7181 | (setq buffer-file-name (file-name-quote buffer-file-name t)))))) |
| 7182 | (`unquote-then-quote | 7182 | ('unquote-then-quote |
| 7183 | ;; We can't use `cl-letf' with `(buffer-local-value)' here | 7183 | ;; We can't use `cl-letf' with `(buffer-local-value)' here |
| 7184 | ;; because it wouldn't work during bootstrapping. | 7184 | ;; because it wouldn't work during bootstrapping. |
| 7185 | (let ((buffer (current-buffer))) | 7185 | (let ((buffer (current-buffer))) |
| @@ -7192,7 +7192,7 @@ only these files will be asked to be saved." | |||
| 7192 | ;; underlying operation. | 7192 | ;; underlying operation. |
| 7193 | (with-current-buffer buffer | 7193 | (with-current-buffer buffer |
| 7194 | (apply operation arguments)))))) | 7194 | (apply operation arguments)))))) |
| 7195 | (`local-copy | 7195 | ('local-copy |
| 7196 | (let* ((file-name-handler-alist saved-file-name-handler-alist) | 7196 | (let* ((file-name-handler-alist saved-file-name-handler-alist) |
| 7197 | (source (car arguments)) | 7197 | (source (car arguments)) |
| 7198 | (target (car (cdr arguments))) | 7198 | (target (car (cdr arguments))) |
diff --git a/lisp/filesets.el b/lisp/filesets.el index 8ccfa570e3a..8243b4045c3 100644 --- a/lisp/filesets.el +++ b/lisp/filesets.el | |||
| @@ -565,7 +565,7 @@ including directory trees to the menu can take a lot of memory." | |||
| 565 | :group 'filesets) | 565 | :group 'filesets) |
| 566 | 566 | ||
| 567 | (defcustom filesets-commands | 567 | (defcustom filesets-commands |
| 568 | `(("Isearch" | 568 | '(("Isearch" |
| 569 | multi-isearch-files | 569 | multi-isearch-files |
| 570 | (filesets-cmd-isearch-getargs)) | 570 | (filesets-cmd-isearch-getargs)) |
| 571 | ("Isearch (regexp)" | 571 | ("Isearch (regexp)" |
| @@ -1286,10 +1286,10 @@ on-close-all ... Not used" | |||
| 1286 | (filesets-get-external-viewer filename))))) | 1286 | (filesets-get-external-viewer filename))))) |
| 1287 | (filesets-alist-get def | 1287 | (filesets-alist-get def |
| 1288 | (pcase event | 1288 | (pcase event |
| 1289 | (`on-open-all ':ignore-on-open-all) | 1289 | ('on-open-all ':ignore-on-open-all) |
| 1290 | (`on-grep ':ignore-on-read-text) | 1290 | ('on-grep ':ignore-on-read-text) |
| 1291 | (`on-cmd nil) | 1291 | ('on-cmd nil) |
| 1292 | (`on-close-all nil)) | 1292 | ('on-close-all nil)) |
| 1293 | nil t))) | 1293 | nil t))) |
| 1294 | 1294 | ||
| 1295 | (defun filesets-filetype-get-prop (property filename &optional entry) | 1295 | (defun filesets-filetype-get-prop (property filename &optional entry) |
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index be9fb4dc93f..b4cf5b0387d 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -926,9 +926,9 @@ The value of this variable is used when Font Lock mode is turned on." | |||
| 926 | 926 | ||
| 927 | (defun font-lock-turn-on-thing-lock () | 927 | (defun font-lock-turn-on-thing-lock () |
| 928 | (pcase (font-lock-value-in-major-mode font-lock-support-mode) | 928 | (pcase (font-lock-value-in-major-mode font-lock-support-mode) |
| 929 | (`fast-lock-mode (fast-lock-mode t)) | 929 | ('fast-lock-mode (fast-lock-mode t)) |
| 930 | (`lazy-lock-mode (lazy-lock-mode t)) | 930 | ('lazy-lock-mode (lazy-lock-mode t)) |
| 931 | (`jit-lock-mode | 931 | ('jit-lock-mode |
| 932 | ;; Prepare for jit-lock | 932 | ;; Prepare for jit-lock |
| 933 | (remove-hook 'after-change-functions | 933 | (remove-hook 'after-change-functions |
| 934 | #'font-lock-after-change-function t) | 934 | #'font-lock-after-change-function t) |
diff --git a/lisp/frameset.el b/lisp/frameset.el index 0d7e8025abd..aa392be2802 100644 --- a/lisp/frameset.el +++ b/lisp/frameset.el | |||
| @@ -675,7 +675,7 @@ nil while the filtering is done to restore it." | |||
| 675 | ;; of a frameset, so we must copy parameters to avoid inadvertent | 675 | ;; of a frameset, so we must copy parameters to avoid inadvertent |
| 676 | ;; modifications. | 676 | ;; modifications. |
| 677 | (pcase (cdr (assq (car current) filter-alist)) | 677 | (pcase (cdr (assq (car current) filter-alist)) |
| 678 | (`nil | 678 | ('nil |
| 679 | (push (if saving current (copy-tree current)) filtered)) | 679 | (push (if saving current (copy-tree current)) filtered)) |
| 680 | (:never | 680 | (:never |
| 681 | nil) | 681 | nil) |
| @@ -903,7 +903,7 @@ NOTE: This only works for non-iconified frames." | |||
| 903 | (< fr-right left) (> fr-right right) | 903 | (< fr-right left) (> fr-right right) |
| 904 | (< fr-top top) (> fr-top bottom))) | 904 | (< fr-top top) (> fr-top bottom))) |
| 905 | ;; Displaced to the left, right, above or below the screen. | 905 | ;; Displaced to the left, right, above or below the screen. |
| 906 | (`t (or (> fr-left right) | 906 | ('t (or (> fr-left right) |
| 907 | (< fr-right left) | 907 | (< fr-right left) |
| 908 | (> fr-top bottom) | 908 | (> fr-top bottom) |
| 909 | (< fr-bottom top))) | 909 | (< fr-bottom top))) |
| @@ -1195,11 +1195,11 @@ All keyword parameters default to nil." | |||
| 1195 | ;; will decide which ones can be reused, and how to deal with any leftover. | 1195 | ;; will decide which ones can be reused, and how to deal with any leftover. |
| 1196 | (frameset--reuse-list | 1196 | (frameset--reuse-list |
| 1197 | (pcase reuse-frames | 1197 | (pcase reuse-frames |
| 1198 | (`t | 1198 | ('t |
| 1199 | frames) | 1199 | frames) |
| 1200 | (`nil | 1200 | ('nil |
| 1201 | nil) | 1201 | nil) |
| 1202 | (`match | 1202 | ('match |
| 1203 | (cl-loop for (state) in (frameset-states frameset) | 1203 | (cl-loop for (state) in (frameset-states frameset) |
| 1204 | when (frameset-frame-with-id (frameset-cfg-id state) frames) | 1204 | when (frameset-frame-with-id (frameset-cfg-id state) frames) |
| 1205 | collect it)) | 1205 | collect it)) |
| @@ -1364,11 +1364,11 @@ Called from `jump-to-register'. Internal use only." | |||
| 1364 | ;; iconify frames | 1364 | ;; iconify frames |
| 1365 | (lambda (frame action) | 1365 | (lambda (frame action) |
| 1366 | (pcase action | 1366 | (pcase action |
| 1367 | (`rejected (iconify-frame frame)) | 1367 | ('rejected (iconify-frame frame)) |
| 1368 | ;; In the unexpected case that a frame was a candidate | 1368 | ;; In the unexpected case that a frame was a candidate |
| 1369 | ;; (matching frame id) and yet not restored, remove it | 1369 | ;; (matching frame id) and yet not restored, remove it |
| 1370 | ;; because it is in fact a duplicate. | 1370 | ;; because it is in fact a duplicate. |
| 1371 | (`ignored (delete-frame frame)))))) | 1371 | ('ignored (delete-frame frame)))))) |
| 1372 | 1372 | ||
| 1373 | ;; Restore selected frame, buffer and point. | 1373 | ;; Restore selected frame, buffer and point. |
| 1374 | (let ((frame (frameset-frame-with-id (aref data 1))) | 1374 | (let ((frame (frameset-frame-with-id (aref data 1))) |
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el index 93a675584f5..28d8ac6d975 100644 --- a/lisp/gnus/gnus-agent.el +++ b/lisp/gnus/gnus-agent.el | |||
| @@ -2600,11 +2600,11 @@ General format specifiers can also be used. See Info node | |||
| 2600 | (defvar gnus-tmp-groups) | 2600 | (defvar gnus-tmp-groups) |
| 2601 | 2601 | ||
| 2602 | (defvar gnus-category-line-format-alist | 2602 | (defvar gnus-category-line-format-alist |
| 2603 | `((?c gnus-tmp-name ?s) | 2603 | '((?c gnus-tmp-name ?s) |
| 2604 | (?g gnus-tmp-groups ?d))) | 2604 | (?g gnus-tmp-groups ?d))) |
| 2605 | 2605 | ||
| 2606 | (defvar gnus-category-mode-line-format-alist | 2606 | (defvar gnus-category-mode-line-format-alist |
| 2607 | `((?u user-defined ?s))) | 2607 | '((?u user-defined ?s))) |
| 2608 | 2608 | ||
| 2609 | (defvar gnus-category-line-format-spec nil) | 2609 | (defvar gnus-category-line-format-spec nil) |
| 2610 | (defvar gnus-category-mode-line-format-spec nil) | 2610 | (defvar gnus-category-mode-line-format-spec nil) |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index c78bb3325f0..28ee174597b 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -278,7 +278,7 @@ This can also be a list of the above values." | |||
| 278 | "String or function to be executed to display an X-Face header. | 278 | "String or function to be executed to display an X-Face header. |
| 279 | If it is a string, the command will be executed in a sub-shell | 279 | If it is a string, the command will be executed in a sub-shell |
| 280 | asynchronously. The compressed face will be piped to this command." | 280 | asynchronously. The compressed face will be piped to this command." |
| 281 | :type `(choice string | 281 | :type '(choice string |
| 282 | (function-item gnus-display-x-face-in-from) | 282 | (function-item gnus-display-x-face-in-from) |
| 283 | function) | 283 | function) |
| 284 | :version "21.1" | 284 | :version "21.1" |
| @@ -5155,7 +5155,7 @@ Deleting parts may malfunction or destroy the article; continue? ")) | |||
| 5155 | "`----\n")) | 5155 | "`----\n")) |
| 5156 | (setcdr data | 5156 | (setcdr data |
| 5157 | (cdr (mm-make-handle | 5157 | (cdr (mm-make-handle |
| 5158 | nil `("text/plain" (charset . gnus-decoded)) nil nil | 5158 | nil '("text/plain" (charset . gnus-decoded)) nil nil |
| 5159 | (list "attachment") | 5159 | (list "attachment") |
| 5160 | (format "Deleted attachment (%s bytes)" bsize)))))) | 5160 | (format "Deleted attachment (%s bytes)" bsize)))))) |
| 5161 | ;; (set-buffer gnus-summary-buffer) | 5161 | ;; (set-buffer gnus-summary-buffer) |
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el index bbf9e527db7..b48815bc0a7 100644 --- a/lisp/gnus/gnus-cite.el +++ b/lisp/gnus/gnus-cite.el | |||
| @@ -340,7 +340,7 @@ in a boring face, then the pages will be skipped." | |||
| 340 | ;; TAG: Is a Supercite tag, if any. | 340 | ;; TAG: Is a Supercite tag, if any. |
| 341 | 341 | ||
| 342 | (defvar gnus-cited-opened-text-button-line-format-alist | 342 | (defvar gnus-cited-opened-text-button-line-format-alist |
| 343 | `((?b (marker-position beg) ?d) | 343 | '((?b (marker-position beg) ?d) |
| 344 | (?e (marker-position end) ?d) | 344 | (?e (marker-position end) ?d) |
| 345 | (?n (count-lines beg end) ?d) | 345 | (?n (count-lines beg end) ?d) |
| 346 | (?l (- end beg) ?d))) | 346 | (?l (- end beg) ?d))) |
| @@ -625,7 +625,7 @@ always hide." | |||
| 625 | (point) | 625 | (point) |
| 626 | (progn (eval gnus-cited-closed-text-button-line-format-spec) | 626 | (progn (eval gnus-cited-closed-text-button-line-format-spec) |
| 627 | (point)) | 627 | (point)) |
| 628 | `gnus-article-toggle-cited-text | 628 | 'gnus-article-toggle-cited-text |
| 629 | (list (cons beg end) start)) | 629 | (list (cons beg end) start)) |
| 630 | (point)) | 630 | (point)) |
| 631 | 'article-type 'annotation) | 631 | 'article-type 'annotation) |
| @@ -675,7 +675,7 @@ means show, nil means toggle." | |||
| 675 | gnus-cited-opened-text-button-line-format-spec | 675 | gnus-cited-opened-text-button-line-format-spec |
| 676 | gnus-cited-closed-text-button-line-format-spec)) | 676 | gnus-cited-closed-text-button-line-format-spec)) |
| 677 | (point)) | 677 | (point)) |
| 678 | `gnus-article-toggle-cited-text | 678 | 'gnus-article-toggle-cited-text |
| 679 | args) | 679 | args) |
| 680 | (point)) | 680 | (point)) |
| 681 | 'article-type 'annotation))))) | 681 | 'article-type 'annotation))))) |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index d526894b3ac..c4ec9c1d327 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -496,7 +496,7 @@ simple manner." | |||
| 496 | (defvar gnus-tmp-number-of-unread) | 496 | (defvar gnus-tmp-number-of-unread) |
| 497 | 497 | ||
| 498 | (defvar gnus-group-line-format-alist | 498 | (defvar gnus-group-line-format-alist |
| 499 | `((?M gnus-tmp-marked-mark ?c) | 499 | '((?M gnus-tmp-marked-mark ?c) |
| 500 | (?S gnus-tmp-subscribed ?c) | 500 | (?S gnus-tmp-subscribed ?c) |
| 501 | (?L gnus-tmp-level ?d) | 501 | (?L gnus-tmp-level ?d) |
| 502 | (?N (cond ((eq number t) "*" ) | 502 | (?N (cond ((eq number t) "*" ) |
| @@ -544,7 +544,7 @@ simple manner." | |||
| 544 | )) | 544 | )) |
| 545 | 545 | ||
| 546 | (defvar gnus-group-mode-line-format-alist | 546 | (defvar gnus-group-mode-line-format-alist |
| 547 | `((?S gnus-tmp-news-server ?s) | 547 | '((?S gnus-tmp-news-server ?s) |
| 548 | (?M gnus-tmp-news-method ?s) | 548 | (?M gnus-tmp-news-method ?s) |
| 549 | (?u gnus-tmp-user-defined ?s) | 549 | (?u gnus-tmp-user-defined ?s) |
| 550 | (?: gnus-tmp-colon ?s))) | 550 | (?: gnus-tmp-colon ?s))) |
| @@ -780,7 +780,7 @@ simple manner." | |||
| 780 | 780 | ||
| 781 | (easy-menu-define | 781 | (easy-menu-define |
| 782 | gnus-group-reading-menu gnus-group-mode-map "" | 782 | gnus-group-reading-menu gnus-group-mode-map "" |
| 783 | `("Group" | 783 | '("Group" |
| 784 | ["Read" gnus-group-read-group | 784 | ["Read" gnus-group-read-group |
| 785 | :included (not (gnus-topic-mode-p)) | 785 | :included (not (gnus-topic-mode-p)) |
| 786 | :active (gnus-group-group-name)] | 786 | :active (gnus-group-group-name)] |
| @@ -947,7 +947,7 @@ simple manner." | |||
| 947 | 947 | ||
| 948 | (easy-menu-define | 948 | (easy-menu-define |
| 949 | gnus-group-misc-menu gnus-group-mode-map "" | 949 | gnus-group-misc-menu gnus-group-mode-map "" |
| 950 | `("Gnus" | 950 | '("Gnus" |
| 951 | ["Send a mail" gnus-group-mail t] | 951 | ["Send a mail" gnus-group-mail t] |
| 952 | ["Send a message (mail or news)" gnus-group-post-news t] | 952 | ["Send a message (mail or news)" gnus-group-post-news t] |
| 953 | ["Create a local message" gnus-group-news t] | 953 | ["Create a local message" gnus-group-news t] |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 660bdf73cdf..f469afd41b1 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -1542,7 +1542,7 @@ If YANK is non-nil, include the original article." | |||
| 1542 | (X-Debbugs-Version | 1542 | (X-Debbugs-Version |
| 1543 | . ,(format "%s" (gnus-continuum-version)))))) | 1543 | . ,(format "%s" (gnus-continuum-version)))))) |
| 1544 | (when gnus-bug-create-help-buffer | 1544 | (when gnus-bug-create-help-buffer |
| 1545 | (push `(gnus-bug-kill-buffer) message-send-actions)) | 1545 | (push '(gnus-bug-kill-buffer) message-send-actions)) |
| 1546 | (goto-char (point-min)) | 1546 | (goto-char (point-min)) |
| 1547 | (message-goto-body) | 1547 | (message-goto-body) |
| 1548 | (insert "\n\n\n\n\n") | 1548 | (insert "\n\n\n\n\n") |
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el index 0504465de3e..5690c679061 100644 --- a/lisp/gnus/gnus-salt.el +++ b/lisp/gnus/gnus-salt.el | |||
| @@ -406,7 +406,7 @@ Two predefined functions are available: | |||
| 406 | (defvar gnus-tmp-subject) | 406 | (defvar gnus-tmp-subject) |
| 407 | 407 | ||
| 408 | (defvar gnus-tree-line-format-alist | 408 | (defvar gnus-tree-line-format-alist |
| 409 | `((?n gnus-tmp-name ?s) | 409 | '((?n gnus-tmp-name ?s) |
| 410 | (?f gnus-tmp-from ?s) | 410 | (?f gnus-tmp-from ?s) |
| 411 | (?N gnus-tmp-number ?d) | 411 | (?N gnus-tmp-number ?d) |
| 412 | (?\[ gnus-tmp-open-bracket ?c) | 412 | (?\[ gnus-tmp-open-bracket ?c) |
diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index 4d15f36ffc4..5bdf358dad3 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el | |||
| @@ -87,7 +87,7 @@ If nil, a faster, but more primitive, buffer is used instead." | |||
| 87 | (defvar gnus-inserted-opened-servers nil) | 87 | (defvar gnus-inserted-opened-servers nil) |
| 88 | 88 | ||
| 89 | (defvar gnus-server-line-format-alist | 89 | (defvar gnus-server-line-format-alist |
| 90 | `((?h gnus-tmp-how ?s) | 90 | '((?h gnus-tmp-how ?s) |
| 91 | (?n gnus-tmp-name ?s) | 91 | (?n gnus-tmp-name ?s) |
| 92 | (?w gnus-tmp-where ?s) | 92 | (?w gnus-tmp-where ?s) |
| 93 | (?s gnus-tmp-status ?s) | 93 | (?s gnus-tmp-status ?s) |
| @@ -95,7 +95,7 @@ If nil, a faster, but more primitive, buffer is used instead." | |||
| 95 | (?c gnus-tmp-cloud ?s))) | 95 | (?c gnus-tmp-cloud ?s))) |
| 96 | 96 | ||
| 97 | (defvar gnus-server-mode-line-format-alist | 97 | (defvar gnus-server-mode-line-format-alist |
| 98 | `((?S gnus-tmp-news-server ?s) | 98 | '((?S gnus-tmp-news-server ?s) |
| 99 | (?M gnus-tmp-news-method ?s) | 99 | (?M gnus-tmp-news-method ?s) |
| 100 | (?u gnus-tmp-user-defined ?s))) | 100 | (?u gnus-tmp-user-defined ?s))) |
| 101 | 101 | ||
| @@ -626,8 +626,8 @@ The following commands are available: | |||
| 626 | (let ((info (gnus-server-to-method server))) | 626 | (let ((info (gnus-server-to-method server))) |
| 627 | (gnus-edit-form | 627 | (gnus-edit-form |
| 628 | info "Showing the server." | 628 | info "Showing the server." |
| 629 | `(lambda (form) | 629 | (lambda (form) |
| 630 | (gnus-server-position-point)) | 630 | (gnus-server-position-point)) |
| 631 | 'edit-server))) | 631 | 'edit-server))) |
| 632 | 632 | ||
| 633 | (defun gnus-server-scan-server (server) | 633 | (defun gnus-server-scan-server (server) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 1c4be09e2e9..7be52717de9 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -1430,12 +1430,12 @@ These are paired with what variables they correspond with, along with | |||
| 1430 | the type of the variable (string, integer, character, etc).") | 1430 | the type of the variable (string, integer, character, etc).") |
| 1431 | 1431 | ||
| 1432 | (defvar gnus-summary-dummy-line-format-alist | 1432 | (defvar gnus-summary-dummy-line-format-alist |
| 1433 | `((?S gnus-tmp-subject ?s) | 1433 | '((?S gnus-tmp-subject ?s) |
| 1434 | (?N gnus-tmp-number ?d) | 1434 | (?N gnus-tmp-number ?d) |
| 1435 | (?u gnus-tmp-user-defined ?s))) | 1435 | (?u gnus-tmp-user-defined ?s))) |
| 1436 | 1436 | ||
| 1437 | (defvar gnus-summary-mode-line-format-alist | 1437 | (defvar gnus-summary-mode-line-format-alist |
| 1438 | `((?G gnus-tmp-group-name ?s) | 1438 | '((?G gnus-tmp-group-name ?s) |
| 1439 | (?g (gnus-short-group-name gnus-tmp-group-name) ?s) | 1439 | (?g (gnus-short-group-name gnus-tmp-group-name) ?s) |
| 1440 | (?p (gnus-group-real-name gnus-tmp-group-name) ?s) | 1440 | (?p (gnus-group-real-name gnus-tmp-group-name) ?s) |
| 1441 | (?A gnus-tmp-article-number ?d) | 1441 | (?A gnus-tmp-article-number ?d) |
| @@ -2602,7 +2602,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs)))) | |||
| 2602 | 2602 | ||
| 2603 | (easy-menu-define | 2603 | (easy-menu-define |
| 2604 | gnus-summary-post-menu gnus-summary-mode-map "" | 2604 | gnus-summary-post-menu gnus-summary-mode-map "" |
| 2605 | `("Post" | 2605 | '("Post" |
| 2606 | ["Send a message (mail or news)" gnus-summary-post-news | 2606 | ["Send a message (mail or news)" gnus-summary-post-news |
| 2607 | :help "Compose a new message (mail or news)"] | 2607 | :help "Compose a new message (mail or news)"] |
| 2608 | ["Followup" gnus-summary-followup | 2608 | ["Followup" gnus-summary-followup |
| @@ -2663,7 +2663,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs)))) | |||
| 2663 | 2663 | ||
| 2664 | (easy-menu-define | 2664 | (easy-menu-define |
| 2665 | gnus-summary-misc-menu gnus-summary-mode-map "" | 2665 | gnus-summary-misc-menu gnus-summary-mode-map "" |
| 2666 | `("Gnus" | 2666 | '("Gnus" |
| 2667 | ("Mark Read" | 2667 | ("Mark Read" |
| 2668 | ["Mark as read" gnus-summary-mark-as-read-forward t] | 2668 | ["Mark as read" gnus-summary-mark-as-read-forward t] |
| 2669 | ["Mark same subject and select" | 2669 | ["Mark same subject and select" |
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el index 111f2ae28a4..06ffe9571f5 100644 --- a/lisp/gnus/gnus-topic.el +++ b/lisp/gnus/gnus-topic.el | |||
| @@ -85,7 +85,7 @@ See Info node `(gnus)Formatting Variables'." | |||
| 85 | (defvar gnus-topic-inhibit-change-level nil) | 85 | (defvar gnus-topic-inhibit-change-level nil) |
| 86 | 86 | ||
| 87 | (defconst gnus-topic-line-format-alist | 87 | (defconst gnus-topic-line-format-alist |
| 88 | `((?n name ?s) | 88 | '((?n name ?s) |
| 89 | (?v visible ?s) | 89 | (?v visible ?s) |
| 90 | (?i indentation ?s) | 90 | (?i indentation ?s) |
| 91 | (?g number-of-groups ?d) | 91 | (?g number-of-groups ?d) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 2e4b054a9f9..e69aa2cc6a8 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | "Function use to do completing read." | 40 | "Function use to do completing read." |
| 41 | :version "24.1" | 41 | :version "24.1" |
| 42 | :group 'gnus-meta | 42 | :group 'gnus-meta |
| 43 | :type `(radio (function-item | 43 | :type '(radio (function-item |
| 44 | :doc "Use Emacs standard `completing-read' function." | 44 | :doc "Use Emacs standard `completing-read' function." |
| 45 | gnus-emacs-completing-read) | 45 | gnus-emacs-completing-read) |
| 46 | (function-item | 46 | (function-item |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index 6c59b135742..1ac02b4531c 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -2770,7 +2770,7 @@ See Info node `(gnus)Formatting Variables'." | |||
| 2770 | 2770 | ||
| 2771 | (defun gnus-suppress-keymap (keymap) | 2771 | (defun gnus-suppress-keymap (keymap) |
| 2772 | (suppress-keymap keymap) | 2772 | (suppress-keymap keymap) |
| 2773 | (let ((keys `([delete] "\177" "\M-u"))) ;[mouse-2] | 2773 | (let ((keys '([delete] "\177" "\M-u"))) ;[mouse-2] |
| 2774 | (while keys | 2774 | (while keys |
| 2775 | (define-key keymap (pop keys) 'undefined)))) | 2775 | (define-key keymap (pop keys) 'undefined)))) |
| 2776 | 2776 | ||
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 66356b6fda2..fdaa4e82727 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -1853,7 +1853,7 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'." | |||
| 1853 | "Alist of header names/filler functions.") | 1853 | "Alist of header names/filler functions.") |
| 1854 | 1854 | ||
| 1855 | (defvar message-header-format-alist | 1855 | (defvar message-header-format-alist |
| 1856 | `((From) | 1856 | '((From) |
| 1857 | (Newsgroups) | 1857 | (Newsgroups) |
| 1858 | (To) | 1858 | (To) |
| 1859 | (Cc) | 1859 | (Cc) |
| @@ -2716,7 +2716,7 @@ systematically send encrypted emails when possible." | |||
| 2716 | 2716 | ||
| 2717 | (easy-menu-define | 2717 | (easy-menu-define |
| 2718 | message-mode-menu message-mode-map "Message Menu." | 2718 | message-mode-menu message-mode-map "Message Menu." |
| 2719 | `("Message" | 2719 | '("Message" |
| 2720 | ["Yank Original" message-yank-original message-reply-buffer] | 2720 | ["Yank Original" message-yank-original message-reply-buffer] |
| 2721 | ["Fill Yanked Message" message-fill-yanked-message t] | 2721 | ["Fill Yanked Message" message-fill-yanked-message t] |
| 2722 | ["Insert Signature" message-insert-signature t] | 2722 | ["Insert Signature" message-insert-signature t] |
| @@ -2750,7 +2750,7 @@ systematically send encrypted emails when possible." | |||
| 2750 | 2750 | ||
| 2751 | (easy-menu-define | 2751 | (easy-menu-define |
| 2752 | message-mode-field-menu message-mode-map "" | 2752 | message-mode-field-menu message-mode-map "" |
| 2753 | `("Field" | 2753 | '("Field" |
| 2754 | ["To" message-goto-to t] | 2754 | ["To" message-goto-to t] |
| 2755 | ["From" message-goto-from t] | 2755 | ["From" message-goto-from t] |
| 2756 | ["Subject" message-goto-subject t] | 2756 | ["Subject" message-goto-subject t] |
| @@ -7459,7 +7459,7 @@ Optional DIGEST will use digest to forward." | |||
| 7459 | ;; Consider there is no illegible text. | 7459 | ;; Consider there is no illegible text. |
| 7460 | (add-text-properties | 7460 | (add-text-properties |
| 7461 | b (point) | 7461 | b (point) |
| 7462 | `(no-illegible-text t rear-nonsticky t start-open t)))) | 7462 | '(no-illegible-text t rear-nonsticky t start-open t)))) |
| 7463 | 7463 | ||
| 7464 | (defun message-forward-make-body-mml (forward-buffer) | 7464 | (defun message-forward-make-body-mml (forward-buffer) |
| 7465 | (insert "\n\n<#mml type=message/rfc822 disposition=inline>\n") | 7465 | (insert "\n\n<#mml type=message/rfc822 disposition=inline>\n") |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 14a232f706a..ba54b4e7074 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -241,7 +241,7 @@ superset of iso-8859-1." | |||
| 241 | (widget-convert | 241 | (widget-convert |
| 242 | 'list | 242 | 'list |
| 243 | `(set :inline t :format "%v" ,@(nreverse rest)) | 243 | `(set :inline t :format "%v" ,@(nreverse rest)) |
| 244 | `(repeat :inline t :tag "Other options" | 244 | '(repeat :inline t :tag "Other options" |
| 245 | (cons :format "%v" | 245 | (cons :format "%v" |
| 246 | (symbol :size 3 :format "(%v") | 246 | (symbol :size 3 :format "(%v") |
| 247 | (symbol :size 3 :format " . %v)\n"))))))) | 247 | (symbol :size 3 :format " . %v)\n"))))))) |
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 9fd72a93d5b..e232128245a 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -1152,7 +1152,7 @@ If HANDLES is non-nil, use it instead reparsing the buffer." | |||
| 1152 | 1152 | ||
| 1153 | (easy-menu-define | 1153 | (easy-menu-define |
| 1154 | mml-menu mml-mode-map "" | 1154 | mml-menu mml-mode-map "" |
| 1155 | `("Attachments" | 1155 | '("Attachments" |
| 1156 | ["Attach File..." mml-attach-file :help "Attach a file at point"] | 1156 | ["Attach File..." mml-attach-file :help "Attach a file at point"] |
| 1157 | ["Attach Buffer..." mml-attach-buffer | 1157 | ["Attach Buffer..." mml-attach-buffer |
| 1158 | :help "Attach a buffer to the outgoing message"] | 1158 | :help "Attach a buffer to the outgoing message"] |
diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el index 83a9c3f3e17..ca9f804036b 100644 --- a/lisp/gnus/nnheader.el +++ b/lisp/gnus/nnheader.el | |||
| @@ -408,7 +408,7 @@ on your system, you could say something like: | |||
| 408 | `(let ((id (nnheader-nov-field))) | 408 | `(let ((id (nnheader-nov-field))) |
| 409 | (if (string-match "^<[^>]+>$" id) | 409 | (if (string-match "^<[^>]+>$" id) |
| 410 | ,(if nnheader-uniquify-message-id | 410 | ,(if nnheader-uniquify-message-id |
| 411 | `(if (string-match "__[^@]+@" id) | 411 | '(if (string-match "__[^@]+@" id) |
| 412 | (concat (substring id 0 (match-beginning 0)) | 412 | (concat (substring id 0 (match-beginning 0)) |
| 413 | (substring id (1- (match-end 0)))) | 413 | (substring id (1- (match-end 0)))) |
| 414 | id) | 414 | id) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 12892c516a7..1a3b05ddb37 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1203,8 +1203,8 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1203 | ;; We don't really care about the article number, because | 1203 | ;; We don't really care about the article number, because |
| 1204 | ;; that's determined by the IMAP server later. So just | 1204 | ;; that's determined by the IMAP server later. So just |
| 1205 | ;; return the group name. | 1205 | ;; return the group name. |
| 1206 | `(lambda (group) | 1206 | (lambda (group) |
| 1207 | (list (list group))))))) | 1207 | (list (list group))))))) |
| 1208 | (setq group (nnimap-decode-gnus-group group)) | 1208 | (setq group (nnimap-decode-gnus-group group)) |
| 1209 | (when (nnimap-change-group nil server) | 1209 | (when (nnimap-change-group nil server) |
| 1210 | (nnmail-check-syntax) | 1210 | (nnmail-check-syntax) |
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index 24188f5c740..c8cf2d64d2d 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el | |||
| @@ -1774,7 +1774,7 @@ If VERSION is a string: must be contained in mairix version output." | |||
| 1774 | (setq versionstring | 1774 | (setq versionstring |
| 1775 | (let* ((commandsplit (split-string nnmairix-mairix-command)) | 1775 | (let* ((commandsplit (split-string nnmairix-mairix-command)) |
| 1776 | (args (append (list (car commandsplit)) | 1776 | (args (append (list (car commandsplit)) |
| 1777 | `(nil t nil) (cdr commandsplit) '("-V")))) | 1777 | '(nil t nil) (cdr commandsplit) '("-V")))) |
| 1778 | (apply 'call-process args) | 1778 | (apply 'call-process args) |
| 1779 | (goto-char (point-min)) | 1779 | (goto-char (point-min)) |
| 1780 | (re-search-forward "mairix.*") | 1780 | (re-search-forward "mairix.*") |
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el index 710e0e83cf9..e4731f36776 100644 --- a/lisp/gnus/spam.el +++ b/lisp/gnus/spam.el | |||
| @@ -2137,7 +2137,7 @@ See `spam-ifile-database'." | |||
| 2137 | (apply 'call-process-region | 2137 | (apply 'call-process-region |
| 2138 | (point-min) (point-max) spam-ifile-program | 2138 | (point-min) (point-max) spam-ifile-program |
| 2139 | nil temp-buffer-name nil "-c" | 2139 | nil temp-buffer-name nil "-c" |
| 2140 | (if db-param `(,db-param "-q") `("-q")))) | 2140 | (if db-param `(,db-param "-q") '("-q")))) |
| 2141 | ;; check the return now (we're back in the temp buffer) | 2141 | ;; check the return now (we're back in the temp buffer) |
| 2142 | (goto-char (point-min)) | 2142 | (goto-char (point-min)) |
| 2143 | (if (not (eobp)) | 2143 | (if (not (eobp)) |
| @@ -2166,7 +2166,7 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)." | |||
| 2166 | (point-min) (point-max) spam-ifile-program | 2166 | (point-min) (point-max) spam-ifile-program |
| 2167 | nil nil nil | 2167 | nil nil nil |
| 2168 | add-or-delete-option category | 2168 | add-or-delete-option category |
| 2169 | (if db `(,db "-h") `("-h")))))) | 2169 | (if db `(,db "-h") '("-h")))))) |
| 2170 | 2170 | ||
| 2171 | (defun spam-ifile-register-spam-routine (articles &optional unregister) | 2171 | (defun spam-ifile-register-spam-routine (articles &optional unregister) |
| 2172 | (spam-ifile-register-with-ifile articles spam-ifile-spam-category unregister)) | 2172 | (spam-ifile-register-with-ifile articles spam-ifile-spam-category unregister)) |
| @@ -2473,7 +2473,7 @@ With a non-nil REMOVE, remove the ADDRESSES." | |||
| 2473 | (point-min) (point-max) | 2473 | (point-min) (point-max) |
| 2474 | spam-bogofilter-program | 2474 | spam-bogofilter-program |
| 2475 | nil temp-buffer-name nil | 2475 | nil temp-buffer-name nil |
| 2476 | (if db `("-d" ,db "-v") `("-v")))) | 2476 | (if db `("-d" ,db "-v") '("-v")))) |
| 2477 | (setq return (spam-check-bogofilter-headers score)))) | 2477 | (setq return (spam-check-bogofilter-headers score)))) |
| 2478 | return) | 2478 | return) |
| 2479 | (gnus-error 5 "`spam.el' doesn't support obsolete bogofilter versions"))) | 2479 | (gnus-error 5 "`spam.el' doesn't support obsolete bogofilter versions"))) |
| @@ -2501,7 +2501,7 @@ With a non-nil REMOVE, remove the ADDRESSES." | |||
| 2501 | (point-min) (point-max) | 2501 | (point-min) (point-max) |
| 2502 | spam-bogofilter-program | 2502 | spam-bogofilter-program |
| 2503 | nil nil nil switch | 2503 | nil nil nil switch |
| 2504 | (if db `("-d" ,db "-v") `("-v"))))))) | 2504 | (if db `("-d" ,db "-v") '("-v"))))))) |
| 2505 | (gnus-error 5 "`spam.el' doesn't support obsolete bogofilter versions"))) | 2505 | (gnus-error 5 "`spam.el' doesn't support obsolete bogofilter versions"))) |
| 2506 | 2506 | ||
| 2507 | (defun spam-bogofilter-register-spam-routine (articles &optional unregister) | 2507 | (defun spam-bogofilter-register-spam-routine (articles &optional unregister) |
diff --git a/lisp/hexl.el b/lisp/hexl.el index 230b64d9f23..4070da885c6 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -1089,7 +1089,7 @@ This function is assumed to be used as callback function for `hl-line-mode'." | |||
| 1089 | ;; startup stuff. | 1089 | ;; startup stuff. |
| 1090 | 1090 | ||
| 1091 | (easy-menu-define hexl-menu hexl-mode-map "Hexl Mode menu" | 1091 | (easy-menu-define hexl-menu hexl-mode-map "Hexl Mode menu" |
| 1092 | `("Hexl" | 1092 | '("Hexl" |
| 1093 | :help "Hexl-specific Features" | 1093 | :help "Hexl-specific Features" |
| 1094 | 1094 | ||
| 1095 | ["Backward short" hexl-backward-short | 1095 | ["Backward short" hexl-backward-short |
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 08b58117dd0..f503c2764ba 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el | |||
| @@ -559,7 +559,7 @@ then remove all hi-lock highlighting." | |||
| 559 | (x-popup-menu | 559 | (x-popup-menu |
| 560 | t | 560 | t |
| 561 | (cons | 561 | (cons |
| 562 | `keymap | 562 | 'keymap |
| 563 | (cons "Select Pattern to Unhighlight" | 563 | (cons "Select Pattern to Unhighlight" |
| 564 | (mapcar (lambda (pattern) | 564 | (mapcar (lambda (pattern) |
| 565 | (list (car pattern) | 565 | (list (car pattern) |
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 32ec91db970..57ca9b04333 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -723,7 +723,7 @@ specification, with the same structure as an element of the list | |||
| 723 | (not | 723 | (not |
| 724 | (not | 724 | (not |
| 725 | (pcase (car filter) | 725 | (pcase (car filter) |
| 726 | (`or | 726 | ('or |
| 727 | ;;; ATTN: Short-circuiting alternative with parallel structure w/`and | 727 | ;;; ATTN: Short-circuiting alternative with parallel structure w/`and |
| 728 | ;;(catch 'has-match | 728 | ;;(catch 'has-match |
| 729 | ;; (dolist (filter-spec (cdr filter) nil) | 729 | ;; (dolist (filter-spec (cdr filter) nil) |
| @@ -732,12 +732,12 @@ specification, with the same structure as an element of the list | |||
| 732 | (memq t (mapcar #'(lambda (x) | 732 | (memq t (mapcar #'(lambda (x) |
| 733 | (ibuffer-included-in-filter-p buf x)) | 733 | (ibuffer-included-in-filter-p buf x)) |
| 734 | (cdr filter)))) | 734 | (cdr filter)))) |
| 735 | (`and | 735 | ('and |
| 736 | (catch 'no-match | 736 | (catch 'no-match |
| 737 | (dolist (filter-spec (cdr filter) t) | 737 | (dolist (filter-spec (cdr filter) t) |
| 738 | (unless (ibuffer-included-in-filter-p buf filter-spec) | 738 | (unless (ibuffer-included-in-filter-p buf filter-spec) |
| 739 | (throw 'no-match nil))))) | 739 | (throw 'no-match nil))))) |
| 740 | (`saved | 740 | ('saved |
| 741 | (let ((data (assoc (cdr filter) ibuffer-saved-filters))) | 741 | (let ((data (assoc (cdr filter) ibuffer-saved-filters))) |
| 742 | (unless data | 742 | (unless data |
| 743 | (ibuffer-filter-disable t) | 743 | (ibuffer-filter-disable t) |
| @@ -1051,14 +1051,14 @@ turned into separate filters, like [name: foo] and [mode: bar-mode]." | |||
| 1051 | (tail (cdr filters)) | 1051 | (tail (cdr filters)) |
| 1052 | (value | 1052 | (value |
| 1053 | (pcase (caar filters) | 1053 | (pcase (caar filters) |
| 1054 | ((or `or 'and) (nconc head tail)) | 1054 | ((or 'or 'and) (nconc head tail)) |
| 1055 | (`saved | 1055 | ('saved |
| 1056 | (let ((data (assoc head ibuffer-saved-filters))) | 1056 | (let ((data (assoc head ibuffer-saved-filters))) |
| 1057 | (unless data | 1057 | (unless data |
| 1058 | (ibuffer-filter-disable) | 1058 | (ibuffer-filter-disable) |
| 1059 | (error "Unknown saved filter %s" head)) | 1059 | (error "Unknown saved filter %s" head)) |
| 1060 | (append (cdr data) tail))) | 1060 | (append (cdr data) tail))) |
| 1061 | (`not (cons (ibuffer-unary-operand (car filters)) tail)) | 1061 | ('not (cons (ibuffer-unary-operand (car filters)) tail)) |
| 1062 | (_ | 1062 | (_ |
| 1063 | (error "Filter type %s is not compound" (caar filters)))))) | 1063 | (error "Filter type %s is not compound" (caar filters)))))) |
| 1064 | (setq ibuffer-filtering-qualifiers value)) | 1064 | (setq ibuffer-filtering-qualifiers value)) |
| @@ -1197,12 +1197,12 @@ Interactively, prompt for NAME, and use the current filters." | |||
| 1197 | 1197 | ||
| 1198 | (defun ibuffer-format-qualifier-1 (qualifier) | 1198 | (defun ibuffer-format-qualifier-1 (qualifier) |
| 1199 | (pcase (car qualifier) | 1199 | (pcase (car qualifier) |
| 1200 | (`saved | 1200 | ('saved |
| 1201 | (concat " [filter: " (cdr qualifier) "]")) | 1201 | (concat " [filter: " (cdr qualifier) "]")) |
| 1202 | (`or | 1202 | ('or |
| 1203 | (concat " [OR" (mapconcat #'ibuffer-format-qualifier | 1203 | (concat " [OR" (mapconcat #'ibuffer-format-qualifier |
| 1204 | (cdr qualifier) "") "]")) | 1204 | (cdr qualifier) "") "]")) |
| 1205 | (`and | 1205 | ('and |
| 1206 | (concat " [AND" (mapconcat #'ibuffer-format-qualifier | 1206 | (concat " [AND" (mapconcat #'ibuffer-format-qualifier |
| 1207 | (cdr qualifier) "") "]")) | 1207 | (cdr qualifier) "") "]")) |
| 1208 | (_ | 1208 | (_ |
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 78dab1c93e5..b0c4b504aeb 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el | |||
| @@ -150,7 +150,7 @@ elisp byte-compiler." | |||
| 150 | :group 'ibuffer) | 150 | :group 'ibuffer) |
| 151 | 151 | ||
| 152 | (defcustom ibuffer-fontification-alist | 152 | (defcustom ibuffer-fontification-alist |
| 153 | `((10 buffer-read-only font-lock-constant-face) | 153 | '((10 buffer-read-only font-lock-constant-face) |
| 154 | (15 (and buffer-file-name | 154 | (15 (and buffer-file-name |
| 155 | (string-match ibuffer-compressed-file-name-regexp | 155 | (string-match ibuffer-compressed-file-name-regexp |
| 156 | buffer-file-name)) | 156 | buffer-file-name)) |
| @@ -1613,8 +1613,8 @@ If point is on a group name, this function operates on that group." | |||
| 1613 | `(truncate-string-to-width ,strvar ,maxvar nil ?\s))) | 1613 | `(truncate-string-to-width ,strvar ,maxvar nil ?\s))) |
| 1614 | 1614 | ||
| 1615 | (defun ibuffer-compile-make-format-form (strvar widthform alignment) | 1615 | (defun ibuffer-compile-make-format-form (strvar widthform alignment) |
| 1616 | (let* ((left `(make-string tmp2 ?\s)) | 1616 | (let* ((left '(make-string tmp2 ?\s)) |
| 1617 | (right `(make-string (- tmp1 tmp2) ?\s))) | 1617 | (right '(make-string (- tmp1 tmp2) ?\s))) |
| 1618 | `(progn | 1618 | `(progn |
| 1619 | (setq tmp1 ,widthform | 1619 | (setq tmp1 ,widthform |
| 1620 | tmp2 (/ tmp1 2)) | 1620 | tmp2 (/ tmp1 2)) |
| @@ -1737,7 +1737,7 @@ If point is on a group name, this function operates on that group." | |||
| 1737 | outforms) | 1737 | outforms) |
| 1738 | (push `(setq str ,callform | 1738 | (push `(setq str ,callform |
| 1739 | ,@(when strlen-used | 1739 | ,@(when strlen-used |
| 1740 | `(strlen (string-width str)))) | 1740 | '(strlen (string-width str)))) |
| 1741 | outforms) | 1741 | outforms) |
| 1742 | (setq outforms | 1742 | (setq outforms |
| 1743 | (append outforms | 1743 | (append outforms |
| @@ -2205,7 +2205,7 @@ the value of point at the beginning of the line for that buffer." | |||
| 2205 | strname | 2205 | strname |
| 2206 | (propertize strname 'mouse-face 'highlight 'keymap hmap))) | 2206 | (propertize strname 'mouse-face 'highlight 'keymap hmap))) |
| 2207 | strname))))) | 2207 | strname))))) |
| 2208 | (add-text-properties opos (point) `(ibuffer-title-header t)) | 2208 | (add-text-properties opos (point) '(ibuffer-title-header t)) |
| 2209 | (insert "\n") | 2209 | (insert "\n") |
| 2210 | ;; Add the underlines | 2210 | ;; Add the underlines |
| 2211 | (let ((str (save-excursion | 2211 | (let ((str (save-excursion |
| @@ -2255,7 +2255,7 @@ the value of point at the beginning of the line for that buffer." | |||
| 2255 | align) | 2255 | align) |
| 2256 | summary)))))) | 2256 | summary)))))) |
| 2257 | (point)) | 2257 | (point)) |
| 2258 | `(ibuffer-summary t))))) | 2258 | '(ibuffer-summary t))))) |
| 2259 | 2259 | ||
| 2260 | 2260 | ||
| 2261 | (defun ibuffer-redisplay (&optional silent) | 2261 | (defun ibuffer-redisplay (&optional silent) |
diff --git a/lisp/ido.el b/lisp/ido.el index 7bf4a92b229..69326d4fc43 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1688,27 +1688,27 @@ is enabled then some keybindings are changed in the keymap." | |||
| 1688 | (when viper-p | 1688 | (when viper-p |
| 1689 | (define-key map [remap viper-intercept-ESC-key] 'ignore)) | 1689 | (define-key map [remap viper-intercept-ESC-key] 'ignore)) |
| 1690 | (pcase ido-cur-item | 1690 | (pcase ido-cur-item |
| 1691 | ((or `file `dir) | 1691 | ((or 'file 'dir) |
| 1692 | (when ido-context-switch-command | 1692 | (when ido-context-switch-command |
| 1693 | (define-key map "\C-x\C-b" ido-context-switch-command) | 1693 | (define-key map "\C-x\C-b" ido-context-switch-command) |
| 1694 | (define-key map "\C-x\C-d" 'ignore)) | 1694 | (define-key map "\C-x\C-d" 'ignore)) |
| 1695 | (when viper-p | 1695 | (when viper-p |
| 1696 | (define-key map [remap viper-backward-char] | 1696 | (define-key map [remap viper-backward-char] |
| 1697 | 'ido-delete-backward-updir) | 1697 | 'ido-delete-backward-updir) |
| 1698 | (define-key map [remap viper-del-backward-char-in-insert] | 1698 | (define-key map [remap viper-del-backward-char-in-insert] |
| 1699 | 'ido-delete-backward-updir) | 1699 | 'ido-delete-backward-updir) |
| 1700 | (define-key map [remap viper-delete-backward-word] | 1700 | (define-key map [remap viper-delete-backward-word] |
| 1701 | 'ido-delete-backward-word-updir)) | 1701 | 'ido-delete-backward-word-updir)) |
| 1702 | (set-keymap-parent map | 1702 | (set-keymap-parent map |
| 1703 | (if (eq ido-cur-item 'file) | 1703 | (if (eq ido-cur-item 'file) |
| 1704 | ido-file-completion-map | 1704 | ido-file-completion-map |
| 1705 | ido-file-dir-completion-map))) | 1705 | ido-file-dir-completion-map))) |
| 1706 | (`buffer | 1706 | ('buffer |
| 1707 | (when ido-context-switch-command | 1707 | (when ido-context-switch-command |
| 1708 | (define-key map "\C-x\C-f" ido-context-switch-command)) | 1708 | (define-key map "\C-x\C-f" ido-context-switch-command)) |
| 1709 | (set-keymap-parent map ido-buffer-completion-map)) | 1709 | (set-keymap-parent map ido-buffer-completion-map)) |
| 1710 | (_ | 1710 | (_ |
| 1711 | (set-keymap-parent map ido-common-completion-map))) | 1711 | (set-keymap-parent map ido-common-completion-map))) |
| 1712 | (setq ido-completion-map map))) | 1712 | (setq ido-completion-map map))) |
| 1713 | 1713 | ||
| 1714 | (defun ido-final-slash (dir &optional fix-it) | 1714 | (defun ido-final-slash (dir &optional fix-it) |
diff --git a/lisp/info.el b/lisp/info.el index f2e29578f89..d2d315daa0a 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2734,7 +2734,7 @@ Because of ambiguities, this should be concatenated with something like | |||
| 2734 | (user-error "No menu in this node")) | 2734 | (user-error "No menu in this node")) |
| 2735 | (cond | 2735 | (cond |
| 2736 | ((eq (car-safe action) 'boundaries) nil) | 2736 | ((eq (car-safe action) 'boundaries) nil) |
| 2737 | ((eq action 'metadata) `(metadata (category . info-menu))) | 2737 | ((eq action 'metadata) '(metadata (category . info-menu))) |
| 2738 | ((eq action 'lambda) | 2738 | ((eq action 'lambda) |
| 2739 | (re-search-forward | 2739 | (re-search-forward |
| 2740 | (concat "\n\\* +" (regexp-quote string) ":") nil t)) | 2740 | (concat "\n\\* +" (regexp-quote string) ":") nil t)) |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index b755ae07d38..933554925f5 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1330,7 +1330,7 @@ This is the input method activated automatically by the command | |||
| 1330 | `toggle-input-method' (\\[toggle-input-method])." | 1330 | `toggle-input-method' (\\[toggle-input-method])." |
| 1331 | :link '(custom-manual "(emacs)Input Methods") | 1331 | :link '(custom-manual "(emacs)Input Methods") |
| 1332 | :group 'mule | 1332 | :group 'mule |
| 1333 | :type `(choice (const nil) | 1333 | :type '(choice (const nil) |
| 1334 | mule-input-method-string) | 1334 | mule-input-method-string) |
| 1335 | :set-after '(current-language-environment)) | 1335 | :set-after '(current-language-environment)) |
| 1336 | 1336 | ||
| @@ -1943,7 +1943,7 @@ See `set-language-info-alist' for use in programs." | |||
| 1943 | (set-language-info-alist (car elt) (cdr elt))) | 1943 | (set-language-info-alist (car elt) (cdr elt))) |
| 1944 | ;; re-set the environment in case its parameters changed | 1944 | ;; re-set the environment in case its parameters changed |
| 1945 | (set-language-environment current-language-environment))) | 1945 | (set-language-environment current-language-environment))) |
| 1946 | :type `(alist | 1946 | :type '(alist |
| 1947 | :key-type (string :tag "Language environment" | 1947 | :key-type (string :tag "Language environment" |
| 1948 | :completions | 1948 | :completions |
| 1949 | (lambda (string pred action) | 1949 | (lambda (string pred action) |
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index cf2b29c04c4..17bea5483bf 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -393,17 +393,17 @@ QUALITY can be: | |||
| 393 | japanese-cp932 korean-cp949))) | 393 | japanese-cp932 korean-cp949))) |
| 394 | (setq type 'single-byte)) | 394 | (setq type 'single-byte)) |
| 395 | (pcase type | 395 | (pcase type |
| 396 | (`utf-8 | 396 | ('utf-8 |
| 397 | (when (coding-system-get coding-system :bom) | 397 | (when (coding-system-get coding-system :bom) |
| 398 | (setq byte (max 0 (- byte 3)))) | 398 | (setq byte (max 0 (- byte 3)))) |
| 399 | (if (= eol 1) | 399 | (if (= eol 1) |
| 400 | (filepos-to-bufferpos--dos (+ pm byte) #'byte-to-position) | 400 | (filepos-to-bufferpos--dos (+ pm byte) #'byte-to-position) |
| 401 | (byte-to-position (+ pm byte)))) | 401 | (byte-to-position (+ pm byte)))) |
| 402 | (`single-byte | 402 | ('single-byte |
| 403 | (if (= eol 1) | 403 | (if (= eol 1) |
| 404 | (filepos-to-bufferpos--dos (+ pm byte) #'identity) | 404 | (filepos-to-bufferpos--dos (+ pm byte) #'identity) |
| 405 | (+ pm byte))) | 405 | (+ pm byte))) |
| 406 | ((and `utf-16 | 406 | ((and 'utf-16 |
| 407 | ;; FIXME: For utf-16, we could use the same approach as used for | 407 | ;; FIXME: For utf-16, we could use the same approach as used for |
| 408 | ;; dos EOLs (counting the number of non-BMP chars instead of the | 408 | ;; dos EOLs (counting the number of non-BMP chars instead of the |
| 409 | ;; number of lines). | 409 | ;; number of lines). |
| @@ -419,8 +419,8 @@ QUALITY can be: | |||
| 419 | (+ pm byte))) | 419 | (+ pm byte))) |
| 420 | (_ | 420 | (_ |
| 421 | (pcase quality | 421 | (pcase quality |
| 422 | (`approximate (byte-to-position (+ pm byte))) | 422 | ('approximate (byte-to-position (+ pm byte))) |
| 423 | (`exact | 423 | ('exact |
| 424 | ;; Rather than assume that the file exists and still holds the right | 424 | ;; Rather than assume that the file exists and still holds the right |
| 425 | ;; data, we reconstruct it based on the buffer's content. | 425 | ;; data, we reconstruct it based on the buffer's content. |
| 426 | (let ((buf (current-buffer))) | 426 | (let ((buf (current-buffer))) |
| @@ -470,7 +470,7 @@ QUALITY can be: | |||
| 470 | japanese-cp932 korean-cp949))) | 470 | japanese-cp932 korean-cp949))) |
| 471 | (setq type 'single-byte)) | 471 | (setq type 'single-byte)) |
| 472 | (pcase type | 472 | (pcase type |
| 473 | (`utf-8 | 473 | ('utf-8 |
| 474 | (setq byte (position-bytes position)) | 474 | (setq byte (position-bytes position)) |
| 475 | (when (null byte) | 475 | (when (null byte) |
| 476 | (if (<= position 0) | 476 | (if (<= position 0) |
| @@ -482,9 +482,9 @@ QUALITY can be: | |||
| 482 | (if (coding-system-get coding-system :bom) 3 0) | 482 | (if (coding-system-get coding-system :bom) 3 0) |
| 483 | ;; Account for CR in CRLF pairs. | 483 | ;; Account for CR in CRLF pairs. |
| 484 | lineno)) | 484 | lineno)) |
| 485 | (`single-byte | 485 | ('single-byte |
| 486 | (+ position -1 lineno)) | 486 | (+ position -1 lineno)) |
| 487 | ((and `utf-16 | 487 | ((and 'utf-16 |
| 488 | ;; FIXME: For utf-16, we could use the same approach as used for | 488 | ;; FIXME: For utf-16, we could use the same approach as used for |
| 489 | ;; dos EOLs (counting the number of non-BMP chars instead of the | 489 | ;; dos EOLs (counting the number of non-BMP chars instead of the |
| 490 | ;; number of lines). | 490 | ;; number of lines). |
| @@ -498,8 +498,8 @@ QUALITY can be: | |||
| 498 | lineno)) | 498 | lineno)) |
| 499 | (_ | 499 | (_ |
| 500 | (pcase quality | 500 | (pcase quality |
| 501 | (`approximate (+ (position-bytes position) -1 lineno)) | 501 | ('approximate (+ (position-bytes position) -1 lineno)) |
| 502 | (`exact | 502 | ('exact |
| 503 | ;; Rather than assume that the file exists and still holds the right | 503 | ;; Rather than assume that the file exists and still holds the right |
| 504 | ;; data, we reconstruct its relevant portion. | 504 | ;; data, we reconstruct its relevant portion. |
| 505 | (let ((buf (current-buffer))) | 505 | (let ((buf (current-buffer))) |
diff --git a/lisp/json.el b/lisp/json.el index 112f26944bf..18409723da1 100644 --- a/lisp/json.el +++ b/lisp/json.el | |||
| @@ -523,8 +523,8 @@ Please see the documentation of `json-object-type' and `json-key-type'." | |||
| 523 | ;; Skip over the "}" | 523 | ;; Skip over the "}" |
| 524 | (json-advance) | 524 | (json-advance) |
| 525 | (pcase json-object-type | 525 | (pcase json-object-type |
| 526 | (`alist (nreverse elements)) | 526 | ('alist (nreverse elements)) |
| 527 | (`plist (json--plist-reverse elements)) | 527 | ('plist (json--plist-reverse elements)) |
| 528 | (_ elements)))) | 528 | (_ elements)))) |
| 529 | 529 | ||
| 530 | ;; Hash table encoding | 530 | ;; Hash table encoding |
| @@ -641,8 +641,8 @@ become JSON objects." | |||
| 641 | ;; Skip over the "]" | 641 | ;; Skip over the "]" |
| 642 | (json-advance) | 642 | (json-advance) |
| 643 | (pcase json-array-type | 643 | (pcase json-array-type |
| 644 | (`vector (nreverse (vconcat elements))) | 644 | ('vector (nreverse (vconcat elements))) |
| 645 | (`list (nreverse elements))))) | 645 | ('list (nreverse elements))))) |
| 646 | 646 | ||
| 647 | ;; Array encoding | 647 | ;; Array encoding |
| 648 | 648 | ||
diff --git a/lisp/jsonrpc.el b/lisp/jsonrpc.el index 14d730abb21..020d7f56cc4 100644 --- a/lisp/jsonrpc.el +++ b/lisp/jsonrpc.el | |||
| @@ -184,7 +184,7 @@ dispatcher in CONNECTION." | |||
| 184 | (cdr oops)) | 184 | (cdr oops)) |
| 185 | "Internal error"))))) | 185 | "Internal error"))))) |
| 186 | (error | 186 | (error |
| 187 | `(:error (:code -32603 :message "Internal error")))))) | 187 | '(:error (:code -32603 :message "Internal error")))))) |
| 188 | (apply #'jsonrpc--reply connection id reply))) | 188 | (apply #'jsonrpc--reply connection id reply))) |
| 189 | (;; A remote notification | 189 | (;; A remote notification |
| 190 | method | 190 | method |
| @@ -490,7 +490,7 @@ With optional CLEANUP, kill any associated buffers. " | |||
| 490 | ;; Call all outstanding error handlers | 490 | ;; Call all outstanding error handlers |
| 491 | (maphash (lambda (_id triplet) | 491 | (maphash (lambda (_id triplet) |
| 492 | (pcase-let ((`(,_success ,error ,_timeout) triplet)) | 492 | (pcase-let ((`(,_success ,error ,_timeout) triplet)) |
| 493 | (funcall error `(:code -1 :message "Server died")))) | 493 | (funcall error '(:code -1 :message "Server died")))) |
| 494 | (jsonrpc--request-continuations connection)) | 494 | (jsonrpc--request-continuations connection)) |
| 495 | (jsonrpc--message "Server exited with status %s" (process-exit-status proc)) | 495 | (jsonrpc--message "Server exited with status %s" (process-exit-status proc)) |
| 496 | (process-put proc 'jsonrpc-sentinel-done t) | 496 | (process-put proc 'jsonrpc-sentinel-done t) |
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index 0fcabef8588..3d007d14948 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el | |||
| @@ -95,7 +95,7 @@ | |||
| 95 | (define-coding-system-alias 'cp878 'cyrillic-koi8) | 95 | (define-coding-system-alias 'cp878 'cyrillic-koi8) |
| 96 | 96 | ||
| 97 | (set-language-info-alist | 97 | (set-language-info-alist |
| 98 | "Cyrillic-KOI8" `((charset koi8) | 98 | "Cyrillic-KOI8" '((charset koi8) |
| 99 | (coding-system cyrillic-koi8) | 99 | (coding-system cyrillic-koi8) |
| 100 | (coding-priority cyrillic-koi8 cyrillic-iso-8bit) | 100 | (coding-priority cyrillic-koi8 cyrillic-iso-8bit) |
| 101 | (ctext-non-standard-encodings "koi8-r") | 101 | (ctext-non-standard-encodings "koi8-r") |
| @@ -131,7 +131,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 131 | :mime-charset 'koi8-u) | 131 | :mime-charset 'koi8-u) |
| 132 | 132 | ||
| 133 | (set-language-info-alist | 133 | (set-language-info-alist |
| 134 | "Ukrainian" `((charset koi8-u) | 134 | "Ukrainian" '((charset koi8-u) |
| 135 | (coding-system koi8-u) | 135 | (coding-system koi8-u) |
| 136 | (coding-priority koi8-u) | 136 | (coding-priority koi8-u) |
| 137 | (nonascii-translation . koi8-u) | 137 | (nonascii-translation . koi8-u) |
| @@ -151,7 +151,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 151 | (define-coding-system-alias 'alternativnyj 'cyrillic-alternativnyj) | 151 | (define-coding-system-alias 'alternativnyj 'cyrillic-alternativnyj) |
| 152 | 152 | ||
| 153 | (set-language-info-alist | 153 | (set-language-info-alist |
| 154 | "Cyrillic-ALT" `((charset alternativnyj) | 154 | "Cyrillic-ALT" '((charset alternativnyj) |
| 155 | (coding-system cyrillic-alternativnyj) | 155 | (coding-system cyrillic-alternativnyj) |
| 156 | (coding-priority cyrillic-alternativnyj) | 156 | (coding-priority cyrillic-alternativnyj) |
| 157 | (nonascii-translation . alternativnyj) | 157 | (nonascii-translation . alternativnyj) |
| @@ -229,7 +229,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 229 | ;; '("Cyrillic")) | 229 | ;; '("Cyrillic")) |
| 230 | 230 | ||
| 231 | (set-language-info-alist | 231 | (set-language-info-alist |
| 232 | "Tajik" `((coding-system koi8-t) | 232 | "Tajik" '((coding-system koi8-t) |
| 233 | (coding-priority koi8-t) | 233 | (coding-priority koi8-t) |
| 234 | (nonascii-translation . cyrillic-koi8-t) | 234 | (nonascii-translation . cyrillic-koi8-t) |
| 235 | (charset koi8-t) | 235 | (charset koi8-t) |
| @@ -239,7 +239,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 239 | '("Cyrillic")) | 239 | '("Cyrillic")) |
| 240 | 240 | ||
| 241 | (set-language-info-alist | 241 | (set-language-info-alist |
| 242 | "Bulgarian" `((coding-system windows-1251) | 242 | "Bulgarian" '((coding-system windows-1251) |
| 243 | (coding-priority windows-1251) | 243 | (coding-priority windows-1251) |
| 244 | (nonascii-translation . windows-1251) | 244 | (nonascii-translation . windows-1251) |
| 245 | (charset windows-1251) | 245 | (charset windows-1251) |
| @@ -250,7 +250,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 250 | '("Cyrillic")) | 250 | '("Cyrillic")) |
| 251 | 251 | ||
| 252 | (set-language-info-alist | 252 | (set-language-info-alist |
| 253 | "Belarusian" `((coding-system windows-1251) | 253 | "Belarusian" '((coding-system windows-1251) |
| 254 | (coding-priority windows-1251) | 254 | (coding-priority windows-1251) |
| 255 | (nonascii-translation . windows-1251) | 255 | (nonascii-translation . windows-1251) |
| 256 | (charset windows-1251) | 256 | (charset windows-1251) |
| @@ -262,7 +262,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 262 | '("Cyrillic")) | 262 | '("Cyrillic")) |
| 263 | 263 | ||
| 264 | (set-language-info-alist | 264 | (set-language-info-alist |
| 265 | "Ukrainian" `((coding-system koi8-u) | 265 | "Ukrainian" '((coding-system koi8-u) |
| 266 | (coding-priority koi8-u) | 266 | (coding-priority koi8-u) |
| 267 | (input-method . "ukrainian-computer") | 267 | (input-method . "ukrainian-computer") |
| 268 | (documentation | 268 | (documentation |
diff --git a/lisp/language/european.el b/lisp/language/european.el index 4a89770e724..cd98aad8ca6 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -541,7 +541,7 @@ method and applying Turkish case rules for the characters i, I, ı, İ."))) | |||
| 541 | '("European")) | 541 | '("European")) |
| 542 | 542 | ||
| 543 | (set-language-info-alist | 543 | (set-language-info-alist |
| 544 | "Welsh" `((coding-system utf-8 latin-8) ; the input method is Unicode-based | 544 | "Welsh" '((coding-system utf-8 latin-8) ; the input method is Unicode-based |
| 545 | (coding-priority utf-8 latin-8) | 545 | (coding-priority utf-8 latin-8) |
| 546 | (nonascii-translation . iso-8859-14) | 546 | (nonascii-translation . iso-8859-14) |
| 547 | (input-method . "welsh") | 547 | (input-method . "welsh") |
| @@ -558,7 +558,7 @@ method and applying Turkish case rules for the characters i, I, ı, İ."))) | |||
| 558 | '("European")) | 558 | '("European")) |
| 559 | 559 | ||
| 560 | (set-language-info-alist | 560 | (set-language-info-alist |
| 561 | "Latin-7" `((coding-system latin-7) | 561 | "Latin-7" '((coding-system latin-7) |
| 562 | (coding-priority latin-7) | 562 | (coding-priority latin-7) |
| 563 | (nonascii-translation . iso-8859-13) | 563 | (nonascii-translation . iso-8859-13) |
| 564 | (input-method . "latin-prefix") | 564 | (input-method . "latin-prefix") |
| @@ -566,7 +566,7 @@ method and applying Turkish case rules for the characters i, I, ı, İ."))) | |||
| 566 | '("European")) | 566 | '("European")) |
| 567 | 567 | ||
| 568 | (set-language-info-alist | 568 | (set-language-info-alist |
| 569 | "Lithuanian" `((coding-system latin-7 windows-1257) | 569 | "Lithuanian" '((coding-system latin-7 windows-1257) |
| 570 | (coding-priority latin-7) | 570 | (coding-priority latin-7) |
| 571 | (nonascii-translation . iso-8859-13) | 571 | (nonascii-translation . iso-8859-13) |
| 572 | (input-method . "lithuanian-keyboard") | 572 | (input-method . "lithuanian-keyboard") |
| @@ -574,7 +574,7 @@ method and applying Turkish case rules for the characters i, I, ı, İ."))) | |||
| 574 | '("European")) | 574 | '("European")) |
| 575 | 575 | ||
| 576 | (set-language-info-alist | 576 | (set-language-info-alist |
| 577 | "Latvian" `((coding-system latin-7 windows-1257) | 577 | "Latvian" '((coding-system latin-7 windows-1257) |
| 578 | (coding-priority latin-7) | 578 | (coding-priority latin-7) |
| 579 | (nonascii-translation . iso-8859-13) | 579 | (nonascii-translation . iso-8859-13) |
| 580 | (input-method . "latvian-keyboard") | 580 | (input-method . "latvian-keyboard") |
diff --git a/lisp/language/georgian.el b/lisp/language/georgian.el index e50ebce98d8..34304e75856 100644 --- a/lisp/language/georgian.el +++ b/lisp/language/georgian.el | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | :charset-list '(georgian-academy)) | 37 | :charset-list '(georgian-academy)) |
| 38 | 38 | ||
| 39 | (set-language-info-alist | 39 | (set-language-info-alist |
| 40 | "Georgian" `((coding-system georgian-ps) | 40 | "Georgian" '((coding-system georgian-ps) |
| 41 | (coding-priority georgian-ps) | 41 | (coding-priority georgian-ps) |
| 42 | (input-method . "georgian") | 42 | (input-method . "georgian") |
| 43 | (nonascii-translation . georgian-ps) | 43 | (nonascii-translation . georgian-ps) |
diff --git a/lisp/language/tibetan.el b/lisp/language/tibetan.el index cf14d644e23..3d1df3d87f4 100644 --- a/lisp/language/tibetan.el +++ b/lisp/language/tibetan.el | |||
| @@ -451,7 +451,7 @@ | |||
| 451 | ;;; (includes some punctuation conversion rules) | 451 | ;;; (includes some punctuation conversion rules) |
| 452 | ;;; | 452 | ;;; |
| 453 | (defconst tibetan-precomposition-rule-alist | 453 | (defconst tibetan-precomposition-rule-alist |
| 454 | `(("ཕྱà¾" . "ö…€") | 454 | '(("ཕྱà¾" . "ö…€") |
| 455 | ("གྲà¾" . "ö…˜") | 455 | ("གྲà¾" . "ö…˜") |
| 456 | ("ཚà¾" . "ö„¢") | 456 | ("ཚà¾" . "ö„¢") |
| 457 | ("རྩà¾" . "ö†…") | 457 | ("རྩà¾" . "ö†…") |
diff --git a/lisp/language/utf-8-lang.el b/lisp/language/utf-8-lang.el index 4b8718f9b8c..5d8a044e39c 100644 --- a/lisp/language/utf-8-lang.el +++ b/lisp/language/utf-8-lang.el | |||
| @@ -25,24 +25,24 @@ | |||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (set-language-info-alist | 27 | (set-language-info-alist |
| 28 | "UTF-8" `((coding-system utf-8) | 28 | "UTF-8" '((coding-system utf-8) |
| 29 | (coding-priority utf-8) | 29 | (coding-priority utf-8) |
| 30 | (charset unicode-bmp unicode) | 30 | (charset unicode-bmp unicode) |
| 31 | ;; Presumably not relevant now. | 31 | ;; Presumably not relevant now. |
| 32 | ;; (setup-function | 32 | ;; (setup-function |
| 33 | ;; . (lambda () | 33 | ;; . (lambda () |
| 34 | ;; ;; Use Unicode font under Windows. Jason Rumney fecit. | 34 | ;; ;; Use Unicode font under Windows. Jason Rumney fecit. |
| 35 | ;; (if (and (fboundp 'w32-add-charset-info) | 35 | ;; (if (and (fboundp 'w32-add-charset-info) |
| 36 | ;; (not (boundp 'w32-unicode-charset-defined))) | 36 | ;; (not (boundp 'w32-unicode-charset-defined))) |
| 37 | ;; (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t)))) | 37 | ;; (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t)))) |
| 38 | ;; Is this appropriate? | 38 | ;; Is this appropriate? |
| 39 | ;; (exit-function | 39 | ;; (exit-function |
| 40 | ;; . (lambda () | 40 | ;; . (lambda () |
| 41 | ;; (if (and (fboundp 'w32-add-charset-info) | 41 | ;; (if (and (fboundp 'w32-add-charset-info) |
| 42 | ;; (not (boundp 'w32-unicode-charset-defined))) | 42 | ;; (not (boundp 'w32-unicode-charset-defined))) |
| 43 | ;; (setq w32-charset-info-alist | 43 | ;; (setq w32-charset-info-alist |
| 44 | ;; (delete (assoc "iso10646-1") | 44 | ;; (delete (assoc "iso10646-1") |
| 45 | ;; w32-charset-info-alist))))) | 45 | ;; w32-charset-info-alist))))) |
| 46 | (input-method . "rfc1345") ; maybe not the best choice | 46 | (input-method . "rfc1345") ; maybe not the best choice |
| 47 | (documentation . "\ | 47 | (documentation . "\ |
| 48 | This language environment is a generic one for the Unicode character set | 48 | This language environment is a generic one for the Unicode character set |
diff --git a/lisp/language/vietnamese.el b/lisp/language/vietnamese.el index 31c375589aa..9524349ec77 100644 --- a/lisp/language/vietnamese.el +++ b/lisp/language/vietnamese.el | |||
| @@ -72,9 +72,9 @@ | |||
| 72 | (define-coding-system-alias 'viqr 'vietnamese-viqr) | 72 | (define-coding-system-alias 'viqr 'vietnamese-viqr) |
| 73 | 73 | ||
| 74 | (set-language-info-alist | 74 | (set-language-info-alist |
| 75 | "Vietnamese" `((charset viscii) | 75 | "Vietnamese" '((charset viscii) |
| 76 | (coding-system vietnamese-viscii vietnamese-vscii | 76 | (coding-system vietnamese-viscii vietnamese-vscii |
| 77 | vietnamese-tcvn vietnamese-viqr windows-1258) | 77 | vietnamese-tcvn vietnamese-viqr windows-1258) |
| 78 | (nonascii-translation . viscii) | 78 | (nonascii-translation . viscii) |
| 79 | (coding-priority vietnamese-viscii) | 79 | (coding-priority vietnamese-viscii) |
| 80 | (input-method . "vietnamese-viqr") | 80 | (input-method . "vietnamese-viqr") |
diff --git a/lisp/ldefs-boot.el b/lisp/ldefs-boot.el index eda67cdac83..a8b206fe3a5 100644 --- a/lisp/ldefs-boot.el +++ b/lisp/ldefs-boot.el | |||
| @@ -34793,7 +34793,7 @@ List of suffixes which indicate a compressed file. | |||
| 34793 | It must be supported by libarchive(3).") | 34793 | It must be supported by libarchive(3).") |
| 34794 | 34794 | ||
| 34795 | (defmacro tramp-archive-autoload-file-name-regexp nil "\ | 34795 | (defmacro tramp-archive-autoload-file-name-regexp nil "\ |
| 34796 | Regular expression matching archive file names." `(concat "\\`" "\\(" ".+" "\\." (regexp-opt tramp-archive-suffixes) "\\(?:" "\\." (regexp-opt tramp-archive-compression-suffixes) "\\)*" "\\)" "\\(" "/" ".*" "\\)" "\\'")) | 34796 | Regular expression matching archive file names." '(concat "\\`" "\\(" ".+" "\\." (regexp-opt tramp-archive-suffixes) "\\(?:" "\\." (regexp-opt tramp-archive-compression-suffixes) "\\)*" "\\)" "\\(" "/" ".*" "\\)" "\\'")) |
| 34797 | 34797 | ||
| 34798 | (defalias 'tramp-archive-autoload-file-name-handler 'tramp-autoload-file-name-handler) | 34798 | (defalias 'tramp-archive-autoload-file-name-handler 'tramp-autoload-file-name-handler) |
| 34799 | 34799 | ||
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el index 0175c687b26..72194648f49 100644 --- a/lisp/mail/mail-extr.el +++ b/lisp/mail/mail-extr.el | |||
| @@ -652,7 +652,7 @@ Unless NO-REPLACE is true, at each of the positions in LIST-SYMBOL | |||
| 652 | (< ch ,beg-symbol)) | 652 | (< ch ,beg-symbol)) |
| 653 | ,@(if no-replace | 653 | ,@(if no-replace |
| 654 | nil | 654 | nil |
| 655 | `((mail-extr-nuke-char-at ch))) | 655 | '((mail-extr-nuke-char-at ch))) |
| 656 | (setcar temp nil)) | 656 | (setcar temp nil)) |
| 657 | (setq temp (cdr temp))) | 657 | (setq temp (cdr temp))) |
| 658 | (setq ,list-symbol (delq nil ,list-symbol)))) | 658 | (setq ,list-symbol (delq nil ,list-symbol)))) |
diff --git a/lisp/man.el b/lisp/man.el index 1a6eda13b7f..abba4879dbd 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -1146,7 +1146,7 @@ See the variable `Man-notify-method' for the different notification behaviors." | |||
| 1146 | (let ((saved-frame (with-current-buffer man-buffer | 1146 | (let ((saved-frame (with-current-buffer man-buffer |
| 1147 | Man-original-frame))) | 1147 | Man-original-frame))) |
| 1148 | (pcase Man-notify-method | 1148 | (pcase Man-notify-method |
| 1149 | (`newframe | 1149 | ('newframe |
| 1150 | ;; Since we run asynchronously, perhaps while Emacs is waiting | 1150 | ;; Since we run asynchronously, perhaps while Emacs is waiting |
| 1151 | ;; for input, we must not leave a different buffer current. We | 1151 | ;; for input, we must not leave a different buffer current. We |
| 1152 | ;; can't rely on the editor command loop to reselect the | 1152 | ;; can't rely on the editor command loop to reselect the |
| @@ -1157,25 +1157,25 @@ See the variable `Man-notify-method' for the different notification behaviors." | |||
| 1157 | (set-window-dedicated-p (frame-selected-window frame) t) | 1157 | (set-window-dedicated-p (frame-selected-window frame) t) |
| 1158 | (or (display-multi-frame-p frame) | 1158 | (or (display-multi-frame-p frame) |
| 1159 | (select-frame frame))))) | 1159 | (select-frame frame))))) |
| 1160 | (`pushy | 1160 | ('pushy |
| 1161 | (switch-to-buffer man-buffer)) | 1161 | (switch-to-buffer man-buffer)) |
| 1162 | (`bully | 1162 | ('bully |
| 1163 | (and (frame-live-p saved-frame) | 1163 | (and (frame-live-p saved-frame) |
| 1164 | (select-frame saved-frame)) | 1164 | (select-frame saved-frame)) |
| 1165 | (pop-to-buffer man-buffer) | 1165 | (pop-to-buffer man-buffer) |
| 1166 | (delete-other-windows)) | 1166 | (delete-other-windows)) |
| 1167 | (`aggressive | 1167 | ('aggressive |
| 1168 | (and (frame-live-p saved-frame) | 1168 | (and (frame-live-p saved-frame) |
| 1169 | (select-frame saved-frame)) | 1169 | (select-frame saved-frame)) |
| 1170 | (pop-to-buffer man-buffer)) | 1170 | (pop-to-buffer man-buffer)) |
| 1171 | (`friendly | 1171 | ('friendly |
| 1172 | (and (frame-live-p saved-frame) | 1172 | (and (frame-live-p saved-frame) |
| 1173 | (select-frame saved-frame)) | 1173 | (select-frame saved-frame)) |
| 1174 | (display-buffer man-buffer 'not-this-window)) | 1174 | (display-buffer man-buffer 'not-this-window)) |
| 1175 | (`polite | 1175 | ('polite |
| 1176 | (beep) | 1176 | (beep) |
| 1177 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) | 1177 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) |
| 1178 | (`quiet | 1178 | ('quiet |
| 1179 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) | 1179 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) |
| 1180 | (_ ;; meek | 1180 | (_ ;; meek |
| 1181 | (message "")) | 1181 | (message "")) |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 7f3698850d0..6de0a62bc2d 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -423,15 +423,15 @@ | |||
| 423 | (let ((menu (make-sparse-keymap "Edit"))) | 423 | (let ((menu (make-sparse-keymap "Edit"))) |
| 424 | 424 | ||
| 425 | (bindings--define-key menu [props] | 425 | (bindings--define-key menu [props] |
| 426 | `(menu-item "Text Properties" facemenu-menu)) | 426 | '(menu-item "Text Properties" facemenu-menu)) |
| 427 | 427 | ||
| 428 | ;; ns-win.el said: Add spell for platform consistency. | 428 | ;; ns-win.el said: Add spell for platform consistency. |
| 429 | (if (featurep 'ns) | 429 | (if (featurep 'ns) |
| 430 | (bindings--define-key menu [spell] | 430 | (bindings--define-key menu [spell] |
| 431 | `(menu-item "Spell" ispell-menu-map))) | 431 | '(menu-item "Spell" ispell-menu-map))) |
| 432 | 432 | ||
| 433 | (bindings--define-key menu [fill] | 433 | (bindings--define-key menu [fill] |
| 434 | `(menu-item "Fill" fill-region | 434 | '(menu-item "Fill" fill-region |
| 435 | :enable (and mark-active (not buffer-read-only)) | 435 | :enable (and mark-active (not buffer-read-only)) |
| 436 | :help | 436 | :help |
| 437 | "Fill text in region to fit between left and right margin")) | 437 | "Fill text in region to fit between left and right margin")) |
| @@ -440,7 +440,7 @@ | |||
| 440 | menu-bar-separator) | 440 | menu-bar-separator) |
| 441 | 441 | ||
| 442 | (bindings--define-key menu [bookmark] | 442 | (bindings--define-key menu [bookmark] |
| 443 | `(menu-item "Bookmarks" menu-bar-bookmark-map)) | 443 | '(menu-item "Bookmarks" menu-bar-bookmark-map)) |
| 444 | 444 | ||
| 445 | (bindings--define-key menu [goto] | 445 | (bindings--define-key menu [goto] |
| 446 | `(menu-item "Go To" ,menu-bar-goto-menu)) | 446 | `(menu-item "Go To" ,menu-bar-goto-menu)) |
| @@ -2421,7 +2421,7 @@ form ((XOFFSET YOFFSET) WINDOW), or nil. | |||
| 2421 | If nil, the current mouse position is used, or nil if there is no mouse." | 2421 | If nil, the current mouse position is used, or nil if there is no mouse." |
| 2422 | (pcase position | 2422 | (pcase position |
| 2423 | ;; nil -> mouse cursor position | 2423 | ;; nil -> mouse cursor position |
| 2424 | (`nil | 2424 | ('nil |
| 2425 | (let ((mp (mouse-pixel-position))) | 2425 | (let ((mp (mouse-pixel-position))) |
| 2426 | (list (list (cadr mp) (cddr mp)) (car mp)))) | 2426 | (list (list (cadr mp) (cddr mp)) (car mp)))) |
| 2427 | ;; Value returned from `event-end' or `posn-at-point'. | 2427 | ;; Value returned from `event-end' or `posn-at-point'. |
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el index fb8a16bd81d..76e4ef711ad 100644 --- a/lisp/mh-e/mh-acros.el +++ b/lisp/mh-e/mh-acros.el | |||
| @@ -61,8 +61,8 @@ particular, the expansion of (setf (gethash ...) ...) used | |||
| 61 | functions in \"cl\" at run time. This macro recognizes that and | 61 | functions in \"cl\" at run time. This macro recognizes that and |
| 62 | loads \"cl\" appropriately." | 62 | loads \"cl\" appropriately." |
| 63 | (if (eq (car (macroexpand '(setf (gethash foo bar) baz))) 'cl-puthash) | 63 | (if (eq (car (macroexpand '(setf (gethash foo bar) baz))) 'cl-puthash) |
| 64 | `(require 'cl) | 64 | '(require 'cl) |
| 65 | `(eval-when-compile (require 'cl)))) | 65 | '(eval-when-compile (require 'cl)))) |
| 66 | 66 | ||
| 67 | ;;;###mh-autoload | 67 | ;;;###mh-autoload |
| 68 | (defmacro mh-do-in-gnu-emacs (&rest body) | 68 | (defmacro mh-do-in-gnu-emacs (&rest body) |
| @@ -128,11 +128,11 @@ XEmacs and versions of GNU Emacs before 21.1 require | |||
| 128 | In GNU Emacs if CHECK-TRANSIENT-MARK-MODE-FLAG is non-nil then | 128 | In GNU Emacs if CHECK-TRANSIENT-MARK-MODE-FLAG is non-nil then |
| 129 | check if variable `transient-mark-mode' is active." | 129 | check if variable `transient-mark-mode' is active." |
| 130 | (cond ((featurep 'xemacs) ;XEmacs | 130 | (cond ((featurep 'xemacs) ;XEmacs |
| 131 | `(and (boundp 'zmacs-regions) zmacs-regions (region-active-p))) | 131 | '(and (boundp 'zmacs-regions) zmacs-regions (region-active-p))) |
| 132 | ((not check-transient-mark-mode-flag) ;GNU Emacs | 132 | ((not check-transient-mark-mode-flag) ;GNU Emacs |
| 133 | `(and (boundp 'mark-active) mark-active)) | 133 | '(and (boundp 'mark-active) mark-active)) |
| 134 | (t ;GNU Emacs | 134 | (t ;GNU Emacs |
| 135 | `(and (boundp 'transient-mark-mode) transient-mark-mode | 135 | '(and (boundp 'transient-mark-mode) transient-mark-mode |
| 136 | (boundp 'mark-active) mark-active)))) | 136 | (boundp 'mark-active) mark-active)))) |
| 137 | 137 | ||
| 138 | ;; Shush compiler. | 138 | ;; Shush compiler. |
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index 82e28e8741d..1d4291cef40 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el | |||
| @@ -519,7 +519,7 @@ font-lock is done highlighting.") | |||
| 519 | (defmacro mh-remove-xemacs-horizontal-scrollbar () | 519 | (defmacro mh-remove-xemacs-horizontal-scrollbar () |
| 520 | "Get rid of the horizontal scrollbar that XEmacs insists on putting in." | 520 | "Get rid of the horizontal scrollbar that XEmacs insists on putting in." |
| 521 | (when (featurep 'xemacs) | 521 | (when (featurep 'xemacs) |
| 522 | `(if (and (featurep 'scrollbar) | 522 | '(if (and (featurep 'scrollbar) |
| 523 | (fboundp 'set-specifier)) | 523 | (fboundp 'set-specifier)) |
| 524 | (set-specifier horizontal-scrollbar-visible-p nil | 524 | (set-specifier horizontal-scrollbar-visible-p nil |
| 525 | (cons (current-buffer) nil))))) | 525 | (cons (current-buffer) nil))))) |
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index e2c682a3996..0385e5f5f7a 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -75,7 +75,7 @@ | |||
| 75 | ;;;###mh-autoload | 75 | ;;;###mh-autoload |
| 76 | (defmacro mh-buffer-data () | 76 | (defmacro mh-buffer-data () |
| 77 | "Convenience macro to get the MIME data structures of the current buffer." | 77 | "Convenience macro to get the MIME data structures of the current buffer." |
| 78 | `(gethash (current-buffer) mh-globals-hash)) | 78 | '(gethash (current-buffer) mh-globals-hash)) |
| 79 | 79 | ||
| 80 | ;; Structure to keep track of MIME handles on a per buffer basis. | 80 | ;; Structure to keep track of MIME handles on a per buffer basis. |
| 81 | (mh-defstruct (mh-buffer-data (:conc-name mh-mime-) | 81 | (mh-defstruct (mh-buffer-data (:conc-name mh-mime-) |
diff --git a/lisp/mh-e/mh-show.el b/lisp/mh-e/mh-show.el index dae8de00bb8..4eebd0677d6 100644 --- a/lisp/mh-e/mh-show.el +++ b/lisp/mh-e/mh-show.el | |||
| @@ -375,8 +375,8 @@ still visible.\n") | |||
| 375 | (cond ((not normal-exit) | 375 | (cond ((not normal-exit) |
| 376 | (set-window-configuration config)) | 376 | (set-window-configuration config)) |
| 377 | ,(if dont-return | 377 | ,(if dont-return |
| 378 | `(t (setq mh-previous-window-config config)) | 378 | '(t (setq mh-previous-window-config config)) |
| 379 | `((and (get-buffer cur-buffer-name) | 379 | '((and (get-buffer cur-buffer-name) |
| 380 | (window-live-p (get-buffer-window | 380 | (window-live-p (get-buffer-window |
| 381 | (get-buffer cur-buffer-name)))) | 381 | (get-buffer cur-buffer-name)))) |
| 382 | (pop-to-buffer (get-buffer cur-buffer-name) nil))))))))) | 382 | (pop-to-buffer (get-buffer cur-buffer-name) nil))))))))) |
diff --git a/lisp/mh-e/mh-speed.el b/lisp/mh-e/mh-speed.el index d6361180f7d..539e39af00e 100644 --- a/lisp/mh-e/mh-speed.el +++ b/lisp/mh-e/mh-speed.el | |||
| @@ -163,7 +163,7 @@ The optional arguments from speedbar are IGNORED." | |||
| 163 | (speedbar-change-expand-button-char ?-) | 163 | (speedbar-change-expand-button-char ?-) |
| 164 | (add-text-properties | 164 | (add-text-properties |
| 165 | (mh-line-beginning-position) (1+ (line-beginning-position)) | 165 | (mh-line-beginning-position) (1+ (line-beginning-position)) |
| 166 | `(mh-expanded t))))))) | 166 | '(mh-expanded t))))))) |
| 167 | 167 | ||
| 168 | (defun mh-speed-view (&rest ignored) | 168 | (defun mh-speed-view (&rest ignored) |
| 169 | "Visits the selected folder just as if you had used \\<mh-folder-mode-map>\\[mh-visit-folder]. | 169 | "Visits the selected folder just as if you had used \\<mh-folder-mode-map>\\[mh-visit-folder]. |
| @@ -199,7 +199,7 @@ created." | |||
| 199 | (1+ (mh-line-beginning-position)))) | 199 | (1+ (mh-line-beginning-position)))) |
| 200 | (add-text-properties | 200 | (add-text-properties |
| 201 | (mh-line-beginning-position) (1+ (line-beginning-position)) | 201 | (mh-line-beginning-position) (1+ (line-beginning-position)) |
| 202 | `(mh-folder nil mh-expanded nil mh-children-p t mh-level 0)) | 202 | '(mh-folder nil mh-expanded nil mh-children-p t mh-level 0)) |
| 203 | (mh-speed-stealth-update t) | 203 | (mh-speed-stealth-update t) |
| 204 | (when (> mh-speed-update-interval 0) | 204 | (when (> mh-speed-update-interval 0) |
| 205 | (mh-speed-flists nil)))) | 205 | (mh-speed-flists nil)))) |
| @@ -568,7 +568,7 @@ The function invalidates the latest ancestor that is present." | |||
| 568 | (mh-speedbar-change-expand-button-char ?+) | 568 | (mh-speedbar-change-expand-button-char ?+) |
| 569 | (add-text-properties | 569 | (add-text-properties |
| 570 | (mh-line-beginning-position) (1+ (mh-line-beginning-position)) | 570 | (mh-line-beginning-position) (1+ (mh-line-beginning-position)) |
| 571 | `(mh-children-p t))) | 571 | '(mh-children-p t))) |
| 572 | (when (get-text-property (mh-line-beginning-position) 'mh-expanded) | 572 | (when (get-text-property (mh-line-beginning-position) 'mh-expanded) |
| 573 | (mh-speed-toggle)) | 573 | (mh-speed-toggle)) |
| 574 | (setq mh-speed-refresh-flag t)))) | 574 | (setq mh-speed-refresh-flag t)))) |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index a7e6a8761ff..f8e328f6152 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1128,7 +1128,7 @@ when the buffer's text is already an exact match." | |||
| 1128 | ;; Show the completion table, if requested. | 1128 | ;; Show the completion table, if requested. |
| 1129 | ((not exact) | 1129 | ((not exact) |
| 1130 | (if (pcase completion-auto-help | 1130 | (if (pcase completion-auto-help |
| 1131 | (`lazy (eq this-command last-command)) | 1131 | ('lazy (eq this-command last-command)) |
| 1132 | (_ completion-auto-help)) | 1132 | (_ completion-auto-help)) |
| 1133 | (minibuffer-completion-help beg end) | 1133 | (minibuffer-completion-help beg end) |
| 1134 | (completion--message "Next char not unique"))) | 1134 | (completion--message "Next char not unique"))) |
| @@ -2095,9 +2095,9 @@ a completion function or god knows what else.") | |||
| 2095 | ;; like comint-completion-at-point or mh-letter-completion-at-point, which | 2095 | ;; like comint-completion-at-point or mh-letter-completion-at-point, which |
| 2096 | ;; could be sometimes safe and sometimes misbehaving (and sometimes neither). | 2096 | ;; could be sometimes safe and sometimes misbehaving (and sometimes neither). |
| 2097 | (if (pcase which | 2097 | (if (pcase which |
| 2098 | (`all t) | 2098 | ('all t) |
| 2099 | (`safe (member fun completion--capf-safe-funs)) | 2099 | ('safe (member fun completion--capf-safe-funs)) |
| 2100 | (`optimist (not (member fun completion--capf-misbehave-funs)))) | 2100 | ('optimist (not (member fun completion--capf-misbehave-funs)))) |
| 2101 | (let ((res (funcall fun))) | 2101 | (let ((res (funcall fun))) |
| 2102 | (cond | 2102 | (cond |
| 2103 | ((and (consp res) (not (functionp res))) | 2103 | ((and (consp res) (not (functionp res))) |
| @@ -2955,9 +2955,9 @@ or a symbol, see `completion-pcm--merge-completions'." | |||
| 2955 | (setq p (cdr p))) | 2955 | (setq p (cdr p))) |
| 2956 | (`(star ,(pred symbolp) . ,rest) (setq p `(star . ,rest))) | 2956 | (`(star ,(pred symbolp) . ,rest) (setq p `(star . ,rest))) |
| 2957 | (`(,(pred symbolp) star . ,rest) (setq p `(star . ,rest))) | 2957 | (`(,(pred symbolp) star . ,rest) (setq p `(star . ,rest))) |
| 2958 | (`(point ,(or `any `any-delim) . ,rest) (setq p `(point . ,rest))) | 2958 | (`(point ,(or 'any 'any-delim) . ,rest) (setq p `(point . ,rest))) |
| 2959 | (`(,(or `any `any-delim) point . ,rest) (setq p `(point . ,rest))) | 2959 | (`(,(or 'any 'any-delim) point . ,rest) (setq p `(point . ,rest))) |
| 2960 | (`(any ,(or `any `any-delim) . ,rest) (setq p `(any . ,rest))) | 2960 | (`(any ,(or 'any 'any-delim) . ,rest) (setq p `(any . ,rest))) |
| 2961 | (`(,(pred symbolp)) (setq p nil)) ;Implicit terminating `any'. | 2961 | (`(,(pred symbolp)) (setq p nil)) ;Implicit terminating `any'. |
| 2962 | (_ (push (pop p) n)))) | 2962 | (_ (push (pop p) n)))) |
| 2963 | (nreverse n))) | 2963 | (nreverse n))) |
diff --git a/lisp/mpc.el b/lisp/mpc.el index 81bb5ac35a8..ebd2abb37c5 100644 --- a/lisp/mpc.el +++ b/lisp/mpc.el | |||
| @@ -1017,7 +1017,7 @@ If PLAYLIST is t or nil or missing, use the main playlist." | |||
| 1017 | (text | 1017 | (text |
| 1018 | (if (eq info 'self) (symbol-name tag) | 1018 | (if (eq info 'self) (symbol-name tag) |
| 1019 | (pcase tag | 1019 | (pcase tag |
| 1020 | ((or `Time `Duration) | 1020 | ((or 'Time 'Duration) |
| 1021 | (let ((time (cdr (or (assq 'time info) (assq 'Time info))))) | 1021 | (let ((time (cdr (or (assq 'time info) (assq 'Time info))))) |
| 1022 | (setq pred (list nil)) ;Just assume it's never eq. | 1022 | (setq pred (list nil)) ;Just assume it's never eq. |
| 1023 | (when time | 1023 | (when time |
| @@ -1025,7 +1025,7 @@ If PLAYLIST is t or nil or missing, use the main playlist." | |||
| 1025 | (string-match ":" time)) | 1025 | (string-match ":" time)) |
| 1026 | (substring time (match-end 0)) | 1026 | (substring time (match-end 0)) |
| 1027 | time))))) | 1027 | time))))) |
| 1028 | (`Cover | 1028 | ('Cover |
| 1029 | (let ((dir (file-name-directory (cdr (assq 'file info))))) | 1029 | (let ((dir (file-name-directory (cdr (assq 'file info))))) |
| 1030 | ;; (debug) | 1030 | ;; (debug) |
| 1031 | (push `(equal ',dir (file-name-directory (cdr (assq 'file info)))) pred) | 1031 | (push `(equal ',dir (file-name-directory (cdr (assq 'file info)))) pred) |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 1aa794477a9..37df7930469 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -2679,7 +2679,7 @@ The main reason for this alist is to deal with file versions in VMS.") | |||
| 2679 | 2679 | ||
| 2680 | (defmacro ange-ftp-parse-filename () | 2680 | (defmacro ange-ftp-parse-filename () |
| 2681 | ;;Extract the filename from the current line of a dired-like listing. | 2681 | ;;Extract the filename from the current line of a dired-like listing. |
| 2682 | `(save-match-data | 2682 | '(save-match-data |
| 2683 | (let ((eol (progn (end-of-line) (point)))) | 2683 | (let ((eol (progn (end-of-line) (point)))) |
| 2684 | (beginning-of-line) | 2684 | (beginning-of-line) |
| 2685 | (if (re-search-forward directory-listing-before-filename-regexp eol t) | 2685 | (if (re-search-forward directory-listing-before-filename-regexp eol t) |
| @@ -2761,7 +2761,7 @@ match subdirectories as well.") | |||
| 2761 | (defmacro ange-ftp-dl-parser () | 2761 | (defmacro ange-ftp-dl-parser () |
| 2762 | ;; Parse the current buffer, which is assumed to be a descriptive | 2762 | ;; Parse the current buffer, which is assumed to be a descriptive |
| 2763 | ;; listing, and return a hashtable. | 2763 | ;; listing, and return a hashtable. |
| 2764 | `(let ((tbl (make-hash-table :test 'equal))) | 2764 | '(let ((tbl (make-hash-table :test 'equal))) |
| 2765 | (while (not (eobp)) | 2765 | (while (not (eobp)) |
| 2766 | (puthash | 2766 | (puthash |
| 2767 | (buffer-substring (point) | 2767 | (buffer-substring (point) |
diff --git a/lisp/net/hmac-def.el b/lisp/net/hmac-def.el index f493d2d1691..d087d55c56f 100644 --- a/lisp/net/hmac-def.el +++ b/lisp/net/hmac-def.el | |||
| @@ -73,7 +73,7 @@ If BIT is non-nil, truncate output to specified bits." | |||
| 73 | ,(if (and bit (< (/ bit 8) L)) | 73 | ,(if (and bit (< (/ bit 8) L)) |
| 74 | `(substring key-xor-opad 0 ,(/ bit 8)) | 74 | `(substring key-xor-opad 0 ,(/ bit 8)) |
| 75 | ;; return a copy of `key-xor-opad'. | 75 | ;; return a copy of `key-xor-opad'. |
| 76 | `(concat key-xor-opad))) | 76 | '(concat key-xor-opad))) |
| 77 | ;; cleanup. | 77 | ;; cleanup. |
| 78 | (fillarray key-xor-ipad 0) | 78 | (fillarray key-xor-ipad 0) |
| 79 | (fillarray key-xor-opad 0))))) | 79 | (fillarray key-xor-opad 0))))) |
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index b6fbdfb766c..40096ca4c1e 100644 --- a/lisp/net/newst-backend.el +++ b/lisp/net/newst-backend.el | |||
| @@ -170,7 +170,7 @@ These were mostly extracted from the Radio Community Server at | |||
| 170 | http://subhonker6.userland.com/rcsPublic/rssHotlist. | 170 | http://subhonker6.userland.com/rcsPublic/rssHotlist. |
| 171 | 171 | ||
| 172 | You may add other entries in `newsticker-url-list'." | 172 | You may add other entries in `newsticker-url-list'." |
| 173 | :type `(set ,@(mapcar `newsticker--splicer | 173 | :type `(set ,@(mapcar #'newsticker--splicer |
| 174 | newsticker--raw-url-list-defaults)) | 174 | newsticker--raw-url-list-defaults)) |
| 175 | :set 'newsticker--set-customvar-retrieval | 175 | :set 'newsticker--set-customvar-retrieval |
| 176 | :group 'newsticker-retrieval) | 176 | :group 'newsticker-retrieval) |
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el index a5ba26bcdc5..ff14d20bc32 100644 --- a/lisp/net/quickurl.el +++ b/lisp/net/quickurl.el | |||
| @@ -504,15 +504,15 @@ TYPE dictates what will be inserted, options are: | |||
| 504 | (with-current-buffer quickurl-list-last-buffer | 504 | (with-current-buffer quickurl-list-last-buffer |
| 505 | (insert | 505 | (insert |
| 506 | (pcase type | 506 | (pcase type |
| 507 | (`url (funcall quickurl-format-function url)) | 507 | ('url (funcall quickurl-format-function url)) |
| 508 | (`naked-url (quickurl-url-url url)) | 508 | ('naked-url (quickurl-url-url url)) |
| 509 | (`with-lookup (format "%s <URL:%s>" | 509 | ('with-lookup (format "%s <URL:%s>" |
| 510 | (quickurl-url-keyword url) | 510 | (quickurl-url-keyword url) |
| 511 | (quickurl-url-url url))) | 511 | (quickurl-url-url url))) |
| 512 | (`with-desc (format "%S <URL:%s>" | 512 | ('with-desc (format "%S <URL:%s>" |
| 513 | (quickurl-url-description url) | 513 | (quickurl-url-description url) |
| 514 | (quickurl-url-url url))) | 514 | (quickurl-url-url url))) |
| 515 | (`lookup (quickurl-url-keyword url))))) | 515 | ('lookup (quickurl-url-keyword url))))) |
| 516 | (error "No URL details on that line")) | 516 | (error "No URL details on that line")) |
| 517 | url)) | 517 | url)) |
| 518 | 518 | ||
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el index 47f15cef5ff..fd29ca8fd11 100644 --- a/lisp/net/tramp-archive.el +++ b/lisp/net/tramp-archive.el | |||
| @@ -174,12 +174,12 @@ It must be supported by libarchive(3).") | |||
| 174 | ;;;###autoload | 174 | ;;;###autoload |
| 175 | (progn (defmacro tramp-archive-autoload-file-name-regexp () | 175 | (progn (defmacro tramp-archive-autoload-file-name-regexp () |
| 176 | "Regular expression matching archive file names." | 176 | "Regular expression matching archive file names." |
| 177 | `(concat | 177 | '(concat |
| 178 | "\\`" "\\(" ".+" "\\." | 178 | "\\`" "\\(" ".+" "\\." |
| 179 | ;; Default suffixes ... | 179 | ;; Default suffixes ... |
| 180 | (regexp-opt tramp-archive-suffixes) | 180 | (regexp-opt tramp-archive-suffixes) |
| 181 | ;; ... with compression. | 181 | ;; ... with compression. |
| 182 | "\\(?:" "\\." (regexp-opt tramp-archive-compression-suffixes) "\\)*" | 182 | "\\(?:" "\\." (regexp-opt tramp-archive-compression-suffixes) "\\)*" |
| 183 | "\\)" ;; \1 | 183 | "\\)" ;; \1 |
| 184 | "\\(" "/" ".*" "\\)" "\\'"))) ;; \2 | 184 | "\\(" "/" ".*" "\\)" "\\'"))) ;; \2 |
| 185 | 185 | ||
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el index 15b5a4958c6..4db45f3c403 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el | |||
| @@ -232,8 +232,8 @@ If NAME is a remote file name, the local part of NAME is unquoted." | |||
| 232 | ;; `cl-struct-slot-info' has been introduced with Emacs 25. | 232 | ;; `cl-struct-slot-info' has been introduced with Emacs 25. |
| 233 | (defmacro tramp-compat-tramp-file-name-slots () | 233 | (defmacro tramp-compat-tramp-file-name-slots () |
| 234 | (if (fboundp 'cl-struct-slot-info) | 234 | (if (fboundp 'cl-struct-slot-info) |
| 235 | `(cdr (mapcar 'car (cl-struct-slot-info 'tramp-file-name))) | 235 | '(cdr (mapcar 'car (cl-struct-slot-info 'tramp-file-name))) |
| 236 | `(cdr (mapcar 'car (get 'tramp-file-name 'cl-struct-slots))))) | 236 | '(cdr (mapcar 'car (get 'tramp-file-name 'cl-struct-slots))))) |
| 237 | 237 | ||
| 238 | ;; The signature of `tramp-make-tramp-file-name' has been changed. | 238 | ;; The signature of `tramp-make-tramp-file-name' has been changed. |
| 239 | ;; Therefore, we cannot us `url-tramp-convert-url-to-tramp' prior | 239 | ;; Therefore, we cannot us `url-tramp-convert-url-to-tramp' prior |
diff --git a/lisp/notifications.el b/lisp/notifications.el index e19e0eee3a9..2358b52c097 100644 --- a/lisp/notifications.el +++ b/lisp/notifications.el | |||
| @@ -232,8 +232,8 @@ of another `notifications-notify' call." | |||
| 232 | (add-to-list 'hints `(:dict-entry | 232 | (add-to-list 'hints `(:dict-entry |
| 233 | "urgency" | 233 | "urgency" |
| 234 | (:variant :byte ,(pcase urgency | 234 | (:variant :byte ,(pcase urgency |
| 235 | (`low 0) | 235 | ('low 0) |
| 236 | (`critical 2) | 236 | ('critical 2) |
| 237 | (_ 1)))) t)) | 237 | (_ 1)))) t)) |
| 238 | (when category | 238 | (when category |
| 239 | (add-to-list 'hints `(:dict-entry | 239 | (add-to-list 'hints `(:dict-entry |
diff --git a/lisp/obsolete/pgg-parse.el b/lisp/obsolete/pgg-parse.el index a7470246492..7ae2e673993 100644 --- a/lisp/obsolete/pgg-parse.el +++ b/lisp/obsolete/pgg-parse.el | |||
| @@ -123,10 +123,10 @@ | |||
| 123 | 0)) | 123 | 0)) |
| 124 | 124 | ||
| 125 | (defmacro pgg-byte-after (&optional pos) | 125 | (defmacro pgg-byte-after (&optional pos) |
| 126 | `(pgg-char-int (char-after ,(or pos `(point))))) | 126 | `(pgg-char-int (char-after ,(or pos '(point))))) |
| 127 | 127 | ||
| 128 | (defmacro pgg-read-byte () | 128 | (defmacro pgg-read-byte () |
| 129 | `(pgg-char-int (char-after (prog1 (point) (forward-char))))) | 129 | '(pgg-char-int (char-after (prog1 (point) (forward-char))))) |
| 130 | 130 | ||
| 131 | (defmacro pgg-read-bytes-string (nbytes) | 131 | (defmacro pgg-read-bytes-string (nbytes) |
| 132 | `(buffer-substring | 132 | `(buffer-substring |
diff --git a/lisp/obsolete/vc-arch.el b/lisp/obsolete/vc-arch.el index e4c52d51464..056c2709e3d 100644 --- a/lisp/obsolete/vc-arch.el +++ b/lisp/obsolete/vc-arch.el | |||
| @@ -397,8 +397,8 @@ CALLBACK expects (ENTRIES &optional MORE-TO-COME); see | |||
| 397 | (setq rev (replace-match (cdr rule) t nil rev)))) | 397 | (setq rev (replace-match (cdr rule) t nil rev)))) |
| 398 | (format "Arch%c%s" | 398 | (format "Arch%c%s" |
| 399 | (pcase (vc-state file) | 399 | (pcase (vc-state file) |
| 400 | ((or `up-to-date `needs-update) ?-) | 400 | ((or 'up-to-date 'needs-update) ?-) |
| 401 | (`added ?@) | 401 | ('added ?@) |
| 402 | (_ ?:)) | 402 | (_ ?:)) |
| 403 | rev))) | 403 | rev))) |
| 404 | 404 | ||
diff --git a/lisp/obsolete/xesam.el b/lisp/obsolete/xesam.el index 3e91b2c8dfc..c5c7fa7d680 100644 --- a/lisp/obsolete/xesam.el +++ b/lisp/obsolete/xesam.el | |||
| @@ -410,18 +410,18 @@ If there is no registered search engine at all, the function returns nil." | |||
| 410 | ;; Hopefully, this will change later. | 410 | ;; Hopefully, this will change later. |
| 411 | (setq hit-fields | 411 | (setq hit-fields |
| 412 | (pcase (intern vendor-id) | 412 | (pcase (intern vendor-id) |
| 413 | (`Beagle | 413 | ('Beagle |
| 414 | '("xesam:mimeType" "xesam:url")) | 414 | '("xesam:mimeType" "xesam:url")) |
| 415 | (`Strigi | 415 | ('Strigi |
| 416 | '("xesam:author" "xesam:cc" "xesam:charset" | 416 | '("xesam:author" "xesam:cc" "xesam:charset" |
| 417 | "xesam:contentType" "xesam:fileExtension" | 417 | "xesam:contentType" "xesam:fileExtension" |
| 418 | "xesam:id" "xesam:lineCount" "xesam:links" | 418 | "xesam:id" "xesam:lineCount" "xesam:links" |
| 419 | "xesam:mimeType" "xesam:name" "xesam:size" | 419 | "xesam:mimeType" "xesam:name" "xesam:size" |
| 420 | "xesam:sourceModified" "xesam:subject" "xesam:to" | 420 | "xesam:sourceModified" "xesam:subject" "xesam:to" |
| 421 | "xesam:url")) | 421 | "xesam:url")) |
| 422 | (`TrackerXesamSession | 422 | ('TrackerXesamSession |
| 423 | '("xesam:relevancyRating" "xesam:url")) | 423 | '("xesam:relevancyRating" "xesam:url")) |
| 424 | (`Debbugs | 424 | ('Debbugs |
| 425 | '("xesam:keyword" "xesam:owner" "xesam:title" | 425 | '("xesam:keyword" "xesam:owner" "xesam:title" |
| 426 | "xesam:url" "xesam:sourceModified" "xesam:mimeType" | 426 | "xesam:url" "xesam:sourceModified" "xesam:mimeType" |
| 427 | "debbugs:key")) | 427 | "debbugs:key")) |
diff --git a/lisp/org/ob-C.el b/lisp/org/ob-C.el index ff5be349676..a99f0fcb85e 100644 --- a/lisp/org/ob-C.el +++ b/lisp/org/ob-C.el | |||
| @@ -136,7 +136,7 @@ or `org-babel-execute:C++' or `org-babel-execute:D'." | |||
| 136 | (let* ((tmp-src-file (org-babel-temp-file | 136 | (let* ((tmp-src-file (org-babel-temp-file |
| 137 | "C-src-" | 137 | "C-src-" |
| 138 | (pcase org-babel-c-variant | 138 | (pcase org-babel-c-variant |
| 139 | (`c ".c") (`cpp ".cpp") (`d ".d")))) | 139 | ('c ".c") ('cpp ".cpp") ('d ".d")))) |
| 140 | (tmp-bin-file ;not used for D | 140 | (tmp-bin-file ;not used for D |
| 141 | (org-babel-process-file-name | 141 | (org-babel-process-file-name |
| 142 | (org-babel-temp-file "C-bin-" org-babel-exeext))) | 142 | (org-babel-temp-file "C-bin-" org-babel-exeext))) |
| @@ -154,29 +154,29 @@ or `org-babel-execute:C++' or `org-babel-execute:D'." | |||
| 154 | " ")) | 154 | " ")) |
| 155 | (full-body | 155 | (full-body |
| 156 | (pcase org-babel-c-variant | 156 | (pcase org-babel-c-variant |
| 157 | (`c (org-babel-C-expand-C body params)) | 157 | ('c (org-babel-C-expand-C body params)) |
| 158 | (`cpp (org-babel-C-expand-C++ body params)) | 158 | ('cpp (org-babel-C-expand-C++ body params)) |
| 159 | (`d (org-babel-C-expand-D body params))))) | 159 | ('d (org-babel-C-expand-D body params))))) |
| 160 | (with-temp-file tmp-src-file (insert full-body)) | 160 | (with-temp-file tmp-src-file (insert full-body)) |
| 161 | (pcase org-babel-c-variant | 161 | (pcase org-babel-c-variant |
| 162 | ((or `c `cpp) | 162 | ((or 'c 'cpp) |
| 163 | (org-babel-eval | 163 | (org-babel-eval |
| 164 | (format "%s -o %s %s %s %s" | 164 | (format "%s -o %s %s %s %s" |
| 165 | (pcase org-babel-c-variant | 165 | (pcase org-babel-c-variant |
| 166 | (`c org-babel-C-compiler) | 166 | ('c org-babel-C-compiler) |
| 167 | (`cpp org-babel-C++-compiler)) | 167 | ('cpp org-babel-C++-compiler)) |
| 168 | tmp-bin-file | 168 | tmp-bin-file |
| 169 | flags | 169 | flags |
| 170 | (org-babel-process-file-name tmp-src-file) | 170 | (org-babel-process-file-name tmp-src-file) |
| 171 | libs) | 171 | libs) |
| 172 | "")) | 172 | "")) |
| 173 | (`d nil)) ;; no separate compilation for D | 173 | ('d nil)) ;; no separate compilation for D |
| 174 | (let ((results | 174 | (let ((results |
| 175 | (org-babel-eval | 175 | (org-babel-eval |
| 176 | (pcase org-babel-c-variant | 176 | (pcase org-babel-c-variant |
| 177 | ((or `c `cpp) | 177 | ((or 'c 'cpp) |
| 178 | (concat tmp-bin-file cmdline)) | 178 | (concat tmp-bin-file cmdline)) |
| 179 | (`d | 179 | ('d |
| 180 | (format "%s %s %s %s" | 180 | (format "%s %s %s %s" |
| 181 | org-babel-D-compiler | 181 | org-babel-D-compiler |
| 182 | flags | 182 | flags |
| @@ -323,9 +323,9 @@ FORMAT can be either a format string or a function which is called with VAL." | |||
| 323 | (let* ((basetype (org-babel-C-val-to-base-type val)) | 323 | (let* ((basetype (org-babel-C-val-to-base-type val)) |
| 324 | (type | 324 | (type |
| 325 | (pcase basetype | 325 | (pcase basetype |
| 326 | (`integerp '("int" "%d")) | 326 | ('integerp '("int" "%d")) |
| 327 | (`floatp '("double" "%f")) | 327 | ('floatp '("double" "%f")) |
| 328 | (`stringp | 328 | ('stringp |
| 329 | (list | 329 | (list |
| 330 | (if (eq org-babel-c-variant 'd) "string" "const char*") | 330 | (if (eq org-babel-c-variant 'd) "string" "const char*") |
| 331 | "\"%s\"")) | 331 | "\"%s\"")) |
| @@ -373,11 +373,11 @@ FORMAT can be either a format string or a function which is called with VAL." | |||
| 373 | (let ((type nil)) | 373 | (let ((type nil)) |
| 374 | (mapc (lambda (v) | 374 | (mapc (lambda (v) |
| 375 | (pcase (org-babel-C-val-to-base-type v) | 375 | (pcase (org-babel-C-val-to-base-type v) |
| 376 | (`stringp (setq type 'stringp)) | 376 | ('stringp (setq type 'stringp)) |
| 377 | (`floatp | 377 | ('floatp |
| 378 | (if (or (not type) (eq type 'integerp)) | 378 | (if (or (not type) (eq type 'integerp)) |
| 379 | (setq type 'floatp))) | 379 | (setq type 'floatp))) |
| 380 | (`integerp | 380 | ('integerp |
| 381 | (unless type (setq type 'integerp))))) | 381 | (unless type (setq type 'integerp))))) |
| 382 | val) | 382 | val) |
| 383 | type)) | 383 | type)) |
| @@ -420,7 +420,7 @@ of the same value." | |||
| 420 | "Generate a utility function to convert a column name | 420 | "Generate a utility function to convert a column name |
| 421 | into a column number." | 421 | into a column number." |
| 422 | (pcase org-babel-c-variant | 422 | (pcase org-babel-c-variant |
| 423 | ((or `c `cpp) | 423 | ((or 'c 'cpp) |
| 424 | "int get_column_num (int nbcols, const char** header, const char* column) | 424 | "int get_column_num (int nbcols, const char** header, const char* column) |
| 425 | { | 425 | { |
| 426 | int c; | 426 | int c; |
| @@ -430,7 +430,7 @@ into a column number." | |||
| 430 | return -1; | 430 | return -1; |
| 431 | } | 431 | } |
| 432 | ") | 432 | ") |
| 433 | (`d | 433 | ('d |
| 434 | "int get_column_num (string[] header, string column) | 434 | "int get_column_num (string[] header, string column) |
| 435 | { | 435 | { |
| 436 | foreach (c, h; header) | 436 | foreach (c, h; header) |
| @@ -448,18 +448,18 @@ specifying a variable with the name of the table." | |||
| 448 | (concat | 448 | (concat |
| 449 | (format | 449 | (format |
| 450 | (pcase org-babel-c-variant | 450 | (pcase org-babel-c-variant |
| 451 | ((or `c `cpp) "const char* %s_header[%d] = {%s};") | 451 | ((or 'c 'cpp) "const char* %s_header[%d] = {%s};") |
| 452 | (`d "string %s_header[%d] = [%s];")) | 452 | ('d "string %s_header[%d] = [%s];")) |
| 453 | table | 453 | table |
| 454 | (length headers) | 454 | (length headers) |
| 455 | (mapconcat (lambda (h) (format "%S" h)) headers ",")) | 455 | (mapconcat (lambda (h) (format "%S" h)) headers ",")) |
| 456 | "\n" | 456 | "\n" |
| 457 | (pcase org-babel-c-variant | 457 | (pcase org-babel-c-variant |
| 458 | ((or `c `cpp) | 458 | ((or 'c 'cpp) |
| 459 | (format | 459 | (format |
| 460 | "const char* %s_h (int row, const char* col) { return %s[row][get_column_num(%d,%s_header,col)]; }" | 460 | "const char* %s_h (int row, const char* col) { return %s[row][get_column_num(%d,%s_header,col)]; }" |
| 461 | table table (length headers) table)) | 461 | table table (length headers) table)) |
| 462 | (`d | 462 | ('d |
| 463 | (format | 463 | (format |
| 464 | "string %s_h (size_t row, string col) { return %s[row][get_column_num(%s_header,col)]; }" | 464 | "string %s_h (size_t row, string col) { return %s[row][get_column_num(%s_header,col)]; }" |
| 465 | table table table)))))) | 465 | table table table)))))) |
diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el index a5449fe35e9..ddf756c9157 100644 --- a/lisp/org/ob-core.el +++ b/lisp/org/ob-core.el | |||
| @@ -283,9 +283,9 @@ environment, to override this check." | |||
| 283 | (name (nth 4 info)) | 283 | (name (nth 4 info)) |
| 284 | (name-string (if name (format " (%s) " name) " "))) | 284 | (name-string (if name (format " (%s) " name) " "))) |
| 285 | (pcase evalp | 285 | (pcase evalp |
| 286 | (`nil nil) | 286 | ('nil nil) |
| 287 | (`t t) | 287 | ('t t) |
| 288 | (`query (or | 288 | ('query (or |
| 289 | (and (not (bound-and-true-p | 289 | (and (not (bound-and-true-p |
| 290 | org-babel-confirm-evaluate-answer-no)) | 290 | org-babel-confirm-evaluate-answer-no)) |
| 291 | (yes-or-no-p | 291 | (yes-or-no-p |
| @@ -1991,7 +1991,7 @@ to HASH." | |||
| 1991 | (catch :found | 1991 | (catch :found |
| 1992 | (org-with-wide-buffer | 1992 | (org-with-wide-buffer |
| 1993 | (pcase (org-element-type context) | 1993 | (pcase (org-element-type context) |
| 1994 | ((or `inline-babel-call `inline-src-block) | 1994 | ((or 'inline-babel-call 'inline-src-block) |
| 1995 | ;; Results for inline objects are located right after them. | 1995 | ;; Results for inline objects are located right after them. |
| 1996 | ;; There is no RESULTS line to insert either. | 1996 | ;; There is no RESULTS line to insert either. |
| 1997 | (let ((limit (org-element-property | 1997 | (let ((limit (org-element-property |
| @@ -2013,7 +2013,7 @@ to HASH." | |||
| 2013 | (skip-chars-backward " \t") | 2013 | (skip-chars-backward " \t") |
| 2014 | (point))) | 2014 | (point))) |
| 2015 | (point)))))))) | 2015 | (point)))))))) |
| 2016 | ((or `babel-call `src-block) | 2016 | ((or 'babel-call 'src-block) |
| 2017 | (let* ((name (org-element-property :name context)) | 2017 | (let* ((name (org-element-property :name context)) |
| 2018 | (named-results (and name (org-babel-find-named-result name)))) | 2018 | (named-results (and name (org-babel-find-named-result name)))) |
| 2019 | (goto-char (or named-results (org-element-property :end context))) | 2019 | (goto-char (or named-results (org-element-property :end context))) |
| @@ -2067,20 +2067,20 @@ Return nil if ELEMENT cannot be read." | |||
| 2067 | (org-with-wide-buffer | 2067 | (org-with-wide-buffer |
| 2068 | (goto-char (org-element-property :post-affiliated element)) | 2068 | (goto-char (org-element-property :post-affiliated element)) |
| 2069 | (pcase (org-element-type element) | 2069 | (pcase (org-element-type element) |
| 2070 | (`fixed-width | 2070 | ('fixed-width |
| 2071 | (let ((v (org-trim (org-element-property :value element)))) | 2071 | (let ((v (org-trim (org-element-property :value element)))) |
| 2072 | (or (org-babel--string-to-number v) v))) | 2072 | (or (org-babel--string-to-number v) v))) |
| 2073 | (`table (org-babel-read-table)) | 2073 | ('table (org-babel-read-table)) |
| 2074 | (`plain-list (org-babel-read-list)) | 2074 | ('plain-list (org-babel-read-list)) |
| 2075 | (`example-block | 2075 | ('example-block |
| 2076 | (let ((v (org-element-property :value element))) | 2076 | (let ((v (org-element-property :value element))) |
| 2077 | (if (or org-src-preserve-indentation | 2077 | (if (or org-src-preserve-indentation |
| 2078 | (org-element-property :preserve-indent element)) | 2078 | (org-element-property :preserve-indent element)) |
| 2079 | v | 2079 | v |
| 2080 | (org-remove-indentation v)))) | 2080 | (org-remove-indentation v)))) |
| 2081 | (`export-block | 2081 | ('export-block |
| 2082 | (org-remove-indentation (org-element-property :value element))) | 2082 | (org-remove-indentation (org-element-property :value element))) |
| 2083 | (`paragraph | 2083 | ('paragraph |
| 2084 | ;; Treat paragraphs containing a single link specially. | 2084 | ;; Treat paragraphs containing a single link specially. |
| 2085 | (skip-chars-forward " \t") | 2085 | (skip-chars-forward " \t") |
| 2086 | (if (and (looking-at org-bracket-link-regexp) | 2086 | (if (and (looking-at org-bracket-link-regexp) |
| @@ -2093,7 +2093,7 @@ Return nil if ELEMENT cannot be read." | |||
| 2093 | (buffer-substring-no-properties | 2093 | (buffer-substring-no-properties |
| 2094 | (org-element-property :contents-begin element) | 2094 | (org-element-property :contents-begin element) |
| 2095 | (org-element-property :contents-end element)))) | 2095 | (org-element-property :contents-end element)))) |
| 2096 | ((or `center-block `quote-block `verse-block `special-block) | 2096 | ((or 'center-block 'quote-block 'verse-block 'special-block) |
| 2097 | (org-remove-indentation | 2097 | (org-remove-indentation |
| 2098 | (buffer-substring-no-properties | 2098 | (buffer-substring-no-properties |
| 2099 | (org-element-property :contents-begin element) | 2099 | (org-element-property :contents-begin element) |
diff --git a/lisp/org/ob-exp.el b/lisp/org/ob-exp.el index 264dc0ed067..bb4ef1b77f0 100644 --- a/lisp/org/ob-exp.el +++ b/lisp/org/ob-exp.el | |||
| @@ -175,7 +175,7 @@ this template." | |||
| 175 | ;; | 175 | ;; |
| 176 | ;; #+name: call_src | 176 | ;; #+name: call_src |
| 177 | ;; #+begin_src ... | 177 | ;; #+begin_src ... |
| 178 | ((and (or `babel-call `src-block) (guard object?)) | 178 | ((and (or 'babel-call 'src-block) (guard object?)) |
| 179 | nil) | 179 | nil) |
| 180 | (type type))) | 180 | (type type))) |
| 181 | (begin | 181 | (begin |
| @@ -187,7 +187,7 @@ this template." | |||
| 187 | (skip-chars-backward " \r\t\n") | 187 | (skip-chars-backward " \r\t\n") |
| 188 | (point))))) | 188 | (point))))) |
| 189 | (pcase type | 189 | (pcase type |
| 190 | (`inline-src-block | 190 | ('inline-src-block |
| 191 | (let* ((info | 191 | (let* ((info |
| 192 | (org-babel-get-src-block-info nil element)) | 192 | (org-babel-get-src-block-info nil element)) |
| 193 | (params (nth 2 info))) | 193 | (params (nth 2 info))) |
| @@ -215,7 +215,7 @@ this template." | |||
| 215 | ;; insert value. | 215 | ;; insert value. |
| 216 | (delete-region begin end) | 216 | (delete-region begin end) |
| 217 | (insert replacement))))) | 217 | (insert replacement))))) |
| 218 | ((or `babel-call `inline-babel-call) | 218 | ((or 'babel-call 'inline-babel-call) |
| 219 | (org-babel-exp-do-export (org-babel-lob-get-info element) | 219 | (org-babel-exp-do-export (org-babel-lob-get-info element) |
| 220 | 'lob) | 220 | 'lob) |
| 221 | (let ((rep | 221 | (let ((rep |
| @@ -242,7 +242,7 @@ this template." | |||
| 242 | (goto-char begin) | 242 | (goto-char begin) |
| 243 | (delete-region begin end) | 243 | (delete-region begin end) |
| 244 | (insert rep)))) | 244 | (insert rep)))) |
| 245 | (`src-block | 245 | ('src-block |
| 246 | (let ((match-start (copy-marker (match-beginning 0))) | 246 | (let ((match-start (copy-marker (match-beginning 0))) |
| 247 | (ind (org-get-indentation))) | 247 | (ind (org-get-indentation))) |
| 248 | ;; Take care of matched block: compute | 248 | ;; Take care of matched block: compute |
| @@ -394,14 +394,14 @@ inhibit insertion of results into the buffer." | |||
| 394 | (nth 2 info) | 394 | (nth 2 info) |
| 395 | `((:results . ,(if silent "silent" "replace"))))))) | 395 | `((:results . ,(if silent "silent" "replace"))))))) |
| 396 | (pcase type | 396 | (pcase type |
| 397 | (`block (org-babel-execute-src-block nil info)) | 397 | ('block (org-babel-execute-src-block nil info)) |
| 398 | (`inline | 398 | ('inline |
| 399 | ;; Position the point on the inline source block | 399 | ;; Position the point on the inline source block |
| 400 | ;; allowing `org-babel-insert-result' to check that the | 400 | ;; allowing `org-babel-insert-result' to check that the |
| 401 | ;; block is inline. | 401 | ;; block is inline. |
| 402 | (goto-char (nth 5 info)) | 402 | (goto-char (nth 5 info)) |
| 403 | (org-babel-execute-src-block nil info)) | 403 | (org-babel-execute-src-block nil info)) |
| 404 | (`lob | 404 | ('lob |
| 405 | (save-excursion | 405 | (save-excursion |
| 406 | (goto-char (nth 5 info)) | 406 | (goto-char (nth 5 info)) |
| 407 | (let (org-confirm-babel-evaluate) | 407 | (let (org-confirm-babel-evaluate) |
diff --git a/lisp/org/ob-groovy.el b/lisp/org/ob-groovy.el index 565b09754ba..44470dd1a19 100644 --- a/lisp/org/ob-groovy.el +++ b/lisp/org/ob-groovy.el | |||
| @@ -83,12 +83,12 @@ If RESULT-TYPE equals `value' then return the value of the last statement | |||
| 83 | in BODY as elisp." | 83 | in BODY as elisp." |
| 84 | (when session (error "Sessions are not (yet) supported for Groovy")) | 84 | (when session (error "Sessions are not (yet) supported for Groovy")) |
| 85 | (pcase result-type | 85 | (pcase result-type |
| 86 | (`output | 86 | ('output |
| 87 | (let ((src-file (org-babel-temp-file "groovy_"))) | 87 | (let ((src-file (org-babel-temp-file "groovy_"))) |
| 88 | (progn (with-temp-file src-file (insert body)) | 88 | (progn (with-temp-file src-file (insert body)) |
| 89 | (org-babel-eval | 89 | (org-babel-eval |
| 90 | (concat org-babel-groovy-command " " src-file) "")))) | 90 | (concat org-babel-groovy-command " " src-file) "")))) |
| 91 | (`value | 91 | ('value |
| 92 | (let* ((src-file (org-babel-temp-file "groovy_")) | 92 | (let* ((src-file (org-babel-temp-file "groovy_")) |
| 93 | (wrapper (format org-babel-groovy-wrapper-method body))) | 93 | (wrapper (format org-babel-groovy-wrapper-method body))) |
| 94 | (with-temp-file src-file (insert wrapper)) | 94 | (with-temp-file src-file (insert wrapper)) |
diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el index e607ee0c55b..ba1b4d00fc1 100644 --- a/lisp/org/ob-haskell.el +++ b/lisp/org/ob-haskell.el | |||
| @@ -89,8 +89,8 @@ | |||
| 89 | (org-babel-reassemble-table | 89 | (org-babel-reassemble-table |
| 90 | (let ((result | 90 | (let ((result |
| 91 | (pcase result-type | 91 | (pcase result-type |
| 92 | (`output (mapconcat #'identity (reverse (cdr results)) "\n")) | 92 | ('output (mapconcat #'identity (reverse (cdr results)) "\n")) |
| 93 | (`value (car results))))) | 93 | ('value (car results))))) |
| 94 | (org-babel-result-cond (cdr (assq :result-params params)) | 94 | (org-babel-result-cond (cdr (assq :result-params params)) |
| 95 | result (org-babel-script-escape result))) | 95 | result (org-babel-script-escape result))) |
| 96 | (org-babel-pick-name (cdr (assq :colname-names params)) | 96 | (org-babel-pick-name (cdr (assq :colname-names params)) |
diff --git a/lisp/org/ob-io.el b/lisp/org/ob-io.el index 4f407cc52c3..07746aaac7e 100644 --- a/lisp/org/ob-io.el +++ b/lisp/org/ob-io.el | |||
| @@ -74,14 +74,14 @@ If RESULT-TYPE equals `value' then return the value of the last statement | |||
| 74 | in BODY as elisp." | 74 | in BODY as elisp." |
| 75 | (when session (error "Sessions are not (yet) supported for Io")) | 75 | (when session (error "Sessions are not (yet) supported for Io")) |
| 76 | (pcase result-type | 76 | (pcase result-type |
| 77 | (`output | 77 | ('output |
| 78 | (if (member "repl" result-params) | 78 | (if (member "repl" result-params) |
| 79 | (org-babel-eval org-babel-io-command body) | 79 | (org-babel-eval org-babel-io-command body) |
| 80 | (let ((src-file (org-babel-temp-file "io-"))) | 80 | (let ((src-file (org-babel-temp-file "io-"))) |
| 81 | (progn (with-temp-file src-file (insert body)) | 81 | (progn (with-temp-file src-file (insert body)) |
| 82 | (org-babel-eval | 82 | (org-babel-eval |
| 83 | (concat org-babel-io-command " " src-file) ""))))) | 83 | (concat org-babel-io-command " " src-file) ""))))) |
| 84 | (`value (let* ((src-file (org-babel-temp-file "io-")) | 84 | ('value (let* ((src-file (org-babel-temp-file "io-")) |
| 85 | (wrapper (format org-babel-io-wrapper-method body))) | 85 | (wrapper (format org-babel-io-wrapper-method body))) |
| 86 | (with-temp-file src-file (insert wrapper)) | 86 | (with-temp-file src-file (insert wrapper)) |
| 87 | (let ((raw (org-babel-eval | 87 | (let ((raw (org-babel-eval |
diff --git a/lisp/org/ob-lisp.el b/lisp/org/ob-lisp.el index b846138f7a3..8fc691ed616 100644 --- a/lisp/org/ob-lisp.el +++ b/lisp/org/ob-lisp.el | |||
| @@ -87,8 +87,8 @@ current directory string." | |||
| 87 | BODY is the contents of the block, as a string. PARAMS is | 87 | BODY is the contents of the block, as a string. PARAMS is |
| 88 | a property list containing the parameters of the block." | 88 | a property list containing the parameters of the block." |
| 89 | (require (pcase org-babel-lisp-eval-fn | 89 | (require (pcase org-babel-lisp-eval-fn |
| 90 | (`slime-eval 'slime) | 90 | ('slime-eval 'slime) |
| 91 | (`sly-eval 'sly))) | 91 | ('sly-eval 'sly))) |
| 92 | (org-babel-reassemble-table | 92 | (org-babel-reassemble-table |
| 93 | (let ((result | 93 | (let ((result |
| 94 | (funcall (if (member "output" (cdr (assq :result-params params))) | 94 | (funcall (if (member "output" (cdr (assq :result-params params))) |
diff --git a/lisp/org/ob-lob.el b/lisp/org/ob-lob.el index 6af6bf07e84..6668ccd8bab 100644 --- a/lisp/org/ob-lob.el +++ b/lisp/org/ob-lob.el | |||
| @@ -105,8 +105,8 @@ after REF in the Library of Babel." | |||
| 105 | (when (equal name (org-element-property :name element)) | 105 | (when (equal name (org-element-property :name element)) |
| 106 | (throw :found | 106 | (throw :found |
| 107 | (pcase (org-element-type element) | 107 | (pcase (org-element-type element) |
| 108 | (`src-block (org-babel-get-src-block-info t element)) | 108 | ('src-block (org-babel-get-src-block-info t element)) |
| 109 | (`babel-call (org-babel-lob-get-info element)) | 109 | ('babel-call (org-babel-lob-get-info element)) |
| 110 | ;; Non-executable data found. Since names | 110 | ;; Non-executable data found. Since names |
| 111 | ;; are supposed to be unique throughout | 111 | ;; are supposed to be unique throughout |
| 112 | ;; a document, bail out. | 112 | ;; a document, bail out. |
diff --git a/lisp/org/ob-lua.el b/lisp/org/ob-lua.el index 6ae72c7e565..7750afdffcb 100644 --- a/lisp/org/ob-lua.el +++ b/lisp/org/ob-lua.el | |||
| @@ -290,10 +290,10 @@ string. If RESULT-TYPE equals 'value then return the value of the | |||
| 290 | last statement in BODY, as elisp." | 290 | last statement in BODY, as elisp." |
| 291 | (let ((raw | 291 | (let ((raw |
| 292 | (pcase result-type | 292 | (pcase result-type |
| 293 | (`output (org-babel-eval org-babel-lua-command | 293 | ('output (org-babel-eval org-babel-lua-command |
| 294 | (concat (if preamble (concat preamble "\n")) | 294 | (concat (if preamble (concat preamble "\n")) |
| 295 | body))) | 295 | body))) |
| 296 | (`value (let ((tmp-file (org-babel-temp-file "lua-"))) | 296 | ('value (let ((tmp-file (org-babel-temp-file "lua-"))) |
| 297 | (org-babel-eval | 297 | (org-babel-eval |
| 298 | org-babel-lua-command | 298 | org-babel-lua-command |
| 299 | (concat | 299 | (concat |
| @@ -364,7 +364,7 @@ fd:close()" | |||
| 364 | (funcall send-wait))) | 364 | (funcall send-wait))) |
| 365 | (results | 365 | (results |
| 366 | (pcase result-type | 366 | (pcase result-type |
| 367 | (`output | 367 | ('output |
| 368 | (mapconcat | 368 | (mapconcat |
| 369 | #'org-trim | 369 | #'org-trim |
| 370 | (butlast | 370 | (butlast |
| @@ -375,7 +375,7 @@ fd:close()" | |||
| 375 | (insert org-babel-lua-eoe-indicator) | 375 | (insert org-babel-lua-eoe-indicator) |
| 376 | (funcall send-wait)) | 376 | (funcall send-wait)) |
| 377 | 2) "\n")) | 377 | 2) "\n")) |
| 378 | (`value | 378 | ('value |
| 379 | (let ((tmp-file (org-babel-temp-file "lua-"))) | 379 | (let ((tmp-file (org-babel-temp-file "lua-"))) |
| 380 | (org-babel-comint-with-output | 380 | (org-babel-comint-with-output |
| 381 | (session org-babel-lua-eoe-indicator nil body) | 381 | (session org-babel-lua-eoe-indicator nil body) |
diff --git a/lisp/org/ob-octave.el b/lisp/org/ob-octave.el index c7339cf992d..f19b6ccf25b 100644 --- a/lisp/org/ob-octave.el +++ b/lisp/org/ob-octave.el | |||
| @@ -178,14 +178,14 @@ value of the last statement in BODY, as elisp." | |||
| 178 | org-babel-matlab-shell-command | 178 | org-babel-matlab-shell-command |
| 179 | org-babel-octave-shell-command))) | 179 | org-babel-octave-shell-command))) |
| 180 | (pcase result-type | 180 | (pcase result-type |
| 181 | (`output (org-babel-eval cmd body)) | 181 | ('output (org-babel-eval cmd body)) |
| 182 | (`value (let ((tmp-file (org-babel-temp-file "octave-"))) | 182 | ('value (let ((tmp-file (org-babel-temp-file "octave-"))) |
| 183 | (org-babel-eval | 183 | (org-babel-eval |
| 184 | cmd | 184 | cmd |
| 185 | (format org-babel-octave-wrapper-method body | 185 | (format org-babel-octave-wrapper-method body |
| 186 | (org-babel-process-file-name tmp-file 'noquote) | 186 | (org-babel-process-file-name tmp-file 'noquote) |
| 187 | (org-babel-process-file-name tmp-file 'noquote))) | 187 | (org-babel-process-file-name tmp-file 'noquote))) |
| 188 | (org-babel-octave-import-elisp-from-file tmp-file)))))) | 188 | (org-babel-octave-import-elisp-from-file tmp-file)))))) |
| 189 | 189 | ||
| 190 | (defun org-babel-octave-evaluate-session | 190 | (defun org-babel-octave-evaluate-session |
| 191 | (session body result-type &optional matlabp) | 191 | (session body result-type &optional matlabp) |
| @@ -194,11 +194,11 @@ value of the last statement in BODY, as elisp." | |||
| 194 | (wait-file (org-babel-temp-file "matlab-emacs-link-wait-signal-")) | 194 | (wait-file (org-babel-temp-file "matlab-emacs-link-wait-signal-")) |
| 195 | (full-body | 195 | (full-body |
| 196 | (pcase result-type | 196 | (pcase result-type |
| 197 | (`output | 197 | ('output |
| 198 | (mapconcat | 198 | (mapconcat |
| 199 | #'org-babel-chomp | 199 | #'org-babel-chomp |
| 200 | (list body org-babel-octave-eoe-indicator) "\n")) | 200 | (list body org-babel-octave-eoe-indicator) "\n")) |
| 201 | (`value | 201 | ('value |
| 202 | (if (and matlabp org-babel-matlab-with-emacs-link) | 202 | (if (and matlabp org-babel-matlab-with-emacs-link) |
| 203 | (concat | 203 | (concat |
| 204 | (format org-babel-matlab-emacs-link-wrapper-method | 204 | (format org-babel-matlab-emacs-link-wrapper-method |
| @@ -232,9 +232,9 @@ value of the last statement in BODY, as elisp." | |||
| 232 | t full-body) | 232 | t full-body) |
| 233 | (insert full-body) (comint-send-input nil t)))) results) | 233 | (insert full-body) (comint-send-input nil t)))) results) |
| 234 | (pcase result-type | 234 | (pcase result-type |
| 235 | (`value | 235 | ('value |
| 236 | (org-babel-octave-import-elisp-from-file tmp-file)) | 236 | (org-babel-octave-import-elisp-from-file tmp-file)) |
| 237 | (`output | 237 | ('output |
| 238 | (setq results | 238 | (setq results |
| 239 | (if matlabp | 239 | (if matlabp |
| 240 | (cdr (reverse (delq "" (mapcar | 240 | (cdr (reverse (delq "" (mapcar |
diff --git a/lisp/org/ob-perl.el b/lisp/org/ob-perl.el index 85806fd5330..adb62ce50b9 100644 --- a/lisp/org/ob-perl.el +++ b/lisp/org/ob-perl.el | |||
| @@ -136,12 +136,12 @@ return the value of the last statement in BODY, as elisp." | |||
| 136 | tmp-file 'noquote))) | 136 | tmp-file 'noquote))) |
| 137 | (let ((results | 137 | (let ((results |
| 138 | (pcase result-type | 138 | (pcase result-type |
| 139 | (`output | 139 | ('output |
| 140 | (with-temp-file tmp-file | 140 | (with-temp-file tmp-file |
| 141 | (insert | 141 | (insert |
| 142 | (org-babel-eval org-babel-perl-command body)) | 142 | (org-babel-eval org-babel-perl-command body)) |
| 143 | (buffer-string))) | 143 | (buffer-string))) |
| 144 | (`value | 144 | ('value |
| 145 | (org-babel-eval org-babel-perl-command | 145 | (org-babel-eval org-babel-perl-command |
| 146 | (format org-babel-perl-wrapper-method | 146 | (format org-babel-perl-wrapper-method |
| 147 | body tmp-babel-file)))))) | 147 | body tmp-babel-file)))))) |
diff --git a/lisp/org/ob-python.el b/lisp/org/ob-python.el index 9f1234bac52..3f1bbf1cb3d 100644 --- a/lisp/org/ob-python.el +++ b/lisp/org/ob-python.el | |||
| @@ -265,10 +265,10 @@ string. If RESULT-TYPE equals `value' then return the value of the | |||
| 265 | last statement in BODY, as elisp." | 265 | last statement in BODY, as elisp." |
| 266 | (let ((raw | 266 | (let ((raw |
| 267 | (pcase result-type | 267 | (pcase result-type |
| 268 | (`output (org-babel-eval org-babel-python-command | 268 | ('output (org-babel-eval org-babel-python-command |
| 269 | (concat (if preamble (concat preamble "\n")) | 269 | (concat (if preamble (concat preamble "\n")) |
| 270 | body))) | 270 | body))) |
| 271 | (`value (let ((tmp-file (org-babel-temp-file "python-"))) | 271 | ('value (let ((tmp-file (org-babel-temp-file "python-"))) |
| 272 | (org-babel-eval | 272 | (org-babel-eval |
| 273 | org-babel-python-command | 273 | org-babel-python-command |
| 274 | (concat | 274 | (concat |
| @@ -314,7 +314,7 @@ last statement in BODY, as elisp." | |||
| 314 | (funcall send-wait))) | 314 | (funcall send-wait))) |
| 315 | (results | 315 | (results |
| 316 | (pcase result-type | 316 | (pcase result-type |
| 317 | (`output | 317 | ('output |
| 318 | (let ((body (if (string-match-p ".\n+." body) ; Multiline | 318 | (let ((body (if (string-match-p ".\n+." body) ; Multiline |
| 319 | (let ((tmp-src-file (org-babel-temp-file | 319 | (let ((tmp-src-file (org-babel-temp-file |
| 320 | "python-"))) | 320 | "python-"))) |
| @@ -332,7 +332,7 @@ last statement in BODY, as elisp." | |||
| 332 | (insert org-babel-python-eoe-indicator) | 332 | (insert org-babel-python-eoe-indicator) |
| 333 | (funcall send-wait)) | 333 | (funcall send-wait)) |
| 334 | 2) "\n"))) | 334 | 2) "\n"))) |
| 335 | (`value | 335 | ('value |
| 336 | (let ((tmp-file (org-babel-temp-file "python-"))) | 336 | (let ((tmp-file (org-babel-temp-file "python-"))) |
| 337 | (org-babel-comint-with-output | 337 | (org-babel-comint-with-output |
| 338 | (session org-babel-python-eoe-indicator nil body) | 338 | (session org-babel-python-eoe-indicator nil body) |
diff --git a/lisp/org/ob-ref.el b/lisp/org/ob-ref.el index 3efa17f9601..88a93294dbe 100644 --- a/lisp/org/ob-ref.el +++ b/lisp/org/ob-ref.el | |||
| @@ -166,11 +166,11 @@ Emacs Lisp representation of the value of the variable." | |||
| 166 | (goto-char | 166 | (goto-char |
| 167 | (org-element-property :post-affiliated e)) | 167 | (org-element-property :post-affiliated e)) |
| 168 | (pcase (org-element-type e) | 168 | (pcase (org-element-type e) |
| 169 | (`babel-call | 169 | ('babel-call |
| 170 | (throw :found | 170 | (throw :found |
| 171 | (org-babel-execute-src-block | 171 | (org-babel-execute-src-block |
| 172 | nil (org-babel-lob-get-info e) params))) | 172 | nil (org-babel-lob-get-info e) params))) |
| 173 | (`src-block | 173 | ('src-block |
| 174 | (throw :found | 174 | (throw :found |
| 175 | (org-babel-execute-src-block | 175 | (org-babel-execute-src-block |
| 176 | nil nil | 176 | nil nil |
diff --git a/lisp/org/ob-ruby.el b/lisp/org/ob-ruby.el index 7686ac4e807..bb06b008a69 100644 --- a/lisp/org/ob-ruby.el +++ b/lisp/org/ob-ruby.el | |||
| @@ -200,8 +200,8 @@ return the value of the last statement in BODY, as elisp." | |||
| 200 | (if (not buffer) | 200 | (if (not buffer) |
| 201 | ;; external process evaluation | 201 | ;; external process evaluation |
| 202 | (pcase result-type | 202 | (pcase result-type |
| 203 | (`output (org-babel-eval org-babel-ruby-command body)) | 203 | ('output (org-babel-eval org-babel-ruby-command body)) |
| 204 | (`value (let ((tmp-file (org-babel-temp-file "ruby-"))) | 204 | ('value (let ((tmp-file (org-babel-temp-file "ruby-"))) |
| 205 | (org-babel-eval | 205 | (org-babel-eval |
| 206 | org-babel-ruby-command | 206 | org-babel-ruby-command |
| 207 | (format (if (member "pp" result-params) | 207 | (format (if (member "pp" result-params) |
| @@ -211,7 +211,7 @@ return the value of the last statement in BODY, as elisp." | |||
| 211 | (org-babel-eval-read-file tmp-file)))) | 211 | (org-babel-eval-read-file tmp-file)))) |
| 212 | ;; comint session evaluation | 212 | ;; comint session evaluation |
| 213 | (pcase result-type | 213 | (pcase result-type |
| 214 | (`output | 214 | ('output |
| 215 | (let ((eoe-string (format "puts \"%s\"" org-babel-ruby-eoe-indicator))) | 215 | (let ((eoe-string (format "puts \"%s\"" org-babel-ruby-eoe-indicator))) |
| 216 | ;; Force the session to be ready before the actual session | 216 | ;; Force the session to be ready before the actual session |
| 217 | ;; code is run. There is some problem in comint that will | 217 | ;; code is run. There is some problem in comint that will |
| @@ -238,7 +238,7 @@ return the value of the last statement in BODY, as elisp." | |||
| 238 | "conf.prompt_mode=_org_prompt_mode;conf.echo=true" | 238 | "conf.prompt_mode=_org_prompt_mode;conf.echo=true" |
| 239 | eoe-string))) | 239 | eoe-string))) |
| 240 | "\n") "[\r\n]") 4) "\n"))) | 240 | "\n") "[\r\n]") 4) "\n"))) |
| 241 | (`value | 241 | ('value |
| 242 | (let* ((tmp-file (org-babel-temp-file "ruby-")) | 242 | (let* ((tmp-file (org-babel-temp-file "ruby-")) |
| 243 | (ppp (or (member "code" result-params) | 243 | (ppp (or (member "code" result-params) |
| 244 | (member "pp" result-params)))) | 244 | (member "pp" result-params)))) |
diff --git a/lisp/org/ob-sql.el b/lisp/org/ob-sql.el index 959ede3decc..cdedf7edfb8 100644 --- a/lisp/org/ob-sql.el +++ b/lisp/org/ob-sql.el | |||
| @@ -175,16 +175,16 @@ This function is called by `org-babel-execute-src-block'." | |||
| 175 | (org-babel-temp-file "sql-out-"))) | 175 | (org-babel-temp-file "sql-out-"))) |
| 176 | (header-delim "") | 176 | (header-delim "") |
| 177 | (command (pcase (intern engine) | 177 | (command (pcase (intern engine) |
| 178 | (`dbi (format "dbish --batch %s < %s | sed '%s' > %s" | 178 | ('dbi (format "dbish --batch %s < %s | sed '%s' > %s" |
| 179 | (or cmdline "") | 179 | (or cmdline "") |
| 180 | (org-babel-process-file-name in-file) | 180 | (org-babel-process-file-name in-file) |
| 181 | "/^+/d;s/^|//;s/(NULL)/ /g;$d" | 181 | "/^+/d;s/^|//;s/(NULL)/ /g;$d" |
| 182 | (org-babel-process-file-name out-file))) | 182 | (org-babel-process-file-name out-file))) |
| 183 | (`monetdb (format "mclient -f tab %s < %s > %s" | 183 | ('monetdb (format "mclient -f tab %s < %s > %s" |
| 184 | (or cmdline "") | 184 | (or cmdline "") |
| 185 | (org-babel-process-file-name in-file) | 185 | (org-babel-process-file-name in-file) |
| 186 | (org-babel-process-file-name out-file))) | 186 | (org-babel-process-file-name out-file))) |
| 187 | (`mssql (format "sqlcmd %s -s \"\t\" %s -i %s -o %s" | 187 | ('mssql (format "sqlcmd %s -s \"\t\" %s -i %s -o %s" |
| 188 | (or cmdline "") | 188 | (or cmdline "") |
| 189 | (org-babel-sql-dbstring-mssql | 189 | (org-babel-sql-dbstring-mssql |
| 190 | dbhost dbuser dbpassword database) | 190 | dbhost dbuser dbpassword database) |
| @@ -192,14 +192,14 @@ This function is called by `org-babel-execute-src-block'." | |||
| 192 | (org-babel-process-file-name in-file)) | 192 | (org-babel-process-file-name in-file)) |
| 193 | (org-babel-sql-convert-standard-filename | 193 | (org-babel-sql-convert-standard-filename |
| 194 | (org-babel-process-file-name out-file)))) | 194 | (org-babel-process-file-name out-file)))) |
| 195 | (`mysql (format "mysql %s %s %s < %s > %s" | 195 | ('mysql (format "mysql %s %s %s < %s > %s" |
| 196 | (org-babel-sql-dbstring-mysql | 196 | (org-babel-sql-dbstring-mysql |
| 197 | dbhost dbport dbuser dbpassword database) | 197 | dbhost dbport dbuser dbpassword database) |
| 198 | (if colnames-p "" "-N") | 198 | (if colnames-p "" "-N") |
| 199 | (or cmdline "") | 199 | (or cmdline "") |
| 200 | (org-babel-process-file-name in-file) | 200 | (org-babel-process-file-name in-file) |
| 201 | (org-babel-process-file-name out-file))) | 201 | (org-babel-process-file-name out-file))) |
| 202 | (`postgresql (format | 202 | ('postgresql (format |
| 203 | "%spsql --set=\"ON_ERROR_STOP=1\" %s -A -P \ | 203 | "%spsql --set=\"ON_ERROR_STOP=1\" %s -A -P \ |
| 204 | footer=off -F \"\t\" %s -f %s -o %s %s" | 204 | footer=off -F \"\t\" %s -f %s -o %s %s" |
| 205 | (if dbpassword | 205 | (if dbpassword |
| @@ -211,7 +211,7 @@ footer=off -F \"\t\" %s -f %s -o %s %s" | |||
| 211 | (org-babel-process-file-name in-file) | 211 | (org-babel-process-file-name in-file) |
| 212 | (org-babel-process-file-name out-file) | 212 | (org-babel-process-file-name out-file) |
| 213 | (or cmdline ""))) | 213 | (or cmdline ""))) |
| 214 | (`sqsh (format "sqsh %s %s -i %s -o %s -m csv" | 214 | ('sqsh (format "sqsh %s %s -i %s -o %s -m csv" |
| 215 | (or cmdline "") | 215 | (or cmdline "") |
| 216 | (org-babel-sql-dbstring-sqsh | 216 | (org-babel-sql-dbstring-sqsh |
| 217 | dbhost dbuser dbpassword database) | 217 | dbhost dbuser dbpassword database) |
| @@ -219,13 +219,13 @@ footer=off -F \"\t\" %s -f %s -o %s %s" | |||
| 219 | (org-babel-process-file-name in-file)) | 219 | (org-babel-process-file-name in-file)) |
| 220 | (org-babel-sql-convert-standard-filename | 220 | (org-babel-sql-convert-standard-filename |
| 221 | (org-babel-process-file-name out-file)))) | 221 | (org-babel-process-file-name out-file)))) |
| 222 | (`vertica (format "vsql %s -f %s -o %s %s" | 222 | ('vertica (format "vsql %s -f %s -o %s %s" |
| 223 | (org-babel-sql-dbstring-vertica | 223 | (org-babel-sql-dbstring-vertica |
| 224 | dbhost dbport dbuser dbpassword database) | 224 | dbhost dbport dbuser dbpassword database) |
| 225 | (org-babel-process-file-name in-file) | 225 | (org-babel-process-file-name in-file) |
| 226 | (org-babel-process-file-name out-file) | 226 | (org-babel-process-file-name out-file) |
| 227 | (or cmdline ""))) | 227 | (or cmdline ""))) |
| 228 | (`oracle (format | 228 | ('oracle (format |
| 229 | "sqlplus -s %s < %s > %s" | 229 | "sqlplus -s %s < %s > %s" |
| 230 | (org-babel-sql-dbstring-oracle | 230 | (org-babel-sql-dbstring-oracle |
| 231 | dbhost dbport dbuser dbpassword database) | 231 | dbhost dbport dbuser dbpassword database) |
| @@ -235,8 +235,8 @@ footer=off -F \"\t\" %s -f %s -o %s %s" | |||
| 235 | (with-temp-file in-file | 235 | (with-temp-file in-file |
| 236 | (insert | 236 | (insert |
| 237 | (pcase (intern engine) | 237 | (pcase (intern engine) |
| 238 | (`dbi "/format partbox\n") | 238 | ('dbi "/format partbox\n") |
| 239 | (`oracle "SET PAGESIZE 50000 | 239 | ('oracle "SET PAGESIZE 50000 |
| 240 | SET NEWPAGE 0 | 240 | SET NEWPAGE 0 |
| 241 | SET TAB OFF | 241 | SET TAB OFF |
| 242 | SET SPACE 0 | 242 | SET SPACE 0 |
| @@ -249,10 +249,10 @@ SET MARKUP HTML OFF SPOOL OFF | |||
| 249 | SET COLSEP '|' | 249 | SET COLSEP '|' |
| 250 | 250 | ||
| 251 | ") | 251 | ") |
| 252 | ((or `mssql `sqsh) "SET NOCOUNT ON | 252 | ((or 'mssql 'sqsh) "SET NOCOUNT ON |
| 253 | 253 | ||
| 254 | ") | 254 | ") |
| 255 | (`vertica "\\a\n") | 255 | ('vertica "\\a\n") |
| 256 | (_ "")) | 256 | (_ "")) |
| 257 | (org-babel-expand-body:sql body params) | 257 | (org-babel-expand-body:sql body params) |
| 258 | ;; "sqsh" requires "go" inserted at EOF. | 258 | ;; "sqsh" requires "go" inserted at EOF. |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 98e89eb1c4e..d92fbaf8977 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -6213,12 +6213,12 @@ scheduled items with an hour specification like [h]h:mm." | |||
| 6213 | (or (not (memq (line-beginning-position 0) deadline-pos)) | 6213 | (or (not (memq (line-beginning-position 0) deadline-pos)) |
| 6214 | habitp)) | 6214 | habitp)) |
| 6215 | nil) | 6215 | nil) |
| 6216 | (`repeated-after-deadline | 6216 | ('repeated-after-deadline |
| 6217 | (let ((deadline (time-to-days | 6217 | (let ((deadline (time-to-days |
| 6218 | (org-get-deadline-time (point))))) | 6218 | (org-get-deadline-time (point))))) |
| 6219 | (and (<= schedule deadline) (> current deadline)))) | 6219 | (and (<= schedule deadline) (> current deadline)))) |
| 6220 | (`not-today pastschedp) | 6220 | ('not-today pastschedp) |
| 6221 | (`t t) | 6221 | ('t t) |
| 6222 | (_ nil)) | 6222 | (_ nil)) |
| 6223 | (throw :skip nil)) | 6223 | (throw :skip nil)) |
| 6224 | ;; Skip habits if `org-habit-show-habits' is nil, or if we | 6224 | ;; Skip habits if `org-habit-show-habits' is nil, or if we |
diff --git a/lisp/org/org-capture.el b/lisp/org/org-capture.el index 3de386c69d6..f51eee56b7d 100644 --- a/lisp/org/org-capture.el +++ b/lisp/org/org-capture.el | |||
| @@ -1042,7 +1042,7 @@ Store them in the capture property list." | |||
| 1042 | (org-capture-put :exact-position (point)) | 1042 | (org-capture-put :exact-position (point)) |
| 1043 | (setq target-entry-p | 1043 | (setq target-entry-p |
| 1044 | (and (derived-mode-p 'org-mode) (org-at-heading-p)))) | 1044 | (and (derived-mode-p 'org-mode) (org-at-heading-p)))) |
| 1045 | (`(clock) | 1045 | ('(clock) |
| 1046 | (if (and (markerp org-clock-hd-marker) | 1046 | (if (and (markerp org-clock-hd-marker) |
| 1047 | (marker-buffer org-clock-hd-marker)) | 1047 | (marker-buffer org-clock-hd-marker)) |
| 1048 | (progn (set-buffer (marker-buffer org-clock-hd-marker)) | 1048 | (progn (set-buffer (marker-buffer org-clock-hd-marker)) |
| @@ -1101,11 +1101,11 @@ may have been stored before." | |||
| 1101 | (goto-char (org-capture-get :pos)) | 1101 | (goto-char (org-capture-get :pos)) |
| 1102 | (setq-local outline-level 'org-outline-level) | 1102 | (setq-local outline-level 'org-outline-level) |
| 1103 | (pcase (org-capture-get :type) | 1103 | (pcase (org-capture-get :type) |
| 1104 | ((or `nil `entry) (org-capture-place-entry)) | 1104 | ((or 'nil 'entry) (org-capture-place-entry)) |
| 1105 | (`table-line (org-capture-place-table-line)) | 1105 | ('table-line (org-capture-place-table-line)) |
| 1106 | (`plain (org-capture-place-plain-text)) | 1106 | ('plain (org-capture-place-plain-text)) |
| 1107 | (`item (org-capture-place-item)) | 1107 | ('item (org-capture-place-item)) |
| 1108 | (`checkitem (org-capture-place-item))) | 1108 | ('checkitem (org-capture-place-item))) |
| 1109 | (org-capture-mode 1) | 1109 | (org-capture-mode 1) |
| 1110 | (setq-local org-capture-current-plist org-capture-plist)) | 1110 | (setq-local org-capture-current-plist org-capture-plist)) |
| 1111 | 1111 | ||
| @@ -1791,7 +1791,7 @@ The template may still contain \"%?\" for cursor positioning." | |||
| 1791 | (let ((insert-fun (if (equal key "C") #'insert | 1791 | (let ((insert-fun (if (equal key "C") #'insert |
| 1792 | (lambda (s) (org-insert-link 0 s))))) | 1792 | (lambda (s) (org-insert-link 0 s))))) |
| 1793 | (pcase org-capture--clipboards | 1793 | (pcase org-capture--clipboards |
| 1794 | (`nil nil) | 1794 | ('nil nil) |
| 1795 | (`(,value) (funcall insert-fun value)) | 1795 | (`(,value) (funcall insert-fun value)) |
| 1796 | (`(,first-value . ,_) | 1796 | (`(,first-value . ,_) |
| 1797 | (funcall insert-fun | 1797 | (funcall insert-fun |
| @@ -1811,7 +1811,7 @@ The template may still contain \"%?\" for cursor positioning." | |||
| 1811 | time (or org-time-was-given upcase?) | 1811 | time (or org-time-was-given upcase?) |
| 1812 | (member key '("u" "U")) | 1812 | (member key '("u" "U")) |
| 1813 | nil nil (list org-end-time-was-given)))) | 1813 | nil nil (list org-end-time-was-given)))) |
| 1814 | (`nil | 1814 | ('nil |
| 1815 | ;; Load history list for current prompt. | 1815 | ;; Load history list for current prompt. |
| 1816 | (setq org-capture--prompt-history | 1816 | (setq org-capture--prompt-history |
| 1817 | (gethash prompt org-capture--prompt-history-table)) | 1817 | (gethash prompt org-capture--prompt-history-table)) |
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 9be0d5bc1ff..0940c121473 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el | |||
| @@ -1692,11 +1692,11 @@ Optional argument N tells to change by that many units." | |||
| 1692 | (org-timestamp-change | 1692 | (org-timestamp-change |
| 1693 | (round (/ (float-time tdiff) | 1693 | (round (/ (float-time tdiff) |
| 1694 | (pcase timestamp? | 1694 | (pcase timestamp? |
| 1695 | (`minute 60) | 1695 | ('minute 60) |
| 1696 | (`hour 3600) | 1696 | ('hour 3600) |
| 1697 | (`day (* 24 3600)) | 1697 | ('day (* 24 3600)) |
| 1698 | (`month (* 24 3600 31)) | 1698 | ('month (* 24 3600 31)) |
| 1699 | (`year (* 24 3600 365.2))))) | 1699 | ('year (* 24 3600 365.2))))) |
| 1700 | timestamp? 'updown))))))) | 1700 | timestamp? 'updown))))))) |
| 1701 | 1701 | ||
| 1702 | ;;;###autoload | 1702 | ;;;###autoload |
| @@ -2045,7 +2045,7 @@ in the buffer and update it." | |||
| 2045 | (org-find-dblock "clocktable") | 2045 | (org-find-dblock "clocktable") |
| 2046 | (org-show-entry)) | 2046 | (org-show-entry)) |
| 2047 | (pcase (org-in-clocktable-p) | 2047 | (pcase (org-in-clocktable-p) |
| 2048 | (`nil | 2048 | ('nil |
| 2049 | (org-create-dblock | 2049 | (org-create-dblock |
| 2050 | (org-combine-plists | 2050 | (org-combine-plists |
| 2051 | (list :scope (if (org-before-first-heading-p) 'file 'subtree)) | 2051 | (list :scope (if (org-before-first-heading-p) 'file 'subtree)) |
| @@ -2194,21 +2194,21 @@ have priority." | |||
| 2194 | (error "Looking forward with quarters isn't implemented")))) | 2194 | (error "Looking forward with quarters isn't implemented")))) |
| 2195 | (when (= shift 0) | 2195 | (when (= shift 0) |
| 2196 | (pcase key | 2196 | (pcase key |
| 2197 | (`yesterday (setq key 'today shift -1)) | 2197 | ('yesterday (setq key 'today shift -1)) |
| 2198 | (`lastweek (setq key 'week shift -1)) | 2198 | ('lastweek (setq key 'week shift -1)) |
| 2199 | (`lastmonth (setq key 'month shift -1)) | 2199 | ('lastmonth (setq key 'month shift -1)) |
| 2200 | (`lastyear (setq key 'year shift -1)) | 2200 | ('lastyear (setq key 'year shift -1)) |
| 2201 | (`lastq (setq key 'quarter shift -1)))) | 2201 | ('lastq (setq key 'quarter shift -1)))) |
| 2202 | ;; Prepare start and end times depending on KEY's type. | 2202 | ;; Prepare start and end times depending on KEY's type. |
| 2203 | (pcase key | 2203 | (pcase key |
| 2204 | ((or `day `today) (setq m 0 h 0 h1 24 d (+ d shift))) | 2204 | ((or 'day 'today) (setq m 0 h 0 h1 24 d (+ d shift))) |
| 2205 | ((or `week `thisweek) | 2205 | ((or 'week 'thisweek) |
| 2206 | (let* ((ws (or wstart 1)) | 2206 | (let* ((ws (or wstart 1)) |
| 2207 | (diff (+ (* -7 shift) (if (= dow 0) (- 7 ws) (- dow ws))))) | 2207 | (diff (+ (* -7 shift) (if (= dow 0) (- 7 ws) (- dow ws))))) |
| 2208 | (setq m 0 h 0 d (- d diff) d1 (+ 7 d)))) | 2208 | (setq m 0 h 0 d (- d diff) d1 (+ 7 d)))) |
| 2209 | ((or `month `thismonth) | 2209 | ((or 'month 'thismonth) |
| 2210 | (setq h 0 m 0 d (or mstart 1) month (+ month shift) month1 (1+ month))) | 2210 | (setq h 0 m 0 d (or mstart 1) month (+ month shift) month1 (1+ month))) |
| 2211 | ((or `quarter `thisq) | 2211 | ((or 'quarter 'thisq) |
| 2212 | ;; Compute if this shift remains in this year. If not, compute | 2212 | ;; Compute if this shift remains in this year. If not, compute |
| 2213 | ;; how many years and quarters we have to shift (via floor*) and | 2213 | ;; how many years and quarters we have to shift (via floor*) and |
| 2214 | ;; compute the shifted years, months and quarters. | 2214 | ;; compute the shifted years, months and quarters. |
| @@ -2231,13 +2231,13 @@ have priority." | |||
| 2231 | (setq shiftedy y) | 2231 | (setq shiftedy y) |
| 2232 | (let ((qshift (* 3 (1- (+ q shift))))) | 2232 | (let ((qshift (* 3 (1- (+ q shift))))) |
| 2233 | (setq m 0 h 0 d 1 month (+ 1 qshift) month1 (+ 4 qshift)))))) | 2233 | (setq m 0 h 0 d 1 month (+ 1 qshift) month1 (+ 4 qshift)))))) |
| 2234 | ((or `year `thisyear) | 2234 | ((or 'year 'thisyear) |
| 2235 | (setq m 0 h 0 d 1 month 1 y (+ y shift) y1 (1+ y))) | 2235 | (setq m 0 h 0 d 1 month 1 y (+ y shift) y1 (1+ y))) |
| 2236 | ((or `interactive `untilnow)) ; Special cases, ignore them. | 2236 | ((or 'interactive 'untilnow)) ; Special cases, ignore them. |
| 2237 | (_ (user-error "No such time block %s" key))) | 2237 | (_ (user-error "No such time block %s" key))) |
| 2238 | ;; Format start and end times according to AS-STRINGS. | 2238 | ;; Format start and end times according to AS-STRINGS. |
| 2239 | (let* ((start (pcase key | 2239 | (let* ((start (pcase key |
| 2240 | (`interactive (org-read-date nil t nil "Range start? ")) | 2240 | ('interactive (org-read-date nil t nil "Range start? ")) |
| 2241 | ;; In theory, all clocks started after the dawn of | 2241 | ;; In theory, all clocks started after the dawn of |
| 2242 | ;; humanity. However, the platform's clock | 2242 | ;; humanity. However, the platform's clock |
| 2243 | ;; support might not go back that far. Choose the | 2243 | ;; support might not go back that far. Choose the |
| @@ -2246,15 +2246,15 @@ have priority." | |||
| 2246 | ;; that works, otherwise 0 (1970). Going back | 2246 | ;; that works, otherwise 0 (1970). Going back |
| 2247 | ;; billions of years would loop forever on Mac OS | 2247 | ;; billions of years would loop forever on Mac OS |
| 2248 | ;; X 10.6 with Emacs 26 and earlier (Bug#27736). | 2248 | ;; X 10.6 with Emacs 26 and earlier (Bug#27736). |
| 2249 | (`untilnow | 2249 | ('untilnow |
| 2250 | (let ((old 0)) | 2250 | (let ((old 0)) |
| 2251 | (dolist (older '((-32768 0) (-33554432 0)) old) | 2251 | (dolist (older '((-32768 0) (-33554432 0)) old) |
| 2252 | (when (ignore-errors (decode-time older)) | 2252 | (when (ignore-errors (decode-time older)) |
| 2253 | (setq old older))))) | 2253 | (setq old older))))) |
| 2254 | (_ (encode-time 0 m h d month y)))) | 2254 | (_ (encode-time 0 m h d month y)))) |
| 2255 | (end (pcase key | 2255 | (end (pcase key |
| 2256 | (`interactive (org-read-date nil t nil "Range end? ")) | 2256 | ('interactive (org-read-date nil t nil "Range end? ")) |
| 2257 | (`untilnow (current-time)) | 2257 | ('untilnow (current-time)) |
| 2258 | (_ (encode-time 0 | 2258 | (_ (encode-time 0 |
| 2259 | (or m1 m) | 2259 | (or m1 m) |
| 2260 | (or h1 h) | 2260 | (or h1 h) |
| @@ -2263,15 +2263,15 @@ have priority." | |||
| 2263 | (or y1 y))))) | 2263 | (or y1 y))))) |
| 2264 | (text | 2264 | (text |
| 2265 | (pcase key | 2265 | (pcase key |
| 2266 | ((or `day `today) (format-time-string "%A, %B %d, %Y" start)) | 2266 | ((or 'day 'today) (format-time-string "%A, %B %d, %Y" start)) |
| 2267 | ((or `week `thisweek) (format-time-string "week %G-W%V" start)) | 2267 | ((or 'week 'thisweek) (format-time-string "week %G-W%V" start)) |
| 2268 | ((or `month `thismonth) (format-time-string "%B %Y" start)) | 2268 | ((or 'month 'thismonth) (format-time-string "%B %Y" start)) |
| 2269 | ((or `year `thisyear) (format-time-string "the year %Y" start)) | 2269 | ((or 'year 'thisyear) (format-time-string "the year %Y" start)) |
| 2270 | ((or `quarter `thisq) | 2270 | ((or 'quarter 'thisq) |
| 2271 | (concat (org-count-quarter shiftedq) | 2271 | (concat (org-count-quarter shiftedq) |
| 2272 | " quarter of " (number-to-string shiftedy))) | 2272 | " quarter of " (number-to-string shiftedy))) |
| 2273 | (`interactive "(Range interactively set)") | 2273 | ('interactive "(Range interactively set)") |
| 2274 | (`untilnow "now")))) | 2274 | ('untilnow "now")))) |
| 2275 | (if (not as-strings) (list start end text) | 2275 | (if (not as-strings) (list start end text) |
| 2276 | (let ((f (cdr org-time-stamp-formats))) | 2276 | (let ((f (cdr org-time-stamp-formats))) |
| 2277 | (list (format-time-string f start) | 2277 | (list (format-time-string f start) |
| @@ -2375,11 +2375,11 @@ the currently selected interval size." | |||
| 2375 | (catch 'exit | 2375 | (catch 'exit |
| 2376 | (let* ((scope (plist-get params :scope)) | 2376 | (let* ((scope (plist-get params :scope)) |
| 2377 | (files (pcase scope | 2377 | (files (pcase scope |
| 2378 | (`agenda | 2378 | ('agenda |
| 2379 | (org-agenda-files t)) | 2379 | (org-agenda-files t)) |
| 2380 | (`agenda-with-archives | 2380 | ('agenda-with-archives |
| 2381 | (org-add-archive-files (org-agenda-files t))) | 2381 | (org-add-archive-files (org-agenda-files t))) |
| 2382 | (`file-with-archives | 2382 | ('file-with-archives |
| 2383 | (and buffer-file-name | 2383 | (and buffer-file-name |
| 2384 | (org-add-archive-files (list buffer-file-name)))) | 2384 | (org-add-archive-files (list buffer-file-name)))) |
| 2385 | ((pred functionp) (funcall scope)) | 2385 | ((pred functionp) (funcall scope)) |
| @@ -2502,7 +2502,7 @@ from the dynamic block definition." | |||
| 2502 | (setq narrow (intern (format "%d!" narrow)))) | 2502 | (setq narrow (intern (format "%d!" narrow)))) |
| 2503 | 2503 | ||
| 2504 | (pcase narrow | 2504 | (pcase narrow |
| 2505 | ((or `nil (pred integerp)) nil) ;nothing to do | 2505 | ((or 'nil (pred integerp)) nil) ;nothing to do |
| 2506 | ((and (pred symbolp) | 2506 | ((and (pred symbolp) |
| 2507 | (guard (string-match-p "\\`[0-9]+!\\'" (symbol-name narrow)))) | 2507 | (guard (string-match-p "\\`[0-9]+!\\'" (symbol-name narrow)))) |
| 2508 | (setq narrow-cut-p t) | 2508 | (setq narrow-cut-p t) |
diff --git a/lisp/org/org-colview.el b/lisp/org/org-colview.el index cb5c091d0a3..e6464ab8a14 100644 --- a/lisp/org/org-colview.el +++ b/lisp/org/org-colview.el | |||
| @@ -1379,8 +1379,8 @@ PARAMS is a property list of parameters: | |||
| 1379 | (let ((id (plist-get params :id)) | 1379 | (let ((id (plist-get params :id)) |
| 1380 | view-file view-pos) | 1380 | view-file view-pos) |
| 1381 | (pcase id | 1381 | (pcase id |
| 1382 | (`global nil) | 1382 | ('global nil) |
| 1383 | ((or `local `nil) (setq view-pos (point))) | 1383 | ((or 'local 'nil) (setq view-pos (point))) |
| 1384 | ((and (let id-string (format "%s" id)) | 1384 | ((and (let id-string (format "%s" id)) |
| 1385 | (guard (string-match "^file:\\(.*\\)" id-string))) | 1385 | (guard (string-match "^file:\\(.*\\)" id-string))) |
| 1386 | (setq view-file (match-string-no-properties 1 id-string)) | 1386 | (setq view-file (match-string-no-properties 1 id-string)) |
diff --git a/lisp/org/org-duration.el b/lisp/org/org-duration.el index 1c962ba94e0..fed864a5454 100644 --- a/lisp/org/org-duration.el +++ b/lisp/org/org-duration.el | |||
| @@ -316,10 +316,10 @@ When optional argument CANONICAL is non-nil, ignore | |||
| 316 | 316 | ||
| 317 | Raise an error if expected format is unknown." | 317 | Raise an error if expected format is unknown." |
| 318 | (pcase (or fmt org-duration-format) | 318 | (pcase (or fmt org-duration-format) |
| 319 | (`h:mm | 319 | ('h:mm |
| 320 | (let ((minutes (floor minutes))) | 320 | (let ((minutes (floor minutes))) |
| 321 | (format "%d:%02d" (/ minutes 60) (mod minutes 60)))) | 321 | (format "%d:%02d" (/ minutes 60) (mod minutes 60)))) |
| 322 | (`h:mm:ss | 322 | ('h:mm:ss |
| 323 | (let* ((whole-minutes (floor minutes)) | 323 | (let* ((whole-minutes (floor minutes)) |
| 324 | (seconds (floor (* 60 (- minutes whole-minutes))))) | 324 | (seconds (floor (* 60 (- minutes whole-minutes))))) |
| 325 | (format "%s:%02d" | 325 | (format "%s:%02d" |
| @@ -328,7 +328,7 @@ Raise an error if expected format is unknown." | |||
| 328 | ((pred atom) (error "Invalid duration format specification: %S" fmt)) | 328 | ((pred atom) (error "Invalid duration format specification: %S" fmt)) |
| 329 | ;; Mixed format. Call recursively the function on both parts. | 329 | ;; Mixed format. Call recursively the function on both parts. |
| 330 | ((and duration-format | 330 | ((and duration-format |
| 331 | (let `(special . ,(and mode (or `h:mm:ss `h:mm))) | 331 | (let `(special . ,(and mode (or 'h:mm:ss 'h:mm))) |
| 332 | (assq 'special duration-format))) | 332 | (assq 'special duration-format))) |
| 333 | (let* ((truncated-format | 333 | (let* ((truncated-format |
| 334 | ;; Remove "special" mode from duration format in order to | 334 | ;; Remove "special" mode from duration format in order to |
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el index b8f14670226..09840cc44f2 100644 --- a/lisp/org/org-element.el +++ b/lisp/org/org-element.el | |||
| @@ -588,9 +588,9 @@ is cleared and contents are removed in the process." | |||
| 588 | (when datum | 588 | (when datum |
| 589 | (let ((type (org-element-type datum))) | 589 | (let ((type (org-element-type datum))) |
| 590 | (pcase type | 590 | (pcase type |
| 591 | (`org-data (list 'org-data nil)) | 591 | ('org-data (list 'org-data nil)) |
| 592 | (`plain-text (substring-no-properties datum)) | 592 | ('plain-text (substring-no-properties datum)) |
| 593 | (`nil (copy-sequence datum)) | 593 | ('nil (copy-sequence datum)) |
| 594 | (_ | 594 | (_ |
| 595 | (list type (plist-put (copy-sequence (nth 1 datum)) :parent nil))))))) | 595 | (list type (plist-put (copy-sequence (nth 1 datum)) :parent nil))))))) |
| 596 | 596 | ||
| @@ -1285,9 +1285,9 @@ CONTENTS is the contents of the element." | |||
| 1285 | bullet | 1285 | bullet |
| 1286 | (and counter (format "[@%d] " counter)) | 1286 | (and counter (format "[@%d] " counter)) |
| 1287 | (pcase checkbox | 1287 | (pcase checkbox |
| 1288 | (`on "[X] ") | 1288 | ('on "[X] ") |
| 1289 | (`off "[ ] ") | 1289 | ('off "[ ] ") |
| 1290 | (`trans "[-] ") | 1290 | ('trans "[-] ") |
| 1291 | (_ nil)) | 1291 | (_ nil)) |
| 1292 | (and tag (format "%s :: " tag)) | 1292 | (and tag (format "%s :: " tag)) |
| 1293 | (when contents | 1293 | (when contents |
| @@ -3185,13 +3185,13 @@ CONTENTS is the contents of the object, or nil." | |||
| 3185 | ;; a format string, escape percent signs | 3185 | ;; a format string, escape percent signs |
| 3186 | ;; in description. | 3186 | ;; in description. |
| 3187 | (replace-regexp-in-string "%" "%%" contents))) | 3187 | (replace-regexp-in-string "%" "%%" contents))) |
| 3188 | ((or `bracket | 3188 | ((or 'bracket |
| 3189 | `nil | 3189 | 'nil |
| 3190 | (guard (member type '("coderef" "custom-id" "fuzzy")))) | 3190 | (guard (member type '("coderef" "custom-id" "fuzzy")))) |
| 3191 | "[[%s]]") | 3191 | "[[%s]]") |
| 3192 | ;; Otherwise, just obey to `:format'. | 3192 | ;; Otherwise, just obey to `:format'. |
| 3193 | (`angle "<%s>") | 3193 | ('angle "<%s>") |
| 3194 | (`plain "%s") | 3194 | ('plain "%s") |
| 3195 | (f (error "Wrong `:format' value: %s" f))))) | 3195 | (f (error "Wrong `:format' value: %s" f))))) |
| 3196 | (format fmt | 3196 | (format fmt |
| 3197 | (pcase type | 3197 | (pcase type |
| @@ -3581,19 +3581,19 @@ Assume point is at the beginning of the timestamp." | |||
| 3581 | (let* ((repeat-string | 3581 | (let* ((repeat-string |
| 3582 | (concat | 3582 | (concat |
| 3583 | (pcase (org-element-property :repeater-type timestamp) | 3583 | (pcase (org-element-property :repeater-type timestamp) |
| 3584 | (`cumulate "+") (`catch-up "++") (`restart ".+")) | 3584 | ('cumulate "+") ('catch-up "++") ('restart ".+")) |
| 3585 | (let ((val (org-element-property :repeater-value timestamp))) | 3585 | (let ((val (org-element-property :repeater-value timestamp))) |
| 3586 | (and val (number-to-string val))) | 3586 | (and val (number-to-string val))) |
| 3587 | (pcase (org-element-property :repeater-unit timestamp) | 3587 | (pcase (org-element-property :repeater-unit timestamp) |
| 3588 | (`hour "h") (`day "d") (`week "w") (`month "m") (`year "y")))) | 3588 | ('hour "h") ('day "d") ('week "w") ('month "m") ('year "y")))) |
| 3589 | (warning-string | 3589 | (warning-string |
| 3590 | (concat | 3590 | (concat |
| 3591 | (pcase (org-element-property :warning-type timestamp) | 3591 | (pcase (org-element-property :warning-type timestamp) |
| 3592 | (`first "--") (`all "-")) | 3592 | ('first "--") ('all "-")) |
| 3593 | (let ((val (org-element-property :warning-value timestamp))) | 3593 | (let ((val (org-element-property :warning-value timestamp))) |
| 3594 | (and val (number-to-string val))) | 3594 | (and val (number-to-string val))) |
| 3595 | (pcase (org-element-property :warning-unit timestamp) | 3595 | (pcase (org-element-property :warning-unit timestamp) |
| 3596 | (`hour "h") (`day "d") (`week "w") (`month "m") (`year "y")))) | 3596 | ('hour "h") ('day "d") ('week "w") ('month "m") ('year "y")))) |
| 3597 | (build-ts-string | 3597 | (build-ts-string |
| 3598 | ;; Build an Org timestamp string from TIME. ACTIVEP is | 3598 | ;; Build an Org timestamp string from TIME. ACTIVEP is |
| 3599 | ;; non-nil when time stamp is active. If WITH-TIME-P is | 3599 | ;; non-nil when time stamp is active. If WITH-TIME-P is |
| @@ -3622,7 +3622,7 @@ Assume point is at the beginning of the timestamp." | |||
| 3622 | ts))) | 3622 | ts))) |
| 3623 | (type (org-element-property :type timestamp))) | 3623 | (type (org-element-property :type timestamp))) |
| 3624 | (pcase type | 3624 | (pcase type |
| 3625 | ((or `active `inactive) | 3625 | ((or 'active 'inactive) |
| 3626 | (let* ((minute-start (org-element-property :minute-start timestamp)) | 3626 | (let* ((minute-start (org-element-property :minute-start timestamp)) |
| 3627 | (minute-end (org-element-property :minute-end timestamp)) | 3627 | (minute-end (org-element-property :minute-end timestamp)) |
| 3628 | (hour-start (org-element-property :hour-start timestamp)) | 3628 | (hour-start (org-element-property :hour-start timestamp)) |
| @@ -3642,7 +3642,7 @@ Assume point is at the beginning of the timestamp." | |||
| 3642 | (and hour-start minute-start) | 3642 | (and hour-start minute-start) |
| 3643 | (and time-range-p hour-end) | 3643 | (and time-range-p hour-end) |
| 3644 | (and time-range-p minute-end)))) | 3644 | (and time-range-p minute-end)))) |
| 3645 | ((or `active-range `inactive-range) | 3645 | ((or 'active-range 'inactive-range) |
| 3646 | (let ((minute-start (org-element-property :minute-start timestamp)) | 3646 | (let ((minute-start (org-element-property :minute-start timestamp)) |
| 3647 | (minute-end (org-element-property :minute-end timestamp)) | 3647 | (minute-end (org-element-property :minute-end timestamp)) |
| 3648 | (hour-start (org-element-property :hour-start timestamp)) | 3648 | (hour-start (org-element-property :hour-start timestamp)) |
| @@ -4227,17 +4227,17 @@ otherwise. Modes can be either `first-section', `item', | |||
| 4227 | `table-row' or nil." | 4227 | `table-row' or nil." |
| 4228 | (if parentp | 4228 | (if parentp |
| 4229 | (pcase type | 4229 | (pcase type |
| 4230 | (`headline 'section) | 4230 | ('headline 'section) |
| 4231 | (`inlinetask 'planning) | 4231 | ('inlinetask 'planning) |
| 4232 | (`plain-list 'item) | 4232 | ('plain-list 'item) |
| 4233 | (`property-drawer 'node-property) | 4233 | ('property-drawer 'node-property) |
| 4234 | (`section 'planning) | 4234 | ('section 'planning) |
| 4235 | (`table 'table-row)) | 4235 | ('table 'table-row)) |
| 4236 | (pcase type | 4236 | (pcase type |
| 4237 | (`item 'item) | 4237 | ('item 'item) |
| 4238 | (`node-property 'node-property) | 4238 | ('node-property 'node-property) |
| 4239 | (`planning 'property-drawer) | 4239 | ('planning 'property-drawer) |
| 4240 | (`table-row 'table-row)))) | 4240 | ('table-row 'table-row)))) |
| 4241 | 4241 | ||
| 4242 | (defun org-element--parse-elements | 4242 | (defun org-element--parse-elements |
| 4243 | (beg end mode structure granularity visible-only acc) | 4243 | (beg end mode structure granularity visible-only acc) |
| @@ -5018,8 +5018,8 @@ the cache." | |||
| 5018 | lower element | 5018 | lower element |
| 5019 | upper element))))) | 5019 | upper element))))) |
| 5020 | (pcase side | 5020 | (pcase side |
| 5021 | (`both (cons lower upper)) | 5021 | ('both (cons lower upper)) |
| 5022 | (`nil lower) | 5022 | ('nil lower) |
| 5023 | (_ upper)))) | 5023 | (_ upper)))) |
| 5024 | 5024 | ||
| 5025 | (defun org-element--cache-put (element) | 5025 | (defun org-element--cache-put (element) |
| @@ -5513,8 +5513,8 @@ that range. See `after-change-functions' for more information." | |||
| 5513 | ;; case for headline editing: if a headline is modified but | 5513 | ;; case for headline editing: if a headline is modified but |
| 5514 | ;; not removed, do not extend. | 5514 | ;; not removed, do not extend. |
| 5515 | (when (pcase org-element--cache-change-warning | 5515 | (when (pcase org-element--cache-change-warning |
| 5516 | (`t t) | 5516 | ('t t) |
| 5517 | (`headline | 5517 | ('headline |
| 5518 | (not (and (org-with-limited-levels (org-at-heading-p)) | 5518 | (not (and (org-with-limited-levels (org-at-heading-p)) |
| 5519 | (= (line-end-position) bottom)))) | 5519 | (= (line-end-position) bottom)))) |
| 5520 | (_ | 5520 | (_ |
diff --git a/lisp/org/org-entities.el b/lisp/org/org-entities.el index e291b521f90..0dae8495111 100644 --- a/lisp/org/org-entities.el +++ b/lisp/org/org-entities.el | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | (defun org-entities--user-safe-p (v) | 38 | (defun org-entities--user-safe-p (v) |
| 39 | "Non-nil if V is a safe value for `org-entities-user'." | 39 | "Non-nil if V is a safe value for `org-entities-user'." |
| 40 | (pcase v | 40 | (pcase v |
| 41 | (`nil t) | 41 | ('nil t) |
| 42 | (`(,(and (pred stringp) | 42 | (`(,(and (pred stringp) |
| 43 | (pred (string-match-p "\\`[a-zA-Z][a-zA-Z0-9]*\\'"))) | 43 | (pred (string-match-p "\\`[a-zA-Z][a-zA-Z0-9]*\\'"))) |
| 44 | ,(pred stringp) ,(pred booleanp) ,(pred stringp) | 44 | ,(pred stringp) ,(pred booleanp) ,(pred stringp) |
diff --git a/lisp/org/org-gnus.el b/lisp/org/org-gnus.el index a53b343efb4..34087bf21be 100644 --- a/lisp/org/org-gnus.el +++ b/lisp/org/org-gnus.el | |||
| @@ -126,14 +126,14 @@ If `org-store-link' was called with a prefix arg the meaning of | |||
| 126 | (defun org-gnus-store-link () | 126 | (defun org-gnus-store-link () |
| 127 | "Store a link to a Gnus folder or message." | 127 | "Store a link to a Gnus folder or message." |
| 128 | (pcase major-mode | 128 | (pcase major-mode |
| 129 | (`gnus-group-mode | 129 | ('gnus-group-mode |
| 130 | (let ((group (gnus-group-group-name))) | 130 | (let ((group (gnus-group-group-name))) |
| 131 | (when group | 131 | (when group |
| 132 | (org-store-link-props :type "gnus" :group group) | 132 | (org-store-link-props :type "gnus" :group group) |
| 133 | (let ((description (org-gnus-group-link group))) | 133 | (let ((description (org-gnus-group-link group))) |
| 134 | (org-add-link-props :link description :description description) | 134 | (org-add-link-props :link description :description description) |
| 135 | description)))) | 135 | description)))) |
| 136 | ((or `gnus-summary-mode `gnus-article-mode) | 136 | ((or 'gnus-summary-mode 'gnus-article-mode) |
| 137 | (let* ((group | 137 | (let* ((group |
| 138 | (pcase (gnus-find-method-for-group gnus-newsgroup-name) | 138 | (pcase (gnus-find-method-for-group gnus-newsgroup-name) |
| 139 | (`(nnvirtual . ,_) | 139 | (`(nnvirtual . ,_) |
| @@ -176,7 +176,7 @@ If `org-store-link' was called with a prefix arg the meaning of | |||
| 176 | (description (org-email-link-description))) | 176 | (description (org-email-link-description))) |
| 177 | (org-add-link-props :link link :description description) | 177 | (org-add-link-props :link link :description description) |
| 178 | link))) | 178 | link))) |
| 179 | (`message-mode | 179 | ('message-mode |
| 180 | (setq org-store-link-plist nil) ;reset | 180 | (setq org-store-link-plist nil) ;reset |
| 181 | (save-excursion | 181 | (save-excursion |
| 182 | (save-restriction | 182 | (save-restriction |
diff --git a/lisp/org/org-indent.el b/lisp/org/org-indent.el index bf4e998199e..a0bf7b7379f 100644 --- a/lisp/org/org-indent.el +++ b/lisp/org/org-indent.el | |||
| @@ -301,8 +301,8 @@ When optional argument HEADING is non-nil, assume line is at | |||
| 301 | a heading. Moreover, if is is `inlinetask', the first star will | 301 | a heading. Moreover, if is is `inlinetask', the first star will |
| 302 | have `org-warning' face." | 302 | have `org-warning' face." |
| 303 | (let* ((line (aref (pcase heading | 303 | (let* ((line (aref (pcase heading |
| 304 | (`nil org-indent--text-line-prefixes) | 304 | ('nil org-indent--text-line-prefixes) |
| 305 | (`inlinetask org-indent--inlinetask-line-prefixes) | 305 | ('inlinetask org-indent--inlinetask-line-prefixes) |
| 306 | (_ org-indent--heading-line-prefixes)) | 306 | (_ org-indent--heading-line-prefixes)) |
| 307 | level)) | 307 | level)) |
| 308 | (wrap | 308 | (wrap |
diff --git a/lisp/org/org-info.el b/lisp/org/org-info.el index 6dde36ceba1..390db209d30 100644 --- a/lisp/org/org-info.el +++ b/lisp/org/org-info.el | |||
| @@ -133,12 +133,12 @@ See `org-link-parameters' for details about PATH, DESC and FORMAT." | |||
| 133 | (manual (car parts)) | 133 | (manual (car parts)) |
| 134 | (node (or (nth 1 parts) "Top"))) | 134 | (node (or (nth 1 parts) "Top"))) |
| 135 | (pcase format | 135 | (pcase format |
| 136 | (`html | 136 | ('html |
| 137 | (format "<a href=\"%s#%s\">%s</a>" | 137 | (format "<a href=\"%s#%s\">%s</a>" |
| 138 | (org-info-map-html-url manual) | 138 | (org-info-map-html-url manual) |
| 139 | (org-info--expand-node-name node) | 139 | (org-info--expand-node-name node) |
| 140 | (or desc path))) | 140 | (or desc path))) |
| 141 | (`texinfo | 141 | ('texinfo |
| 142 | (let ((title (or desc ""))) | 142 | (let ((title (or desc ""))) |
| 143 | (format "@ref{%s,%s,,%s,}" node title manual))) | 143 | (format "@ref{%s,%s,,%s,}" node title manual))) |
| 144 | (_ nil)))) | 144 | (_ nil)))) |
diff --git a/lisp/org/org-inlinetask.el b/lisp/org/org-inlinetask.el index 08fc268d0d7..8604e28e22e 100644 --- a/lisp/org/org-inlinetask.el +++ b/lisp/org/org-inlinetask.el | |||
| @@ -325,14 +325,14 @@ If the task has an end part, also demote it." | |||
| 325 | "Hide inline tasks in buffer when STATE is `contents' or `children'. | 325 | "Hide inline tasks in buffer when STATE is `contents' or `children'. |
| 326 | This function is meant to be used in `org-cycle-hook'." | 326 | This function is meant to be used in `org-cycle-hook'." |
| 327 | (pcase state | 327 | (pcase state |
| 328 | (`contents | 328 | ('contents |
| 329 | (let ((regexp (org-inlinetask-outline-regexp))) | 329 | (let ((regexp (org-inlinetask-outline-regexp))) |
| 330 | (save-excursion | 330 | (save-excursion |
| 331 | (goto-char (point-min)) | 331 | (goto-char (point-min)) |
| 332 | (while (re-search-forward regexp nil t) | 332 | (while (re-search-forward regexp nil t) |
| 333 | (org-inlinetask-toggle-visibility) | 333 | (org-inlinetask-toggle-visibility) |
| 334 | (org-inlinetask-goto-end))))) | 334 | (org-inlinetask-goto-end))))) |
| 335 | (`children | 335 | ('children |
| 336 | (save-excursion | 336 | (save-excursion |
| 337 | (while | 337 | (while |
| 338 | (or (org-inlinetask-at-task-p) | 338 | (or (org-inlinetask-at-task-p) |
diff --git a/lisp/org/org-lint.el b/lisp/org/org-lint.el index 9fcb17a2db6..e719ef8a5b2 100644 --- a/lisp/org/org-lint.el +++ b/lisp/org/org-lint.el | |||
| @@ -427,7 +427,7 @@ instead" | |||
| 427 | (lambda (datum) | 427 | (lambda (datum) |
| 428 | (let ((key (org-element-property :key datum))) | 428 | (let ((key (org-element-property :key datum))) |
| 429 | (pcase (org-element-type datum) | 429 | (pcase (org-element-type datum) |
| 430 | (`keyword | 430 | ('keyword |
| 431 | (let ((value (org-element-property :value datum))) | 431 | (let ((value (org-element-property :value datum))) |
| 432 | (and (string= key "PROPERTY") | 432 | (and (string= key "PROPERTY") |
| 433 | (string-match deprecated-re value) | 433 | (string-match deprecated-re value) |
| @@ -435,7 +435,7 @@ instead" | |||
| 435 | (format "Deprecated syntax for \"%s\". \ | 435 | (format "Deprecated syntax for \"%s\". \ |
| 436 | Use header-args instead" | 436 | Use header-args instead" |
| 437 | (match-string-no-properties 1 value)))))) | 437 | (match-string-no-properties 1 value)))))) |
| 438 | (`node-property | 438 | ('node-property |
| 439 | (and (member-ignore-case key deprecated-babel-properties) | 439 | (and (member-ignore-case key deprecated-babel-properties) |
| 440 | (list | 440 | (list |
| 441 | (org-element-property :begin datum) | 441 | (org-element-property :begin datum) |
| @@ -789,11 +789,11 @@ Use \"export %s\" instead" | |||
| 789 | (let ((name (org-trim (match-string-no-properties 0))) | 789 | (let ((name (org-trim (match-string-no-properties 0))) |
| 790 | (element (org-element-at-point))) | 790 | (element (org-element-at-point))) |
| 791 | (pcase (org-element-type element) | 791 | (pcase (org-element-type element) |
| 792 | ((or `drawer `property-drawer) | 792 | ((or 'drawer 'property-drawer) |
| 793 | (goto-char (org-element-property :end element)) | 793 | (goto-char (org-element-property :end element)) |
| 794 | nil) | 794 | nil) |
| 795 | ((or `comment-block `example-block `export-block `src-block | 795 | ((or 'comment-block 'example-block 'export-block 'src-block |
| 796 | `verse-block) | 796 | 'verse-block) |
| 797 | nil) | 797 | nil) |
| 798 | (_ | 798 | (_ |
| 799 | (push (list (line-beginning-position) | 799 | (push (list (line-beginning-position) |
| @@ -920,7 +920,7 @@ Use \"export %s\" instead" | |||
| 920 | node-property src-block) | 920 | node-property src-block) |
| 921 | (lambda (datum) | 921 | (lambda (datum) |
| 922 | (pcase (org-element-type datum) | 922 | (pcase (org-element-type datum) |
| 923 | ((or `babel-call `inline-babel-call) | 923 | ((or 'babel-call 'inline-babel-call) |
| 924 | (funcall verify | 924 | (funcall verify |
| 925 | datum | 925 | datum |
| 926 | nil | 926 | nil |
| @@ -928,13 +928,13 @@ Use \"export %s\" instead" | |||
| 928 | (list | 928 | (list |
| 929 | (org-element-property :inside-header datum) | 929 | (org-element-property :inside-header datum) |
| 930 | (org-element-property :end-header datum))))) | 930 | (org-element-property :end-header datum))))) |
| 931 | (`inline-src-block | 931 | ('inline-src-block |
| 932 | (funcall verify | 932 | (funcall verify |
| 933 | datum | 933 | datum |
| 934 | (org-element-property :language datum) | 934 | (org-element-property :language datum) |
| 935 | (org-babel-parse-header-arguments | 935 | (org-babel-parse-header-arguments |
| 936 | (org-element-property :parameters datum)))) | 936 | (org-element-property :parameters datum)))) |
| 937 | (`keyword | 937 | ('keyword |
| 938 | (when (string= (org-element-property :key datum) "PROPERTY") | 938 | (when (string= (org-element-property :key datum) "PROPERTY") |
| 939 | (let ((value (org-element-property :value datum))) | 939 | (let ((value (org-element-property :value datum))) |
| 940 | (when (string-match "\\`header-args\\(?::\\(\\S-+\\)\\)?\\+? *" | 940 | (when (string-match "\\`header-args\\(?::\\(\\S-+\\)\\)?\\+? *" |
| @@ -944,7 +944,7 @@ Use \"export %s\" instead" | |||
| 944 | (match-string 1 value) | 944 | (match-string 1 value) |
| 945 | (org-babel-parse-header-arguments | 945 | (org-babel-parse-header-arguments |
| 946 | (substring value (match-end 0)))))))) | 946 | (substring value (match-end 0)))))))) |
| 947 | (`node-property | 947 | ('node-property |
| 948 | (let ((key (org-element-property :key datum))) | 948 | (let ((key (org-element-property :key datum))) |
| 949 | (when (let ((case-fold-search t)) | 949 | (when (let ((case-fold-search t)) |
| 950 | (string-match "\\`HEADER-ARGS\\(?::\\(\\S-+\\)\\)?\\+?" | 950 | (string-match "\\`HEADER-ARGS\\(?::\\(\\S-+\\)\\)?\\+?" |
| @@ -954,7 +954,7 @@ Use \"export %s\" instead" | |||
| 954 | (match-string 1 key) | 954 | (match-string 1 key) |
| 955 | (org-babel-parse-header-arguments | 955 | (org-babel-parse-header-arguments |
| 956 | (org-element-property :value datum)))))) | 956 | (org-element-property :value datum)))))) |
| 957 | (`src-block | 957 | ('src-block |
| 958 | (funcall verify | 958 | (funcall verify |
| 959 | datum | 959 | datum |
| 960 | (org-element-property :language datum) | 960 | (org-element-property :language datum) |
| @@ -980,13 +980,13 @@ Use \"export %s\" instead" | |||
| 980 | (org-babel-parse-header-arguments | 980 | (org-babel-parse-header-arguments |
| 981 | (org-trim | 981 | (org-trim |
| 982 | (pcase type | 982 | (pcase type |
| 983 | (`src-block | 983 | ('src-block |
| 984 | (mapconcat | 984 | (mapconcat |
| 985 | #'identity | 985 | #'identity |
| 986 | (cons (org-element-property :parameters datum) | 986 | (cons (org-element-property :parameters datum) |
| 987 | (org-element-property :header datum)) | 987 | (org-element-property :header datum)) |
| 988 | " ")) | 988 | " ")) |
| 989 | (`inline-src-block | 989 | ('inline-src-block |
| 990 | (or (org-element-property :parameters datum) "")) | 990 | (or (org-element-property :parameters datum) "")) |
| 991 | (_ | 991 | (_ |
| 992 | (concat | 992 | (concat |
| @@ -1065,9 +1065,9 @@ Use \"export %s\" instead" | |||
| 1065 | \\{org-lint--report-mode-map}" | 1065 | \\{org-lint--report-mode-map}" |
| 1066 | (setf tabulated-list-format | 1066 | (setf tabulated-list-format |
| 1067 | `[("Line" 6 | 1067 | `[("Line" 6 |
| 1068 | (lambda (a b) | 1068 | ,(lambda (a b) |
| 1069 | (< (string-to-number (aref (cadr a) 0)) | 1069 | (< (string-to-number (aref (cadr a) 0)) |
| 1070 | (string-to-number (aref (cadr b) 0)))) | 1070 | (string-to-number (aref (cadr b) 0)))) |
| 1071 | :right-align t) | 1071 | :right-align t) |
| 1072 | ("Trust" 5 t) | 1072 | ("Trust" 5 t) |
| 1073 | ("Warning" 0 t)]) | 1073 | ("Warning" 0 t)]) |
| @@ -1207,8 +1207,8 @@ ARG can also be a list of checker names, as symbols, to run." | |||
| 1207 | (message "Org linting process starting...")) | 1207 | (message "Org linting process starting...")) |
| 1208 | (let ((checkers | 1208 | (let ((checkers |
| 1209 | (pcase arg | 1209 | (pcase arg |
| 1210 | (`nil org-lint--checkers) | 1210 | ('nil org-lint--checkers) |
| 1211 | (`(4) | 1211 | ('(4) |
| 1212 | (let ((category | 1212 | (let ((category |
| 1213 | (completing-read | 1213 | (completing-read |
| 1214 | "Checker category: " | 1214 | "Checker category: " |
| @@ -1218,7 +1218,7 @@ ARG can also be a list of checker names, as symbols, to run." | |||
| 1218 | (lambda (c) | 1218 | (lambda (c) |
| 1219 | (assoc-string (org-lint-checker-categories c) category)) | 1219 | (assoc-string (org-lint-checker-categories c) category)) |
| 1220 | org-lint--checkers))) | 1220 | org-lint--checkers))) |
| 1221 | (`(16) | 1221 | ('(16) |
| 1222 | (list | 1222 | (list |
| 1223 | (let ((name (completing-read | 1223 | (let ((name (completing-read |
| 1224 | "Checker name: " | 1224 | "Checker name: " |
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el index 1f51809f1ce..b54d4aa2e5d 100644 --- a/lisp/org/org-list.el +++ b/lisp/org/org-list.el | |||
| @@ -3438,15 +3438,15 @@ PARAMS is a plist used to tweak the behavior of the transcoder." | |||
| 3438 | (start (and (not splice) | 3438 | (start (and (not splice) |
| 3439 | (org-list--generic-eval | 3439 | (org-list--generic-eval |
| 3440 | (pcase type | 3440 | (pcase type |
| 3441 | (`ordered ostart) | 3441 | ('ordered ostart) |
| 3442 | (`unordered ustart) | 3442 | ('unordered ustart) |
| 3443 | (_ dstart)) | 3443 | (_ dstart)) |
| 3444 | depth))) | 3444 | depth))) |
| 3445 | (end (and (not splice) | 3445 | (end (and (not splice) |
| 3446 | (org-list--generic-eval | 3446 | (org-list--generic-eval |
| 3447 | (pcase type | 3447 | (pcase type |
| 3448 | (`ordered oend) | 3448 | ('ordered oend) |
| 3449 | (`unordered uend) | 3449 | ('unordered uend) |
| 3450 | (_ dend)) | 3450 | (_ dend)) |
| 3451 | depth)))) | 3451 | depth)))) |
| 3452 | ;; Make sure trailing newlines in END appear in the output by | 3452 | ;; Make sure trailing newlines in END appear in the output by |
| @@ -3485,7 +3485,7 @@ PARAMS is a plist used to tweak the behavior of the transcoder." | |||
| 3485 | (separator (and (org-export-get-next-element item info) | 3485 | (separator (and (org-export-get-next-element item info) |
| 3486 | (org-list--generic-eval isep type depth))) | 3486 | (org-list--generic-eval isep type depth))) |
| 3487 | (closing (pcase (org-list--generic-eval iend type depth) | 3487 | (closing (pcase (org-list--generic-eval iend type depth) |
| 3488 | ((or `nil "") "\n") | 3488 | ((or 'nil "") "\n") |
| 3489 | ((and (guard separator) s) | 3489 | ((and (guard separator) s) |
| 3490 | (if (equal (substring s -1) "\n") s (concat s "\n"))) | 3490 | (if (equal (substring s -1) "\n") s (concat s "\n"))) |
| 3491 | (s s)))) | 3491 | (s s)))) |
| @@ -3510,9 +3510,9 @@ PARAMS is a plist used to tweak the behavior of the transcoder." | |||
| 3510 | (or dtstart dtend ddstart ddend))) | 3510 | (or dtstart dtend ddstart ddend))) |
| 3511 | (concat | 3511 | (concat |
| 3512 | (pcase (org-element-property :checkbox item) | 3512 | (pcase (org-element-property :checkbox item) |
| 3513 | (`on cbon) | 3513 | ('on cbon) |
| 3514 | (`off cboff) | 3514 | ('off cboff) |
| 3515 | (`trans cbtrans)) | 3515 | ('trans cbtrans)) |
| 3516 | (and tag | 3516 | (and tag |
| 3517 | (concat dtstart | 3517 | (concat dtstart |
| 3518 | (if backend | 3518 | (if backend |
| @@ -3582,8 +3582,8 @@ with overruling parameters for `org-list-to-generic'." | |||
| 3582 | LIST is as returned by `org-list-to-lisp'. PARAMS is a property | 3582 | LIST is as returned by `org-list-to-lisp'. PARAMS is a property |
| 3583 | list with overruling parameters for `org-list-to-generic'." | 3583 | list with overruling parameters for `org-list-to-generic'." |
| 3584 | (let* ((blank (pcase (cdr (assq 'heading org-blank-before-new-entry)) | 3584 | (let* ((blank (pcase (cdr (assq 'heading org-blank-before-new-entry)) |
| 3585 | (`t t) | 3585 | ('t t) |
| 3586 | (`auto (save-excursion | 3586 | ('auto (save-excursion |
| 3587 | (org-with-limited-levels (outline-previous-heading)) | 3587 | (org-with-limited-levels (outline-previous-heading)) |
| 3588 | (org-previous-line-empty-p))))) | 3588 | (org-previous-line-empty-p))))) |
| 3589 | (level (org-reduced-level (or (org-current-level) 0))) | 3589 | (level (org-reduced-level (or (org-current-level) 0))) |
diff --git a/lisp/org/org-mouse.el b/lisp/org/org-mouse.el index 5a10b59b1eb..74de498e88e 100644 --- a/lisp/org/org-mouse.el +++ b/lisp/org/org-mouse.el | |||
| @@ -416,7 +416,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:" | |||
| 416 | (let ((kwds org-todo-keywords-1)) | 416 | (let ((kwds org-todo-keywords-1)) |
| 417 | (org-mouse-keyword-menu | 417 | (org-mouse-keyword-menu |
| 418 | kwds | 418 | kwds |
| 419 | `(lambda (kwd) (org-todo kwd)) | 419 | (lambda (kwd) (org-todo kwd)) |
| 420 | (lambda (kwd) (equal state kwd)))))) | 420 | (lambda (kwd) (equal state kwd)))))) |
| 421 | 421 | ||
| 422 | (defun org-mouse-tag-menu () ;todo | 422 | (defun org-mouse-tag-menu () ;todo |
| @@ -461,11 +461,11 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:" | |||
| 461 | 461 | ||
| 462 | (defun org-mouse-agenda-type (type) | 462 | (defun org-mouse-agenda-type (type) |
| 463 | (pcase type | 463 | (pcase type |
| 464 | (`tags "Tags: ") | 464 | ('tags "Tags: ") |
| 465 | (`todo "TODO: ") | 465 | ('todo "TODO: ") |
| 466 | (`tags-tree "Tags tree: ") | 466 | ('tags-tree "Tags tree: ") |
| 467 | (`todo-tree "TODO tree: ") | 467 | ('todo-tree "TODO tree: ") |
| 468 | (`occur-tree "Occur tree: ") | 468 | ('occur-tree "Occur tree: ") |
| 469 | (_ "Agenda command ???"))) | 469 | (_ "Agenda command ???"))) |
| 470 | 470 | ||
| 471 | (defun org-mouse-list-options-menu (alloptions &optional function) | 471 | (defun org-mouse-list-options-menu (alloptions &optional function) |
diff --git a/lisp/org/org-plot.el b/lisp/org/org-plot.el index ebd7af42a85..38a81f68b11 100644 --- a/lisp/org/org-plot.el +++ b/lisp/org/org-plot.el | |||
| @@ -200,9 +200,9 @@ manner suitable for prepending to a user-specified script." | |||
| 200 | (y-labels (plist-get params :ylabels)) | 200 | (y-labels (plist-get params :ylabels)) |
| 201 | (plot-str "'%s' using %s%d%s with %s title '%s'") | 201 | (plot-str "'%s' using %s%d%s with %s title '%s'") |
| 202 | (plot-cmd (pcase type | 202 | (plot-cmd (pcase type |
| 203 | (`2d "plot") | 203 | ('2d "plot") |
| 204 | (`3d "splot") | 204 | ('3d "splot") |
| 205 | (`grid "splot"))) | 205 | ('grid "splot"))) |
| 206 | (script "reset") | 206 | (script "reset") |
| 207 | ;; ats = add-to-script | 207 | ;; ats = add-to-script |
| 208 | (ats (lambda (line) (setf script (concat script "\n" line)))) | 208 | (ats (lambda (line) (setf script (concat script "\n" line)))) |
| @@ -211,9 +211,9 @@ manner suitable for prepending to a user-specified script." | |||
| 211 | (funcall ats (format "set term %s" (file-name-extension file))) | 211 | (funcall ats (format "set term %s" (file-name-extension file))) |
| 212 | (funcall ats (format "set output '%s'" file))) | 212 | (funcall ats (format "set output '%s'" file))) |
| 213 | (pcase type ; type | 213 | (pcase type ; type |
| 214 | (`2d ()) | 214 | ('2d ()) |
| 215 | (`3d (when map (funcall ats "set map"))) | 215 | ('3d (when map (funcall ats "set map"))) |
| 216 | (`grid (funcall ats (if map "set pm3d map" "set pm3d")))) | 216 | ('grid (funcall ats (if map "set pm3d map" "set pm3d")))) |
| 217 | (when title (funcall ats (format "set title '%s'" title))) ; title | 217 | (when title (funcall ats (format "set title '%s'" title))) ; title |
| 218 | (mapc ats lines) ; line | 218 | (mapc ats lines) ; line |
| 219 | (dolist (el sets) (funcall ats (format "set %s" el))) ; set | 219 | (dolist (el sets) (funcall ats (format "set %s" el))) ; set |
| @@ -239,7 +239,7 @@ manner suitable for prepending to a user-specified script." | |||
| 239 | "%Y-%m-%d-%H:%M:%S") "\""))) | 239 | "%Y-%m-%d-%H:%M:%S") "\""))) |
| 240 | (unless preface | 240 | (unless preface |
| 241 | (pcase type ; plot command | 241 | (pcase type ; plot command |
| 242 | (`2d (dotimes (col num-cols) | 242 | ('2d (dotimes (col num-cols) |
| 243 | (unless (and (eq type '2d) | 243 | (unless (and (eq type '2d) |
| 244 | (or (and ind (equal (1+ col) ind)) | 244 | (or (and ind (equal (1+ col) ind)) |
| 245 | (and deps (not (member (1+ col) deps))))) | 245 | (and deps (not (member (1+ col) deps))))) |
| @@ -255,10 +255,10 @@ manner suitable for prepending to a user-specified script." | |||
| 255 | (or (nth col col-labels) | 255 | (or (nth col col-labels) |
| 256 | (format "%d" (1+ col)))) | 256 | (format "%d" (1+ col)))) |
| 257 | plot-lines))))) | 257 | plot-lines))))) |
| 258 | (`3d | 258 | ('3d |
| 259 | (setq plot-lines (list (format "'%s' matrix with %s title ''" | 259 | (setq plot-lines (list (format "'%s' matrix with %s title ''" |
| 260 | data-file with)))) | 260 | data-file with)))) |
| 261 | (`grid | 261 | ('grid |
| 262 | (setq plot-lines (list (format "'%s' with %s title ''" | 262 | (setq plot-lines (list (format "'%s' with %s title ''" |
| 263 | data-file with))))) | 263 | data-file with))))) |
| 264 | (funcall ats | 264 | (funcall ats |
| @@ -303,9 +303,9 @@ line directly before or after the table." | |||
| 303 | (setf params (org-plot/collect-options params)))) | 303 | (setf params (org-plot/collect-options params)))) |
| 304 | ;; Dump table to datafile (very different for grid). | 304 | ;; Dump table to datafile (very different for grid). |
| 305 | (pcase (plist-get params :plot-type) | 305 | (pcase (plist-get params :plot-type) |
| 306 | (`2d (org-plot/gnuplot-to-data table data-file params)) | 306 | ('2d (org-plot/gnuplot-to-data table data-file params)) |
| 307 | (`3d (org-plot/gnuplot-to-data table data-file params)) | 307 | ('3d (org-plot/gnuplot-to-data table data-file params)) |
| 308 | (`grid (let ((y-labels (org-plot/gnuplot-to-grid-data | 308 | ('grid (let ((y-labels (org-plot/gnuplot-to-grid-data |
| 309 | table data-file params))) | 309 | table data-file params))) |
| 310 | (when y-labels (plist-put params :ylabels y-labels))))) | 310 | (when y-labels (plist-put params :ylabels y-labels))))) |
| 311 | ;; Check for timestamp ind column. | 311 | ;; Check for timestamp ind column. |
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el index 829354c0d56..cf746a48bc7 100644 --- a/lisp/org/org-src.el +++ b/lisp/org/org-src.el | |||
| @@ -742,24 +742,24 @@ If BUFFER is non-nil, test it instead." | |||
| 742 | 742 | ||
| 743 | (defun org-src-switch-to-buffer (buffer context) | 743 | (defun org-src-switch-to-buffer (buffer context) |
| 744 | (pcase org-src-window-setup | 744 | (pcase org-src-window-setup |
| 745 | (`current-window (pop-to-buffer-same-window buffer)) | 745 | ('current-window (pop-to-buffer-same-window buffer)) |
| 746 | (`other-window | 746 | ('other-window |
| 747 | (switch-to-buffer-other-window buffer)) | 747 | (switch-to-buffer-other-window buffer)) |
| 748 | (`other-frame | 748 | ('other-frame |
| 749 | (pcase context | 749 | (pcase context |
| 750 | (`exit | 750 | ('exit |
| 751 | (let ((frame (selected-frame))) | 751 | (let ((frame (selected-frame))) |
| 752 | (switch-to-buffer-other-frame buffer) | 752 | (switch-to-buffer-other-frame buffer) |
| 753 | (delete-frame frame))) | 753 | (delete-frame frame))) |
| 754 | (`save | 754 | ('save |
| 755 | (kill-buffer (current-buffer)) | 755 | (kill-buffer (current-buffer)) |
| 756 | (pop-to-buffer-same-window buffer)) | 756 | (pop-to-buffer-same-window buffer)) |
| 757 | (_ (switch-to-buffer-other-frame buffer)))) | 757 | (_ (switch-to-buffer-other-frame buffer)))) |
| 758 | (`reorganize-frame | 758 | ('reorganize-frame |
| 759 | (when (eq context 'edit) (delete-other-windows)) | 759 | (when (eq context 'edit) (delete-other-windows)) |
| 760 | (org-switch-to-buffer-other-window buffer) | 760 | (org-switch-to-buffer-other-window buffer) |
| 761 | (when (eq context 'exit) (delete-other-windows))) | 761 | (when (eq context 'exit) (delete-other-windows))) |
| 762 | (`switch-invisibly (set-buffer buffer)) | 762 | ('switch-invisibly (set-buffer buffer)) |
| 763 | (_ | 763 | (_ |
| 764 | (message "Invalid value %s for `org-src-window-setup'" | 764 | (message "Invalid value %s for `org-src-window-setup'" |
| 765 | org-src-window-setup) | 765 | org-src-window-setup) |
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index dcf74303637..f8559d04ef8 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el | |||
| @@ -5127,7 +5127,7 @@ information." | |||
| 5127 | ;; Make sure that contents are exported as Org data when :raw | 5127 | ;; Make sure that contents are exported as Org data when :raw |
| 5128 | ;; parameter is non-nil. | 5128 | ;; parameter is non-nil. |
| 5129 | ,(when (and backend (plist-get params :raw)) | 5129 | ,(when (and backend (plist-get params :raw)) |
| 5130 | `(setq contents | 5130 | '(setq contents |
| 5131 | ;; Since we don't know what are the pseudo object | 5131 | ;; Since we don't know what are the pseudo object |
| 5132 | ;; types defined in backend, we cannot pass them to | 5132 | ;; types defined in backend, we cannot pass them to |
| 5133 | ;; `org-element-interpret-data'. As a consequence, | 5133 | ;; `org-element-interpret-data'. As a consequence, |
diff --git a/lisp/org/org.el b/lisp/org/org.el index 873ae6b8209..4ead31b499c 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -5236,12 +5236,12 @@ When optional argument SKIP-KEY is non-nil, skip selection keys | |||
| 5236 | next to tags." | 5236 | next to tags." |
| 5237 | (mapconcat (lambda (token) | 5237 | (mapconcat (lambda (token) |
| 5238 | (pcase token | 5238 | (pcase token |
| 5239 | (`(:startgroup) "{") | 5239 | ('(:startgroup) "{") |
| 5240 | (`(:endgroup) "}") | 5240 | ('(:endgroup) "}") |
| 5241 | (`(:startgrouptag) "[") | 5241 | ('(:startgrouptag) "[") |
| 5242 | (`(:endgrouptag) "]") | 5242 | ('(:endgrouptag) "]") |
| 5243 | (`(:grouptags) ":") | 5243 | ('(:grouptags) ":") |
| 5244 | (`(:newline) "\\n") | 5244 | ('(:newline) "\\n") |
| 5245 | ((and | 5245 | ((and |
| 5246 | (guard (not skip-key)) | 5246 | (guard (not skip-key)) |
| 5247 | `(,(and tag (pred stringp)) . ,(and key (pred characterp)))) | 5247 | `(,(and tag (pred stringp)) . ,(and key (pred characterp)))) |
| @@ -5266,7 +5266,7 @@ a string, summarizing TAGS, as a list of strings." | |||
| 5266 | (when (eq group-status 'append) | 5266 | (when (eq group-status 'append) |
| 5267 | (push (nreverse current-group) groups)) | 5267 | (push (nreverse current-group) groups)) |
| 5268 | (setq group-status nil current-group nil)) | 5268 | (setq group-status nil current-group nil)) |
| 5269 | (`(:grouptags) (setq group-status 'append)) | 5269 | ('(:grouptags) (setq group-status 'append)) |
| 5270 | ((and `(,tag . ,_) (guard group-status)) | 5270 | ((and `(,tag . ,_) (guard group-status)) |
| 5271 | (if (eq group-status 'append) (push tag current-group) | 5271 | (if (eq group-status 'append) (push tag current-group) |
| 5272 | (setq current-group (list tag)))) | 5272 | (setq current-group (list tag)))) |
| @@ -7744,7 +7744,7 @@ When NEXT is non-nil, check the next line instead." | |||
| 7744 | When optional argument PARENT is non-nil, consider parent | 7744 | When optional argument PARENT is non-nil, consider parent |
| 7745 | headline instead of current one." | 7745 | headline instead of current one." |
| 7746 | (pcase (assq 'heading org-blank-before-new-entry) | 7746 | (pcase (assq 'heading org-blank-before-new-entry) |
| 7747 | (`(heading . auto) | 7747 | ('(heading . auto) |
| 7748 | (save-excursion | 7748 | (save-excursion |
| 7749 | (org-with-limited-levels | 7749 | (org-with-limited-levels |
| 7750 | (unless (and (org-before-first-heading-p) | 7750 | (unless (and (org-before-first-heading-p) |
| @@ -7884,7 +7884,7 @@ When NO-COMMENT is non-nil, don't include COMMENT string." | |||
| 7884 | (let ((todo (and (not no-todo) (match-string 2))) | 7884 | (let ((todo (and (not no-todo) (match-string 2))) |
| 7885 | (priority (and (not no-priority) (match-string 3))) | 7885 | (priority (and (not no-priority) (match-string 3))) |
| 7886 | (headline (pcase (match-string 4) | 7886 | (headline (pcase (match-string 4) |
| 7887 | (`nil "") | 7887 | ('nil "") |
| 7888 | ((and (guard no-comment) h) | 7888 | ((and (guard no-comment) h) |
| 7889 | (replace-regexp-in-string | 7889 | (replace-regexp-in-string |
| 7890 | (eval-when-compile | 7890 | (eval-when-compile |
| @@ -8768,7 +8768,7 @@ with the original repeater." | |||
| 8768 | (template (buffer-substring beg end)) | 8768 | (template (buffer-substring beg end)) |
| 8769 | (shift-n (and doshift (string-to-number (match-string 1 shift)))) | 8769 | (shift-n (and doshift (string-to-number (match-string 1 shift)))) |
| 8770 | (shift-what (pcase (and doshift (match-string 2 shift)) | 8770 | (shift-what (pcase (and doshift (match-string 2 shift)) |
| 8771 | (`nil nil) | 8771 | ('nil nil) |
| 8772 | ("d" 'day) | 8772 | ("d" 'day) |
| 8773 | ("w" (setq shift-n (* 7 shift-n)) 'day) | 8773 | ("w" (setq shift-n (* 7 shift-n)) 'day) |
| 8774 | ("m" 'month) | 8774 | ("m" 'month) |
| @@ -9690,7 +9690,7 @@ active region." | |||
| 9690 | (push (cons f (copy-sequence org-store-link-plist)) | 9690 | (push (cons f (copy-sequence org-store-link-plist)) |
| 9691 | results-alist))) | 9691 | results-alist))) |
| 9692 | (pcase results-alist | 9692 | (pcase results-alist |
| 9693 | (`nil nil) | 9693 | ('nil nil) |
| 9694 | (`((,_ . ,_)) t) ;single choice: nothing to do | 9694 | (`((,_ . ,_)) t) ;single choice: nothing to do |
| 9695 | (`((,name . ,_) . ,_) | 9695 | (`((,name . ,_) . ,_) |
| 9696 | ;; Reinstate link plist associated to the chosen | 9696 | ;; Reinstate link plist associated to the chosen |
| @@ -11552,13 +11552,13 @@ order.") | |||
| 11552 | #'identity | 11552 | #'identity |
| 11553 | (append | 11553 | (append |
| 11554 | (pcase org-refile-use-outline-path | 11554 | (pcase org-refile-use-outline-path |
| 11555 | (`file (list (file-name-nondirectory | 11555 | ('file (list (file-name-nondirectory |
| 11556 | (buffer-file-name | 11556 | (buffer-file-name |
| 11557 | (buffer-base-buffer))))) | 11557 | (buffer-base-buffer))))) |
| 11558 | (`full-file-path | 11558 | ('full-file-path |
| 11559 | (list (buffer-file-name | 11559 | (list (buffer-file-name |
| 11560 | (buffer-base-buffer)))) | 11560 | (buffer-base-buffer)))) |
| 11561 | (`buffer-name | 11561 | ('buffer-name |
| 11562 | (list (buffer-name | 11562 | (list (buffer-name |
| 11563 | (buffer-base-buffer)))) | 11563 | (buffer-base-buffer)))) |
| 11564 | (_ nil)) | 11564 | (_ nil)) |
| @@ -13251,14 +13251,14 @@ TYPE is either `deadline' or `scheduled'. See `org-deadline' or | |||
| 13251 | old-date) | 13251 | old-date) |
| 13252 | (match-string 1 old-date))))) | 13252 | (match-string 1 old-date))))) |
| 13253 | (pcase arg | 13253 | (pcase arg |
| 13254 | (`(4) | 13254 | ('(4) |
| 13255 | (when (and old-date log) | 13255 | (when (and old-date log) |
| 13256 | (org-add-log-setup (if deadline? 'deldeadline 'delschedule) | 13256 | (org-add-log-setup (if deadline? 'deldeadline 'delschedule) |
| 13257 | nil old-date log)) | 13257 | nil old-date log)) |
| 13258 | (org-remove-timestamp-with-keyword keyword) | 13258 | (org-remove-timestamp-with-keyword keyword) |
| 13259 | (message (if deadline? "Item no longer has a deadline." | 13259 | (message (if deadline? "Item no longer has a deadline." |
| 13260 | "Item is no longer scheduled."))) | 13260 | "Item is no longer scheduled."))) |
| 13261 | (`(16) | 13261 | ('(16) |
| 13262 | (save-excursion | 13262 | (save-excursion |
| 13263 | (org-back-to-heading t) | 13263 | (org-back-to-heading t) |
| 13264 | (let ((regexp (if deadline? org-deadline-time-regexp | 13264 | (let ((regexp (if deadline? org-deadline-time-regexp |
| @@ -14779,8 +14779,8 @@ If ONOFF is `on' or `off', don't toggle but set to this state." | |||
| 14779 | (nreverse (org-split-string tags ":"))))) | 14779 | (nreverse (org-split-string tags ":"))))) |
| 14780 | res) | 14780 | res) |
| 14781 | (pcase onoff | 14781 | (pcase onoff |
| 14782 | (`off (setq current (delete tag current))) | 14782 | ('off (setq current (delete tag current))) |
| 14783 | ((or `on (guard (not (member tag current)))) | 14783 | ((or 'on (guard (not (member tag current)))) |
| 14784 | (setq res t) | 14784 | (setq res t) |
| 14785 | (cl-pushnew tag current :test #'equal)) | 14785 | (cl-pushnew tag current :test #'equal)) |
| 14786 | (_ (setq current (delete tag current)))) | 14786 | (_ (setq current (delete tag current)))) |
| @@ -14830,7 +14830,7 @@ If DATA is nil or the empty string, all tags are removed." | |||
| 14830 | (interactive "sTags: ") | 14830 | (interactive "sTags: ") |
| 14831 | (let ((data | 14831 | (let ((data |
| 14832 | (pcase (if (stringp data) (org-trim data) data) | 14832 | (pcase (if (stringp data) (org-trim data) data) |
| 14833 | ((or `nil "") nil) | 14833 | ((or 'nil "") nil) |
| 14834 | ((pred listp) (format ":%s:" (mapconcat #'identity data ":"))) | 14834 | ((pred listp) (format ":%s:" (mapconcat #'identity data ":"))) |
| 14835 | ((pred stringp) | 14835 | ((pred stringp) |
| 14836 | (format ":%s:" | 14836 | (format ":%s:" |
| @@ -17207,9 +17207,9 @@ The internal representation needed by the calendar is (month day year). | |||
| 17207 | This is a wrapper to handle the brain-dead convention in calendar that | 17207 | This is a wrapper to handle the brain-dead convention in calendar that |
| 17208 | user function argument order change dependent on argument order." | 17208 | user function argument order change dependent on argument order." |
| 17209 | (pcase calendar-date-style | 17209 | (pcase calendar-date-style |
| 17210 | (`american (list arg1 arg2 arg3)) | 17210 | ('american (list arg1 arg2 arg3)) |
| 17211 | (`european (list arg2 arg1 arg3)) | 17211 | ('european (list arg2 arg1 arg3)) |
| 17212 | (`iso (list arg2 arg3 arg1)))) | 17212 | ('iso (list arg2 arg3 arg1)))) |
| 17213 | 17213 | ||
| 17214 | (defun org-eval-in-calendar (form &optional keepdate) | 17214 | (defun org-eval-in-calendar (form &optional keepdate) |
| 17215 | "Eval FORM in the calendar window and return to current window. | 17215 | "Eval FORM in the calendar window and return to current window. |
| @@ -18015,14 +18015,14 @@ When SUPPRESS-TMP-DELAY is non-nil, suppress delays like \"--2d\"." | |||
| 18015 | (pcase origin-cat | 18015 | (pcase origin-cat |
| 18016 | ;; `day' category ends before `hour' if any, or at the end | 18016 | ;; `day' category ends before `hour' if any, or at the end |
| 18017 | ;; of the day name. | 18017 | ;; of the day name. |
| 18018 | (`day (min (or (match-beginning 7) (1- (match-end 5))) origin)) | 18018 | ('day (min (or (match-beginning 7) (1- (match-end 5))) origin)) |
| 18019 | (`hour (min (match-end 7) origin)) | 18019 | ('hour (min (match-end 7) origin)) |
| 18020 | (`minute (min (1- (match-end 8)) origin)) | 18020 | ('minute (min (1- (match-end 8)) origin)) |
| 18021 | ((pred integerp) (min (1- (match-end 0)) origin)) | 18021 | ((pred integerp) (min (1- (match-end 0)) origin)) |
| 18022 | ;; Point was right after the time-stamp. However, the | 18022 | ;; Point was right after the time-stamp. However, the |
| 18023 | ;; time-stamp length might have changed, so refer to | 18023 | ;; time-stamp length might have changed, so refer to |
| 18024 | ;; (match-end 0) instead. | 18024 | ;; (match-end 0) instead. |
| 18025 | (`after (match-end 0)) | 18025 | ('after (match-end 0)) |
| 18026 | ;; `year' and `month' have both fixed size: point couldn't | 18026 | ;; `year' and `month' have both fixed size: point couldn't |
| 18027 | ;; have moved into another part. | 18027 | ;; have moved into another part. |
| 18028 | (_ origin)))) | 18028 | (_ origin)))) |
| @@ -20709,7 +20709,7 @@ Otherwise, return a user error." | |||
| 20709 | (let ((element (org-element-at-point))) | 20709 | (let ((element (org-element-at-point))) |
| 20710 | (barf-if-buffer-read-only) | 20710 | (barf-if-buffer-read-only) |
| 20711 | (pcase (org-element-type element) | 20711 | (pcase (org-element-type element) |
| 20712 | (`src-block | 20712 | ('src-block |
| 20713 | (if (not arg) (org-edit-src-code) | 20713 | (if (not arg) (org-edit-src-code) |
| 20714 | (let* ((info (org-babel-get-src-block-info)) | 20714 | (let* ((info (org-babel-get-src-block-info)) |
| 20715 | (lang (nth 0 info)) | 20715 | (lang (nth 0 info)) |
| @@ -20722,7 +20722,7 @@ Otherwise, return a user error." | |||
| 20722 | (switch-to-buffer | 20722 | (switch-to-buffer |
| 20723 | (funcall (intern (concat "org-babel-prep-session:" lang)) | 20723 | (funcall (intern (concat "org-babel-prep-session:" lang)) |
| 20724 | session params)))))) | 20724 | session params)))))) |
| 20725 | (`keyword | 20725 | ('keyword |
| 20726 | (if (member (org-element-property :key element) '("INCLUDE" "SETUPFILE")) | 20726 | (if (member (org-element-property :key element) '("INCLUDE" "SETUPFILE")) |
| 20727 | (org-open-link-from-string | 20727 | (org-open-link-from-string |
| 20728 | (format "[[%s]]" | 20728 | (format "[[%s]]" |
| @@ -20738,24 +20738,24 @@ Otherwise, return a user error." | |||
| 20738 | (match-string 0 value)) | 20738 | (match-string 0 value)) |
| 20739 | (t (user-error "No valid file specified"))))))) | 20739 | (t (user-error "No valid file specified"))))))) |
| 20740 | (user-error "No special environment to edit here"))) | 20740 | (user-error "No special environment to edit here"))) |
| 20741 | (`table | 20741 | ('table |
| 20742 | (if (eq (org-element-property :type element) 'table.el) | 20742 | (if (eq (org-element-property :type element) 'table.el) |
| 20743 | (org-edit-table.el) | 20743 | (org-edit-table.el) |
| 20744 | (call-interactively 'org-table-edit-formulas))) | 20744 | (call-interactively 'org-table-edit-formulas))) |
| 20745 | ;; Only Org tables contain `table-row' type elements. | 20745 | ;; Only Org tables contain `table-row' type elements. |
| 20746 | (`table-row (call-interactively 'org-table-edit-formulas)) | 20746 | ('table-row (call-interactively 'org-table-edit-formulas)) |
| 20747 | (`example-block (org-edit-src-code)) | 20747 | ('example-block (org-edit-src-code)) |
| 20748 | (`export-block (org-edit-export-block)) | 20748 | ('export-block (org-edit-export-block)) |
| 20749 | (`fixed-width (org-edit-fixed-width-region)) | 20749 | ('fixed-width (org-edit-fixed-width-region)) |
| 20750 | (`latex-environment (org-edit-latex-environment)) | 20750 | ('latex-environment (org-edit-latex-environment)) |
| 20751 | (_ | 20751 | (_ |
| 20752 | ;; No notable element at point. Though, we may be at a link or | 20752 | ;; No notable element at point. Though, we may be at a link or |
| 20753 | ;; a footnote reference, which are objects. Thus, scan deeper. | 20753 | ;; a footnote reference, which are objects. Thus, scan deeper. |
| 20754 | (let ((context (org-element-context element))) | 20754 | (let ((context (org-element-context element))) |
| 20755 | (pcase (org-element-type context) | 20755 | (pcase (org-element-type context) |
| 20756 | (`footnote-reference (org-edit-footnote-reference)) | 20756 | ('footnote-reference (org-edit-footnote-reference)) |
| 20757 | (`inline-src-block (org-edit-inline-src-code)) | 20757 | ('inline-src-block (org-edit-inline-src-code)) |
| 20758 | (`link (call-interactively #'ffap)) | 20758 | ('link (call-interactively #'ffap)) |
| 20759 | (_ (user-error "No special environment to edit here")))))))) | 20759 | (_ (user-error "No special environment to edit here")))))))) |
| 20760 | 20760 | ||
| 20761 | (defvar org-table-coordinate-overlays) ; defined in org-table.el | 20761 | (defvar org-table-coordinate-overlays) ; defined in org-table.el |
| @@ -20842,7 +20842,7 @@ This command does many different things, depending on context: | |||
| 20842 | ;; a src block. Hence, we first check if point is in such | 20842 | ;; a src block. Hence, we first check if point is in such |
| 20843 | ;; a block and then if it is at a blank line. | 20843 | ;; a block and then if it is at a blank line. |
| 20844 | (pcase type | 20844 | (pcase type |
| 20845 | ((or `inline-src-block `src-block) | 20845 | ((or 'inline-src-block 'src-block) |
| 20846 | (unless org-babel-no-eval-on-ctrl-c-ctrl-c | 20846 | (unless org-babel-no-eval-on-ctrl-c-ctrl-c |
| 20847 | (org-babel-eval-wipe-error-buffer) | 20847 | (org-babel-eval-wipe-error-buffer) |
| 20848 | (org-babel-execute-src-block | 20848 | (org-babel-execute-src-block |
| @@ -20852,22 +20852,22 @@ This command does many different things, depending on context: | |||
| 20852 | (user-error | 20852 | (user-error |
| 20853 | (substitute-command-keys | 20853 | (substitute-command-keys |
| 20854 | "`\\[org-ctrl-c-ctrl-c]' can do nothing useful here")))) | 20854 | "`\\[org-ctrl-c-ctrl-c]' can do nothing useful here")))) |
| 20855 | ((or `babel-call `inline-babel-call) | 20855 | ((or 'babel-call 'inline-babel-call) |
| 20856 | (let ((info (org-babel-lob-get-info context))) | 20856 | (let ((info (org-babel-lob-get-info context))) |
| 20857 | (when info (org-babel-execute-src-block nil info)))) | 20857 | (when info (org-babel-execute-src-block nil info)))) |
| 20858 | (`clock (org-clock-update-time-maybe)) | 20858 | ('clock (org-clock-update-time-maybe)) |
| 20859 | (`dynamic-block | 20859 | ('dynamic-block |
| 20860 | (save-excursion | 20860 | (save-excursion |
| 20861 | (goto-char (org-element-property :post-affiliated context)) | 20861 | (goto-char (org-element-property :post-affiliated context)) |
| 20862 | (org-update-dblock))) | 20862 | (org-update-dblock))) |
| 20863 | (`footnote-definition | 20863 | ('footnote-definition |
| 20864 | (goto-char (org-element-property :post-affiliated context)) | 20864 | (goto-char (org-element-property :post-affiliated context)) |
| 20865 | (call-interactively 'org-footnote-action)) | 20865 | (call-interactively 'org-footnote-action)) |
| 20866 | (`footnote-reference (call-interactively #'org-footnote-action)) | 20866 | ('footnote-reference (call-interactively #'org-footnote-action)) |
| 20867 | ((or `headline `inlinetask) | 20867 | ((or 'headline 'inlinetask) |
| 20868 | (save-excursion (goto-char (org-element-property :begin context)) | 20868 | (save-excursion (goto-char (org-element-property :begin context)) |
| 20869 | (call-interactively #'org-set-tags))) | 20869 | (call-interactively #'org-set-tags))) |
| 20870 | (`item | 20870 | ('item |
| 20871 | ;; At an item: `C-u C-u' sets checkbox to "[-]" | 20871 | ;; At an item: `C-u C-u' sets checkbox to "[-]" |
| 20872 | ;; unconditionally, whereas `C-u' will toggle its presence. | 20872 | ;; unconditionally, whereas `C-u' will toggle its presence. |
| 20873 | ;; Without a universal argument, if the item has a checkbox, | 20873 | ;; Without a universal argument, if the item has a checkbox, |
| @@ -20905,7 +20905,7 @@ This command does many different things, depending on context: | |||
| 20905 | (when block-item | 20905 | (when block-item |
| 20906 | (message "Checkboxes were removed due to empty box at line %d" | 20906 | (message "Checkboxes were removed due to empty box at line %d" |
| 20907 | (org-current-line block-item)))))) | 20907 | (org-current-line block-item)))))) |
| 20908 | (`keyword | 20908 | ('keyword |
| 20909 | (let ((org-inhibit-startup-visibility-stuff t) | 20909 | (let ((org-inhibit-startup-visibility-stuff t) |
| 20910 | (org-startup-align-all-tables nil)) | 20910 | (org-startup-align-all-tables nil)) |
| 20911 | (when (boundp 'org-table-coordinate-overlays) | 20911 | (when (boundp 'org-table-coordinate-overlays) |
| @@ -20913,7 +20913,7 @@ This command does many different things, depending on context: | |||
| 20913 | (setq org-table-coordinate-overlays nil)) | 20913 | (setq org-table-coordinate-overlays nil)) |
| 20914 | (org-save-outline-visibility 'use-markers (org-mode-restart))) | 20914 | (org-save-outline-visibility 'use-markers (org-mode-restart))) |
| 20915 | (message "Local setup has been refreshed")) | 20915 | (message "Local setup has been refreshed")) |
| 20916 | (`plain-list | 20916 | ('plain-list |
| 20917 | ;; At a plain list, with a double C-u argument, set | 20917 | ;; At a plain list, with a double C-u argument, set |
| 20918 | ;; checkboxes of each item to "[-]", whereas a single one | 20918 | ;; checkboxes of each item to "[-]", whereas a single one |
| 20919 | ;; will toggle their presence according to the state of the | 20919 | ;; will toggle their presence according to the state of the |
| @@ -20946,13 +20946,13 @@ This command does many different things, depending on context: | |||
| 20946 | struct (org-list-parents-alist struct) old-struct) | 20946 | struct (org-list-parents-alist struct) old-struct) |
| 20947 | (org-update-checkbox-count-maybe) | 20947 | (org-update-checkbox-count-maybe) |
| 20948 | (save-excursion (goto-char beginm) (org-list-send-list 'maybe)))) | 20948 | (save-excursion (goto-char beginm) (org-list-send-list 'maybe)))) |
| 20949 | ((or `property-drawer `node-property) | 20949 | ((or 'property-drawer 'node-property) |
| 20950 | (call-interactively #'org-property-action)) | 20950 | (call-interactively #'org-property-action)) |
| 20951 | (`radio-target | 20951 | ('radio-target |
| 20952 | (call-interactively #'org-update-radio-target-regexp)) | 20952 | (call-interactively #'org-update-radio-target-regexp)) |
| 20953 | (`statistics-cookie | 20953 | ('statistics-cookie |
| 20954 | (call-interactively #'org-update-statistics-cookies)) | 20954 | (call-interactively #'org-update-statistics-cookies)) |
| 20955 | ((or `table `table-cell `table-row) | 20955 | ((or 'table 'table-cell 'table-row) |
| 20956 | ;; At a table, recalculate every field and align it. Also | 20956 | ;; At a table, recalculate every field and align it. Also |
| 20957 | ;; send the table if necessary. If the table has | 20957 | ;; send the table if necessary. If the table has |
| 20958 | ;; a `table.el' type, just give up. At a table row or cell, | 20958 | ;; a `table.el' type, just give up. At a table row or cell, |
| @@ -20975,9 +20975,9 @@ Use `\\[org-edit-special]' to edit table.el tables")) | |||
| 20975 | (cond (arg (call-interactively #'org-table-recalculate)) | 20975 | (cond (arg (call-interactively #'org-table-recalculate)) |
| 20976 | ((org-table-maybe-recalculate-line)) | 20976 | ((org-table-maybe-recalculate-line)) |
| 20977 | (t (org-table-align)))))) | 20977 | (t (org-table-align)))))) |
| 20978 | ((or `timestamp (and `planning (guard (org-at-timestamp-p 'lax)))) | 20978 | ((or 'timestamp (and 'planning (guard (org-at-timestamp-p 'lax)))) |
| 20979 | (org-timestamp-change 0 'day)) | 20979 | (org-timestamp-change 0 'day)) |
| 20980 | ((and `nil (guard (org-at-heading-p))) | 20980 | ((and 'nil (guard (org-at-heading-p))) |
| 20981 | ;; When point is on an unsupported object type, we can miss | 20981 | ;; When point is on an unsupported object type, we can miss |
| 20982 | ;; the fact that it also is at a heading. Handle it here. | 20982 | ;; the fact that it also is at a heading. Handle it here. |
| 20983 | (call-interactively #'org-set-tags)) | 20983 | (call-interactively #'org-set-tags)) |
diff --git a/lisp/org/ox-ascii.el b/lisp/org/ox-ascii.el index c3ccb596aa3..5b9db497150 100644 --- a/lisp/org/ox-ascii.el +++ b/lisp/org/ox-ascii.el | |||
| @@ -549,8 +549,8 @@ INFO is a plist used as a communication channel." | |||
| 549 | INFO is a plist used as a communication channel." | 549 | INFO is a plist used as a communication channel." |
| 550 | (pcase (org-element-type element) | 550 | (pcase (org-element-type element) |
| 551 | ;; Elements with an absolute width: `headline' and `inlinetask'. | 551 | ;; Elements with an absolute width: `headline' and `inlinetask'. |
| 552 | (`inlinetask (plist-get info :ascii-inlinetask-width)) | 552 | ('inlinetask (plist-get info :ascii-inlinetask-width)) |
| 553 | (`headline | 553 | ('headline |
| 554 | (- (plist-get info :ascii-text-width) | 554 | (- (plist-get info :ascii-text-width) |
| 555 | (let ((low-level-rank (org-export-low-level-p element info))) | 555 | (let ((low-level-rank (org-export-low-level-p element info))) |
| 556 | (if low-level-rank (* low-level-rank 2) | 556 | (if low-level-rank (* low-level-rank 2) |
| @@ -624,8 +624,8 @@ Return value is a symbol among `left', `center', `right' and | |||
| 624 | (while (and (not justification) | 624 | (while (and (not justification) |
| 625 | (setq element (org-element-property :parent element))) | 625 | (setq element (org-element-property :parent element))) |
| 626 | (pcase (org-element-type element) | 626 | (pcase (org-element-type element) |
| 627 | (`center-block (setq justification 'center)) | 627 | ('center-block (setq justification 'center)) |
| 628 | (`special-block | 628 | ('special-block |
| 629 | (let ((name (org-element-property :type element))) | 629 | (let ((name (org-element-property :type element))) |
| 630 | (cond ((string= name "JUSTIFYRIGHT") (setq justification 'right)) | 630 | (cond ((string= name "JUSTIFYRIGHT") (setq justification 'right)) |
| 631 | ((string= name "JUSTIFYLEFT") (setq justification 'left))))))) | 631 | ((string= name "JUSTIFYLEFT") (setq justification 'left))))))) |
| @@ -724,8 +724,8 @@ caption keyword." | |||
| 724 | element info nil 'org-ascii--has-caption-p)) | 724 | element info nil 'org-ascii--has-caption-p)) |
| 725 | (title-fmt (org-ascii--translate | 725 | (title-fmt (org-ascii--translate |
| 726 | (pcase (org-element-type element) | 726 | (pcase (org-element-type element) |
| 727 | (`table "Table %d:") | 727 | ('table "Table %d:") |
| 728 | (`src-block "Listing %d:")) | 728 | ('src-block "Listing %d:")) |
| 729 | info))) | 729 | info))) |
| 730 | (org-ascii--fill-string | 730 | (org-ascii--fill-string |
| 731 | (concat (format title-fmt reference) | 731 | (concat (format title-fmt reference) |
| @@ -890,8 +890,8 @@ If DATUM is a string, consider it to be a file name, per | |||
| 890 | `org-export-resolve-id-link'. INFO is the communication channel, | 890 | `org-export-resolve-id-link'. INFO is the communication channel, |
| 891 | as a plist." | 891 | as a plist." |
| 892 | (pcase (org-element-type datum) | 892 | (pcase (org-element-type datum) |
| 893 | (`plain-text (format "See file %s" datum)) ;External file | 893 | ('plain-text (format "See file %s" datum)) ;External file |
| 894 | (`headline | 894 | ('headline |
| 895 | (format (org-ascii--translate "See section %s" info) | 895 | (format (org-ascii--translate "See section %s" info) |
| 896 | (if (org-export-numbered-headline-p datum info) | 896 | (if (org-export-numbered-headline-p datum info) |
| 897 | (mapconcat #'number-to-string | 897 | (mapconcat #'number-to-string |
| @@ -907,7 +907,7 @@ as a plist." | |||
| 907 | (org-element-lineage datum | 907 | (org-element-lineage datum |
| 908 | '(headline paragraph src-block table) t))) | 908 | '(headline paragraph src-block table) t))) |
| 909 | (pcase (org-element-type enumerable) | 909 | (pcase (org-element-type enumerable) |
| 910 | (`headline | 910 | ('headline |
| 911 | (format (org-ascii--translate "See section %s" info) | 911 | (format (org-ascii--translate "See section %s" info) |
| 912 | (if (org-export-numbered-headline-p enumerable info) | 912 | (if (org-export-numbered-headline-p enumerable info) |
| 913 | (mapconcat #'number-to-string number ".") | 913 | (mapconcat #'number-to-string number ".") |
| @@ -915,11 +915,11 @@ as a plist." | |||
| 915 | (org-element-property :title enumerable) info)))) | 915 | (org-element-property :title enumerable) info)))) |
| 916 | ((guard (not number)) | 916 | ((guard (not number)) |
| 917 | (org-ascii--translate "Unknown reference" info)) | 917 | (org-ascii--translate "Unknown reference" info)) |
| 918 | (`paragraph | 918 | ('paragraph |
| 919 | (format (org-ascii--translate "See figure %s" info) number)) | 919 | (format (org-ascii--translate "See figure %s" info) number)) |
| 920 | (`src-block | 920 | ('src-block |
| 921 | (format (org-ascii--translate "See listing %s" info) number)) | 921 | (format (org-ascii--translate "See listing %s" info) number)) |
| 922 | (`table | 922 | ('table |
| 923 | (format (org-ascii--translate "See table %s" info) number)) | 923 | (format (org-ascii--translate "See table %s" info) number)) |
| 924 | (_ (org-ascii--translate "Unknown reference" info))))))) | 924 | (_ (org-ascii--translate "Unknown reference" info))))))) |
| 925 | 925 | ||
| @@ -970,9 +970,9 @@ channel." | |||
| 970 | INFO is a plist used as a communication channel." | 970 | INFO is a plist used as a communication channel." |
| 971 | (let ((utf8p (eq (plist-get info :ascii-charset) 'utf-8))) | 971 | (let ((utf8p (eq (plist-get info :ascii-charset) 'utf-8))) |
| 972 | (pcase (org-element-property :checkbox item) | 972 | (pcase (org-element-property :checkbox item) |
| 973 | (`on (if utf8p "☑ " "[X] ")) | 973 | ('on (if utf8p "☑ " "[X] ")) |
| 974 | (`off (if utf8p "☠" "[ ] ")) | 974 | ('off (if utf8p "☠" "[ ] ")) |
| 975 | (`trans (if utf8p "☒ " "[-] "))))) | 975 | ('trans (if utf8p "☒ " "[-] "))))) |
| 976 | 976 | ||
| 977 | 977 | ||
| 978 | 978 | ||
| @@ -1450,11 +1450,11 @@ contextual information." | |||
| 1450 | ;; First parent of ITEM is always the plain-list. Get | 1450 | ;; First parent of ITEM is always the plain-list. Get |
| 1451 | ;; `:type' property from it. | 1451 | ;; `:type' property from it. |
| 1452 | (pcase list-type | 1452 | (pcase list-type |
| 1453 | (`descriptive | 1453 | ('descriptive |
| 1454 | (concat checkbox | 1454 | (concat checkbox |
| 1455 | (org-export-data (org-element-property :tag item) | 1455 | (org-export-data (org-element-property :tag item) |
| 1456 | info))) | 1456 | info))) |
| 1457 | (`ordered | 1457 | ('ordered |
| 1458 | ;; Return correct number for ITEM, paying attention to | 1458 | ;; Return correct number for ITEM, paying attention to |
| 1459 | ;; counters. | 1459 | ;; counters. |
| 1460 | (let* ((struct (org-element-property :structure item)) | 1460 | (let* ((struct (org-element-property :structure item)) |
| @@ -1586,8 +1586,8 @@ INFO is a plist holding contextual information." | |||
| 1586 | (format " (%s)" | 1586 | (format " (%s)" |
| 1587 | (org-ascii--describe-datum destination info))))) | 1587 | (org-ascii--describe-datum destination info))))) |
| 1588 | ;; External file. | 1588 | ;; External file. |
| 1589 | (`plain-text destination) | 1589 | ('plain-text destination) |
| 1590 | (`headline | 1590 | ('headline |
| 1591 | (if (org-export-numbered-headline-p destination info) | 1591 | (if (org-export-numbered-headline-p destination info) |
| 1592 | (mapconcat #'number-to-string | 1592 | (mapconcat #'number-to-string |
| 1593 | (org-export-get-headline-number destination info) | 1593 | (org-export-get-headline-number destination info) |
diff --git a/lisp/org/ox-html.el b/lisp/org/ox-html.el index 6166a4ad019..dd61ad926cb 100644 --- a/lisp/org/ox-html.el +++ b/lisp/org/ox-html.el | |||
| @@ -624,12 +624,12 @@ export back-end currently used." | |||
| 624 | (match-string 1 options) | 624 | (match-string 1 options) |
| 625 | default))) | 625 | default))) |
| 626 | (pcase opt | 626 | (pcase opt |
| 627 | (`path (setq template | 627 | ('path (setq template |
| 628 | (replace-regexp-in-string | 628 | (replace-regexp-in-string |
| 629 | "%SCRIPT_PATH" val template t t))) | 629 | "%SCRIPT_PATH" val template t t))) |
| 630 | (`sdepth (when (integerp (read val)) | 630 | ('sdepth (when (integerp (read val)) |
| 631 | (setq sdepth (min (read val) sdepth)))) | 631 | (setq sdepth (min (read val) sdepth)))) |
| 632 | (`tdepth (when (integerp (read val)) | 632 | ('tdepth (when (integerp (read val)) |
| 633 | (setq tdepth (min (read val) tdepth)))) | 633 | (setq tdepth (min (read val) tdepth)))) |
| 634 | (_ (setq val | 634 | (_ (setq val |
| 635 | (cond | 635 | (cond |
| @@ -2739,19 +2739,19 @@ INFO is a plist holding contextual information. See | |||
| 2739 | (extra-newline (if (and (org-string-nw-p contents) headline) "\n" ""))) | 2739 | (extra-newline (if (and (org-string-nw-p contents) headline) "\n" ""))) |
| 2740 | (concat | 2740 | (concat |
| 2741 | (pcase type | 2741 | (pcase type |
| 2742 | (`ordered | 2742 | ('ordered |
| 2743 | (let* ((counter term-counter-id) | 2743 | (let* ((counter term-counter-id) |
| 2744 | (extra (if counter (format " value=\"%s\"" counter) ""))) | 2744 | (extra (if counter (format " value=\"%s\"" counter) ""))) |
| 2745 | (concat | 2745 | (concat |
| 2746 | (format "<li%s%s>" class extra) | 2746 | (format "<li%s%s>" class extra) |
| 2747 | (when headline (concat headline br))))) | 2747 | (when headline (concat headline br))))) |
| 2748 | (`unordered | 2748 | ('unordered |
| 2749 | (let* ((id term-counter-id) | 2749 | (let* ((id term-counter-id) |
| 2750 | (extra (if id (format " id=\"%s\"" id) ""))) | 2750 | (extra (if id (format " id=\"%s\"" id) ""))) |
| 2751 | (concat | 2751 | (concat |
| 2752 | (format "<li%s%s>" class extra) | 2752 | (format "<li%s%s>" class extra) |
| 2753 | (when headline (concat headline br))))) | 2753 | (when headline (concat headline br))))) |
| 2754 | (`descriptive | 2754 | ('descriptive |
| 2755 | (let* ((term term-counter-id)) | 2755 | (let* ((term term-counter-id)) |
| 2756 | (setq term (or term "(no term)")) | 2756 | (setq term (or term "(no term)")) |
| 2757 | ;; Check-boxes in descriptive lists are associated to tag. | 2757 | ;; Check-boxes in descriptive lists are associated to tag. |
| @@ -2763,9 +2763,9 @@ INFO is a plist holding contextual information. See | |||
| 2763 | (and (org-string-nw-p contents) (org-trim contents)) | 2763 | (and (org-string-nw-p contents) (org-trim contents)) |
| 2764 | extra-newline | 2764 | extra-newline |
| 2765 | (pcase type | 2765 | (pcase type |
| 2766 | (`ordered "</li>") | 2766 | ('ordered "</li>") |
| 2767 | (`unordered "</li>") | 2767 | ('unordered "</li>") |
| 2768 | (`descriptive "</dd>"))))) | 2768 | ('descriptive "</dd>"))))) |
| 2769 | 2769 | ||
| 2770 | (defun org-html-item (item contents info) | 2770 | (defun org-html-item (item contents info) |
| 2771 | "Transcode an ITEM element from Org to HTML. | 2771 | "Transcode an ITEM element from Org to HTML. |
| @@ -2902,8 +2902,8 @@ if its description is a single link targeting an image file." | |||
| 2902 | (cons 'plain-text org-element-all-objects) | 2902 | (cons 'plain-text org-element-all-objects) |
| 2903 | (lambda (obj) | 2903 | (lambda (obj) |
| 2904 | (pcase (org-element-type obj) | 2904 | (pcase (org-element-type obj) |
| 2905 | (`plain-text (org-string-nw-p obj)) | 2905 | ('plain-text (org-string-nw-p obj)) |
| 2906 | (`link (if (= link-count 1) t | 2906 | ('link (if (= link-count 1) t |
| 2907 | (cl-incf link-count) | 2907 | (cl-incf link-count) |
| 2908 | (not (org-export-inline-image-p | 2908 | (not (org-export-inline-image-p |
| 2909 | obj (plist-get info :html-inline-image-rules))))) | 2909 | obj (plist-get info :html-inline-image-rules))))) |
| @@ -2930,8 +2930,8 @@ images, set it to: | |||
| 2930 | 2930 | ||
| 2931 | (lambda (paragraph) (org-element-property :caption paragraph))" | 2931 | (lambda (paragraph) (org-element-property :caption paragraph))" |
| 2932 | (let ((paragraph (pcase (org-element-type element) | 2932 | (let ((paragraph (pcase (org-element-type element) |
| 2933 | (`paragraph element) | 2933 | ('paragraph element) |
| 2934 | (`link (org-export-get-parent element))))) | 2934 | ('link (org-export-get-parent element))))) |
| 2935 | (and (eq (org-element-type paragraph) 'paragraph) | 2935 | (and (eq (org-element-type paragraph) 'paragraph) |
| 2936 | (or (not (fboundp 'org-html-standalone-image-predicate)) | 2936 | (or (not (fboundp 'org-html-standalone-image-predicate)) |
| 2937 | (funcall org-html-standalone-image-predicate paragraph)) | 2937 | (funcall org-html-standalone-image-predicate paragraph)) |
| @@ -2941,8 +2941,8 @@ images, set it to: | |||
| 2941 | (cons 'plain-text org-element-all-objects) | 2941 | (cons 'plain-text org-element-all-objects) |
| 2942 | (lambda (obj) | 2942 | (lambda (obj) |
| 2943 | (when (pcase (org-element-type obj) | 2943 | (when (pcase (org-element-type obj) |
| 2944 | (`plain-text (org-string-nw-p obj)) | 2944 | ('plain-text (org-string-nw-p obj)) |
| 2945 | (`link (or (> (cl-incf link-count) 1) | 2945 | ('link (or (> (cl-incf link-count) 1) |
| 2946 | (not (org-html-inline-image-p obj info)))) | 2946 | (not (org-html-inline-image-p obj info)))) |
| 2947 | (_ t)) | 2947 | (_ t)) |
| 2948 | (throw 'exit nil))) | 2948 | (throw 'exit nil))) |
| @@ -3046,7 +3046,7 @@ INFO is a plist holding contextual information. See | |||
| 3046 | (org-export-resolve-id-link link info)))) | 3046 | (org-export-resolve-id-link link info)))) |
| 3047 | (pcase (org-element-type destination) | 3047 | (pcase (org-element-type destination) |
| 3048 | ;; ID link points to an external file. | 3048 | ;; ID link points to an external file. |
| 3049 | (`plain-text | 3049 | ('plain-text |
| 3050 | (let ((fragment (concat "ID-" path)) | 3050 | (let ((fragment (concat "ID-" path)) |
| 3051 | ;; Treat links to ".org" files as ".html", if needed. | 3051 | ;; Treat links to ".org" files as ".html", if needed. |
| 3052 | (path (funcall link-org-files-as-html-maybe | 3052 | (path (funcall link-org-files-as-html-maybe |
| @@ -3054,13 +3054,13 @@ INFO is a plist holding contextual information. See | |||
| 3054 | (format "<a href=\"%s#%s\"%s>%s</a>" | 3054 | (format "<a href=\"%s#%s\"%s>%s</a>" |
| 3055 | path fragment attributes (or desc destination)))) | 3055 | path fragment attributes (or desc destination)))) |
| 3056 | ;; Fuzzy link points nowhere. | 3056 | ;; Fuzzy link points nowhere. |
| 3057 | (`nil | 3057 | ('nil |
| 3058 | (format "<i>%s</i>" | 3058 | (format "<i>%s</i>" |
| 3059 | (or desc | 3059 | (or desc |
| 3060 | (org-export-data | 3060 | (org-export-data |
| 3061 | (org-element-property :raw-link link) info)))) | 3061 | (org-element-property :raw-link link) info)))) |
| 3062 | ;; Link points to a headline. | 3062 | ;; Link points to a headline. |
| 3063 | (`headline | 3063 | ('headline |
| 3064 | (let ((href (or (org-element-property :CUSTOM_ID destination) | 3064 | (let ((href (or (org-element-property :CUSTOM_ID destination) |
| 3065 | (org-export-get-reference destination info))) | 3065 | (org-export-get-reference destination info))) |
| 3066 | ;; What description to use? | 3066 | ;; What description to use? |
| @@ -3189,9 +3189,9 @@ the plist used as a communication channel." | |||
| 3189 | CONTENTS is the contents of the list. INFO is a plist holding | 3189 | CONTENTS is the contents of the list. INFO is a plist holding |
| 3190 | contextual information." | 3190 | contextual information." |
| 3191 | (let* ((type (pcase (org-element-property :type plain-list) | 3191 | (let* ((type (pcase (org-element-property :type plain-list) |
| 3192 | (`ordered "ol") | 3192 | ('ordered "ol") |
| 3193 | (`unordered "ul") | 3193 | ('unordered "ul") |
| 3194 | (`descriptive "dl") | 3194 | ('descriptive "dl") |
| 3195 | (other (error "Unknown HTML list type: %s" other)))) | 3195 | (other (error "Unknown HTML list type: %s" other)))) |
| 3196 | (class (format "org-%s" type)) | 3196 | (class (format "org-%s" type)) |
| 3197 | (attributes (org-export-read-attribute :attr_html plain-list))) | 3197 | (attributes (org-export-read-attribute :attr_html plain-list))) |
diff --git a/lisp/org/ox-latex.el b/lisp/org/ox-latex.el index 5aaaf991fde..332e42b7b99 100644 --- a/lisp/org/ox-latex.el +++ b/lisp/org/ox-latex.el | |||
| @@ -2434,7 +2434,7 @@ used as a communication channel." | |||
| 2434 | nil t)))) | 2434 | nil t)))) |
| 2435 | ;; Return proper string, depending on FLOAT. | 2435 | ;; Return proper string, depending on FLOAT. |
| 2436 | (pcase float | 2436 | (pcase float |
| 2437 | (`wrap (format "\\begin{wrapfigure}%s | 2437 | ('wrap (format "\\begin{wrapfigure}%s |
| 2438 | %s%s | 2438 | %s%s |
| 2439 | %s%s | 2439 | %s%s |
| 2440 | %s\\end{wrapfigure}" | 2440 | %s\\end{wrapfigure}" |
| @@ -2443,7 +2443,7 @@ used as a communication channel." | |||
| 2443 | (if center "\\centering" "") | 2443 | (if center "\\centering" "") |
| 2444 | comment-include image-code | 2444 | comment-include image-code |
| 2445 | (if caption-above-p "" caption))) | 2445 | (if caption-above-p "" caption))) |
| 2446 | (`sideways (format "\\begin{sidewaysfigure} | 2446 | ('sideways (format "\\begin{sidewaysfigure} |
| 2447 | %s%s | 2447 | %s%s |
| 2448 | %s%s | 2448 | %s%s |
| 2449 | %s\\end{sidewaysfigure}" | 2449 | %s\\end{sidewaysfigure}" |
| @@ -2451,7 +2451,7 @@ used as a communication channel." | |||
| 2451 | (if center "\\centering" "") | 2451 | (if center "\\centering" "") |
| 2452 | comment-include image-code | 2452 | comment-include image-code |
| 2453 | (if caption-above-p "" caption))) | 2453 | (if caption-above-p "" caption))) |
| 2454 | (`multicolumn (format "\\begin{figure*}%s | 2454 | ('multicolumn (format "\\begin{figure*}%s |
| 2455 | %s%s | 2455 | %s%s |
| 2456 | %s%s | 2456 | %s%s |
| 2457 | %s\\end{figure*}" | 2457 | %s\\end{figure*}" |
| @@ -2460,7 +2460,7 @@ used as a communication channel." | |||
| 2460 | (if center "\\centering" "") | 2460 | (if center "\\centering" "") |
| 2461 | comment-include image-code | 2461 | comment-include image-code |
| 2462 | (if caption-above-p "" caption))) | 2462 | (if caption-above-p "" caption))) |
| 2463 | (`figure (format "\\begin{figure}%s | 2463 | ('figure (format "\\begin{figure}%s |
| 2464 | %s%s | 2464 | %s%s |
| 2465 | %s%s | 2465 | %s%s |
| 2466 | %s\\end{figure}" | 2466 | %s\\end{figure}" |
| @@ -2767,12 +2767,12 @@ containing export options. Modify DATA by side-effect and return it." | |||
| 2767 | ;; Non-nil when OBJ can be added to the latex math block B. | 2767 | ;; Non-nil when OBJ can be added to the latex math block B. |
| 2768 | (lambda (obj b) | 2768 | (lambda (obj b) |
| 2769 | (pcase (org-element-type obj) | 2769 | (pcase (org-element-type obj) |
| 2770 | (`entity (org-element-property :latex-math-p obj)) | 2770 | ('entity (org-element-property :latex-math-p obj)) |
| 2771 | (`latex-fragment | 2771 | ('latex-fragment |
| 2772 | (let ((value (org-element-property :value obj))) | 2772 | (let ((value (org-element-property :value obj))) |
| 2773 | (or (string-prefix-p "\\(" value) | 2773 | (or (string-prefix-p "\\(" value) |
| 2774 | (string-match-p "\\`\\$[^$]" value)))) | 2774 | (string-match-p "\\`\\$[^$]" value)))) |
| 2775 | ((and type (or `subscript `superscript)) | 2775 | ((and type (or 'subscript 'superscript)) |
| 2776 | (not (memq type (mapcar #'org-element-type | 2776 | (not (memq type (mapcar #'org-element-type |
| 2777 | (org-element-contents b))))))))) | 2777 | (org-element-contents b))))))))) |
| 2778 | (org-element-map data '(entity latex-fragment subscript superscript) | 2778 | (org-element-map data '(entity latex-fragment subscript superscript) |
diff --git a/lisp/org/ox-man.el b/lisp/org/ox-man.el index 2bc6392dabb..aae9c5838ea 100644 --- a/lisp/org/ox-man.el +++ b/lisp/org/ox-man.el | |||
| @@ -552,9 +552,9 @@ contextual information." | |||
| 552 | (let* ((bullet (org-element-property :bullet item)) | 552 | (let* ((bullet (org-element-property :bullet item)) |
| 553 | (type (org-element-property :type (org-element-property :parent item))) | 553 | (type (org-element-property :type (org-element-property :parent item))) |
| 554 | (checkbox (pcase (org-element-property :checkbox item) | 554 | (checkbox (pcase (org-element-property :checkbox item) |
| 555 | (`on "\\o'\\(sq\\(mu'") | 555 | ('on "\\o'\\(sq\\(mu'") |
| 556 | (`off "\\(sq ") | 556 | ('off "\\(sq ") |
| 557 | (`trans "\\o'\\(sq\\(mi'"))) | 557 | ('trans "\\o'\\(sq\\(mi'"))) |
| 558 | 558 | ||
| 559 | (tag (let ((tag (org-element-property :tag item))) | 559 | (tag (let ((tag (org-element-property :tag item))) |
| 560 | ;; Check-boxes must belong to the tag. | 560 | ;; Check-boxes must belong to the tag. |
| @@ -861,7 +861,7 @@ a communication channel." | |||
| 861 | (push "|" alignment)) | 861 | (push "|" alignment)) |
| 862 | (push | 862 | (push |
| 863 | (concat (pcase (org-export-table-cell-alignment cell info) | 863 | (concat (pcase (org-export-table-cell-alignment cell info) |
| 864 | (`left "l") (`right "r") (`center "c")) | 864 | ('left "l") ('right "r") ('center "c")) |
| 865 | width | 865 | width |
| 866 | divider) | 866 | divider) |
| 867 | alignment) | 867 | alignment) |
diff --git a/lisp/org/ox-md.el b/lisp/org/ox-md.el index c4da8fcb145..a34b955dacf 100644 --- a/lisp/org/ox-md.el +++ b/lisp/org/ox-md.el | |||
| @@ -339,9 +339,9 @@ a communication channel." | |||
| 339 | (concat bullet | 339 | (concat bullet |
| 340 | (make-string (- 4 (length bullet)) ? ) | 340 | (make-string (- 4 (length bullet)) ? ) |
| 341 | (pcase (org-element-property :checkbox item) | 341 | (pcase (org-element-property :checkbox item) |
| 342 | (`on "[X] ") | 342 | ('on "[X] ") |
| 343 | (`trans "[-] ") | 343 | ('trans "[-] ") |
| 344 | (`off "[ ] ")) | 344 | ('off "[ ] ")) |
| 345 | (let ((tag (org-element-property :tag item))) | 345 | (let ((tag (org-element-property :tag item))) |
| 346 | (and tag (format "**%s:** "(org-export-data tag info)))) | 346 | (and tag (format "**%s:** "(org-export-data tag info)))) |
| 347 | (and contents | 347 | (and contents |
| @@ -400,11 +400,11 @@ a communication channel." | |||
| 400 | (org-export-resolve-fuzzy-link link info) | 400 | (org-export-resolve-fuzzy-link link info) |
| 401 | (org-export-resolve-id-link link info)))) | 401 | (org-export-resolve-id-link link info)))) |
| 402 | (pcase (org-element-type destination) | 402 | (pcase (org-element-type destination) |
| 403 | (`plain-text ; External file. | 403 | ('plain-text ; External file. |
| 404 | (let ((path (funcall link-org-files-as-md destination))) | 404 | (let ((path (funcall link-org-files-as-md destination))) |
| 405 | (if (not contents) (format "<%s>" path) | 405 | (if (not contents) (format "<%s>" path) |
| 406 | (format "[%s](%s)" contents path)))) | 406 | (format "[%s](%s)" contents path)))) |
| 407 | (`headline | 407 | ('headline |
| 408 | (format | 408 | (format |
| 409 | "[%s](#%s)" | 409 | "[%s](#%s)" |
| 410 | ;; Description. | 410 | ;; Description. |
diff --git a/lisp/org/ox-org.el b/lisp/org/ox-org.el index 1b5a7cc0c23..b673d49899b 100644 --- a/lisp/org/ox-org.el +++ b/lisp/org/ox-org.el | |||
| @@ -124,8 +124,8 @@ we make sure it is always called." | |||
| 124 | (let ((first-child (car (org-element-contents h))) | 124 | (let ((first-child (car (org-element-contents h))) |
| 125 | (new-section (org-element-create 'section))) | 125 | (new-section (org-element-create 'section))) |
| 126 | (pcase (org-element-type first-child) | 126 | (pcase (org-element-type first-child) |
| 127 | (`section nil) | 127 | ('section nil) |
| 128 | (`nil (org-element-adopt-elements h new-section)) | 128 | ('nil (org-element-adopt-elements h new-section)) |
| 129 | (_ (org-element-insert-before new-section first-child)))))) | 129 | (_ (org-element-insert-before new-section first-child)))))) |
| 130 | tree) | 130 | tree) |
| 131 | 131 | ||
diff --git a/lisp/org/ox-publish.el b/lisp/org/ox-publish.el index 80ef239b679..ff6723f407d 100644 --- a/lisp/org/ox-publish.el +++ b/lisp/org/ox-publish.el | |||
| @@ -618,7 +618,7 @@ files, when entire projects are published (see | |||
| 618 | (project-plist (cdr project)) | 618 | (project-plist (cdr project)) |
| 619 | (publishing-function | 619 | (publishing-function |
| 620 | (pcase (org-publish-property :publishing-function project) | 620 | (pcase (org-publish-property :publishing-function project) |
| 621 | (`nil (user-error "No publishing function chosen")) | 621 | ('nil (user-error "No publishing function chosen")) |
| 622 | ((and f (pred listp)) f) | 622 | ((and f (pred listp)) f) |
| 623 | (f (list f)))) | 623 | (f (list f)))) |
| 624 | (base-dir | 624 | (base-dir |
| @@ -703,7 +703,7 @@ return a string. Return value is a list as returned by | |||
| 703 | (file-name-as-directory | 703 | (file-name-as-directory |
| 704 | (org-publish-property :base-directory project))))) | 704 | (org-publish-property :base-directory project))))) |
| 705 | (pcase style | 705 | (pcase style |
| 706 | (`list | 706 | ('list |
| 707 | (cons 'unordered | 707 | (cons 'unordered |
| 708 | (mapcar | 708 | (mapcar |
| 709 | (lambda (f) | 709 | (lambda (f) |
| @@ -712,7 +712,7 @@ return a string. Return value is a list as returned by | |||
| 712 | style | 712 | style |
| 713 | project))) | 713 | project))) |
| 714 | files))) | 714 | files))) |
| 715 | (`tree | 715 | ('tree |
| 716 | (letrec ((files-only (cl-remove-if #'directory-name-p files)) | 716 | (letrec ((files-only (cl-remove-if #'directory-name-p files)) |
| 717 | (directories (cl-remove-if-not #'directory-name-p files)) | 717 | (directories (cl-remove-if-not #'directory-name-p files)) |
| 718 | (subtree-to-list | 718 | (subtree-to-list |
| @@ -778,7 +778,7 @@ Default for SITEMAP-FILENAME is `sitemap.org'." | |||
| 778 | (let ((retval t)) | 778 | (let ((retval t)) |
| 779 | ;; First we sort files: | 779 | ;; First we sort files: |
| 780 | (pcase sort-files | 780 | (pcase sort-files |
| 781 | (`alphabetically | 781 | ('alphabetically |
| 782 | (let ((A (if (funcall org-file-p a) | 782 | (let ((A (if (funcall org-file-p a) |
| 783 | (concat (file-name-directory a) | 783 | (concat (file-name-directory a) |
| 784 | (org-publish-find-title a project)) | 784 | (org-publish-find-title a project)) |
| @@ -791,7 +791,7 @@ Default for SITEMAP-FILENAME is `sitemap.org'." | |||
| 791 | (if ignore-case | 791 | (if ignore-case |
| 792 | (not (string-lessp (upcase B) (upcase A))) | 792 | (not (string-lessp (upcase B) (upcase A))) |
| 793 | (not (string-lessp B A)))))) | 793 | (not (string-lessp B A)))))) |
| 794 | ((or `anti-chronologically `chronologically) | 794 | ((or 'anti-chronologically 'chronologically) |
| 795 | (let* ((adate (org-publish-find-date a project)) | 795 | (let* ((adate (org-publish-find-date a project)) |
| 796 | (bdate (org-publish-find-date b project)) | 796 | (bdate (org-publish-find-date b project)) |
| 797 | (A (+ (ash (car adate) 16) (cadr adate))) | 797 | (A (+ (ash (car adate) 16) (cadr adate))) |
| @@ -800,7 +800,7 @@ Default for SITEMAP-FILENAME is `sitemap.org'." | |||
| 800 | (if (eq sort-files 'chronologically) | 800 | (if (eq sort-files 'chronologically) |
| 801 | (<= A B) | 801 | (<= A B) |
| 802 | (>= A B))))) | 802 | (>= A B))))) |
| 803 | (`nil nil) | 803 | ('nil nil) |
| 804 | (_ (user-error "Invalid sort value %s" sort-files))) | 804 | (_ (user-error "Invalid sort value %s" sort-files))) |
| 805 | ;; Directory-wise wins: | 805 | ;; Directory-wise wins: |
| 806 | (when (memq sort-folders '(first last)) | 806 | (when (memq sort-folders '(first last)) |
| @@ -1104,9 +1104,9 @@ publishing directory." | |||
| 1104 | "[[%s][%s]]" | 1104 | "[[%s][%s]]" |
| 1105 | ;; Destination. | 1105 | ;; Destination. |
| 1106 | (pcase (car target) | 1106 | (pcase (car target) |
| 1107 | (`nil (format "file:%s" file)) | 1107 | ('nil (format "file:%s" file)) |
| 1108 | (`id (format "id:%s" (cdr target))) | 1108 | ('id (format "id:%s" (cdr target))) |
| 1109 | (`custom-id (format "file:%s::#%s" file (cdr target))) | 1109 | ('custom-id (format "file:%s::#%s" file (cdr target))) |
| 1110 | (_ (format "file:%s::*%s" file (cdr target)))) | 1110 | (_ (format "file:%s::*%s" file (cdr target)))) |
| 1111 | ;; Description. | 1111 | ;; Description. |
| 1112 | (car (last entry))))) | 1112 | (car (last entry))))) |
diff --git a/lisp/org/ox-texinfo.el b/lisp/org/ox-texinfo.el index d877c9c63a2..624d13aa06b 100644 --- a/lisp/org/ox-texinfo.el +++ b/lisp/org/ox-texinfo.el | |||
| @@ -452,10 +452,10 @@ This is used to choose a separator for constructs like \\verb." | |||
| 452 | INFO is a plist used as a communication channel. See | 452 | INFO is a plist used as a communication channel. See |
| 453 | `org-texinfo-text-markup-alist' for details." | 453 | `org-texinfo-text-markup-alist' for details." |
| 454 | (pcase (cdr (assq markup org-texinfo-text-markup-alist)) | 454 | (pcase (cdr (assq markup org-texinfo-text-markup-alist)) |
| 455 | (`nil text) ;no markup: return raw text | 455 | ('nil text) ;no markup: return raw text |
| 456 | (`code (format "@code{%s}" (org-texinfo--sanitize-content text))) | 456 | ('code (format "@code{%s}" (org-texinfo--sanitize-content text))) |
| 457 | (`samp (format "@samp{%s}" (org-texinfo--sanitize-content text))) | 457 | ('samp (format "@samp{%s}" (org-texinfo--sanitize-content text))) |
| 458 | (`verb | 458 | ('verb |
| 459 | (let ((separator (org-texinfo--find-verb-separator text))) | 459 | (let ((separator (org-texinfo--find-verb-separator text))) |
| 460 | (format "@verb{%s%s%s}" separator text separator))) | 460 | (format "@verb{%s%s%s}" separator text separator))) |
| 461 | ;; Else use format string. | 461 | ;; Else use format string. |
| @@ -872,7 +872,7 @@ contextual information." | |||
| 872 | unnumbered) | 872 | unnumbered) |
| 873 | ((org-export-numbered-headline-p headline info) numbered) | 873 | ((org-export-numbered-headline-p headline info) numbered) |
| 874 | (t unnumbered))) | 874 | (t unnumbered))) |
| 875 | (`nil 'plain-list) | 875 | ('nil 'plain-list) |
| 876 | (_ (user-error "Invalid Texinfo class specification: %S" class)))) | 876 | (_ (user-error "Invalid Texinfo class specification: %S" class)))) |
| 877 | (_ (user-error "Invalid Texinfo class specification: %S" class))))))) | 877 | (_ (user-error "Invalid Texinfo class specification: %S" class))))))) |
| 878 | 878 | ||
| @@ -993,7 +993,7 @@ contextual information." | |||
| 993 | (list tag)))))) | 993 | (list tag)))))) |
| 994 | (format "%s\n%s" | 994 | (format "%s\n%s" |
| 995 | (pcase items | 995 | (pcase items |
| 996 | (`nil "@item") | 996 | ('nil "@item") |
| 997 | (`(,item) (concat "@item " item)) | 997 | (`(,item) (concat "@item " item)) |
| 998 | (`(,item . ,items) | 998 | (`(,item . ,items) |
| 999 | (concat "@item " item "\n" | 999 | (concat "@item " item "\n" |
| @@ -1077,18 +1077,18 @@ INFO is a plist holding contextual information. See | |||
| 1077 | (org-export-resolve-fuzzy-link link info) | 1077 | (org-export-resolve-fuzzy-link link info) |
| 1078 | (org-export-resolve-id-link link info)))) | 1078 | (org-export-resolve-id-link link info)))) |
| 1079 | (pcase (org-element-type destination) | 1079 | (pcase (org-element-type destination) |
| 1080 | (`nil | 1080 | ('nil |
| 1081 | (format org-texinfo-link-with-unknown-path-format | 1081 | (format org-texinfo-link-with-unknown-path-format |
| 1082 | (org-texinfo--sanitize-content path))) | 1082 | (org-texinfo--sanitize-content path))) |
| 1083 | ;; Id link points to an external file. | 1083 | ;; Id link points to an external file. |
| 1084 | (`plain-text | 1084 | ('plain-text |
| 1085 | (if desc (format "@uref{file://%s,%s}" destination desc) | 1085 | (if desc (format "@uref{file://%s,%s}" destination desc) |
| 1086 | (format "@uref{file://%s}" destination))) | 1086 | (format "@uref{file://%s}" destination))) |
| 1087 | ((or `headline | 1087 | ((or 'headline |
| 1088 | ;; Targets within headlines cannot be turned into | 1088 | ;; Targets within headlines cannot be turned into |
| 1089 | ;; @anchor{}, so we refer to the headline parent | 1089 | ;; @anchor{}, so we refer to the headline parent |
| 1090 | ;; directly. | 1090 | ;; directly. |
| 1091 | (and `target | 1091 | (and 'target |
| 1092 | (guard (eq 'headline | 1092 | (guard (eq 'headline |
| 1093 | (org-element-type | 1093 | (org-element-type |
| 1094 | (org-element-property :parent destination)))))) | 1094 | (org-element-property :parent destination)))))) |
| @@ -1547,9 +1547,9 @@ information." | |||
| 1547 | (let ((value (org-texinfo-plain-text | 1547 | (let ((value (org-texinfo-plain-text |
| 1548 | (org-timestamp-translate timestamp) info))) | 1548 | (org-timestamp-translate timestamp) info))) |
| 1549 | (pcase (org-element-property :type timestamp) | 1549 | (pcase (org-element-property :type timestamp) |
| 1550 | ((or `active `active-range) | 1550 | ((or 'active 'active-range) |
| 1551 | (format (plist-get info :texinfo-active-timestamp-format) value)) | 1551 | (format (plist-get info :texinfo-active-timestamp-format) value)) |
| 1552 | ((or `inactive `inactive-range) | 1552 | ((or 'inactive 'inactive-range) |
| 1553 | (format (plist-get info :texinfo-inactive-timestamp-format) value)) | 1553 | (format (plist-get info :texinfo-inactive-timestamp-format) value)) |
| 1554 | (_ (format (plist-get info :texinfo-diary-timestamp-format) value))))) | 1554 | (_ (format (plist-get info :texinfo-diary-timestamp-format) value))))) |
| 1555 | 1555 | ||
diff --git a/lisp/org/ox.el b/lisp/org/ox.el index ea7d1dc81f0..91637dd6351 100644 --- a/lisp/org/ox.el +++ b/lisp/org/ox.el | |||
| @@ -1954,8 +1954,8 @@ Return a string." | |||
| 1954 | (progn ,@body) | 1954 | (progn ,@body) |
| 1955 | (org-link-broken | 1955 | (org-link-broken |
| 1956 | (pcase (plist-get info :with-broken-links) | 1956 | (pcase (plist-get info :with-broken-links) |
| 1957 | (`nil (user-error "Unable to resolve link: %S" (nth 1 err))) | 1957 | ('nil (user-error "Unable to resolve link: %S" (nth 1 err))) |
| 1958 | (`mark (org-export-data | 1958 | ('mark (org-export-data |
| 1959 | (format "[BROKEN LINK: %s]" (nth 1 err)) info)) | 1959 | (format "[BROKEN LINK: %s]" (nth 1 err)) info)) |
| 1960 | (_ nil)))))) | 1960 | (_ nil)))))) |
| 1961 | (let* ((type (org-element-type data)) | 1961 | (let* ((type (org-element-type data)) |
| @@ -4278,7 +4278,7 @@ A search cell follows the pattern (TYPE . SEARCH) where | |||
| 4278 | A search cell is the internal representation of a fuzzy link. It | 4278 | A search cell is the internal representation of a fuzzy link. It |
| 4279 | ignores white spaces and statistics cookies, if applicable." | 4279 | ignores white spaces and statistics cookies, if applicable." |
| 4280 | (pcase (org-element-type datum) | 4280 | (pcase (org-element-type datum) |
| 4281 | (`headline | 4281 | ('headline |
| 4282 | (let ((title (split-string | 4282 | (let ((title (split-string |
| 4283 | (replace-regexp-in-string | 4283 | (replace-regexp-in-string |
| 4284 | "\\[[0-9]*\\(?:%\\|/[0-9]*\\)\\]" "" | 4284 | "\\[[0-9]*\\(?:%\\|/[0-9]*\\)\\]" "" |
| @@ -4289,7 +4289,7 @@ ignores white spaces and statistics cookies, if applicable." | |||
| 4289 | (cons 'other title) | 4289 | (cons 'other title) |
| 4290 | (let ((custom-id (org-element-property :custom-id datum))) | 4290 | (let ((custom-id (org-element-property :custom-id datum))) |
| 4291 | (and custom-id (cons 'custom-id custom-id))))))) | 4291 | (and custom-id (cons 'custom-id custom-id))))))) |
| 4292 | (`target | 4292 | ('target |
| 4293 | (list (cons 'target (split-string (org-element-property :value datum))))) | 4293 | (list (cons 'target (split-string (org-element-property :value datum))))) |
| 4294 | ((and (let name (org-element-property :name datum)) | 4294 | ((and (let name (org-element-property :name datum)) |
| 4295 | (guard name)) | 4295 | (guard name)) |
diff --git a/lisp/play/bubbles.el b/lisp/play/bubbles.el index a54682fff22..6379c708be5 100644 --- a/lisp/play/bubbles.el +++ b/lisp/play/bubbles.el | |||
| @@ -712,57 +712,57 @@ static char * dot3d_xpm[] = { | |||
| 712 | (defsubst bubbles--grid-width () | 712 | (defsubst bubbles--grid-width () |
| 713 | "Return the grid width for the current game theme." | 713 | "Return the grid width for the current game theme." |
| 714 | (car (pcase bubbles-game-theme | 714 | (car (pcase bubbles-game-theme |
| 715 | (`easy | 715 | ('easy |
| 716 | bubbles--grid-small) | 716 | bubbles--grid-small) |
| 717 | (`medium | 717 | ('medium |
| 718 | bubbles--grid-medium) | 718 | bubbles--grid-medium) |
| 719 | (`difficult | 719 | ('difficult |
| 720 | bubbles--grid-large) | 720 | bubbles--grid-large) |
| 721 | (`hard | 721 | ('hard |
| 722 | bubbles--grid-huge) | 722 | bubbles--grid-huge) |
| 723 | (`user-defined | 723 | ('user-defined |
| 724 | bubbles-grid-size)))) | 724 | bubbles-grid-size)))) |
| 725 | 725 | ||
| 726 | (defsubst bubbles--grid-height () | 726 | (defsubst bubbles--grid-height () |
| 727 | "Return the grid height for the current game theme." | 727 | "Return the grid height for the current game theme." |
| 728 | (cdr (pcase bubbles-game-theme | 728 | (cdr (pcase bubbles-game-theme |
| 729 | (`easy | 729 | ('easy |
| 730 | bubbles--grid-small) | 730 | bubbles--grid-small) |
| 731 | (`medium | 731 | ('medium |
| 732 | bubbles--grid-medium) | 732 | bubbles--grid-medium) |
| 733 | (`difficult | 733 | ('difficult |
| 734 | bubbles--grid-large) | 734 | bubbles--grid-large) |
| 735 | (`hard | 735 | ('hard |
| 736 | bubbles--grid-huge) | 736 | bubbles--grid-huge) |
| 737 | (`user-defined | 737 | ('user-defined |
| 738 | bubbles-grid-size)))) | 738 | bubbles-grid-size)))) |
| 739 | 739 | ||
| 740 | (defsubst bubbles--colors () | 740 | (defsubst bubbles--colors () |
| 741 | "Return the color list for the current game theme." | 741 | "Return the color list for the current game theme." |
| 742 | (pcase bubbles-game-theme | 742 | (pcase bubbles-game-theme |
| 743 | (`easy | 743 | ('easy |
| 744 | bubbles--colors-2) | 744 | bubbles--colors-2) |
| 745 | (`medium | 745 | ('medium |
| 746 | bubbles--colors-3) | 746 | bubbles--colors-3) |
| 747 | (`difficult | 747 | ('difficult |
| 748 | bubbles--colors-4) | 748 | bubbles--colors-4) |
| 749 | (`hard | 749 | ('hard |
| 750 | bubbles--colors-5) | 750 | bubbles--colors-5) |
| 751 | (`user-defined | 751 | ('user-defined |
| 752 | bubbles-colors))) | 752 | bubbles-colors))) |
| 753 | 753 | ||
| 754 | (defsubst bubbles--shift-mode () | 754 | (defsubst bubbles--shift-mode () |
| 755 | "Return the shift mode for the current game theme." | 755 | "Return the shift mode for the current game theme." |
| 756 | (pcase bubbles-game-theme | 756 | (pcase bubbles-game-theme |
| 757 | (`easy | 757 | ('easy |
| 758 | 'default) | 758 | 'default) |
| 759 | (`medium | 759 | ('medium |
| 760 | 'default) | 760 | 'default) |
| 761 | (`difficult | 761 | ('difficult |
| 762 | 'always) | 762 | 'always) |
| 763 | (`hard | 763 | ('hard |
| 764 | 'always) | 764 | 'always) |
| 765 | (`user-defined | 765 | ('user-defined |
| 766 | bubbles-shift-mode))) | 766 | bubbles-shift-mode))) |
| 767 | 767 | ||
| 768 | (defun bubbles-save-settings () | 768 | (defun bubbles-save-settings () |
| @@ -1328,11 +1328,11 @@ Return t if new char is non-empty." | |||
| 1328 | (when (and (display-images-p) | 1328 | (when (and (display-images-p) |
| 1329 | (not (eq bubbles-graphics-theme 'ascii))) | 1329 | (not (eq bubbles-graphics-theme 'ascii))) |
| 1330 | (let ((template (pcase bubbles-graphics-theme | 1330 | (let ((template (pcase bubbles-graphics-theme |
| 1331 | (`circles bubbles--image-template-circle) | 1331 | ('circles bubbles--image-template-circle) |
| 1332 | (`balls bubbles--image-template-ball) | 1332 | ('balls bubbles--image-template-ball) |
| 1333 | (`squares bubbles--image-template-square) | 1333 | ('squares bubbles--image-template-square) |
| 1334 | (`diamonds bubbles--image-template-diamond) | 1334 | ('diamonds bubbles--image-template-diamond) |
| 1335 | (`emacs bubbles--image-template-emacs)))) | 1335 | ('emacs bubbles--image-template-emacs)))) |
| 1336 | (setq bubbles--empty-image | 1336 | (setq bubbles--empty-image |
| 1337 | (create-image (replace-regexp-in-string | 1337 | (create-image (replace-regexp-in-string |
| 1338 | "^\"\\(.*\\)\t.*c .*\",$" | 1338 | "^\"\\(.*\\)\t.*c .*\",$" |
diff --git a/lisp/play/gamegrid.el b/lisp/play/gamegrid.el index 6edd085b59a..79825c4aaa5 100644 --- a/lisp/play/gamegrid.el +++ b/lisp/play/gamegrid.el | |||
| @@ -318,19 +318,19 @@ format." | |||
| 318 | (let ((data (gamegrid-match-spec-list data-spec-list)) | 318 | (let ((data (gamegrid-match-spec-list data-spec-list)) |
| 319 | (color (gamegrid-match-spec-list color-spec-list))) | 319 | (color (gamegrid-match-spec-list color-spec-list))) |
| 320 | (pcase data | 320 | (pcase data |
| 321 | (`color-x | 321 | ('color-x |
| 322 | (gamegrid-make-color-x-face color)) | 322 | (gamegrid-make-color-x-face color)) |
| 323 | (`grid-x | 323 | ('grid-x |
| 324 | (unless gamegrid-grid-x-face | 324 | (unless gamegrid-grid-x-face |
| 325 | (setq gamegrid-grid-x-face (gamegrid-make-grid-x-face))) | 325 | (setq gamegrid-grid-x-face (gamegrid-make-grid-x-face))) |
| 326 | gamegrid-grid-x-face) | 326 | gamegrid-grid-x-face) |
| 327 | (`mono-x | 327 | ('mono-x |
| 328 | (unless gamegrid-mono-x-face | 328 | (unless gamegrid-mono-x-face |
| 329 | (setq gamegrid-mono-x-face (gamegrid-make-mono-x-face))) | 329 | (setq gamegrid-mono-x-face (gamegrid-make-mono-x-face))) |
| 330 | gamegrid-mono-x-face) | 330 | gamegrid-mono-x-face) |
| 331 | (`color-tty | 331 | ('color-tty |
| 332 | (gamegrid-make-color-tty-face color)) | 332 | (gamegrid-make-color-tty-face color)) |
| 333 | (`mono-tty | 333 | ('mono-tty |
| 334 | (unless gamegrid-mono-tty-face | 334 | (unless gamegrid-mono-tty-face |
| 335 | (setq gamegrid-mono-tty-face (gamegrid-make-mono-tty-face))) | 335 | (setq gamegrid-mono-tty-face (gamegrid-make-mono-tty-face))) |
| 336 | gamegrid-mono-tty-face)))) | 336 | gamegrid-mono-tty-face)))) |
| @@ -557,7 +557,7 @@ On non-POSIX systems Emacs searches for FILE in the directory | |||
| 557 | specified by the variable `temporary-file-directory'. If necessary, | 557 | specified by the variable `temporary-file-directory'. If necessary, |
| 558 | FILE is created there." | 558 | FILE is created there." |
| 559 | (pcase system-type | 559 | (pcase system-type |
| 560 | ((or `ms-dos `windows-nt) | 560 | ((or 'ms-dos 'windows-nt) |
| 561 | (gamegrid-add-score-insecure file score)) | 561 | (gamegrid-add-score-insecure file score)) |
| 562 | (_ | 562 | (_ |
| 563 | (gamegrid-add-score-with-update-game-score file score)))) | 563 | (gamegrid-add-score-with-update-game-score file score)))) |
diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el index 59f4b07f13b..c6e60a130fe 100644 --- a/lisp/progmodes/autoconf.el +++ b/lisp/progmodes/autoconf.el | |||
| @@ -84,7 +84,7 @@ searching backwards at another AC_... command." | |||
| 84 | (setq-local syntax-propertize-function | 84 | (setq-local syntax-propertize-function |
| 85 | (syntax-propertize-rules ("\\<dnl\\>" (0 "<")))) | 85 | (syntax-propertize-rules ("\\<dnl\\>" (0 "<")))) |
| 86 | (setq-local font-lock-defaults | 86 | (setq-local font-lock-defaults |
| 87 | `(autoconf-font-lock-keywords nil nil)) | 87 | '(autoconf-font-lock-keywords nil nil)) |
| 88 | (setq-local imenu-generic-expression autoconf-imenu-generic-expression) | 88 | (setq-local imenu-generic-expression autoconf-imenu-generic-expression) |
| 89 | (setq-local indent-line-function #'indent-relative) | 89 | (setq-local indent-line-function #'indent-relative) |
| 90 | (setq-local add-log-current-defun-function | 90 | (setq-local add-log-current-defun-function |
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 972d214c0c4..83b27ef16c1 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el | |||
| @@ -241,7 +241,7 @@ to it is returned. This function does not modify the point or the mark." | |||
| 241 | 241 | ||
| 242 | ((eq position 'bol) | 242 | ((eq position 'bol) |
| 243 | (if (and (cc-bytecomp-fboundp 'line-beginning-position) (not point)) | 243 | (if (and (cc-bytecomp-fboundp 'line-beginning-position) (not point)) |
| 244 | `(line-beginning-position) | 244 | '(line-beginning-position) |
| 245 | `(save-excursion | 245 | `(save-excursion |
| 246 | ,@(if point `((goto-char ,point))) | 246 | ,@(if point `((goto-char ,point))) |
| 247 | (beginning-of-line) | 247 | (beginning-of-line) |
| @@ -249,7 +249,7 @@ to it is returned. This function does not modify the point or the mark." | |||
| 249 | 249 | ||
| 250 | ((eq position 'eol) | 250 | ((eq position 'eol) |
| 251 | (if (and (cc-bytecomp-fboundp 'line-end-position) (not point)) | 251 | (if (and (cc-bytecomp-fboundp 'line-end-position) (not point)) |
| 252 | `(line-end-position) | 252 | '(line-end-position) |
| 253 | `(save-excursion | 253 | `(save-excursion |
| 254 | ,@(if point `((goto-char ,point))) | 254 | ,@(if point `((goto-char ,point))) |
| 255 | (end-of-line) | 255 | (end-of-line) |
| @@ -285,7 +285,7 @@ to it is returned. This function does not modify the point or the mark." | |||
| 285 | 285 | ||
| 286 | ((eq position 'bopl) | 286 | ((eq position 'bopl) |
| 287 | (if (and (cc-bytecomp-fboundp 'line-beginning-position) (not point)) | 287 | (if (and (cc-bytecomp-fboundp 'line-beginning-position) (not point)) |
| 288 | `(line-beginning-position 0) | 288 | '(line-beginning-position 0) |
| 289 | `(save-excursion | 289 | `(save-excursion |
| 290 | ,@(if point `((goto-char ,point))) | 290 | ,@(if point `((goto-char ,point))) |
| 291 | (forward-line -1) | 291 | (forward-line -1) |
| @@ -293,7 +293,7 @@ to it is returned. This function does not modify the point or the mark." | |||
| 293 | 293 | ||
| 294 | ((eq position 'bonl) | 294 | ((eq position 'bonl) |
| 295 | (if (and (cc-bytecomp-fboundp 'line-beginning-position) (not point)) | 295 | (if (and (cc-bytecomp-fboundp 'line-beginning-position) (not point)) |
| 296 | `(line-beginning-position 2) | 296 | '(line-beginning-position 2) |
| 297 | `(save-excursion | 297 | `(save-excursion |
| 298 | ,@(if point `((goto-char ,point))) | 298 | ,@(if point `((goto-char ,point))) |
| 299 | (forward-line 1) | 299 | (forward-line 1) |
| @@ -301,7 +301,7 @@ to it is returned. This function does not modify the point or the mark." | |||
| 301 | 301 | ||
| 302 | ((eq position 'eopl) | 302 | ((eq position 'eopl) |
| 303 | (if (and (cc-bytecomp-fboundp 'line-end-position) (not point)) | 303 | (if (and (cc-bytecomp-fboundp 'line-end-position) (not point)) |
| 304 | `(line-end-position 0) | 304 | '(line-end-position 0) |
| 305 | `(save-excursion | 305 | `(save-excursion |
| 306 | ,@(if point `((goto-char ,point))) | 306 | ,@(if point `((goto-char ,point))) |
| 307 | (beginning-of-line) | 307 | (beginning-of-line) |
| @@ -310,7 +310,7 @@ to it is returned. This function does not modify the point or the mark." | |||
| 310 | 310 | ||
| 311 | ((eq position 'eonl) | 311 | ((eq position 'eonl) |
| 312 | (if (and (cc-bytecomp-fboundp 'line-end-position) (not point)) | 312 | (if (and (cc-bytecomp-fboundp 'line-end-position) (not point)) |
| 313 | `(line-end-position 2) | 313 | '(line-end-position 2) |
| 314 | `(save-excursion | 314 | `(save-excursion |
| 315 | ,@(if point `((goto-char ,point))) | 315 | ,@(if point `((goto-char ,point))) |
| 316 | (forward-line 1) | 316 | (forward-line 1) |
| @@ -482,17 +482,17 @@ to it is returned. This function does not modify the point or the mark." | |||
| 482 | ;; Get the regular expression `sentence-end'. | 482 | ;; Get the regular expression `sentence-end'. |
| 483 | (if (cc-bytecomp-fboundp 'sentence-end) | 483 | (if (cc-bytecomp-fboundp 'sentence-end) |
| 484 | ;; Emacs 22: | 484 | ;; Emacs 22: |
| 485 | `(sentence-end) | 485 | '(sentence-end) |
| 486 | ;; Emacs <22 + XEmacs | 486 | ;; Emacs <22 + XEmacs |
| 487 | `sentence-end)) | 487 | 'sentence-end)) |
| 488 | 488 | ||
| 489 | (defmacro c-default-value-sentence-end () | 489 | (defmacro c-default-value-sentence-end () |
| 490 | ;; Get the default value of the variable sentence end. | 490 | ;; Get the default value of the variable sentence end. |
| 491 | (if (cc-bytecomp-fboundp 'sentence-end) | 491 | (if (cc-bytecomp-fboundp 'sentence-end) |
| 492 | ;; Emacs 22: | 492 | ;; Emacs 22: |
| 493 | `(let (sentence-end) (sentence-end)) | 493 | '(let (sentence-end) (sentence-end)) |
| 494 | ;; Emacs <22 + XEmacs | 494 | ;; Emacs <22 + XEmacs |
| 495 | `(default-value 'sentence-end))) | 495 | '(default-value 'sentence-end))) |
| 496 | 496 | ||
| 497 | ;; The following is essentially `save-buffer-state' from lazy-lock.el. | 497 | ;; The following is essentially `save-buffer-state' from lazy-lock.el. |
| 498 | ;; It ought to be a standard macro. | 498 | ;; It ought to be a standard macro. |
| @@ -691,7 +691,7 @@ leave point unmoved. | |||
| 691 | 691 | ||
| 692 | A LIMIT for the search may be given. The start position is assumed to be | 692 | A LIMIT for the search may be given. The start position is assumed to be |
| 693 | before it." | 693 | before it." |
| 694 | `(let ((dest (c-safe-scan-lists ,(or pos `(point)) 1 0 ,limit))) | 694 | `(let ((dest (c-safe-scan-lists ,(or pos '(point)) 1 0 ,limit))) |
| 695 | (when dest (goto-char dest) dest))) | 695 | (when dest (goto-char dest) dest))) |
| 696 | 696 | ||
| 697 | (defmacro c-go-list-backward (&optional pos limit) | 697 | (defmacro c-go-list-backward (&optional pos limit) |
| @@ -701,7 +701,7 @@ leave point unmoved. | |||
| 701 | 701 | ||
| 702 | A LIMIT for the search may be given. The start position is assumed to be | 702 | A LIMIT for the search may be given. The start position is assumed to be |
| 703 | after it." | 703 | after it." |
| 704 | `(let ((dest (c-safe-scan-lists ,(or pos `(point)) -1 0 ,limit))) | 704 | `(let ((dest (c-safe-scan-lists ,(or pos '(point)) -1 0 ,limit))) |
| 705 | (when dest (goto-char dest) dest))) | 705 | (when dest (goto-char dest) dest))) |
| 706 | 706 | ||
| 707 | (defmacro c-up-list-forward (&optional pos limit) | 707 | (defmacro c-up-list-forward (&optional pos limit) |
| @@ -710,7 +710,7 @@ or nil if no such position exists. The point is used if POS is left out. | |||
| 710 | 710 | ||
| 711 | A limit for the search may be given. The start position is assumed to | 711 | A limit for the search may be given. The start position is assumed to |
| 712 | be before it." | 712 | be before it." |
| 713 | `(c-safe-scan-lists ,(or pos `(point)) 1 1 ,limit)) | 713 | `(c-safe-scan-lists ,(or pos '(point)) 1 1 ,limit)) |
| 714 | 714 | ||
| 715 | (defmacro c-up-list-backward (&optional pos limit) | 715 | (defmacro c-up-list-backward (&optional pos limit) |
| 716 | "Return the position of the start of the list sexp containing POS, | 716 | "Return the position of the start of the list sexp containing POS, |
| @@ -718,7 +718,7 @@ or nil if no such position exists. The point is used if POS is left out. | |||
| 718 | 718 | ||
| 719 | A limit for the search may be given. The start position is assumed to | 719 | A limit for the search may be given. The start position is assumed to |
| 720 | be after it." | 720 | be after it." |
| 721 | `(c-safe-scan-lists ,(or pos `(point)) -1 1 ,limit)) | 721 | `(c-safe-scan-lists ,(or pos '(point)) -1 1 ,limit)) |
| 722 | 722 | ||
| 723 | (defmacro c-down-list-forward (&optional pos limit) | 723 | (defmacro c-down-list-forward (&optional pos limit) |
| 724 | "Return the first position inside the first list sexp after POS, | 724 | "Return the first position inside the first list sexp after POS, |
| @@ -726,7 +726,7 @@ or nil if no such position exists. The point is used if POS is left out. | |||
| 726 | 726 | ||
| 727 | A limit for the search may be given. The start position is assumed to | 727 | A limit for the search may be given. The start position is assumed to |
| 728 | be before it." | 728 | be before it." |
| 729 | `(c-safe-scan-lists ,(or pos `(point)) 1 -1 ,limit)) | 729 | `(c-safe-scan-lists ,(or pos '(point)) 1 -1 ,limit)) |
| 730 | 730 | ||
| 731 | (defmacro c-down-list-backward (&optional pos limit) | 731 | (defmacro c-down-list-backward (&optional pos limit) |
| 732 | "Return the last position inside the last list sexp before POS, | 732 | "Return the last position inside the last list sexp before POS, |
| @@ -734,7 +734,7 @@ or nil if no such position exists. The point is used if POS is left out. | |||
| 734 | 734 | ||
| 735 | A limit for the search may be given. The start position is assumed to | 735 | A limit for the search may be given. The start position is assumed to |
| 736 | be after it." | 736 | be after it." |
| 737 | `(c-safe-scan-lists ,(or pos `(point)) -1 -1 ,limit)) | 737 | `(c-safe-scan-lists ,(or pos '(point)) -1 -1 ,limit)) |
| 738 | 738 | ||
| 739 | (defmacro c-go-up-list-forward (&optional pos limit) | 739 | (defmacro c-go-up-list-forward (&optional pos limit) |
| 740 | "Move the point to the first position after the list sexp containing POS, | 740 | "Move the point to the first position after the list sexp containing POS, |
| @@ -895,7 +895,7 @@ be after it." | |||
| 895 | ;; c-beginning-of-statement-1. | 895 | ;; c-beginning-of-statement-1. |
| 896 | ;; Languages which don't have EOL terminated statements always return NIL | 896 | ;; Languages which don't have EOL terminated statements always return NIL |
| 897 | ;; (they _know_ there's no vsemi ;-). | 897 | ;; (they _know_ there's no vsemi ;-). |
| 898 | `(if c-vsemi-status-unknown-p-fn (funcall c-vsemi-status-unknown-p-fn))) | 898 | '(if c-vsemi-status-unknown-p-fn (funcall c-vsemi-status-unknown-p-fn))) |
| 899 | 899 | ||
| 900 | 900 | ||
| 901 | (defmacro c-benign-error (format &rest args) | 901 | (defmacro c-benign-error (format &rest args) |
| @@ -1607,12 +1607,12 @@ with value CHAR in the region [FROM to)." | |||
| 1607 | (defmacro c-looking-at-non-alphnumspace () | 1607 | (defmacro c-looking-at-non-alphnumspace () |
| 1608 | "Are we looking at a character which isn't alphanumeric or space?" | 1608 | "Are we looking at a character which isn't alphanumeric or space?" |
| 1609 | (if (memq 'gen-comment-delim c-emacs-features) | 1609 | (if (memq 'gen-comment-delim c-emacs-features) |
| 1610 | `(looking-at | 1610 | '(looking-at |
| 1611 | "\\([;#]\\|\\'\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s$\\|\\s<\\|\\s>\\|\\s!\\)") | 1611 | "\\([;#]\\|\\'\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s$\\|\\s<\\|\\s>\\|\\s!\\)") |
| 1612 | `(or (looking-at | 1612 | '(or (looking-at |
| 1613 | "\\([;#]\\|\\'\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s$\\|\\s<\\|\\s>\\)" | 1613 | "\\([;#]\\|\\'\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s$\\|\\s<\\|\\s>\\)" |
| 1614 | (let ((prop (c-get-char-property (point) 'syntax-table))) | 1614 | (let ((prop (c-get-char-property (point) 'syntax-table))) |
| 1615 | (eq prop '(14))))))) ; '(14) is generic comment delimiter. | 1615 | (eq prop '(14))))))) ; '(14) is generic comment delimiter. |
| 1616 | 1616 | ||
| 1617 | 1617 | ||
| 1618 | (defsubst c-intersect-lists (list alist) | 1618 | (defsubst c-intersect-lists (list alist) |
| @@ -1836,7 +1836,7 @@ The returned string is of the type that can be used with | |||
| 1836 | non-nil, a caret is prepended to invert the set." | 1836 | non-nil, a caret is prepended to invert the set." |
| 1837 | ;; This function ought to be in the elisp core somewhere. | 1837 | ;; This function ought to be in the elisp core somewhere. |
| 1838 | (let ((str (if inverted "^" "")) char char2) | 1838 | (let ((str (if inverted "^" "")) char char2) |
| 1839 | (setq chars (sort (append chars nil) `<)) | 1839 | (setq chars (sort (append chars nil) #'<)) |
| 1840 | (while chars | 1840 | (while chars |
| 1841 | (setq char (pop chars)) | 1841 | (setq char (pop chars)) |
| 1842 | (if (memq char '(?\\ ?^ ?-)) | 1842 | (if (memq char '(?\\ ?^ ?-)) |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 7a6cfdd1b7d..9cd2174b665 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -1699,35 +1699,35 @@ comment at the start of cc-engine.el for more info." | |||
| 1699 | `(let ((beg ,beg) (end ,end)) | 1699 | `(let ((beg ,beg) (end ,end)) |
| 1700 | (put-text-property beg end 'c-is-sws t) | 1700 | (put-text-property beg end 'c-is-sws t) |
| 1701 | ,@(when (facep 'c-debug-is-sws-face) | 1701 | ,@(when (facep 'c-debug-is-sws-face) |
| 1702 | `((c-debug-add-face beg end 'c-debug-is-sws-face))))) | 1702 | '((c-debug-add-face beg end 'c-debug-is-sws-face))))) |
| 1703 | 1703 | ||
| 1704 | (defmacro c-put-in-sws (beg end) | 1704 | (defmacro c-put-in-sws (beg end) |
| 1705 | ;; This macro does a hidden buffer change. | 1705 | ;; This macro does a hidden buffer change. |
| 1706 | `(let ((beg ,beg) (end ,end)) | 1706 | `(let ((beg ,beg) (end ,end)) |
| 1707 | (put-text-property beg end 'c-in-sws t) | 1707 | (put-text-property beg end 'c-in-sws t) |
| 1708 | ,@(when (facep 'c-debug-is-sws-face) | 1708 | ,@(when (facep 'c-debug-is-sws-face) |
| 1709 | `((c-debug-add-face beg end 'c-debug-in-sws-face))))) | 1709 | '((c-debug-add-face beg end 'c-debug-in-sws-face))))) |
| 1710 | 1710 | ||
| 1711 | (defmacro c-remove-is-sws (beg end) | 1711 | (defmacro c-remove-is-sws (beg end) |
| 1712 | ;; This macro does a hidden buffer change. | 1712 | ;; This macro does a hidden buffer change. |
| 1713 | `(let ((beg ,beg) (end ,end)) | 1713 | `(let ((beg ,beg) (end ,end)) |
| 1714 | (remove-text-properties beg end '(c-is-sws nil)) | 1714 | (remove-text-properties beg end '(c-is-sws nil)) |
| 1715 | ,@(when (facep 'c-debug-is-sws-face) | 1715 | ,@(when (facep 'c-debug-is-sws-face) |
| 1716 | `((c-debug-remove-face beg end 'c-debug-is-sws-face))))) | 1716 | '((c-debug-remove-face beg end 'c-debug-is-sws-face))))) |
| 1717 | 1717 | ||
| 1718 | (defmacro c-remove-in-sws (beg end) | 1718 | (defmacro c-remove-in-sws (beg end) |
| 1719 | ;; This macro does a hidden buffer change. | 1719 | ;; This macro does a hidden buffer change. |
| 1720 | `(let ((beg ,beg) (end ,end)) | 1720 | `(let ((beg ,beg) (end ,end)) |
| 1721 | (remove-text-properties beg end '(c-in-sws nil)) | 1721 | (remove-text-properties beg end '(c-in-sws nil)) |
| 1722 | ,@(when (facep 'c-debug-is-sws-face) | 1722 | ,@(when (facep 'c-debug-is-sws-face) |
| 1723 | `((c-debug-remove-face beg end 'c-debug-in-sws-face))))) | 1723 | '((c-debug-remove-face beg end 'c-debug-in-sws-face))))) |
| 1724 | 1724 | ||
| 1725 | (defmacro c-remove-is-and-in-sws (beg end) | 1725 | (defmacro c-remove-is-and-in-sws (beg end) |
| 1726 | ;; This macro does a hidden buffer change. | 1726 | ;; This macro does a hidden buffer change. |
| 1727 | `(let ((beg ,beg) (end ,end)) | 1727 | `(let ((beg ,beg) (end ,end)) |
| 1728 | (remove-text-properties beg end '(c-is-sws nil c-in-sws nil)) | 1728 | (remove-text-properties beg end '(c-is-sws nil c-in-sws nil)) |
| 1729 | ,@(when (facep 'c-debug-is-sws-face) | 1729 | ,@(when (facep 'c-debug-is-sws-face) |
| 1730 | `((c-debug-remove-face beg end 'c-debug-is-sws-face) | 1730 | '((c-debug-remove-face beg end 'c-debug-is-sws-face) |
| 1731 | (c-debug-remove-face beg end 'c-debug-in-sws-face))))) | 1731 | (c-debug-remove-face beg end 'c-debug-in-sws-face))))) |
| 1732 | 1732 | ||
| 1733 | ;; The type of literal position `end' is in a `before-change-functions' | 1733 | ;; The type of literal position `end' is in a `before-change-functions' |
| @@ -6873,8 +6873,8 @@ comment at the start of cc-engine.el for more info." | |||
| 6873 | `(let (res) | 6873 | `(let (res) |
| 6874 | (setq c-last-identifier-range nil) | 6874 | (setq c-last-identifier-range nil) |
| 6875 | (while (if (setq res ,(if (eq type 'type) | 6875 | (while (if (setq res ,(if (eq type 'type) |
| 6876 | `(c-forward-type) | 6876 | '(c-forward-type) |
| 6877 | `(c-forward-name))) | 6877 | '(c-forward-name))) |
| 6878 | nil | 6878 | nil |
| 6879 | (cond ((looking-at c-keywords-regexp) | 6879 | (cond ((looking-at c-keywords-regexp) |
| 6880 | (c-forward-keyword-clause 1)) | 6880 | (c-forward-keyword-clause 1)) |
| @@ -6884,8 +6884,8 @@ comment at the start of cc-engine.el for more info." | |||
| 6884 | (when (memq res '(t known found prefix maybe)) | 6884 | (when (memq res '(t known found prefix maybe)) |
| 6885 | (when c-record-type-identifiers | 6885 | (when c-record-type-identifiers |
| 6886 | ,(if (eq type 'type) | 6886 | ,(if (eq type 'type) |
| 6887 | `(c-record-type-id c-last-identifier-range) | 6887 | '(c-record-type-id c-last-identifier-range) |
| 6888 | `(c-record-ref-id c-last-identifier-range))) | 6888 | '(c-record-ref-id c-last-identifier-range))) |
| 6889 | t))) | 6889 | t))) |
| 6890 | 6890 | ||
| 6891 | (defmacro c-forward-id-comma-list (type update-safe-pos) | 6891 | (defmacro c-forward-id-comma-list (type update-safe-pos) |
| @@ -6896,7 +6896,7 @@ comment at the start of cc-engine.el for more info." | |||
| 6896 | ;; This macro might do hidden buffer changes. | 6896 | ;; This macro might do hidden buffer changes. |
| 6897 | `(while (and (progn | 6897 | `(while (and (progn |
| 6898 | ,(when update-safe-pos | 6898 | ,(when update-safe-pos |
| 6899 | `(setq safe-pos (point))) | 6899 | '(setq safe-pos (point))) |
| 6900 | (eq (char-after) ?,)) | 6900 | (eq (char-after) ?,)) |
| 6901 | (progn | 6901 | (progn |
| 6902 | (forward-char) | 6902 | (forward-char) |
| @@ -7917,7 +7917,7 @@ comment at the start of cc-engine.el for more info." | |||
| 7917 | ;; a comma. If either of <symbol> or bracketed <expression> is missing, | 7917 | ;; a comma. If either of <symbol> or bracketed <expression> is missing, |
| 7918 | ;; throw nil to 'level. If the terminating } or ) is unmatched, throw nil | 7918 | ;; throw nil to 'level. If the terminating } or ) is unmatched, throw nil |
| 7919 | ;; to 'done. This is not a general purpose macro! | 7919 | ;; to 'done. This is not a general purpose macro! |
| 7920 | `(while (eq (char-before) ?,) | 7920 | '(while (eq (char-before) ?,) |
| 7921 | (backward-char) | 7921 | (backward-char) |
| 7922 | (c-backward-syntactic-ws) | 7922 | (c-backward-syntactic-ws) |
| 7923 | (when (not (memq (char-before) '(?\) ?}))) | 7923 | (when (not (memq (char-before) '(?\) ?}))) |
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index 79254ff7553..a216061426c 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el | |||
| @@ -672,7 +672,7 @@ stuff. Used on level 1 and higher." | |||
| 672 | 672 | ||
| 673 | ,@(when (c-major-mode-is 'pike-mode) | 673 | ,@(when (c-major-mode-is 'pike-mode) |
| 674 | ;; Recognize hashbangs in Pike. | 674 | ;; Recognize hashbangs in Pike. |
| 675 | `((eval . (list "\\`#![^\n\r]*" | 675 | '((eval . (list "\\`#![^\n\r]*" |
| 676 | 0 c-preprocessor-face-name)))) | 676 | 0 c-preprocessor-face-name)))) |
| 677 | 677 | ||
| 678 | ;; Make hard spaces visible through an inverted `font-lock-warning-face'. | 678 | ;; Make hard spaces visible through an inverted `font-lock-warning-face'. |
| @@ -1937,7 +1937,7 @@ on level 2 only and so aren't combined with `c-complex-decl-matchers'." | |||
| 1937 | 1937 | ||
| 1938 | ;; Fontify generic colon labels in languages that support them. | 1938 | ;; Fontify generic colon labels in languages that support them. |
| 1939 | ,@(when (c-lang-const c-recognize-colon-labels) | 1939 | ,@(when (c-lang-const c-recognize-colon-labels) |
| 1940 | `(c-font-lock-labels)))) | 1940 | '(c-font-lock-labels)))) |
| 1941 | 1941 | ||
| 1942 | (c-lang-defconst c-complex-decl-matchers | 1942 | (c-lang-defconst c-complex-decl-matchers |
| 1943 | "Complex font lock matchers for types and declarations. Used on level | 1943 | "Complex font lock matchers for types and declarations. Used on level |
| @@ -1983,10 +1983,10 @@ on level 2 only and so aren't combined with `c-complex-decl-matchers'." | |||
| 1983 | 1983 | ||
| 1984 | ;; Fontify angle bracket arglists like templates in C++. | 1984 | ;; Fontify angle bracket arglists like templates in C++. |
| 1985 | ,@(when (c-lang-const c-recognize-<>-arglists) | 1985 | ,@(when (c-lang-const c-recognize-<>-arglists) |
| 1986 | `(c-font-lock-<>-arglists)) | 1986 | '(c-font-lock-<>-arglists)) |
| 1987 | 1987 | ||
| 1988 | ,@(when (c-major-mode-is 'c++-mode) | 1988 | ,@(when (c-major-mode-is 'c++-mode) |
| 1989 | `(c-font-lock-c++-lambda-captures)) | 1989 | '(c-font-lock-c++-lambda-captures)) |
| 1990 | 1990 | ||
| 1991 | ;; The first two rules here mostly find occurrences that | 1991 | ;; The first two rules here mostly find occurrences that |
| 1992 | ;; `c-font-lock-declarations' has found already, but not | 1992 | ;; `c-font-lock-declarations' has found already, but not |
| @@ -2008,7 +2008,7 @@ on level 2 only and so aren't combined with `c-complex-decl-matchers'." | |||
| 2008 | ,@(when (c-major-mode-is 'c++-mode) | 2008 | ,@(when (c-major-mode-is 'c++-mode) |
| 2009 | ;; This pattern is a probably a "(MATCHER . ANCHORED-HIGHLIGHTER)" | 2009 | ;; This pattern is a probably a "(MATCHER . ANCHORED-HIGHLIGHTER)" |
| 2010 | ;; (see Elisp page "Search-based Fontification"). | 2010 | ;; (see Elisp page "Search-based Fontification"). |
| 2011 | `(("\\<new\\>" | 2011 | '(("\\<new\\>" |
| 2012 | (c-font-lock-c++-new)))) | 2012 | (c-font-lock-c++-new)))) |
| 2013 | )) | 2013 | )) |
| 2014 | 2014 | ||
| @@ -2076,10 +2076,10 @@ higher." | |||
| 2076 | t `(,@(when (c-lang-const c-brace-list-decl-kwds) | 2076 | t `(,@(when (c-lang-const c-brace-list-decl-kwds) |
| 2077 | ;; Fontify the remaining identifiers inside an enum list when we start | 2077 | ;; Fontify the remaining identifiers inside an enum list when we start |
| 2078 | ;; inside it. | 2078 | ;; inside it. |
| 2079 | `(c-font-lock-enum-tail | 2079 | '(c-font-lock-enum-tail |
| 2080 | ;; Fontify the identifiers inside enum lists. (The enum type | 2080 | ;; Fontify the identifiers inside enum lists. (The enum type |
| 2081 | ;; name is handled by `c-simple-decl-matchers' or | 2081 | ;; name is handled by `c-simple-decl-matchers' or |
| 2082 | ;; `c-complex-decl-matchers' below. | 2082 | ;; `c-complex-decl-matchers' below. |
| 2083 | c-font-lock-enum-body)) | 2083 | c-font-lock-enum-body)) |
| 2084 | 2084 | ||
| 2085 | ;; Fontify labels after goto etc. | 2085 | ;; Fontify labels after goto etc. |
| @@ -2130,7 +2130,7 @@ higher." | |||
| 2130 | (if (> (point) limit) (goto-char limit)))))))) | 2130 | (if (> (point) limit) (goto-char limit)))))))) |
| 2131 | 2131 | ||
| 2132 | ,@(when (c-major-mode-is 'java-mode) | 2132 | ,@(when (c-major-mode-is 'java-mode) |
| 2133 | `((eval . (list "\\<\\(@[a-zA-Z0-9]+\\)\\>" 1 c-annotation-face)))) | 2133 | '((eval . (list "\\<\\(@[a-zA-Z0-9]+\\)\\>" 1 c-annotation-face)))) |
| 2134 | )) | 2134 | )) |
| 2135 | 2135 | ||
| 2136 | (c-lang-defconst c-matchers-1 | 2136 | (c-lang-defconst c-matchers-1 |
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index de49ad75d3a..8c148e5e53d 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -293,7 +293,7 @@ the evaluated constant value at compile time." | |||
| 293 | ["Forward Statement" c-end-of-statement t] | 293 | ["Forward Statement" c-end-of-statement t] |
| 294 | ,@(when (c-lang-const c-opt-cpp-prefix) | 294 | ,@(when (c-lang-const c-opt-cpp-prefix) |
| 295 | ;; Only applicable if there's a cpp preprocessor. | 295 | ;; Only applicable if there's a cpp preprocessor. |
| 296 | `(["Up Conditional" c-up-conditional t] | 296 | '(["Up Conditional" c-up-conditional t] |
| 297 | ["Backward Conditional" c-backward-conditional t] | 297 | ["Backward Conditional" c-backward-conditional t] |
| 298 | ["Forward Conditional" c-forward-conditional t] | 298 | ["Forward Conditional" c-forward-conditional t] |
| 299 | "----" | 299 | "----" |
| @@ -383,9 +383,9 @@ The syntax tables aren't stored directly since they're quite large." | |||
| 383 | ;; its compiler directives as single keyword tokens. | 383 | ;; its compiler directives as single keyword tokens. |
| 384 | ;; This is then necessary since it's assumed that | 384 | ;; This is then necessary since it's assumed that |
| 385 | ;; every keyword is a single symbol. | 385 | ;; every keyword is a single symbol. |
| 386 | `(modify-syntax-entry ?@ "_" table)) | 386 | '(modify-syntax-entry ?@ "_" table)) |
| 387 | ((c-major-mode-is 'pike-mode) | 387 | ((c-major-mode-is 'pike-mode) |
| 388 | `(modify-syntax-entry ?@ "." table))) | 388 | '(modify-syntax-entry ?@ "." table))) |
| 389 | table))) | 389 | table))) |
| 390 | 390 | ||
| 391 | (c-lang-defconst c-mode-syntax-table | 391 | (c-lang-defconst c-mode-syntax-table |
| @@ -1046,16 +1046,16 @@ since CC Mode treats every identifier as an expression." | |||
| 1046 | ;; Primary. | 1046 | ;; Primary. |
| 1047 | ,@(c-lang-const c-identifier-ops) | 1047 | ,@(c-lang-const c-identifier-ops) |
| 1048 | ,@(cond ((or (c-major-mode-is 'c++-mode) (c-major-mode-is 'java-mode)) | 1048 | ,@(cond ((or (c-major-mode-is 'c++-mode) (c-major-mode-is 'java-mode)) |
| 1049 | `((postfix-if-paren "<" ">"))) ; Templates. | 1049 | '((postfix-if-paren "<" ">"))) ; Templates. |
| 1050 | ((c-major-mode-is 'pike-mode) | 1050 | ((c-major-mode-is 'pike-mode) |
| 1051 | `((prefix "global" "predef"))) | 1051 | '((prefix "global" "predef"))) |
| 1052 | ((c-major-mode-is 'java-mode) | 1052 | ((c-major-mode-is 'java-mode) |
| 1053 | `((prefix "super")))) | 1053 | '((prefix "super")))) |
| 1054 | 1054 | ||
| 1055 | ;; Postfix. | 1055 | ;; Postfix. |
| 1056 | ,@(when (c-major-mode-is 'c++-mode) | 1056 | ,@(when (c-major-mode-is 'c++-mode) |
| 1057 | ;; The following need special treatment. | 1057 | ;; The following need special treatment. |
| 1058 | `((prefix "dynamic_cast" "static_cast" | 1058 | '((prefix "dynamic_cast" "static_cast" |
| 1059 | "reinterpret_cast" "const_cast" "typeid" | 1059 | "reinterpret_cast" "const_cast" "typeid" |
| 1060 | "alignof"))) | 1060 | "alignof"))) |
| 1061 | (left-assoc "." | 1061 | (left-assoc "." |
| @@ -1085,7 +1085,7 @@ since CC Mode treats every identifier as an expression." | |||
| 1085 | 1085 | ||
| 1086 | ;; Member selection. | 1086 | ;; Member selection. |
| 1087 | ,@(when (c-major-mode-is 'c++-mode) | 1087 | ,@(when (c-major-mode-is 'c++-mode) |
| 1088 | `((left-assoc ".*" "->*"))) | 1088 | '((left-assoc ".*" "->*"))) |
| 1089 | 1089 | ||
| 1090 | ;; Multiplicative. | 1090 | ;; Multiplicative. |
| 1091 | (left-assoc "*" "/" "%") | 1091 | (left-assoc "*" "/" "%") |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 7d0884389eb..f9c390cd729 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -119,7 +119,7 @@ | |||
| 119 | (beginning-of-line 2) | 119 | (beginning-of-line 2) |
| 120 | (list ,file ,line))) | 120 | (list ,file ,line))) |
| 121 | (defmacro cperl-etags-snarf-tag (_file _line) | 121 | (defmacro cperl-etags-snarf-tag (_file _line) |
| 122 | `(etags-snarf-tag))) | 122 | '(etags-snarf-tag))) |
| 123 | (if (featurep 'xemacs) | 123 | (if (featurep 'xemacs) |
| 124 | (defmacro cperl-etags-goto-tag-location (elt) | 124 | (defmacro cperl-etags-goto-tag-location (elt) |
| 125 | ;;(progn | 125 | ;;(progn |
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index 07b58b53823..2837230752f 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -907,8 +907,8 @@ Return the buffer created." | |||
| 907 | (ebrowse-redraw-tree) | 907 | (ebrowse-redraw-tree) |
| 908 | (set-buffer-modified-p nil) | 908 | (set-buffer-modified-p nil) |
| 909 | (pcase pop | 909 | (pcase pop |
| 910 | (`switch (switch-to-buffer name)) | 910 | ('switch (switch-to-buffer name)) |
| 911 | (`pop (pop-to-buffer name))) | 911 | ('pop (pop-to-buffer name))) |
| 912 | (current-buffer))) | 912 | (current-buffer))) |
| 913 | 913 | ||
| 914 | 914 | ||
| @@ -1614,13 +1614,13 @@ specifies where to find/view the result." | |||
| 1614 | (setq view-mode-hook nil)) | 1614 | (setq view-mode-hook nil)) |
| 1615 | (push 'ebrowse-find-pattern view-mode-hook) | 1615 | (push 'ebrowse-find-pattern view-mode-hook) |
| 1616 | (pcase where | 1616 | (pcase where |
| 1617 | (`other-window (view-file-other-window file)) | 1617 | ('other-window (view-file-other-window file)) |
| 1618 | (`other-frame (ebrowse-view-file-other-frame file)) | 1618 | ('other-frame (ebrowse-view-file-other-frame file)) |
| 1619 | (_ (view-file file)))) | 1619 | (_ (view-file file)))) |
| 1620 | (t | 1620 | (t |
| 1621 | (pcase where | 1621 | (pcase where |
| 1622 | (`other-window (find-file-other-window file)) | 1622 | ('other-window (find-file-other-window file)) |
| 1623 | (`other-frame (find-file-other-frame file)) | 1623 | ('other-frame (find-file-other-frame file)) |
| 1624 | (_ (find-file file))) | 1624 | (_ (find-file file))) |
| 1625 | (ebrowse-find-pattern struc info)))) | 1625 | (ebrowse-find-pattern struc info)))) |
| 1626 | 1626 | ||
| @@ -1695,9 +1695,9 @@ INFO is a list (TREE-HEADER TREE-OR-MEMBER MEMBER-LIST)." | |||
| 1695 | (ebrowse-ms | 1695 | (ebrowse-ms |
| 1696 | (setf pattern | 1696 | (setf pattern |
| 1697 | (pcase member-list | 1697 | (pcase member-list |
| 1698 | ((or `ebrowse-ts-member-variables | 1698 | ((or 'ebrowse-ts-member-variables |
| 1699 | `ebrowse-ts-static-variables | 1699 | 'ebrowse-ts-static-variables |
| 1700 | `ebrowse-ts-types) | 1700 | 'ebrowse-ts-types) |
| 1701 | (ebrowse-variable-declaration-regexp | 1701 | (ebrowse-variable-declaration-regexp |
| 1702 | (ebrowse-bs-name position))) | 1702 | (ebrowse-bs-name position))) |
| 1703 | (_ | 1703 | (_ |
| @@ -3172,9 +3172,9 @@ EVENT is the mouse event." | |||
| 3172 | (2 (ebrowse-find-member-definition)) | 3172 | (2 (ebrowse-find-member-definition)) |
| 3173 | (1 (pcase (get-text-property (posn-point (event-start event)) | 3173 | (1 (pcase (get-text-property (posn-point (event-start event)) |
| 3174 | 'ebrowse-what) | 3174 | 'ebrowse-what) |
| 3175 | (`member-name | 3175 | ('member-name |
| 3176 | (ebrowse-popup-menu ebrowse-member-name-object-menu event)) | 3176 | (ebrowse-popup-menu ebrowse-member-name-object-menu event)) |
| 3177 | (`class-name | 3177 | ('class-name |
| 3178 | (ebrowse-popup-menu ebrowse-member-class-name-object-menu event)) | 3178 | (ebrowse-popup-menu ebrowse-member-class-name-object-menu event)) |
| 3179 | (_ | 3179 | (_ |
| 3180 | (ebrowse-popup-menu ebrowse-member-buffer-object-menu event)))))) | 3180 | (ebrowse-popup-menu ebrowse-member-buffer-object-menu event)))))) |
| @@ -3189,7 +3189,7 @@ EVENT is the mouse event." | |||
| 3189 | (2 (ebrowse-find-member-definition)) | 3189 | (2 (ebrowse-find-member-definition)) |
| 3190 | (1 (pcase (get-text-property (posn-point (event-start event)) | 3190 | (1 (pcase (get-text-property (posn-point (event-start event)) |
| 3191 | 'ebrowse-what) | 3191 | 'ebrowse-what) |
| 3192 | (`member-name | 3192 | ('member-name |
| 3193 | (ebrowse-view-member-definition 0)))))) | 3193 | (ebrowse-view-member-definition 0)))))) |
| 3194 | 3194 | ||
| 3195 | 3195 | ||
| @@ -3522,12 +3522,12 @@ KIND is an additional string printed in the buffer." | |||
| 3522 | (insert kind) | 3522 | (insert kind) |
| 3523 | (indent-to 50) | 3523 | (indent-to 50) |
| 3524 | (insert (pcase (cl-second info) | 3524 | (insert (pcase (cl-second info) |
| 3525 | (`ebrowse-ts-member-functions "member function") | 3525 | ('ebrowse-ts-member-functions "member function") |
| 3526 | (`ebrowse-ts-member-variables "member variable") | 3526 | ('ebrowse-ts-member-variables "member variable") |
| 3527 | (`ebrowse-ts-static-functions "static function") | 3527 | ('ebrowse-ts-static-functions "static function") |
| 3528 | (`ebrowse-ts-static-variables "static variable") | 3528 | ('ebrowse-ts-static-variables "static variable") |
| 3529 | (`ebrowse-ts-friends (if globals-p "define" "friend")) | 3529 | ('ebrowse-ts-friends (if globals-p "define" "friend")) |
| 3530 | (`ebrowse-ts-types "type") | 3530 | ('ebrowse-ts-types "type") |
| 3531 | (_ "unknown")) | 3531 | (_ "unknown")) |
| 3532 | "\n"))) | 3532 | "\n"))) |
| 3533 | 3533 | ||
| @@ -4371,7 +4371,7 @@ EVENT is the mouse event." | |||
| 4371 | (pcase (event-click-count event) | 4371 | (pcase (event-click-count event) |
| 4372 | (1 | 4372 | (1 |
| 4373 | (pcase property | 4373 | (pcase property |
| 4374 | (`class-name | 4374 | ('class-name |
| 4375 | (ebrowse-popup-menu ebrowse-tree-buffer-class-object-menu event)) | 4375 | (ebrowse-popup-menu ebrowse-tree-buffer-class-object-menu event)) |
| 4376 | (_ | 4376 | (_ |
| 4377 | (ebrowse-popup-menu ebrowse-tree-buffer-object-menu event))))))) | 4377 | (ebrowse-popup-menu ebrowse-tree-buffer-object-menu event))))))) |
| @@ -4386,7 +4386,7 @@ EVENT is the mouse event." | |||
| 4386 | (property (get-text-property where 'ebrowse-what))) | 4386 | (property (get-text-property where 'ebrowse-what))) |
| 4387 | (pcase (event-click-count event) | 4387 | (pcase (event-click-count event) |
| 4388 | (1 (pcase property | 4388 | (1 (pcase property |
| 4389 | (`class-name | 4389 | ('class-name |
| 4390 | (ebrowse-tree-command:show-member-functions))))))) | 4390 | (ebrowse-tree-command:show-member-functions))))))) |
| 4391 | 4391 | ||
| 4392 | 4392 | ||
| @@ -4399,11 +4399,11 @@ EVENT is the mouse event." | |||
| 4399 | (property (get-text-property where 'ebrowse-what))) | 4399 | (property (get-text-property where 'ebrowse-what))) |
| 4400 | (pcase (event-click-count event) | 4400 | (pcase (event-click-count event) |
| 4401 | (2 (pcase property | 4401 | (2 (pcase property |
| 4402 | (`class-name | 4402 | ('class-name |
| 4403 | (let ((collapsed (save-excursion (skip-chars-forward "^\r\n") | 4403 | (let ((collapsed (save-excursion (skip-chars-forward "^\r\n") |
| 4404 | (looking-at "\r")))) | 4404 | (looking-at "\r")))) |
| 4405 | (ebrowse-collapse-fn (not collapsed)))) | 4405 | (ebrowse-collapse-fn (not collapsed)))) |
| 4406 | (`mark | 4406 | ('mark |
| 4407 | (ebrowse-toggle-mark-at-point 1))))))) | 4407 | (ebrowse-toggle-mark-at-point 1))))))) |
| 4408 | 4408 | ||
| 4409 | 4409 | ||
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index f694252c407..39df9efda2c 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -271,14 +271,14 @@ Blank lines separate paragraphs. Semicolons start comments. | |||
| 271 | (unless | 271 | (unless |
| 272 | (setq res | 272 | (setq res |
| 273 | (pcase sexp | 273 | (pcase sexp |
| 274 | (`(,(or `let `let*) ,bindings) | 274 | (`(,(or 'let 'let*) ,bindings) |
| 275 | (let ((vars vars)) | 275 | (let ((vars vars)) |
| 276 | (when (eq 'let* (car sexp)) | 276 | (when (eq 'let* (car sexp)) |
| 277 | (dolist (binding (cdr (reverse bindings))) | 277 | (dolist (binding (cdr (reverse bindings))) |
| 278 | (push (or (car-safe binding) binding) vars))) | 278 | (push (or (car-safe binding) binding) vars))) |
| 279 | (elisp--local-variables-1 | 279 | (elisp--local-variables-1 |
| 280 | vars (car (cdr-safe (car (last bindings))))))) | 280 | vars (car (cdr-safe (car (last bindings))))))) |
| 281 | (`(,(or `let `let*) ,bindings . ,body) | 281 | (`(,(or 'let 'let*) ,bindings . ,body) |
| 282 | (let ((vars vars)) | 282 | (let ((vars vars)) |
| 283 | (dolist (binding bindings) | 283 | (dolist (binding bindings) |
| 284 | (push (or (car-safe binding) binding) vars)) | 284 | (push (or (car-safe binding) binding) vars)) |
| @@ -300,7 +300,7 @@ Blank lines separate paragraphs. Semicolons start comments. | |||
| 300 | ;; FIXME: Handle `cond'. | 300 | ;; FIXME: Handle `cond'. |
| 301 | (`(,_ . ,_) | 301 | (`(,_ . ,_) |
| 302 | (elisp--local-variables-1 vars (car (last sexp)))) | 302 | (elisp--local-variables-1 vars (car (last sexp)))) |
| 303 | (`elisp--witness--lisp (or vars '(nil))) | 303 | ('elisp--witness--lisp (or vars '(nil))) |
| 304 | (_ nil))) | 304 | (_ nil))) |
| 305 | ;; We didn't find the witness in the last element so we try to | 305 | ;; We didn't find the witness in the last element so we try to |
| 306 | ;; backtrack to the last-but-one. | 306 | ;; backtrack to the last-but-one. |
| @@ -541,7 +541,7 @@ functions are annotated with \"<f>\" via the | |||
| 541 | (pcase parent | 541 | (pcase parent |
| 542 | ;; FIXME: Rather than hardcode special cases here, | 542 | ;; FIXME: Rather than hardcode special cases here, |
| 543 | ;; we should use something like a symbol-property. | 543 | ;; we should use something like a symbol-property. |
| 544 | (`declare | 544 | ('declare |
| 545 | (list t (mapcar (lambda (x) (symbol-name (car x))) | 545 | (list t (mapcar (lambda (x) (symbol-name (car x))) |
| 546 | (delete-dups | 546 | (delete-dups |
| 547 | ;; FIXME: We should include some | 547 | ;; FIXME: We should include some |
| @@ -549,14 +549,14 @@ functions are annotated with \"<f>\" via the | |||
| 549 | (append macro-declarations-alist | 549 | (append macro-declarations-alist |
| 550 | defun-declarations-alist | 550 | defun-declarations-alist |
| 551 | nil))))) ; Copy both alists. | 551 | nil))))) ; Copy both alists. |
| 552 | ((and (or `condition-case `condition-case-unless-debug) | 552 | ((and (or 'condition-case 'condition-case-unless-debug) |
| 553 | (guard (save-excursion | 553 | (guard (save-excursion |
| 554 | (ignore-errors | 554 | (ignore-errors |
| 555 | (forward-sexp 2) | 555 | (forward-sexp 2) |
| 556 | (< (point) beg))))) | 556 | (< (point) beg))))) |
| 557 | (list t obarray | 557 | (list t obarray |
| 558 | :predicate (lambda (sym) (get sym 'error-conditions)))) | 558 | :predicate (lambda (sym) (get sym 'error-conditions)))) |
| 559 | ((and (or ?\( `let `let*) | 559 | ((and (or ?\( 'let 'let*) |
| 560 | (guard (save-excursion | 560 | (guard (save-excursion |
| 561 | (goto-char (1- beg)) | 561 | (goto-char (1- beg)) |
| 562 | (when (eq parent ?\() | 562 | (when (eq parent ?\() |
diff --git a/lisp/progmodes/flymake-cc.el b/lisp/progmodes/flymake-cc.el index ebcfd7d1f6e..c95d32668fe 100644 --- a/lisp/progmodes/flymake-cc.el +++ b/lisp/progmodes/flymake-cc.el | |||
| @@ -78,7 +78,7 @@ SOURCE." | |||
| 78 | (defun flymake-cc-use-special-make-target () | 78 | (defun flymake-cc-use-special-make-target () |
| 79 | "Command for checking a file via a CHK_SOURCES Make target." | 79 | "Command for checking a file via a CHK_SOURCES Make target." |
| 80 | (unless (executable-find "make") (error "Make not found")) | 80 | (unless (executable-find "make") (error "Make not found")) |
| 81 | `("make" "check-syntax" "CHK_SOURCES=-x c -")) | 81 | '("make" "check-syntax" "CHK_SOURCES=-x c -")) |
| 82 | 82 | ||
| 83 | (defvar-local flymake-cc--proc nil "Internal variable for `flymake-gcc'") | 83 | (defvar-local flymake-cc--proc nil "Internal variable for `flymake-gcc'") |
| 84 | 84 | ||
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index f0f93f10878..5352cc3fe6e 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -518,7 +518,7 @@ Currently accepted REPORT-KEY arguments are: | |||
| 518 | (put :warning 'flymake-category 'flymake-warning) | 518 | (put :warning 'flymake-category 'flymake-warning) |
| 519 | (put :note 'flymake-category 'flymake-note) | 519 | (put :note 'flymake-category 'flymake-note) |
| 520 | 520 | ||
| 521 | (defvar flymake-diagnostic-types-alist `() "") | 521 | (defvar flymake-diagnostic-types-alist '() "") |
| 522 | (make-obsolete-variable | 522 | (make-obsolete-variable |
| 523 | 'flymake-diagnostic-types-alist | 523 | 'flymake-diagnostic-types-alist |
| 524 | "Set properties on the diagnostic symbols instead. See Info | 524 | "Set properties on the diagnostic symbols instead. See Info |
| @@ -1112,7 +1112,7 @@ default) no filter is applied." | |||
| 1112 | ;;; Mode-line and menu | 1112 | ;;; Mode-line and menu |
| 1113 | ;;; | 1113 | ;;; |
| 1114 | (easy-menu-define flymake-menu flymake-mode-map "Flymake" | 1114 | (easy-menu-define flymake-menu flymake-mode-map "Flymake" |
| 1115 | `("Flymake" | 1115 | '("Flymake" |
| 1116 | [ "Go to next problem" flymake-goto-next-error t ] | 1116 | [ "Go to next problem" flymake-goto-next-error t ] |
| 1117 | [ "Go to previous problem" flymake-goto-prev-error t ] | 1117 | [ "Go to previous problem" flymake-goto-prev-error t ] |
| 1118 | [ "Check now" flymake-start t ] | 1118 | [ "Check now" flymake-start t ] |
| @@ -1121,7 +1121,7 @@ default) no filter is applied." | |||
| 1121 | [ "Go to log buffer" flymake-switch-to-log-buffer t ] | 1121 | [ "Go to log buffer" flymake-switch-to-log-buffer t ] |
| 1122 | [ "Turn off Flymake" flymake-mode t ])) | 1122 | [ "Turn off Flymake" flymake-mode t ])) |
| 1123 | 1123 | ||
| 1124 | (defvar flymake--mode-line-format `(:eval (flymake--mode-line-format))) | 1124 | (defvar flymake--mode-line-format '(:eval (flymake--mode-line-format))) |
| 1125 | 1125 | ||
| 1126 | (put 'flymake--mode-line-format 'risky-local-variable t) | 1126 | (put 'flymake--mode-line-format 'risky-local-variable t) |
| 1127 | 1127 | ||
| @@ -1160,16 +1160,16 @@ default) no filter is applied." | |||
| 1160 | map)) | 1160 | map)) |
| 1161 | ,@(pcase-let ((`(,ind ,face ,explain) | 1161 | ,@(pcase-let ((`(,ind ,face ,explain) |
| 1162 | (cond ((null known) | 1162 | (cond ((null known) |
| 1163 | `("?" mode-line "No known backends")) | 1163 | '("?" mode-line "No known backends")) |
| 1164 | (some-waiting | 1164 | (some-waiting |
| 1165 | `("Wait" compilation-mode-line-run | 1165 | `("Wait" compilation-mode-line-run |
| 1166 | ,(format "Waiting for %s running backend(s)" | 1166 | ,(format "Waiting for %s running backend(s)" |
| 1167 | (length some-waiting)))) | 1167 | (length some-waiting)))) |
| 1168 | (all-disabled | 1168 | (all-disabled |
| 1169 | `("!" compilation-mode-line-run | 1169 | '("!" compilation-mode-line-run |
| 1170 | "All backends disabled")) | 1170 | "All backends disabled")) |
| 1171 | (t | 1171 | (t |
| 1172 | `(nil nil nil))))) | 1172 | '(nil nil nil))))) |
| 1173 | (when ind | 1173 | (when ind |
| 1174 | `((":" | 1174 | `((":" |
| 1175 | (:propertize ,ind | 1175 | (:propertize ,ind |
| @@ -1297,14 +1297,14 @@ POS can be a buffer position or a button" | |||
| 1297 | "Flymake diagnostics" | 1297 | "Flymake diagnostics" |
| 1298 | "A mode for listing Flymake diagnostics." | 1298 | "A mode for listing Flymake diagnostics." |
| 1299 | (setq tabulated-list-format | 1299 | (setq tabulated-list-format |
| 1300 | `[("Line" 5 (lambda (l1 l2) | 1300 | `[("Line" 5 ,(lambda (l1 l2) |
| 1301 | (< (plist-get (car l1) :line) | 1301 | (< (plist-get (car l1) :line) |
| 1302 | (plist-get (car l2) :line))) | 1302 | (plist-get (car l2) :line))) |
| 1303 | :right-align t) | 1303 | :right-align t) |
| 1304 | ("Col" 3 nil :right-align t) | 1304 | ("Col" 3 nil :right-align t) |
| 1305 | ("Type" 8 (lambda (l1 l2) | 1305 | ("Type" 8 ,(lambda (l1 l2) |
| 1306 | (< (plist-get (car l1) :severity) | 1306 | (< (plist-get (car l1) :severity) |
| 1307 | (plist-get (car l2) :severity)))) | 1307 | (plist-get (car l2) :severity)))) |
| 1308 | ("Message" 0 t)]) | 1308 | ("Message" 0 t)]) |
| 1309 | (setq tabulated-list-entries | 1309 | (setq tabulated-list-entries |
| 1310 | 'flymake--diagnostics-buffer-entries) | 1310 | 'flymake--diagnostics-buffer-entries) |
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index bfbf6c09b27..9c918434503 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -495,7 +495,7 @@ This is used to fontify fixed-format Fortran comments." | |||
| 495 | ;; `byte-compile', but simple benchmarks indicate that it's probably not | 495 | ;; `byte-compile', but simple benchmarks indicate that it's probably not |
| 496 | ;; worth the trouble (about 0.5% of slow down). | 496 | ;; worth the trouble (about 0.5% of slow down). |
| 497 | (eval ;I hate `eval', but it's hard to avoid it here. | 497 | (eval ;I hate `eval', but it's hard to avoid it here. |
| 498 | `(syntax-propertize-rules | 498 | '(syntax-propertize-rules |
| 499 | ("^[CcDd\\*]" (0 "<")) | 499 | ("^[CcDd\\*]" (0 "<")) |
| 500 | ;; We mark all chars after line-length as "comment-start", rather than | 500 | ;; We mark all chars after line-length as "comment-start", rather than |
| 501 | ;; just the first one. This is so that a closing ' that's past the | 501 | ;; just the first one. This is so that a closing ' that's past the |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 0ededb1b155..b79eaf031e9 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -704,7 +704,7 @@ This function is called from `compilation-filter-hook'." | |||
| 704 | 'exec-plus) | 704 | 'exec-plus) |
| 705 | ((and | 705 | ((and |
| 706 | (grep-probe find-program `(nil nil nil ,null-device "-print0")) | 706 | (grep-probe find-program `(nil nil nil ,null-device "-print0")) |
| 707 | (grep-probe xargs-program `(nil nil nil "-0" "echo"))) | 707 | (grep-probe xargs-program '(nil nil nil "-0" "echo"))) |
| 708 | 'gnu) | 708 | 'gnu) |
| 709 | (t | 709 | (t |
| 710 | 'exec)))) | 710 | 'exec)))) |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 91b4a65edd9..af5b97a4f87 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -545,8 +545,8 @@ required by the caller." | |||
| 545 | nil | 545 | nil |
| 546 | (if gdb-show-changed-values | 546 | (if gdb-show-changed-values |
| 547 | (or parent (pcase status | 547 | (or parent (pcase status |
| 548 | (`changed 'font-lock-warning-face) | 548 | ('changed 'font-lock-warning-face) |
| 549 | (`out-of-scope 'shadow) | 549 | ('out-of-scope 'shadow) |
| 550 | (_ t))) | 550 | (_ t))) |
| 551 | t) | 551 | t) |
| 552 | depth) | 552 | depth) |
| @@ -566,8 +566,8 @@ required by the caller." | |||
| 566 | nil | 566 | nil |
| 567 | (if gdb-show-changed-values | 567 | (if gdb-show-changed-values |
| 568 | (or parent (pcase status | 568 | (or parent (pcase status |
| 569 | (`changed 'font-lock-warning-face) | 569 | ('changed 'font-lock-warning-face) |
| 570 | (`out-of-scope 'shadow) | 570 | ('out-of-scope 'shadow) |
| 571 | (_ t))) | 571 | (_ t))) |
| 572 | t) | 572 | t) |
| 573 | depth) | 573 | depth) |
| @@ -3516,11 +3516,11 @@ With arg, dereference expr if ARG is positive, otherwise do not dereference." | |||
| 3516 | (defun gud-tooltip-print-command (expr) | 3516 | (defun gud-tooltip-print-command (expr) |
| 3517 | "Return a suitable command to print the expression EXPR." | 3517 | "Return a suitable command to print the expression EXPR." |
| 3518 | (pcase gud-minor-mode | 3518 | (pcase gud-minor-mode |
| 3519 | (`gdbmi (concat "-data-evaluate-expression \"" expr "\"")) | 3519 | ('gdbmi (concat "-data-evaluate-expression \"" expr "\"")) |
| 3520 | (`guiler expr) | 3520 | ('guiler expr) |
| 3521 | (`dbx (concat "print " expr)) | 3521 | ('dbx (concat "print " expr)) |
| 3522 | ((or `xdb `pdb) (concat "p " expr)) | 3522 | ((or 'xdb 'pdb) (concat "p " expr)) |
| 3523 | (`sdb (concat expr "/")))) | 3523 | ('sdb (concat expr "/")))) |
| 3524 | 3524 | ||
| 3525 | (declare-function gdb-input "gdb-mi" (command handler &optional trigger)) | 3525 | (declare-function gdb-input "gdb-mi" (command handler &optional trigger)) |
| 3526 | (declare-function tooltip-expr-to-print "tooltip" (event)) | 3526 | (declare-function tooltip-expr-to-print "tooltip" (event)) |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 540931c9f2f..f9ea14e3504 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -9074,7 +9074,7 @@ Assumes that point is at the beginning of the unit as found by | |||
| 9074 | 9074 | ||
| 9075 | ;; Menus - using easymenu.el | 9075 | ;; Menus - using easymenu.el |
| 9076 | (defvar idlwave-mode-menu-def | 9076 | (defvar idlwave-mode-menu-def |
| 9077 | `("IDLWAVE" | 9077 | '("IDLWAVE" |
| 9078 | ["PRO/FUNC menu" idlwave-function-menu t] | 9078 | ["PRO/FUNC menu" idlwave-function-menu t] |
| 9079 | ("Motion" | 9079 | ("Motion" |
| 9080 | ["Subprogram Start" idlwave-beginning-of-subprogram t] | 9080 | ["Subprogram Start" idlwave-beginning-of-subprogram t] |
| @@ -9151,7 +9151,7 @@ Assumes that point is at the beginning of the unit as found by | |||
| 9151 | ["Kill auto-created buffers" idlwave-kill-autoloaded-buffers t] | 9151 | ["Kill auto-created buffers" idlwave-kill-autoloaded-buffers t] |
| 9152 | "--" | 9152 | "--" |
| 9153 | ["Insert TAB character" idlwave-hard-tab t]) | 9153 | ["Insert TAB character" idlwave-hard-tab t]) |
| 9154 | "--" | 9154 | "--" |
| 9155 | ("External" | 9155 | ("External" |
| 9156 | ["Start IDL shell" idlwave-shell t] | 9156 | ["Start IDL shell" idlwave-shell t] |
| 9157 | ["Edit file in IDLDE" idlwave-edit-in-idlde t] | 9157 | ["Edit file in IDLDE" idlwave-edit-in-idlde t] |
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 3ce5af4c49b..cec48a82a20 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -1013,7 +1013,7 @@ BEG defaults to `point-min', meaning to flush the entire cache." | |||
| 1013 | Update parsing information up to point, referring to parse, | 1013 | Update parsing information up to point, referring to parse, |
| 1014 | prev-parse-point, goal-point, and open-items bound lexically in | 1014 | prev-parse-point, goal-point, and open-items bound lexically in |
| 1015 | the body of `js--ensure-cache'." | 1015 | the body of `js--ensure-cache'." |
| 1016 | `(progn | 1016 | '(progn |
| 1017 | (setq goal-point (point)) | 1017 | (setq goal-point (point)) |
| 1018 | (goto-char prev-parse-point) | 1018 | (goto-char prev-parse-point) |
| 1019 | (while (progn | 1019 | (while (progn |
| @@ -1023,7 +1023,7 @@ the body of `js--ensure-cache'." | |||
| 1023 | ;; the given depth -- i.e., make sure we're deeper than the target | 1023 | ;; the given depth -- i.e., make sure we're deeper than the target |
| 1024 | ;; depth. | 1024 | ;; depth. |
| 1025 | (cl-assert (> (nth 0 parse) | 1025 | (cl-assert (> (nth 0 parse) |
| 1026 | (js--pitem-paren-depth (car open-items)))) | 1026 | (js--pitem-paren-depth (car open-items)))) |
| 1027 | (setq parse (parse-partial-sexp | 1027 | (setq parse (parse-partial-sexp |
| 1028 | prev-parse-point goal-point | 1028 | prev-parse-point goal-point |
| 1029 | (js--pitem-paren-depth (car open-items)) | 1029 | (js--pitem-paren-depth (car open-items)) |
| @@ -3322,11 +3322,11 @@ If nil, the whole Array is treated as a JS symbol.") | |||
| 3322 | 3322 | ||
| 3323 | (defun js--js-decode-retval (result) | 3323 | (defun js--js-decode-retval (result) |
| 3324 | (pcase (intern (cl-first result)) | 3324 | (pcase (intern (cl-first result)) |
| 3325 | (`atom (cl-second result)) | 3325 | ('atom (cl-second result)) |
| 3326 | (`special (intern (cl-second result))) | 3326 | ('special (intern (cl-second result))) |
| 3327 | (`array | 3327 | ('array |
| 3328 | (mapcar #'js--js-decode-retval (cl-second result))) | 3328 | (mapcar #'js--js-decode-retval (cl-second result))) |
| 3329 | (`objid | 3329 | ('objid |
| 3330 | (or (gethash (cl-second result) | 3330 | (or (gethash (cl-second result) |
| 3331 | js--js-references) | 3331 | js--js-references) |
| 3332 | (puthash (cl-second result) | 3332 | (puthash (cl-second result) |
| @@ -3335,7 +3335,7 @@ If nil, the whole Array is treated as a JS symbol.") | |||
| 3335 | :process (inferior-moz-process)) | 3335 | :process (inferior-moz-process)) |
| 3336 | js--js-references))) | 3336 | js--js-references))) |
| 3337 | 3337 | ||
| 3338 | (`error (signal 'js-js-error (list (cl-second result)))) | 3338 | ('error (signal 'js-js-error (list (cl-second result)))) |
| 3339 | (x (error "Unmatched case in js--js-decode-retval: %S" x)))) | 3339 | (x (error "Unmatched case in js--js-decode-retval: %S" x)))) |
| 3340 | 3340 | ||
| 3341 | (defvar comint-last-input-end) | 3341 | (defvar comint-last-input-end) |
| @@ -3720,8 +3720,8 @@ If one hasn't been set, or if it's stale, prompt for a new one." | |||
| 3720 | (when (or (null js--js-context) | 3720 | (when (or (null js--js-context) |
| 3721 | (js--js-handle-expired-p (cdr js--js-context)) | 3721 | (js--js-handle-expired-p (cdr js--js-context)) |
| 3722 | (pcase (car js--js-context) | 3722 | (pcase (car js--js-context) |
| 3723 | (`window (js? (js< (cdr js--js-context) "closed"))) | 3723 | ('window (js? (js< (cdr js--js-context) "closed"))) |
| 3724 | (`browser (not (js? (js< (cdr js--js-context) | 3724 | ('browser (not (js? (js< (cdr js--js-context) |
| 3725 | "contentDocument")))) | 3725 | "contentDocument")))) |
| 3726 | (x (error "Unmatched case in js--get-js-context: %S" x)))) | 3726 | (x (error "Unmatched case in js--get-js-context: %S" x)))) |
| 3727 | (setq js--js-context (js--read-tab "JavaScript Context: "))) | 3727 | (setq js--js-context (js--read-tab "JavaScript Context: "))) |
| @@ -3730,8 +3730,8 @@ If one hasn't been set, or if it's stale, prompt for a new one." | |||
| 3730 | (defun js--js-content-window (context) | 3730 | (defun js--js-content-window (context) |
| 3731 | (with-js | 3731 | (with-js |
| 3732 | (pcase (car context) | 3732 | (pcase (car context) |
| 3733 | (`window (cdr context)) | 3733 | ('window (cdr context)) |
| 3734 | (`browser (js< (cdr context) | 3734 | ('browser (js< (cdr context) |
| 3735 | "contentWindow" "wrappedJSObject")) | 3735 | "contentWindow" "wrappedJSObject")) |
| 3736 | (x (error "Unmatched case in js--js-content-window: %S" x))))) | 3736 | (x (error "Unmatched case in js--js-content-window: %S" x))))) |
| 3737 | 3737 | ||
diff --git a/lisp/progmodes/m4-mode.el b/lisp/progmodes/m4-mode.el index bb75f575794..46568f15bdc 100644 --- a/lisp/progmodes/m4-mode.el +++ b/lisp/progmodes/m4-mode.el | |||
| @@ -63,8 +63,7 @@ If m4 is not in your PATH, set this to an absolute file name." | |||
| 63 | ;;(defconst m4-program-options '("--prefix-builtins")) | 63 | ;;(defconst m4-program-options '("--prefix-builtins")) |
| 64 | 64 | ||
| 65 | (defvar m4-font-lock-keywords | 65 | (defvar m4-font-lock-keywords |
| 66 | `( | 66 | '(("\\(\\_<\\(m4_\\)?dnl\\_>\\).*$" . font-lock-comment-face) |
| 67 | ("\\(\\_<\\(m4_\\)?dnl\\_>\\).*$" . font-lock-comment-face) | ||
| 68 | ("\\$[*#@0-9]" . font-lock-variable-name-face) | 67 | ("\\$[*#@0-9]" . font-lock-variable-name-face) |
| 69 | ("\\$\\@" . font-lock-variable-name-face) | 68 | ("\\$\\@" . font-lock-variable-name-face) |
| 70 | ("\\$\\*" . font-lock-variable-name-face) | 69 | ("\\$\\*" . font-lock-variable-name-face) |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index f67407f48ee..ed4e69dc519 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -343,7 +343,7 @@ not be enclosed in { } or ( )." | |||
| 343 | "List of keywords understood by gmake.") | 343 | "List of keywords understood by gmake.") |
| 344 | 344 | ||
| 345 | (defconst makefile-bsdmake-statements | 345 | (defconst makefile-bsdmake-statements |
| 346 | `(".elif" ".elifdef" ".elifmake" ".elifndef" ".elifnmake" ".else" ".endfor" | 346 | '(".elif" ".elifdef" ".elifmake" ".elifndef" ".elifnmake" ".else" ".endfor" |
| 347 | ".endif" ".for" ".if" ".ifdef" ".ifmake" ".ifndef" ".ifnmake" ".undef") | 347 | ".endif" ".for" ".if" ".ifdef" ".ifmake" ".ifndef" ".ifnmake" ".undef") |
| 348 | "List of keywords understood by BSD make.") | 348 | "List of keywords understood by BSD make.") |
| 349 | 349 | ||
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el index 22d63420877..a8c5c39b537 100644 --- a/lisp/progmodes/mixal-mode.el +++ b/lisp/progmodes/mixal-mode.el | |||
| @@ -1108,7 +1108,7 @@ Assumes that file has been compiled with debugging support." | |||
| 1108 | (set (make-local-variable 'comment-start) "*") | 1108 | (set (make-local-variable 'comment-start) "*") |
| 1109 | (set (make-local-variable 'comment-start-skip) "^\\*[ \t]*") | 1109 | (set (make-local-variable 'comment-start-skip) "^\\*[ \t]*") |
| 1110 | (set (make-local-variable 'font-lock-defaults) | 1110 | (set (make-local-variable 'font-lock-defaults) |
| 1111 | `(mixal-font-lock-keywords)) | 1111 | '(mixal-font-lock-keywords)) |
| 1112 | (set (make-local-variable 'syntax-propertize-function) | 1112 | (set (make-local-variable 'syntax-propertize-function) |
| 1113 | mixal-syntax-propertize-function) | 1113 | mixal-syntax-propertize-function) |
| 1114 | ;; might add an indent function in the future | 1114 | ;; might add an indent function in the future |
diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el index ef12352457e..aa412304c59 100644 --- a/lisp/progmodes/modula2.el +++ b/lisp/progmodes/modula2.el | |||
| @@ -270,16 +270,16 @@ | |||
| 270 | ;; - The inner VAR/TYPE are indented just like the outer VAR/TYPE. | 270 | ;; - The inner VAR/TYPE are indented just like the outer VAR/TYPE. |
| 271 | ;; - The inner PROCEDURE is not aligned with its VAR/TYPE siblings. | 271 | ;; - The inner PROCEDURE is not aligned with its VAR/TYPE siblings. |
| 272 | (pcase (cons kind token) | 272 | (pcase (cons kind token) |
| 273 | (`(:elem . basic) m2-indent) | 273 | ('(:elem . basic) m2-indent) |
| 274 | (`(:after . ":=") (or m2-indent smie-indent-basic)) | 274 | ('(:after . ":=") (or m2-indent smie-indent-basic)) |
| 275 | (`(:after . ,(or "CONST" "VAR" "TYPE")) | 275 | (`(:after . ,(or "CONST" "VAR" "TYPE")) |
| 276 | (or m2-indent smie-indent-basic)) | 276 | (or m2-indent smie-indent-basic)) |
| 277 | ;; (`(:before . ,(or `"VAR" `"TYPE" `"CONST")) | 277 | ;; (`(:before . ,(or `"VAR" `"TYPE" `"CONST")) |
| 278 | ;; (if (smie-rule-parent-p "PROCEDURE") 0)) | 278 | ;; (if (smie-rule-parent-p "PROCEDURE") 0)) |
| 279 | (`(:after . ";-block") | 279 | ('(:after . ";-block") |
| 280 | (if (smie-rule-parent-p "PROCEDURE") | 280 | (if (smie-rule-parent-p "PROCEDURE") |
| 281 | (smie-rule-parent (or m2-indent smie-indent-basic)))) | 281 | (smie-rule-parent (or m2-indent smie-indent-basic)))) |
| 282 | (`(:before . "|") (smie-rule-separator kind)) | 282 | ('(:before . "|") (smie-rule-separator kind)) |
| 283 | )) | 283 | )) |
| 284 | 284 | ||
| 285 | ;;;###autoload | 285 | ;;;###autoload |
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index cce5e17e79e..69cf600ecff 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el | |||
| @@ -442,12 +442,12 @@ Non-nil means always go to the next Octave code line after sending." | |||
| 442 | ;; disadvantages: | 442 | ;; disadvantages: |
| 443 | ;; - changes to octave-block-offset wouldn't take effect immediately. | 443 | ;; - changes to octave-block-offset wouldn't take effect immediately. |
| 444 | ;; - edebug wouldn't show the use of this variable. | 444 | ;; - edebug wouldn't show the use of this variable. |
| 445 | (`(:elem . basic) octave-block-offset) | 445 | ('(:elem . basic) octave-block-offset) |
| 446 | (`(:list-intro . ,(or "global" "persistent")) t) | 446 | (`(:list-intro . ,(or "global" "persistent")) t) |
| 447 | ;; Since "case" is in the same BNF rules as switch..end, SMIE by default | 447 | ;; Since "case" is in the same BNF rules as switch..end, SMIE by default |
| 448 | ;; aligns it with "switch". | 448 | ;; aligns it with "switch". |
| 449 | (`(:before . "case") (if (not (smie-rule-sibling-p)) octave-block-offset)) | 449 | ('(:before . "case") (if (not (smie-rule-sibling-p)) octave-block-offset)) |
| 450 | (`(:after . ";") | 450 | ('(:after . ";") |
| 451 | (if (apply #'smie-rule-parent-p octave--block-offset-keywords) | 451 | (if (apply #'smie-rule-parent-p octave--block-offset-keywords) |
| 452 | (smie-rule-parent octave-block-offset) | 452 | (smie-rule-parent octave-block-offset) |
| 453 | ;; For (invalid) code between switch and case. | 453 | ;; For (invalid) code between switch and case. |
| @@ -1652,11 +1652,11 @@ code line." | |||
| 1652 | ;; | 1652 | ;; |
| 1653 | ;; Return the value according to style. | 1653 | ;; Return the value according to style. |
| 1654 | (pcase octave-eldoc-message-style | 1654 | (pcase octave-eldoc-message-style |
| 1655 | (`auto (if (< (length oneline) (window-width (minibuffer-window))) | 1655 | ('auto (if (< (length oneline) (window-width (minibuffer-window))) |
| 1656 | oneline | 1656 | oneline |
| 1657 | multiline)) | 1657 | multiline)) |
| 1658 | (`oneline oneline) | 1658 | ('oneline oneline) |
| 1659 | (`multiline multiline))))) | 1659 | ('multiline multiline))))) |
| 1660 | 1660 | ||
| 1661 | (defcustom octave-help-buffer "*Octave Help*" | 1661 | (defcustom octave-help-buffer "*Octave Help*" |
| 1662 | "Buffer name for `octave-help'." | 1662 | "Buffer name for `octave-help'." |
diff --git a/lisp/progmodes/opascal.el b/lisp/progmodes/opascal.el index 7d055b735d6..5d3aa3cb840 100644 --- a/lisp/progmodes/opascal.el +++ b/lisp/progmodes/opascal.el | |||
| @@ -140,7 +140,7 @@ That is, regardless of where in the line point is at the time." | |||
| 140 | opascal-directives) | 140 | opascal-directives) |
| 141 | "OPascal4 keywords.") | 141 | "OPascal4 keywords.") |
| 142 | 142 | ||
| 143 | (defconst opascal-previous-terminators `(semicolon comma) | 143 | (defconst opascal-previous-terminators '(semicolon comma) |
| 144 | "Expression/statement terminators that denote a previous expression.") | 144 | "Expression/statement terminators that denote a previous expression.") |
| 145 | 145 | ||
| 146 | (defconst opascal-comments | 146 | (defconst opascal-comments |
| @@ -186,7 +186,7 @@ are followed by an expression.") | |||
| 186 | `(except finally ,@opascal-visibilities) | 186 | `(except finally ,@opascal-visibilities) |
| 187 | "Statements that mark mid sections of the enclosing block.") | 187 | "Statements that mark mid sections of the enclosing block.") |
| 188 | 188 | ||
| 189 | (defconst opascal-end-block-statements `(end until) | 189 | (defconst opascal-end-block-statements '(end until) |
| 190 | "Statements that end block sections.") | 190 | "Statements that end block sections.") |
| 191 | 191 | ||
| 192 | (defconst opascal-match-block-statements | 192 | (defconst opascal-match-block-statements |
| @@ -210,7 +210,7 @@ are followed by an expression.") | |||
| 210 | '(interface implementation program library package) | 210 | '(interface implementation program library package) |
| 211 | "Unit sections within which the indent is 0.") | 211 | "Unit sections within which the indent is 0.") |
| 212 | 212 | ||
| 213 | (defconst opascal-use-clauses `(uses requires exports contains) | 213 | (defconst opascal-use-clauses '(uses requires exports contains) |
| 214 | "Statements that refer to foreign symbols.") | 214 | "Statements that refer to foreign symbols.") |
| 215 | 215 | ||
| 216 | (defconst opascal-unit-statements | 216 | (defconst opascal-unit-statements |
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index b530c61f974..6a818542cfa 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el | |||
| @@ -942,13 +942,13 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24." | |||
| 942 | 942 | ||
| 943 | (defun prolog-smie-rules (kind token) | 943 | (defun prolog-smie-rules (kind token) |
| 944 | (pcase (cons kind token) | 944 | (pcase (cons kind token) |
| 945 | (`(:elem . basic) prolog-indent-width) | 945 | ('(:elem . basic) prolog-indent-width) |
| 946 | ;; The list of arguments can never be on a separate line! | 946 | ;; The list of arguments can never be on a separate line! |
| 947 | (`(:list-intro . ,_) t) | 947 | (`(:list-intro . ,_) t) |
| 948 | ;; When we don't know how to indent an empty line, assume the most | 948 | ;; When we don't know how to indent an empty line, assume the most |
| 949 | ;; likely token will be ";". | 949 | ;; likely token will be ";". |
| 950 | (`(:elem . empty-line-token) ";") | 950 | ('(:elem . empty-line-token) ";") |
| 951 | (`(:after . ".") '(column . 0)) ;; To work around smie-closer-alist. | 951 | ('(:after . ".") '(column . 0)) ;; To work around smie-closer-alist. |
| 952 | ;; Allow indentation of if-then-else as: | 952 | ;; Allow indentation of if-then-else as: |
| 953 | ;; ( test | 953 | ;; ( test |
| 954 | ;; -> thenrule | 954 | ;; -> thenrule |
| @@ -977,7 +977,7 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24." | |||
| 977 | (smie-indent-backward-token) | 977 | (smie-indent-backward-token) |
| 978 | (smie-rule-bolp)))) | 978 | (smie-rule-bolp)))) |
| 979 | prolog-indent-width)) | 979 | prolog-indent-width)) |
| 980 | (`(:after . ";") | 980 | ('(:after . ";") |
| 981 | ;; Align with same-line comment as in: | 981 | ;; Align with same-line comment as in: |
| 982 | ;; ; %% Toto | 982 | ;; ; %% Toto |
| 983 | ;; foo | 983 | ;; foo |
| @@ -989,7 +989,7 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24." | |||
| 989 | ;; Only do it for small offsets, since the comment may actually be | 989 | ;; Only do it for small offsets, since the comment may actually be |
| 990 | ;; an "end-of-line" comment at comment-column! | 990 | ;; an "end-of-line" comment at comment-column! |
| 991 | (if (<= offset prolog-indent-width) offset)))) | 991 | (if (<= offset prolog-indent-width) offset)))) |
| 992 | (`(:after . ",") | 992 | ('(:after . ",") |
| 993 | ;; Special indent for: | 993 | ;; Special indent for: |
| 994 | ;; foopredicate(x) :- !, | 994 | ;; foopredicate(x) :- !, |
| 995 | ;; toto. | 995 | ;; toto. |
| @@ -998,7 +998,7 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24." | |||
| 998 | (smie-indent-backward-token) ;Skip ! | 998 | (smie-indent-backward-token) ;Skip ! |
| 999 | (equal ":-" (car (smie-indent-backward-token)))) | 999 | (equal ":-" (car (smie-indent-backward-token)))) |
| 1000 | (smie-rule-parent prolog-indent-width))) | 1000 | (smie-rule-parent prolog-indent-width))) |
| 1001 | (`(:after . ":-") | 1001 | ('(:after . ":-") |
| 1002 | (if (bolp) | 1002 | (if (bolp) |
| 1003 | (save-excursion | 1003 | (save-excursion |
| 1004 | (smie-indent-forward-token) | 1004 | (smie-indent-forward-token) |
| @@ -1007,7 +1007,7 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24." | |||
| 1007 | prolog-indent-width | 1007 | prolog-indent-width |
| 1008 | (min prolog-indent-width (current-column)))) | 1008 | (min prolog-indent-width (current-column)))) |
| 1009 | prolog-indent-width)) | 1009 | prolog-indent-width)) |
| 1010 | (`(:after . "-->") prolog-indent-width))) | 1010 | ('(:after . "-->") prolog-indent-width))) |
| 1011 | 1011 | ||
| 1012 | 1012 | ||
| 1013 | ;;------------------------------------------------------------------- | 1013 | ;;------------------------------------------------------------------- |
diff --git a/lisp/progmodes/ps-mode.el b/lisp/progmodes/ps-mode.el index 92d673d4498..5f29e26ab4d 100644 --- a/lisp/progmodes/ps-mode.el +++ b/lisp/progmodes/ps-mode.el | |||
| @@ -458,9 +458,9 @@ If nil, use `temporary-file-directory'." | |||
| 458 | 458 | ||
| 459 | (defun ps-mode-smie-rules (kind token) | 459 | (defun ps-mode-smie-rules (kind token) |
| 460 | (pcase (cons kind token) | 460 | (pcase (cons kind token) |
| 461 | (`(:after . "<") (when (smie-rule-next-p "<") 0)) | 461 | ('(:after . "<") (when (smie-rule-next-p "<") 0)) |
| 462 | (`(:elem . basic) ps-mode-tab) | 462 | ('(:elem . basic) ps-mode-tab) |
| 463 | (`(:close-all . ">") t) | 463 | ('(:close-all . ">") t) |
| 464 | (`(:list-intro . ,_) t))) | 464 | (`(:list-intro . ,_) t))) |
| 465 | 465 | ||
| 466 | ;;;###autoload | 466 | ;;;###autoload |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index c55b69e33ec..654a0d3aea7 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -342,7 +342,7 @@ It returns a file name which can be used directly as argument of | |||
| 342 | (substitute-key-definition 'complete-symbol 'completion-at-point | 342 | (substitute-key-definition 'complete-symbol 'completion-at-point |
| 343 | map global-map) | 343 | map global-map) |
| 344 | (easy-menu-define python-menu map "Python Mode menu" | 344 | (easy-menu-define python-menu map "Python Mode menu" |
| 345 | `("Python" | 345 | '("Python" |
| 346 | :help "Python-specific Features" | 346 | :help "Python-specific Features" |
| 347 | ["Shift region left" python-indent-shift-left :active mark-active | 347 | ["Shift region left" python-indent-shift-left :active mark-active |
| 348 | :help "Shift region left by a single indentation step"] | 348 | :help "Shift region left by a single indentation step"] |
| @@ -469,13 +469,13 @@ This variant of `rx' supports common Python named REGEXPS." | |||
| 469 | (eval-and-compile | 469 | (eval-and-compile |
| 470 | (defun python-syntax--context-compiler-macro (form type &optional syntax-ppss) | 470 | (defun python-syntax--context-compiler-macro (form type &optional syntax-ppss) |
| 471 | (pcase type | 471 | (pcase type |
| 472 | (`'comment | 472 | (''comment |
| 473 | `(let ((ppss (or ,syntax-ppss (syntax-ppss)))) | 473 | `(let ((ppss (or ,syntax-ppss (syntax-ppss)))) |
| 474 | (and (nth 4 ppss) (nth 8 ppss)))) | 474 | (and (nth 4 ppss) (nth 8 ppss)))) |
| 475 | (`'string | 475 | (''string |
| 476 | `(let ((ppss (or ,syntax-ppss (syntax-ppss)))) | 476 | `(let ((ppss (or ,syntax-ppss (syntax-ppss)))) |
| 477 | (and (nth 3 ppss) (nth 8 ppss)))) | 477 | (and (nth 3 ppss) (nth 8 ppss)))) |
| 478 | (`'paren | 478 | (''paren |
| 479 | `(nth 1 (or ,syntax-ppss (syntax-ppss)))) | 479 | `(nth 1 (or ,syntax-ppss (syntax-ppss)))) |
| 480 | (_ form)))) | 480 | (_ form)))) |
| 481 | 481 | ||
| @@ -486,9 +486,9 @@ character address of the specified TYPE." | |||
| 486 | (declare (compiler-macro python-syntax--context-compiler-macro)) | 486 | (declare (compiler-macro python-syntax--context-compiler-macro)) |
| 487 | (let ((ppss (or syntax-ppss (syntax-ppss)))) | 487 | (let ((ppss (or syntax-ppss (syntax-ppss)))) |
| 488 | (pcase type | 488 | (pcase type |
| 489 | (`comment (and (nth 4 ppss) (nth 8 ppss))) | 489 | ('comment (and (nth 4 ppss) (nth 8 ppss))) |
| 490 | (`string (and (nth 3 ppss) (nth 8 ppss))) | 490 | ('string (and (nth 3 ppss) (nth 8 ppss))) |
| 491 | (`paren (nth 1 ppss)) | 491 | ('paren (nth 1 ppss)) |
| 492 | (_ nil)))) | 492 | (_ nil)))) |
| 493 | 493 | ||
| 494 | (defun python-syntax-context-type (&optional syntax-ppss) | 494 | (defun python-syntax-context-type (&optional syntax-ppss) |
| @@ -4015,11 +4015,11 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'." | |||
| 4015 | ;; is NIL means to not add any newlines for start or end | 4015 | ;; is NIL means to not add any newlines for start or end |
| 4016 | ;; of docstring. See `python-fill-docstring-style' for a | 4016 | ;; of docstring. See `python-fill-docstring-style' for a |
| 4017 | ;; graphic idea of each style. | 4017 | ;; graphic idea of each style. |
| 4018 | (`django (cons 1 1)) | 4018 | ('django (cons 1 1)) |
| 4019 | (`onetwo (and multi-line-p (cons 1 2))) | 4019 | ('onetwo (and multi-line-p (cons 1 2))) |
| 4020 | (`pep-257 (and multi-line-p (cons nil 2))) | 4020 | ('pep-257 (and multi-line-p (cons nil 2))) |
| 4021 | (`pep-257-nn (and multi-line-p (cons nil 1))) | 4021 | ('pep-257-nn (and multi-line-p (cons nil 1))) |
| 4022 | (`symmetric (and multi-line-p (cons 1 1))))) | 4022 | ('symmetric (and multi-line-p (cons 1 1))))) |
| 4023 | (fill-paragraph-function)) | 4023 | (fill-paragraph-function)) |
| 4024 | (save-restriction | 4024 | (save-restriction |
| 4025 | (narrow-to-region str-start-pos str-end-pos) | 4025 | (narrow-to-region str-start-pos str-end-pos) |
| @@ -5252,7 +5252,7 @@ configuration could be: | |||
| 5252 | By default messages are considered errors." | 5252 | By default messages are considered errors." |
| 5253 | :version "26.1" | 5253 | :version "26.1" |
| 5254 | :group 'python-flymake | 5254 | :group 'python-flymake |
| 5255 | :type `(alist :key-type (regexp) | 5255 | :type '(alist :key-type (regexp) |
| 5256 | :value-type (symbol))) | 5256 | :value-type (symbol))) |
| 5257 | 5257 | ||
| 5258 | (defvar-local python--flymake-proc nil) | 5258 | (defvar-local python--flymake-proc nil) |
| @@ -5414,7 +5414,7 @@ REPORT-FN is Flymake's callback function." | |||
| 5414 | 5414 | ||
| 5415 | (add-to-list | 5415 | (add-to-list |
| 5416 | 'hs-special-modes-alist | 5416 | 'hs-special-modes-alist |
| 5417 | `(python-mode | 5417 | '(python-mode |
| 5418 | "\\s-*\\_<\\(?:def\\|class\\)\\_>" | 5418 | "\\s-*\\_<\\(?:def\\|class\\)\\_>" |
| 5419 | ;; Use the empty string as end regexp so it doesn't default to | 5419 | ;; Use the empty string as end regexp so it doesn't default to |
| 5420 | ;; "\\s)". This way parens at end of defun are properly hidden. | 5420 | ;; "\\s)". This way parens at end of defun are properly hidden. |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 9256dfc17b5..2f68f004e7b 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -586,12 +586,12 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 586 | 586 | ||
| 587 | (defun ruby-smie-rules (kind token) | 587 | (defun ruby-smie-rules (kind token) |
| 588 | (pcase (cons kind token) | 588 | (pcase (cons kind token) |
| 589 | (`(:elem . basic) ruby-indent-level) | 589 | ('(:elem . basic) ruby-indent-level) |
| 590 | ;; "foo" "bar" is the concatenation of the two strings, so the second | 590 | ;; "foo" "bar" is the concatenation of the two strings, so the second |
| 591 | ;; should be aligned with the first. | 591 | ;; should be aligned with the first. |
| 592 | (`(:elem . args) (if (looking-at "\\s\"") 0)) | 592 | ('(:elem . args) (if (looking-at "\\s\"") 0)) |
| 593 | ;; (`(:after . ",") (smie-rule-separator kind)) | 593 | ;; (`(:after . ",") (smie-rule-separator kind)) |
| 594 | (`(:before . ";") | 594 | ('(:before . ";") |
| 595 | (cond | 595 | (cond |
| 596 | ((smie-rule-parent-p "def" "begin" "do" "class" "module" "for" | 596 | ((smie-rule-parent-p "def" "begin" "do" "class" "module" "for" |
| 597 | "while" "until" "unless" | 597 | "while" "until" "unless" |
| @@ -638,12 +638,12 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 638 | ;; because we want to reject hanging tokens at bol, too. | 638 | ;; because we want to reject hanging tokens at bol, too. |
| 639 | (unless (or (eolp) (forward-comment 1)) | 639 | (unless (or (eolp) (forward-comment 1)) |
| 640 | (cons 'column (current-column))))) | 640 | (cons 'column (current-column))))) |
| 641 | (`(:before . " @ ") | 641 | ('(:before . " @ ") |
| 642 | (save-excursion | 642 | (save-excursion |
| 643 | (skip-chars-forward " \t") | 643 | (skip-chars-forward " \t") |
| 644 | (cons 'column (current-column)))) | 644 | (cons 'column (current-column)))) |
| 645 | (`(:before . "do") (ruby-smie--indent-to-stmt)) | 645 | ('(:before . "do") (ruby-smie--indent-to-stmt)) |
| 646 | (`(:before . ".") | 646 | ('(:before . ".") |
| 647 | (if (smie-rule-sibling-p) | 647 | (if (smie-rule-sibling-p) |
| 648 | (and ruby-align-chained-calls 0) | 648 | (and ruby-align-chained-calls 0) |
| 649 | (smie-backward-sexp ".") | 649 | (smie-backward-sexp ".") |
| @@ -651,7 +651,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 651 | ruby-indent-level)))) | 651 | ruby-indent-level)))) |
| 652 | (`(:before . ,(or "else" "then" "elsif" "rescue" "ensure")) | 652 | (`(:before . ,(or "else" "then" "elsif" "rescue" "ensure")) |
| 653 | (smie-rule-parent)) | 653 | (smie-rule-parent)) |
| 654 | (`(:before . "when") | 654 | ('(:before . "when") |
| 655 | ;; Align to the previous `when', but look up the virtual | 655 | ;; Align to the previous `when', but look up the virtual |
| 656 | ;; indentation of `case'. | 656 | ;; indentation of `case'. |
| 657 | (if (smie-rule-sibling-p) 0 (smie-rule-parent))) | 657 | (if (smie-rule-sibling-p) 0 (smie-rule-parent))) |
| @@ -668,7 +668,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 668 | (if (ruby-smie--indent-to-stmt-p token) | 668 | (if (ruby-smie--indent-to-stmt-p token) |
| 669 | (ruby-smie--indent-to-stmt) | 669 | (ruby-smie--indent-to-stmt) |
| 670 | (cons 'column (current-column))))) | 670 | (cons 'column (current-column))))) |
| 671 | (`(:before . "iuwu-mod") | 671 | ('(:before . "iuwu-mod") |
| 672 | (smie-rule-parent ruby-indent-level)) | 672 | (smie-rule-parent ruby-indent-level)) |
| 673 | )) | 673 | )) |
| 674 | 674 | ||
| @@ -756,9 +756,9 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 756 | The style of the comment is controlled by `ruby-encoding-magic-comment-style'." | 756 | The style of the comment is controlled by `ruby-encoding-magic-comment-style'." |
| 757 | (let ((encoding-magic-comment-template | 757 | (let ((encoding-magic-comment-template |
| 758 | (pcase ruby-encoding-magic-comment-style | 758 | (pcase ruby-encoding-magic-comment-style |
| 759 | (`ruby "# coding: %s") | 759 | ('ruby "# coding: %s") |
| 760 | (`emacs "# -*- coding: %s -*-") | 760 | ('emacs "# -*- coding: %s -*-") |
| 761 | (`custom | 761 | ('custom |
| 762 | ruby-custom-encoding-magic-comment-template)))) | 762 | ruby-custom-encoding-magic-comment-template)))) |
| 763 | (insert | 763 | (insert |
| 764 | (format encoding-magic-comment-template encoding) | 764 | (format encoding-magic-comment-template encoding) |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 46c9e6ee659..6ec05299e34 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -345,7 +345,7 @@ naming the shell." | |||
| 345 | :group 'sh-script) | 345 | :group 'sh-script) |
| 346 | 346 | ||
| 347 | (defcustom sh-imenu-generic-expression | 347 | (defcustom sh-imenu-generic-expression |
| 348 | `((sh | 348 | '((sh |
| 349 | . ((nil | 349 | . ((nil |
| 350 | ;; function FOO | 350 | ;; function FOO |
| 351 | ;; function FOO() | 351 | ;; function FOO() |
| @@ -1022,7 +1022,7 @@ subshells can nest." | |||
| 1022 | ;; unescape " inside a $( ... ) construct. | 1022 | ;; unescape " inside a $( ... ) construct. |
| 1023 | (pcase (char-after) | 1023 | (pcase (char-after) |
| 1024 | (?\' (pcase state | 1024 | (?\' (pcase state |
| 1025 | (`double-quote nil) | 1025 | ('double-quote nil) |
| 1026 | (_ (forward-char 1) | 1026 | (_ (forward-char 1) |
| 1027 | ;; FIXME: mark skipped double quotes as punctuation syntax. | 1027 | ;; FIXME: mark skipped double quotes as punctuation syntax. |
| 1028 | (let ((spos (point))) | 1028 | (let ((spos (point))) |
| @@ -1035,12 +1035,12 @@ subshells can nest." | |||
| 1035 | 'syntax-table '(1))))))))) | 1035 | 'syntax-table '(1))))))))) |
| 1036 | (?\\ (forward-char 1)) | 1036 | (?\\ (forward-char 1)) |
| 1037 | (?\" (pcase state | 1037 | (?\" (pcase state |
| 1038 | (`double-quote (setq state (pop states))) | 1038 | ('double-quote (setq state (pop states))) |
| 1039 | (_ (push state states) (setq state 'double-quote))) | 1039 | (_ (push state states) (setq state 'double-quote))) |
| 1040 | (if state (put-text-property (point) (1+ (point)) | 1040 | (if state (put-text-property (point) (1+ (point)) |
| 1041 | 'syntax-table '(1)))) | 1041 | 'syntax-table '(1)))) |
| 1042 | (?\` (pcase state | 1042 | (?\` (pcase state |
| 1043 | (`backquote (setq state (pop states))) | 1043 | ('backquote (setq state (pop states))) |
| 1044 | (_ (push state states) (setq state 'backquote)))) | 1044 | (_ (push state states) (setq state 'backquote)))) |
| 1045 | (?\$ (if (not (eq (char-after (1+ (point))) ?\()) | 1045 | (?\$ (if (not (eq (char-after (1+ (point))) ?\()) |
| 1046 | nil | 1046 | nil |
| @@ -1048,10 +1048,10 @@ subshells can nest." | |||
| 1048 | (pcase state | 1048 | (pcase state |
| 1049 | (_ (push state states) (setq state 'code))))) | 1049 | (_ (push state states) (setq state 'code))))) |
| 1050 | (?\( (pcase state | 1050 | (?\( (pcase state |
| 1051 | (`double-quote nil) | 1051 | ('double-quote nil) |
| 1052 | (_ (push state states) (setq state 'code)))) | 1052 | (_ (push state states) (setq state 'code)))) |
| 1053 | (?\) (pcase state | 1053 | (?\) (pcase state |
| 1054 | (`double-quote nil) | 1054 | ('double-quote nil) |
| 1055 | (_ (setq state (pop states))))) | 1055 | (_ (setq state (pop states))))) |
| 1056 | (_ (error "Internal error in sh-font-lock-quoted-subshell"))) | 1056 | (_ (error "Internal error in sh-font-lock-quoted-subshell"))) |
| 1057 | (forward-char 1)) | 1057 | (forward-char 1)) |
| @@ -1601,7 +1601,7 @@ with your script for an edit-interpret-debug cycle." | |||
| 1601 | (setq-local comint-prompt-regexp "^[ \t]*") | 1601 | (setq-local comint-prompt-regexp "^[ \t]*") |
| 1602 | (setq-local imenu-case-fold-search nil) | 1602 | (setq-local imenu-case-fold-search nil) |
| 1603 | (setq font-lock-defaults | 1603 | (setq font-lock-defaults |
| 1604 | `((sh-font-lock-keywords | 1604 | '((sh-font-lock-keywords |
| 1605 | sh-font-lock-keywords-1 sh-font-lock-keywords-2) | 1605 | sh-font-lock-keywords-1 sh-font-lock-keywords-2) |
| 1606 | nil nil | 1606 | nil nil |
| 1607 | ((?/ . "w") (?~ . "w") (?. . "w") (?- . "w") (?_ . "w")) nil | 1607 | ((?/ . "w") (?~ . "w") (?. . "w") (?- . "w") (?_ . "w")) nil |
| @@ -2035,8 +2035,8 @@ May return nil if the line should not be treated as continued." | |||
| 2035 | 2035 | ||
| 2036 | (defun sh-smie-sh-rules (kind token) | 2036 | (defun sh-smie-sh-rules (kind token) |
| 2037 | (pcase (cons kind token) | 2037 | (pcase (cons kind token) |
| 2038 | (`(:elem . basic) sh-basic-offset) | 2038 | ('(:elem . basic) sh-basic-offset) |
| 2039 | (`(:after . "case-)") (- (sh-var-value 'sh-indent-for-case-alt) | 2039 | ('(:after . "case-)") (- (sh-var-value 'sh-indent-for-case-alt) |
| 2040 | (sh-var-value 'sh-indent-for-case-label))) | 2040 | (sh-var-value 'sh-indent-for-case-label))) |
| 2041 | (`(:before . ,(or "(" "{" "[" "while" "if" "for" "case")) | 2041 | (`(:before . ,(or "(" "{" "[" "while" "if" "for" "case")) |
| 2042 | (if (not (smie-rule-prev-p "&&" "||" "|")) | 2042 | (if (not (smie-rule-prev-p "&&" "||" "|")) |
| @@ -2069,17 +2069,17 @@ May return nil if the line should not be treated as continued." | |||
| 2069 | (smie-indent-virtual))))) | 2069 | (smie-indent-virtual))))) |
| 2070 | 2070 | ||
| 2071 | ;; Attempt at backward compatibility with the old config variables. | 2071 | ;; Attempt at backward compatibility with the old config variables. |
| 2072 | (`(:before . "fi") (sh-var-value 'sh-indent-for-fi)) | 2072 | ('(:before . "fi") (sh-var-value 'sh-indent-for-fi)) |
| 2073 | (`(:before . "done") (sh-var-value 'sh-indent-for-done)) | 2073 | ('(:before . "done") (sh-var-value 'sh-indent-for-done)) |
| 2074 | (`(:after . "else") (sh-var-value 'sh-indent-after-else)) | 2074 | ('(:after . "else") (sh-var-value 'sh-indent-after-else)) |
| 2075 | (`(:after . "if") (sh-var-value 'sh-indent-after-if)) | 2075 | ('(:after . "if") (sh-var-value 'sh-indent-after-if)) |
| 2076 | (`(:before . "then") (sh-var-value 'sh-indent-for-then)) | 2076 | ('(:before . "then") (sh-var-value 'sh-indent-for-then)) |
| 2077 | (`(:before . "do") (sh-var-value 'sh-indent-for-do)) | 2077 | ('(:before . "do") (sh-var-value 'sh-indent-for-do)) |
| 2078 | (`(:after . "do") | 2078 | ('(:after . "do") |
| 2079 | (sh-var-value (if (smie-rule-hanging-p) | 2079 | (sh-var-value (if (smie-rule-hanging-p) |
| 2080 | 'sh-indent-after-loop-construct 'sh-indent-after-do))) | 2080 | 'sh-indent-after-loop-construct 'sh-indent-after-do))) |
| 2081 | ;; sh-indent-after-done: aligned completely differently. | 2081 | ;; sh-indent-after-done: aligned completely differently. |
| 2082 | (`(:after . "in") (sh-var-value 'sh-indent-for-case-label)) | 2082 | ('(:after . "in") (sh-var-value 'sh-indent-for-case-label)) |
| 2083 | ;; sh-indent-for-continuation: Line continuations are handled differently. | 2083 | ;; sh-indent-for-continuation: Line continuations are handled differently. |
| 2084 | (`(:after . ,(or "(" "{" "[")) | 2084 | (`(:after . ,(or "(" "{" "[")) |
| 2085 | (if (not (looking-at ".[ \t]*[^\n \t#]")) | 2085 | (if (not (looking-at ".[ \t]*[^\n \t#]")) |
| @@ -2244,12 +2244,12 @@ Point should be before the newline." | |||
| 2244 | 2244 | ||
| 2245 | (defun sh-smie-rc-rules (kind token) | 2245 | (defun sh-smie-rc-rules (kind token) |
| 2246 | (pcase (cons kind token) | 2246 | (pcase (cons kind token) |
| 2247 | (`(:elem . basic) sh-basic-offset) | 2247 | ('(:elem . basic) sh-basic-offset) |
| 2248 | ;; (`(:after . "case") (or sh-basic-offset smie-indent-basic)) | 2248 | ;; (`(:after . "case") (or sh-basic-offset smie-indent-basic)) |
| 2249 | (`(:after . ";") | 2249 | ('(:after . ";") |
| 2250 | (if (smie-rule-parent-p "case") | 2250 | (if (smie-rule-parent-p "case") |
| 2251 | (smie-rule-parent (sh-var-value 'sh-indent-after-case)))) | 2251 | (smie-rule-parent (sh-var-value 'sh-indent-after-case)))) |
| 2252 | (`(:before . "{") | 2252 | ('(:before . "{") |
| 2253 | (save-excursion | 2253 | (save-excursion |
| 2254 | (when (sh-smie--rc-after-special-arg-p) | 2254 | (when (sh-smie--rc-after-special-arg-p) |
| 2255 | `(column . ,(current-column))))) | 2255 | `(column . ,(current-column))))) |
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 1cdae35ac30..51f78bd840b 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -3209,21 +3209,21 @@ function like this: (sql-get-login \\='user \\='password \\='database)." | |||
| 3209 | (dolist (w what) | 3209 | (dolist (w what) |
| 3210 | (let ((plist (cdr-safe w))) | 3210 | (let ((plist (cdr-safe w))) |
| 3211 | (pcase (or (car-safe w) w) | 3211 | (pcase (or (car-safe w) w) |
| 3212 | (`user | 3212 | ('user |
| 3213 | (sql-get-login-ext 'sql-user "User: " 'sql-user-history plist)) | 3213 | (sql-get-login-ext 'sql-user "User: " 'sql-user-history plist)) |
| 3214 | 3214 | ||
| 3215 | (`password | 3215 | ('password |
| 3216 | (setq-default sql-password | 3216 | (setq-default sql-password |
| 3217 | (read-passwd "Password: " nil (sql-default-value 'sql-password)))) | 3217 | (read-passwd "Password: " nil (sql-default-value 'sql-password)))) |
| 3218 | 3218 | ||
| 3219 | (`server | 3219 | ('server |
| 3220 | (sql-get-login-ext 'sql-server "Server: " 'sql-server-history plist)) | 3220 | (sql-get-login-ext 'sql-server "Server: " 'sql-server-history plist)) |
| 3221 | 3221 | ||
| 3222 | (`database | 3222 | ('database |
| 3223 | (sql-get-login-ext 'sql-database "Database: " | 3223 | (sql-get-login-ext 'sql-database "Database: " |
| 3224 | 'sql-database-history plist)) | 3224 | 'sql-database-history plist)) |
| 3225 | 3225 | ||
| 3226 | (`port | 3226 | ('port |
| 3227 | (sql-get-login-ext 'sql-port "Port: " | 3227 | (sql-get-login-ext 'sql-port "Port: " |
| 3228 | nil (append '(:number t) plist))))))) | 3228 | nil (append '(:number t) plist))))))) |
| 3229 | 3229 | ||
| @@ -3332,20 +3332,20 @@ server/database name." | |||
| 3332 | (sql-get-product-feature (or product sql-product) :sqli-login) | 3332 | (sql-get-product-feature (or product sql-product) :sqli-login) |
| 3333 | (lambda (token plist) | 3333 | (lambda (token plist) |
| 3334 | (pcase token | 3334 | (pcase token |
| 3335 | (`user | 3335 | ('user |
| 3336 | (unless (string= "" sql-user) | 3336 | (unless (string= "" sql-user) |
| 3337 | (list "/" sql-user))) | 3337 | (list "/" sql-user))) |
| 3338 | (`port | 3338 | ('port |
| 3339 | (unless (or (not (numberp sql-port)) | 3339 | (unless (or (not (numberp sql-port)) |
| 3340 | (= 0 sql-port)) | 3340 | (= 0 sql-port)) |
| 3341 | (list ":" (number-to-string sql-port)))) | 3341 | (list ":" (number-to-string sql-port)))) |
| 3342 | (`server | 3342 | ('server |
| 3343 | (unless (string= "" sql-server) | 3343 | (unless (string= "" sql-server) |
| 3344 | (list "." | 3344 | (list "." |
| 3345 | (if (plist-member plist :file) | 3345 | (if (plist-member plist :file) |
| 3346 | (file-name-nondirectory sql-server) | 3346 | (file-name-nondirectory sql-server) |
| 3347 | sql-server)))) | 3347 | sql-server)))) |
| 3348 | (`database | 3348 | ('database |
| 3349 | (unless (string= "" sql-database) | 3349 | (unless (string= "" sql-database) |
| 3350 | (list "@" | 3350 | (list "@" |
| 3351 | (if (plist-member plist :file) | 3351 | (if (plist-member plist :file) |
| @@ -4314,11 +4314,11 @@ is specified in the connection settings." | |||
| 4314 | (mapcar | 4314 | (mapcar |
| 4315 | (lambda (v) | 4315 | (lambda (v) |
| 4316 | (pcase (car v) | 4316 | (pcase (car v) |
| 4317 | (`sql-user 'user) | 4317 | ('sql-user 'user) |
| 4318 | (`sql-password 'password) | 4318 | ('sql-password 'password) |
| 4319 | (`sql-server 'server) | 4319 | ('sql-server 'server) |
| 4320 | (`sql-database 'database) | 4320 | ('sql-database 'database) |
| 4321 | (`sql-port 'port) | 4321 | ('sql-port 'port) |
| 4322 | (s s))) | 4322 | (s s))) |
| 4323 | connect-set)) | 4323 | connect-set)) |
| 4324 | 4324 | ||
| @@ -4382,11 +4382,11 @@ optionally is saved to the user's init file." | |||
| 4382 | `(product ,@login) | 4382 | `(product ,@login) |
| 4383 | (lambda (token _plist) | 4383 | (lambda (token _plist) |
| 4384 | (pcase token | 4384 | (pcase token |
| 4385 | (`product `(sql-product ',product)) | 4385 | ('product `(sql-product ',product)) |
| 4386 | (`user `(sql-user ,user)) | 4386 | ('user `(sql-user ,user)) |
| 4387 | (`database `(sql-database ,database)) | 4387 | ('database `(sql-database ,database)) |
| 4388 | (`server `(sql-server ,server)) | 4388 | ('server `(sql-server ,server)) |
| 4389 | (`port `(sql-port ,port))))))) | 4389 | ('port `(sql-port ,port))))))) |
| 4390 | 4390 | ||
| 4391 | (setq alist (append alist (list connect))) | 4391 | (setq alist (append alist (list connect))) |
| 4392 | 4392 | ||
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 66577619028..f26576722ca 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el | |||
| @@ -238,7 +238,7 @@ STRING should be given if the last search was by `string-match' on STRING." | |||
| 238 | (unless (featurep 'xemacs) | 238 | (unless (featurep 'xemacs) |
| 239 | (unless (fboundp 'region-active-p) | 239 | (unless (fboundp 'region-active-p) |
| 240 | (defmacro region-active-p () | 240 | (defmacro region-active-p () |
| 241 | `(and transient-mark-mode mark-active)))) | 241 | '(and transient-mark-mode mark-active)))) |
| 242 | ) | 242 | ) |
| 243 | 243 | ||
| 244 | ;; Provide a regular expression optimization routine, using regexp-opt | 244 | ;; Provide a regular expression optimization routine, using regexp-opt |
| @@ -250,7 +250,7 @@ STRING should be given if the last search was by `string-match' on STRING." | |||
| 250 | (if (fboundp 'regexp-opt) | 250 | (if (fboundp 'regexp-opt) |
| 251 | ;; regexp-opt is defined, does it take 3 or 2 arguments? | 251 | ;; regexp-opt is defined, does it take 3 or 2 arguments? |
| 252 | (if (fboundp 'function-max-args) | 252 | (if (fboundp 'function-max-args) |
| 253 | (let ((args (function-max-args `regexp-opt))) | 253 | (let ((args (function-max-args 'regexp-opt))) |
| 254 | (cond | 254 | (cond |
| 255 | ((eq args 3) ; It takes 3 | 255 | ((eq args 3) ; It takes 3 |
| 256 | (condition-case nil ; Hide this defun from emacses | 256 | (condition-case nil ; Hide this defun from emacses |
| @@ -382,7 +382,7 @@ wherever possible, since it is slow." | |||
| 382 | ((vectorp menu) | 382 | ((vectorp menu) |
| 383 | (let ((i 0) (out [])) | 383 | (let ((i 0) (out [])) |
| 384 | (while (< i (length menu)) | 384 | (while (< i (length menu)) |
| 385 | (if (equal `:help (aref menu i)) | 385 | (if (equal :help (aref menu i)) |
| 386 | (setq i (+ 2 i)) | 386 | (setq i (+ 2 i)) |
| 387 | (setq out (vconcat out (vector (aref menu i))) | 387 | (setq out (vconcat out (vector (aref menu i))) |
| 388 | i (1+ i)))) | 388 | i (1+ i)))) |
| @@ -1432,7 +1432,7 @@ If set will become buffer local.") | |||
| 1432 | (define-key map [(meta delete)] 'kill-word)) | 1432 | (define-key map [(meta delete)] 'kill-word)) |
| 1433 | (define-key map "\M-\C-b" 'electric-verilog-backward-sexp) | 1433 | (define-key map "\M-\C-b" 'electric-verilog-backward-sexp) |
| 1434 | (define-key map "\M-\C-f" 'electric-verilog-forward-sexp) | 1434 | (define-key map "\M-\C-f" 'electric-verilog-forward-sexp) |
| 1435 | (define-key map "\M-\r" `electric-verilog-terminate-and-indent) | 1435 | (define-key map "\M-\r" 'electric-verilog-terminate-and-indent) |
| 1436 | (define-key map "\M-\t" (if (fboundp 'completion-at-point) | 1436 | (define-key map "\M-\t" (if (fboundp 'completion-at-point) |
| 1437 | 'completion-at-point 'verilog-complete-word)) | 1437 | 'completion-at-point 'verilog-complete-word)) |
| 1438 | (define-key map "\M-?" (if (fboundp 'completion-help-at-point) | 1438 | (define-key map "\M-?" (if (fboundp 'completion-help-at-point) |
| @@ -1481,35 +1481,35 @@ If set will become buffer local.") | |||
| 1481 | (setq verilog-tool 'verilog-linter) | 1481 | (setq verilog-tool 'verilog-linter) |
| 1482 | (verilog-set-compile-command)) | 1482 | (verilog-set-compile-command)) |
| 1483 | :style radio | 1483 | :style radio |
| 1484 | :selected (equal verilog-tool `verilog-linter) | 1484 | :selected (equal verilog-tool 'verilog-linter) |
| 1485 | :help "When invoking compilation, use lint checker"] | 1485 | :help "When invoking compilation, use lint checker"] |
| 1486 | ["Coverage" | 1486 | ["Coverage" |
| 1487 | (progn | 1487 | (progn |
| 1488 | (setq verilog-tool 'verilog-coverage) | 1488 | (setq verilog-tool 'verilog-coverage) |
| 1489 | (verilog-set-compile-command)) | 1489 | (verilog-set-compile-command)) |
| 1490 | :style radio | 1490 | :style radio |
| 1491 | :selected (equal verilog-tool `verilog-coverage) | 1491 | :selected (equal verilog-tool 'verilog-coverage) |
| 1492 | :help "When invoking compilation, annotate for coverage"] | 1492 | :help "When invoking compilation, annotate for coverage"] |
| 1493 | ["Simulator" | 1493 | ["Simulator" |
| 1494 | (progn | 1494 | (progn |
| 1495 | (setq verilog-tool 'verilog-simulator) | 1495 | (setq verilog-tool 'verilog-simulator) |
| 1496 | (verilog-set-compile-command)) | 1496 | (verilog-set-compile-command)) |
| 1497 | :style radio | 1497 | :style radio |
| 1498 | :selected (equal verilog-tool `verilog-simulator) | 1498 | :selected (equal verilog-tool 'verilog-simulator) |
| 1499 | :help "When invoking compilation, interpret Verilog source"] | 1499 | :help "When invoking compilation, interpret Verilog source"] |
| 1500 | ["Compiler" | 1500 | ["Compiler" |
| 1501 | (progn | 1501 | (progn |
| 1502 | (setq verilog-tool 'verilog-compiler) | 1502 | (setq verilog-tool 'verilog-compiler) |
| 1503 | (verilog-set-compile-command)) | 1503 | (verilog-set-compile-command)) |
| 1504 | :style radio | 1504 | :style radio |
| 1505 | :selected (equal verilog-tool `verilog-compiler) | 1505 | :selected (equal verilog-tool 'verilog-compiler) |
| 1506 | :help "When invoking compilation, compile Verilog source"] | 1506 | :help "When invoking compilation, compile Verilog source"] |
| 1507 | ["Preprocessor" | 1507 | ["Preprocessor" |
| 1508 | (progn | 1508 | (progn |
| 1509 | (setq verilog-tool 'verilog-preprocessor) | 1509 | (setq verilog-tool 'verilog-preprocessor) |
| 1510 | (verilog-set-compile-command)) | 1510 | (verilog-set-compile-command)) |
| 1511 | :style radio | 1511 | :style radio |
| 1512 | :selected (equal verilog-tool `verilog-preprocessor) | 1512 | :selected (equal verilog-tool 'verilog-preprocessor) |
| 1513 | :help "When invoking compilation, preprocess Verilog source, see also `verilog-preprocess'"] | 1513 | :help "When invoking compilation, preprocess Verilog source, see also `verilog-preprocess'"] |
| 1514 | ) | 1514 | ) |
| 1515 | ("Move" | 1515 | ("Move" |
| @@ -1728,29 +1728,29 @@ If set will become buffer local.") | |||
| 1728 | :enable-function (lambda () (not (verilog-in-comment-or-string-p)))) | 1728 | :enable-function (lambda () (not (verilog-in-comment-or-string-p)))) |
| 1729 | (verilog-define-abbrev verilog-mode-abbrev-table "class" "" 'verilog-sk-ovm-class) | 1729 | (verilog-define-abbrev verilog-mode-abbrev-table "class" "" 'verilog-sk-ovm-class) |
| 1730 | (verilog-define-abbrev verilog-mode-abbrev-table "always" "" 'verilog-sk-always) | 1730 | (verilog-define-abbrev verilog-mode-abbrev-table "always" "" 'verilog-sk-always) |
| 1731 | (verilog-define-abbrev verilog-mode-abbrev-table "begin" nil `verilog-sk-begin) | 1731 | (verilog-define-abbrev verilog-mode-abbrev-table "begin" nil 'verilog-sk-begin) |
| 1732 | (verilog-define-abbrev verilog-mode-abbrev-table "case" "" `verilog-sk-case) | 1732 | (verilog-define-abbrev verilog-mode-abbrev-table "case" "" 'verilog-sk-case) |
| 1733 | (verilog-define-abbrev verilog-mode-abbrev-table "for" "" `verilog-sk-for) | 1733 | (verilog-define-abbrev verilog-mode-abbrev-table "for" "" 'verilog-sk-for) |
| 1734 | (verilog-define-abbrev verilog-mode-abbrev-table "generate" "" `verilog-sk-generate) | 1734 | (verilog-define-abbrev verilog-mode-abbrev-table "generate" "" 'verilog-sk-generate) |
| 1735 | (verilog-define-abbrev verilog-mode-abbrev-table "initial" "" `verilog-sk-initial) | 1735 | (verilog-define-abbrev verilog-mode-abbrev-table "initial" "" 'verilog-sk-initial) |
| 1736 | (verilog-define-abbrev verilog-mode-abbrev-table "fork" "" `verilog-sk-fork) | 1736 | (verilog-define-abbrev verilog-mode-abbrev-table "fork" "" 'verilog-sk-fork) |
| 1737 | (verilog-define-abbrev verilog-mode-abbrev-table "module" "" `verilog-sk-module) | 1737 | (verilog-define-abbrev verilog-mode-abbrev-table "module" "" 'verilog-sk-module) |
| 1738 | (verilog-define-abbrev verilog-mode-abbrev-table "primitive" "" `verilog-sk-primitive) | 1738 | (verilog-define-abbrev verilog-mode-abbrev-table "primitive" "" 'verilog-sk-primitive) |
| 1739 | (verilog-define-abbrev verilog-mode-abbrev-table "repeat" "" `verilog-sk-repeat) | 1739 | (verilog-define-abbrev verilog-mode-abbrev-table "repeat" "" 'verilog-sk-repeat) |
| 1740 | (verilog-define-abbrev verilog-mode-abbrev-table "specify" "" `verilog-sk-specify) | 1740 | (verilog-define-abbrev verilog-mode-abbrev-table "specify" "" 'verilog-sk-specify) |
| 1741 | (verilog-define-abbrev verilog-mode-abbrev-table "task" "" `verilog-sk-task) | 1741 | (verilog-define-abbrev verilog-mode-abbrev-table "task" "" 'verilog-sk-task) |
| 1742 | (verilog-define-abbrev verilog-mode-abbrev-table "while" "" `verilog-sk-while) | 1742 | (verilog-define-abbrev verilog-mode-abbrev-table "while" "" 'verilog-sk-while) |
| 1743 | (verilog-define-abbrev verilog-mode-abbrev-table "casex" "" `verilog-sk-casex) | 1743 | (verilog-define-abbrev verilog-mode-abbrev-table "casex" "" 'verilog-sk-casex) |
| 1744 | (verilog-define-abbrev verilog-mode-abbrev-table "casez" "" `verilog-sk-casez) | 1744 | (verilog-define-abbrev verilog-mode-abbrev-table "casez" "" 'verilog-sk-casez) |
| 1745 | (verilog-define-abbrev verilog-mode-abbrev-table "if" "" `verilog-sk-if) | 1745 | (verilog-define-abbrev verilog-mode-abbrev-table "if" "" 'verilog-sk-if) |
| 1746 | (verilog-define-abbrev verilog-mode-abbrev-table "else if" "" `verilog-sk-else-if) | 1746 | (verilog-define-abbrev verilog-mode-abbrev-table "else if" "" 'verilog-sk-else-if) |
| 1747 | (verilog-define-abbrev verilog-mode-abbrev-table "assign" "" `verilog-sk-assign) | 1747 | (verilog-define-abbrev verilog-mode-abbrev-table "assign" "" 'verilog-sk-assign) |
| 1748 | (verilog-define-abbrev verilog-mode-abbrev-table "function" "" `verilog-sk-function) | 1748 | (verilog-define-abbrev verilog-mode-abbrev-table "function" "" 'verilog-sk-function) |
| 1749 | (verilog-define-abbrev verilog-mode-abbrev-table "input" "" `verilog-sk-input) | 1749 | (verilog-define-abbrev verilog-mode-abbrev-table "input" "" 'verilog-sk-input) |
| 1750 | (verilog-define-abbrev verilog-mode-abbrev-table "output" "" `verilog-sk-output) | 1750 | (verilog-define-abbrev verilog-mode-abbrev-table "output" "" 'verilog-sk-output) |
| 1751 | (verilog-define-abbrev verilog-mode-abbrev-table "inout" "" `verilog-sk-inout) | 1751 | (verilog-define-abbrev verilog-mode-abbrev-table "inout" "" 'verilog-sk-inout) |
| 1752 | (verilog-define-abbrev verilog-mode-abbrev-table "wire" "" `verilog-sk-wire) | 1752 | (verilog-define-abbrev verilog-mode-abbrev-table "wire" "" 'verilog-sk-wire) |
| 1753 | (verilog-define-abbrev verilog-mode-abbrev-table "reg" "" `verilog-sk-reg) | 1753 | (verilog-define-abbrev verilog-mode-abbrev-table "reg" "" 'verilog-sk-reg) |
| 1754 | 1754 | ||
| 1755 | ;; | 1755 | ;; |
| 1756 | ;; Macros | 1756 | ;; Macros |
| @@ -2402,7 +2402,7 @@ find the errors." | |||
| 2402 | (defconst verilog-assignment-operator-re | 2402 | (defconst verilog-assignment-operator-re |
| 2403 | (eval-when-compile | 2403 | (eval-when-compile |
| 2404 | (verilog-regexp-opt | 2404 | (verilog-regexp-opt |
| 2405 | `( | 2405 | '( |
| 2406 | ;; blocking assignment_operator | 2406 | ;; blocking assignment_operator |
| 2407 | "=" "+=" "-=" "*=" "/=" "%=" "&=" "|=" "^=" "<<=" ">>=" "<<<=" ">>>=" | 2407 | "=" "+=" "-=" "*=" "/=" "%=" "&=" "|=" "^=" "<<=" ">>=" "<<<=" ">>>=" |
| 2408 | ;; non blocking assignment operator | 2408 | ;; non blocking assignment operator |
| @@ -2478,7 +2478,7 @@ find the errors." | |||
| 2478 | verilog-directive-re "\\)\\|\\(" | 2478 | verilog-directive-re "\\)\\|\\(" |
| 2479 | (eval-when-compile | 2479 | (eval-when-compile |
| 2480 | (verilog-regexp-words | 2480 | (verilog-regexp-words |
| 2481 | `( "begin" | 2481 | '( "begin" |
| 2482 | "else" | 2482 | "else" |
| 2483 | "end" | 2483 | "end" |
| 2484 | "endcase" | 2484 | "endcase" |
| @@ -2531,7 +2531,7 @@ find the errors." | |||
| 2531 | (eval-when-compile | 2531 | (eval-when-compile |
| 2532 | (verilog-regexp-words | 2532 | (verilog-regexp-words |
| 2533 | 2533 | ||
| 2534 | `("end" ; closes begin | 2534 | '("end" ; closes begin |
| 2535 | "endcase" ; closes any of case, casex casez or randcase | 2535 | "endcase" ; closes any of case, casex casez or randcase |
| 2536 | "join" "join_any" "join_none" ; closes fork | 2536 | "join" "join_any" "join_none" ; closes fork |
| 2537 | "endclass" | 2537 | "endclass" |
| @@ -2601,7 +2601,7 @@ find the errors." | |||
| 2601 | (defconst verilog-beg-block-re | 2601 | (defconst verilog-beg-block-re |
| 2602 | (eval-when-compile | 2602 | (eval-when-compile |
| 2603 | (verilog-regexp-words | 2603 | (verilog-regexp-words |
| 2604 | `("begin" | 2604 | '("begin" |
| 2605 | "case" "casex" "casez" "randcase" | 2605 | "case" "casex" "casez" "randcase" |
| 2606 | "clocking" | 2606 | "clocking" |
| 2607 | "generate" | 2607 | "generate" |
| @@ -2677,7 +2677,7 @@ find the errors." | |||
| 2677 | (defconst verilog-nameable-item-re | 2677 | (defconst verilog-nameable-item-re |
| 2678 | (eval-when-compile | 2678 | (eval-when-compile |
| 2679 | (verilog-regexp-words | 2679 | (verilog-regexp-words |
| 2680 | `("begin" | 2680 | '("begin" |
| 2681 | "fork" | 2681 | "fork" |
| 2682 | "join" "join_any" "join_none" | 2682 | "join" "join_any" "join_none" |
| 2683 | "end" | 2683 | "end" |
| @@ -2704,12 +2704,12 @@ find the errors." | |||
| 2704 | (defconst verilog-declaration-opener | 2704 | (defconst verilog-declaration-opener |
| 2705 | (eval-when-compile | 2705 | (eval-when-compile |
| 2706 | (verilog-regexp-words | 2706 | (verilog-regexp-words |
| 2707 | `("module" "begin" "task" "function")))) | 2707 | '("module" "begin" "task" "function")))) |
| 2708 | 2708 | ||
| 2709 | (defconst verilog-declaration-prefix-re | 2709 | (defconst verilog-declaration-prefix-re |
| 2710 | (eval-when-compile | 2710 | (eval-when-compile |
| 2711 | (verilog-regexp-words | 2711 | (verilog-regexp-words |
| 2712 | `( | 2712 | '( |
| 2713 | ;; port direction | 2713 | ;; port direction |
| 2714 | "inout" "input" "output" "ref" | 2714 | "inout" "input" "output" "ref" |
| 2715 | ;; changeableness | 2715 | ;; changeableness |
| @@ -2722,7 +2722,7 @@ find the errors." | |||
| 2722 | (defconst verilog-declaration-core-re | 2722 | (defconst verilog-declaration-core-re |
| 2723 | (eval-when-compile | 2723 | (eval-when-compile |
| 2724 | (verilog-regexp-words | 2724 | (verilog-regexp-words |
| 2725 | `( | 2725 | '( |
| 2726 | ;; port direction (by themselves) | 2726 | ;; port direction (by themselves) |
| 2727 | "inout" "input" "output" | 2727 | "inout" "input" "output" |
| 2728 | ;; integer_atom_type | 2728 | ;; integer_atom_type |
| @@ -2764,25 +2764,25 @@ find the errors." | |||
| 2764 | (defconst verilog-declaration-re-1-no-macro (concat "^" verilog-declaration-re-2-no-macro)) | 2764 | (defconst verilog-declaration-re-1-no-macro (concat "^" verilog-declaration-re-2-no-macro)) |
| 2765 | 2765 | ||
| 2766 | (defconst verilog-defun-re | 2766 | (defconst verilog-defun-re |
| 2767 | (eval-when-compile (verilog-regexp-words `("macromodule" "module" "class" "program" "interface" "package" "primitive" "config")))) | 2767 | (eval-when-compile (verilog-regexp-words '("macromodule" "module" "class" "program" "interface" "package" "primitive" "config")))) |
| 2768 | (defconst verilog-end-defun-re | 2768 | (defconst verilog-end-defun-re |
| 2769 | (eval-when-compile (verilog-regexp-words `("endmodule" "endclass" "endprogram" "endinterface" "endpackage" "endprimitive" "endconfig")))) | 2769 | (eval-when-compile (verilog-regexp-words '("endmodule" "endclass" "endprogram" "endinterface" "endpackage" "endprimitive" "endconfig")))) |
| 2770 | (defconst verilog-zero-indent-re | 2770 | (defconst verilog-zero-indent-re |
| 2771 | (concat verilog-defun-re "\\|" verilog-end-defun-re)) | 2771 | (concat verilog-defun-re "\\|" verilog-end-defun-re)) |
| 2772 | (defconst verilog-inst-comment-re | 2772 | (defconst verilog-inst-comment-re |
| 2773 | (eval-when-compile (verilog-regexp-words `("Outputs" "Inouts" "Inputs" "Interfaces" "Interfaced")))) | 2773 | (eval-when-compile (verilog-regexp-words '("Outputs" "Inouts" "Inputs" "Interfaces" "Interfaced")))) |
| 2774 | 2774 | ||
| 2775 | (defconst verilog-behavioral-block-beg-re | 2775 | (defconst verilog-behavioral-block-beg-re |
| 2776 | (eval-when-compile (verilog-regexp-words `("initial" "final" "always" "always_comb" "always_latch" "always_ff" | 2776 | (eval-when-compile (verilog-regexp-words '("initial" "final" "always" "always_comb" "always_latch" "always_ff" |
| 2777 | "function" "task")))) | 2777 | "function" "task")))) |
| 2778 | (defconst verilog-coverpoint-re "\\w+\\s*:\\s*\\(coverpoint\\|cross\\constraint\\)" ) | 2778 | (defconst verilog-coverpoint-re "\\w+\\s*:\\s*\\(coverpoint\\|cross\\constraint\\)" ) |
| 2779 | (defconst verilog-in-constraint-re ; keywords legal in constraint blocks starting a statement/block | 2779 | (defconst verilog-in-constraint-re ; keywords legal in constraint blocks starting a statement/block |
| 2780 | (eval-when-compile (verilog-regexp-words `("if" "else" "solve" "foreach")))) | 2780 | (eval-when-compile (verilog-regexp-words '("if" "else" "solve" "foreach")))) |
| 2781 | 2781 | ||
| 2782 | (defconst verilog-indent-re | 2782 | (defconst verilog-indent-re |
| 2783 | (eval-when-compile | 2783 | (eval-when-compile |
| 2784 | (verilog-regexp-words | 2784 | (verilog-regexp-words |
| 2785 | `( | 2785 | '( |
| 2786 | "{" | 2786 | "{" |
| 2787 | "always" "always_latch" "always_ff" "always_comb" | 2787 | "always" "always_latch" "always_ff" "always_comb" |
| 2788 | "begin" "end" | 2788 | "begin" "end" |
| @@ -2866,28 +2866,28 @@ find the errors." | |||
| 2866 | (defconst verilog-defun-level-not-generate-re | 2866 | (defconst verilog-defun-level-not-generate-re |
| 2867 | (eval-when-compile | 2867 | (eval-when-compile |
| 2868 | (verilog-regexp-words | 2868 | (verilog-regexp-words |
| 2869 | `( "module" "macromodule" "primitive" "class" "program" | 2869 | '( "module" "macromodule" "primitive" "class" "program" |
| 2870 | "interface" "package" "config")))) | 2870 | "interface" "package" "config")))) |
| 2871 | 2871 | ||
| 2872 | (defconst verilog-defun-level-re | 2872 | (defconst verilog-defun-level-re |
| 2873 | (eval-when-compile | 2873 | (eval-when-compile |
| 2874 | (verilog-regexp-words | 2874 | (verilog-regexp-words |
| 2875 | (append | 2875 | (append |
| 2876 | `( "module" "macromodule" "primitive" "class" "program" | 2876 | '( "module" "macromodule" "primitive" "class" "program" |
| 2877 | "interface" "package" "config") | 2877 | "interface" "package" "config") |
| 2878 | `( "initial" "final" "always" "always_comb" "always_ff" | 2878 | '( "initial" "final" "always" "always_comb" "always_ff" |
| 2879 | "always_latch" "endtask" "endfunction" ))))) | 2879 | "always_latch" "endtask" "endfunction" ))))) |
| 2880 | 2880 | ||
| 2881 | (defconst verilog-defun-level-generate-only-re | 2881 | (defconst verilog-defun-level-generate-only-re |
| 2882 | (eval-when-compile | 2882 | (eval-when-compile |
| 2883 | (verilog-regexp-words | 2883 | (verilog-regexp-words |
| 2884 | `( "initial" "final" "always" "always_comb" "always_ff" | 2884 | '( "initial" "final" "always" "always_comb" "always_ff" |
| 2885 | "always_latch" "endtask" "endfunction" )))) | 2885 | "always_latch" "endtask" "endfunction" )))) |
| 2886 | 2886 | ||
| 2887 | (defconst verilog-cpp-level-re | 2887 | (defconst verilog-cpp-level-re |
| 2888 | (eval-when-compile | 2888 | (eval-when-compile |
| 2889 | (verilog-regexp-words | 2889 | (verilog-regexp-words |
| 2890 | `( | 2890 | '( |
| 2891 | "endmodule" "endprimitive" "endinterface" "endpackage" "endprogram" "endclass" | 2891 | "endmodule" "endprimitive" "endinterface" "endpackage" "endprogram" "endclass" |
| 2892 | )))) | 2892 | )))) |
| 2893 | 2893 | ||
| @@ -2908,7 +2908,7 @@ find the errors." | |||
| 2908 | (defconst verilog-basic-complete-re | 2908 | (defconst verilog-basic-complete-re |
| 2909 | (eval-when-compile | 2909 | (eval-when-compile |
| 2910 | (verilog-regexp-words | 2910 | (verilog-regexp-words |
| 2911 | `( | 2911 | '( |
| 2912 | "always" "assign" "always_latch" "always_ff" "always_comb" "constraint" | 2912 | "always" "assign" "always_latch" "always_ff" "always_comb" "constraint" |
| 2913 | "import" "initial" "final" "module" "macromodule" "repeat" "randcase" "while" | 2913 | "import" "initial" "final" "module" "macromodule" "repeat" "randcase" "while" |
| 2914 | "if" "for" "forever" "foreach" "else" "parameter" "do" "localparam" "assert" | 2914 | "if" "for" "forever" "foreach" "else" "parameter" "do" "localparam" "assert" |
| @@ -2937,7 +2937,7 @@ find the errors." | |||
| 2937 | ;; single words | 2937 | ;; single words |
| 2938 | "\\(?:" | 2938 | "\\(?:" |
| 2939 | (verilog-regexp-words | 2939 | (verilog-regexp-words |
| 2940 | `("`__FILE__" | 2940 | '("`__FILE__" |
| 2941 | "`__LINE__" | 2941 | "`__LINE__" |
| 2942 | "`celldefine" | 2942 | "`celldefine" |
| 2943 | "`else" | 2943 | "`else" |
| @@ -3492,7 +3492,7 @@ either is ok to parse as a non-comment, or `verilog-insert' was used." | |||
| 3492 | (remove-text-properties (point-min) (point-max) '(face nil)) | 3492 | (remove-text-properties (point-min) (point-max) '(face nil)) |
| 3493 | (while (not (eobp)) | 3493 | (while (not (eobp)) |
| 3494 | (cond ((get-text-property (point) 'v-cmts) | 3494 | (cond ((get-text-property (point) 'v-cmts) |
| 3495 | (put-text-property (point) (1+ (point)) `face 'underline) | 3495 | (put-text-property (point) (1+ (point)) 'face 'underline) |
| 3496 | ;;(if dbg (setq dbg (concat dbg (format " v-cmts at %S\n" (point))))) | 3496 | ;;(if dbg (setq dbg (concat dbg (format " v-cmts at %S\n" (point))))) |
| 3497 | (forward-char 1)) | 3497 | (forward-char 1)) |
| 3498 | (t | 3498 | (t |
| @@ -5237,11 +5237,11 @@ Useful for creating tri's and other expanded fields." | |||
| 5237 | compile-command)) | 5237 | compile-command)) |
| 5238 | (lint-word1 (verilog-string-replace-matches "\\s .*$" "" nil nil | 5238 | (lint-word1 (verilog-string-replace-matches "\\s .*$" "" nil nil |
| 5239 | verilog-linter))) | 5239 | verilog-linter))) |
| 5240 | (cond ((equal compile-word1 "surelint") `surelint) | 5240 | (cond ((equal compile-word1 "surelint") 'surelint) |
| 5241 | ((equal compile-word1 "verilint") `verilint) | 5241 | ((equal compile-word1 "verilint") 'verilint) |
| 5242 | ((equal lint-word1 "surelint") `surelint) | 5242 | ((equal lint-word1 "surelint") 'surelint) |
| 5243 | ((equal lint-word1 "verilint") `verilint) | 5243 | ((equal lint-word1 "verilint") 'verilint) |
| 5244 | (t `surelint)))) ; back compatibility | 5244 | (t 'surelint)))) ; back compatibility |
| 5245 | 5245 | ||
| 5246 | (defun verilog-lint-off () | 5246 | (defun verilog-lint-off () |
| 5247 | "Convert a Verilog linter warning line into a disable statement. | 5247 | "Convert a Verilog linter warning line into a disable statement. |
| @@ -5255,9 +5255,9 @@ variables is used to determine which product is being used. | |||
| 5255 | See \\[verilog-surelint-off] and \\[verilog-verilint-off]." | 5255 | See \\[verilog-surelint-off] and \\[verilog-verilint-off]." |
| 5256 | (interactive) | 5256 | (interactive) |
| 5257 | (let ((linter (verilog-linter-name))) | 5257 | (let ((linter (verilog-linter-name))) |
| 5258 | (cond ((equal linter `surelint) | 5258 | (cond ((equal linter 'surelint) |
| 5259 | (verilog-surelint-off)) | 5259 | (verilog-surelint-off)) |
| 5260 | ((equal linter `verilint) | 5260 | ((equal linter 'verilint) |
| 5261 | (verilog-verilint-off)) | 5261 | (verilog-verilint-off)) |
| 5262 | (t (error "Linter name not set"))))) | 5262 | (t (error "Linter name not set"))))) |
| 5263 | 5263 | ||
| @@ -5361,7 +5361,7 @@ FILENAME to find directory to run in, or defaults to `buffer-file-name'." | |||
| 5361 | (interactive | 5361 | (interactive |
| 5362 | (list | 5362 | (list |
| 5363 | (let ((default (verilog-expand-command verilog-preprocessor))) | 5363 | (let ((default (verilog-expand-command verilog-preprocessor))) |
| 5364 | (set (make-local-variable `verilog-preprocessor) | 5364 | (set (make-local-variable 'verilog-preprocessor) |
| 5365 | (read-from-minibuffer "Run Preprocessor (like this): " | 5365 | (read-from-minibuffer "Run Preprocessor (like this): " |
| 5366 | default nil nil | 5366 | default nil nil |
| 5367 | 'verilog-preprocess-history default))))) | 5367 | 'verilog-preprocess-history default))))) |
| @@ -5457,7 +5457,7 @@ For proper results, multiple filenames need to be passed on the command | |||
| 5457 | line in bottom-up order." | 5457 | line in bottom-up order." |
| 5458 | (unless noninteractive | 5458 | (unless noninteractive |
| 5459 | (error "Use verilog-batch-auto only with --batch")) ; Otherwise we'd mess up buffer modes | 5459 | (error "Use verilog-batch-auto only with --batch")) ; Otherwise we'd mess up buffer modes |
| 5460 | (verilog-batch-execute-func `verilog-auto)) | 5460 | (verilog-batch-execute-func 'verilog-auto)) |
| 5461 | 5461 | ||
| 5462 | (defun verilog-batch-delete-auto () | 5462 | (defun verilog-batch-delete-auto () |
| 5463 | "For use with --batch, perform automatic deletion as a stand-alone tool. | 5463 | "For use with --batch, perform automatic deletion as a stand-alone tool. |
| @@ -5465,7 +5465,7 @@ This sets up the appropriate Verilog mode environment, deletes automatics | |||
| 5465 | with \\[verilog-delete-auto] on all command-line files, and saves the buffers." | 5465 | with \\[verilog-delete-auto] on all command-line files, and saves the buffers." |
| 5466 | (unless noninteractive | 5466 | (unless noninteractive |
| 5467 | (error "Use verilog-batch-delete-auto only with --batch")) ; Otherwise we'd mess up buffer modes | 5467 | (error "Use verilog-batch-delete-auto only with --batch")) ; Otherwise we'd mess up buffer modes |
| 5468 | (verilog-batch-execute-func `verilog-delete-auto)) | 5468 | (verilog-batch-execute-func 'verilog-delete-auto)) |
| 5469 | 5469 | ||
| 5470 | (defun verilog-batch-delete-trailing-whitespace () | 5470 | (defun verilog-batch-delete-trailing-whitespace () |
| 5471 | "For use with --batch, perform whitespace deletion as a stand-alone tool. | 5471 | "For use with --batch, perform whitespace deletion as a stand-alone tool. |
| @@ -5474,7 +5474,7 @@ whitespace with \\[verilog-delete-trailing-whitespace] on all | |||
| 5474 | command-line files, and saves the buffers." | 5474 | command-line files, and saves the buffers." |
| 5475 | (unless noninteractive | 5475 | (unless noninteractive |
| 5476 | (error "Use verilog-batch-delete-trailing-whitespace only with --batch")) ; Otherwise we'd mess up buffer modes | 5476 | (error "Use verilog-batch-delete-trailing-whitespace only with --batch")) ; Otherwise we'd mess up buffer modes |
| 5477 | (verilog-batch-execute-func `verilog-delete-trailing-whitespace)) | 5477 | (verilog-batch-execute-func 'verilog-delete-trailing-whitespace)) |
| 5478 | 5478 | ||
| 5479 | (defun verilog-batch-diff-auto () | 5479 | (defun verilog-batch-diff-auto () |
| 5480 | "For use with --batch, perform automatic differences as a stand-alone tool. | 5480 | "For use with --batch, perform automatic differences as a stand-alone tool. |
| @@ -5484,7 +5484,7 @@ if any differences are observed. This is appropriate for adding to regressions | |||
| 5484 | to insure automatics are always properly maintained." | 5484 | to insure automatics are always properly maintained." |
| 5485 | (unless noninteractive | 5485 | (unless noninteractive |
| 5486 | (error "Use verilog-batch-diff-auto only with --batch")) ; Otherwise we'd mess up buffer modes | 5486 | (error "Use verilog-batch-diff-auto only with --batch")) ; Otherwise we'd mess up buffer modes |
| 5487 | (verilog-batch-execute-func `verilog-diff-auto t)) | 5487 | (verilog-batch-execute-func 'verilog-diff-auto t)) |
| 5488 | 5488 | ||
| 5489 | (defun verilog-batch-inject-auto () | 5489 | (defun verilog-batch-inject-auto () |
| 5490 | "For use with --batch, perform automatic injection as a stand-alone tool. | 5490 | "For use with --batch, perform automatic injection as a stand-alone tool. |
| @@ -5494,7 +5494,7 @@ For proper results, multiple filenames need to be passed on the command | |||
| 5494 | line in bottom-up order." | 5494 | line in bottom-up order." |
| 5495 | (unless noninteractive | 5495 | (unless noninteractive |
| 5496 | (error "Use verilog-batch-inject-auto only with --batch")) ; Otherwise we'd mess up buffer modes | 5496 | (error "Use verilog-batch-inject-auto only with --batch")) ; Otherwise we'd mess up buffer modes |
| 5497 | (verilog-batch-execute-func `verilog-inject-auto)) | 5497 | (verilog-batch-execute-func 'verilog-inject-auto)) |
| 5498 | 5498 | ||
| 5499 | (defun verilog-batch-indent () | 5499 | (defun verilog-batch-indent () |
| 5500 | "For use with --batch, reindent an entire file as a stand-alone tool. | 5500 | "For use with --batch, reindent an entire file as a stand-alone tool. |
| @@ -5502,7 +5502,7 @@ This sets up the appropriate Verilog mode environment, calls | |||
| 5502 | \\[verilog-indent-buffer] on all command-line files, and saves the buffers." | 5502 | \\[verilog-indent-buffer] on all command-line files, and saves the buffers." |
| 5503 | (unless noninteractive | 5503 | (unless noninteractive |
| 5504 | (error "Use verilog-batch-indent only with --batch")) ; Otherwise we'd mess up buffer modes | 5504 | (error "Use verilog-batch-indent only with --batch")) ; Otherwise we'd mess up buffer modes |
| 5505 | (verilog-batch-execute-func `verilog-indent-buffer)) | 5505 | (verilog-batch-execute-func 'verilog-indent-buffer)) |
| 5506 | 5506 | ||
| 5507 | ;;; Indentation: | 5507 | ;;; Indentation: |
| 5508 | ;; | 5508 | ;; |
| @@ -7339,7 +7339,7 @@ will be completed at runtime and should not be added to this list.") | |||
| 7339 | ("xor" "output")) | 7339 | ("xor" "output")) |
| 7340 | "Map of direction for each positional argument to each gate primitive.") | 7340 | "Map of direction for each positional argument to each gate primitive.") |
| 7341 | 7341 | ||
| 7342 | (defvar verilog-gate-keywords (mapcar `car verilog-gate-ios) | 7342 | (defvar verilog-gate-keywords (mapcar #'car verilog-gate-ios) |
| 7343 | "Keywords for gate primitives.") | 7343 | "Keywords for gate primitives.") |
| 7344 | 7344 | ||
| 7345 | (defun verilog-string-diff (str1 str2) | 7345 | (defun verilog-string-diff (str1 str2) |
| @@ -8172,7 +8172,7 @@ Duplicate signals are also removed. For example A[2] and A[1] become A[2:1]." | |||
| 8172 | sv-modport | 8172 | sv-modport |
| 8173 | bus) | 8173 | bus) |
| 8174 | ;; Shove signals so duplicated signals will be adjacent | 8174 | ;; Shove signals so duplicated signals will be adjacent |
| 8175 | (setq in-list (sort in-list `verilog-signals-sort-compare)) | 8175 | (setq in-list (sort in-list #'verilog-signals-sort-compare)) |
| 8176 | (while in-list | 8176 | (while in-list |
| 8177 | (setq sig (car in-list)) | 8177 | (setq sig (car in-list)) |
| 8178 | ;; No current signal; form from existing details | 8178 | ;; No current signal; form from existing details |
| @@ -8743,7 +8743,7 @@ Return an array of [outputs inouts inputs wire reg assign const]." | |||
| 8743 | (setq port (verilog-symbol-detick-denumber port)) | 8743 | (setq port (verilog-symbol-detick-denumber port)) |
| 8744 | (setq sig (if dotname port (verilog-symbol-detick-denumber sig))) | 8744 | (setq sig (if dotname port (verilog-symbol-detick-denumber sig))) |
| 8745 | (if vec (setq vec (verilog-symbol-detick-denumber vec))) | 8745 | (if vec (setq vec (verilog-symbol-detick-denumber vec))) |
| 8746 | (if multidim (setq multidim (mapcar `verilog-symbol-detick-denumber multidim))) | 8746 | (if multidim (setq multidim (mapcar #'verilog-symbol-detick-denumber multidim))) |
| 8747 | (if mem (setq mem (verilog-symbol-detick-denumber mem))) | 8747 | (if mem (setq mem (verilog-symbol-detick-denumber mem))) |
| 8748 | (unless (or (not sig) | 8748 | (unless (or (not sig) |
| 8749 | (equal sig "")) ; Ignore .foo(1'b1) assignments | 8749 | (equal sig "")) ; Ignore .foo(1'b1) assignments |
| @@ -8997,7 +8997,7 @@ Outputs comments above subcell signals, for example: | |||
| 8997 | submodi submoddecls) | 8997 | submodi submoddecls) |
| 8998 | (cond | 8998 | (cond |
| 8999 | (subprim | 8999 | (subprim |
| 9000 | (setq submodi `primitive | 9000 | (setq submodi 'primitive |
| 9001 | submoddecls (verilog-decls-new nil nil nil nil nil nil nil nil nil) | 9001 | submoddecls (verilog-decls-new nil nil nil nil nil nil nil nil nil) |
| 9002 | comment (concat inst " of " submod)) | 9002 | comment (concat inst " of " submod)) |
| 9003 | (verilog-backward-open-paren) | 9003 | (verilog-backward-open-paren) |
| @@ -9652,7 +9652,7 @@ Use DEFAULT-DIR to anchor paths if non-nil." | |||
| 9652 | ((string-match "^\\+libext\\+\\(.*\\)" arg) | 9652 | ((string-match "^\\+libext\\+\\(.*\\)" arg) |
| 9653 | (setq arg (match-string 1 arg)) | 9653 | (setq arg (match-string 1 arg)) |
| 9654 | (while (string-match "\\([^+]+\\)\\+?\\(.*\\)" arg) | 9654 | (while (string-match "\\([^+]+\\)\\+?\\(.*\\)" arg) |
| 9655 | (verilog-add-list-unique `verilog-library-extensions | 9655 | (verilog-add-list-unique 'verilog-library-extensions |
| 9656 | (match-string 1 arg)) | 9656 | (match-string 1 arg)) |
| 9657 | (setq arg (match-string 2 arg)))) | 9657 | (setq arg (match-string 2 arg)))) |
| 9658 | ;; | 9658 | ;; |
| @@ -9664,7 +9664,7 @@ Use DEFAULT-DIR to anchor paths if non-nil." | |||
| 9664 | ;; | 9664 | ;; |
| 9665 | ((or (string-match "^\\+incdir\\+\\(.*\\)" arg) ; +incdir+dir | 9665 | ((or (string-match "^\\+incdir\\+\\(.*\\)" arg) ; +incdir+dir |
| 9666 | (string-match "^-I\\(.*\\)" arg)) ; -Idir | 9666 | (string-match "^-I\\(.*\\)" arg)) ; -Idir |
| 9667 | (verilog-add-list-unique `verilog-library-directories | 9667 | (verilog-add-list-unique 'verilog-library-directories |
| 9668 | (substitute-in-file-name (match-string 1 arg)))) | 9668 | (substitute-in-file-name (match-string 1 arg)))) |
| 9669 | ;; Ignore | 9669 | ;; Ignore |
| 9670 | ((equal "+librescan" arg)) | 9670 | ((equal "+librescan" arg)) |
| @@ -9679,15 +9679,15 @@ Use DEFAULT-DIR to anchor paths if non-nil." | |||
| 9679 | (verilog-getopt-file (verilog-substitute-file-name-path arg default-dir) nil)) | 9679 | (verilog-getopt-file (verilog-substitute-file-name-path arg default-dir) nil)) |
| 9680 | ((equal next-param "-v") | 9680 | ((equal next-param "-v") |
| 9681 | (setq next-param nil) | 9681 | (setq next-param nil) |
| 9682 | (verilog-add-list-unique `verilog-library-files | 9682 | (verilog-add-list-unique 'verilog-library-files |
| 9683 | (verilog-substitute-file-name-path arg default-dir))) | 9683 | (verilog-substitute-file-name-path arg default-dir))) |
| 9684 | ((equal next-param "-y") | 9684 | ((equal next-param "-y") |
| 9685 | (setq next-param nil) | 9685 | (setq next-param nil) |
| 9686 | (verilog-add-list-unique `verilog-library-directories | 9686 | (verilog-add-list-unique 'verilog-library-directories |
| 9687 | (verilog-substitute-file-name-path arg default-dir))) | 9687 | (verilog-substitute-file-name-path arg default-dir))) |
| 9688 | ;; Filename | 9688 | ;; Filename |
| 9689 | ((string-match "^[^-+]" arg) | 9689 | ((string-match "^[^-+]" arg) |
| 9690 | (verilog-add-list-unique `verilog-library-files | 9690 | (verilog-add-list-unique 'verilog-library-files |
| 9691 | (verilog-substitute-file-name-path arg default-dir))) | 9691 | (verilog-substitute-file-name-path arg default-dir))) |
| 9692 | ;; Default - ignore; no warning | 9692 | ;; Default - ignore; no warning |
| 9693 | )))) | 9693 | )))) |
| @@ -9716,7 +9716,7 @@ Use DEFAULT-DIR to anchor paths if non-nil." | |||
| 9716 | (defun verilog-getopt-flags () | 9716 | (defun verilog-getopt-flags () |
| 9717 | "Convert `verilog-library-flags' into standard library variables." | 9717 | "Convert `verilog-library-flags' into standard library variables." |
| 9718 | ;; If the flags are local, then all the outputs should be local also | 9718 | ;; If the flags are local, then all the outputs should be local also |
| 9719 | (when (local-variable-p `verilog-library-flags (current-buffer)) | 9719 | (when (local-variable-p 'verilog-library-flags (current-buffer)) |
| 9720 | (mapc 'make-local-variable '(verilog-library-extensions | 9720 | (mapc 'make-local-variable '(verilog-library-extensions |
| 9721 | verilog-library-directories | 9721 | verilog-library-directories |
| 9722 | verilog-library-files | 9722 | verilog-library-files |
| @@ -9746,10 +9746,10 @@ unless it is already a member of the variable's list." | |||
| 9746 | (defun verilog-current-flags () | 9746 | (defun verilog-current-flags () |
| 9747 | "Convert `verilog-library-flags' and similar variables to command line. | 9747 | "Convert `verilog-library-flags' and similar variables to command line. |
| 9748 | Used for __FLAGS__ in `verilog-expand-command'." | 9748 | Used for __FLAGS__ in `verilog-expand-command'." |
| 9749 | (let ((cmd (mapconcat `concat verilog-library-flags " "))) | 9749 | (let ((cmd (mapconcat #'concat verilog-library-flags " "))) |
| 9750 | (when (equal cmd "") | 9750 | (when (equal cmd "") |
| 9751 | (setq cmd (concat | 9751 | (setq cmd (concat |
| 9752 | "+libext+" (mapconcat `concat verilog-library-extensions "+") | 9752 | "+libext+" (mapconcat #'concat verilog-library-extensions "+") |
| 9753 | (mapconcat (lambda (i) (concat " -y " i " +incdir+" i)) | 9753 | (mapconcat (lambda (i) (concat " -y " i " +incdir+" i)) |
| 9754 | verilog-library-directories "") | 9754 | verilog-library-directories "") |
| 9755 | (mapconcat (lambda (i) (concat " -v " i)) | 9755 | (mapconcat (lambda (i) (concat " -v " i)) |
| @@ -9974,7 +9974,7 @@ variables to build the path. With optional CHECK-EXT also check | |||
| 9974 | (while chkdirs | 9974 | (while chkdirs |
| 9975 | (setq chkdir (expand-file-name (car chkdirs) | 9975 | (setq chkdir (expand-file-name (car chkdirs) |
| 9976 | (file-name-directory current)) | 9976 | (file-name-directory current)) |
| 9977 | chkexts (if check-ext verilog-library-extensions `(""))) | 9977 | chkexts (if check-ext verilog-library-extensions '(""))) |
| 9978 | (while chkexts | 9978 | (while chkexts |
| 9979 | (setq fn (expand-file-name (concat filename (car chkexts)) | 9979 | (setq fn (expand-file-name (concat filename (car chkexts)) |
| 9980 | chkdir)) | 9980 | chkdir)) |
| @@ -10133,7 +10133,7 @@ Return modi if successful, else print message unless IGNORE-ERROR is true." | |||
| 10133 | (set-buffer (if (bufferp (verilog-modi-file-or-buffer modi)) | 10133 | (set-buffer (if (bufferp (verilog-modi-file-or-buffer modi)) |
| 10134 | (verilog-modi-file-or-buffer modi) | 10134 | (verilog-modi-file-or-buffer modi) |
| 10135 | (find-file-noselect (verilog-modi-file-or-buffer modi)))) | 10135 | (find-file-noselect (verilog-modi-file-or-buffer modi)))) |
| 10136 | (or (equal major-mode `verilog-mode) ; Put into Verilog mode to get syntax | 10136 | (or (equal major-mode 'verilog-mode) ; Put into Verilog mode to get syntax |
| 10137 | (verilog-mode)) | 10137 | (verilog-mode)) |
| 10138 | (goto-char (verilog-modi-get-point modi))) | 10138 | (goto-char (verilog-modi-get-point modi))) |
| 10139 | 10139 | ||
| @@ -10404,7 +10404,7 @@ When MODI is non-null, also add to modi-cache, for tracking." | |||
| 10404 | (t | 10404 | (t |
| 10405 | (error "Unsupported verilog-insert-definition direction: `%s'" direction)))) | 10405 | (error "Unsupported verilog-insert-definition direction: `%s'" direction)))) |
| 10406 | (or dont-sort | 10406 | (or dont-sort |
| 10407 | (setq sigs (sort (copy-alist sigs) `verilog-signals-sort-compare))) | 10407 | (setq sigs (sort (copy-alist sigs) #'verilog-signals-sort-compare))) |
| 10408 | (while sigs | 10408 | (while sigs |
| 10409 | (let ((sig (car sigs))) | 10409 | (let ((sig (car sigs))) |
| 10410 | (verilog-insert-one-definition | 10410 | (verilog-insert-one-definition |
| @@ -10748,7 +10748,7 @@ Intended for internal use inside a `verilog-save-font-no-change-functions' block | |||
| 10748 | (concat "/\\*" | 10748 | (concat "/\\*" |
| 10749 | (eval-when-compile | 10749 | (eval-when-compile |
| 10750 | (verilog-regexp-words | 10750 | (verilog-regexp-words |
| 10751 | `("AS" "AUTOARG" "AUTOCONCATWIDTH" "AUTOINST" "AUTOINSTPARAM" | 10751 | '("AS" "AUTOARG" "AUTOCONCATWIDTH" "AUTOINST" "AUTOINSTPARAM" |
| 10752 | "AUTOSENSE"))) | 10752 | "AUTOSENSE"))) |
| 10753 | "\\*/") | 10753 | "\\*/") |
| 10754 | 'verilog-delete-to-paren) | 10754 | 'verilog-delete-to-paren) |
| @@ -11089,7 +11089,7 @@ If FORCE, always reread it." | |||
| 11089 | Takes SIGS list, adds MESSAGE to front and inserts each at INDENT-PT." | 11089 | Takes SIGS list, adds MESSAGE to front and inserts each at INDENT-PT." |
| 11090 | (when sigs | 11090 | (when sigs |
| 11091 | (when verilog-auto-arg-sort | 11091 | (when verilog-auto-arg-sort |
| 11092 | (setq sigs (sort (copy-alist sigs) `verilog-signals-sort-compare))) | 11092 | (setq sigs (sort (copy-alist sigs) #'verilog-signals-sort-compare))) |
| 11093 | (insert "\n") | 11093 | (insert "\n") |
| 11094 | (indent-to indent-pt) | 11094 | (indent-to indent-pt) |
| 11095 | (insert message) | 11095 | (insert message) |
| @@ -11243,8 +11243,8 @@ See the example in `verilog-auto-inout-modport'." | |||
| 11243 | (verilog-signals-matching-dir-re | 11243 | (verilog-signals-matching-dir-re |
| 11244 | (verilog-signals-matching-regexp sig-list-o regexp) | 11244 | (verilog-signals-matching-regexp sig-list-o regexp) |
| 11245 | "output" direction-re))) | 11245 | "output" direction-re))) |
| 11246 | (setq sig-list-i (sort (copy-alist sig-list-i) `verilog-signals-sort-compare)) | 11246 | (setq sig-list-i (sort (copy-alist sig-list-i) #'verilog-signals-sort-compare)) |
| 11247 | (setq sig-list-o (sort (copy-alist sig-list-o) `verilog-signals-sort-compare)) | 11247 | (setq sig-list-o (sort (copy-alist sig-list-o) #'verilog-signals-sort-compare)) |
| 11248 | (when (or sig-list-i sig-list-o) | 11248 | (when (or sig-list-i sig-list-o) |
| 11249 | (verilog-insert-indent "// Beginning of automatic assignments from modport\n") | 11249 | (verilog-insert-indent "// Beginning of automatic assignments from modport\n") |
| 11250 | ;; Don't sort them so an upper AUTOINST will match the main module | 11250 | ;; Don't sort them so an upper AUTOINST will match the main module |
| @@ -11388,7 +11388,7 @@ If PAR-VALUES replace final strings with these parameter values." | |||
| 11388 | (indent-to (+ (if (< verilog-auto-inst-column 48) 24 16) | 11388 | (indent-to (+ (if (< verilog-auto-inst-column 48) 24 16) |
| 11389 | verilog-auto-inst-column)) | 11389 | verilog-auto-inst-column)) |
| 11390 | ;; verilog-insert requires the complete comment in one call - including the newline | 11390 | ;; verilog-insert requires the complete comment in one call - including the newline |
| 11391 | (cond ((equal verilog-auto-inst-template-numbers `lhs) | 11391 | (cond ((equal verilog-auto-inst-template-numbers 'lhs) |
| 11392 | (verilog-insert " // Templated" | 11392 | (verilog-insert " // Templated" |
| 11393 | " LHS: " (nth 0 tpl-ass) | 11393 | " LHS: " (nth 0 tpl-ass) |
| 11394 | "\n")) | 11394 | "\n")) |
| @@ -11412,7 +11412,7 @@ If PAR-VALUES replace final strings with these parameter values." | |||
| 11412 | (defun verilog-auto-inst-port-list (sig-list indent-pt moddecls tpl-list tpl-num for-star par-values) | 11412 | (defun verilog-auto-inst-port-list (sig-list indent-pt moddecls tpl-list tpl-num for-star par-values) |
| 11413 | "For `verilog-auto-inst' print a list of ports using `verilog-auto-inst-port'." | 11413 | "For `verilog-auto-inst' print a list of ports using `verilog-auto-inst-port'." |
| 11414 | (when verilog-auto-inst-sort | 11414 | (when verilog-auto-inst-sort |
| 11415 | (setq sig-list (sort (copy-alist sig-list) `verilog-signals-sort-compare))) | 11415 | (setq sig-list (sort (copy-alist sig-list) #'verilog-signals-sort-compare))) |
| 11416 | (mapc (lambda (port) | 11416 | (mapc (lambda (port) |
| 11417 | (verilog-auto-inst-port port indent-pt moddecls | 11417 | (verilog-auto-inst-port port indent-pt moddecls |
| 11418 | tpl-list tpl-num for-star par-values)) | 11418 | tpl-list tpl-num for-star par-values)) |
| @@ -13110,7 +13110,7 @@ operator. (This was added to the language in part due to AUTOSENSE!) | |||
| 13110 | (verilog-re-search-backward-quick "\\s-" start-pt t)) | 13110 | (verilog-re-search-backward-quick "\\s-" start-pt t)) |
| 13111 | (not (looking-at "\\s-or\\b")))) | 13111 | (not (looking-at "\\s-or\\b")))) |
| 13112 | (setq not-first t)) | 13112 | (setq not-first t)) |
| 13113 | (setq sig-list (sort sig-list `verilog-signals-sort-compare)) | 13113 | (setq sig-list (sort sig-list #'verilog-signals-sort-compare)) |
| 13114 | (while sig-list | 13114 | (while sig-list |
| 13115 | (cond ((> (+ 4 (current-column) (length (verilog-sig-name (car sig-list)))) fill-column) ;+4 for width of or | 13115 | (cond ((> (+ 4 (current-column) (length (verilog-sig-name (car sig-list)))) fill-column) ;+4 for width of or |
| 13116 | (insert "\n") | 13116 | (insert "\n") |
| @@ -13219,7 +13219,7 @@ Typing \\[verilog-auto] will make this into: | |||
| 13219 | (append | 13219 | (append |
| 13220 | (verilog-alw-get-temps sigss) | 13220 | (verilog-alw-get-temps sigss) |
| 13221 | prereset-sigs))) | 13221 | prereset-sigs))) |
| 13222 | (setq sig-list (sort sig-list `verilog-signals-sort-compare)) | 13222 | (setq sig-list (sort sig-list #'verilog-signals-sort-compare)) |
| 13223 | (when sig-list | 13223 | (when sig-list |
| 13224 | (insert "\n"); | 13224 | (insert "\n"); |
| 13225 | (verilog-insert-indent "// Beginning of autoreset for uninitialized flops\n"); | 13225 | (verilog-insert-indent "// Beginning of autoreset for uninitialized flops\n"); |
| @@ -13310,7 +13310,7 @@ Typing \\[verilog-auto] will make this into: | |||
| 13310 | (when sig-list | 13310 | (when sig-list |
| 13311 | (verilog-forward-or-insert-line) | 13311 | (verilog-forward-or-insert-line) |
| 13312 | (verilog-insert-indent "// Beginning of automatic tieoffs (for this module's unterminated outputs)\n") | 13312 | (verilog-insert-indent "// Beginning of automatic tieoffs (for this module's unterminated outputs)\n") |
| 13313 | (setq sig-list (sort (copy-alist sig-list) `verilog-signals-sort-compare)) | 13313 | (setq sig-list (sort (copy-alist sig-list) #'verilog-signals-sort-compare)) |
| 13314 | (verilog-modi-cache-add-vars modi sig-list) ; Before we trash list | 13314 | (verilog-modi-cache-add-vars modi sig-list) ; Before we trash list |
| 13315 | (while sig-list | 13315 | (while sig-list |
| 13316 | (let ((sig (car sig-list))) | 13316 | (let ((sig (car sig-list))) |
| @@ -13463,7 +13463,7 @@ Typing \\[verilog-auto] will make this into: | |||
| 13463 | (when sig-list | 13463 | (when sig-list |
| 13464 | (verilog-forward-or-insert-line) | 13464 | (verilog-forward-or-insert-line) |
| 13465 | (verilog-insert-indent "// Beginning of automatic unused inputs\n") | 13465 | (verilog-insert-indent "// Beginning of automatic unused inputs\n") |
| 13466 | (setq sig-list (sort (copy-alist sig-list) `verilog-signals-sort-compare)) | 13466 | (setq sig-list (sort (copy-alist sig-list) #'verilog-signals-sort-compare)) |
| 13467 | (while sig-list | 13467 | (while sig-list |
| 13468 | (let ((sig (car sig-list))) | 13468 | (let ((sig (car sig-list))) |
| 13469 | (indent-to indent-pt) | 13469 | (indent-to indent-pt) |
| @@ -13789,7 +13789,7 @@ Wilson Snyder (wsnyder@wsnyder.org)." | |||
| 13789 | ;; Local state | 13789 | ;; Local state |
| 13790 | (verilog-read-auto-template-init) | 13790 | (verilog-read-auto-template-init) |
| 13791 | ;; If we're not in verilog-mode, change syntax table so parsing works right | 13791 | ;; If we're not in verilog-mode, change syntax table so parsing works right |
| 13792 | (unless (eq major-mode `verilog-mode) (verilog-mode)) | 13792 | (unless (eq major-mode 'verilog-mode) (verilog-mode)) |
| 13793 | ;; Allow user to customize | 13793 | ;; Allow user to customize |
| 13794 | (verilog-run-hooks 'verilog-before-auto-hook) | 13794 | (verilog-run-hooks 'verilog-before-auto-hook) |
| 13795 | ;; Try to save the user from needing to revert-file to reread file local-variables | 13795 | ;; Try to save the user from needing to revert-file to reread file local-variables |
diff --git a/lisp/ps-mule.el b/lisp/ps-mule.el index ae2dd19d2fa..2658aec5e6d 100644 --- a/lisp/ps-mule.el +++ b/lisp/ps-mule.el | |||
| @@ -1031,7 +1031,7 @@ the sequence." | |||
| 1031 | (setq ps-mule-prologue-generated nil | 1031 | (setq ps-mule-prologue-generated nil |
| 1032 | ps-mule-composition-prologue-generated nil | 1032 | ps-mule-composition-prologue-generated nil |
| 1033 | ps-mule-bitmap-prologue-generated nil) | 1033 | ps-mule-bitmap-prologue-generated nil) |
| 1034 | (mapcar `(lambda (x) (setcar (nthcdr 2 x) nil)) | 1034 | (mapcar (lambda (x) (setcar (nthcdr 2 x) nil)) |
| 1035 | ps-mule-external-libraries)) | 1035 | ps-mule-external-libraries)) |
| 1036 | 1036 | ||
| 1037 | (defun ps-mule-encode-header-string (string fonttag) | 1037 | (defun ps-mule-encode-header-string (string fonttag) |
diff --git a/lisp/rtree.el b/lisp/rtree.el index ee2fca612f5..fe24cd18719 100644 --- a/lisp/rtree.el +++ b/lisp/rtree.el | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | ;;; Code: | 44 | ;;; Code: |
| 45 | 45 | ||
| 46 | (defmacro rtree-make-node () | 46 | (defmacro rtree-make-node () |
| 47 | `(list (list nil) nil)) | 47 | '(list (list nil) nil)) |
| 48 | 48 | ||
| 49 | (defmacro rtree-set-left (node left) | 49 | (defmacro rtree-set-left (node left) |
| 50 | `(setcar (cdr ,node) ,left)) | 50 | `(setcar (cdr ,node) ,left)) |
diff --git a/lisp/ruler-mode.el b/lisp/ruler-mode.el index 366bd150413..709599b4fb1 100644 --- a/lisp/ruler-mode.el +++ b/lisp/ruler-mode.el | |||
| @@ -613,7 +613,7 @@ format first." | |||
| 613 | 613 | ||
| 614 | ;; Add ruler-mode to the minor mode menu in the mode line | 614 | ;; Add ruler-mode to the minor mode menu in the mode line |
| 615 | (define-key mode-line-mode-menu [ruler-mode] | 615 | (define-key mode-line-mode-menu [ruler-mode] |
| 616 | `(menu-item "Ruler" ruler-mode | 616 | '(menu-item "Ruler" ruler-mode |
| 617 | :button (:toggle . ruler-mode))) | 617 | :button (:toggle . ruler-mode))) |
| 618 | 618 | ||
| 619 | (defconst ruler-mode-ruler-help-echo | 619 | (defconst ruler-mode-ruler-help-echo |
diff --git a/lisp/ses.el b/lisp/ses.el index bcf8bdb6368..1608d56d667 100644 --- a/lisp/ses.el +++ b/lisp/ses.el | |||
| @@ -858,7 +858,7 @@ cell (ROW,COL). This is undoable. The cell's data will be updated through | |||
| 858 | ,(let ((field (progn (cl-assert (eq (car field) 'quote)) | 858 | ,(let ((field (progn (cl-assert (eq (car field) 'quote)) |
| 859 | (cadr field)))) | 859 | (cadr field)))) |
| 860 | (if (eq field 'value) | 860 | (if (eq field 'value) |
| 861 | `(ses-set-with-undo (ses-cell-symbol cell) val) | 861 | '(ses-set-with-undo (ses-cell-symbol cell) val) |
| 862 | ;; (let* ((slots (get 'ses-cell 'cl-struct-slots)) | 862 | ;; (let* ((slots (get 'ses-cell 'cl-struct-slots)) |
| 863 | ;; (slot (or (assq field slots) | 863 | ;; (slot (or (assq field slots) |
| 864 | ;; (error "Unknown field %S" field))) | 864 | ;; (error "Unknown field %S" field))) |
| @@ -3956,17 +3956,17 @@ Use `math-format-value' as a printer for Calc objects." | |||
| 3956 | (while rest | 3956 | (while rest |
| 3957 | (let ((x (pop rest))) | 3957 | (let ((x (pop rest))) |
| 3958 | (pcase x | 3958 | (pcase x |
| 3959 | (`>v (setq transpose nil reorient-x nil reorient-y nil)) | 3959 | ('>v (setq transpose nil reorient-x nil reorient-y nil)) |
| 3960 | (`>^ (setq transpose nil reorient-x nil reorient-y t)) | 3960 | ('>^ (setq transpose nil reorient-x nil reorient-y t)) |
| 3961 | (`<^ (setq transpose nil reorient-x t reorient-y t)) | 3961 | ('<^ (setq transpose nil reorient-x t reorient-y t)) |
| 3962 | (`<v (setq transpose nil reorient-x t reorient-y nil)) | 3962 | ('<v (setq transpose nil reorient-x t reorient-y nil)) |
| 3963 | (`v> (setq transpose t reorient-x nil reorient-y t)) | 3963 | ('v> (setq transpose t reorient-x nil reorient-y t)) |
| 3964 | (`^> (setq transpose t reorient-x nil reorient-y nil)) | 3964 | ('^> (setq transpose t reorient-x nil reorient-y nil)) |
| 3965 | (`^< (setq transpose t reorient-x t reorient-y nil)) | 3965 | ('^< (setq transpose t reorient-x t reorient-y nil)) |
| 3966 | (`v< (setq transpose t reorient-x t reorient-y t)) | 3966 | ('v< (setq transpose t reorient-x t reorient-y t)) |
| 3967 | ((or `* `*2 `*1) (setq vectorize x)) | 3967 | ((or '* '*2 '*1) (setq vectorize x)) |
| 3968 | (`! (setq clean 'ses--clean-!)) | 3968 | ('! (setq clean 'ses--clean-!)) |
| 3969 | (`_ (setq clean `(lambda (&rest x) | 3969 | ('_ (setq clean `(lambda (&rest x) |
| 3970 | (ses--clean-_ x ,(if rest (pop rest) 0))))) | 3970 | (ses--clean-_ x ,(if rest (pop rest) 0))))) |
| 3971 | (_ | 3971 | (_ |
| 3972 | (cond | 3972 | (cond |
| @@ -4001,10 +4001,10 @@ Use `math-format-value' as a printer for Calc objects." | |||
| 4001 | (cons clean (cons (quote 'vec) x))) | 4001 | (cons clean (cons (quote 'vec) x))) |
| 4002 | result))))) | 4002 | result))))) |
| 4003 | (pcase vectorize | 4003 | (pcase vectorize |
| 4004 | (`nil (cons clean (apply #'append result))) | 4004 | ('nil (cons clean (apply #'append result))) |
| 4005 | (`*1 (vectorize-*1 clean result)) | 4005 | ('*1 (vectorize-*1 clean result)) |
| 4006 | (`*2 (vectorize-*2 clean result)) | 4006 | ('*2 (vectorize-*2 clean result)) |
| 4007 | (`* (funcall (if (cdr result) | 4007 | ('* (funcall (if (cdr result) |
| 4008 | #'vectorize-*2 | 4008 | #'vectorize-*2 |
| 4009 | #'vectorize-*1) | 4009 | #'vectorize-*1) |
| 4010 | clean result)))))) | 4010 | clean result)))))) |
diff --git a/lisp/simple.el b/lisp/simple.el index 245675504a3..e1922384f26 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4118,7 +4118,7 @@ Runs `prefix-command-preserve-state-hook'." | |||
| 4118 | (when prefix-arg | 4118 | (when prefix-arg |
| 4119 | (concat "C-u" | 4119 | (concat "C-u" |
| 4120 | (pcase prefix-arg | 4120 | (pcase prefix-arg |
| 4121 | (`(-) " -") | 4121 | ('(-) " -") |
| 4122 | (`(,(and (pred integerp) n)) | 4122 | (`(,(and (pred integerp) n)) |
| 4123 | (let ((str "")) | 4123 | (let ((str "")) |
| 4124 | (while (and (> n 4) (= (mod n 4) 0)) | 4124 | (while (and (> n 4) (= (mod n 4) 0)) |
| @@ -8699,7 +8699,7 @@ See also `normal-erase-is-backspace'." | |||
| 8699 | (cond ((or (memq window-system '(x w32 ns pc)) | 8699 | (cond ((or (memq window-system '(x w32 ns pc)) |
| 8700 | (memq system-type '(ms-dos windows-nt))) | 8700 | (memq system-type '(ms-dos windows-nt))) |
| 8701 | (let ((bindings | 8701 | (let ((bindings |
| 8702 | `(([M-delete] [M-backspace]) | 8702 | '(([M-delete] [M-backspace]) |
| 8703 | ([C-M-delete] [C-M-backspace]) | 8703 | ([C-M-delete] [C-M-backspace]) |
| 8704 | ([?\e C-delete] [?\e C-backspace])))) | 8704 | ([?\e C-delete] [?\e C-backspace])))) |
| 8705 | 8705 | ||
diff --git a/lisp/startup.el b/lisp/startup.el index 4eb71abaacf..a7b40b7b9c1 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1755,7 +1755,7 @@ a face or button specification." | |||
| 1755 | :face 'variable-pitch "To quit a partially entered command, type " | 1755 | :face 'variable-pitch "To quit a partially entered command, type " |
| 1756 | :face 'default "Control-g" | 1756 | :face 'default "Control-g" |
| 1757 | :face 'variable-pitch ".\n") | 1757 | :face 'variable-pitch ".\n") |
| 1758 | (fancy-splash-insert :face `(variable-pitch font-lock-builtin-face) | 1758 | (fancy-splash-insert :face '(variable-pitch font-lock-builtin-face) |
| 1759 | "\nThis is " | 1759 | "\nThis is " |
| 1760 | (emacs-version) | 1760 | (emacs-version) |
| 1761 | "\n" | 1761 | "\n" |
diff --git a/lisp/subr.el b/lisp/subr.el index 1fd86fd7495..d3bc007293b 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -4815,7 +4815,7 @@ command is called from a keyboard macro?" | |||
| 4815 | 'called-interactively-p-functions | 4815 | 'called-interactively-p-functions |
| 4816 | i frame nextframe))) | 4816 | i frame nextframe))) |
| 4817 | (pcase skip | 4817 | (pcase skip |
| 4818 | (`nil nil) | 4818 | ('nil nil) |
| 4819 | (0 t) | 4819 | (0 t) |
| 4820 | (_ (setq i (+ i skip -1)) (funcall get-next-frame))))))) | 4820 | (_ (setq i (+ i skip -1)) (funcall get-next-frame))))))) |
| 4821 | ;; Now `frame' should be "the function from which we were called". | 4821 | ;; Now `frame' should be "the function from which we were called". |
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 8b23cab0100..09bbc7be636 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -623,7 +623,7 @@ the last file dropped is selected." | |||
| 623 | (let ((last-nonmenu-event (if (listp last-nonmenu-event) | 623 | (let ((last-nonmenu-event (if (listp last-nonmenu-event) |
| 624 | last-nonmenu-event | 624 | last-nonmenu-event |
| 625 | ;; Fake it: | 625 | ;; Fake it: |
| 626 | `(mouse-1 POSITION 1)))) | 626 | '(mouse-1 POSITION 1)))) |
| 627 | (if (y-or-n-p (format "Print buffer %s? " (buffer-name))) | 627 | (if (y-or-n-p (format "Print buffer %s? " (buffer-name))) |
| 628 | (print-buffer) | 628 | (print-buffer) |
| 629 | (error "Canceled"))) | 629 | (error "Canceled"))) |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 57e5ef8017a..eec40429cd5 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -5095,7 +5095,7 @@ entries from minibuffer." | |||
| 5095 | (list beg end | 5095 | (list beg end |
| 5096 | (lambda (s p a) | 5096 | (lambda (s p a) |
| 5097 | (cond | 5097 | (cond |
| 5098 | ((eq a 'metadata) `(metadata (category . bibtex-key))) | 5098 | ((eq a 'metadata) '(metadata (category . bibtex-key))) |
| 5099 | (t (let ((completion-ignore-case nil)) | 5099 | (t (let ((completion-ignore-case nil)) |
| 5100 | (complete-with-action | 5100 | (complete-with-action |
| 5101 | a (bibtex-global-key-alist) s p))))) | 5101 | a (bibtex-global-key-alist) s p))))) |
| @@ -5113,7 +5113,7 @@ entries from minibuffer." | |||
| 5113 | (list beg end | 5113 | (list beg end |
| 5114 | (lambda (s p a) | 5114 | (lambda (s p a) |
| 5115 | (cond | 5115 | (cond |
| 5116 | ((eq a 'metadata) `(metadata (category . bibtex-string))) | 5116 | ((eq a 'metadata) '(metadata (category . bibtex-string))) |
| 5117 | (t (let ((completion-ignore-case t)) | 5117 | (t (let ((completion-ignore-case t)) |
| 5118 | (complete-with-action a compl s p))))) | 5118 | (complete-with-action a compl s p))))) |
| 5119 | :exit-function (bibtex-complete-string-cleanup compl)))))) | 5119 | :exit-function (bibtex-complete-string-cleanup compl)))))) |
diff --git a/lisp/textmodes/conf-mode.el b/lisp/textmodes/conf-mode.el index 45fd040d10e..0363b927dae 100644 --- a/lisp/textmodes/conf-mode.el +++ b/lisp/textmodes/conf-mode.el | |||
| @@ -230,7 +230,7 @@ This variable is best set in the file local variables, or through | |||
| 230 | (put 'conf-space-keywords 'safe-local-variable 'stringp) | 230 | (put 'conf-space-keywords 'safe-local-variable 'stringp) |
| 231 | 231 | ||
| 232 | (defvar conf-space-font-lock-keywords | 232 | (defvar conf-space-font-lock-keywords |
| 233 | `(;; [section] (do this first because it may look like a parameter) | 233 | '(;; [section] (do this first because it may look like a parameter) |
| 234 | ("^[ \t]*\\[\\(.+\\)\\]" 1 'font-lock-type-face) | 234 | ("^[ \t]*\\[\\(.+\\)\\]" 1 'font-lock-type-face) |
| 235 | ;; section { ... } (do this first because it looks like a parameter) | 235 | ;; section { ... } (do this first because it looks like a parameter) |
| 236 | ("^[ \t]*\\(.+?\\)[ \t\n]*{[^{}]*?$" 1 'font-lock-type-face) | 236 | ("^[ \t]*\\(.+?\\)[ \t\n]*{[^{}]*?$" 1 'font-lock-type-face) |
| @@ -243,7 +243,7 @@ This variable is best set in the file local variables, or through | |||
| 243 | "Keywords to highlight in Conf Space mode.") | 243 | "Keywords to highlight in Conf Space mode.") |
| 244 | 244 | ||
| 245 | (defvar conf-colon-font-lock-keywords | 245 | (defvar conf-colon-font-lock-keywords |
| 246 | `(;; [section] (do this first because it may look like a parameter) | 246 | '(;; [section] (do this first because it may look like a parameter) |
| 247 | ("^[ \t]*\\[\\(.+\\)\\]" 1 'font-lock-type-face) | 247 | ("^[ \t]*\\[\\(.+\\)\\]" 1 'font-lock-type-face) |
| 248 | ;; var: val | 248 | ;; var: val |
| 249 | ("^[ \t]*\\(.+?\\)[ \t]*:" | 249 | ("^[ \t]*\\(.+?\\)[ \t]*:" |
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 2de6455a6ab..f87d6219fd5 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -1250,20 +1250,20 @@ for determining whether point is within a selector." | |||
| 1250 | 1250 | ||
| 1251 | (defun css-smie-rules (kind token) | 1251 | (defun css-smie-rules (kind token) |
| 1252 | (pcase (cons kind token) | 1252 | (pcase (cons kind token) |
| 1253 | (`(:elem . basic) css-indent-offset) | 1253 | ('(:elem . basic) css-indent-offset) |
| 1254 | (`(:elem . arg) 0) | 1254 | ('(:elem . arg) 0) |
| 1255 | ;; "" stands for BOB (bug#15467). | 1255 | ;; "" stands for BOB (bug#15467). |
| 1256 | (`(:list-intro . ,(or ";" "" ":-property")) t) | 1256 | (`(:list-intro . ,(or ";" "" ":-property")) t) |
| 1257 | (`(:before . "{") | 1257 | ('(:before . "{") |
| 1258 | (when (or (smie-rule-hanging-p) (smie-rule-bolp)) | 1258 | (when (or (smie-rule-hanging-p) (smie-rule-bolp)) |
| 1259 | (smie-backward-sexp ";") | 1259 | (smie-backward-sexp ";") |
| 1260 | (unless (eq (char-after) ?\{) | 1260 | (unless (eq (char-after) ?\{) |
| 1261 | (smie-indent-virtual)))) | 1261 | (smie-indent-virtual)))) |
| 1262 | (`(:before . "(") | 1262 | ('(:before . "(") |
| 1263 | (cond | 1263 | (cond |
| 1264 | ((smie-rule-hanging-p) (smie-rule-parent 0)) | 1264 | ((smie-rule-hanging-p) (smie-rule-parent 0)) |
| 1265 | ((not (smie-rule-bolp)) 0))) | 1265 | ((not (smie-rule-bolp)) 0))) |
| 1266 | (`(:after . ":-property") | 1266 | ('(:after . ":-property") |
| 1267 | (when (smie-rule-hanging-p) | 1267 | (when (smie-rule-hanging-p) |
| 1268 | css-indent-offset)))) | 1268 | css-indent-offset)))) |
| 1269 | 1269 | ||
diff --git a/lisp/textmodes/refill.el b/lisp/textmodes/refill.el index 229d6a24ddd..06709a8cc20 100644 --- a/lisp/textmodes/refill.el +++ b/lisp/textmodes/refill.el | |||
| @@ -169,7 +169,7 @@ complex processing.") | |||
| 169 | (when refill-doit ; there was a change | 169 | (when refill-doit ; there was a change |
| 170 | ;; There's probably scope for more special cases here... | 170 | ;; There's probably scope for more special cases here... |
| 171 | (pcase this-command | 171 | (pcase this-command |
| 172 | (`self-insert-command | 172 | ('self-insert-command |
| 173 | ;; Treat self-insertion commands specially, since they don't | 173 | ;; Treat self-insertion commands specially, since they don't |
| 174 | ;; always reset `refill-doit' -- for self-insertion commands that | 174 | ;; always reset `refill-doit' -- for self-insertion commands that |
| 175 | ;; *don't* cause a refill, we want to leave it turned on so that | 175 | ;; *don't* cause a refill, we want to leave it turned on so that |
| @@ -179,9 +179,9 @@ complex processing.") | |||
| 179 | ;; newline, covered below). | 179 | ;; newline, covered below). |
| 180 | (refill-fill-paragraph-at refill-doit) | 180 | (refill-fill-paragraph-at refill-doit) |
| 181 | (setq refill-doit nil))) | 181 | (setq refill-doit nil))) |
| 182 | ((or `quoted-insert `fill-paragraph `fill-region) nil) | 182 | ((or 'quoted-insert 'fill-paragraph 'fill-region) nil) |
| 183 | ((or `newline `newline-and-indent `open-line `indent-new-comment-line | 183 | ((or 'newline 'newline-and-indent 'open-line 'indent-new-comment-line |
| 184 | `reindent-then-newline-and-indent) | 184 | 'reindent-then-newline-and-indent) |
| 185 | ;; Don't zap what was just inserted. | 185 | ;; Don't zap what was just inserted. |
| 186 | (save-excursion | 186 | (save-excursion |
| 187 | (beginning-of-line) ; for newline-and-indent | 187 | (beginning-of-line) ; for newline-and-indent |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 470f4a348ac..21b7082b856 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -1524,12 +1524,12 @@ Depending on context, inserts a matching close-tag, or closes | |||
| 1524 | the current start-tag or the current comment or the current cdata, ..." | 1524 | the current start-tag or the current comment or the current cdata, ..." |
| 1525 | (interactive) | 1525 | (interactive) |
| 1526 | (pcase (car (sgml-lexical-context)) | 1526 | (pcase (car (sgml-lexical-context)) |
| 1527 | (`comment (insert " -->")) | 1527 | ('comment (insert " -->")) |
| 1528 | (`cdata (insert "]]>")) | 1528 | ('cdata (insert "]]>")) |
| 1529 | (`pi (insert " ?>")) | 1529 | ('pi (insert " ?>")) |
| 1530 | (`jsp (insert " %>")) | 1530 | ('jsp (insert " %>")) |
| 1531 | (`tag (insert " />")) | 1531 | ('tag (insert " />")) |
| 1532 | (`text | 1532 | ('text |
| 1533 | (let ((context (save-excursion (sgml-get-context)))) | 1533 | (let ((context (save-excursion (sgml-get-context)))) |
| 1534 | (if context | 1534 | (if context |
| 1535 | (progn | 1535 | (progn |
| @@ -1562,7 +1562,7 @@ LCON is the lexical context, if any." | |||
| 1562 | 1562 | ||
| 1563 | (pcase (car lcon) | 1563 | (pcase (car lcon) |
| 1564 | 1564 | ||
| 1565 | (`string | 1565 | ('string |
| 1566 | ;; Go back to previous non-empty line. | 1566 | ;; Go back to previous non-empty line. |
| 1567 | (while (and (> (point) (cdr lcon)) | 1567 | (while (and (> (point) (cdr lcon)) |
| 1568 | (zerop (forward-line -1)) | 1568 | (zerop (forward-line -1)) |
| @@ -1573,7 +1573,7 @@ LCON is the lexical context, if any." | |||
| 1573 | (goto-char (cdr lcon)) | 1573 | (goto-char (cdr lcon)) |
| 1574 | (1+ (current-column)))) | 1574 | (1+ (current-column)))) |
| 1575 | 1575 | ||
| 1576 | (`comment | 1576 | ('comment |
| 1577 | (let ((mark (looking-at "--"))) | 1577 | (let ((mark (looking-at "--"))) |
| 1578 | ;; Go back to previous non-empty line. | 1578 | ;; Go back to previous non-empty line. |
| 1579 | (while (and (> (point) (cdr lcon)) | 1579 | (while (and (> (point) (cdr lcon)) |
| @@ -1592,11 +1592,11 @@ LCON is the lexical context, if any." | |||
| 1592 | (current-column))) | 1592 | (current-column))) |
| 1593 | 1593 | ||
| 1594 | ;; We don't know how to indent it. Let's be honest about it. | 1594 | ;; We don't know how to indent it. Let's be honest about it. |
| 1595 | (`cdata nil) | 1595 | ('cdata nil) |
| 1596 | ;; We don't know how to indent it. Let's be honest about it. | 1596 | ;; We don't know how to indent it. Let's be honest about it. |
| 1597 | (`pi nil) | 1597 | ('pi nil) |
| 1598 | 1598 | ||
| 1599 | (`tag | 1599 | ('tag |
| 1600 | (goto-char (+ (cdr lcon) sgml-attribute-offset)) | 1600 | (goto-char (+ (cdr lcon) sgml-attribute-offset)) |
| 1601 | (skip-chars-forward "^ \t\n") ;Skip tag name. | 1601 | (skip-chars-forward "^ \t\n") ;Skip tag name. |
| 1602 | (skip-chars-forward " \t") | 1602 | (skip-chars-forward " \t") |
| @@ -1606,7 +1606,7 @@ LCON is the lexical context, if any." | |||
| 1606 | (goto-char (+ (cdr lcon) sgml-attribute-offset)) | 1606 | (goto-char (+ (cdr lcon) sgml-attribute-offset)) |
| 1607 | (+ (current-column) sgml-basic-offset))) | 1607 | (+ (current-column) sgml-basic-offset))) |
| 1608 | 1608 | ||
| 1609 | (`text | 1609 | ('text |
| 1610 | (while (looking-at "</") | 1610 | (while (looking-at "</") |
| 1611 | (sgml-forward-sexp 1) | 1611 | (sgml-forward-sexp 1) |
| 1612 | (skip-chars-forward " \t")) | 1612 | (skip-chars-forward " \t")) |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 8b0677754f3..63437afa3ba 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -601,9 +601,9 @@ An alternative value is \" . \", if you use a font with a narrow period." | |||
| 601 | (list (concat slash citations opt arg) 3 'font-lock-constant-face) | 601 | (list (concat slash citations opt arg) 3 'font-lock-constant-face) |
| 602 | ;; | 602 | ;; |
| 603 | ;; Text between `` quotes ''. | 603 | ;; Text between `` quotes ''. |
| 604 | (cons (concat (regexp-opt `("``" "\"<" "\"`" "<<" "«") t) | 604 | (cons (concat (regexp-opt '("``" "\"<" "\"`" "<<" "«") t) |
| 605 | "[^'\">{]+" ;a bit pessimistic | 605 | "[^'\">{]+" ;a bit pessimistic |
| 606 | (regexp-opt `("''" "\">" "\"'" ">>" "»") t)) | 606 | (regexp-opt '("''" "\">" "\"'" ">>" "»") t)) |
| 607 | 'font-lock-string-face) | 607 | 'font-lock-string-face) |
| 608 | ;; | 608 | ;; |
| 609 | ;; Command names, special and general. | 609 | ;; Command names, special and general. |
| @@ -1656,7 +1656,7 @@ Puts point on a blank line between them." | |||
| 1656 | (let ((pt (point))) | 1656 | (let ((pt (point))) |
| 1657 | (skip-chars-backward "^ {}\n\t\\\\") | 1657 | (skip-chars-backward "^ {}\n\t\\\\") |
| 1658 | (pcase (char-before) | 1658 | (pcase (char-before) |
| 1659 | ((or `nil ?\s ?\n ?\t ?\}) nil) | 1659 | ((or 'nil ?\s ?\n ?\t ?\}) nil) |
| 1660 | (?\\ | 1660 | (?\\ |
| 1661 | ;; TODO: Complete commands. | 1661 | ;; TODO: Complete commands. |
| 1662 | nil) | 1662 | nil) |
| @@ -2994,7 +2994,7 @@ There might be text before point." | |||
| 2994 | (mapcar | 2994 | (mapcar |
| 2995 | (lambda (x) | 2995 | (lambda (x) |
| 2996 | (pcase (car-safe x) | 2996 | (pcase (car-safe x) |
| 2997 | (`font-lock-syntactic-face-function | 2997 | ('font-lock-syntactic-face-function |
| 2998 | (cons (car x) #'doctex-font-lock-syntactic-face-function)) | 2998 | (cons (car x) #'doctex-font-lock-syntactic-face-function)) |
| 2999 | (_ x))) | 2999 | (_ x))) |
| 3000 | (cdr font-lock-defaults)))) | 3000 | (cdr font-lock-defaults)))) |
diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 1ddf7a8b79f..e3fbdf019c1 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el | |||
| @@ -476,8 +476,8 @@ where | |||
| 476 | ((and cua-mode | 476 | ((and cua-mode |
| 477 | (or (and (eq def-fun 'ESC-prefix) | 477 | (or (and (eq def-fun 'ESC-prefix) |
| 478 | (equal key-fun | 478 | (equal key-fun |
| 479 | `(keymap | 479 | '(keymap |
| 480 | (118 . cua-repeat-replace-region))) | 480 | (118 . cua-repeat-replace-region))) |
| 481 | (setq def-fun-txt "\"ESC prefix\"")) | 481 | (setq def-fun-txt "\"ESC prefix\"")) |
| 482 | (and (eq def-fun 'mode-specific-command-prefix) | 482 | (and (eq def-fun 'mode-specific-command-prefix) |
| 483 | (equal key-fun | 483 | (equal key-fun |
diff --git a/lisp/url/url-dav.el b/lisp/url/url-dav.el index 9c8c0526ba8..1402432fb24 100644 --- a/lisp/url/url-dav.el +++ b/lisp/url/url-dav.el | |||
| @@ -204,22 +204,22 @@ Returns nil if WebDAV is not supported." | |||
| 204 | value nil) | 204 | value nil) |
| 205 | 205 | ||
| 206 | (pcase node-type | 206 | (pcase node-type |
| 207 | ((or `dateTime.iso8601tz | 207 | ((or 'dateTime.iso8601tz |
| 208 | `dateTime.iso8601 | 208 | 'dateTime.iso8601 |
| 209 | `dateTime.tz | 209 | 'dateTime.tz |
| 210 | `dateTime.rfc1123 | 210 | 'dateTime.rfc1123 |
| 211 | `dateTime | 211 | 'dateTime |
| 212 | `date) ; date is our 'special' one... | 212 | 'date) ; date is our 'special' one... |
| 213 | ;; Some type of date/time string. | 213 | ;; Some type of date/time string. |
| 214 | (setq value (url-dav-process-date-property node))) | 214 | (setq value (url-dav-process-date-property node))) |
| 215 | (`int | 215 | ('int |
| 216 | ;; Integer type... | 216 | ;; Integer type... |
| 217 | (setq value (url-dav-process-integer-property node))) | 217 | (setq value (url-dav-process-integer-property node))) |
| 218 | ((or `number `float) | 218 | ((or 'number 'float) |
| 219 | (setq value (url-dav-process-number-property node))) | 219 | (setq value (url-dav-process-number-property node))) |
| 220 | (`boolean | 220 | ('boolean |
| 221 | (setq value (url-dav-process-boolean-property node))) | 221 | (setq value (url-dav-process-boolean-property node))) |
| 222 | (`uri | 222 | ('uri |
| 223 | (setq value (url-dav-process-uri-property node))) | 223 | (setq value (url-dav-process-uri-property node))) |
| 224 | (_ | 224 | (_ |
| 225 | (if (not (eq node-type 'unknown)) | 225 | (if (not (eq node-type 'unknown)) |
| @@ -611,11 +611,11 @@ Returns t if the lock was successfully released." | |||
| 611 | (setq lock (car supported-locks) | 611 | (setq lock (car supported-locks) |
| 612 | supported-locks (cdr supported-locks)) | 612 | supported-locks (cdr supported-locks)) |
| 613 | (pcase (car lock) | 613 | (pcase (car lock) |
| 614 | (`DAV:write | 614 | ('DAV:write |
| 615 | (pcase (cdr lock) | 615 | (pcase (cdr lock) |
| 616 | (`DAV:shared ; group permissions (possibly world) | 616 | ('DAV:shared ; group permissions (possibly world) |
| 617 | (aset modes 5 ?w)) | 617 | (aset modes 5 ?w)) |
| 618 | (`DAV:exclusive | 618 | ('DAV:exclusive |
| 619 | (aset modes 2 ?w)) ; owner permissions? | 619 | (aset modes 2 ?w)) ; owner permissions? |
| 620 | (_ | 620 | (_ |
| 621 | (url-debug 'dav "Unrecognized DAV:lockscope (%S)" (cdr lock))))) | 621 | (url-debug 'dav "Unrecognized DAV:lockscope (%S)" (cdr lock))))) |
diff --git a/lisp/url/url-gw.el b/lisp/url/url-gw.el index e1750361a6f..0fc7200219e 100644 --- a/lisp/url/url-gw.el +++ b/lisp/url/url-gw.el | |||
| @@ -239,7 +239,7 @@ overriding the value of `url-gateway-method'." | |||
| 239 | (let ((coding-system-for-read 'binary) | 239 | (let ((coding-system-for-read 'binary) |
| 240 | (coding-system-for-write 'binary)) | 240 | (coding-system-for-write 'binary)) |
| 241 | (setq conn (pcase gw-method | 241 | (setq conn (pcase gw-method |
| 242 | ((or `tls `ssl `native) | 242 | ((or 'tls 'ssl 'native) |
| 243 | (if (eq gw-method 'native) | 243 | (if (eq gw-method 'native) |
| 244 | (setq gw-method 'plain)) | 244 | (setq gw-method 'plain)) |
| 245 | (open-network-stream | 245 | (open-network-stream |
| @@ -249,11 +249,11 @@ overriding the value of `url-gateway-method'." | |||
| 249 | :nowait (and (featurep 'make-network-process) | 249 | :nowait (and (featurep 'make-network-process) |
| 250 | (url-asynchronous url-current-object) | 250 | (url-asynchronous url-current-object) |
| 251 | '(:nowait t)))) | 251 | '(:nowait t)))) |
| 252 | (`socks | 252 | ('socks |
| 253 | (socks-open-network-stream name buffer host service)) | 253 | (socks-open-network-stream name buffer host service)) |
| 254 | (`telnet | 254 | ('telnet |
| 255 | (url-open-telnet name buffer host service)) | 255 | (url-open-telnet name buffer host service)) |
| 256 | (`rlogin | 256 | ('rlogin |
| 257 | (url-open-rlogin name buffer host service)) | 257 | (url-open-rlogin name buffer host service)) |
| 258 | (_ | 258 | (_ |
| 259 | (error "Bad setting of url-gateway-method: %s" | 259 | (error "Bad setting of url-gateway-method: %s" |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 6b5749e1bce..036ff8005e8 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -613,7 +613,7 @@ should be shown to the user." | |||
| 613 | ;; 206 Partial content | 613 | ;; 206 Partial content |
| 614 | ;; 207 Multi-status (Added by DAV) | 614 | ;; 207 Multi-status (Added by DAV) |
| 615 | (pcase status-symbol | 615 | (pcase status-symbol |
| 616 | ((or `no-content `reset-content) | 616 | ((or 'no-content 'reset-content) |
| 617 | ;; No new data, just stay at the same document | 617 | ;; No new data, just stay at the same document |
| 618 | (url-mark-buffer-as-dead buffer)) | 618 | (url-mark-buffer-as-dead buffer)) |
| 619 | (_ | 619 | (_ |
| @@ -634,7 +634,7 @@ should be shown to the user." | |||
| 634 | (let ((redirect-uri (or (mail-fetch-field "Location") | 634 | (let ((redirect-uri (or (mail-fetch-field "Location") |
| 635 | (mail-fetch-field "URI")))) | 635 | (mail-fetch-field "URI")))) |
| 636 | (pcase status-symbol | 636 | (pcase status-symbol |
| 637 | (`multiple-choices ; 300 | 637 | ('multiple-choices ; 300 |
| 638 | ;; Quoth the spec (section 10.3.1) | 638 | ;; Quoth the spec (section 10.3.1) |
| 639 | ;; ------------------------------- | 639 | ;; ------------------------------- |
| 640 | ;; The requested resource corresponds to any one of a set of | 640 | ;; The requested resource corresponds to any one of a set of |
| @@ -651,26 +651,26 @@ should be shown to the user." | |||
| 651 | ;; We do not support agent-driven negotiation, so we just | 651 | ;; We do not support agent-driven negotiation, so we just |
| 652 | ;; redirect to the preferred URI if one is provided. | 652 | ;; redirect to the preferred URI if one is provided. |
| 653 | nil) | 653 | nil) |
| 654 | (`found ; 302 | 654 | ('found ; 302 |
| 655 | ;; 302 Found was ambiguously defined in the standards, but | 655 | ;; 302 Found was ambiguously defined in the standards, but |
| 656 | ;; it's now recommended that it's treated like 303 instead | 656 | ;; it's now recommended that it's treated like 303 instead |
| 657 | ;; of 307, since that's what most servers expect. | 657 | ;; of 307, since that's what most servers expect. |
| 658 | (setq url-http-method "GET" | 658 | (setq url-http-method "GET" |
| 659 | url-http-data nil)) | 659 | url-http-data nil)) |
| 660 | (`see-other ; 303 | 660 | ('see-other ; 303 |
| 661 | ;; The response to the request can be found under a different | 661 | ;; The response to the request can be found under a different |
| 662 | ;; URI and SHOULD be retrieved using a GET method on that | 662 | ;; URI and SHOULD be retrieved using a GET method on that |
| 663 | ;; resource. | 663 | ;; resource. |
| 664 | (setq url-http-method "GET" | 664 | (setq url-http-method "GET" |
| 665 | url-http-data nil)) | 665 | url-http-data nil)) |
| 666 | (`not-modified ; 304 | 666 | ('not-modified ; 304 |
| 667 | ;; The 304 response MUST NOT contain a message-body. | 667 | ;; The 304 response MUST NOT contain a message-body. |
| 668 | (url-http-debug "Extracting document from cache... (%s)" | 668 | (url-http-debug "Extracting document from cache... (%s)" |
| 669 | (url-cache-create-filename (url-view-url t))) | 669 | (url-cache-create-filename (url-view-url t))) |
| 670 | (url-cache-extract (url-cache-create-filename (url-view-url t))) | 670 | (url-cache-extract (url-cache-create-filename (url-view-url t))) |
| 671 | (setq redirect-uri nil | 671 | (setq redirect-uri nil |
| 672 | success t)) | 672 | success t)) |
| 673 | (`use-proxy ; 305 | 673 | ('use-proxy ; 305 |
| 674 | ;; The requested resource MUST be accessed through the | 674 | ;; The requested resource MUST be accessed through the |
| 675 | ;; proxy given by the Location field. The Location field | 675 | ;; proxy given by the Location field. The Location field |
| 676 | ;; gives the URI of the proxy. The recipient is expected | 676 | ;; gives the URI of the proxy. The recipient is expected |
| @@ -768,50 +768,50 @@ should be shown to the user." | |||
| 768 | ;; 424 Failed Dependency | 768 | ;; 424 Failed Dependency |
| 769 | (setq success | 769 | (setq success |
| 770 | (pcase status-symbol | 770 | (pcase status-symbol |
| 771 | (`unauthorized ; 401 | 771 | ('unauthorized ; 401 |
| 772 | ;; The request requires user authentication. The response | 772 | ;; The request requires user authentication. The response |
| 773 | ;; MUST include a WWW-Authenticate header field containing a | 773 | ;; MUST include a WWW-Authenticate header field containing a |
| 774 | ;; challenge applicable to the requested resource. The | 774 | ;; challenge applicable to the requested resource. The |
| 775 | ;; client MAY repeat the request with a suitable | 775 | ;; client MAY repeat the request with a suitable |
| 776 | ;; Authorization header field. | 776 | ;; Authorization header field. |
| 777 | (url-http-handle-authentication nil)) | 777 | (url-http-handle-authentication nil)) |
| 778 | (`payment-required ; 402 | 778 | ('payment-required ; 402 |
| 779 | ;; This code is reserved for future use | 779 | ;; This code is reserved for future use |
| 780 | (url-mark-buffer-as-dead buffer) | 780 | (url-mark-buffer-as-dead buffer) |
| 781 | (error "Somebody wants you to give them money")) | 781 | (error "Somebody wants you to give them money")) |
| 782 | (`forbidden ; 403 | 782 | ('forbidden ; 403 |
| 783 | ;; The server understood the request, but is refusing to | 783 | ;; The server understood the request, but is refusing to |
| 784 | ;; fulfill it. Authorization will not help and the request | 784 | ;; fulfill it. Authorization will not help and the request |
| 785 | ;; SHOULD NOT be repeated. | 785 | ;; SHOULD NOT be repeated. |
| 786 | t) | 786 | t) |
| 787 | (`not-found ; 404 | 787 | ('not-found ; 404 |
| 788 | ;; Not found | 788 | ;; Not found |
| 789 | t) | 789 | t) |
| 790 | (`method-not-allowed ; 405 | 790 | ('method-not-allowed ; 405 |
| 791 | ;; The method specified in the Request-Line is not allowed | 791 | ;; The method specified in the Request-Line is not allowed |
| 792 | ;; for the resource identified by the Request-URI. The | 792 | ;; for the resource identified by the Request-URI. The |
| 793 | ;; response MUST include an Allow header containing a list of | 793 | ;; response MUST include an Allow header containing a list of |
| 794 | ;; valid methods for the requested resource. | 794 | ;; valid methods for the requested resource. |
| 795 | t) | 795 | t) |
| 796 | (`not-acceptable ; 406 | 796 | ('not-acceptable ; 406 |
| 797 | ;; The resource identified by the request is only capable of | 797 | ;; The resource identified by the request is only capable of |
| 798 | ;; generating response entities which have content | 798 | ;; generating response entities which have content |
| 799 | ;; characteristics not acceptable according to the accept | 799 | ;; characteristics not acceptable according to the accept |
| 800 | ;; headers sent in the request. | 800 | ;; headers sent in the request. |
| 801 | t) | 801 | t) |
| 802 | (`proxy-authentication-required ; 407 | 802 | ('proxy-authentication-required ; 407 |
| 803 | ;; This code is similar to 401 (Unauthorized), but indicates | 803 | ;; This code is similar to 401 (Unauthorized), but indicates |
| 804 | ;; that the client must first authenticate itself with the | 804 | ;; that the client must first authenticate itself with the |
| 805 | ;; proxy. The proxy MUST return a Proxy-Authenticate header | 805 | ;; proxy. The proxy MUST return a Proxy-Authenticate header |
| 806 | ;; field containing a challenge applicable to the proxy for | 806 | ;; field containing a challenge applicable to the proxy for |
| 807 | ;; the requested resource. | 807 | ;; the requested resource. |
| 808 | (url-http-handle-authentication t)) | 808 | (url-http-handle-authentication t)) |
| 809 | (`request-timeout ; 408 | 809 | ('request-timeout ; 408 |
| 810 | ;; The client did not produce a request within the time that | 810 | ;; The client did not produce a request within the time that |
| 811 | ;; the server was prepared to wait. The client MAY repeat | 811 | ;; the server was prepared to wait. The client MAY repeat |
| 812 | ;; the request without modifications at any later time. | 812 | ;; the request without modifications at any later time. |
| 813 | t) | 813 | t) |
| 814 | (`conflict ; 409 | 814 | ('conflict ; 409 |
| 815 | ;; The request could not be completed due to a conflict with | 815 | ;; The request could not be completed due to a conflict with |
| 816 | ;; the current state of the resource. This code is only | 816 | ;; the current state of the resource. This code is only |
| 817 | ;; allowed in situations where it is expected that the user | 817 | ;; allowed in situations where it is expected that the user |
| @@ -820,11 +820,11 @@ should be shown to the user." | |||
| 820 | ;; information for the user to recognize the source of the | 820 | ;; information for the user to recognize the source of the |
| 821 | ;; conflict. | 821 | ;; conflict. |
| 822 | t) | 822 | t) |
| 823 | (`gone ; 410 | 823 | ('gone ; 410 |
| 824 | ;; The requested resource is no longer available at the | 824 | ;; The requested resource is no longer available at the |
| 825 | ;; server and no forwarding address is known. | 825 | ;; server and no forwarding address is known. |
| 826 | t) | 826 | t) |
| 827 | (`length-required ; 411 | 827 | ('length-required ; 411 |
| 828 | ;; The server refuses to accept the request without a defined | 828 | ;; The server refuses to accept the request without a defined |
| 829 | ;; Content-Length. The client MAY repeat the request if it | 829 | ;; Content-Length. The client MAY repeat the request if it |
| 830 | ;; adds a valid Content-Length header field containing the | 830 | ;; adds a valid Content-Length header field containing the |
| @@ -834,29 +834,29 @@ should be shown to the user." | |||
| 834 | ;; `url-http-create-request' automatically calculates the | 834 | ;; `url-http-create-request' automatically calculates the |
| 835 | ;; content-length. | 835 | ;; content-length. |
| 836 | t) | 836 | t) |
| 837 | (`precondition-failed ; 412 | 837 | ('precondition-failed ; 412 |
| 838 | ;; The precondition given in one or more of the | 838 | ;; The precondition given in one or more of the |
| 839 | ;; request-header fields evaluated to false when it was | 839 | ;; request-header fields evaluated to false when it was |
| 840 | ;; tested on the server. | 840 | ;; tested on the server. |
| 841 | t) | 841 | t) |
| 842 | ((or `request-entity-too-large `request-uri-too-large) ; 413 414 | 842 | ((or 'request-entity-too-large 'request-uri-too-large) ; 413 414 |
| 843 | ;; The server is refusing to process a request because the | 843 | ;; The server is refusing to process a request because the |
| 844 | ;; request entity|URI is larger than the server is willing or | 844 | ;; request entity|URI is larger than the server is willing or |
| 845 | ;; able to process. | 845 | ;; able to process. |
| 846 | t) | 846 | t) |
| 847 | (`unsupported-media-type ; 415 | 847 | ('unsupported-media-type ; 415 |
| 848 | ;; The server is refusing to service the request because the | 848 | ;; The server is refusing to service the request because the |
| 849 | ;; entity of the request is in a format not supported by the | 849 | ;; entity of the request is in a format not supported by the |
| 850 | ;; requested resource for the requested method. | 850 | ;; requested resource for the requested method. |
| 851 | t) | 851 | t) |
| 852 | (`requested-range-not-satisfiable ; 416 | 852 | ('requested-range-not-satisfiable ; 416 |
| 853 | ;; A server SHOULD return a response with this status code if | 853 | ;; A server SHOULD return a response with this status code if |
| 854 | ;; a request included a Range request-header field, and none | 854 | ;; a request included a Range request-header field, and none |
| 855 | ;; of the range-specifier values in this field overlap the | 855 | ;; of the range-specifier values in this field overlap the |
| 856 | ;; current extent of the selected resource, and the request | 856 | ;; current extent of the selected resource, and the request |
| 857 | ;; did not include an If-Range request-header field. | 857 | ;; did not include an If-Range request-header field. |
| 858 | t) | 858 | t) |
| 859 | (`expectation-failed ; 417 | 859 | ('expectation-failed ; 417 |
| 860 | ;; The expectation given in an Expect request-header field | 860 | ;; The expectation given in an Expect request-header field |
| 861 | ;; could not be met by this server, or, if the server is a | 861 | ;; could not be met by this server, or, if the server is a |
| 862 | ;; proxy, the server has unambiguous evidence that the | 862 | ;; proxy, the server has unambiguous evidence that the |
| @@ -883,16 +883,16 @@ should be shown to the user." | |||
| 883 | ;; 507 Insufficient storage | 883 | ;; 507 Insufficient storage |
| 884 | (setq success t) | 884 | (setq success t) |
| 885 | (pcase url-http-response-status | 885 | (pcase url-http-response-status |
| 886 | (`not-implemented ; 501 | 886 | ('not-implemented ; 501 |
| 887 | ;; The server does not support the functionality required to | 887 | ;; The server does not support the functionality required to |
| 888 | ;; fulfill the request. | 888 | ;; fulfill the request. |
| 889 | nil) | 889 | nil) |
| 890 | (`bad-gateway ; 502 | 890 | ('bad-gateway ; 502 |
| 891 | ;; The server, while acting as a gateway or proxy, received | 891 | ;; The server, while acting as a gateway or proxy, received |
| 892 | ;; an invalid response from the upstream server it accessed | 892 | ;; an invalid response from the upstream server it accessed |
| 893 | ;; in attempting to fulfill the request. | 893 | ;; in attempting to fulfill the request. |
| 894 | nil) | 894 | nil) |
| 895 | (`service-unavailable ; 503 | 895 | ('service-unavailable ; 503 |
| 896 | ;; The server is currently unable to handle the request due | 896 | ;; The server is currently unable to handle the request due |
| 897 | ;; to a temporary overloading or maintenance of the server. | 897 | ;; to a temporary overloading or maintenance of the server. |
| 898 | ;; The implication is that this is a temporary condition | 898 | ;; The implication is that this is a temporary condition |
| @@ -901,19 +901,19 @@ should be shown to the user." | |||
| 901 | ;; header. If no Retry-After is given, the client SHOULD | 901 | ;; header. If no Retry-After is given, the client SHOULD |
| 902 | ;; handle the response as it would for a 500 response. | 902 | ;; handle the response as it would for a 500 response. |
| 903 | nil) | 903 | nil) |
| 904 | (`gateway-timeout ; 504 | 904 | ('gateway-timeout ; 504 |
| 905 | ;; The server, while acting as a gateway or proxy, did not | 905 | ;; The server, while acting as a gateway or proxy, did not |
| 906 | ;; receive a timely response from the upstream server | 906 | ;; receive a timely response from the upstream server |
| 907 | ;; specified by the URI (e.g. HTTP, FTP, LDAP) or some other | 907 | ;; specified by the URI (e.g. HTTP, FTP, LDAP) or some other |
| 908 | ;; auxiliary server (e.g. DNS) it needed to access in | 908 | ;; auxiliary server (e.g. DNS) it needed to access in |
| 909 | ;; attempting to complete the request. | 909 | ;; attempting to complete the request. |
| 910 | nil) | 910 | nil) |
| 911 | (`http-version-not-supported ; 505 | 911 | ('http-version-not-supported ; 505 |
| 912 | ;; The server does not support, or refuses to support, the | 912 | ;; The server does not support, or refuses to support, the |
| 913 | ;; HTTP protocol version that was used in the request | 913 | ;; HTTP protocol version that was used in the request |
| 914 | ;; message. | 914 | ;; message. |
| 915 | nil) | 915 | nil) |
| 916 | (`insufficient-storage ; 507 (DAV) | 916 | ('insufficient-storage ; 507 (DAV) |
| 917 | ;; The method could not be performed on the resource | 917 | ;; The method could not be performed on the resource |
| 918 | ;; because the server is unable to store the representation | 918 | ;; because the server is unable to store the representation |
| 919 | ;; needed to successfully complete the request. This | 919 | ;; needed to successfully complete the request. This |
| @@ -1353,10 +1353,10 @@ The return value of this function is the retrieval buffer." | |||
| 1353 | (set-process-buffer connection buffer) | 1353 | (set-process-buffer connection buffer) |
| 1354 | (set-process-filter connection 'url-http-generic-filter) | 1354 | (set-process-filter connection 'url-http-generic-filter) |
| 1355 | (pcase (process-status connection) | 1355 | (pcase (process-status connection) |
| 1356 | (`connect | 1356 | ('connect |
| 1357 | ;; Asynchronous connection | 1357 | ;; Asynchronous connection |
| 1358 | (set-process-sentinel connection 'url-http-async-sentinel)) | 1358 | (set-process-sentinel connection 'url-http-async-sentinel)) |
| 1359 | (`failed | 1359 | ('failed |
| 1360 | ;; Asynchronous connection failed | 1360 | ;; Asynchronous connection failed |
| 1361 | (error "Could not create connection to %s:%d" (url-host url) | 1361 | (error "Could not create connection to %s:%d" (url-host url) |
| 1362 | (url-port url))) | 1362 | (url-port url))) |
diff --git a/lisp/url/url-methods.el b/lisp/url/url-methods.el index db6ef7283de..b728212d23f 100644 --- a/lisp/url/url-methods.el +++ b/lisp/url/url-methods.el | |||
| @@ -134,11 +134,11 @@ it has not already been loaded." | |||
| 134 | (type (cdr cell))) | 134 | (type (cdr cell))) |
| 135 | (if symbol | 135 | (if symbol |
| 136 | (pcase type | 136 | (pcase type |
| 137 | (`function | 137 | ('function |
| 138 | ;; Store the symbol name of a function | 138 | ;; Store the symbol name of a function |
| 139 | (if (fboundp symbol) | 139 | (if (fboundp symbol) |
| 140 | (setq desc (plist-put desc (car cell) symbol)))) | 140 | (setq desc (plist-put desc (car cell) symbol)))) |
| 141 | (`variable | 141 | ('variable |
| 142 | ;; Store the VALUE of a variable | 142 | ;; Store the VALUE of a variable |
| 143 | (if (boundp symbol) | 143 | (if (boundp symbol) |
| 144 | (setq desc (plist-put desc (car cell) | 144 | (setq desc (plist-put desc (car cell) |
diff --git a/lisp/url/url-privacy.el b/lisp/url/url-privacy.el index 92523a62cae..9edca7e334d 100644 --- a/lisp/url/url-privacy.el +++ b/lisp/url/url-privacy.el | |||
| @@ -45,9 +45,9 @@ | |||
| 45 | ((memq (url-device-type) '(win32 w32)) "Windows; 32bit") | 45 | ((memq (url-device-type) '(win32 w32)) "Windows; 32bit") |
| 46 | (t | 46 | (t |
| 47 | (pcase (url-device-type) | 47 | (pcase (url-device-type) |
| 48 | (`x "X11") | 48 | ('x "X11") |
| 49 | (`ns "OpenStep") | 49 | ('ns "OpenStep") |
| 50 | (`tty "TTY") | 50 | ('tty "TTY") |
| 51 | (_ nil))))) | 51 | (_ nil))))) |
| 52 | 52 | ||
| 53 | (setq url-personal-mail-address (or url-personal-mail-address | 53 | (setq url-personal-mail-address (or url-personal-mail-address |
diff --git a/lisp/vc/cvs-status.el b/lisp/vc/cvs-status.el index 13b876273f2..b65b91c5178 100644 --- a/lisp/vc/cvs-status.el +++ b/lisp/vc/cvs-status.el | |||
| @@ -269,9 +269,9 @@ BEWARE: because of stability issues, this is not a symmetric operation." | |||
| 269 | (cond | 269 | (cond |
| 270 | ((= l1 l2) | 270 | ((= l1 l2) |
| 271 | (pcase (cvs-tag-compare tag1 tag2) | 271 | (pcase (cvs-tag-compare tag1 tag2) |
| 272 | (`more1 (cons rev2 (cvs-tree-merge tree1 (cdr tree2)))) | 272 | ('more1 (cons rev2 (cvs-tree-merge tree1 (cdr tree2)))) |
| 273 | (`more2 (cons rev1 (cvs-tree-merge (cdr tree1) tree2))) | 273 | ('more2 (cons rev1 (cvs-tree-merge (cdr tree1) tree2))) |
| 274 | (`equal | 274 | ('equal |
| 275 | (cons (cons (cvs-tag-merge tag1 tag2) | 275 | (cons (cons (cvs-tag-merge tag1 tag2) |
| 276 | (cvs-tree-merge (cvs-cdr rev1) (cvs-cdr rev2))) | 276 | (cvs-tree-merge (cvs-cdr rev1) (cvs-cdr rev2))) |
| 277 | (cvs-tree-merge (cdr tree1) (cdr tree2)))))) | 277 | (cvs-tree-merge (cdr tree1) (cdr tree2)))))) |
| @@ -395,33 +395,33 @@ Otherwise, default to ASCII chars like +, - and |.") | |||
| 395 | 395 | ||
| 396 | (defconst cvs-tree-char-space | 396 | (defconst cvs-tree-char-space |
| 397 | (pcase cvs-tree-use-charset | 397 | (pcase cvs-tree-use-charset |
| 398 | (`jisx0208 (make-char 'japanese-jisx0208 33 33)) | 398 | ('jisx0208 (make-char 'japanese-jisx0208 33 33)) |
| 399 | (`unicode " ") | 399 | ('unicode " ") |
| 400 | (_ " "))) | 400 | (_ " "))) |
| 401 | (defconst cvs-tree-char-hbar | 401 | (defconst cvs-tree-char-hbar |
| 402 | (pcase cvs-tree-use-charset | 402 | (pcase cvs-tree-use-charset |
| 403 | (`jisx0208 (make-char 'japanese-jisx0208 40 44)) | 403 | ('jisx0208 (make-char 'japanese-jisx0208 40 44)) |
| 404 | (`unicode "â”") | 404 | ('unicode "â”") |
| 405 | (_ "--"))) | 405 | (_ "--"))) |
| 406 | (defconst cvs-tree-char-vbar | 406 | (defconst cvs-tree-char-vbar |
| 407 | (pcase cvs-tree-use-charset | 407 | (pcase cvs-tree-use-charset |
| 408 | (`jisx0208 (make-char 'japanese-jisx0208 40 45)) | 408 | ('jisx0208 (make-char 'japanese-jisx0208 40 45)) |
| 409 | (`unicode "┃") | 409 | ('unicode "┃") |
| 410 | (_ "| "))) | 410 | (_ "| "))) |
| 411 | (defconst cvs-tree-char-branch | 411 | (defconst cvs-tree-char-branch |
| 412 | (pcase cvs-tree-use-charset | 412 | (pcase cvs-tree-use-charset |
| 413 | (`jisx0208 (make-char 'japanese-jisx0208 40 50)) | 413 | ('jisx0208 (make-char 'japanese-jisx0208 40 50)) |
| 414 | (`unicode "┣") | 414 | ('unicode "┣") |
| 415 | (_ "+-"))) | 415 | (_ "+-"))) |
| 416 | (defconst cvs-tree-char-eob ;end of branch | 416 | (defconst cvs-tree-char-eob ;end of branch |
| 417 | (pcase cvs-tree-use-charset | 417 | (pcase cvs-tree-use-charset |
| 418 | (`jisx0208 (make-char 'japanese-jisx0208 40 49)) | 418 | ('jisx0208 (make-char 'japanese-jisx0208 40 49)) |
| 419 | (`unicode "â”—") | 419 | ('unicode "â”—") |
| 420 | (_ "`-"))) | 420 | (_ "`-"))) |
| 421 | (defconst cvs-tree-char-bob ;beginning of branch | 421 | (defconst cvs-tree-char-bob ;beginning of branch |
| 422 | (pcase cvs-tree-use-charset | 422 | (pcase cvs-tree-use-charset |
| 423 | (`jisx0208 (make-char 'japanese-jisx0208 40 51)) | 423 | ('jisx0208 (make-char 'japanese-jisx0208 40 51)) |
| 424 | (`unicode "┳") | 424 | ('unicode "┳") |
| 425 | (_ "+-"))) | 425 | (_ "+-"))) |
| 426 | 426 | ||
| 427 | (defun cvs-tag-lessp (tag1 tag2) | 427 | (defun cvs-tag-lessp (tag1 tag2) |
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index f200680968e..4adef029847 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -476,13 +476,13 @@ See https://lists.gnu.org/r/emacs-devel/2007-11/msg01990.html") | |||
| 476 | (unless end | 476 | (unless end |
| 477 | (setq end (and (re-search-forward | 477 | (setq end (and (re-search-forward |
| 478 | (pcase style | 478 | (pcase style |
| 479 | (`unified | 479 | ('unified |
| 480 | (concat (if diff-valid-unified-empty-line | 480 | (concat (if diff-valid-unified-empty-line |
| 481 | "^[^-+# \\\n]\\|" "^[^-+# \\]\\|") | 481 | "^[^-+# \\\n]\\|" "^[^-+# \\]\\|") |
| 482 | ;; A `unified' header is ambiguous. | 482 | ;; A `unified' header is ambiguous. |
| 483 | diff-file-header-re)) | 483 | diff-file-header-re)) |
| 484 | (`context "^[^-+#! \\]") | 484 | ('context "^[^-+#! \\]") |
| 485 | (`normal "^[^<>#\\]") | 485 | ('normal "^[^<>#\\]") |
| 486 | (_ "^[^-+#!<> \\]")) | 486 | (_ "^[^-+#!<> \\]")) |
| 487 | nil t) | 487 | nil t) |
| 488 | (match-beginning 0))) | 488 | (match-beginning 0))) |
| @@ -2048,7 +2048,7 @@ Return new point, if it was moved." | |||
| 2048 | 2048 | ||
| 2049 | (goto-char beg) | 2049 | (goto-char beg) |
| 2050 | (pcase style | 2050 | (pcase style |
| 2051 | (`unified | 2051 | ('unified |
| 2052 | (while (re-search-forward "^-" end t) | 2052 | (while (re-search-forward "^-" end t) |
| 2053 | (let ((beg-del (progn (beginning-of-line) (point))) | 2053 | (let ((beg-del (progn (beginning-of-line) (point))) |
| 2054 | beg-add end-add) | 2054 | beg-add end-add) |
| @@ -2061,7 +2061,7 @@ Return new point, if it was moved." | |||
| 2061 | (setq end-add (point)))) | 2061 | (setq end-add (point)))) |
| 2062 | (smerge-refine-regions beg-del beg-add beg-add end-add | 2062 | (smerge-refine-regions beg-del beg-add beg-add end-add |
| 2063 | nil #'diff-refine-preproc props-r props-a))))) | 2063 | nil #'diff-refine-preproc props-r props-a))))) |
| 2064 | (`context | 2064 | ('context |
| 2065 | (let* ((middle (save-excursion (re-search-forward "^---"))) | 2065 | (let* ((middle (save-excursion (re-search-forward "^---"))) |
| 2066 | (other middle)) | 2066 | (other middle)) |
| 2067 | (while (re-search-forward "^\\(?:!.*\n\\)+" middle t) | 2067 | (while (re-search-forward "^\\(?:!.*\n\\)+" middle t) |
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el index e5e2a042305..ee36a82033f 100644 --- a/lisp/vc/ediff-init.el +++ b/lisp/vc/ediff-init.el | |||
| @@ -267,17 +267,17 @@ It needs to be killed when we quit the session.") | |||
| 267 | (and (ediff-window-display-p) ediff-multiframe)) | 267 | (and (ediff-window-display-p) ediff-multiframe)) |
| 268 | 268 | ||
| 269 | (defmacro ediff-narrow-control-frame-p () | 269 | (defmacro ediff-narrow-control-frame-p () |
| 270 | `(and (ediff-multiframe-setup-p) | 270 | '(and (ediff-multiframe-setup-p) |
| 271 | (equal ediff-help-message ediff-brief-message-string))) | 271 | (equal ediff-help-message ediff-brief-message-string))) |
| 272 | 272 | ||
| 273 | (defmacro ediff-3way-comparison-job () | 273 | (defmacro ediff-3way-comparison-job () |
| 274 | `(memq | 274 | '(memq |
| 275 | ediff-job-name | 275 | ediff-job-name |
| 276 | '(ediff-files3 ediff-buffers3))) | 276 | '(ediff-files3 ediff-buffers3))) |
| 277 | (ediff-defvar-local ediff-3way-comparison-job nil "") | 277 | (ediff-defvar-local ediff-3way-comparison-job nil "") |
| 278 | 278 | ||
| 279 | (defmacro ediff-merge-job () | 279 | (defmacro ediff-merge-job () |
| 280 | `(memq | 280 | '(memq |
| 281 | ediff-job-name | 281 | ediff-job-name |
| 282 | '(ediff-merge-files | 282 | '(ediff-merge-files |
| 283 | ediff-merge-buffers | 283 | ediff-merge-buffers |
| @@ -288,10 +288,10 @@ It needs to be killed when we quit the session.") | |||
| 288 | (ediff-defvar-local ediff-merge-job nil "") | 288 | (ediff-defvar-local ediff-merge-job nil "") |
| 289 | 289 | ||
| 290 | (defmacro ediff-patch-job () | 290 | (defmacro ediff-patch-job () |
| 291 | `(eq ediff-job-name 'epatch)) | 291 | '(eq ediff-job-name 'epatch)) |
| 292 | 292 | ||
| 293 | (defmacro ediff-merge-with-ancestor-job () | 293 | (defmacro ediff-merge-with-ancestor-job () |
| 294 | `(memq | 294 | '(memq |
| 295 | ediff-job-name | 295 | ediff-job-name |
| 296 | '(ediff-merge-files-with-ancestor | 296 | '(ediff-merge-files-with-ancestor |
| 297 | ediff-merge-buffers-with-ancestor | 297 | ediff-merge-buffers-with-ancestor |
| @@ -299,26 +299,26 @@ It needs to be killed when we quit the session.") | |||
| 299 | (ediff-defvar-local ediff-merge-with-ancestor-job nil "") | 299 | (ediff-defvar-local ediff-merge-with-ancestor-job nil "") |
| 300 | 300 | ||
| 301 | (defmacro ediff-3way-job () | 301 | (defmacro ediff-3way-job () |
| 302 | `(or ediff-3way-comparison-job ediff-merge-job)) | 302 | '(or ediff-3way-comparison-job ediff-merge-job)) |
| 303 | (ediff-defvar-local ediff-3way-job nil "") | 303 | (ediff-defvar-local ediff-3way-job nil "") |
| 304 | 304 | ||
| 305 | ;; A diff3 job is like a 3way job, but ediff-merge doesn't require the use | 305 | ;; A diff3 job is like a 3way job, but ediff-merge doesn't require the use |
| 306 | ;; of diff3. | 306 | ;; of diff3. |
| 307 | (defmacro ediff-diff3-job () | 307 | (defmacro ediff-diff3-job () |
| 308 | `(or ediff-3way-comparison-job | 308 | '(or ediff-3way-comparison-job |
| 309 | ediff-merge-with-ancestor-job)) | 309 | ediff-merge-with-ancestor-job)) |
| 310 | (ediff-defvar-local ediff-diff3-job nil "") | 310 | (ediff-defvar-local ediff-diff3-job nil "") |
| 311 | 311 | ||
| 312 | (defmacro ediff-windows-job () | 312 | (defmacro ediff-windows-job () |
| 313 | `(memq ediff-job-name '(ediff-windows-wordwise ediff-windows-linewise))) | 313 | '(memq ediff-job-name '(ediff-windows-wordwise ediff-windows-linewise))) |
| 314 | (ediff-defvar-local ediff-windows-job nil "") | 314 | (ediff-defvar-local ediff-windows-job nil "") |
| 315 | 315 | ||
| 316 | (defmacro ediff-word-mode-job () | 316 | (defmacro ediff-word-mode-job () |
| 317 | `(memq ediff-job-name '(ediff-windows-wordwise ediff-regions-wordwise))) | 317 | '(memq ediff-job-name '(ediff-windows-wordwise ediff-regions-wordwise))) |
| 318 | (ediff-defvar-local ediff-word-mode-job nil "") | 318 | (ediff-defvar-local ediff-word-mode-job nil "") |
| 319 | 319 | ||
| 320 | (defmacro ediff-narrow-job () | 320 | (defmacro ediff-narrow-job () |
| 321 | `(memq ediff-job-name '(ediff-windows-wordwise | 321 | '(memq ediff-job-name '(ediff-windows-wordwise |
| 322 | ediff-regions-wordwise | 322 | ediff-regions-wordwise |
| 323 | ediff-windows-linewise | 323 | ediff-windows-linewise |
| 324 | ediff-regions-linewise))) | 324 | ediff-regions-linewise))) |
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el index b3cf2fee97b..03f54219130 100644 --- a/lisp/vc/ediff-ptch.el +++ b/lisp/vc/ediff-ptch.el | |||
| @@ -823,11 +823,11 @@ you can still examine the changes via M-x ediff-files" | |||
| 823 | (setq startup-hooks | 823 | (setq startup-hooks |
| 824 | ;; this sets various vars in the meta buffer inside | 824 | ;; this sets various vars in the meta buffer inside |
| 825 | ;; ediff-prepare-meta-buffer | 825 | ;; ediff-prepare-meta-buffer |
| 826 | (cons `(lambda () | 826 | (cons (lambda () |
| 827 | ;; tell what to do if the user clicks on a session record | 827 | ;; tell what to do if the user clicks on a session record |
| 828 | (setq ediff-session-action-function | 828 | (setq ediff-session-action-function |
| 829 | 'ediff-patch-file-form-meta | 829 | 'ediff-patch-file-form-meta |
| 830 | ediff-meta-patchbufer patch-buf) ) | 830 | ediff-meta-patchbufer patch-buf) ) |
| 831 | startup-hooks)) | 831 | startup-hooks)) |
| 832 | (setq meta-buf (ediff-prepare-meta-buffer | 832 | (setq meta-buf (ediff-prepare-meta-buffer |
| 833 | 'ediff-filegroup-action | 833 | 'ediff-filegroup-action |
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el index 90860fbdcfe..d407aab11df 100644 --- a/lisp/vc/log-edit.el +++ b/lisp/vc/log-edit.el | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | ;; The main keymap | 52 | ;; The main keymap |
| 53 | 53 | ||
| 54 | (easy-mmode-defmap log-edit-mode-map | 54 | (easy-mmode-defmap log-edit-mode-map |
| 55 | `(("\C-c\C-c" . log-edit-done) | 55 | '(("\C-c\C-c" . log-edit-done) |
| 56 | ("\C-c\C-a" . log-edit-insert-changelog) | 56 | ("\C-c\C-a" . log-edit-insert-changelog) |
| 57 | ("\C-c\C-d" . log-edit-show-diff) | 57 | ("\C-c\C-d" . log-edit-show-diff) |
| 58 | ("\C-c\C-f" . log-edit-show-files) | 58 | ("\C-c\C-f" . log-edit-show-files) |
diff --git a/lisp/vc/log-view.el b/lisp/vc/log-view.el index bfb31ccdab8..e3ae8fa0ba5 100644 --- a/lisp/vc/log-view.el +++ b/lisp/vc/log-view.el | |||
| @@ -157,7 +157,7 @@ | |||
| 157 | 157 | ||
| 158 | (easy-menu-define log-view-mode-menu log-view-mode-map | 158 | (easy-menu-define log-view-mode-menu log-view-mode-map |
| 159 | "Log-View Display Menu" | 159 | "Log-View Display Menu" |
| 160 | `("Log-View" | 160 | '("Log-View" |
| 161 | ;; XXX Do we need menu entries for these? | 161 | ;; XXX Do we need menu entries for these? |
| 162 | ;; ["Quit" quit-window] | 162 | ;; ["Quit" quit-window] |
| 163 | ;; ["Kill This Buffer" kill-this-buffer] | 163 | ;; ["Kill This Buffer" kill-this-buffer] |
diff --git a/lisp/vc/pcvs-info.el b/lisp/vc/pcvs-info.el index 2947733a24a..7609f987f68 100644 --- a/lisp/vc/pcvs-info.el +++ b/lisp/vc/pcvs-info.el | |||
| @@ -263,9 +263,9 @@ to confuse some users sometimes." | |||
| 263 | (setq check 'type) (symbolp type) | 263 | (setq check 'type) (symbolp type) |
| 264 | (setq check 'consistency) | 264 | (setq check 'consistency) |
| 265 | (pcase type | 265 | (pcase type |
| 266 | (`DIRCHANGE (and (null subtype) (string= "." file))) | 266 | ('DIRCHANGE (and (null subtype) (string= "." file))) |
| 267 | ((or `NEED-UPDATE `ADDED `MISSING `DEAD `MODIFIED `MESSAGE | 267 | ((or 'NEED-UPDATE 'ADDED 'MISSING 'DEAD 'MODIFIED 'MESSAGE |
| 268 | `UP-TO-DATE `REMOVED `NEED-MERGE `CONFLICT `UNKNOWN) | 268 | 'UP-TO-DATE 'REMOVED 'NEED-MERGE 'CONFLICT 'UNKNOWN) |
| 269 | t))) | 269 | t))) |
| 270 | fi | 270 | fi |
| 271 | (error "Invalid :%s in cvs-fileinfo %s" check fi)))) | 271 | (error "Invalid :%s in cvs-fileinfo %s" check fi)))) |
| @@ -326,11 +326,11 @@ For use by the ewoc package." | |||
| 326 | (subtype (cvs-fileinfo->subtype fileinfo))) | 326 | (subtype (cvs-fileinfo->subtype fileinfo))) |
| 327 | (insert | 327 | (insert |
| 328 | (pcase type | 328 | (pcase type |
| 329 | (`DIRCHANGE (concat "In directory " | 329 | ('DIRCHANGE (concat "In directory " |
| 330 | (cvs-add-face (cvs-fileinfo->full-name fileinfo) | 330 | (cvs-add-face (cvs-fileinfo->full-name fileinfo) |
| 331 | 'cvs-header t 'cvs-goal-column t) | 331 | 'cvs-header t 'cvs-goal-column t) |
| 332 | ":")) | 332 | ":")) |
| 333 | (`MESSAGE | 333 | ('MESSAGE |
| 334 | (cvs-add-face (format "Message: %s" (cvs-fileinfo->full-log fileinfo)) | 334 | (cvs-add-face (format "Message: %s" (cvs-fileinfo->full-log fileinfo)) |
| 335 | 'cvs-msg)) | 335 | 'cvs-msg)) |
| 336 | (_ | 336 | (_ |
| @@ -344,7 +344,7 @@ For use by the ewoc package." | |||
| 344 | (type | 344 | (type |
| 345 | (let ((str (pcase type | 345 | (let ((str (pcase type |
| 346 | ;;(MOD-CONFLICT "Not Removed") | 346 | ;;(MOD-CONFLICT "Not Removed") |
| 347 | (`DEAD "") | 347 | ('DEAD "") |
| 348 | (_ (capitalize (symbol-name type))))) | 348 | (_ (capitalize (symbol-name type))))) |
| 349 | (face (let ((sym (intern-soft | 349 | (face (let ((sym (intern-soft |
| 350 | (concat "cvs-fi-" | 350 | (concat "cvs-fi-" |
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el index 501666a4997..9933e3682ed 100644 --- a/lisp/vc/pcvs.el +++ b/lisp/vc/pcvs.el | |||
| @@ -430,11 +430,11 @@ If non-nil, NEW means to create a new buffer no matter what." | |||
| 430 | (set-buffer buffer) | 430 | (set-buffer buffer) |
| 431 | (and (cvs-buffer-p) | 431 | (and (cvs-buffer-p) |
| 432 | (pcase cvs-reuse-cvs-buffer | 432 | (pcase cvs-reuse-cvs-buffer |
| 433 | (`always t) | 433 | ('always t) |
| 434 | (`subdir | 434 | ('subdir |
| 435 | (or (string-prefix-p default-directory dir) | 435 | (or (string-prefix-p default-directory dir) |
| 436 | (string-prefix-p dir default-directory))) | 436 | (string-prefix-p dir default-directory))) |
| 437 | (`samedir (string= default-directory dir))) | 437 | ('samedir (string= default-directory dir))) |
| 438 | (cl-return buffer))))) | 438 | (cl-return buffer))))) |
| 439 | ;; we really have to create a new buffer: | 439 | ;; we really have to create a new buffer: |
| 440 | ;; we temporarily bind cwd to "" to prevent | 440 | ;; we temporarily bind cwd to "" to prevent |
| @@ -876,11 +876,11 @@ RM-MSGS if non-nil means remove messages." | |||
| 876 | (keep | 876 | (keep |
| 877 | (pcase type | 877 | (pcase type |
| 878 | ;; Remove temp messages and keep the others. | 878 | ;; Remove temp messages and keep the others. |
| 879 | (`MESSAGE (not (or rm-msgs (eq subtype 'TEMP)))) | 879 | ('MESSAGE (not (or rm-msgs (eq subtype 'TEMP)))) |
| 880 | ;; Remove dead entries. | 880 | ;; Remove dead entries. |
| 881 | (`DEAD nil) | 881 | ('DEAD nil) |
| 882 | ;; Handled also? | 882 | ;; Handled also? |
| 883 | (`UP-TO-DATE | 883 | ('UP-TO-DATE |
| 884 | (not | 884 | (not |
| 885 | (if (find-buffer-visiting (cvs-fileinfo->full-name fi)) | 885 | (if (find-buffer-visiting (cvs-fileinfo->full-name fi)) |
| 886 | (eq rm-handled 'all) | 886 | (eq rm-handled 'all) |
diff --git a/lisp/vc/smerge-mode.el b/lisp/vc/smerge-mode.el index ff41473435c..fd655e435fa 100644 --- a/lisp/vc/smerge-mode.el +++ b/lisp/vc/smerge-mode.el | |||
| @@ -363,9 +363,9 @@ function should only apply safe heuristics) and with the match data set | |||
| 363 | according to `smerge-match-conflict'.") | 363 | according to `smerge-match-conflict'.") |
| 364 | 364 | ||
| 365 | (defvar smerge-text-properties | 365 | (defvar smerge-text-properties |
| 366 | `(help-echo "merge conflict: mouse-3 shows a menu" | 366 | '(help-echo "merge conflict: mouse-3 shows a menu" |
| 367 | ;; mouse-face highlight | 367 | ;; mouse-face highlight |
| 368 | keymap (keymap (down-mouse-3 . smerge-popup-context-menu)))) | 368 | keymap (keymap (down-mouse-3 . smerge-popup-context-menu)))) |
| 369 | 369 | ||
| 370 | (defun smerge-remove-props (beg end) | 370 | (defun smerge-remove-props (beg end) |
| 371 | (remove-overlays beg end 'smerge 'refine) | 371 | (remove-overlays beg end 'smerge 'refine) |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 4ea7ea53442..e406660d2fd 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -289,7 +289,7 @@ in the order given by 'git status'." | |||
| 289 | ;; 2. When a file A is renamed to B in the index and then back to A | 289 | ;; 2. When a file A is renamed to B in the index and then back to A |
| 290 | ;; in the working tree. | 290 | ;; in the working tree. |
| 291 | ;; In both of these instances, `unregistered' is a reasonable response. | 291 | ;; In both of these instances, `unregistered' is a reasonable response. |
| 292 | (`("D " "??") 'unregistered) | 292 | ('("D " "??") 'unregistered) |
| 293 | ;; In other cases, let us return `edited'. | 293 | ;; In other cases, let us return `edited'. |
| 294 | (_ 'edited))) | 294 | (_ 'edited))) |
| 295 | 295 | ||
| @@ -486,9 +486,9 @@ or an empty string if none." | |||
| 486 | (files (vc-git-dir-status-state->files git-state))) | 486 | (files (vc-git-dir-status-state->files git-state))) |
| 487 | (goto-char (point-min)) | 487 | (goto-char (point-min)) |
| 488 | (pcase (vc-git-dir-status-state->stage git-state) | 488 | (pcase (vc-git-dir-status-state->stage git-state) |
| 489 | (`update-index | 489 | ('update-index |
| 490 | (setq next-stage (if (vc-git--empty-db-p) 'ls-files-added 'diff-index))) | 490 | (setq next-stage (if (vc-git--empty-db-p) 'ls-files-added 'diff-index))) |
| 491 | (`ls-files-added | 491 | ('ls-files-added |
| 492 | (setq next-stage 'ls-files-unknown) | 492 | (setq next-stage 'ls-files-unknown) |
| 493 | (while (re-search-forward "\\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} 0\t\\([^\0]+\\)\0" nil t) | 493 | (while (re-search-forward "\\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} 0\t\\([^\0]+\\)\0" nil t) |
| 494 | (let ((new-perm (string-to-number (match-string 1) 8)) | 494 | (let ((new-perm (string-to-number (match-string 1) 8)) |
| @@ -496,7 +496,7 @@ or an empty string if none." | |||
| 496 | (vc-git-dir-status-update-file | 496 | (vc-git-dir-status-update-file |
| 497 | git-state name 'added | 497 | git-state name 'added |
| 498 | (vc-git-create-extra-fileinfo 0 new-perm))))) | 498 | (vc-git-create-extra-fileinfo 0 new-perm))))) |
| 499 | (`ls-files-up-to-date | 499 | ('ls-files-up-to-date |
| 500 | (setq next-stage 'ls-files-unknown) | 500 | (setq next-stage 'ls-files-unknown) |
| 501 | (while (re-search-forward "\\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} \\([0-3]\\)\t\\([^\0]+\\)\0" nil t) | 501 | (while (re-search-forward "\\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} \\([0-3]\\)\t\\([^\0]+\\)\0" nil t) |
| 502 | (let ((perm (string-to-number (match-string 1) 8)) | 502 | (let ((perm (string-to-number (match-string 1) 8)) |
| @@ -507,7 +507,7 @@ or an empty string if none." | |||
| 507 | 'up-to-date | 507 | 'up-to-date |
| 508 | 'conflict) | 508 | 'conflict) |
| 509 | (vc-git-create-extra-fileinfo perm perm))))) | 509 | (vc-git-create-extra-fileinfo perm perm))))) |
| 510 | (`ls-files-conflict | 510 | ('ls-files-conflict |
| 511 | (setq next-stage 'ls-files-unknown) | 511 | (setq next-stage 'ls-files-unknown) |
| 512 | ;; It's enough to look for "3" to notice a conflict. | 512 | ;; It's enough to look for "3" to notice a conflict. |
| 513 | (while (re-search-forward "\\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} 3\t\\([^\0]+\\)\0" nil t) | 513 | (while (re-search-forward "\\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} 3\t\\([^\0]+\\)\0" nil t) |
| @@ -516,16 +516,16 @@ or an empty string if none." | |||
| 516 | (vc-git-dir-status-update-file | 516 | (vc-git-dir-status-update-file |
| 517 | git-state name 'conflict | 517 | git-state name 'conflict |
| 518 | (vc-git-create-extra-fileinfo perm perm))))) | 518 | (vc-git-create-extra-fileinfo perm perm))))) |
| 519 | (`ls-files-unknown | 519 | ('ls-files-unknown |
| 520 | (when files (setq next-stage 'ls-files-ignored)) | 520 | (when files (setq next-stage 'ls-files-ignored)) |
| 521 | (while (re-search-forward "\\([^\0]*?\\)\0" nil t 1) | 521 | (while (re-search-forward "\\([^\0]*?\\)\0" nil t 1) |
| 522 | (vc-git-dir-status-update-file git-state (match-string 1) 'unregistered | 522 | (vc-git-dir-status-update-file git-state (match-string 1) 'unregistered |
| 523 | (vc-git-create-extra-fileinfo 0 0)))) | 523 | (vc-git-create-extra-fileinfo 0 0)))) |
| 524 | (`ls-files-ignored | 524 | ('ls-files-ignored |
| 525 | (while (re-search-forward "\\([^\0]*?\\)\0" nil t 1) | 525 | (while (re-search-forward "\\([^\0]*?\\)\0" nil t 1) |
| 526 | (vc-git-dir-status-update-file git-state (match-string 1) 'ignored | 526 | (vc-git-dir-status-update-file git-state (match-string 1) 'ignored |
| 527 | (vc-git-create-extra-fileinfo 0 0)))) | 527 | (vc-git-create-extra-fileinfo 0 0)))) |
| 528 | (`diff-index | 528 | ('diff-index |
| 529 | (setq next-stage (if files 'ls-files-up-to-date 'ls-files-conflict)) | 529 | (setq next-stage (if files 'ls-files-up-to-date 'ls-files-conflict)) |
| 530 | (while (re-search-forward | 530 | (while (re-search-forward |
| 531 | ":\\([0-7]\\{6\\}\\) \\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\(\\([ADMUT]\\)\0\\([^\0]+\\)\\|\\([CR]\\)[0-9]*\0\\([^\0]+\\)\0\\([^\0]+\\)\\)\0" | 531 | ":\\([0-7]\\{6\\}\\) \\([0-7]\\{6\\}\\) [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\(\\([ADMUT]\\)\0\\([^\0]+\\)\\|\\([CR]\\)[0-9]*\0\\([^\0]+\\)\0\\([^\0]+\\)\\)\0" |
| @@ -577,30 +577,30 @@ or an empty string if none." | |||
| 577 | (let ((files (vc-git-dir-status-state->files git-state))) | 577 | (let ((files (vc-git-dir-status-state->files git-state))) |
| 578 | (erase-buffer) | 578 | (erase-buffer) |
| 579 | (pcase (vc-git-dir-status-state->stage git-state) | 579 | (pcase (vc-git-dir-status-state->stage git-state) |
| 580 | (`update-index | 580 | ('update-index |
| 581 | (if files | 581 | (if files |
| 582 | (vc-git-command (current-buffer) 'async files "add" "--refresh" "--") | 582 | (vc-git-command (current-buffer) 'async files "add" "--refresh" "--") |
| 583 | (vc-git-command (current-buffer) 'async nil | 583 | (vc-git-command (current-buffer) 'async nil |
| 584 | "update-index" "--refresh"))) | 584 | "update-index" "--refresh"))) |
| 585 | (`ls-files-added | 585 | ('ls-files-added |
| 586 | (vc-git-command (current-buffer) 'async files | 586 | (vc-git-command (current-buffer) 'async files |
| 587 | "ls-files" "-z" "-c" "-s" "--")) | 587 | "ls-files" "-z" "-c" "-s" "--")) |
| 588 | (`ls-files-up-to-date | 588 | ('ls-files-up-to-date |
| 589 | (vc-git-command (current-buffer) 'async files | 589 | (vc-git-command (current-buffer) 'async files |
| 590 | "ls-files" "-z" "-c" "-s" "--")) | 590 | "ls-files" "-z" "-c" "-s" "--")) |
| 591 | (`ls-files-conflict | 591 | ('ls-files-conflict |
| 592 | (vc-git-command (current-buffer) 'async files | 592 | (vc-git-command (current-buffer) 'async files |
| 593 | "ls-files" "-z" "-u" "--")) | 593 | "ls-files" "-z" "-u" "--")) |
| 594 | (`ls-files-unknown | 594 | ('ls-files-unknown |
| 595 | (vc-git-command (current-buffer) 'async files | 595 | (vc-git-command (current-buffer) 'async files |
| 596 | "ls-files" "-z" "-o" "--directory" | 596 | "ls-files" "-z" "-o" "--directory" |
| 597 | "--no-empty-directory" "--exclude-standard" "--")) | 597 | "--no-empty-directory" "--exclude-standard" "--")) |
| 598 | (`ls-files-ignored | 598 | ('ls-files-ignored |
| 599 | (vc-git-command (current-buffer) 'async files | 599 | (vc-git-command (current-buffer) 'async files |
| 600 | "ls-files" "-z" "-o" "-i" "--directory" | 600 | "ls-files" "-z" "-o" "-i" "--directory" |
| 601 | "--no-empty-directory" "--exclude-standard" "--")) | 601 | "--no-empty-directory" "--exclude-standard" "--")) |
| 602 | ;; --relative added in Git 1.5.5. | 602 | ;; --relative added in Git 1.5.5. |
| 603 | (`diff-index | 603 | ('diff-index |
| 604 | (vc-git-command (current-buffer) 'async files | 604 | (vc-git-command (current-buffer) 'async files |
| 605 | "diff-index" "--relative" "-z" "-M" "HEAD" "--"))) | 605 | "diff-index" "--relative" "-z" "-M" "HEAD" "--"))) |
| 606 | (vc-run-delayed | 606 | (vc-run-delayed |
| @@ -1189,7 +1189,7 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"." | |||
| 1189 | (defvar vc-git--log-view-long-font-lock-keywords nil) | 1189 | (defvar vc-git--log-view-long-font-lock-keywords nil) |
| 1190 | (defvar font-lock-keywords) | 1190 | (defvar font-lock-keywords) |
| 1191 | (defvar vc-git-region-history-font-lock-keywords | 1191 | (defvar vc-git-region-history-font-lock-keywords |
| 1192 | `((vc-git-region-history-font-lock))) | 1192 | '((vc-git-region-history-font-lock))) |
| 1193 | 1193 | ||
| 1194 | (defun vc-git-region-history-font-lock (limit) | 1194 | (defun vc-git-region-history-font-lock (limit) |
| 1195 | (let ((in-diff (save-excursion | 1195 | (let ((in-diff (save-excursion |
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index d528813bc08..d6227d67820 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el | |||
| @@ -1192,9 +1192,9 @@ REV is the revision to check out into WORKFILE." | |||
| 1192 | (insert (propertize | 1192 | (insert (propertize |
| 1193 | (format " (%s %s)" | 1193 | (format " (%s %s)" |
| 1194 | (pcase (vc-hg-extra-fileinfo->rename-state extra) | 1194 | (pcase (vc-hg-extra-fileinfo->rename-state extra) |
| 1195 | (`copied "copied from") | 1195 | ('copied "copied from") |
| 1196 | (`renamed-from "renamed from") | 1196 | ('renamed-from "renamed from") |
| 1197 | (`renamed-to "renamed to")) | 1197 | ('renamed-to "renamed to")) |
| 1198 | (vc-hg-extra-fileinfo->extra-name extra)) | 1198 | (vc-hg-extra-fileinfo->extra-name extra)) |
| 1199 | 'face 'font-lock-comment-face))))) | 1199 | 'face 'font-lock-comment-face))))) |
| 1200 | 1200 | ||
diff --git a/lisp/vc/vc-mtn.el b/lisp/vc/vc-mtn.el index 94cf7691e3e..efb141b9970 100644 --- a/lisp/vc/vc-mtn.el +++ b/lisp/vc/vc-mtn.el | |||
| @@ -190,8 +190,8 @@ switches." | |||
| 190 | (setq branch (replace-match (cdr rule) t nil branch)))) | 190 | (setq branch (replace-match (cdr rule) t nil branch)))) |
| 191 | (format "Mtn%c%s" | 191 | (format "Mtn%c%s" |
| 192 | (pcase (vc-state file) | 192 | (pcase (vc-state file) |
| 193 | ((or `up-to-date `needs-update) ?-) | 193 | ((or 'up-to-date 'needs-update) ?-) |
| 194 | (`added ?@) | 194 | ('added ?@) |
| 195 | (_ ?:)) | 195 | (_ ?:)) |
| 196 | branch)) | 196 | branch)) |
| 197 | ""))) | 197 | ""))) |
diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el index 51a44439625..7970fce637e 100644 --- a/lisp/vc/vc-rcs.el +++ b/lisp/vc/vc-rcs.el | |||
| @@ -684,13 +684,13 @@ Optional arg REVISION is a revision to annotate from." | |||
| 684 | (forward-line (1- (pop insn))) | 684 | (forward-line (1- (pop insn))) |
| 685 | (setq p (point)) | 685 | (setq p (point)) |
| 686 | (pcase (pop insn) | 686 | (pcase (pop insn) |
| 687 | (`k (setq s (buffer-substring-no-properties | 687 | ('k (setq s (buffer-substring-no-properties |
| 688 | p (progn (forward-line (car insn)) | 688 | p (progn (forward-line (car insn)) |
| 689 | (point)))) | 689 | (point)))) |
| 690 | (when prda | 690 | (when prda |
| 691 | (push `(,p . ,(propertize s :vc-rcs-r/d/a prda)) path)) | 691 | (push `(,p . ,(propertize s :vc-rcs-r/d/a prda)) path)) |
| 692 | (delete-region p (point))) | 692 | (delete-region p (point))) |
| 693 | (`i (setq s (car insn)) | 693 | ('i (setq s (car insn)) |
| 694 | (when prda | 694 | (when prda |
| 695 | (push `(,p . ,(length s)) path)) | 695 | (push `(,p . ,(length s)) path)) |
| 696 | (insert s))))) | 696 | (insert s))))) |
| @@ -716,10 +716,10 @@ Optional arg REVISION is a revision to annotate from." | |||
| 716 | (goto-char (point-min)) | 716 | (goto-char (point-min)) |
| 717 | (forward-line (1- (pop insn))) | 717 | (forward-line (1- (pop insn))) |
| 718 | (pcase (pop insn) | 718 | (pcase (pop insn) |
| 719 | (`k (delete-region | 719 | ('k (delete-region |
| 720 | (point) (progn (forward-line (car insn)) | 720 | (point) (progn (forward-line (car insn)) |
| 721 | (point)))) | 721 | (point)))) |
| 722 | (`i (insert (propertize | 722 | ('i (insert (propertize |
| 723 | (car insn) | 723 | (car insn) |
| 724 | :vc-rcs-r/d/a | 724 | :vc-rcs-r/d/a |
| 725 | (or prda (setq prda (r/d/a)))))))) | 725 | (or prda (setq prda (r/d/a)))))))) |
diff --git a/lisp/whitespace.el b/lisp/whitespace.el index d8249316e4b..af06f7ccb14 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el | |||
| @@ -1708,7 +1708,7 @@ cleaning up these problems." | |||
| 1708 | (setq has-bogus (memq (car option) style))) | 1708 | (setq has-bogus (memq (car option) style))) |
| 1709 | t))) | 1709 | t))) |
| 1710 | whitespace-report-list))) | 1710 | whitespace-report-list))) |
| 1711 | (when (pcase report-if-bogus (`nil t) (`never nil) (_ has-bogus)) | 1711 | (when (pcase report-if-bogus ('nil t) ('never nil) (_ has-bogus)) |
| 1712 | (whitespace-kill-buffer whitespace-report-buffer-name) | 1712 | (whitespace-kill-buffer whitespace-report-buffer-name) |
| 1713 | ;; `indent-tabs-mode' may be local to current buffer | 1713 | ;; `indent-tabs-mode' may be local to current buffer |
| 1714 | ;; `tab-width' may be local to current buffer | 1714 | ;; `tab-width' may be local to current buffer |
diff --git a/lisp/window.el b/lisp/window.el index 43a742b2d8c..2634955a755 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5562,7 +5562,7 @@ specific buffers." | |||
| 5562 | (window-prev-buffers window))))) | 5562 | (window-prev-buffers window))))) |
| 5563 | (head | 5563 | (head |
| 5564 | `(,type | 5564 | `(,type |
| 5565 | ,@(unless (window-next-sibling window) `((last . t))) | 5565 | ,@(unless (window-next-sibling window) '((last . t))) |
| 5566 | (pixel-width . ,(window-pixel-width window)) | 5566 | (pixel-width . ,(window-pixel-width window)) |
| 5567 | (pixel-height . ,(window-pixel-height window)) | 5567 | (pixel-height . ,(window-pixel-height window)) |
| 5568 | (total-width . ,(window-total-width window)) | 5568 | (total-width . ,(window-total-width window)) |
| @@ -7824,9 +7824,9 @@ Return the buffer switched to." | |||
| 7824 | ((window-minibuffer-p) nil) | 7824 | ((window-minibuffer-p) nil) |
| 7825 | ((not (eq (window-dedicated-p) t)) 'force-same-window) | 7825 | ((not (eq (window-dedicated-p) t)) 'force-same-window) |
| 7826 | ((pcase switch-to-buffer-in-dedicated-window | 7826 | ((pcase switch-to-buffer-in-dedicated-window |
| 7827 | (`nil (user-error | 7827 | ('nil (user-error |
| 7828 | "Cannot switch buffers in a dedicated window")) | 7828 | "Cannot switch buffers in a dedicated window")) |
| 7829 | (`prompt | 7829 | ('prompt |
| 7830 | (if (y-or-n-p | 7830 | (if (y-or-n-p |
| 7831 | (format "Window is dedicated to %s; undedicate it" | 7831 | (format "Window is dedicated to %s; undedicate it" |
| 7832 | (window-buffer))) | 7832 | (window-buffer))) |
| @@ -7835,7 +7835,7 @@ Return the buffer switched to." | |||
| 7835 | 'force-same-window) | 7835 | 'force-same-window) |
| 7836 | (user-error | 7836 | (user-error |
| 7837 | "Cannot switch buffers in a dedicated window"))) | 7837 | "Cannot switch buffers in a dedicated window"))) |
| 7838 | (`pop nil) | 7838 | ('pop nil) |
| 7839 | (_ (set-window-dedicated-p nil nil) 'force-same-window)))))) | 7839 | (_ (set-window-dedicated-p nil nil) 'force-same-window)))))) |
| 7840 | (list (read-buffer-to-switch "Switch to buffer: ") nil force-same-window))) | 7840 | (list (read-buffer-to-switch "Switch to buffer: ") nil force-same-window))) |
| 7841 | (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) | 7841 | (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) |
diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el index 7e94dfa496c..a665d2eb288 100644 --- a/test/lisp/electric-tests.el +++ b/test/lisp/electric-tests.el | |||
| @@ -179,9 +179,9 @@ The buffer's contents should %s: | |||
| 179 | "" | 179 | "" |
| 180 | "-in-comments"))) | 180 | "-in-comments"))) |
| 181 | (if test-in-strings | 181 | (if test-in-strings |
| 182 | `(("\"" "\"" "-in-strings"))) | 182 | '(("\"" "\"" "-in-strings"))) |
| 183 | (if test-in-code | 183 | (if test-in-code |
| 184 | `(("" "" "")))) | 184 | '(("" "" "")))) |
| 185 | append | 185 | append |
| 186 | (cl-loop | 186 | (cl-loop |
| 187 | for char across input | 187 | for char across input |
diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el b/test/lisp/emacs-lisp/cl-lib-tests.el index f100e8c6c5f..a338e16f7bc 100644 --- a/test/lisp/emacs-lisp/cl-lib-tests.el +++ b/test/lisp/emacs-lisp/cl-lib-tests.el | |||
| @@ -220,7 +220,7 @@ | |||
| 220 | (should-error (cl-struct-slot-offset 'mystruct 'marypoppins)) | 220 | (should-error (cl-struct-slot-offset 'mystruct 'marypoppins)) |
| 221 | (should (pcase (cl-struct-slot-info 'mystruct) | 221 | (should (pcase (cl-struct-slot-info 'mystruct) |
| 222 | (`((cl-tag-slot) (abc 5 :readonly t) | 222 | (`((cl-tag-slot) (abc 5 :readonly t) |
| 223 | (def . ,(or `nil `(nil)))) | 223 | (def . ,(or 'nil '(nil)))) |
| 224 | t))))) | 224 | t))))) |
| 225 | (ert-deftest cl-lib-struct-constructors () | 225 | (ert-deftest cl-lib-struct-constructors () |
| 226 | (should (string-match "\\`Constructor docstring." | 226 | (should (string-match "\\`Constructor docstring." |
diff --git a/test/lisp/emacs-lisp/ert-tests.el b/test/lisp/emacs-lisp/ert-tests.el index 1fe5b79ef36..06e3fb292b1 100644 --- a/test/lisp/emacs-lisp/ert-tests.el +++ b/test/lisp/emacs-lisp/ert-tests.el | |||
| @@ -188,7 +188,7 @@ failed or if there was a problem." | |||
| 188 | 188 | ||
| 189 | (ert-deftest ert-test-should-with-macrolet () | 189 | (ert-deftest ert-test-should-with-macrolet () |
| 190 | (let ((test (make-ert-test :body (lambda () | 190 | (let ((test (make-ert-test :body (lambda () |
| 191 | (cl-macrolet ((foo () `(progn t nil))) | 191 | (cl-macrolet ((foo () '(progn t nil))) |
| 192 | (should (foo))))))) | 192 | (should (foo))))))) |
| 193 | (let ((result (let ((ert-debug-on-error nil)) | 193 | (let ((result (let ((ert-debug-on-error nil)) |
| 194 | (ert-run-test test)))) | 194 | (ert-run-test test)))) |
| @@ -490,9 +490,9 @@ This macro is used to test if macroexpansion in `should' works." | |||
| 490 | :name nil | 490 | :name nil |
| 491 | :body nil | 491 | :body nil |
| 492 | :tags '(a b)))) | 492 | :tags '(a b)))) |
| 493 | (should (equal (ert-select-tests `(tag a) (list test)) (list test))) | 493 | (should (equal (ert-select-tests '(tag a) (list test)) (list test))) |
| 494 | (should (equal (ert-select-tests `(tag b) (list test)) (list test))) | 494 | (should (equal (ert-select-tests '(tag b) (list test)) (list test))) |
| 495 | (should (equal (ert-select-tests `(tag c) (list test)) '())))) | 495 | (should (equal (ert-select-tests '(tag c) (list test)) '())))) |
| 496 | 496 | ||
| 497 | 497 | ||
| 498 | ;;; Tests for utility functions. | 498 | ;;; Tests for utility functions. |
diff --git a/test/lisp/epg-tests.el b/test/lisp/epg-tests.el index c1e98a6935e..69c3838f0ae 100644 --- a/test/lisp/epg-tests.el +++ b/test/lisp/epg-tests.el | |||
| @@ -82,7 +82,7 @@ | |||
| 82 | (setf (epg-context-home-directory context) | 82 | (setf (epg-context-home-directory context) |
| 83 | epg-tests-home-directory) | 83 | epg-tests-home-directory) |
| 84 | ,(if require-passphrase | 84 | ,(if require-passphrase |
| 85 | `(with-temp-file (expand-file-name | 85 | '(with-temp-file (expand-file-name |
| 86 | "gpg-agent.conf" epg-tests-home-directory) | 86 | "gpg-agent.conf" epg-tests-home-directory) |
| 87 | (insert "pinentry-program " | 87 | (insert "pinentry-program " |
| 88 | (expand-file-name "dummy-pinentry" | 88 | (expand-file-name "dummy-pinentry" |
| @@ -92,11 +92,11 @@ | |||
| 92 | context | 92 | context |
| 93 | #'epg-tests-passphrase-callback))) | 93 | #'epg-tests-passphrase-callback))) |
| 94 | ,(if require-public-key | 94 | ,(if require-public-key |
| 95 | `(epg-import-keys-from-file | 95 | '(epg-import-keys-from-file |
| 96 | context | 96 | context |
| 97 | (expand-file-name "pubkey.asc" epg-tests-data-directory))) | 97 | (expand-file-name "pubkey.asc" epg-tests-data-directory))) |
| 98 | ,(if require-secret-key | 98 | ,(if require-secret-key |
| 99 | `(epg-import-keys-from-file | 99 | '(epg-import-keys-from-file |
| 100 | context | 100 | context |
| 101 | (expand-file-name "seckey.asc" epg-tests-data-directory))) | 101 | (expand-file-name "seckey.asc" epg-tests-data-directory))) |
| 102 | (with-temp-buffer | 102 | (with-temp-buffer |
diff --git a/test/lisp/jsonrpc-tests.el b/test/lisp/jsonrpc-tests.el index 1a84c30e33d..585eb20bfeb 100644 --- a/test/lisp/jsonrpc-tests.el +++ b/test/lisp/jsonrpc-tests.el | |||
| @@ -64,7 +64,7 @@ | |||
| 64 | (unless (memq method '(+ - * / vconcat append | 64 | (unless (memq method '(+ - * / vconcat append |
| 65 | sit-for ignore)) | 65 | sit-for ignore)) |
| 66 | (signal 'jsonrpc-error | 66 | (signal 'jsonrpc-error |
| 67 | `((jsonrpc-error-message | 67 | '((jsonrpc-error-message |
| 68 | . "Sorry, this isn't allowed") | 68 | . "Sorry, this isn't allowed") |
| 69 | (jsonrpc-error-code . -32601)))) | 69 | (jsonrpc-error-code . -32601)))) |
| 70 | (apply method (append params nil))) | 70 | (apply method (append params nil))) |
diff --git a/test/src/data-tests.el b/test/src/data-tests.el index 3cd4802a981..d41c7623289 100644 --- a/test/src/data-tests.el +++ b/test/src/data-tests.el | |||
| @@ -484,7 +484,7 @@ comparing the subr with a much slower lisp implementation." | |||
| 484 | (should-have-watch-data `(data-tests-lvar 3 set ,buf1))) | 484 | (should-have-watch-data `(data-tests-lvar 3 set ,buf1))) |
| 485 | (should-have-watch-data `(data-tests-lvar 1 unlet ,buf1)) | 485 | (should-have-watch-data `(data-tests-lvar 1 unlet ,buf1)) |
| 486 | (setq-default data-tests-lvar 4) | 486 | (setq-default data-tests-lvar 4) |
| 487 | (should-have-watch-data `(data-tests-lvar 4 set nil)) | 487 | (should-have-watch-data '(data-tests-lvar 4 set nil)) |
| 488 | (with-temp-buffer | 488 | (with-temp-buffer |
| 489 | (setq buf2 (current-buffer)) | 489 | (setq buf2 (current-buffer)) |
| 490 | (setq data-tests-lvar 1) | 490 | (setq data-tests-lvar 1) |
| @@ -501,7 +501,7 @@ comparing the subr with a much slower lisp implementation." | |||
| 501 | (kill-all-local-variables) | 501 | (kill-all-local-variables) |
| 502 | (should-have-watch-data `(data-tests-lvar nil makunbound ,buf2))) | 502 | (should-have-watch-data `(data-tests-lvar nil makunbound ,buf2))) |
| 503 | (setq-default data-tests-lvar 4) | 503 | (setq-default data-tests-lvar 4) |
| 504 | (should-have-watch-data `(data-tests-lvar 4 set nil)) | 504 | (should-have-watch-data '(data-tests-lvar 4 set nil)) |
| 505 | (makunbound 'data-tests-lvar) | 505 | (makunbound 'data-tests-lvar) |
| 506 | (should-have-watch-data '(data-tests-lvar nil makunbound nil)) | 506 | (should-have-watch-data '(data-tests-lvar nil makunbound nil)) |
| 507 | (setq data-tests-lvar 5) | 507 | (setq data-tests-lvar 5) |
diff --git a/test/src/json-tests.el b/test/src/json-tests.el index bffee8f39d3..651b0a0bb7a 100644 --- a/test/src/json-tests.el +++ b/test/src/json-tests.el | |||
| @@ -86,8 +86,8 @@ | |||
| 86 | (should (equal | 86 | (should (equal |
| 87 | (json-serialize | 87 | (json-serialize |
| 88 | (list :detect-hash-table #s(hash-table test equal data ("bla" "ble")) | 88 | (list :detect-hash-table #s(hash-table test equal data ("bla" "ble")) |
| 89 | :detect-alist `((bla . "ble")) | 89 | :detect-alist '((bla . "ble")) |
| 90 | :detect-plist `(:bla "ble"))) | 90 | :detect-plist '(:bla "ble"))) |
| 91 | "\ | 91 | "\ |
| 92 | {\ | 92 | {\ |
| 93 | \"detect-hash-table\":{\"bla\":\"ble\"},\ | 93 | \"detect-hash-table\":{\"bla\":\"ble\"},\ |