emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Quick function to search all Agenda buffers
@ 2007-09-23 23:02 John Wiegley
  2007-09-23 23:26 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: John Wiegley @ 2007-09-23 23:02 UTC (permalink / raw)
  To: emacs-orgmode

The following quickie will give you a command that lists all matching
lines in all of your Agenda files.

John

(defun org-multi-occur (regexp)
  (interactive "sList all lines matching: ")
  (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) "org"))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Quick function to search all Agenda buffers
  2007-09-23 23:02 Quick function to search all Agenda buffers John Wiegley
@ 2007-09-23 23:26 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2007-09-23 23:26 UTC (permalink / raw)
  To: emacs-orgmode

John Wiegley <johnw@newartisans.com> writes:

> (defun org-multi-occur (regexp)
>   (interactive "sList all lines matching: ")
>   (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) "org"))

There is a small typo:

(defun org-multi-occur (regexp)
  (interactive "sList all lines matching: ")
  (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) regexp))
                                                            ^^^^^^
Very useful, thanks!

Comparing to that, org-registry looks like using a bulldozer to tidy up
my room. But I still think it does make sense to directly look for the
files where the current buffer is linked.  Any suggestion welcome!

-- 
Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-23 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-23 23:02 Quick function to search all Agenda buffers John Wiegley
2007-09-23 23:26 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).