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: Wed, 26 Mar 2014 13:08:25 -0700 (PDT) Message-ID: 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 1395864560 6741 80.91.229.3 (26 Mar 2014 20:09:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2014 20:09:20 +0000 (UTC) To: 17109@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 26 21:09:28 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 1WSu8d-0003B2-2v for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Mar 2014 21:09:27 +0100 Original-Received: from localhost ([::1]:50015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu8c-0003ej-EE for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Mar 2014 16:09:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu8P-0003eQ-Cq for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:09:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSu8F-0002Zq-9v for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:09:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu8F-0002Zk-7B for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WSu8E-0001fM-56 for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:09: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: Wed, 26 Mar 2014 20:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13958645416395 (code B ref -1); Wed, 26 Mar 2014 20:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Mar 2014 20:09:01 +0000 Original-Received: from localhost ([127.0.0.1]:51360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSu8C-0001f5-4q for submit@debbugs.gnu.org; Wed, 26 Mar 2014 16:09:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53197) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSu88-0001ew-Uz for submit@debbugs.gnu.org; Wed, 26 Mar 2014 16:08:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSu7y-0002Qp-J2 for submit@debbugs.gnu.org; Wed, 26 Mar 2014 16:08:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu7y-0002Ql-Gr for submit@debbugs.gnu.org; Wed, 26 Mar 2014 16:08:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu7p-0003cM-JG for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:08:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSu7h-0002Mr-1S for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:08:37 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:30570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu7g-0002Mb-Rb for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2014 16:08:28 -0400 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 s2QK8RhN029495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 26 Mar 2014 20:08:28 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s2QK8Qxn006010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 26 Mar 2014 20:08:26 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2QK8Qxi003236 for ; Wed, 26 Mar 2014 20:08:26 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:87425 Archived-At: In a build as recent as this one there was no such problem: In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-03-21 on ODIEONE Bzr revision: 116829 dancol@dancol.org-20140321121023-5tjxtiws6qa4qyod Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' 'CPPFLAGS=3D-DGC_MCHECK= =3D1 -Ic:/Devel/emacs/include' LDFLAGS=3D-Lc:/Devel/emacs/lib' The problem exists in this build: In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-03-23 on ODIEONE Bzr revision: 116869 yamaoka@jpl.org-20140324004210-m3ek4k40qwamyabx Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include'' Recipe: emacs -Q Evaluate this: (defun describe-keymap (keymap) ; Bound to `C-h M-k' "Describe bindings in KEYMAP, a variable whose value is a keymap. Completion is available for the keymap name." (interactive (list (intern (completing-read "Keymap: " obarray (lambda (m) (and (boundp m) (keymapp (symbol-value m)))) t nil 'variable-name-history)))) (unless (and (symbolp keymap) (boundp keymap) (keymapp (symbol-value keymap))) (error "`%S' is not a keymapp" keymap)) (let ((name (symbol-name keymap)) (doc (documentation-property keymap 'variable-documentation))) (help-setup-xref (list #'describe-keymap keymap) (called-interactively-p 'interactive)) (with-output-to-temp-buffer "*Help*" ; NO GOOD with this ;; (with-help-window "*Help*" ; <=3D=3D=3D=3D=3D=3D=3D=3D OK with thi= s (princ name) (terpri) (princ (make-string (length name) ?-)) (terpri) (terpri) (when doc (princ doc) (terpri) (terpri)) (with-current-buffer "*Help*" (insert (substitute-command-keys (concat "\\{" name "}"))))))) M-x describe-keymap RET ctl-x-map RET Buffer *Help* is not in Help mode, as it should be. It is in Fundamental mode. Change `with-output-to-temp-buffer' to `with-help-window' and the problem goes away. This does not seem right. We should not have to replace the former with the latter everywhere. And the former still exists. It just does not do the right thing anymore.