aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-15 14:26:07 +0000
committerGerd Moellmann1999-11-15 14:26:07 +0000
commitb787fc059e638aa08d18aa45ad30b77af50f5232 (patch)
tree876d02134baedd58285491f1cc15efa457225b44 /lisp/mail
parent8e42f594dde4fa530580bd0bff2e9921dec3ce9e (diff)
downloademacs-b787fc059e638aa08d18aa45ad30b77af50f5232.tar.gz
emacs-b787fc059e638aa08d18aa45ad30b77af50f5232.zip
Use new backquote syntax.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/mh-utils.el34
-rw-r--r--lisp/mail/rmail.el38
-rw-r--r--lisp/mail/rnews.el10
3 files changed, 41 insertions, 41 deletions
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