[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: occur patch
From: |
Geoff Gole |
Subject: |
Re: occur patch |
Date: |
Thu, 11 Nov 2010 15:30:01 +0800 |
I agree that this is useful, I have something like this in my .emacs.
A minor problem with the patch is that the result of current-word is
used unquoted. Depending on whether people expect more restrictive or
more permissive searching, it may also be desirable to add
beginning/end of symbol:
(let ((word (current-word)))
(when word
(concat "\\_<" (regexp-quote word) "\\_>")))