all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: arthur miller <arthur.miller@live.com>
To: Eduardo Ochs <eduardoochs@gmail.com>,
	help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: RE: Wdired doesn't like re-search-forward
Date: Sat, 19 Jun 2021 17:41:02 +0000	[thread overview]
Message-ID: <AM9PR09MB49773B5FD0200D69143E0F6D960C9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <CADs++6jjODvQffD6_9gf9zSBTx90GtKxVrASrHT2y4AL6JjgMQ@mail.gmail.com>

I am not sure, but when you use re-search-forward, be sure that you are not matchning some of non-writable text in dired, so you don't get error when you try to replace read-only text.

Even in wdired mode, certain parts of text remain read-only.

Don't know if that is the case, but something to be aware of.


-------- Originalmeddelande --------
Från: Eduardo Ochs <eduardoochs@gmail.com>
Datum: 2021-06-19 15:48 (GMT+01:00)
Till: help-gnu-emacs <help-gnu-emacs@gnu.org>
Ämne: Wdired doesn't like re-search-forward

Hello list,

I have a function called `bsl' that converts some backslash sequences
in the region to their corresponding characters, and also converts
character sequences like "#U00e3" to the character "\xe3" - an "a"
with a tilde - to deal with a quirk in unzip, that sometimes creates
files with these "#Uhhhh"s in their names. This `bsl' is implemented
with a `(while (re-search-forward ...) replace-match ...)'.

In Emacs 27 I can use `M-x bsl' to modify filenames in wdired, and
everything works. In Emacs 28 if I modify filenames with `M-x bsl' and
then exit wdired my changes are discarded, and I get this message:

  (No changes to be performed)

Is this related to the recent (?) changes in wdired? I noticed that
now letters are bound to `wdired--self-insert' instead of
`self-insert-command' in wdired mode... is there something that I need
to do to make wdired recognize changes that were not done by
`wdired--self-insert'?

And, more important of all: should I prepare a minimal way to
reproduce the problem and submit a proper bug report?

  Thanks!
    Eduardo Ochs
    http://angg.twu.net/#eev



  reply	other threads:[~2021-06-19 17:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-19 13:47 Wdired doesn't like re-search-forward Eduardo Ochs
2021-06-19 17:41 ` arthur miller [this message]
2021-06-19 22:43 ` Michael Heerdegen
2021-06-20  0:50   ` Eduardo Ochs

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=AM9PR09MB49773B5FD0200D69143E0F6D960C9@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=eduardoochs@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.