]> git.eshelyaron.com Git - emacs.git/commitdiff
(Man-getpage-in-background): When running under a window-system, ignore $MANWIDTH...
authorSam Steingold <sds@gnu.org>
Fri, 16 Dec 2011 03:14:07 +0000 (22:14 -0500)
committerSam Steingold <sds@gnu.org>
Fri, 16 Dec 2011 03:14:07 +0000 (22:14 -0500)
lisp/ChangeLog
lisp/man.el

index e718222e01b4cec0c12ab1241cefcf0f658f64f9..a07d4fa2cdebf972e2f575fab7196310ca2799df 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-13  Sam Steingold  <sds@gnu.org>
+
+       * man.el (Man-getpage-in-background): When running under a
+       window-system, ignore $MANWIDTH and $COLUMNS.
+
 2011-12-15  Kenichi Handa  <handa@m17n.org>
 
        * language/ethio-util.el: Change coding tag to utf-8-emacs.
index aeba3327c405da0a19f29ce86a868908b43c7df1..3cdbdddb04448935223e112e6e1509816930cb65 100644 (file)
@@ -933,7 +933,8 @@ Return the buffer in which the manpage will appear."
        ;;               minal (using an ioctl(2) if available, the value of
        ;;               $COLUMNS,  or falling back to 80 characters if nei-
        ;;               ther is available).
-       (unless (or (getenv "MANWIDTH") (getenv "COLUMNS"))
+       (when (or window-system
+                  (not (or (getenv "MANWIDTH") (getenv "COLUMNS"))))
          ;; This isn't strictly correct, since we don't know how
          ;; the page will actually be displayed, but it seems
          ;; reasonable.