summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-08-05 16:41:12 +0800
committerChong Yidong <cyd@gnu.org>2012-08-05 16:41:12 +0800
commitf0422feb64518e6a787346fa934ad1e1744435c6 (patch)
treedb529b5659c204cf50d4577fa7921b72466f9e35 /lisp/help-mode.el
parente5d9c0d111daaff5d1a6ca26ebde4f926da5e410 (diff)
downloademacs-f0422feb64518e6a787346fa934ad1e1744435c6.tar.gz
Improvements to local-variable reporting in `describe-variable'.
* lisp/help-fns.el (describe-variable): Add hyperlink for directory-local variables files. Improve buffer-local and permanent-local reporting; suggested by MON KEY. * lisp/help-mode.el (help-dir-local-var-def): New button type. Fixes: debbugs:6644
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 7b6490b6b13..9924300647c 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -265,6 +265,15 @@ The format is (FUNCTION ARGS...).")
:supertype 'help-xref
'help-function 'customize-create-theme
'help-echo (purecopy "mouse-2, RET: edit this theme file"))
+
+(define-button-type 'help-dir-local-var-def
+ :supertype 'help-xref
+ 'help-function (lambda (var &optional file)
+ ;; FIXME: this should go to the point where the
+ ;; local variable was defined.
+ (find-file file))
+ 'help-echo (purecopy "mouse-2, RET: open directory-local variables file"))
+
(defvar bookmark-make-record-function)