From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#16038: 24.3; latest change to with-help-window makes temp-buffer-browse useless Date: Sun, 12 Jan 2014 00:31:48 +0800 Message-ID: References: <52D14E9F.5030001@gmx.at> <52D16627.4080604@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389457943 29938 80.91.229.3 (11 Jan 2014 16:32:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2014 16:32:23 +0000 (UTC) Cc: 16038@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 11 17:32: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 1W21Tw-0004Zw-3h for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jan 2014 17:32:20 +0100 Original-Received: from localhost ([::1]:34572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W21Tv-0008U9-Nb for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jan 2014 11:32:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W21Tm-0008Tz-8A for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 11:32:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W21Te-0008UL-UD for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 11:32:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W21Te-0008U1-QL for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 11:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W21Te-0008Ss-4x for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 11:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jan 2014 16:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16038 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16038-submit@debbugs.gnu.org id=B16038.138945791832529 (code B ref 16038); Sat, 11 Jan 2014 16:32:02 +0000 Original-Received: (at 16038) by debbugs.gnu.org; 11 Jan 2014 16:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:46975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W21TZ-0008Sa-Cl for submit@debbugs.gnu.org; Sat, 11 Jan 2014 11:31:57 -0500 Original-Received: from mail-pb0-f47.google.com ([209.85.160.47]:34403) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W21TX-0008SP-2W for 16038@debbugs.gnu.org; Sat, 11 Jan 2014 11:31:55 -0500 Original-Received: by mail-pb0-f47.google.com with SMTP id um1so5619342pbc.6 for <16038@debbugs.gnu.org>; Sat, 11 Jan 2014 08:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=IQSYzGWKB2Y9cnWCfGUU9ZWivplPECINbO8IGHL/CfQ=; b=bfderG/KId8sEiKCmmMivEnXSuZLt1SDR34WkAqqNvz1lQ3fYm4PR0HBXG+daPzzJJ P41UQy7zVNh7R2XgLX9CcxKJ5ZcDBDMdcmS0zcfxsMcg4awidtKkanxNuPjR1vyp7dKq 2806+SaV0pB71lOYjKBt8obUSzxlJr6856yc2lQo9CmfNW4SYV9tuRd+2ZuhUKQ0VUxQ KEuLep+aM7qwp7vy/zRQfWvBCsWeeVxIvME3xpHXkQjPsKcNTTDfs022cIm0M7t8UCo2 dbE+3Y63WI8LDhvnlLnQDqc25h3UPuiOvMP76SHv/hFOM3jaE9V/civML6OQrJ/Jj9fZ vRkA== X-Received: by 10.66.11.202 with SMTP id s10mr19518012pab.86.1389457914114; Sat, 11 Jan 2014 08:31:54 -0800 (PST) Original-Received: from Zeuss-MacBook.local ([221.220.233.253]) by mx.google.com with ESMTPSA id by1sm25677478pbd.25.2014.01.11.08.31.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jan 2014 08:31:53 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: <52D16627.4080604@gmx.at> (martin rudalics's message of "Sat, 11 Jan 2014 16:41:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1) 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:83309 Archived-At: On 2014-01-11 23:41 +0800, martin rudalics wrote: > I'd rather get rid of `with-output-to-temp-buffer' ;-) Yes, please make one of them obsolete. > If you look into our mail archives, you should find a couple of > complaints about `with-output-to-temp-buffer' putting the buffer in > `help-mode' (via `temp-buffer-setup-hook') and the like. I tried to > avoid these when I wrote `with-temp-buffer-window'. > > Assume two applications A and B: A expects `with-output-to-temp-buffer' > to put the buffer in `help-mode'. B wants to avoid that the buffer is > put in `help-mode'. I can offer B to use `with-temp-buffer-window' > instead while A can continue to work as usual. Eventually I'd like A to > use `with-temp-buffer-window' too and put the buffer in `help-mode' > itself. But there were too many `with-output-to-temp-buffer' calls in > the code base and I was not able to look into them. Indeed it seems with-temp-buffer-window is more powerful. Please take steps to deprecate the other macro. It is this that looks rather ugly: 1) temp-buffer-setup-hook, temp-buffer-show-hook, 2) temp-buffer-window-setup-hook, temp-buffer-window-show-hook Leo