all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: bobf32@gmail.com
Cc: 64178@debbugs.gnu.org
Subject: bug#64178: replace-regexp ignoring value of org-search-invisible
Date: Wed, 21 Jun 2023 10:21:44 +0000	[thread overview]
Message-ID: <87v8fhf747.fsf@localhost> (raw)
In-Reply-To: <CAAbWmgppdamxYzbLN1fSwQUwp5YLionFzD50r7f4vcC_SMoC4Q@mail.gmail.com>

bobf32@gmail.com writes:

> Of course. My use case is that I wish specifically to append some text to
> some lines. The way I normally do this would be to search for the regex
> end-of-line ($) and replace with some text. E.g. in order to append the
> word foo to the end of a line I would do one of:
>
> :s/$/ foo/ <RET>
> M-x regexp-replace RET $ RET  foo

Ok. Then, it is not an Org mode bug.

Steps to reproduce:

1. emacs -Q /path/to/new/file.el
2. Insert

(defun test ()
  "This is test")

(defun test2 ()
  "This is test2")

3. M-x outline-minor-mode
4. M-x outline-cycle-buffer
5. Observe

(defun test ()...
(defun test2 ()...

6. M-: (setq search-invisible nil)
7. M-x replace-regexp <RET> $ <RET> foo <RET>
8. M-x outline-show-all
9. Observe

(defun test ()foo
  "This is test")foo
foo
(defun test2 ()foo
  "This is test2")foo

Expect:

(defun test ()foo
  "This is test")

(defun test2 ()foo
  "This is test2")

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





  reply	other threads:[~2023-06-21 10:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 20:15 bug#64178: replace-regexp ignoring value of org-search-invisible bobf32
2023-06-20  8:50 ` Ihor Radchenko
2023-06-20 10:09   ` bobf32
2023-06-20 10:22     ` Ihor Radchenko
2023-06-20 20:48       ` bobf32
2023-06-20 21:02         ` Ihor Radchenko
2023-06-20 21:04           ` bobf32
2023-06-21 10:21             ` Ihor Radchenko [this message]
2023-06-21 15:50               ` Juri Linkov
2023-06-22  6:50               ` Juri Linkov
2023-06-22  7:48                 ` Ihor Radchenko
2023-06-22 16:52                   ` Juri Linkov
2023-06-23 10:46                     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8fhf747.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=64178@debbugs.gnu.org \
    --cc=bobf32@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.