From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#19012: 25.0.50; `help-window-select' Date: Tue, 11 Nov 2014 06:26:08 -0800 (PST) Message-ID: <3f833473-f246-4d57-95cd-2ac654d326c9@default> References: <5460F5B3.6040402@gmx.at> <8e78202d-5ac0-4df5-8195-9849dd7509b7@default> <5461C901.6060707@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415716064 26424 80.91.229.3 (11 Nov 2014 14:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 14:27:44 +0000 (UTC) To: martin rudalics , 19012@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 15:27:36 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XoCPm-0005jF-F6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 15:27:26 +0100 Original-Received: from localhost ([::1]:49037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoCPl-0007re-Ut for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 09:27:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoCPY-0007be-D0 for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 09:27:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoCPP-00016t-A2 for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 09:27:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoCPP-00016p-7Q for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 09:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XoCPO-0001rf-GG for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 09:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Nov 2014 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19012-submit@debbugs.gnu.org id=B19012.14157159757112 (code B ref 19012); Tue, 11 Nov 2014 14:27:02 +0000 Original-Received: (at 19012) by debbugs.gnu.org; 11 Nov 2014 14:26:15 +0000 Original-Received: from localhost ([127.0.0.1]:56977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoCOc-0001qd-Qx for submit@debbugs.gnu.org; Tue, 11 Nov 2014 09:26:15 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:35059) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoCOZ-0001qT-AS for 19012@debbugs.gnu.org; Tue, 11 Nov 2014 09:26:11 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sABEQ9Za006220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Nov 2014 14:26:10 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id sABEQ8pR004717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 11 Nov 2014 14:26:09 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sABEQ8x5004197; Tue, 11 Nov 2014 14:26:08 GMT In-Reply-To: <5461C901.6060707@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95865 > Who creates the *Help* buffer and who calls `display-buffer' in the > case at hand? The usual displayers of *Help*: `C-h f', `C-h v', `C-h m', `C-h b', ... And those do generally use `with-help-window'. But as I mentioned, `display-buffer' in this case uses the logic of `special-display': (add-to-list 'special-display-buffer-names (list "*Help*" '1on1-display-*Help*-frame (list (cons 'background-color 1on1-help-frame-background) (cons 'mouse-color 1on1-help-frame-mouse+cursor-color) (cons 'cursor-color 1on1-help-frame-mouse+cursor-color) '(height . 40)))) (defun 1on1-display-*Help*-frame (buf &optional args) "Display *Help* buffer in its own frame. `special-display-function' is used to do the actual displaying. BUF and ARGS are the arguments to `special-display-function'." (let ((old-ptr-shape (and (boundp 'x-pointer-shape) x-pointer-shape)) return-window) (when (boundp 'x-pointer-xterm) (setq x-pointer-shape x-pointer-xterm)) (setq return-window (select-window (funcall special-display-function buf args))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (raise-frame) (setq x-pointer-shape old-ptr-shape) return-window)) ^^^^^^^^^^^^^ > > but it's not obvious to me. How is a user supposed to know > > whether this option applies, i.e., whether "the help window > > was created by `with-help-window'? >=20 > By trial and error, I suppose... [When] the help window > gets selected in some unintuitive way they can tune the behavior > using this option. OK. It doesn't seem to work in the case I presented: *Help* shown in a dedicated window in a separate frame. > > say, for value `other', that "if the help window is alone in > > its frame then it is selected". >=20 > I'll do that. Thanks. > Indeed. It would be a bug if it didn't get selected. That was my hope. It does not get selected, even with an option value of `t'.