diff options
| author | Daniel Pfeiffer | 2004-10-13 18:54:21 +0000 |
|---|---|---|
| committer | Daniel Pfeiffer | 2004-10-13 18:54:21 +0000 |
| commit | cb32aefcd40eef863c52c25462fd1c0b90e45393 (patch) | |
| tree | c6b18f596cbdb69cc0d60ff8341ef257b861b5d2 | |
| parent | bea55b5bbe11dcb91e5d99f2312d2ab728530a56 (diff) | |
| download | emacs-cb32aefcd40eef863c52c25462fd1c0b90e45393.tar.gz emacs-cb32aefcd40eef863c52c25462fd1c0b90e45393.zip | |
(describe-variable): Use it to make "below" a hyperlink.
| -rw-r--r-- | lisp/help-fns.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index d193ad344f5..57b0b39767e 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -552,9 +552,15 @@ it is displayed along with the global value." | |||
| 552 | (forward-line 1) | 552 | (forward-line 1) |
| 553 | (forward-sexp 1) | 553 | (forward-sexp 1) |
| 554 | (delete-region (point) (progn (end-of-line) (point))) | 554 | (delete-region (point) (progn (end-of-line) (point))) |
| 555 | (insert " value is shown below.\n\n") | ||
| 556 | (save-excursion | 555 | (save-excursion |
| 557 | (insert "\n\nValue:")))) | 556 | (insert "\n\nValue:") |
| 557 | (set (make-local-variable 'help-button-cache) | ||
| 558 | (point-marker))) | ||
| 559 | (insert " value is shown ") | ||
| 560 | (insert-button "below" | ||
| 561 | 'action help-button-cache | ||
| 562 | 'help-echo "mouse-2, RET: show value") | ||
| 563 | (insert ".\n\n"))) | ||
| 558 | ;; Add a note for variables that have been make-var-buffer-local. | 564 | ;; Add a note for variables that have been make-var-buffer-local. |
| 559 | (when (and (local-variable-if-set-p variable) | 565 | (when (and (local-variable-if-set-p variable) |
| 560 | (or (not (local-variable-p variable)) | 566 | (or (not (local-variable-p variable)) |