aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2002-07-12 16:56:03 +0000
committerJuanma Barranquero2002-07-12 16:56:03 +0000
commitd00a3408911135f6349e0b96af0ae51757b8f8f7 (patch)
treeea52b68456b29622fe34518b1322630477fe4f58
parent120034b30905a743746f8de9ebc59036c4c5d92e (diff)
downloademacs-d00a3408911135f6349e0b96af0ae51757b8f8f7.tar.gz
emacs-d00a3408911135f6349e0b96af0ae51757b8f8f7.zip
(describe-variable): Put `defvaralias' info before the documentation (patch from
John Paul Wallington <jpw@shootybangbang.com>). Remove useless "Documentation:" string.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/help-fns.el20
2 files changed, 12 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e93b2cfd2a4..00e4a5e9d65 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12002-07-12 Juanma Barranquero <lektu@terra.es> 12002-07-12 Juanma Barranquero <lektu@terra.es>
2 2
3 * help-fns.el (describe-variable): Put `defvaralias' info before the
4 documentation (patch from John Paul Wallington
5 <jpw@shootybangbang.com>). Remove useless "Documentation:" string.
6
3 * timer.el (timer-set-time-with-usecs): Fix documentation. Simplify 7 * timer.el (timer-set-time-with-usecs): Fix documentation. Simplify
4 extraction of time data. 8 extraction of time data.
5 9
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index d4daa2fa11c..b6c9ecd456f 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -426,8 +426,14 @@ it is displayed along with the global value."
426 (save-excursion 426 (save-excursion
427 (forward-line -1) 427 (forward-line -1)
428 (insert "Automatically becomes buffer-local when set in any fashion.\n")))) 428 (insert "Automatically becomes buffer-local when set in any fashion.\n"))))
429 (princ "Documentation:") 429 ;; Mention if it's an alias
430 (terpri) 430 (let ((alias (condition-case nil
431 (indirect-variable variable)
432 (error variable))))
433 (unless (eq alias variable)
434 (princ (format "This variable is an alias for `%s'." alias))
435 (terpri)
436 (terpri)))
431 (let ((obsolete (get variable 'byte-obsolete-variable))) 437 (let ((obsolete (get variable 'byte-obsolete-variable)))
432 (when obsolete 438 (when obsolete
433 (princ "This variable is obsolete") 439 (princ "This variable is obsolete")
@@ -438,16 +444,6 @@ it is displayed along with the global value."
438 (terpri))) 444 (terpri)))
439 (let ((doc (documentation-property variable 'variable-documentation))) 445 (let ((doc (documentation-property variable 'variable-documentation)))
440 (princ (or doc "Not documented as a variable."))) 446 (princ (or doc "Not documented as a variable.")))
441
442 ;; Mention if the variable is an alias.
443 (let ((alias (condition-case nil
444 (indirect-variable variable)
445 (error variable))))
446 (unless (eq alias variable)
447 (terpri)
448 (terpri)
449 (princ (format "This variable is an alias for `%s'." alias))))
450
451 ;; Make a link to customize if this variable can be customized. 447 ;; Make a link to customize if this variable can be customized.
452 ;; Note, it is not reliable to test only for a custom-type property 448 ;; Note, it is not reliable to test only for a custom-type property
453 ;; because those are only present after the var's definition 449 ;; because those are only present after the var's definition