bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11381: 23.3; isearch-search-and-update issue?


From: Stefan Monnier
Subject: bug#11381: 23.3; isearch-search-and-update issue?
Date: Sun, 20 May 2012 21:36:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> @@ -1425,7 +1445,11 @@ (defun word-search-backward (string &opt
>  of words in STRING to a regexp used to search words without regard
>  to punctuation."
>    (interactive "sWord search backward: ")
> -  (re-search-backward (word-search-regexp string nil) bound noerror count))
> +  (re-search-backward
> +   (if (functionp isearch-word)
> +       (funcall isearch-word string nil)
> +     (word-search-regexp string nil))
> +   bound noerror count))

This doesn't sound right.
 
> +                (if (eq isearch-word 'symbol-search-regexp)
> +                    "symbol "

Comparing two functions for equality is a bad idea.


        Stefan





reply via email to

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