From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Evil's evil-ex-substitute does not expand headlines as necessary. [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2/lisp/org/)] Date: Sun, 17 Sep 2017 08:47:48 +0200 Message-ID: <87o9q995yj.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtTMz-00069f-D1 for emacs-orgmode@gnu.org; Sun, 17 Sep 2017 02:47:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtTMv-0008HS-Ed for emacs-orgmode@gnu.org; Sun, 17 Sep 2017 02:47:57 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:47573) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtTMv-0008Gk-8r for emacs-orgmode@gnu.org; Sun, 17 Sep 2017 02:47:53 -0400 In-Reply-To: (Gary Cheng's message of "Sun, 17 Sep 2017 03:39:25 +0000") 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" To: Gary Cheng Cc: emacs-orgmode@gnu.org Hello, Gary Cheng writes: > Emacs : GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.16) > of 2017-07-15 > Package: Org-mode version 8.2.10 (release_8.2.10 @ > /usr/share/emacs/25.2/lisp/org/) > > ------------------------------------------------------------ > ---------------------------------------------------------------- > > When using evil's substitute (:%s/string1/string2/c) in an org file, if the > string that is to be substituted is hidden under a headline, the cursor > will go to the end of the line of the headline of the string, as opposed to > expanding the headline automatically and putting the cursor on the string > the way evil's find (/) does. It should match evil's find behavior which is > more intuitive and useful by doing the same thing. This sounds like an Evil issue. You may want to expand the tree before doing the replacement. Regards, -- Nicolas Goaziou