]> code.delx.au - gnu-emacs/blobdiff - lisp/help-fns.el
(info-insert-file-contents): Inhibit jka-compr messages, which can be pretty annoying
[gnu-emacs] / lisp / help-fns.el
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)))