aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-15 14:26:07 +0000
committerGerd Moellmann1999-11-15 14:26:07 +0000
commitb787fc059e638aa08d18aa45ad30b77af50f5232 (patch)
tree876d02134baedd58285491f1cc15efa457225b44
parent8e42f594dde4fa530580bd0bff2e9921dec3ce9e (diff)
downloademacs-b787fc059e638aa08d18aa45ad30b77af50f5232.tar.gz
emacs-b787fc059e638aa08d18aa45ad30b77af50f5232.zip
Use new backquote syntax.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/iswitchb.el2
-rw-r--r--lisp/mail/mh-utils.el34
-rw-r--r--lisp/mail/rmail.el38
-rw-r--r--lisp/mail/rnews.el10
-rw-r--r--lisp/progmodes/cperl-mode.el128
6 files changed, 112 insertions, 108 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c1419a5467..c542e098583 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
11999-11-15 Sam Steingold <sds@ksp.com>
2
3 * mail/rnews.el, mail/mh-utils.el: Use the new backquote syntax.
4
11999-11-15 Dave Love <fx@gnu.org> 51999-11-15 Dave Love <fx@gnu.org>
2 6
3 * cus-edit.el (customize-face, customize-face-other-window): 7 * cus-edit.el (customize-face, customize-face-other-window):
@@ -7,8 +11,8 @@
7 11
81999-11-15 Gerd Moellmann <gerd@gnu.org> 121999-11-15 Gerd Moellmann <gerd@gnu.org>
9 13
10 * iswitchb.el, hippie-exp.el, progmodes/cperl-mode.el: Use new 14 * mail/rmail.el, iswitchb.el, hippie-exp.el,
11 backquote syntax. 15 progmodes/cperl-mode.el: Use new backquote syntax.
12 16
131998-09-14 Michael Ernst <mernst@alum.mit.edu> 171998-09-14 Michael Ernst <mernst@alum.mit.edu>
14 18
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el
index 5d18ce765bd..18142e6f837 100644
--- a/lisp/iswitchb.el
+++ b/lisp/iswitchb.el
@@ -208,7 +208,7 @@
208 (defmacro defgroup (&rest args) 208 (defmacro defgroup (&rest args)
209 nil) 209 nil)
210 (defmacro defcustom (var value doc &rest args) 210 (defmacro defcustom (var value doc &rest args)
211 (` (defvar (, var) (, value) (, doc)))))) 211 `(defvar ,var ,value ,doc))))
212 212
213;;; User Variables 213;;; User Variables
214;; 214;;
diff --git a/lisp/mail/mh-utils.el b/lisp/mail/mh-utils.el
index fa74dd89a56..bf22081b2a9 100644
--- a/lisp/mail/mh-utils.el
+++ b/lisp/mail/mh-utils.el
@@ -217,16 +217,16 @@ also show it in a separate Show window."
217 ;; If SAVE-MODIFICATION-FLAG-P is non-nil, the buffer's modification 217 ;; If SAVE-MODIFICATION-FLAG-P is non-nil, the buffer's modification
218 ;; flag is unchanged, otherwise it is cleared. 218 ;; flag is unchanged, otherwise it is cleared.
219 (setq save-modification-flag-p (car save-modification-flag-p)) ; CL style 219 (setq save-modification-flag-p (car save-modification-flag-p)) ; CL style
220 (` (prog1 220 `(prog1
221 (let ((mh-folder-updating-mod-flag (buffer-modified-p)) 221 (let ((mh-folder-updating-mod-flag (buffer-modified-p))
222 (buffer-read-only nil) 222 (buffer-read-only nil)
223 (buffer-file-name nil)) ;don't let the buffer get locked 223 (buffer-file-name nil)) ;don't let the buffer get locked
224 (prog1 224 (prog1
225 (progn 225 (progn
226 (,@ body)) 226 ,@body)
227 (mh-set-folder-modified-p mh-folder-updating-mod-flag))) 227 (mh-set-folder-modified-p mh-folder-updating-mod-flag)))
228 (,@ (if (not save-modification-flag-p) 228 ,@(if (not save-modification-flag-p)
229 '((mh-set-folder-modified-p nil))))))) 229 '((mh-set-folder-modified-p nil)))))
230 230
231(put 'with-mh-folder-updating 'lisp-indent-hook 1) 231(put 'with-mh-folder-updating 'lisp-indent-hook 1)
232 232
@@ -235,13 +235,13 @@ also show it in a separate Show window."
235 ;; Display buffer SHOW-BUFFER in other window and execute BODY in it. 235 ;; Display buffer SHOW-BUFFER in other window and execute BODY in it.
236 ;; Stronger than save-excursion, weaker than save-window-excursion. 236 ;; Stronger than save-excursion, weaker than save-window-excursion.
237 (setq show-buffer (car show-buffer)) ; CL style 237 (setq show-buffer (car show-buffer)) ; CL style
238 (` (let ((mh-in-show-buffer-saved-window (selected-window))) 238 `(let ((mh-in-show-buffer-saved-window (selected-window)))
239 (switch-to-buffer-other-window (, show-buffer)) 239 (switch-to-buffer-other-window ,show-buffer)
240 (if mh-bury-show-buffer (bury-buffer (current-buffer))) 240 (if mh-bury-show-buffer (bury-buffer (current-buffer)))
241 (unwind-protect 241 (unwind-protect
242 (progn 242 (progn
243 (,@ body)) 243 ,@body)
244 (select-window mh-in-show-buffer-saved-window))))) 244 (select-window mh-in-show-buffer-saved-window))))
245 245
246(put 'mh-in-show-buffer 'lisp-indent-hook 1) 246(put 'mh-in-show-buffer 'lisp-indent-hook 1)
247 247
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 4c5d3476ad6..46240dbabc6 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -465,25 +465,25 @@ The first parenthesized expression should match the MIME-charset name.")
465;; Perform BODY in the summary buffer 465;; Perform BODY in the summary buffer
466;; in such a way that its cursor is properly updated in its own window. 466;; in such a way that its cursor is properly updated in its own window.
467(defmacro rmail-select-summary (&rest body) 467(defmacro rmail-select-summary (&rest body)
468 (` (let ((total rmail-total-messages)) 468 `(let ((total rmail-total-messages))
469 (if (rmail-summary-displayed) 469 (if (rmail-summary-displayed)
470 (let ((window (selected-window))) 470 (let ((window (selected-window)))
471 (save-excursion 471 (save-excursion
472 (unwind-protect 472 (unwind-protect
473 (progn 473 (progn
474 (pop-to-buffer rmail-summary-buffer) 474 (pop-to-buffer rmail-summary-buffer)
475 ;; rmail-total-messages is a buffer-local var 475 ;; rmail-total-messages is a buffer-local var
476 ;; in the rmail buffer. 476 ;; in the rmail buffer.
477 ;; This way we make it available for the body 477 ;; This way we make it available for the body
478 ;; even tho the rmail buffer is not current. 478 ;; even tho the rmail buffer is not current.
479 (let ((rmail-total-messages total)) 479 (let ((rmail-total-messages total))
480 (,@ body))) 480 ,@body))
481 (select-window window)))) 481 (select-window window))))
482 (save-excursion 482 (save-excursion
483 (set-buffer rmail-summary-buffer) 483 (set-buffer rmail-summary-buffer)
484 (let ((rmail-total-messages total)) 484 (let ((rmail-total-messages total))
485 (,@ body)))) 485 ,@body)))
486 (rmail-maybe-display-summary)))) 486 (rmail-maybe-display-summary)))
487 487
488;;;; *** Rmail Mode *** 488;;;; *** Rmail Mode ***
489 489
diff --git a/lisp/mail/rnews.el b/lisp/mail/rnews.el
index 5cd36fc9af2..b1570917ee6 100644
--- a/lisp/mail/rnews.el
+++ b/lisp/mail/rnews.el
@@ -151,7 +151,7 @@ Not currently used.")
151(defmacro news-cdadr (x) (list 'cdr (list 'car (list 'cdr x)))) 151(defmacro news-cdadr (x) (list 'cdr (list 'car (list 'cdr x))))
152 152
153(defmacro news-wins (pfx index) 153(defmacro news-wins (pfx index)
154 (` (file-exists-p (concat (, pfx) "/" (int-to-string (, index)))))) 154 `(file-exists-p (concat ,pfx "/" (int-to-string ,index))))
155 155
156(defvar news-max-plausible-gap 2 156(defvar news-max-plausible-gap 2
157 "* In an rnews directory, the maximum possible gap size. 157 "* In an rnews directory, the maximum possible gap size.
@@ -166,10 +166,10 @@ An empty file does not contribute to a gap -- it ends one.")
166(defmacro news-/ (a1 a2) 166(defmacro news-/ (a1 a2)
167;; a form of / that guarantees that (/ -1 2) = 0 167;; a form of / that guarantees that (/ -1 2) = 0
168 (if (zerop (/ -1 2)) 168 (if (zerop (/ -1 2))
169 (` (/ (, a1) (, a2))) 169 `(/ ,a1 ,a2)
170 (` (if (< (, a1) 0) 170 `(if (< ,a1 0)
171 (- (/ (- (, a1)) (, a2))) 171 (- (/ (- ,a1) ,a2))
172 (/ (, a1) (, a2)))))) 172 (/ ,a1 ,a2))))
173 173
174(defun news-find-first-or-last (pfx base dirn) 174(defun news-find-first-or-last (pfx base dirn)
175 ;; first use powers of two to find a plausible ceiling 175 ;; first use powers of two to find a plausible ceiling
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 2fce1e35576..3355f6bcf5c 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -64,48 +64,48 @@
64 64
65;; Some macros are needed for `defcustom' 65;; Some macros are needed for `defcustom'
66(if (fboundp 'eval-when-compile) 66(if (fboundp 'eval-when-compile)
67 (eval-when-compile 67 (eval-when-compile
68 (defconst cperl-xemacs-p (string-match "XEmacs\\|Lucid" emacs-version)) 68 (defconst cperl-xemacs-p (string-match "XEmacs\\|Lucid" emacs-version))
69 (defmacro cperl-is-face (arg) ; Takes quoted arg 69 (defmacro cperl-is-face (arg) ; Takes quoted arg
70 (cond ((fboundp 'find-face) 70 (cond ((fboundp 'find-face)
71 (` (find-face (, arg)))) 71 `(find-face ,arg))
72 (;;(and (fboundp 'face-list) 72 (;;(and (fboundp 'face-list)
73 ;; (face-list)) 73 ;; (face-list))
74 (fboundp 'face-list) 74 (fboundp 'face-list)
75 (` (member (, arg) (and (fboundp 'face-list) 75 `(member ,arg (and (fboundp 'face-list)
76 (face-list))))) 76 (face-list))))
77 (t 77 (t
78 (` (boundp (, arg)))))) 78 `(boundp ,arg))))
79 (defmacro cperl-make-face (arg descr) ; Takes unquoted arg 79 (defmacro cperl-make-face (arg descr) ; Takes unquoted arg
80 (cond ((fboundp 'make-face) 80 (cond ((fboundp 'make-face)
81 (` (make-face (quote (, arg))))) 81 `(make-face (quote ,arg)))
82 (t 82 (t
83 (` (defconst (, arg) (quote (, arg)) (, descr)))))) 83 `(defconst ,arg (quote ,arg) ,descr))))
84 (defmacro cperl-force-face (arg descr) ; Takes unquoted arg 84 (defmacro cperl-force-face (arg descr) ; Takes unquoted arg
85 (` (progn 85 `(progn
86 (or (cperl-is-face (quote (, arg))) 86 (or (cperl-is-face (quote ,arg))
87 (cperl-make-face (, arg) (, descr))) 87 (cperl-make-face ,arg ,descr))
88 (or (boundp (quote (, arg))) ; We use unquoted variants too 88 (or (boundp (quote ,arg)) ; We use unquoted variants too
89 (defconst (, arg) (quote (, arg)) (, descr)))))) 89 (defconst ,arg (quote ,arg) ,descr))))
90 (if cperl-xemacs-p 90 (if cperl-xemacs-p
91 (defmacro cperl-etags-snarf-tag (file line) 91 (defmacro cperl-etags-snarf-tag (file line)
92 (` (progn 92 `(progn
93 (beginning-of-line 2) 93 (beginning-of-line 2)
94 (list (, file) (, line))))) 94 (list ,file ,line)))
95 (defmacro cperl-etags-snarf-tag (file line) 95 (defmacro cperl-etags-snarf-tag (file line)
96 (` (etags-snarf-tag)))) 96 `(etags-snarf-tag)))
97 (if cperl-xemacs-p 97 (if cperl-xemacs-p
98 (defmacro cperl-etags-goto-tag-location (elt) 98 (defmacro cperl-etags-goto-tag-location (elt)
99 (` ;;(progn 99 ;;(progn
100 ;; (switch-to-buffer (get-file-buffer (elt (, elt) 0))) 100 ;; (switch-to-buffer (get-file-buffer (elt (, elt) 0)))
101 ;; (set-buffer (get-file-buffer (elt (, elt) 0))) 101 ;; (set-buffer (get-file-buffer (elt (, elt) 0)))
102 ;; Probably will not work due to some save-excursion??? 102 ;; Probably will not work due to some save-excursion???
103 ;; Or save-file-position? 103 ;; Or save-file-position?
104 ;; (message "Did I get to line %s?" (elt (, elt) 1)) 104 ;; (message "Did I get to line %s?" (elt (, elt) 1))
105 (goto-line (string-to-int (elt (, elt) 1))))) 105 `(goto-line (string-to-int (elt ,elt 1))))
106 ;;) 106 ;;)
107 (defmacro cperl-etags-goto-tag-location (elt) 107 (defmacro cperl-etags-goto-tag-location (elt)
108 (` (etags-goto-tag-location (, elt))))))) 108 `(etags-goto-tag-location ,elt)))))
109 109
110(defun cperl-choose-color (&rest list) 110(defun cperl-choose-color (&rest list)
111 (let (answer) 111 (let (answer)
@@ -518,41 +518,41 @@ when syntaxifying a chunk of buffer."
518 (cperl-choose-color "orchid1" "orange")) 518 (cperl-choose-color "orchid1" "orange"))
519 519
520 (defface cperl-nonoverridable-face 520 (defface cperl-nonoverridable-face
521 (` ((((class grayscale) (background light)) 521 `((((class grayscale) (background light))
522 (:background "Gray90" :italic t :underline t)) 522 (:background "Gray90" :italic t :underline t))
523 (((class grayscale) (background dark)) 523 (((class grayscale) (background dark))
524 (:foreground "Gray80" :italic t :underline t :bold t)) 524 (:foreground "Gray80" :italic t :underline t :bold t))
525 (((class color) (background light)) 525 (((class color) (background light))
526 (:foreground "chartreuse3")) 526 (:foreground "chartreuse3"))
527 (((class color) (background dark)) 527 (((class color) (background dark))
528 (:foreground (, cperl-dark-foreground))) 528 (:foreground ,cperl-dark-foreground))
529 (t (:bold t :underline t)))) 529 (t (:bold t :underline t)))
530 "Font Lock mode face used to highlight array names." 530 "Font Lock mode face used to highlight array names."
531 :group 'cperl-faces) 531 :group 'cperl-faces)
532 532
533 (defface cperl-array-face 533 (defface cperl-array-face
534 (` ((((class grayscale) (background light)) 534 `((((class grayscale) (background light))
535 (:background "Gray90" :bold t)) 535 (:background "Gray90" :bold t))
536 (((class grayscale) (background dark)) 536 (((class grayscale) (background dark))
537 (:foreground "Gray80" :bold t)) 537 (:foreground "Gray80" :bold t))
538 (((class color) (background light)) 538 (((class color) (background light))
539 (:foreground "Blue" :background "lightyellow2" :bold t)) 539 (:foreground "Blue" :background "lightyellow2" :bold t))
540 (((class color) (background dark)) 540 (((class color) (background dark))
541 (:foreground "yellow" :background (, cperl-dark-background) :bold t)) 541 (:foreground "yellow" :background ,cperl-dark-background :bold t))
542 (t (:bold t)))) 542 (t (:bold t)))
543 "Font Lock mode face used to highlight array names." 543 "Font Lock mode face used to highlight array names."
544 :group 'cperl-faces) 544 :group 'cperl-faces)
545 545
546 (defface cperl-hash-face 546 (defface cperl-hash-face
547 (` ((((class grayscale) (background light)) 547 `((((class grayscale) (background light))
548 (:background "Gray90" :bold t :italic t)) 548 (:background "Gray90" :bold t :italic t))
549 (((class grayscale) (background dark)) 549 (((class grayscale) (background dark))
550 (:foreground "Gray80" :bold t :italic t)) 550 (:foreground "Gray80" :bold t :italic t))
551 (((class color) (background light)) 551 (((class color) (background light))
552 (:foreground "Red" :background "lightyellow2" :bold t :italic t)) 552 (:foreground "Red" :background "lightyellow2" :bold t :italic t))
553 (((class color) (background dark)) 553 (((class color) (background dark))
554 (:foreground "Red" :background (, cperl-dark-background) :bold t :italic t)) 554 (:foreground "Red" :background ,cperl-dark-background :bold t :italic t))
555 (t (:bold t :italic t)))) 555 (t (:bold t :italic t)))
556 "Font Lock mode face used to highlight hash names." 556 "Font Lock mode face used to highlight hash names."
557 :group 'cperl-faces))) 557 :group 'cperl-faces)))
558 558
@@ -883,11 +883,11 @@ the faces: please specify bold, italic, underline, shadow and box.)
883(defconst cperl-xemacs-p (string-match "XEmacs\\|Lucid" emacs-version)) 883(defconst cperl-xemacs-p (string-match "XEmacs\\|Lucid" emacs-version))
884 884
885(defmacro cperl-define-key (emacs-key definition &optional xemacs-key) 885(defmacro cperl-define-key (emacs-key definition &optional xemacs-key)
886 (` (define-key cperl-mode-map 886 `(define-key cperl-mode-map
887 (, (if xemacs-key 887 ,(if xemacs-key
888 (` (if cperl-xemacs-p (, xemacs-key) (, emacs-key))) 888 `(if cperl-xemacs-p ,xemacs-key ,emacs-key)
889 emacs-key)) 889 emacs-key)
890 (, definition)))) 890 ,definition))
891 891
892(defvar cperl-del-back-ch 892(defvar cperl-del-back-ch
893 (car (append (where-is-internal 'delete-backward-char) 893 (car (append (where-is-internal 'delete-backward-char)
@@ -986,9 +986,9 @@ the faces: please specify bold, italic, underline, shadow and box.)
986 (error nil)) 986 (error nil))
987 (if (fboundp 'ps-extend-face-list) 987 (if (fboundp 'ps-extend-face-list)
988 (defmacro cperl-ps-extend-face-list (arg) 988 (defmacro cperl-ps-extend-face-list (arg)
989 (` (ps-extend-face-list (, arg)))) 989 `(ps-extend-face-list ,arg))
990 (defmacro cperl-ps-extend-face-list (arg) 990 (defmacro cperl-ps-extend-face-list (arg)
991 (` (error "This version of Emacs has no `ps-extend-face-list'.")))) 991 `(error "This version of Emacs has no `ps-extend-face-list'.")))
992 ;; Calling `cperl-enable-font-lock' below doesn't compile on XEmacs, 992 ;; Calling `cperl-enable-font-lock' below doesn't compile on XEmacs,
993 ;; macros instead of defsubsts don't work on Emacs, so we do the 993 ;; macros instead of defsubsts don't work on Emacs, so we do the
994 ;; expansion manually. Any other suggestions? 994 ;; expansion manually. Any other suggestions?