|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] /srv/bzr/emacs/trunk r104500: lisp/textmodes/bibtex.el: new command bibtex-search-entries |
Date: | Mon, 06 Jun 2011 14:15:56 -0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> lisp/textmodes/bibtex.el: new command bibtex-search-entries > How 'bout bibtex-isearch, where you type C-c C-s au=foo > and it incrementally searches a field that starts with "au" and whose > contents include "foo"? > It should be fairly easy to write it along the lines of > (defun bibtex-isearch () > <set isearch-search-fun-function> > <setup exit hook to restore isearch-search-fun-function>) Actually, it could even be just a buffer-local setting of isearch-search-fun-function rather than a new command. So all isearch operations operate normally except when the search string is of the form "<foo>=<bar>" in which case it searches in fields that match <foo>. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |