Mercurial > hg > xemacs-beta
diff lisp/help.el @ 5368:ed74d2ca7082
Use ', not #', when a given symbol may not have a function binding at read time
2011-03-10 Aidan Kehoe <kehoea@parhasard.net>
* cmdloop.el (yes-or-no-p):
* cmdloop.el (y-or-n-p):
* descr-text.el (describe-char):
* diagnose.el (show-memory-usage):
* diagnose.el (show-object-memory-usage-stats):
* diagnose.el (show-mc-alloc-memory-usage):
* diagnose.el (show-gc-stats):
* faces.el (face-font-instance):
* gtk-font-menu.el (gtk-reset-device-font-menus):
* help.el (help-symbol-function-context-menu):
* help.el (help-symbol-variable-context-menu):
* help.el (help-symbol-function-and-variable-context-menu):
* help.el (help-find-source-or-scroll-up):
* help.el (help-mouse-find-source-or-track):
* help.el (temp-buffer-resize-mode):
* minibuf.el (mouse-read-file-name-1):
* obsolete.el (find-non-ascii-charset-string):
* obsolete.el (find-non-ascii-charset-region):
* occur.el (occur-engine):
* paragraphs.el (forward-paragraph):
* paragraphs.el (forward-sentence):
* select.el (activate-region-as-selection):
* select.el (select-make-extent-for-selection):
* simple.el (zmacs-make-extent-for-region):
Use quote, not function, for quoting symbols that may not be
fboundp at the point they are read (again, a style issue, since
Common Lisp throws an error on this, but we don't, and have no
plans to.)
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 10 Mar 2011 18:51:15 +0000 |
parents | f00192e1cd49 |
children | ac37a5f7e5be |
line wrap: on
line diff
--- a/lisp/help.el Tue Mar 08 23:57:21 2011 +0000 +++ b/lisp/help.el Thu Mar 10 18:51:15 2011 +0000 @@ -1300,14 +1300,14 @@ (defvar help-symbol-function-context-menu '(["View %_Documentation" (help-symbol-run-function 'describe-function)] ["Find %_Function Source" (help-symbol-run-function 'find-function) - (fboundp #'find-function)] + (fboundp 'find-function)] ["Find %_Tag" (help-symbol-run-function 'find-tag)] )) (defvar help-symbol-variable-context-menu '(["View %_Documentation" (help-symbol-run-function 'describe-variable)] ["Find %_Variable Source" (help-symbol-run-function 'find-variable) - (fboundp #'find-variable)] + (fboundp 'find-variable)] ["Find %_Tag" (help-symbol-run-function 'find-tag)] )) @@ -1317,9 +1317,9 @@ ["View Variable D%_ocumentation" (help-symbol-run-function 'describe-variable)] ["Find %_Function Source" (help-symbol-run-function 'find-function) - (fboundp #'find-function)] + (fboundp 'find-function)] ["Find %_Variable Source" (help-symbol-run-function 'find-variable) - (fboundp #'find-variable)] + (fboundp 'find-variable)] ["Find %_Tag" (help-symbol-run-function 'find-tag)] )) @@ -1858,12 +1858,12 @@ "Follow any cross reference to source code; if none, scroll up. " (interactive "d") (let ((e (extent-at pos nil 'find-function-symbol))) - (if (and-fboundp #'find-function e) - (with-fboundp #'find-function + (if (and-fboundp 'find-function e) + (with-fboundp 'find-function (find-function (extent-property e 'find-function-symbol))) (setq e (extent-at pos nil 'find-variable-symbol)) - (if (and-fboundp #'find-variable e) - (with-fboundp #'find-variable + (if (and-fboundp 'find-variable e) + (with-fboundp 'find-variable (find-variable (extent-property e 'find-variable-symbol))) (scroll-up 1))))) @@ -1873,12 +1873,12 @@ (interactive "e") (mouse-set-point event) (let ((e (extent-at (point) nil 'find-function-symbol))) - (if (and-fboundp #'find-function e) - (with-fboundp #'find-function + (if (and-fboundp 'find-function e) + (with-fboundp 'find-function (find-function (extent-property e 'find-function-symbol))) (setq e (extent-at (point) nil 'find-variable-symbol)) - (if (and-fboundp #'find-variable e) - (with-fboundp #'find-variable + (if (and-fboundp 'find-variable e) + (with-fboundp 'find-variable (find-variable (extent-property e 'find-variable-symbol))) (mouse-track event)))))