From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#8368: 24.0.50; "temp" means "help" - rename or at least document Date: Mon, 30 Apr 2012 11:40:24 +0200 Message-ID: <4F9E5E08.4030400@gmx.at> References: <4F9BA96C.8070005@gmx.at> <4573CB93BA8F47DD922007A8C8CF3EB3@us.oracle.com> <4F9D1AB8.5090302@gmx.at> <2F5D2C7A2A6D44A3B25C5891EFEF7DF0@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1335778917 12720 80.91.229.3 (30 Apr 2012 09:41:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2012 09:41:57 +0000 (UTC) Cc: 'Lars Magne Ingebrigtsen' , 8368@debbugs.gnu.org, rms@gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 30 11:41:56 2012 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 1SOn7C-0001Jm-LH for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Apr 2012 11:41:54 +0200 Original-Received: from localhost ([::1]:47369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOn7B-0001X1-IO for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Apr 2012 05:41:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOn78-0001Wd-51 for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 05:41:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOn76-0007SH-0Y for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 05:41:49 -0400 Original-Received: from [140.186.70.43] (port=57486 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOn75-0007Rw-TC for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 05:41:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SOn8I-0001sH-2w for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 05:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Apr 2012 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8368-submit@debbugs.gnu.org id=B8368.13357789367155 (code B ref 8368); Mon, 30 Apr 2012 09:43:02 +0000 Original-Received: (at 8368) by debbugs.gnu.org; 30 Apr 2012 09:42:16 +0000 Original-Received: from localhost ([127.0.0.1]:58520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SOn7Y-0001rL-HH for submit@debbugs.gnu.org; Mon, 30 Apr 2012 05:42:16 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:35042) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SOn7B-0001qJ-Jm for 8368@debbugs.gnu.org; Mon, 30 Apr 2012 05:42:14 -0400 Original-Received: (qmail invoked by alias); 30 Apr 2012 09:40:26 -0000 Original-Received: from 62-47-60-232.adsl.highway.telekom.at (EHLO [62.47.60.232]) [62.47.60.232] by mail.gmx.net (mp070) with SMTP; 30 Apr 2012 11:40:26 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/t2RpN8fztKY01MuvU6JMIm54ymmT8Z9KcvNMddi HHAYTWvhwAyl9e In-Reply-To: <2F5D2C7A2A6D44A3B25C5891EFEF7DF0@us.oracle.com> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59647 Archived-At: >> You don't have to remove and re-add any hooks. It's >> sufficient to turn off help mode in the body of >> `with-output-to-temp-buffer'. Similarly, >> if you don't want to run `completion-list-mode-finish', turn off >> `completion-list-mode' in the buffer. > > Sufficient? That sounds like more work, not less. Why turn help mode etc. on > automatically and then turn it off again. Why not just remove the hook so it > does not get turned on? Because it's non-trivial to "just" do that. We have to go through all users of `with-output-to-temp-buffer' and check whether they want to turn on help mode or not. I don't have the slightest idea whether, for example, the calls in ada-xref.el require activating help mode or not. > I'm probably missing something in what you're > suggesting. No. But you earlier said that > While waiting for that, users have to do something like this, just to get rid of > the *Help*-imposed stuff: > > (defmacro with-output-to-plain-temp-buffer (buf &rest body) > "Like `with-output-to-temp-buffer', but with no *Help* navigation stuff." > `(unwind-protect > (progn > (remove-hook 'temp-buffer-setup-hook 'help-mode-setup) > (remove-hook 'temp-buffer-show-hook 'help-mode-finish) > (with-output-to-temp-buffer ,buf ,@body)) > (add-hook 'temp-buffer-setup-hook 'help-mode-setup) > (add-hook 'temp-buffer-show-hook 'help-mode-finish))) and I simply explained that there's an easier way to achieve what you want. Obviously, dealing with `temp-buffer-show-hook' in `with-output-to-plain-temp-buffer' isn't necessary either if you don't run `help-mode-setup' before. martin