From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Oct 2015 15:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 21649@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14443197395097 (code B ref -1); Thu, 08 Oct 2015 15:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Oct 2015 15:55:39 +0000 Received: from localhost ([127.0.0.1]:32817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkDXf-0001K8-D0 for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59110) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkDXc-0001Jz-C5 for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkDXG-0004WN-Vx for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkDXG-0004WF-Sq for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkDWX-00027V-KS for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 11:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkDVT-00081b-I4 for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 11:54:29 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:48909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkDVS-0007pK-JX for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 11:53:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai4IAMyQFlakD4Xx/2dsb2JhbABeglWCFKhnAQEBAQEBBgWQLoYKgxOCCn8CghYBAQEBAQGBC4QmAQKBFRQDAQIKNAEEOyGILp8XpD2GLIpBHhGEFwWNCYkBlhuSd2OEBDwzh2wBAQE Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 08 Oct 2015 17:53:21 +0200 From: Nicolas Richard Date: Thu, 08 Oct 2015 17:54:02 +0200 Message-ID: <877fmxz78l.fsf@members.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain When running M-x man RET man RET, then C-x o to select the newly created window and then running M-x man RET sed RET, what you get is: two "man" windows side by side. It would make sense to re-use the existing one. How to best do that I do not know. If modifying the code is necessary, here's an attempt at adding an option in Man-notify-method. (I'm not attached to this implementation, and even less attached to the silly name `manly' that I chose, btw.) --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Allow-M-x-man-to-reuse-an-existing-window.patch >From 2b812b1c9f91af2cf6116f1d4e334154ae44c724 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Thu, 8 Oct 2015 10:50:07 +0200 Subject: [PATCH] Allow M-x man to reuse an existing window * man.el (Man-notify-when-ready): add `manly' option. (Man-notify-method): augment docstring accordingly. --- lisp/man.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lisp/man.el b/lisp/man.el index c5dbcba..a02ee79 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -91,6 +91,8 @@ (require 'ansi-color) (require 'cl-lib) (require 'button) +(require 'subr-x) +(require 'seq) (defgroup man nil "Browse UNIX manual pages." @@ -162,6 +164,8 @@ (defcustom Man-notify-method (if (boundp 'Man-notify) Man-notify 'friendly) bully -- make the manpage the current buffer and only window (sf) aggressive -- make the manpage the current buffer in the other window (sf) friendly -- display manpage in the other window but don't make current (sf) +manly -- like `friendly' but re-use a window displaying a man page if + possible (sf) polite -- don't display manpage, but prints message and beep when ready quiet -- like `polite', but don't beep meek -- make no indication that the manpage is ready @@ -1166,6 +1170,16 @@ (defun Man-notify-when-ready (man-buffer) (and (frame-live-p saved-frame) (select-frame saved-frame)) (display-buffer man-buffer 'not-this-window)) + (`manly + (and (frame-live-p saved-frame) + (select-frame saved-frame)) + (if-let ((window (seq-some-p + (lambda (window) + (with-current-buffer (window-buffer window) + (derived-mode-p 'Man-mode))) + (window-list)))) + (set-window-buffer window man-buffer) + (display-buffer man-buffer))) (`polite (beep) (message "Manual buffer %s is ready" (buffer-name man-buffer))) -- 2.4.6 --=-=-=-- From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window References: <877fmxz78l.fsf@members.fsf.org> In-Reply-To: <877fmxz78l.fsf@members.fsf.org> Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Oct 2015 14:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 21649@debbugs.gnu.org, youngfrog@members.fsf.org Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144440147323908 (code B ref 21649); Fri, 09 Oct 2015 14:38:01 +0000 Received: (at 21649) by debbugs.gnu.org; 9 Oct 2015 14:37:53 +0000 Received: from localhost ([127.0.0.1]:34420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkYnx-0006DY-B9 for submit@debbugs.gnu.org; Fri, 09 Oct 2015 10:37:53 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:32938) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkYnu-0006DP-Jr for 21649@debbugs.gnu.org; Fri, 09 Oct 2015 10:37:51 -0400 Received: by oiar126 with SMTP id r126so5536675oia.0 for <21649@debbugs.gnu.org>; Fri, 09 Oct 2015 07:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=VJZYJsHgnqq3QEcI7pPGhLb0guBw3u8azF2ZBXjYCow=; b=0tKDiEWa0Bae8x5K4s8f05/QGGlCh1SSbqkdPP3KwcCu2FbRdWgWcy2moyaaHTfRG8 u7fq/BJ9eRaXaDIRQTCLDgEuNzVPyyrUmfmzirmU6xViPwDHvwAqbNjIttzzxMDCX7Iw Rm+2C2UAr++XjbtppqDRPwTss3zsi4H2+BDg2+8Z7L7HSALAMmvGoCxvw8bEAgtS893J A9+LwRMk7VovtenHvmnqCQpKbglOe4+gzqtnUha3CDRY7KEgDG85xnsCG4gSM7xUax/p 6H+zvSoHee/nOJZoYowf4QI34NAm5VnIxlpLYnalG5FmiKRjIpJB9YkFE4gIk68TQq/d mDQQ== X-Received: by 10.202.215.136 with SMTP id o130mr8023074oig.85.1444401470033; Fri, 09 Oct 2015 07:37:50 -0700 (PDT) MIME-Version: 1.0 From: Kaushal Modi Date: Fri, 09 Oct 2015 14:37:40 +0000 Message-ID: Content-Type: multipart/alternative; boundary=001a113d5d3488d7140521acec8d X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --001a113d5d3488d7140521acec8d Content-Type: text/plain; charset=UTF-8 You can do the window control by customizing the `display-buffer-alist` variable. That's a suggestion if you haven't yet looked at it. Personally, I use the shackle package which is an interface to customization of that variable. I mention this because I control where the man/woman buffers open using this package ( https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-shackle.el ) --001a113d5d3488d7140521acec8d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can do the window control by customizing the `display-= buffer-alist` variable. That's a suggestion if you haven't yet look= ed at it.

Personally, I use the shackle package which is= an interface to customization of that variable. I mention this because I c= ontrol where the man/woman buffers open using this package ( https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-s= hackle.el=C2=A0)=C2=A0
--001a113d5d3488d7140521acec8d-- From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Oct 2015 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard , "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144466240413898 (code B ref 21649); Mon, 12 Oct 2015 15:07:02 +0000 Received: (at 21649) by debbugs.gnu.org; 12 Oct 2015 15:06:44 +0000 Received: from localhost ([127.0.0.1]:37199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZlegV-0003c5-RQ for submit@debbugs.gnu.org; Mon, 12 Oct 2015 11:06:44 -0400 Received: from mail-ob0-f179.google.com ([209.85.214.179]:34082) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZlegT-0003bw-Oa for 21649@debbugs.gnu.org; Mon, 12 Oct 2015 11:06:42 -0400 Received: by obbda8 with SMTP id da8so108753881obb.1 for <21649@debbugs.gnu.org>; Mon, 12 Oct 2015 08:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=On8JwDz8jrvgebTzaMUlWfpQKJw3BqsNY5Kx8QqmPdc=; b=dQcMZ0XGxDHQxN8tp71ebbvwKmZXodSCzPyc/a9fySC8b2Lw2FpPYlNPdjXG7NF1r2 fszn+bcWqHSJ25i6/7a9Sxarpx50QfcYIjq4atGgqKpnghFpEMxczTFy/KpVHcxbEcYs DkbO+JUDLlmZh8ETzdzmbxgV0BLDBlWXdUs+O2kVEk7BvjG0uQjoKxXBtAxQrFoajBW7 3IurAHYANwSWtVpUPbCcRkVWdzwWyY0VL/Pn/R0XbrzWOLuvm0z1Yc90zl7Oj9n4z4+H FRvk46CulRLvpTHz5fhCr8GvvXip8oPCTwoHsQBML8SKTjhpE9B0gd0Vt8sbI19+PLv+ bTig== X-Received: by 10.60.84.132 with SMTP id z4mr10833999oey.50.1444662400963; Mon, 12 Oct 2015 08:06:40 -0700 (PDT) MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> In-Reply-To: <86r3l09t3u.fsf@members.fsf.org> From: Kaushal Modi Date: Mon, 12 Oct 2015 15:06:31 +0000 Message-ID: Content-Type: multipart/alternative; boundary=089e011768733ae08d0521e9ad0f X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --089e011768733ae08d0521e9ad0f Content-Type: text/plain; charset=UTF-8 Here is the order in which the functions are called M-x man -> Man-getpage-in-background -> Man-notify-when-ready -> display-buffer (if Man-notify-method variable is set to 'friendly, which is its default value) You will get help about display-buffer-alist when you do `C-h f display-buffer`. You can also do `C-h v display-buffer-alist` and that will point you to the `display-buffer` function documentation. You can learn more about Display Action Functions by evaluating (info "(elisp) Display Action Functions") or doing `C-h i g (elisp) Display Action Functions`. Using the shackle package allows you to set the display actions from a higher level without having to customize the display-buffer-alist manually. If you are interested in customizing display-buffer-alist manually, there are few examples on emacs.stackexchange.com which might help you: - http://emacs.stackexchange.com/a/12757/115 - http://emacs.stackexchange.com/a/2195/115 - http://emacs.stackexchange.com/a/338/115 On Mon, Oct 12, 2015 at 8:19 AM Nicolas Richard wrote: > Hi, > > Thanks for the hint. I haven't looked into it yet, indeed. > display-buffer-alist is not very user-friendly (and isn't mentionned in > the docstring of `man'). Your shackle config file looks easier but I > don't see an obvious way to say "re use an existing window which > displays a buffer of the same mode". Maybe I should just try it and > see... > > Nicolas Richard. > > > Kaushal Modi writes: > > You can do the window control by customizing the `display-buffer-alist` > variable. That's a suggestion if you haven't > > yet looked at it. > > > > Personally, I use the shackle package which is an interface to > customization of that variable. I mention this because > > I control where the man/woman buffers open using this package ( > > > https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-shackle.el > ) > --089e011768733ae08d0521e9ad0f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here is the order in which the functions are called
M-x man -> Man-getpage-in-background -> Man-notify-when-= ready -> display-buffer (if Man-notify-method variable is set to 'fr= iendly, which is its default value)

You will get h= elp about display-buffer-alist when you do `C-h f display-buffer`.

You can also do `C-h v display-buffer-alist` and that will= point you to the `display-buffer` function documentation.

Yo= u can learn more about Display Action Functions by evaluating=C2=A0(info &q= uot;(elisp) Display Action Functions") or doing `C-h i g (elisp) Displ= ay Action Functions`.

Using the shackle package al= lows you to set the display actions from a higher level without having to c= ustomize the display-buffer-alist manually.

If you= are interested in customizing display-buffer-alist manually, there are few= examples on emacs.stackexchange= .com which might help you:

-=C2=A0<= a href=3D"http://emacs.stackexchange.com/a/338/115">http://emacs.stackexcha= nge.com/a/338/115


On Mon, Oct 12, 2015 at 8:19 AM Nicolas Richard <youngfrog@members.fsf.org>= wrote:
Hi,

Thanks for the hint. I haven't looked into it yet, indeed.
display-buffer-alist is not very user-friendly (and isn't mentionned in=
the docstring of `man'). Your shackle config file looks easier but I don't see an obvious way to say "re use an existing window which displays a buffer of the same mode". Maybe I should just try it and see...

Nicolas Richard.


Kaushal Modi <kaushal.modi@gmail.com> writes:
> You can do the window control by customizing the `display-buffer-alist= ` variable. That's a suggestion if you haven't
> yet looked at it.
>
> Personally, I use the shackle package which is an interface to customi= zation of that variable. I mention this because
> I control where the man/woman buffers open using this package (
> https://github.= com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-shackle.el )
--089e011768733ae08d0521e9ad0f-- From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2015 22:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Kaushal Modi Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.14447742318074 (code B ref 21649); Tue, 13 Oct 2015 22:11:02 +0000 Received: (at 21649) by debbugs.gnu.org; 13 Oct 2015 22:10:31 +0000 Received: from localhost ([127.0.0.1]:39133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm7mA-000269-3W for submit@debbugs.gnu.org; Tue, 13 Oct 2015 18:10:30 -0400 Received: from nm22-vm6.bullet.mail.ir2.yahoo.com ([212.82.97.12]:48768) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm7m7-000261-9A for 21649@debbugs.gnu.org; Tue, 13 Oct 2015 18:10:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1444774226; bh=gzJdjGaoGh8NSuIVDdz7PcWLWa2c7DuI7uBagfNXylk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=EXA9iYvbDaW20YbLZoA01WGdxn3Uprkpu7BNGtxc/QJPZjRt+ymZ9G243fFCQ7ItdSVxjnIn+veQ2Km6XNiMmkMzvERSRsS62mmGScBICgDlG83y04/Xr7jNzyT2eyyZelDM6qFepLQrSc1OJXUWCi4lBNt7dct8+Y1r/BnmCnOxihJzPNLMzFgpvMvIparbLeFiWY4Cc5ocPzIQg99UCCZGFO29dVgYmEx7biLYKdW1NDTrL71TW2GspAcvzDj82QJvB9jfkqBXEJJtz25i2nEjlSRpCqRv6I90ROdnPA3MSgswMd3Q+VV4KUFOzRd48jVI/I/k0uZvo/c33aTntA== Received: from [212.82.98.63] by nm22.bullet.mail.ir2.yahoo.com with NNFMP; 13 Oct 2015 22:10:26 -0000 Received: from [46.228.39.69] by tm16.bullet.mail.ir2.yahoo.com with NNFMP; 13 Oct 2015 22:10:26 -0000 Received: from [127.0.0.1] by smtp106.mail.ir2.yahoo.com with NNFMP; 13 Oct 2015 22:10:26 -0000 X-Yahoo-Newman-Id: 344311.98041.bm@smtp106.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6PlwjQUVM1myr8HHT8SU5Pk7vUMza_DWnGEPf.5IRCW9aIt TEpup8LOl8wlaoTil7mwztG751sMA.Wwx.tlJ5snCtooiXgOZu53m5lZsr7M c_8Bu53zK_vHbW6wPHl4j58EYbLT_0Ufo53aM8FYnQNYsYiWL9.ULAJfjk_F ywMWyNdNq6clIrzWyF1nSSZbtT8oQIQCJ4n1E9OdchSzDuwcMzyXB_KIHXPm .1dS84UnB2SmJn3jKxMDYDIxExLtQ6KgHqWMgZBfKzgj.MkA4uD34N9Bh1np a6AGcsNH5XS1kTlDEMobDcpf0NQcQaqgkODqYfgTq53ts3MjlLMPMHXRwzP4 N0q0T6brbWTTEznraQSWMHrAjT7Jf3yXVO3mYTocy9.ylPKg2VFxQLP6TL_s JQ8tAFlPKdHMUxwbGx4d7HYjawjZceU43lhNsQEgqg2UE31ODaH3MgHH9nKT ITsLUOvnR_QY3PY.lgERusdyDqEW0ThdzYDbv3bQ0eGNg4FinG.nEFQyW2gt xZ3o.AHTcDHwBBLEX0iQeAJUVCFRYo4F0HAVUgZVLbl44A_hq0BHq0mo- X-Yahoo-SMTP: 62rWct2swBAqKO_y6KiyXe3pZRcxSSoYuFEwRLrH6M41hw-- From: Nicolas Richard References: <86r3l09t3u.fsf@members.fsf.org> Date: Wed, 14 Oct 2015 00:10:25 +0200 In-Reply-To: (Kaushal Modi's message of "Mon, 12 Oct 2015 15:06:31 +0000") Message-ID: <86y4f6v2r2.fsf@members.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hello Kaushal, Thanks for the pointers. What I mean is that customizing display-buffer-alist is not very user-friendly even though I know how to use it. It is also not mentionned in (info "(emacs) Window Choice"). OTOH it is a defcustom, so I have mixed feelings about this variable. Anyway, a possible way to achieve the effect I asked for is to add a suitable entry in display-buffer-alist, but it requires writing an elisp function (the predefined ones don't fit the bill). I'll be happy to provide such a function if that is the preferred route. Nicolas. From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2015 22:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard , martin rudalics , cyd@stupidchicken.com Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.14447748419130 (code B ref 21649); Tue, 13 Oct 2015 22:21:01 +0000 Received: (at 21649) by debbugs.gnu.org; 13 Oct 2015 22:20:41 +0000 Received: from localhost ([127.0.0.1]:39137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm7w0-0002NB-9C for submit@debbugs.gnu.org; Tue, 13 Oct 2015 18:20:41 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:33312) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm7vx-0002N0-Hx for 21649@debbugs.gnu.org; Tue, 13 Oct 2015 18:20:38 -0400 Received: by oiar126 with SMTP id r126so18163064oia.0 for <21649@debbugs.gnu.org>; Tue, 13 Oct 2015 15:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=FBVEq5qQjDXAbCcfkIGXRlkarhkNo9xiXmB8ARadUTA=; b=pKE5U9ei1CWa/v4cnM7sP5xy7ZYDoai2DB9Exy9Lkifqz82beEUWf5RFb1fM7m5BaR O6vEmwL+iIYxU3yCIrBMJrO5pZxzqx/l2q1JmVhpOOrxxUa86oz9EnOPVb1q2TDDGcE5 0GzlQ9cJJPC1JtOK0hN5C9qf4S3OuK3M2B0AO4cEPjBCVA8z1glriQWWevgca5QwHxnM 0z5nBV+KtLSlgkHaI2CZHRo/qpnIZbgHAkDG7K798CLDjn6T58h4Ti8XKPm+36USqaLl Vp9+KoYV20LxmoBG8G0ccIwTmur+GeMt+ne3QLUNXh5D36kOuTukTW/suW8pbzCvlcgK uDbg== X-Received: by 10.202.104.35 with SMTP id d35mr16899953oic.57.1444774836981; Tue, 13 Oct 2015 15:20:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.172.205 with HTTP; Tue, 13 Oct 2015 15:19:57 -0700 (PDT) In-Reply-To: <86y4f6v2r2.fsf@members.fsf.org> References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> From: Kaushal Modi Date: Tue, 13 Oct 2015 18:19:57 -0400 Message-ID: Content-Type: multipart/alternative; boundary=001a1140b482f05898052203da4b X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --001a1140b482f05898052203da4b Content-Type: text/plain; charset=UTF-8 Based on http://git.savannah.gnu.org/cgit/emacs.git/log/?qt=grep&q=display-buffer-alist copying Martin Rudalics and Chong Yidong for their comments. -- Kaushal Modi On Tue, Oct 13, 2015 at 6:10 PM, Nicolas Richard wrote: > Hello Kaushal, > > Thanks for the pointers. > > What I mean is that customizing display-buffer-alist is not very > user-friendly even though I know how to use it. It is also not > mentionned in (info "(emacs) Window Choice"). OTOH it is a defcustom, so > I have mixed feelings about this variable. > > Anyway, a possible way to achieve the effect I asked for is to add a > suitable entry in display-buffer-alist, but it requires writing an elisp > function (the predefined ones don't fit the bill). I'll be happy to > provide such a function if that is the preferred route. > > Nicolas. > --001a1140b482f05898052203da4b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

copying Martin Rudalics and Chong Yidong for their comments= .


= --
Kaushal Modi

On Tue, Oct 13, 2015 at 6:10 PM, Nicolas Ric= hard <youngfrog@members.fsf.org> wrote:
Hello Kaushal,

Thanks for the pointers.

What I mean is that customizing display-buffer-alist is not very
user-friendly even though I know how to use it. It is also not
mentionned in (info "(emacs) Window Choice"). OTOH it is a defcus= tom, so
I have mixed feelings about this variable.

Anyway, a possible way to achieve the effect I asked for is to add a
suitable entry in display-buffer-alist, but it requires writing an elisp function (the predefined ones don't fit the bill). I'll be happy to=
provide such a function if that is the preferred route.

Nicolas.

--001a1140b482f05898052203da4b-- From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Oct 2015 08:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Kaushal Modi , Nicolas Richard , cyd@stupidchicken.com Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144481261931576 (code B ref 21649); Wed, 14 Oct 2015 08:51:01 +0000 Received: (at 21649) by debbugs.gnu.org; 14 Oct 2015 08:50:19 +0000 Received: from localhost ([127.0.0.1]:39472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZmHlK-0008DE-65 for submit@debbugs.gnu.org; Wed, 14 Oct 2015 04:50:18 -0400 Received: from mout.gmx.net ([212.227.17.21]:51959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZmHlH-0008D5-54 for 21649@debbugs.gnu.org; Wed, 14 Oct 2015 04:50:15 -0400 Received: from [62.47.255.84] ([62.47.255.84]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MXmpv-1a6zIA1VX5-00WqoY; Wed, 14 Oct 2015 10:50:05 +0200 Message-ID: <561E1736.7070706@gmx.at> Date: Wed, 14 Oct 2015 10:49:58 +0200 From: martin rudalics MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:rIz5tAh9YMuQ5we4E27uf9Op2acSQHxkAQ8+770sBEiU0IOGLMa vT5UMAzYoMhrykVxodYr5KkSTY+0txMS1ZGlvy0crg0FBdxvi72XDMDmNea0PHEnV3xqG+h KL38htgWBUu8iegfvMeLg35G2L/CF98zon3kmJhZUzQ4TIm7QFnoY87hvYAL4oST2BtLMVM WKX58CSNK4BqtiiEw0G+g== X-UI-Out-Filterresults: notjunk:1;V01:K0:4ITBtPl/PTo=:u6Z4MiE7usoOJMr8uUFh+X hiwVCPiv9qcit6aRTUajLTPzbvOV6/wvLxkYqa/ZvoTnyVoyJGjLmH5Ppli9N/ya6YoXlhAxm wUk1OiQaZ59d4wJYxoOnRQQzGAfppFFdiGqtpcu8Nrs2Atf2peKTLUpMgfq6YDqePZvTCKW+8 yKYnNDPbu9o7ZqBX1cNrwsxiRu84PS3xf1YeaYZeJ4kDgnGC3Q8Wh7p7T8q7tr287+nDI892V qkdNQmEl3RD8VInmEpIZe/r3mq1IA+lmF+gg9eWXgFSQi+LKtb3lE4XykUWPeCdKhOEXzILp4 i868gzLYiYp3H97g1gdTuXwBdWRmXqj+6Hhg1IlNuu8krb+5o5Eg2Kj8lU2CwM8fULCIUNXdZ 3AhLvGFrvMFJ304gT5i18bd3CMbtciMxa5TaD0/yg0YhsxFY5eX5t2zVgeeek6i/xEG+NNHuk +Huh+53mK1nIwTKRqUzfqdLkrNuUK51zqOU+NlpFAVrL+qsJ4mUHbOlzA5t3P/MfMY8d1wMFy V5cS5MQbXb2G18vdy1UhUtJe1vY62EjN3Cwh34XPq/uuXtbvvrKS+mHywOyK+55S0UfGPKFyC tOvG5YqHcaYzIOemMSTT471ZExaJUs8DR5mNMZH7OGENn7Bb//D5QgTGk8OJtQ4/gwN+RG+CZ kARgR2I4mv2ejnQTLQSHY3VvQr90kwEI9GpIKZyAvzPv+aT8zt00/eFsYYqYmVHApkgtS/thC pZ5baDepgCGp8XpCGjnX/5NUQhljbmbomC5B3wIE0CXJPCiM71ZCpo5sjQr7CqNWj/1djMCZI 4w7U5vq X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > http://git.savannah.gnu.org/cgit/emacs.git/log/?qt=grep&q=display-buffer-alist > > copying Martin Rudalics and Chong Yidong for their comments. You probably might want to follow up the thread "display-buffer-alist simplifications" on emacs-devel. martin From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2015 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144552807331990 (code B ref 21649); Thu, 22 Oct 2015 15:35:02 +0000 Received: (at 21649) by debbugs.gnu.org; 22 Oct 2015 15:34:33 +0000 Received: from localhost ([127.0.0.1]:33038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpHsv-0008Ju-27 for submit@debbugs.gnu.org; Thu, 22 Oct 2015 11:34:33 -0400 Received: from mout.gmx.net ([212.227.15.18]:60941) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpHst-0008Jl-DA for 21649@debbugs.gnu.org; Thu, 22 Oct 2015 11:34:31 -0400 Received: from [178.190.163.130] ([178.190.163.130]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MDyil-1Zk7th1TzD-00HMxJ; Thu, 22 Oct 2015 17:34:30 +0200 Message-ID: <56290200.1000700@gmx.at> Date: Thu, 22 Oct 2015 17:34:24 +0200 From: martin rudalics MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> In-Reply-To: <86wpufc8n8.fsf@members.fsf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:HQZRNMKLTv1Lg0L9o+FyOyjmS0I0whio01ofYiUfZR9jushV3Ok nex15hqyeG/L921KVB3OllJi+o6rOV7PwoKlnAZOr+VHU9kNoBaLIKzbkjoIsnLEhhu6ERe qCSXP1gsiXkLvTS29CDHAq7Pt+0TSbh0HYeSMxrYH7P4SmfGjhFsYEc8S/n07avGvoA1IlF juvXP9LfQZN2BWBKdhKZw== X-UI-Out-Filterresults: notjunk:1;V01:K0:R41Vmq7diyg=:acs25vWP2E+IPv3cqyx5Fy vDauorNBMfqByLviWPS3ssVXYTqVRcQbeeyiLaHqoMMWft5jpNz90Un5OVlHbSu/XX+zQhBlx NdQk13mpUGszRV3YvKGGhC2mf6rIHgpey+CABT1ML81m3ZifygPQ77aMwPm/SYpiYXcf370EI OPKQzLdyNWYMQdm0SIiOTJx2iffaBjRN0HEODrft3h/SjqeF37cW2PAAsbJXYi/P2ZIiWOku9 m0jv2r1UpMTwyvLu0jp5DOi1/dk6cUx6uOd210EcGkqKio79dO5b8v+m8QQW7ydhBxpQ2sLRw zvaU4E+7Oz//M8epDOIvaqelqVDNg6HgZ6U4WrtWEgfDrQGOdFwYQTXPEofaDhnBSRXAvUph5 DFZpY9BwYdzGgSr/ONn1a6BbGiLF+m4/nA9J2Joe0Ry0lqKhRyO6/Waa1yck0AzxLVu8Guvod qR8FNgbgRI46pifVmLMVeTbQdrRLv39NepR3qFOCUO9596FY97P9bfptfpgOjOyaKsHbAGNi4 X0DrciWSq2dsdBaV9cBvEhUZq0I/YSnS0Tt2hkB4ha1vf9zqPjsyXk6j37G0VQ46LrSF0SYHt O2NZttpTZIEBUFZ1e7aGt6/Nr0zQVNPlsi+QzZ1DzV6O1u80Rcc9rOGPhvuCiv5GdgOVt4dKr GzPKRHZR7pYaML6fQ1SzMXxO6nsGjplRRGlOsA7PaGJ42aO9/mq7zfByGf7kMNYTUH98nccJV Pc5S3JjHLQsh654XVMzR5tetLJBm7uT66W9RgDpldxxJApcfZBPMVX13B98CzC9kpOcrI56FI lIsRSIF X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Thanks for the hint. That's a very long thread however. I read the fir= st > few messages but gave up for now for the following reason : I'd like t= o > address my bug report first, and it isn't about how difficult > display-buffer-alist is, even though I did mention that. That thread explains why =E2=80=98display-buffer=E2=80=99 works as it doe= s now. It's not useful to explain how =E2=80=98display-buffer=E2=80=99 works now. So= you did good to give up soon ;-) > My concern is about making a *Man ...* window reusable. It can be done= : > - by adding a new choice to Man-notify-method (which is what my patch = does) > - by asking the user to customize display-buffer-alist, but in this ca= se > I think someone has to write a new function (similar to > display-buffer-reuse-window except that it's not the same buffer, b= ut > another *Man ...* buffer -- e.g. > display-buffer-reuse-window-with-matching-major-mode). > - maybe some other way > > If the question is of interest, which answer is the best ? If it's the= > second, I could write such a function. Then we also somehow need to > advertise display-buffer-alist in the docstring of Man-notify-method. Sorry, I must have missed your patch. Probably I got confused by the current state of emacs-devel. Also I hardly ever use =E2=80=98man=E2=80=99= so I'm not very competent to comment such an addition anyway. How about writing an action function, say =E2=80=98man-display-buffer-my-= way=E2=80=99, and adding a clause like (`my-way (and (frame-live-p saved-frame) (select-frame saved-frame)) (display-buffer man-buffer '((man-display-buffer-my-way ...) . nil))) to =E2=80=98Man-notify-when-ready=E2=80=99? This would hardly harm, sati= sfy anyone asking for customization and likely introduce the first instance of an action function outside of window.el. And please don't drop 21649@debbugs.gnu.org from the list of recipients! martin From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2015 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144554168328133 (code B ref 21649); Thu, 22 Oct 2015 19:22:01 +0000 Received: (at 21649) by debbugs.gnu.org; 22 Oct 2015 19:21:23 +0000 Received: from localhost ([127.0.0.1]:33220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpLQQ-0007Jg-ME for submit@debbugs.gnu.org; Thu, 22 Oct 2015 15:21:22 -0400 Received: from mailrelay106.isp.belgacom.be ([195.238.20.133]:34262) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpLQ6-0007Iv-II for 21649@debbugs.gnu.org; Thu, 22 Oct 2015 15:21:21 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2C6AwDsNilW/8mHsltegzaBQ6kvAQQBAQEBAQEFAYENjzOEIQENgVmGHQKBSjkUAQEBAQEBAYEKhC8BAQMBIzMjBQsIAxoCBSECAg8BBCUkE4gbAwoMAbJKknsBAQgCIYEihQ6FRYJQggozB4JpgUUBBJYrjnaEP5Ifg3AfAQFChAU8NIZDAQEB Received: from 201.135-178-91.adsl-dyn.isp.belgacom.be (HELO Aurora) ([91.178.135.201]) by relay.skynet.be with ESMTP; 22 Oct 2015 21:21:01 +0200 From: Nicolas Richard In-Reply-To: <56290200.1000700@gmx.at> (martin rudalics's message of "Thu, 22 Oct 2015 17:34:24 +0200") References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Date: Thu, 22 Oct 2015 21:21:00 +0200 Message-ID: <86bnbqd80z.fsf@members.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: > Sorry, I must have missed your patch. Here's most of the patch : + (`manly + (and (frame-live-p saved-frame) + (select-frame saved-frame)) + (if-let ((window (seq-some-p + (lambda (window) + (with-current-buffer (window-buffer window) + (derived-mode-p 'Man-mode))) + (window-list)))) + (set-window-buffer window man-buffer) + (display-buffer man-buffer))) > How about writing an action function, say =E2=80=98man-display-buffer-my-= way=E2=80=99, and > adding a clause like > > (`my-way > (and (frame-live-p saved-frame) > (select-frame saved-frame)) > (display-buffer man-buffer > '((man-display-buffer-my-way ...) > . nil))) Sure, why not! > And please don't drop 21649@debbugs.gnu.org from the list of recipients! That was not intended. I probably hit R instead of F, sorry about that. Nico. From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Oct 2015 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.14455873411516 (code B ref 21649); Fri, 23 Oct 2015 08:03:02 +0000 Received: (at 21649) by debbugs.gnu.org; 23 Oct 2015 08:02:21 +0000 Received: from localhost ([127.0.0.1]:33725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpXIr-0000ON-5b for submit@debbugs.gnu.org; Fri, 23 Oct 2015 04:02:21 -0400 Received: from mout.gmx.net ([212.227.17.21]:59437) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpXIX-0000Na-Gt for 21649@debbugs.gnu.org; Fri, 23 Oct 2015 04:02:19 -0400 Received: from [188.22.46.151] ([188.22.46.151]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MPUFR-1Ztg1c03Or-004iXF; Fri, 23 Oct 2015 10:01:57 +0200 Message-ID: <5629E96C.3090307@gmx.at> Date: Fri, 23 Oct 2015 10:01:48 +0200 From: martin rudalics MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> In-Reply-To: <86bnbqd80z.fsf@members.fsf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:YFj7mo+psV0hjKYoyv4vcw40IvNgOp3PIJhePVs37td6ObCDXjf yH8971m6RO5IxrWC9Gro8cCI3dmC5aKIg3Q5wq8KAXH3f0ab48IJ7/OlbkPtW8z6Mao18pw ARks1AgRn9DsiVkI4t8GYz1WGFJZObQnUcXmIRk1auMBd+jVH7qake/Iz9/8wC6twru5BWx Yv1xFaY8dI1KdKBQDdLqw== X-UI-Out-Filterresults: notjunk:1;V01:K0:n3O+kaYz8Xg=:bwiZyeWm6YPnOwTErJaZsI pI6EJpEFaEEfbL9zg8CbL44S1dWLep3TzEe+rm0ZqP1zdoE5rO71WA4nFJ2O/nTBSHrgFmRWQ //0HxINeEmqb7V4c/t1m2EoK3CEAhvHwqV3bowoLcUTHhG4nuorNfcP6LRdhZWn5U/Ch252Zm ZtRw3GsfmkR3NsktJAecxs28Y1ZOoNk8he0jWZKJHyNf8dtHCRNXvwrLf8FEUnBMcWR9K318e Y9cBEBsCW9ZfC43D9Ui9gTZFO2j/k3opizANkKhpuYN0lj/CbLKIiZzWlscJYCQHm+eC8/XRf AmWo0PkUvWKX1kN2+B+1xbs+fkgdYLTLjaIi1Bzq4NYrE+OPHNLLAvPQw6/W0m5UtQlb3Fpvx uJTaf9G7zzA0u/9jEDcQ40LORdctzxkZJTLyNMlrtHlSIV3a6eOBUMuxO4uc8XaXDO2Xlo8Ko 2pvcw341VaOcec/ZnMpzbGjgFPCdmkJ/hyFYBACbxF2kAXqwvHui8RVqYo1+kqcrtG680zZBA eT3aG1jDpL8YvKQvoa/c51hu4ar6ymVSvufhwZfZXUcIoHxFeM7AkFcWR91Y0w8r5+7XyzqDy nmTl5ffGuGkfrIsSllWE3UF010MBg+MNeSD/xRGr3VM3X5aQRaWVGiuW/2DDeRSdeR4TY9kTv a1sWf6W/I1iGYT5E5BpzTj/tT2Ry9jnssmPtT4itr0afYNDAkO2CZr3nraIvYt4pK0WTEUzJn ItFsOCsynVLkAEftu/ceagYnVkA9sF+9XpGvIJug0voKcNTBC5k+R2n8HaTMX/RQyBan2chZn 8PrOr1T X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Here's most of the patch : > > + (`manly > + (and (frame-live-p saved-frame) > + (select-frame saved-frame)) > + (if-let ((window (seq-some-p > + (lambda (window) > + (with-current-buffer (window-buffer window= ) > + (derived-mode-p 'Man-mode))) > + (window-list)))) > + (set-window-buffer window man-buffer) > + (display-buffer man-buffer))) > >> How about writing an action function, say =E2=80=98man-display-buffer= -my-way=E2=80=99, and >> adding a clause like >> >> (`my-way >> (and (frame-live-p saved-frame) >> (select-frame saved-frame)) >> (display-buffer man-buffer >> '((man-display-buffer-my-way ...) >> . nil))) > > Sure, why not! Maybe we could add something like =E2=80=98display-buffer-reuse-mode-wind= ow=E2=80=99 to window.el. In that case I'd proceed as follows: (1) The frame(s) to scan for a suitable window should be determined by a =E2=80=98reusable-frames=E2=80=99 entry just as in =E2=80=98display-buffe= r-reuse-window=E2=80=99. (2) Allow to specify the desired (parent) mode via an ALIST =E2=80=98mode= =E2=80=99 entry. As value we could allow a single mode or a list of modes. Then a window showing a buffer in the same mode as the buffer we want to display should maybe given preference to a window showing a buffer in another mode, derived from the same parent mode. If a same-mode-window exists on another and a derived-mode-window exists on the selected frame, one of these should be given preference consistently. (3) Not use functions like =E2=80=98if-let=E2=80=99 and =E2=80=98seq-some= -p=E2=80=99. window.el is preloaded and if not utterly necessary I'd prefer not loading subr-x.el there. BTW, I have no idea from where you get =E2=80=98seq-some-p=E2=80=99= =2E Did you compile your patched man.el with emacs -Q? WDYT? martin From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window In-Reply-To: <877fmxz78l.fsf@members.fsf.org> Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2015 11:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144594547626728 (code B ref 21649); Tue, 27 Oct 2015 11:32:01 +0000 Received: (at 21649) by debbugs.gnu.org; 27 Oct 2015 11:31:16 +0000 Received: from localhost ([127.0.0.1]:40059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zr2TD-0006wW-E9 for submit@debbugs.gnu.org; Tue, 27 Oct 2015 07:31:15 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:14257) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zr2TA-0006rn-Kz for 21649@debbugs.gnu.org; Tue, 27 Oct 2015 07:31:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjgFAApgL1akD4XH/2dsb2JhbABehHmqBAYFkEiGCYYaggwBAQEBAQGBC4QzAQEDASNWBQsIAxoCBSECAg8BBEMGE4gbAwoIsyuSXYEihQ6FRYJQggozgnCBRQWWOI59hzCPOYNwY4IRHYFXPTSFbgEBAQ Received: from pno-math-199.ulb.ac.be (HELO Aurora) ([164.15.133.199]) by smtp.ulb.ac.be with ESMTP; 27 Oct 2015 12:30:35 +0100 From: Nicolas Richard References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> Date: Tue, 27 Oct 2015 12:30:35 +0100 Message-ID: <86r3kg8s6c.fsf@members.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) martin rudalics writes: > Maybe we could add something like =E2=80=98display-buffer-reuse-mode-wind= ow=E2=80=99 to > window.el. In that case I'd proceed as follows: > > (1) The frame(s) to scan for a suitable window should be determined by a > =E2=80=98reusable-frames=E2=80=99 entry just as in =E2=80=98display-buffe= r-reuse-window=E2=80=99. > > (2) Allow to specify the desired (parent) mode via an ALIST =E2=80=98mode= =E2=80=99 > entry. As value we could allow a single mode or a list of modes. Then > a window showing a buffer in the same mode as the buffer we want to > display should maybe given preference to a window showing a buffer in > another mode, derived from the same parent mode. If a same-mode-window > exists on another and a derived-mode-window exists on the selected > frame, one of these should be given preference consistently. Looks ok ! I'll give it a try and provide a patch based on your suggestion. > BTW, I have no idea from where you get =E2=80=98seq-some-p=E2=80= =99. Did you > compile your patched man.el with emacs -Q? It is from seq.el, but apparently it was a slightly out of date emacs build. From the ChangeLog: ChangeLog.2: Rename seq-some-p to seq-some and seq-contains-p to seq-con= tains Nico. From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2015 09:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.144602612127807 (code B ref 21649); Wed, 28 Oct 2015 09:56:03 +0000 Received: (at 21649) by debbugs.gnu.org; 28 Oct 2015 09:55:21 +0000 Received: from localhost ([127.0.0.1]:41212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrNRw-0007EP-Qp for submit@debbugs.gnu.org; Wed, 28 Oct 2015 05:55:21 -0400 Received: from mout.gmx.net ([212.227.15.15]:53779) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrNRu-0007EF-G9 for 21649@debbugs.gnu.org; Wed, 28 Oct 2015 05:55:19 -0400 Received: from [178.191.140.161] ([178.191.140.161]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MbxJ8-1aAhHf31Dq-00JJtX; Wed, 28 Oct 2015 10:55:17 +0100 Message-ID: <56309B82.4060506@gmx.at> Date: Wed, 28 Oct 2015 10:55:14 +0100 From: martin rudalics MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> <86r3kg8s6c.fsf@members.fsf.org> In-Reply-To: <86r3kg8s6c.fsf@members.fsf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:g+UQ1ppNZEJThE80xDufD2d6bcxYQ+UYe1ANFf+fuocYI8VLpPV JEkYYbAsVBWUUf890xKE4zSIdLSufazTWJEucIsr8vFzfskDJCAx6PbwpTMjqZgg5SEJS1w 9PfvRQiD3XGmgW++oob/ylBG72jPNMEbLLe7EgSD3T4vSZMfilOExklMLf3FrbVDxgscL7w WtTOv6uc0Bz8jIinxq8Rw== X-UI-Out-Filterresults: notjunk:1;V01:K0:8CVF57T1zMM=:Ueq8ouM6hvgsyfL42tTN3M OE6rcrKE1AtB4q+hZa0+ccqR/1TN+9OwbMzMy2OBPVt+ytMbsjvFCFCjbm/MFm7dpPw3/tFU5 eTvqZHUuWXYMBdwxpBf71NsCrHj0hrhnm6EytjAsm3uAGduxcxYADeciGwareZkvEIfeTUT3z oYCd41nF5kcZhTI8+UuY0KKbEG+kBAvlf3GHIhJzBHIfE4d7S5EdPV5dfkWiiv1js7MAtj0RF kwZlxabBaYM8HVQiXmlO44daiQF+Z2QoOU9wxZxZg6NhWULPrwqVmsAhCI8+q7llmYGt5gyk2 8kMqu3pU/Xql2YNOcEZPrxX+Ej+YWZ/o8QufQGwMsSrKKkBV7vd9HMhRjuQixjbYjkSRbBu+A xsb+BW2dkaPwcETEnkg0POEzLzN4cwW2QgVLSP8l9L3BzuB1eHvcF9Z1rAE5znu2zltApRONH 7Kw0RsTitFCL1Nqy02bkvSwPf5oAX8IsBStac282DZ3dnw3q9Q4JVfz5W488zxuO62x3H+1AC 0aGx1XMZK0xBzzqwp/DsRM/tJNDl6wuKcllio+EPzP3BHTiDU7tPjbg1ADEZZvFRN1XkuXgWI vW1oUXgyPHzNQo5DYPtKjyNobKfkRA4R7aJJXfkCREqna1iGyf811J4iIcpOy1ysIQfZTYCJ2 97ugvpnM5bJWDpYSXH3Bze7x7D2JFcqvx4MkXToLV+eyEa6EsJsfvo+W20lqV0s2AQ9ajmvAj hFj6f5hgJsrXL+i1a8F3B4p+92j8hbVAPly8gCljPqIKrLEigZl4FI69c+7HDmv9aE9CGG7Ww JC2Vill X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > I'll give it a try and provide a patch based on your > suggestion. Fine. If you have any questions, please don't hesitate to ask. Thanks, martin From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2016 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.145684735124234 (code B ref 21649); Tue, 01 Mar 2016 15:50:02 +0000 Received: (at 21649) by debbugs.gnu.org; 1 Mar 2016 15:49:11 +0000 Received: from localhost ([127.0.0.1]:56466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aamXu-0006In-Pj for submit@debbugs.gnu.org; Tue, 01 Mar 2016 10:49:11 -0500 Received: from mxin.ulb.ac.be ([164.15.128.112]:38337) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aamXs-0006Ie-Vj for 21649@debbugs.gnu.org; Tue, 01 Mar 2016 10:49:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAPi41VakD4Ux/2dsb2JhbABehHmmVwMBAQEGkT6EB4YTAoIVAQEBAQEBZSeEQQEBAQQjVhAIAxEDAQIKIQICDwE/CAYTiAoDErBwjxsBAQEBAQEEAQEBAQETCIVKhQKCOoIbgmCBOgWXDo9ChESCdIVejkxig2U7LohBAQEB Received: from pno-math-49.ulb.ac.be (HELO Aurora) ([164.15.133.49]) by smtp.ulb.ac.be with ESMTP; 01 Mar 2016 16:49:07 +0100 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> User-agent: mu4e 0.9.17; emacs 25.0.50.2 From: Nicolas Richard In-reply-to: <5629E96C.3090307@gmx.at> Date: Tue, 01 Mar 2016 16:49:07 +0100 Message-ID: <861t7unqq4.fsf@members.fsf.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit martin rudalics writes: > (2) Allow to specify the desired (parent) mode via an ALIST ‘mode’ > entry. As value we could allow a single mode or a list of modes. Then > a window showing a buffer in the same mode as the buffer we want to > display should maybe given preference to a window showing a buffer in > another mode, derived from the same parent mode. If a same-mode-window > exists on another and a derived-mode-window exists on the selected > frame, one of these should be given preference consistently. Well, it took a bit of time but here I am ! Could you please review the following patch ? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Add-new-function-display-buffer-reuse-mode-window.patch >From 1623ed372ffce726c4f5b20ca2f333a9e5ba6f92 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Tue, 1 Mar 2016 12:33:05 +0100 Subject: [PATCH] Add new function display-buffer-reuse-mode-window * lisp/window.el (display-buffer-reuse-mode-window): New function. * doc/lispref/windows.texi (Display Action Functions): Document it. --- doc/lispref/windows.texi | 17 ++++++++++++ lisp/window.el | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 7186791..c52bf0e 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi @@ -2395,6 +2395,23 @@ Display Action Functions entry (@pxref{Choosing Window Options}), raises that frame if necessary. @end defun +@defun display-buffer-reuse-mode-window buffer alist +This function tries to display @var{buffer} by finding a window +that is displaying a buffer in a given mode. + +If @var{alist} contains a @code{mode} entry, its value is a major mode +(a symbol) or a list of major modes. If @var{alist} contains no +@code{mode} entry, the current major mode of @var{buffer} is used. A +window is a candidate if it displays a buffer that derives from one of +the given modes. + +The behaviour is also controlled by entries for +@code{inhibit-same-window}, @code{reusable-frames} and +@code{inhibit-switch-frame} as is done in the function +@code{display-buffer-reuse-window}. + +@end defun + @defun display-buffer-pop-up-frame buffer alist This function creates a new frame, and displays the buffer in that frame's window. It actually performs the frame creation by calling diff --git a/lisp/window.el b/lisp/window.el index 620f4ed..4586994 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -6721,6 +6721,74 @@ display-buffer-reuse-window (unless (cdr (assq 'inhibit-switch-frame alist)) (window--maybe-raise-frame (window-frame window))))))) +(defun display-buffer-reuse-mode-window (buffer alist) + "Return a window based on the mode of the buffer it displays. +Display BUFFER in the returned window. Return nil if no usable +window is found. + +If ALIST contains a `mode' entry, its value is a major mode (a +symbol) or a list of modes. A window is a candidate if it +displays a buffer that derives from one of the given modes. When +ALIST contains no `mode' entry, the current major mode of BUFFER +is used. + +The behaviour is also controlled by entries for +`inhibit-same-window', `reusable-frames' and +`inhibit-switch-frame' as is done in the function +`display-buffer-reuse-window'." + (let* ((alist-entry (assq 'reusable-frames alist)) + (alist-mode-entry (assq 'mode alist)) + (frames (cond (alist-entry (cdr alist-entry)) + ((if (eq pop-up-frames 'graphic-only) + (display-graphic-p) + pop-up-frames) + 0) + (display-buffer-reuse-frames 0) + (t (last-nonminibuffer-frame)))) + (inhibit-same-window-p (cdr (assq 'inhibit-same-window alist))) + (windows (window-list-1 nil 'nomini frames)) + (buffer-mode (with-current-buffer buffer major-mode)) + (allowed-modes (if alist-mode-entry + (cdr alist-mode-entry) + buffer-mode)) + (curwin (selected-window)) + (curframe (selected-frame))) + (unless (listp allowed-modes) + (setq allowed-modes (list allowed-modes))) + (let (same-mode-same-frame + same-mode-other-frame + derived-mode-same-frame + derived-mode-other-frame) + (dolist (window windows) + (let ((window-mode (with-current-buffer + (window-buffer window) + major-mode)) + mode? frame?) + (setq mode? + (cond ((memq window-mode allowed-modes) + 'same) + ((let ((major-mode window-mode)) + (derived-mode-p allowed-modes)) + 'derived))) + (when (and mode? + (not (and inhibit-same-window-p + (eq window curwin)))) + (if (eq curframe (window-frame window)) + (if (eq mode? 'same) + (push window same-mode-same-frame) + (push window derived-mode-same-frame)) + (if (eq mode? 'same) + (push window same-mode-other-frame) + (push window derived-mode-other-frame)))))) + (let ((window (first (nconc same-mode-same-frame + same-mode-other-frame + derived-mode-same-frame + derived-mode-other-frame)))) + (when (window-live-p window) + (prog1 (window--display-buffer buffer window 'reuse alist) + (unless (cdr (assq 'inhibit-switch-frame alist)) + (window--maybe-raise-frame (window-frame window))))))))) + (defun display-buffer--special-action (buffer) "Return special display action for BUFFER, if any. If `special-display-p' returns non-nil for BUFFER, return an -- 2.4.5 --=-=-= Content-Type: text/plain -- Nicolas. --=-=-=-- From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2016 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard Cc: "21649@debbugs.gnu.org" <21649@debbugs.gnu.org> Received: via spool by 21649-submit@debbugs.gnu.org id=B21649.145685186831499 (code B ref 21649); Tue, 01 Mar 2016 17:05:02 +0000 Received: (at 21649) by debbugs.gnu.org; 1 Mar 2016 17:04:28 +0000 Received: from localhost ([127.0.0.1]:56552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aanil-0008Bz-QK for submit@debbugs.gnu.org; Tue, 01 Mar 2016 12:04:27 -0500 Received: from mout.gmx.net ([212.227.17.21]:52548) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aanik-0008Bm-Hg for 21649@debbugs.gnu.org; Tue, 01 Mar 2016 12:04:26 -0500 Received: from [192.168.1.101] ([212.95.7.58]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MKbZD-1aZydi1pod-001wwH; Tue, 01 Mar 2016 18:04:17 +0100 Message-ID: <56D5CB88.7000900@gmx.at> Date: Tue, 01 Mar 2016 18:04:08 +0100 From: martin rudalics MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> <861t7unqq4.fsf@members.fsf.org> In-Reply-To: <861t7unqq4.fsf@members.fsf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:1ZQfGCF/hYXPwlQqO4s+Y+qufrjVQ3V81lbo2GguVFsNll5E5bD pHWiH/DesRHUJKH/bO0gwebOy/U4Ip5lCtdfdXbszSwbt9i5pyW8zUGUZigPNZ47Cp/5GuW frhbVXsPDmE8jrV7ZhMYI03XpWZG6si5+tcM9ejVoZDqjVpsaBtidloCToWvtgYq0dKGNGe X7Tayqvux0Ahvp0HsReEg== X-UI-Out-Filterresults: notjunk:1;V01:K0:BmCulQe5DiE=:YByEFBYjV0RU2PWYOPPnYj LXudo6eXVnIx1amsn3BK5Krr0CMeSYOCiCiU9iXaAmdzN7shBA/srbSsA/T4cYZ66j7+V7Hr6 W3Sg3dg8cYqLIogl0jJWx4NU5AAkgTnLG4lZTCfcpDccNsIeuzyN3ppeBgbyuD9We8wL7zlqh w6U2Oq5s9tsDJpNSDGwlGqysBYs/c+zrk+aZAOLea+naeuuJco6p8pNBLP8aiA3ha3s6DEMfm rV17lVgVaVSgQK0pqPNQvd2lXa9k464jrVll2KgwEC1l39gGZtrZH3fst8M5DD+pT4EARbqBG qgpgnZOXts69iuctY/3tKJ/vf3FBEbO/jO0DjM4E51rEbGoV1IF+ROkHMcnC1bsOkL2BlGVj6 SFnyhEyoQk2N9xcrgztdtxhmdN1Knen7tf4hU4V+X+rFvs5Mt4EYl0T4DscT5PoDjp8Zq0n7Y iPzL5YDuqmdOmIGNvobF+sct6CqpTfsCGBZZhQQLSaqNkkhtaJ3khx4RbDINn5Q9MIqpJOknZ 5xkknfSGOziRwuIUcsYnn1R26UAccCzLE7JxtlwpF2WaDyBMo1wvv6h6XidxT+S94qiEgCxGI CfVFMsoF30cD3jfzniQaijnki2zFM2Rf30aytUWcb6N1xHv+itgPtg+6N3ma13CdzzbB0EiQK 8Fh1CrMcPTPjvp7KkbpbOd88yrrhaNK/+dAOjFlg1NAAKkUXKDIVTpeR180rDOPlSPWQ2QVCM KM/seI98oxIRiULCCwjSUR0irYHNAs8dlV7d8s0wlOKWMo+tNQbsBpnVdi/7GUmGW+FW0eROX +hiN+d88ORc2Gr2MTUrql6mEU5YMw== X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) > Well, it took a bit of time but here I am ! Could you please review th= e > following patch ? Thanks for the patch! +(defun display-buffer-reuse-mode-window (buffer alist) + "Return a window based on the mode of the buffer it displays. +Display BUFFER in the returned window. Return nil if no usable ^ +window is found. + +If ALIST contains a `mode' entry, its value is a major mode (a +symbol) or a list of modes. A window is a candidate if it +displays a buffer that derives from one of the given modes. When ^ +ALIST contains no `mode' entry, the current major mode of BUFFER +is used. Please consistently use two spaces after each sentence in doc-strings, comments etc. + (dolist (window windows) + (let ((window-mode (with-current-buffer + (window-buffer window) + major-mode)) + mode? frame?) + (setq mode? + (cond ((memq window-mode allowed-modes) + 'same) + ((let ((major-mode window-mode)) + (derived-mode-p allowed-modes)) + 'derived))) It's not nice to bind a buffer-local variable like =E2=80=98major-mode=E2= =80=99 in a completely unrelated buffer just for calling =E2=80=98derived-mode-p=E2=80= =99. Please do that either within the =E2=80=98with-current-buffer=E2=80=99 form abov= e, somehow like (dolist (window windows) (let (window-mode window-derived-mode mode? frame?) (with-current-buffer (window-buffer window) (setq window-mode major-mode) (setq window-derived-mode (derived-mode-p allowed-modes))) (setq mode? (cond ((memq window-mode allowed-modes) 'same) (window-derived-mode 'derived))) or simply write ((with-current-buffer (window-buffer window)) (derived-mode-p allowed-modes)) 'derived))) instead. + (let ((window (first (nconc same-mode-same-frame This gets me In end of data: window.el:8617:1:Warning: the function =E2=80=98first=E2=80=99 is not kno= wn to be defined. here. Thanks again, martin From unknown Sat Jun 21 05:09:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Richard Subject: bug#21649: closed (Re: 25.0.50; [PATCH] Allow M-x man to reuse an existing window) Message-ID: References: <86bn6mk67c.fsf@members.fsf.org> <877fmxz78l.fsf@members.fsf.org> X-Gnu-PR-Message: they-closed 21649 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 21649@debbugs.gnu.org Date: Thu, 10 Mar 2016 09:57:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1457603822-31278-1" This is a multi-part message in MIME format... ------------=_1457603822-31278-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21649@debbugs.gnu.org. --=20 21649: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21649 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1457603822-31278-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21649-done) by debbugs.gnu.org; 10 Mar 2016 09:56:15 +0000 Received: from localhost ([127.0.0.1]:42272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxKJ-00087W-3I for submit@debbugs.gnu.org; Thu, 10 Mar 2016 04:56:15 -0500 Received: from mailrelay112.isp.belgacom.be ([195.238.20.139]:30955) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxKH-00087J-AT for 21649-done@debbugs.gnu.org; Thu, 10 Mar 2016 04:56:13 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CLEwBKROFW/+ns8FFegz6oJwoGgQ+QQoQOhgkEAgKBOjwRAQEBAQEBAWQnQQEEDQGDbgEBBFYjEAgDISUPASkeBog7vRwBAQEHAgEdhVCFCoh0BZc8j0YBjTCOajYsg2U7g2CEYIFBAQEB Received: from 233.236-240-81.adsl-dyn.isp.belgacom.be (HELO Aurora) ([81.240.236.233]) by relay.skynet.be with ESMTP; 10 Mar 2016 10:55:35 +0100 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> <861t7unqq4.fsf@members.fsf.org> <56D5CB88.7000900@gmx.at> User-agent: mu4e 0.9.17; emacs 25.0.50.2 From: Nicolas Richard To: martin rudalics Subject: Re: 25.0.50; [PATCH] Allow M-x man to reuse an existing window In-reply-to: <56D5CB88.7000900@gmx.at> Date: Thu, 10 Mar 2016 10:55:35 +0100 Message-ID: <86bn6mk67c.fsf@members.fsf.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21649-done Cc: 21649-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Thanks for your review, martin. I pushed the modified commit to master as 2d382515bfdb44d585bda6515f8d03f9056a83ef. I'm marking this bug as done since one can now do (setq display-buffer-alist (list (cons "\\`\\*Man .*\\*\\'" (cons #'display-buffer-reuse-mode-window '((inhibit-same-window . nil)))))) to get the effect mentionned in the initial report. -- Nicolas. ------------=_1457603822-31278-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Oct 2015 15:55:39 +0000 Received: from localhost ([127.0.0.1]:32817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkDXf-0001K8-D0 for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59110) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkDXc-0001Jz-C5 for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkDXG-0004WN-Vx for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkDXG-0004WF-Sq for submit@debbugs.gnu.org; Thu, 08 Oct 2015 11:55:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkDWX-00027V-KS for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 11:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkDVT-00081b-I4 for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 11:54:29 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:48909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkDVS-0007pK-JX for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 11:53:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai4IAMyQFlakD4Xx/2dsb2JhbABeglWCFKhnAQEBAQEBBgWQLoYKgxOCCn8CghYBAQEBAQGBC4QmAQKBFRQDAQIKNAEEOyGILp8XpD2GLIpBHhGEFwWNCYkBlhuSd2OEBDwzh2wBAQE Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 08 Oct 2015 17:53:21 +0200 From: Nicolas Richard To: bug-gnu-emacs@gnu.org Subject: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Date: Thu, 08 Oct 2015 17:54:02 +0200 Message-ID: <877fmxz78l.fsf@members.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain When running M-x man RET man RET, then C-x o to select the newly created window and then running M-x man RET sed RET, what you get is: two "man" windows side by side. It would make sense to re-use the existing one. How to best do that I do not know. If modifying the code is necessary, here's an attempt at adding an option in Man-notify-method. (I'm not attached to this implementation, and even less attached to the silly name `manly' that I chose, btw.) --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Allow-M-x-man-to-reuse-an-existing-window.patch >From 2b812b1c9f91af2cf6116f1d4e334154ae44c724 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Thu, 8 Oct 2015 10:50:07 +0200 Subject: [PATCH] Allow M-x man to reuse an existing window * man.el (Man-notify-when-ready): add `manly' option. (Man-notify-method): augment docstring accordingly. --- lisp/man.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lisp/man.el b/lisp/man.el index c5dbcba..a02ee79 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -91,6 +91,8 @@ (require 'ansi-color) (require 'cl-lib) (require 'button) +(require 'subr-x) +(require 'seq) (defgroup man nil "Browse UNIX manual pages." @@ -162,6 +164,8 @@ (defcustom Man-notify-method (if (boundp 'Man-notify) Man-notify 'friendly) bully -- make the manpage the current buffer and only window (sf) aggressive -- make the manpage the current buffer in the other window (sf) friendly -- display manpage in the other window but don't make current (sf) +manly -- like `friendly' but re-use a window displaying a man page if + possible (sf) polite -- don't display manpage, but prints message and beep when ready quiet -- like `polite', but don't beep meek -- make no indication that the manpage is ready @@ -1166,6 +1170,16 @@ (defun Man-notify-when-ready (man-buffer) (and (frame-live-p saved-frame) (select-frame saved-frame)) (display-buffer man-buffer 'not-this-window)) + (`manly + (and (frame-live-p saved-frame) + (select-frame saved-frame)) + (if-let ((window (seq-some-p + (lambda (window) + (with-current-buffer (window-buffer window) + (derived-mode-p 'Man-mode))) + (window-list)))) + (set-window-buffer window man-buffer) + (display-buffer man-buffer))) (`polite (beep) (message "Manual buffer %s is ready" (buffer-name man-buffer))) -- 2.4.6 --=-=-=-- ------------=_1457603822-31278-1-- From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2016 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Nicolas Richard Cc: 21649-done@debbugs.gnu.org Received: via spool by 21649-done@debbugs.gnu.org id=D21649.14576059812917 (code D ref 21649); Thu, 10 Mar 2016 10:34:02 +0000 Received: (at 21649-done) by debbugs.gnu.org; 10 Mar 2016 10:33:01 +0000 Received: from localhost ([127.0.0.1]:42296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxtt-0000kx-8C for submit@debbugs.gnu.org; Thu, 10 Mar 2016 05:33:01 -0500 Received: from mout.gmx.net ([212.227.15.18]:57715) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxtr-0000kf-Cs for 21649-done@debbugs.gnu.org; Thu, 10 Mar 2016 05:32:59 -0500 Received: from [192.168.1.100] ([212.95.7.79]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MSdNs-1aEczd0pIy-00RcnO; Thu, 10 Mar 2016 11:32:49 +0100 Message-ID: <56E14D47.6010408@gmx.at> Date: Thu, 10 Mar 2016 11:32:39 +0100 From: martin rudalics MIME-Version: 1.0 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> <861t7unqq4.fsf@members.fsf.org> <56D5CB88.7000900@gmx.at> <86bn6mk67c.fsf@members.fsf.org> In-Reply-To: <86bn6mk67c.fsf@members.fsf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:CaIbNOK4k+sX9uTg8CQn2I0mXkGiS8787TJapOaA5eXx06Eh9ts g5aSkcAcbrnMpFvBvohpYWchekAWEAlVrFLSO0Ny/X4s1ixmOus4KI+at9Yi28FXFC9mF06 NDzGbsV1vAfIAywpmq2ZytBDqjQOPE3Aezc9oapWrPAgtvJrQvc2OhIfBlF0tGQig6+GW6a rtd/zYjl0v6oqm50Bx3pw== X-UI-Out-Filterresults: notjunk:1;V01:K0:cRLCYlOa8Eo=:rlwtQEUsai8LZMdHyoGIU/ 8deIiRsdYuIa7OB7lGyWKXkDE+6u+tLZFcYBqeeAGFhvYQ59cYFd/Zl2Iy9umwQgzjtH0nTNB 4dsO88/U1XBs0kDDEVwqx7MG8OWFF9jINaSRb75Y8zFTVqlpFk45KAQ6SPh8Hmbh/eRHwKfkI nfO1Je4iLU3ge9Uzox48Xy6Ns5e0PgVKqDut0kl1b3RUHGMe+gug44w3zQ0kN6ekeNNEoeZ8E 3NRWnIEPDqwHUaq37m7glM3ZZMZpIcU/9BDSFj8rx7lDotLnzhIsUHNriiKucLljlZI7h6ev7 3IEniLJ1PPMHDRvtT9xk8g+XhlAUxNpK/O0ZoD1WMWjyRl909PheuZRjBZarCdgcBXaubMiNE yfNIuUKEp0owmlhw1qOQSkYLaRluNuubNN+cak+Sre1tOB2DrKrzBr10rlUJVaUBXaDmqB7ed 9kEr3IbMvgaGtU7be6gw/BcVkXS+lTguRCH2gZ2cbhlM9/Pb75pEGSsfVJluABMBTOeNXdFuI K2dYYydLYzkEYDzJX514SloEQVIjZ0jjDeU7vOgB17xjcVcAYoo+e71R4KtcMKRWJKOLEmVGG 3g4ICzAiOGxQvNTk0BPN6HfJj8czpFeO4XCGjI2gWlW/bN4crG+WhVjcbvmps4RcVnMr8ZWAU GtdXkP6ZChzZ5wnH2HXLBiJegTZXv14E8snN/LegoacJqk0/DQgtzkLCTaQ0XLa3ITV4sP0fH b2QSYHD4d5uNCcZJss1r3tIxZUKXDks7Yfkgqlj3d+kmYnEWrKmmgU1JKZ4hSalCDLuiKZZZR jd/dN1sie8+JbfTXcPNs4d1OLQfyw== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > I'm marking this bug as done since one can now do > (setq display-buffer-alist > (list > (cons "\\`\\*Man .*\\*\\'" > (cons > #'display-buffer-reuse-mode-window > '((inhibit-same-window . nil)))))) > to get the effect mentionned in the initial report. Please add a NEWS entry for this. Thanks, martin From unknown Sat Jun 21 05:09:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2016 13:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: 21649-done@debbugs.gnu.org Received: via spool by 21649-done@debbugs.gnu.org id=D21649.1457617809501 (code D ref 21649); Thu, 10 Mar 2016 13:51:01 +0000 Received: (at 21649-done) by debbugs.gnu.org; 10 Mar 2016 13:50:09 +0000 Received: from localhost ([127.0.0.1]:42444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ae0yf-000081-9p for submit@debbugs.gnu.org; Thu, 10 Mar 2016 08:50:09 -0500 Received: from mailrelay103.isp.belgacom.be ([195.238.20.130]:29713) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ae0yd-00007n-T1 for 21649-done@debbugs.gnu.org; Thu, 10 Mar 2016 08:50:08 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BFEgBkeuFW/+ns8FFegz6BP6ZqCgaBD5BChA6GCQQCAoE+PRABAQEBAQEBZCdBAQQNg28BAQRWIxAIAyElDwEpHgYTGod1Axa9NQEBAQcCAR2FUIUKgj2GNwWSfYQ/j0YBFYRHiFSOajcrg2U7LoMyhGCBQQEBAQ Received: from 233.236-240-81.adsl-dyn.isp.belgacom.be (HELO Aurora) ([81.240.236.233]) by relay.skynet.be with ESMTP; 10 Mar 2016 14:50:01 +0100 References: <86r3l09t3u.fsf@members.fsf.org> <86y4f6v2r2.fsf@members.fsf.org> <561E1736.7070706@gmx.at> <86wpufc8n8.fsf@members.fsf.org> <56290200.1000700@gmx.at> <86bnbqd80z.fsf@members.fsf.org> <5629E96C.3090307@gmx.at> <861t7unqq4.fsf@members.fsf.org> <56D5CB88.7000900@gmx.at> <86bn6mk67c.fsf@members.fsf.org> <56E14D47.6010408@gmx.at> User-agent: mu4e 0.9.17; emacs 25.0.50.2 From: Nicolas Richard In-reply-to: <56E14D47.6010408@gmx.at> Date: Thu, 10 Mar 2016 14:49:56 +0100 Message-ID: <867fhajvcr.fsf@members.fsf.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: > Please add a NEWS entry for this. Sure. Done. Nicolas.