]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/help-fns.el (describe-variable): Fix message for terminal-local vars.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 27 Jun 2011 21:39:03 +0000 (17:39 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 27 Jun 2011 21:39:03 +0000 (17:39 -0400)
lisp/ChangeLog
lisp/help-fns.el

index 170939cfc4b7a994f35d1f74be5064fe5cc10745..c13fe48a730376b14d78c6e82b00389a8847d551 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * help-fns.el (describe-variable): Fix message for terminal-local vars.
+
 2011-06-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * net/ange-ftp.el: Allow loading .gz files (Bug#6923).
index 1cd62c1dfa45fb05717ddeef289b68b8c407bb39..b13e6a77d5d929c0901db9856379285764a73b05 100644 (file)
@@ -731,12 +731,18 @@ it is displayed along with the global value."
                          (delete-region (1- from) from)))))))
            (terpri)
            (when locus
-             (if (bufferp locus)
-                 (princ (format "%socal in buffer %s; "
-                                (if (get variable 'permanent-local)
-                                    "Permanently l" "L")
-                                (buffer-name)))
-               (princ (format "It is a frame-local variable; ")))
+             (cond
+               ((bufferp locus)
+                (princ (format "%socal in buffer %s; "
+                               (if (get variable 'permanent-local)
+                                   "Permanently l" "L")
+                               (buffer-name))))
+               ((framep locus)
+                (princ (format "It is a frame-local variable; ")))
+               ((terminal-live-p locus)
+                (princ (format "It is a terminal-local variable; ")))
+               (t
+                (princ (format "It is local to %S" locus))))
              (if (not (default-boundp variable))
                  (princ "globally void")
                (let ((val (default-value variable)))