emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about isearch


From: Eli Zaretskii
Subject: Re: Questions about isearch
Date: Fri, 27 Nov 2015 22:06:54 +0200

> From: Mike Kupfer <address@hidden>
> cc: address@hidden
> Date: Fri, 27 Nov 2015 11:50:18 -0800
> 
> Assuming that there won't be any major changes for 25.1 in this area, I
> think it would be helpful for the "Lax Search" Info node to say
> something about replace-character-fold, particularly since that node
> mentions the relationship between case-fold-search and replace commands.
> And maybe replace-character-fold should be listed in the "Search
> Customizations" node?

There's a companion node "Replacement and Lax Matches", which
describes this variable.

> Also, I'm confused about the exact semantics of replace-character-fold.
> Its help string says it applies to query-replace.

That's a mistake that should be fixed, thanks.

> Experimentation shows that it also applies to replace-string, but
> not replace-regexp ("[ab]" does not match "ä" even when
> replace-character-fold is non-nil).  I'm not sure what's intended
> here, particularly since replace-regexp does honor case-fold-search.

Not sure whether this is intended, please submit a bug report.

> And speaking of case-fold-search, it is documented as buffer-local when
> set.  Should search-default-regexp-mode and replace-character-fold do
> the same?

No, I don't think so.  case-fold-search is not only for searching
commands, so it follows a different logic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]