+2002-07-12 John Paul Wallington <jpw@shootybangbang.com>
+
+ * help-fns.el (describe-variable): Mention if the variable is an
+ alias.
+
2002-07-12 Kenichi Handa <handa@etl.go.jp>
* international/mule-cmds.el (locale-language-names): Change "mk"
(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