From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.devel Subject: Re: with-output-to-temp-buffer and help-mode Date: Fri, 25 Jul 2014 17:06:10 +0800 Message-ID: References: <1yppgtua5n.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406279218 27513 80.91.229.3 (25 Jul 2014 09:06:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 09:06:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 25 11:06:52 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XAbSl-0001Lh-0c for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 11:06:51 +0200 Original-Received: from localhost ([::1]:53679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAbSk-0007Ig-9X for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 05:06:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAbSa-0007Ac-1G for emacs-devel@gnu.org; Fri, 25 Jul 2014 05:06:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAbST-0005r5-5C for emacs-devel@gnu.org; Fri, 25 Jul 2014 05:06:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAbSS-0005qq-MZ for emacs-devel@gnu.org; Fri, 25 Jul 2014 05:06:32 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XAbSR-00014I-6l for emacs-devel@gnu.org; Fri, 25 Jul 2014 11:06:31 +0200 Original-Received: from 221.222.156.86 ([221.222.156.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2014 11:06:31 +0200 Original-Received: from sdl.web by 221.222.156.86 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2014 11:06:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.222.156.86 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) Cancel-Lock: sha1:n7ocg6cceNiGwANgyndDt/V/35g= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173134 Archived-At: On 2014-07-25 04:15 -0400, Glenn Morris wrote: > However: > > Many (most?) uses of the thing rely on the output being in help mode. > See eg http://debbugs.gnu.org/17966 . > There are ~ 223 uses of with-output-to-temp-buffer in lisp/. > As a first simple test, the string "help" appears on the same line as 76 > of them. > > Nobody shows any signs of fixing all those uses, or even documenting > this (incompatible) change in NEWS. > > So I think this should just be reverted. See Martin's comment in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16038#14, there seems to be problems either way. Note also temp-buffer-setup-hook is part of the public hooks of with-output-to-temp-buffer so the macro makes no guarantee it will be in Help mode. I.e. it is permissible for a user to have (add-hook 'temp-buffer-setup-hook 'fancy-help-mode t) The more important reason is we have variants of those macros and it is time to consolidate them. I'll find time to do that. Sorry just came back from a break and it has been very busy lately. But I'll get to it soon. Leo