Mercurial > emacs
changeset 34151:33df9c2e70bf
Don't quote lambdas.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 03 Dec 2000 22:11:57 +0000 |
parents | 3f40525951d5 |
children | cb678a191215 |
files | man/cc-mode.texi man/custom.texi man/faq.texi man/gnus.texi man/sending.texi |
diffstat | 5 files changed, 17 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/man/cc-mode.texi Sun Dec 03 21:41:06 2000 +0000 +++ b/man/cc-mode.texi Sun Dec 03 22:11:57 2000 +0000 @@ -611,7 +611,7 @@ @example (add-hook 'c-mode-common-hook - '(lambda () (c-toggle-auto-hungry-state 1))) + (lambda () (c-toggle-auto-hungry-state 1))) @end example
--- a/man/custom.texi Sun Dec 03 21:41:06 2000 +0000 +++ b/man/custom.texi Sun Dec 03 22:11:57 2000 +0000 @@ -1417,14 +1417,9 @@ @example (add-hook 'texinfo-mode-hook - '(lambda () - (define-key texinfo-mode-map - "\C-cp" - 'backward-paragraph) - (define-key texinfo-mode-map - "\C-cn" - 'forward-paragraph) - )) + (lambda () + (define-key texinfo-mode-map "\C-cp" 'backward-paragraph) + (define-key texinfo-mode-map "\C-cn" 'forward-paragraph))) @end example @xref{Hooks}. @@ -2167,7 +2162,7 @@ @example (add-hook 'text-mode-hook - '(lambda () (auto-fill-mode 1))) + (lambda () (auto-fill-mode 1))) @end example This shows how to add a hook function to a normal hook variable
--- a/man/faq.texi Sun Dec 03 21:41:06 2000 +0000 +++ b/man/faq.texi Sun Dec 03 22:11:57 2000 +0000 @@ -4610,9 +4610,9 @@ (rmail-reply t)) (add-hook 'rmail-mode-hook - '(lambda () - (define-key rmail-mode-map "r" 'rmail-reply-t) - (define-key rmail-mode-map "R" 'rmail-reply))) + (lambda () + (define-key rmail-mode-map "r" 'rmail-reply-t) + (define-key rmail-mode-map "R" 'rmail-reply))) @end lisp @node MIME with Emacs mail packages, Automatically starting a mail or news reader, Replying to the sender of a message, Mail and news @@ -4737,7 +4737,7 @@ @lisp (add-hook 'gnus-article-prepare-hook - '(lambda () (ununderline-region (point-min) (point-max)))) + (lambda () (ununderline-region (point-min) (point-max)))) @end lisp @node Saving a multi-part Gnus posting, Starting Gnus faster, Viewing articles with embedded underlining, Mail and news
--- a/man/gnus.texi Sun Dec 03 21:41:06 2000 +0000 +++ b/man/gnus.texi Sun Dec 03 22:11:57 2000 +0000 @@ -21015,7 +21015,7 @@ @item @example (add-hook 'gnus-exit-query-functions -'(lambda () + (lambda () (if (and (file-exists-p nnmail-spool-file) (> (nnheader-file-size nnmail-spool-file) 0)) (yes-or-no-p "New mail has arrived. Quit Gnus anyways? ")
--- a/man/sending.texi Sun Dec 03 21:41:06 2000 +0000 +++ b/man/sending.texi Sun Dec 03 22:11:57 2000 +0000 @@ -350,13 +350,13 @@ @smallexample (add-hook 'mail-setup-hook - '(lambda () - (substitute-key-definition - 'next-line 'mail-abbrev-next-line - mail-mode-map global-map) - (substitute-key-definition - 'end-of-buffer 'mail-abbrev-end-of-buffer - mail-mode-map global-map))) + (lambda () + (substitute-key-definition + 'next-line 'mail-abbrev-next-line + mail-mode-map global-map) + (substitute-key-definition + 'end-of-buffer 'mail-abbrev-end-of-buffer + mail-mode-map global-map))) @end smallexample @node Mail Mode