* `character-fold-search' should be a user option, like `case-fold-search'
@ 2015-09-01 15:49 Drew Adams
2015-09-01 22:47 ` Juri Linkov
2015-09-02 9:19 ` Artur Malabarba
0 siblings, 2 replies; 7+ messages in thread
From: Drew Adams @ 2015-09-01 15:49 UTC (permalink / raw)
To: emacs-devel
Subject line says it all. Users should be able to customize
this variable, to decide for themselves, without fiddling with
`setq', whether search starts by default with or without
character folding. They should be able to find this easily,
as an option in custom group `matching', right alongside
`case-fold-search'.
No?
I customized `case-fold-search' to nil long ago, and I will
likely do the same for `char-fold-search': set it to nil.
By default I want search to distinguish different characters.
Different users have different uses and different preferences.
Fortunately, the behavior can be toggled. But the default
behavior should also be customizable. Users should not need
to use `setq' for `char-fold-search' but be able to customize
`case-fold-search'. This is a (minor) step backward, IMO.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: `character-fold-search' should be a user option, like `case-fold-search'
2015-09-01 15:49 `character-fold-search' should be a user option, like `case-fold-search' Drew Adams
@ 2015-09-01 22:47 ` Juri Linkov
2015-09-02 0:35 ` Drew Adams
2015-09-02 9:26 ` Artur Malabarba
2015-09-02 9:19 ` Artur Malabarba
1 sibling, 2 replies; 7+ messages in thread
From: Juri Linkov @ 2015-09-01 22:47 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
> Subject line says it all. Users should be able to customize
> this variable, to decide for themselves, without fiddling with
> `setq', whether search starts by default with or without
> character folding. They should be able to find this easily,
> as an option in custom group `matching', right alongside
> `case-fold-search'.
>
> No?
>
> I customized `case-fold-search' to nil long ago, and I will
> likely do the same for `char-fold-search': set it to nil.
> By default I want search to distinguish different characters.
>
> Different users have different uses and different preferences.
>
> Fortunately, the behavior can be toggled. But the default
> behavior should also be customizable. Users should not need
> to use `setq' for `char-fold-search' but be able to customize
> `case-fold-search'. This is a (minor) step backward, IMO.
Like with ‘case-fold-search’ and ‘isearch-case-fold-search’ we could
make ‘char-fold-search’ customizable and ‘isearch-char-fold-search’
togglable, i.e. when ‘char-fold-search’ is t:
‘C-s a’ matches [aä]
‘C-s a M-'’ matches [a]
‘C-s ä’ matches [ä]
‘C-s ä M-'’ matches [aä]
when ‘char-fold-search’ is nil:
‘C-s a’ matches [a]
‘C-s ä’ matches [ä]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: `character-fold-search' should be a user option, like `case-fold-search'
2015-09-01 22:47 ` Juri Linkov
@ 2015-09-02 0:35 ` Drew Adams
2015-09-02 9:26 ` Artur Malabarba
1 sibling, 0 replies; 7+ messages in thread
From: Drew Adams @ 2015-09-02 0:35 UTC (permalink / raw)
To: Juri Linkov; +Cc: emacs-devel
> > Subject line says it all. Users should be able to customize
> > this variable, to decide for themselves, without fiddling with
> > `setq', whether search starts by default with or without
> > character folding. They should be able to find this easily,
> > as an option in custom group `matching', right alongside
> > `case-fold-search'.
> >
> > No?
> >
> > I customized `case-fold-search' to nil long ago, and I will
> > likely do the same for `char-fold-search': set it to nil.
> > By default I want search to distinguish different characters.
> >
> > Different users have different uses and different preferences.
> >
> > Fortunately, the behavior can be toggled. But the default
> > behavior should also be customizable. Users should not need
> > to use `setq' for `char-fold-search' but be able to customize
> > `case-fold-search'. This is a (minor) step backward, IMO.
>
> Like with ‘case-fold-search’ and ‘isearch-case-fold-search’ we could
> make ‘char-fold-search’ customizable and ‘isearch-char-fold-search’
> togglable, i.e. when ‘char-fold-search’ is t:
>
> ‘C-s a’ matches [aä]
> ‘C-s a M-'’ matches [a]
> ‘C-s ä’ matches [ä]
> ‘C-s ä M-'’ matches [aä]
>
> when ‘char-fold-search’ is nil:
>
> ‘C-s a’ matches [a]
> ‘C-s ä’ matches [ä]
Read this quick, but I think you are saying the same thing
you said in your earlier post - with which I agree.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: `character-fold-search' should be a user option, like `case-fold-search'
2015-09-01 22:47 ` Juri Linkov
2015-09-02 0:35 ` Drew Adams
@ 2015-09-02 9:26 ` Artur Malabarba
2015-09-02 22:50 ` Juri Linkov
1 sibling, 1 reply; 7+ messages in thread
From: Artur Malabarba @ 2015-09-02 9:26 UTC (permalink / raw)
To: Juri Linkov; +Cc: Drew Adams, emacs-devel
> Like with ‘case-fold-search’ and ‘isearch-case-fold-search’ we could
> make ‘char-fold-search’ customizable
Yes.
> and ‘isearch-char-fold-search’ togglable
I'm not sure I understand. Character folding is already toggleable
during isearch.
Do you mean we specifically need a variable called
isearch-char-fold-search? isearch-case-fold-search is an internal
variable, not a user option, so I don't think there needs to be a
char-fold analogue.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: `character-fold-search' should be a user option, like `case-fold-search'
2015-09-02 9:26 ` Artur Malabarba
@ 2015-09-02 22:50 ` Juri Linkov
0 siblings, 0 replies; 7+ messages in thread
From: Juri Linkov @ 2015-09-02 22:50 UTC (permalink / raw)
To: Artur Malabarba; +Cc: Drew Adams, emacs-devel
>> Like with ‘case-fold-search’ and ‘isearch-case-fold-search’ we could
>> make ‘char-fold-search’ customizable
>
> Yes.
>
>> and ‘isearch-char-fold-search’ togglable
>
> I'm not sure I understand. Character folding is already toggleable
> during isearch.
> Do you mean we specifically need a variable called
> isearch-char-fold-search? isearch-case-fold-search is an internal
> variable, not a user option, so I don't think there needs to be a
> char-fold analogue.
I thought ‘isearch-char-fold-search’ might be useful as an internal
variable to propagate its value to ‘isearch-occur’ (to check it and
not display a gibberish regexp in the *Occur* header). But maybe
after renaming ‘isearch-word’ to a more suitable name like
‘isearch-regexp-based’ it could be used for the same purpose.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: `character-fold-search' should be a user option, like `case-fold-search'
2015-09-01 15:49 `character-fold-search' should be a user option, like `case-fold-search' Drew Adams
2015-09-01 22:47 ` Juri Linkov
@ 2015-09-02 9:19 ` Artur Malabarba
2015-09-02 15:57 ` Drew Adams
1 sibling, 1 reply; 7+ messages in thread
From: Artur Malabarba @ 2015-09-02 9:19 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
2015-09-01 16:49 GMT+01:00 Drew Adams <drew.adams@oracle.com>:
> Subject line says it all. Users should be able to customize
> this variable, to decide for themselves, without fiddling with
> `setq', whether search starts by default with or without
> character folding. They should be able to find this easily,
> as an option in custom group `matching', right alongside
> `case-fold-search'.
>
> No?
Yes, it should be.
I didn't make it a defcustom initially because I'm not sure how
defcustoms interact with autoloading (I know it's bad in external
packages, but I have no idea if it's ok in the emacs core).
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: `character-fold-search' should be a user option, like `case-fold-search'
2015-09-02 9:19 ` Artur Malabarba
@ 2015-09-02 15:57 ` Drew Adams
0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2015-09-02 15:57 UTC (permalink / raw)
To: bruce.connor.am; +Cc: emacs-devel
> > Subject line says it all. Users should be able to customize
> > this variable, to decide for themselves, without fiddling with
> > `setq', whether search starts by default with or without
> > character folding. They should be able to find this easily,
> > as an option in custom group `matching', right alongside
> > `case-fold-search'. No?
>
> Yes, it should be.
> I didn't make it a defcustom initially because I'm not sure how
> defcustoms interact with autoloading (I know it's bad in external
> packages, but I have no idea if it's ok in the emacs core).
Great. Hoping this becomes the case.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-09-02 22:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 15:49 `character-fold-search' should be a user option, like `case-fold-search' Drew Adams
2015-09-01 22:47 ` Juri Linkov
2015-09-02 0:35 ` Drew Adams
2015-09-02 9:26 ` Artur Malabarba
2015-09-02 22:50 ` Juri Linkov
2015-09-02 9:19 ` Artur Malabarba
2015-09-02 15:57 ` Drew Adams
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.