From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitriy Igrishin Newsgroups: gmane.emacs.help Subject: Re: same-window-regexps for M-x man Date: Thu, 10 Mar 2011 23:19:28 +0300 Message-ID: References: <83aah2vj5m.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747af5af8e35c049e268f2a X-Trace: dough.gmane.org 1299788423 1071 80.91.229.12 (10 Mar 2011 20:20:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 20:20:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 21:20:16 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxmL1-0002KZ-I0 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2011 21:20:14 +0100 Original-Received: from localhost ([127.0.0.1]:35236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxmKu-0006fS-UL for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2011 15:19:53 -0500 Original-Received: from [140.186.70.92] (port=51709 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxmKa-0006fJ-Uu for help-gnu-emacs@gnu.org; Thu, 10 Mar 2011 15:19:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxmKZ-0001PL-MA for help-gnu-emacs@gnu.org; Thu, 10 Mar 2011 15:19:32 -0500 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:63363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxmKX-0001Og-0X; Thu, 10 Mar 2011 15:19:29 -0500 Original-Received: by gwaa12 with SMTP id a12so791578gwa.0 for ; Thu, 10 Mar 2011 12:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=t3TxCoNF95rftClMX6XdOVrrSgYSFzWoiAwKsHELAXI=; b=NxPhAghA4MISwpmCTXsL2Hre4tlKH4qh8lvtGGS86fB9A/ayo3iHoqhixN0UeB8VPm 422OlZC0peyIvuOrEkkYVUSEfMiESVT6iT7DGr8aBtDP4GgfL58I62BlzxTJxZKi3PlS zEfC6OYAqQtY22Lr2yxzLF8/4/BHpbwusUmnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=sY+P0QDYdKIEEvWk6CyWwOz5Frzr7xJKaR8uaesXDP7oRtZI1RE7Q/jJM3SRvEifEr MMF2roVyyIA97dTu1GDJACcx/PgfylZ0Dd7kunLRry0sgTDZypb4VRk50OQuWpaCMRob kYEn4oKILrEtTsvmIbcSV5tqsJ1o0t5h7QyZ4= Original-Received: by 10.151.28.11 with SMTP id f11mr1536224ybj.297.1299788368240; Thu, 10 Mar 2011 12:19:28 -0800 (PST) Original-Received: by 10.91.123.4 with HTTP; Thu, 10 Mar 2011 12:19:28 -0800 (PST) In-Reply-To: <83aah2vj5m.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79946 Archived-At: --00151747af5af8e35c049e268f2a Content-Type: text/plain; charset=UTF-8 2011/3/10 Eli Zaretskii > > Date: Thu, 10 Mar 2011 22:30:42 +0300 > > From: Dmitriy Igrishin > > > > 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. --00151747af5af8e35c049e268f2a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2011/3/10 Eli Zaretskii <eliz@gnu.org>
> Date: Thu, 10 Mar 2011 22:30:42 +0300
> From: Dmitriy Igrishin <dmitig= r@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 t= ried to figure out this variable myself...
Thank you very much!

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


--
// Dmitriy.


--00151747af5af8e35c049e268f2a--