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#17109: 24.4.50; REGRESSION: `with-output-to-temp-buffer' is broken Date: Thu, 27 Mar 2014 08:09:23 -0700 (PDT) Message-ID: References: <87fvm47yoi.fsf@yahoo.fr> 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 1395933017 6708 80.91.229.3 (27 Mar 2014 15:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2014 15:10:17 +0000 (UTC) Cc: 17109@debbugs.gnu.org To: Nicolas Richard , Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 27 16:10:24 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 1WTBwl-00036q-V9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Mar 2014 16:10:24 +0100 Original-Received: from localhost ([::1]:54212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTBwk-0005SK-Vm for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Mar 2014 11:10:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTBwZ-00054M-Rm for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 11:10:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTBwR-0004Od-5g for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 11:10:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTBwR-0004OW-2f for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 11:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTBwP-0000xg-ST for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 11:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Mar 2014 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17109-submit@debbugs.gnu.org id=B17109.13959329703645 (code B ref 17109); Thu, 27 Mar 2014 15:10:01 +0000 Original-Received: (at 17109) by debbugs.gnu.org; 27 Mar 2014 15:09:30 +0000 Original-Received: from localhost ([127.0.0.1]:52896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTBvt-0000wj-5i for submit@debbugs.gnu.org; Thu, 27 Mar 2014 11:09:29 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:48828) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTBvq-0000wY-DH for 17109@debbugs.gnu.org; Thu, 27 Mar 2014 11:09:27 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2RF9OmT022274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Mar 2014 15:09:25 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2RF9Ov0028666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Mar 2014 15:09:24 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s2RF9NY4018236; Thu, 27 Mar 2014 15:09:23 GMT In-Reply-To: <87fvm47yoi.fsf@yahoo.fr> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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:87452 Archived-At: > >> In a build as recent as this one there was no such problem: > > > > See bug#16038 on why with-output-to-temp-buffer is no longer associated > > with help mode. You can use any major mode. >=20 > (Bug#16816, Bug#17007) are also relevant. See lisp/ChangeLog for the log > of the various changes and reversions. Well, those are apparently relevant to the various changes that have been made, but they are not so relevant to *this* bug report. This is the point: 1. `with-output-to-temp-buffer' is poorly named. No question about that. I was among the first to mention it. 2. That is NOT a reason to change its *behavior*. 3. Create a better-named alias for it, expressing what it really does, which concerns the *Help* buffer (not just any old temporary buffer). You can even *deprecate* the old name (continuing to support it, of course) in favor of the more accurate name. 4. You can also create one or more new macros with different behavior, which you prefer, and use those in vanilla Emacs code in place of `with-output-to-temp-buffer`, adapting the surrounding code to fit the different behavior of the new macro(s). That would all be OK. And it has all been discussed in the various bug threads cited. 5. What you must NOT do is change the behavior of the existing macro, so that any code that uses it breaks. It is not because the macro does not live up to its unfortunate name that you should change the behavior, including changing it to better reflect the name. Far from it. And that is just what you've done: change the behavior. That is the regression that *this* bug report is about.