diff options
| author | Stefan Monnier | 2011-06-27 17:39:03 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-06-27 17:39:03 -0400 |
| commit | e2b551c50e6444892055652b0ba6f3f4f96917f7 (patch) | |
| tree | a38988f5962ca1a6b342c2b8874e7191759a695a | |
| parent | 8982b23153305ada35825abfb6bbf0e9e3c9e985 (diff) | |
| download | emacs-e2b551c50e6444892055652b0ba6f3f4f96917f7.tar.gz emacs-e2b551c50e6444892055652b0ba6f3f4f96917f7.zip | |
* lisp/help-fns.el (describe-variable): Fix message for terminal-local vars.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/help-fns.el | 18 |
2 files changed, 16 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 170939cfc4b..c13fe48a730 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-06-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * help-fns.el (describe-variable): Fix message for terminal-local vars. | ||
| 4 | |||
| 1 | 2011-06-27 Katsumi Yamaoka <yamaoka@jpl.org> | 5 | 2011-06-27 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 6 | ||
| 3 | * net/ange-ftp.el: Allow loading .gz files (Bug#6923). | 7 | * net/ange-ftp.el: Allow loading .gz files (Bug#6923). |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 1cd62c1dfa4..b13e6a77d5d 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -731,12 +731,18 @@ it is displayed along with the global value." | |||
| 731 | (delete-region (1- from) from))))))) | 731 | (delete-region (1- from) from))))))) |
| 732 | (terpri) | 732 | (terpri) |
| 733 | (when locus | 733 | (when locus |
| 734 | (if (bufferp locus) | 734 | (cond |
| 735 | (princ (format "%socal in buffer %s; " | 735 | ((bufferp locus) |
| 736 | (if (get variable 'permanent-local) | 736 | (princ (format "%socal in buffer %s; " |
| 737 | "Permanently l" "L") | 737 | (if (get variable 'permanent-local) |
| 738 | (buffer-name))) | 738 | "Permanently l" "L") |
| 739 | (princ (format "It is a frame-local variable; "))) | 739 | (buffer-name)))) |
| 740 | ((framep locus) | ||
| 741 | (princ (format "It is a frame-local variable; "))) | ||
| 742 | ((terminal-live-p locus) | ||
| 743 | (princ (format "It is a terminal-local variable; "))) | ||
| 744 | (t | ||
| 745 | (princ (format "It is local to %S" locus)))) | ||
| 740 | (if (not (default-boundp variable)) | 746 | (if (not (default-boundp variable)) |
| 741 | (princ "globally void") | 747 | (princ "globally void") |
| 742 | (let ((val (default-value variable))) | 748 | (let ((val (default-value variable))) |