emacs-devel
[Top][All Lists]
Advanced

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

Re: Interpretation of a space in regexp isearch?


From: Chong Yidong
Subject: Re: Interpretation of a space in regexp isearch?
Date: Thu, 30 Aug 2012 17:01:48 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Juri Linkov <address@hidden> writes:

> (defcustom search-whitespace-regexp "\\s-+"
>   ...
>
> (defcustom re-search-whitespace-regexp search-whitespace-regexp
>   ...
>
> `re-search-whitespace-regexp' inheriting its default value
> from `search-whitespace-regexp' will provide backward-compatibility
> for users who already customized the old variable.

This trick to preserve backward compatibility doesn't work for
isearch.el's defcustoms, because they are loaded by default.  So if the
user customizes `search-whitespace-regexp', a new
`regexp-search-whitespace-regexp' in isearch.el would end up with the
default value of s-w-r, not the customized value.



reply via email to

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