all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Man-width on terminals
@ 2007-11-08  0:54 Juri Linkov
  2007-11-08  3:04 ` Robert J. Chassell
  0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2007-11-08  0:54 UTC (permalink / raw)
  To: emacs-devel

Terminals don't necessarily have 80 columns nowadays but man.el still
limits the width of the formatted man pages to 80 columns on non-window
systems, and it's impossible to override this with an user option.

I propose to remove this restriction that treats terminals as a special case,
and to allow terminals using all available horizontal space (defined by
`window-width').  This also allows using an existing user option `Man-width'
to define any other desired width equally on terminals and window systems:

Index: lisp/man.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/man.el,v
retrieving revision 1.172
diff -u -w -b -r1.172 man.el
--- lisp/man.el	13 Sep 2007 08:04:38 -0000	1.172
+++ lisp/man.el	8 Nov 2007 00:54:16 -0000
@@ -763,7 +764,6 @@
 	;;               minal (using an ioctl(2) if available, the value of
 	;;               $COLUMNS,  or falling back to 80 characters if nei-
 	;;               ther is available).
-	(if window-system
 	    (unless (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
@@ -773,7 +773,7 @@
 				  ((and (integerp Man-width) (> Man-width 0))
 				   Man-width)
 				  (Man-width (frame-width))
-				  ((window-width)))))))
+			      ((window-width))))))
 	(setenv "GROFF_NO_SGR" "1")
 	(if (fboundp 'start-process)
 	    (set-process-sentinel

-- 
Juri Linkov
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-09  0:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-08  0:54 Man-width on terminals Juri Linkov
2007-11-08  3:04 ` Robert J. Chassell
2007-11-09  0:54   ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.