emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* erroneously extracting a timestamps from a TODO subject
@ 2017-11-13 12:12 Rainer Stengele
  2017-11-13 14:07 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Rainer Stengele @ 2017-11-13 12:12 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I have this TODO in my Org file:

*** TODO Chapter 7:21-23 - text                                                                                                     :@HOME:
     SCHEDULED: <2017-11-13 Mo>

my related agenda shows this:

Montag     13 November 2017 W46
   Privat:           7:21......        Scheduled:  TODO     Chapter -23 - text

It seems that the agenda in a strange way extracts the timestamp "7:21" from "7:21-23 - text" but leaves "-23 - test" as the TODO subject.
Could this be a bug?

The agenda I use is this one as an excerpt from my org-agenda-custom-commands:

..
	("p1" "PRIVATE agenda -  7 days - prio A,B todos - sorted prio up" ;;
	 (
	  (agenda "prio ABC agenda"
		  (
		   (org-agenda-start-with-log-mode t)
		   (org-agenda-skip-scheduled-if-done nil)
		   (org-agenda-skip-deadline-if-done nil)
		   (org-agenda-overriding-header "Today's Agenda  + Prio A+B todos ")))

	  (alltodo "todos Prio A"
		   ((org-agenda-skip-function
		     (lambda nil
		       (or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")
			   (org-agenda-skip-entry-if 'scheduled 'deadline ))))
		    (org-agenda-overriding-header "!!! TODOs Prio A: !!!")))

	  (alltodo "rest of todos"
		   ((org-agenda-skip-function
		     (lambda nil
		       (or (org-agenda-skip-entry-if (quote regexp) "\\=.*\\[#A\\]")
			   (org-agenda-skip-entry-if 'scheduled 'deadline ))))
		    (org-agenda-overriding-header "TODOs ohne Prio A: ")
		    )))
	 ((org-agenda-files privat-org-agenda-files)
	  (org-agenda-include-inactive-timestamps nil)
	  (org-agenda-span 7)
	  (org-agenda-start-on-weekday nil)
	  (org-agenda-sorting-strategy '(time-up priority-down todo-state-up))))
..

Thank you.
Regards, Rainer

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

* Re: erroneously extracting a timestamps from a TODO subject
  2017-11-13 12:12 erroneously extracting a timestamps from a TODO subject Rainer Stengele
@ 2017-11-13 14:07 ` Eric S Fraga
  2017-11-13 14:44   ` erroneously extracting a timestamps from a TODO subject - SOLVED Rainer Stengele
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2017-11-13 14:07 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

On Monday, 13 Nov 2017 at 13:12, Rainer Stengele wrote:
> Hi,
>
> I have this TODO in my Org file:
>
> *** TODO Chapter 7:21-23 - text                                                                                                     :@HOME:
>     SCHEDULED: <2017-11-13 Mo>
>
> my related agenda shows this:
>
> Montag     13 November 2017 W46
>   Privat:           7:21......        Scheduled:  TODO     Chapter -23 - text
>
> It seems that the agenda in a strange way extracts the timestamp
> "7:21" from "7:21-23 -text" but leaves "-23 -test" as the TODO
> subject.  Could this be a bug?

If you don't want org to search for times in the headline, check out
org-agenda-search-headline-for-time.

It is probably very difficult to define a pattern that excludes examples
like yours from being parsed for a time when it shouldn't...

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-155-gf474c7

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: erroneously extracting a timestamps from a TODO subject - SOLVED
  2017-11-13 14:07 ` Eric S Fraga
@ 2017-11-13 14:44   ` Rainer Stengele
  0 siblings, 0 replies; 3+ messages in thread
From: Rainer Stengele @ 2017-11-13 14:44 UTC (permalink / raw)
  To: emacs-orgmode

Am 13.11.2017 um 15:07 schrieb Eric S Fraga:
> On Monday, 13 Nov 2017 at 13:12, Rainer Stengele wrote:
>> Hi,
>>
>> I have this TODO in my Org file:
>>
>> *** TODO Chapter 7:21-23 - text                                                                                                     :@HOME:
>>      SCHEDULED: <2017-11-13 Mo>
>>
>> my related agenda shows this:
>>
>> Montag     13 November 2017 W46
>>    Privat:           7:21......        Scheduled:  TODO     Chapter -23 - text
>>
>> It seems that the agenda in a strange way extracts the timestamp
>> "7:21" from "7:21-23 -text" but leaves "-23 -test" as the TODO
>> subject.  Could this be a bug?
> 
> If you don't want org to search for times in the headline, check out
> org-agenda-search-headline-for-time.
> 
> It is probably very difficult to define a pattern that excludes examples
> like yours from being parsed for a time when it shouldn't...
> 
Hi Eric,

thanks, that solved it.
I was searching all variable names including "org" and "agenda" and "timestamp" (thanks to helm-apropos) so missed that one.

Regards,
Rainer

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

end of thread, other threads:[~2017-11-13 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-13 12:12 erroneously extracting a timestamps from a TODO subject Rainer Stengele
2017-11-13 14:07 ` Eric S Fraga
2017-11-13 14:44   ` erroneously extracting a timestamps from a TODO subject - SOLVED Rainer Stengele

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).