emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: rbenit68@yahoo.es, emacs-orgmode@gnu.org
Subject: RE: Filtering entries of a journal file with its datestamp
Date: Fri, 16 Apr 2010 22:52:19 +0200	[thread overview]
Message-ID: <BLU104-W18CDD916C7B22DA4C34AAA840E0@phx.gbl> (raw)
In-Reply-To: <440149.86075.qm@web23803.mail.ird.yahoo.com>


[-- Attachment #1.1: Type: text/plain, Size: 1901 bytes --]


M-x occur with regexp

 ^\(\*\|Subject\s-+1\) 

gives

5 matches for "^\(\*\|Subject\s-+1\)" in buffer: temp.org
      1:* <2010-04-16 fri>
      2:Subject 1
      4:Subject 1
      7:* <2010-04-17 sat>
     10:Subject 1

  Vincent.



> Date: Fri, 16 Apr 2010 05:28:26 +0000
> From: rbenit68@yahoo.es
> To: Emacs-orgmode@gnu.org
> CC: 
> Subject: [Orgmode] Filtering entries of a journal file with its datestamp
> 
> 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 org-occur, but only marks the searched string; I also have tried occur but generate a list without the dates, and cannot be printed.
> 
> I would appreciate any hint.
> 
> Miguel Ruiz
> Sevilla, Spain.
>  
> 
> 
> 
> 
> 
>       
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 		 	   		  
_________________________________________________________________
Consultez gratuitement vos emails Orange, Gmail, Free, ... directement dans HOTMAIL !
http://www.windowslive.fr/hotmail/agregation/

[-- Attachment #1.2: Type: text/html, Size: 2595 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2010-04-16 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-16  5:28 Filtering entries of a journal file with its datestamp Miguel Ruiz
2010-04-16 20:52 ` Vincent Belaïche [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU104-W18CDD916C7B22DA4C34AAA840E0@phx.gbl \
    --to=vincent.b.1@hotmail.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rbenit68@yahoo.es \
    /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 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).