diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-09-30 16:02:22 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-10-01 15:28:14 +0200 |
commit | 6cbc253aa0580e2f242551500764bba9780e669d (patch) | |
tree | 68ef7b95a92c69848199a0f2933b9d61cec85cc2 /lisp/textmodes | |
parent | 6a4b931c215c5c449833c784a9214f727d641a37 (diff) | |
download | emacs-6cbc253aa0580e2f242551500764bba9780e669d.tar.gz emacs-6cbc253aa0580e2f242551500764bba9780e669d.tar.bz2 emacs-6cbc253aa0580e2f242551500764bba9780e669d.zip |
Don't recommend quoting lambdas
* doc/misc/calc.texi (Symbolic Lisp Functions):
* doc/misc/cl.texi (Obsolete Lexical Binding):
* lisp/master.el:
* lisp/progmodes/sql.el (sql-interactive-mode):
* lisp/textmodes/flyspell.el (flyspell-mode):
* lisp/textmodes/ispell.el (ispell-message):
* lisp/textmodes/table.el: Doc fixes; don't recommend quoting
lambdas.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/flyspell.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/ispell.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/table.el | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index e862e354b5c..65702d081f1 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -524,7 +524,7 @@ invoking `ispell-change-dictionary'. Consider using the `ispell-parser' to check your text. For instance consider adding: -\(add-hook \\='tex-mode-hook (function (lambda () (setq ispell-parser \\='tex)))) +\(add-hook \\='tex-mode-hook (lambda () (setq ispell-parser \\='tex))) in your init file. \\[flyspell-region] checks all words inside a region. diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index a99dfe40670..05a4bd058c4 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -3937,7 +3937,7 @@ in your init file: You can bind this to the key C-c i in GNUS or mail by adding to `news-reply-mode-hook' or `mail-mode-hook' the following lambda expression: - (function (lambda () (local-set-key \"\\C-ci\" \\='ispell-message)))" + (lambda () (local-set-key \"\\C-ci\" \\='ispell-message))" (interactive) (save-excursion (goto-char (point-min)) diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index c7bf687a9e1..391e7570b5f 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el @@ -339,8 +339,8 @@ ;; When using `table-cell-map-hook' do not use `local-set-key'. ;; ;; (add-hook 'table-cell-map-hook -;; (function (lambda () -;; (local-set-key [<key sequence>] '<function>)))) +;; (lambda () +;; (local-set-key [<key sequence>] '<function>))) ;; ;; Adding the above to your init file is a common way to customize a ;; mode specific keymap. However it does not work for this package. @@ -349,8 +349,8 @@ ;; explicitly. The correct way of achieving above task is: ;; ;; (add-hook 'table-cell-map-hook -;; (function (lambda () -;; (define-key table-cell-map [<key sequence>] '<function>)))) +;; (lambda () +;; (define-key table-cell-map [<key sequence>] '<function>))) ;; ;; ----- ;; Menu: |