From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35487: Make visiting function from help-mode more customizable Date: Sat, 11 May 2019 23:42:29 +0300 Organization: LINKOV.NET Message-ID: <87woiwbu4q.fsf@mail.linkov.net> References: <20190429.213014.526232842075202623.tkk@misasa.okayama-u.ac.jp> <87sgu0wps5.fsf@mail.linkov.net> <8636lnp6lm.fsf@misasa.okayama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="206002"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35487@debbugs.gnu.org, Tak Kunihiro , tkk@misasa.okayama-u.ac.jp To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 23:14:37 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPZKG-000rS7-P1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 23:14:37 +0200 Original-Received: from localhost ([127.0.0.1]:35393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPZKF-0005Xl-OP for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 17:14:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPZIn-0004gC-LA for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 17:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPZIl-0004bc-SW for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 17:13:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPZIk-0004aj-4M for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 17:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPZIj-0005oH-RO for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 17:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2019 21:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35487 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35487-submit@debbugs.gnu.org id=B35487.155760913022232 (code B ref 35487); Sat, 11 May 2019 21:13:01 +0000 Original-Received: (at 35487) by debbugs.gnu.org; 11 May 2019 21:12:10 +0000 Original-Received: from localhost ([127.0.0.1]:41300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPZHu-0005mW-6p for submit@debbugs.gnu.org; Sat, 11 May 2019 17:12:10 -0400 Original-Received: from lavender.maple.relay.mailchannels.net ([23.83.214.99]:21550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPZHs-0005mN-4h for 35487@debbugs.gnu.org; Sat, 11 May 2019 17:12:08 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CFFEC501B2E; Sat, 11 May 2019 21:12:06 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a85.g.dreamhost.com (100-96-30-28.trex.outbound.svc.cluster.local [100.96.30.28]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2971E501BB3; Sat, 11 May 2019 21:12:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a85.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sat, 11 May 2019 21:12:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Thread-Cooperative: 07a007d5132a1e52_1557609126509_3511733854 X-MC-Loop-Signature: 1557609126509:265847912 X-MC-Ingress-Time: 1557609126509 Original-Received: from pdx1-sub0-mail-a85.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a85.g.dreamhost.com (Postfix) with ESMTP id 2C8738039D; Sat, 11 May 2019 14:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=Fyu1BhuyL65CJ2fQ/JWP9JwcrqA=; b= s1dj9lfCtyQxXO+KtDb0tFgKhPKxFhDrseoJJOZzo2q2G8hCZ2T4/91RuVQEbBlV zvrFjvKShoeVyWNor1JN5sDkC+mJ4p9uZUO9R8NgRwZ1o9y+hcIBMrRggBj0Pgmp GW/qou+Hq/OlXbF3V+0gyF7tY4SpyuVqaWW473iQGbc= Original-Received: from mail.jurta.org (m91-129-96-230.cust.tele2.ee [91.129.96.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a85.g.dreamhost.com (Postfix) with ESMTPSA id C75628039A; Sat, 11 May 2019 14:11:56 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a85 In-Reply-To: (martin rudalics's message of "Fri, 10 May 2019 10:00:30 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrledtgdduiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrvdeftdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrvdeftddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:159101 Archived-At: >> As a side effect, `C-h f' opens *Help* buffer in the same window. I >> still want to open *Help* in other window (original behavior). Do you >> have idea to do so? > > You could try with > > (defun display-buffer-condition-from-help (_buffer-name _action) > (string-match-p "\\`\\*\\(Help\\)\\*\\(\\|<[0-9]+>\\)\\'" > (buffer-name (window-buffer)))) I confirm this is more correct. BTW, I observed one strange effect: after the *Help* buffer is displayed on one window, the next time it's always displayed in the same window where it was displayed previously: 0. emacs -Q 1. C-h f car RET 2. C-x o 3. C-h i 4. C-h f car RET is displayed in the same window, whereas 5. C-h f cdr RET is displayed in another window