]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Put `defvaralias' info before the documentation (patch from
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 12 Jul 2002 16:56:03 +0000 (16:56 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 12 Jul 2002 16:56:03 +0000 (16:56 +0000)
John Paul Wallington <jpw@shootybangbang.com>). Remove useless "Documentation:"
string.

lisp/ChangeLog
lisp/help-fns.el

index e93b2cfd2a487c6ebde6cb46f20a9377386caf6e..00e4a5e9d650b0e4f3263c03fb9b1ad0d6aac90e 100644 (file)
@@ -1,5 +1,9 @@
 2002-07-12  Juanma Barranquero  <lektu@terra.es>
 
+       * help-fns.el (describe-variable): Put `defvaralias' info before the
+       documentation (patch from John Paul Wallington
+       <jpw@shootybangbang.com>). Remove useless "Documentation:" string.
+
        * timer.el (timer-set-time-with-usecs): Fix documentation. Simplify
        extraction of time data.
 
index d4daa2fa11c265b4d00ff8ae3db7fc4901839cdd..b6c9ecd456f4a3623e2e9f566e1414b8d42ec4d0 100644 (file)
@@ -426,8 +426,14 @@ it is displayed along with the global value."
                (save-excursion
                  (forward-line -1)
                  (insert "Automatically becomes buffer-local when set in any fashion.\n"))))
-           (princ "Documentation:")
-           (terpri)
+           ;; Mention if it's an alias
+            (let ((alias (condition-case nil
+                             (indirect-variable variable)
+                           (error variable))))
+              (unless (eq alias variable)
+                (princ (format "This variable is an alias for `%s'." alias))
+                (terpri)
+                (terpri)))
            (let ((obsolete (get variable 'byte-obsolete-variable)))
              (when obsolete
                (princ "This variable is obsolete")
@@ -438,16 +444,6 @@ it is displayed along with the global value."
                (terpri)))
            (let ((doc (documentation-property variable 'variable-documentation)))
              (princ (or doc "Not documented as a variable.")))
-           
-           ;; Mention if the variable is an alias.
-           (let ((alias (condition-case nil
-                            (indirect-variable variable)
-                          (error variable))))
-             (unless (eq alias variable)
-               (terpri)
-               (terpri)
-               (princ (format "This variable is an alias for `%s'." alias))))
-           
            ;; Make a link to customize if this variable can be customized.
            ;; Note, it is not reliable to test only for a custom-type property
            ;; because those are only present after the var's definition