From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: man.el
Date: Fri, 20 Feb 2004 10:56:47 -0700 [thread overview]
Message-ID: <40364A5F.1020305@yahoo.com> (raw)
In-Reply-To: E1AuAuP-0001lX-2L@fencepost.gnu.org
Richard Stallman wrote:
> Regarding the change below, why is the current window's width more
> likely to be correct than the frame's width? (Neither one is
> guaranteed to be right.)
If you try to guess based on the value of Man-notify-method (which
defaults to friendly), it looks like window-width is at least as likely
to be correct (disregarding special-display-regexps etc.):
(defun Man-window-width ()
"Return the expected width of the window used to display Un*x manual pages.
See `Man-notify-method'."
;; see Man-notify-when-ready:
(cond ((eq Man-notify-method 'newframe) ; make-frame
(or (assq 'width Man-frame-parameters)
(assq 'width default-frame-alist)
(frame-width)))
((eq Man-notify-method 'pushy) ; switch-to-buffer
(window-width))
((eq Man-notify-method 'bully) ; pop-to-buffer, delete-other-windows
(frame-width))
((and (eq Man-notify-method 'aggressive) ; pop-to-buffer
pop-up-frames)
(or (assq 'width pop-up-frame-alist)
(assq 'width default-frame-alist)
(frame-width)))
((memq Man-notify-method '(aggressive friendly)) ; display-buffer
;; here we ignore special-display-regexps etc.
(window-width))
((memq Man-notify-method '(polite quiet meek)) ; ?
;; depends on how the user chooses to display the buffer, e.g
;; C-x b, C-x 4 b, C-x 5 b
(window-width))
(t ; same as meek
(window-width))))
--
Kevin Rodgers
next prev parent reply other threads:[~2004-02-20 17:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-20 13:41 man.el Richard Stallman
2004-02-20 16:49 ` man.el Kim F. Storm
2004-02-20 17:56 ` Kevin Rodgers [this message]
2004-02-21 0:49 ` man.el Alex Schroeder
2004-02-21 9:56 ` man.el Eli Zaretskii
2004-02-22 0:32 ` man.el Juri Linkov
2004-02-22 6:35 ` man.el Eli Zaretskii
2004-02-22 19:02 ` man.el Juri Linkov
2004-02-21 1:04 ` man.el Juri Linkov
2004-02-21 10:04 ` man.el Eli Zaretskii
2004-02-22 22:41 ` man.el Richard Stallman
2004-03-18 7:03 ` man.el 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=40364A5F.1020305@yahoo.com \
--to=ihs_4664@yahoo.com \
/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.