* Listing filtered entries of a journal file with its datestamp
@ 2010-04-16 16:09 Miguel Ruiz
2010-04-19 17:47 ` Ali Tofigh
0 siblings, 1 reply; 2+ messages in thread
From: Miguel Ruiz @ 2010-04-16 16:09 UTC (permalink / raw)
To: emacs-orgmode
I have a simple journal .org file like this:
------Begin file---------------
* <2010-04-16 fri>
Subject 1
Subject 2
Subject 1
Subject 40
* <2010-04-17 sat>
Subject 2
Subject 3
Subject 1
Subject 40
------End file------------------
Every subject is only one line.
I would like to print the journal but including only the lines with a specific content, determined by a search, like the following
-----Buffer to print---------
* <2010-04-16 fri>
Subject 1
Subject 1
* <2010-04-17 sat>
Subject 1
------------------------------
------Another buffer to print-
* <2010-04-16 fri>
Subject 40
* <2010-04-17 sat>
Subject 40
------------------------------
I have tried M-x org-occur, but only marks the searched string; I also have tried M-x occur, but generates a list without the dates, and cannot be printed.
I would appreciate any hint.
Miguel Ruiz
Sevilla, Spain.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Listing filtered entries of a journal file with its datestamp
2010-04-16 16:09 Listing filtered entries of a journal file with its datestamp Miguel Ruiz
@ 2010-04-19 17:47 ` Ali Tofigh
0 siblings, 0 replies; 2+ messages in thread
From: Ali Tofigh @ 2010-04-19 17:47 UTC (permalink / raw)
To: Miguel Ruiz; +Cc: emacs-orgmode
On Fri, Apr 16, 2010 at 12:09, Miguel Ruiz <rbenit68@yahoo.es> wrote:
> I have a simple journal .org file like this:
>
> ------Begin file---------------
> * <2010-04-16 fri>
> Subject 1
> Subject 2
> Subject 1
> Subject 40
>
> * <2010-04-17 sat>
> Subject 2
> Subject 3
> Subject 1
> Subject 40
> ------End file------------------
>
> Every subject is only one line.
>
> I would like to print the journal but including only the lines with a specific content, determined by a search, like the following
>
> -----Buffer to print---------
> * <2010-04-16 fri>
> Subject 1
> Subject 1
>
> * <2010-04-17 sat>
> Subject 1
> ------------------------------
>
> ------Another buffer to print-
> * <2010-04-16 fri>
> Subject 40
>
> * <2010-04-17 sat>
> Subject 40
> ------------------------------
>
> I have tried M-x org-occur, but only marks the searched string; I also have tried M-x occur, but generates a list without the dates, and cannot be printed.
try using headlines for the lines under your heading and then a sparse
tree with a regexp (C-c / /):
------Begin file---------------
* <2010-04-16 fri>
** Subject 1
** Subject 2
** Subject 1
** Subject 40
* <2010-04-17 sat>
** Subject 2
** Subject 3
** Subject 1
** Subject 40
------End file------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-19 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 16:09 Listing filtered entries of a journal file with its datestamp Miguel Ruiz
2010-04-19 17:47 ` Ali Tofigh
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.