From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64178: replace-regexp ignoring value of org-search-invisible Date: Wed, 21 Jun 2023 10:21:44 +0000 Message-ID: <87v8fhf747.fsf@localhost> References: <87v8fiseja.fsf@localhost> <87mt0usaah.fsf@localhost> <875y7hhmoo.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="583"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64178@debbugs.gnu.org To: bobf32@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 21 12:17:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qButy-000AVX-N0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jun 2023 12:17:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qButg-0007nx-Vh; Wed, 21 Jun 2023 06:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qButa-0007nY-EX for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 06:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qButa-0008BE-3R for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qButZ-0005Hv-Vf for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 06:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jun 2023 10:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64178 X-GNU-PR-Package: emacs Original-Received: via spool by 64178-submit@debbugs.gnu.org id=B64178.168734261920314 (code B ref 64178); Wed, 21 Jun 2023 10:17:01 +0000 Original-Received: (at 64178) by debbugs.gnu.org; 21 Jun 2023 10:16:59 +0000 Original-Received: from localhost ([127.0.0.1]:60699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qButX-0005HZ-6E for submit@debbugs.gnu.org; Wed, 21 Jun 2023 06:16:59 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:46321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qButU-0005HJ-RF for 64178@debbugs.gnu.org; Wed, 21 Jun 2023 06:16:57 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BC009240027 for <64178@debbugs.gnu.org>; Wed, 21 Jun 2023 12:16:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687342610; bh=YqiKLIxrEV8bducgJ0g/Nt9XgAH4L3gbf4TNRmgQkC0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=AopOM+TZvzTFcKc12AsEMdXwxZk0KQqu0uospI7K+XiOucoVyelzAR86Vnw4URDAI 87TjhTkYF6SIAQ+yVgoZQOhF8GfBhCxVDku9NI5K9+yzro4wovido3qleLGZBig4qC 5H56WbYjzqf3h6nti8vu8vqLlERZosf/z0RMSLH6E+pmumpQIRjwHJUuXW+Mne8+e5 RR+FN3aL2FUAB2kg+2RLfhW4rYLXYCcqDvCvKgzOrpxXJtziU6gq9b+/8lYELQDHAm +IfQ/ohMQ396lt6ocQAexf0yk584SCK7n/0K+02JvM212VVMWl8o5BuGxhiIjDTP5h D0loNi1Ss4wSA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QmKDK4bLtz6tw3; Wed, 21 Jun 2023 12:16:49 +0200 (CEST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263796 Archived-At: 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/ > 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 $ foo 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 . Support Org development at , or support my work at