unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* same-window-regexps for M-x man
@ 2011-03-10 19:30 Dmitriy Igrishin
  2011-03-10 20:02 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitriy Igrishin @ 2011-03-10 19:30 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

Hey all,

Somebody can explain why the code below does not work
as expected ?

(add-to-list 'same-window-regexps "\\`\\*Man.*\\*\\'")
nor
(add-to-list 'same-window-regexps "\\*Man.*\\*")

does not force display man pages with M-x man
in the same window (as expected).

I am totally annoyed to switch to *Man buffers for C-x 1 when
I working in shell mode. I found it more naturally to view
man pages in the window of the shell mode (as in Un*x shell).

Please, any workaround (solution)?

-- 
// Dmitriy.

[-- Attachment #2: Type: text/html, Size: 639 bytes --]

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

* Re: same-window-regexps for M-x man
  2011-03-10 19:30 same-window-regexps for M-x man Dmitriy Igrishin
@ 2011-03-10 20:02 ` Eli Zaretskii
  2011-03-10 20:19   ` Dmitriy Igrishin
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2011-03-10 20:02 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Thu, 10 Mar 2011 22:30:42 +0300
> From: Dmitriy Igrishin <dmitigr@gmail.com>
> 
> Somebody can explain why the code below does not work
> as expected ?
> 
> (add-to-list 'same-window-regexps "\\`\\*Man.*\\*\\'")
> nor
> (add-to-list 'same-window-regexps "\\*Man.*\\*")
> 
> does not force display man pages with M-x man
> in the same window (as expected).

Because "M-x man" doesn't use display-buffer?

> Please, any workaround (solution)?

Try customizing Man-notify-method to the value `pushy'.



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

* Re: same-window-regexps for M-x man
  2011-03-10 20:02 ` Eli Zaretskii
@ 2011-03-10 20:19   ` Dmitriy Igrishin
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitriy Igrishin @ 2011-03-10 20:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]

2011/3/10 Eli Zaretskii <eliz@gnu.org>

> > Date: Thu, 10 Mar 2011 22:30:42 +0300
> > From: Dmitriy Igrishin <dmitigr@gmail.com>
> >
> > Somebody can explain why the code below does not work
> > as expected ?
> >
> > (add-to-list 'same-window-regexps "\\`\\*Man.*\\*\\'")
> > nor
> > (add-to-list 'same-window-regexps "\\*Man.*\\*")
> >
> > does not force display man pages with M-x man
> > in the same window (as expected).
>
> Because "M-x man" doesn't use display-buffer?
>
> > Please, any workaround (solution)?
>
> Try customizing Man-notify-method to the value `pushy'.
>
To my blame I was confused by same-window-regexps
and didn't tried to figure out this variable myself...
Thank you very much!

PS. Maybe it should be documented (noticed) in the documentation
here
http://www.gnu.org/software/emacs/manual/html_node/emacs/Force-Same-Window.html
?
Because I personally considered that the M-x man affected
by same-window-regexps as M-x shell after reading 25.4 chapter
of the doc...


-- 
// Dmitriy.

[-- Attachment #2: Type: text/html, Size: 1650 bytes --]

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

end of thread, other threads:[~2011-03-10 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 19:30 same-window-regexps for M-x man Dmitriy Igrishin
2011-03-10 20:02 ` Eli Zaretskii
2011-03-10 20:19   ` Dmitriy Igrishin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).