help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: same-window-regexps for M-x man


From: Dmitriy Igrishin
Subject: Re: same-window-regexps for M-x man
Date: Thu, 10 Mar 2011 23:19:28 +0300



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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]