From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Auto-unfold subtrees with matches in query-replace (et al.?) Date: Tue, 14 May 2013 10:34:57 +0200 Message-ID: <87zjvylyp0.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcB9u-0007tr-9N for emacs-orgmode@gnu.org; Tue, 14 May 2013 05:04:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcB9t-0006DT-4h for emacs-orgmode@gnu.org; Tue, 14 May 2013 05:04:34 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:34245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcB9s-0006D7-Pq for emacs-orgmode@gnu.org; Tue, 14 May 2013 05:04:33 -0400 Received: by mail-we0-f176.google.com with SMTP id p60so238450wes.35 for ; Tue, 14 May 2013 02:04:32 -0700 (PDT) In-Reply-To: (Michael Bach's message of "Tue, 07 May 2013 22:19:06 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Bach Cc: emacs-orgmode@gnu.org Hi Michael, Michael Bach writes: > When I do a M-% (query-replace) in an org-mode buffer where the relevant > trees are folded, subtrees with matches are not unfolded. I am looking for > a similar behavior as is observed when doing a simple C-s > (search-forward). This is a general problem for any mode that allows invisible text, and there is no generic solution. "Revealing" invisible text is the responsability of the major mode, and can be achieved for C-s thanks to 'isearch-mode-end-hook (see line 5395 in org.el). But AFAIK there is no similar hook when query-replacing. Would be a nice feature to have -- don't hesitate to report it with M-x report-emacs-bug RET Best, -- Bastien