GNU bug report logs -
#11381
23.3; isearch-search-and-update issue?
Previous Next
Reported by: Andy Grover <andy <at> groveronline.com>
Date: Sun, 29 Apr 2012 23:00:02 UTC
Severity: wishlist
Found in version 23.3
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #53 received at 11381 <at> debbugs.gnu.org (full text, mbox):
>> Do we really need those 4? I think we can just get away with
>> symbol-search-regexp (whose name also needs to start with "isearch-").
> In the next patch these functions are removed and symbol-search-regexp
> is renamed to isearch-symbol-regexp.
Thanks, see comments below.
>>> Also it splits the standard default part of `isearch-search-fun'
>> You could actually set isearch-search-fun-function's default to
>> isearch-search-fun-default so we can just unconditionally call
>> isearch-search-fun-function's.
> It still needs protection against such cases as currently existing in
> several places in internal and probably also in external packages:
> (let ((isearch-search-fun-function nil))
> (isearch-search-fun))
For the internal cases, the above should be replaced by a call to
isearch-search-fun-default. Obviously, if there are external such
cases, we'll indeed need to additionally keep:
> (funcall (or isearch-search-fun-function 'isearch-search-fun-default))
[...]
> === modified file 'lisp/isearch.el'
> --- lisp/isearch.el 2012-05-17 00:03:49 +0000
> +++ lisp/isearch.el 2012-05-28 08:38:31 +0000
> @@ -503,6 +512,7 @@ (defvar isearch-mode-map
> (define-key map "\M-sr" 'isearch-toggle-regexp)
> (define-key map "\M-sw" 'isearch-toggle-word)
> + (define-key map "\M-s_" 'isearch-toggle-symbol)
BTW, could you add isearch-toggle-case-fold to the M-s prefix, while
you're at it?
> (defun Info-isearch-search ()
I think we can share even more code here with isearch.el.
But in any case, the patch looks good now, thank you,
Stefan
This bug report was last modified 12 years and 205 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.