aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-09-27 00:27:21 +0000
committerStefan Monnier2009-09-27 00:27:21 +0000
commitce9a0ccb72711855dfd994d0500c01e4417d09d5 (patch)
tree8839de8cf90d6bb6b8b2b326b0746fcc6bb5ed70
parent607b83077fbf53cfc8b44f4341b0e937ac601a82 (diff)
downloademacs-ce9a0ccb72711855dfd994d0500c01e4417d09d5.tar.gz
emacs-ce9a0ccb72711855dfd994d0500c01e4417d09d5.zip
* help.el (help-for-help-internal): Don't purecopy the text (bug#4560).
* isearch.el (isearch-help-for-help-internal): Purecopy the second arg. * help-macro.el (make-help-screen): Avoid using an ambiguous function definition where the docstring could be taken for the return value.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/help-macro.el2
-rw-r--r--lisp/help.el6
-rw-r--r--lisp/isearch.el2
4 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9140b96cf8e..9d12219081f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12009-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * help.el (help-for-help-internal): Don't purecopy the text (bug#4560).
4 * isearch.el (isearch-help-for-help-internal): Purecopy the second arg.
5 * help-macro.el (make-help-screen): Avoid using an ambiguous function
6 definition where the docstring could be taken for the return value.
7
12009-09-26 Glenn Morris <rgm@gnu.org> 82009-09-26 Glenn Morris <rgm@gnu.org>
2 9
3 * mail/rmailmm.el (rmail-mime-show-images, rmail-mime-bulk-handler): 10 * mail/rmailmm.el (rmail-mime-show-images, rmail-mime-bulk-handler):
diff --git a/lisp/help-macro.el b/lisp/help-macro.el
index c920ecbf43b..802eb54916d 100644
--- a/lisp/help-macro.el
+++ b/lisp/help-macro.el
@@ -90,7 +90,7 @@ When FNAME finally does get a command, it executes that command
90and then returns." 90and then returns."
91 (let ((doc-fn (intern (concat (symbol-name fname) "-doc")))) 91 (let ((doc-fn (intern (concat (symbol-name fname) "-doc"))))
92 `(progn 92 `(progn
93 (defun ,doc-fn () ,help-text) 93 (defun ,doc-fn () ,help-text nil)
94 (defun ,fname () 94 (defun ,fname ()
95 "Help command." 95 "Help command."
96 (interactive) 96 (interactive)
diff --git a/lisp/help.el b/lisp/help.el
index 25703fba920..8b5efc88d8d 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -203,7 +203,9 @@ specifies what to do when the user exits the help buffer."
203;; It can't find this, but nobody will look. 203;; It can't find this, but nobody will look.
204(make-help-screen help-for-help-internal 204(make-help-screen help-for-help-internal
205 (purecopy "Type a help option: [abcCdefFgiIkKlLmnprstvw.] C-[cdefmnoptw] or ?") 205 (purecopy "Type a help option: [abcCdefFgiIkKlLmnprstvw.] C-[cdefmnoptw] or ?")
206 (purecopy 206 ;; Don't purecopy this one, because it's not evaluated (it's
207 ;; directly used as a docstring in a function definition, so it'll
208 ;; be moved to the DOC file anyway: no need for purecopying it).
207 "You have typed %THIS-KEY%, the help character. Type a Help option: 209 "You have typed %THIS-KEY%, the help character. Type a Help option:
208\(Use SPC or DEL to scroll through this text. Type \\<help-map>\\[help-quit] to exit the Help command.) 210\(Use SPC or DEL to scroll through this text. Type \\<help-map>\\[help-quit] to exit the Help command.)
209 211
@@ -248,7 +250,7 @@ C-n News of recent Emacs changes.
248C-o Emacs ordering and distribution information. 250C-o Emacs ordering and distribution information.
249C-p Info about known Emacs problems. 251C-p Info about known Emacs problems.
250C-t Emacs TODO list. 252C-t Emacs TODO list.
251C-w Information on absence of warranty for GNU Emacs.") 253C-w Information on absence of warranty for GNU Emacs."
252 help-map) 254 help-map)
253 255
254 256
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 752746f09c2..bf2f0738d97 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -347,7 +347,7 @@ A value of nil means highlight all matches."
347(eval-when-compile (require 'help-macro)) 347(eval-when-compile (require 'help-macro))
348 348
349(make-help-screen isearch-help-for-help-internal 349(make-help-screen isearch-help-for-help-internal
350 "Type a help option: [bkm] or ?" 350 (purecopy "Type a help option: [bkm] or ?")
351 "You have typed %THIS-KEY%, the help character. Type a Help option: 351 "You have typed %THIS-KEY%, the help character. Type a Help option:
352\(Type \\<help-map>\\[help-quit] to exit the Help command.) 352\(Type \\<help-map>\\[help-quit] to exit the Help command.)
353 353