emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Auto-unfold subtrees with matches in query-replace (et al.?)
@ 2013-05-07 20:19 Michael Bach
  2013-05-14  8:34 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Bach @ 2013-05-07 20:19 UTC (permalink / raw)
  To: emacs-orgmode

Dear org-mode Users and Developers,

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).

While I am at it: the same applies to a 3-way ediff merge session 
started from magit, namely the `next' difference is not visible because 
of folding.  My solution for now is to fundamental-mode the buffers 
prior to the merging work.

Is there an option for this that I am missing?  (How) Did you solve this?

Best Regards,
Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto-unfold subtrees with matches in query-replace (et al.?)
  2013-05-07 20:19 Auto-unfold subtrees with matches in query-replace (et al.?) Michael Bach
@ 2013-05-14  8:34 ` Bastien
  2013-06-06 15:11   ` Michael Bach
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2013-05-14  8:34 UTC (permalink / raw)
  To: Michael Bach; +Cc: emacs-orgmode

Hi Michael,

Michael Bach <phaebz@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto-unfold subtrees with matches in query-replace (et al.?)
  2013-05-14  8:34 ` Bastien
@ 2013-06-06 15:11   ` Michael Bach
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Bach @ 2013-06-06 15:11 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi Bastien,

On Tue, May 14, 2013 at 10:34 AM, Bastien <bzg@gnu.org> wrote:
>
> Would be a nice feature to have -- don't hesitate to report it with
> M-x report-emacs-bug RET
>

Done. Thanks for explanation.

Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-06 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 20:19 Auto-unfold subtrees with matches in query-replace (et al.?) Michael Bach
2013-05-14  8:34 ` Bastien
2013-06-06 15:11   ` Michael Bach

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).