all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: emacs-devel@gnu.org
Subject: Man-width on terminals
Date: Thu, 08 Nov 2007 02:54:52 +0200	[thread overview]
Message-ID: <87ejf17e85.fsf@jurta.org> (raw)

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/

             reply	other threads:[~2007-11-08  0:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-08  0:54 Juri Linkov [this message]
2007-11-08  3:04 ` Man-width on terminals Robert J. Chassell
2007-11-09  0:54   ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejf17e85.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.