all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	"63398@debbugs.gnu.org" <63398@debbugs.gnu.org>
Subject: bug#63398: 28.2; Doc or behavior of replacement commands (e.g. `replace-string')
Date: Thu, 11 May 2023 09:23:00 +0300	[thread overview]
Message-ID: <861qjnbd4r.fsf@mail.linkov.net> (raw)
In-Reply-To: <SJ0PR10MB548800C06BD8C4CEE000FC33F3779@SJ0PR10MB5488.namprd10.prod.outlook.com> (Drew Adams's message of "Wed, 10 May 2023 17:03:57 +0000")

>> The rules of replacement case-folding are more complex than documented.
>> `replace-match' checks if the initial is a caseless word constituent
>> like "0", and treats that like a lowercase initial.
>>
>> So  "test a → test b" replaces "Test A" with "Test B",
>> but "test 0 → test 1" replaces "Test 0" with "test 1".
>
> Can we fix this?  Should the behavior be changed?

I guess the default should never change.
But maybe the rules could be customized.

> Should the behavior remain like this and the doc
> be changed?

The current implementation of rules is quite complex.
No sure if all details can be documented succinctly.





      reply	other threads:[~2023-05-11  6:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-09 20:13 bug#63398: 28.2; Doc or behavior of replacement commands (e.g. `replace-string') Drew Adams
2023-05-10 13:37 ` Eli Zaretskii
2023-05-10 14:20   ` Drew Adams
2023-05-10 15:27     ` Eli Zaretskii
2023-05-10 15:50       ` Drew Adams
2023-05-10 16:46       ` Juri Linkov
2023-05-10 17:03         ` Drew Adams
2023-05-11  6:23           ` Juri Linkov [this message]

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=861qjnbd4r.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=63398@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=eliz@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.