From: Geoff Gole <geoffgole@gmail.com>
To: Nathaniel Flath <flat0103@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: occur patch
Date: Thu, 11 Nov 2010 15:30:01 +0800 [thread overview]
Message-ID: <AANLkTikC-3Wt=RCdQKG+XDAuZceegjb4Z2YbBg0402Ad@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin-UY1dDcEC2-1XJ-R8WMPmuX-YYpcjW2jioU6E@mail.gmail.com>
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) "\\_>")))
next prev parent reply other threads:[~2010-11-11 7:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 4:44 occur patch Nathaniel Flath
2010-11-11 7:30 ` Geoff Gole [this message]
2010-11-11 20:10 ` Stefan Monnier
2010-11-14 22:19 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikC-3Wt=RCdQKG+XDAuZceegjb4Z2YbBg0402Ad@mail.gmail.com' \
--to=geoffgole@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=flat0103@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.