From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7726: reveal-mode bypassed by compile-goto-error Date: Mon, 24 Jan 2011 11:12:57 -0500 Message-ID: References: <87vd2jb5e2.fsf@tux.homenetwork> <87vd1gbiwt.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295887009 25047 80.91.229.12 (24 Jan 2011 16:36:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 16:36:49 +0000 (UTC) Cc: Chong Yidong , 7726@debbugs.gnu.org, Thierry Volpiatto To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 24 17:36:43 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PhPPD-0002Ic-4P for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jan 2011 17:36:42 +0100 Original-Received: from localhost ([127.0.0.1]:37300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhPOy-0004zz-8v for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jan 2011 11:36:24 -0500 Original-Received: from [140.186.70.92] (port=43606 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhPDu-0006ud-NM for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2011 11:24:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhPDt-0006uM-Ju for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2011 11:24:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhPDt-0006uI-IE for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2011 11:24:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PhOub-0003Pz-VT; Mon, 24 Jan 2011 11:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jan 2011 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7726-submit@debbugs.gnu.org id=B7726.129588509913130 (code B ref 7726); Mon, 24 Jan 2011 16:05:01 +0000 Original-Received: (at 7726) by debbugs.gnu.org; 24 Jan 2011 16:04:59 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PhOuY-0003Pj-O3 for submit@debbugs.gnu.org; Mon, 24 Jan 2011 11:04:58 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PhOuW-0003PX-Nv for 7726@debbugs.gnu.org; Mon, 24 Jan 2011 11:04:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJ4zPU1MCo4O/2dsb2JhbACkZ3S7foVQBIRwjjo X-IronPort-AV: E=Sophos;i="4.60,370,1291611600"; d="scan'208";a="89058759" Original-Received: from 76-10-142-14.dsl.teksavvy.com (HELO pastel.home) ([76.10.142.14]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 24 Jan 2011 11:12:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8D91E58C4E; Mon, 24 Jan 2011 11:12:57 -0500 (EST) In-Reply-To: (Lennart Borgman's message of "Mon, 24 Jan 2011 02:00:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 Jan 2011 11:05:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43603 Archived-At: >>>>> If I use compile-goto-error from a grep-mode buffer to a org-mode >>>>> buffer where the destination line is in a hidden outline then the >>>>> outline will not be revealed until after next command. >>>> also, goto-line is unable to reach line in an outline based buffer. >>>> See in anything and ioccur, it is fixed for org-mode and >>>> outline-minor-mode. >>>> Is there other modes based on outline to handle? >>> Anyone have a test case? >> I think the problem is that reveal-mode runs from post-command-hook and >> reveals what's in the buffer that's current when post-command-hook is >> run, whereas in the above cases, the buffer that needs revealing is not >> current at that point. >> That's one of the cases where we could use something like >> a "pre-redisplay-hook". > Isn't it more like post-post-command-hook? No I really meant pre-redisplay-hook. I don't see why post-post-command-hook would have anything to do with this problem. E.g. I think a case that needs to work is when you're in the *compile* buffer and select one entry to display the source but while staying in the *compile* buffer: the current buffer before and after the command is *compile*, so no amount of post/pre-command-hooks can tell you that some other buffer needs revealing. Stefan