emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug: clock in/out from agenda throws error (release_6.31.35.g7ce8)
@ 2009-10-07  8:25 Stephan Schmitt
  2009-10-07  8:35 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Stephan Schmitt @ 2009-10-07  8:25 UTC (permalink / raw)
  To: emacs-orgmode

Hello Carsten,

when I clock in/out from the agenda (using I/O) the function
'org-format-agenda-item' is called with a non-nil 'noprefix'
argument.  This leads to an error because the variable
'thecategory' is nil in line 4610 of file org-agenda.el.

I would supply a patch if I understood the meaning of the
'noprefix' flag.

Thanks,
	Stephan

Emacs  : GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.16.6)
 of 2009-10-06
Package: Org-mode version 6.31trans (release_6.31.35.g7ce8)

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

* Re: bug: clock in/out from agenda throws error (release_6.31.35.g7ce8)
  2009-10-07  8:25 bug: clock in/out from agenda throws error (release_6.31.35.g7ce8) Stephan Schmitt
@ 2009-10-07  8:35 ` Carsten Dominik
  2009-10-07 10:04   ` Stephan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-10-07  8:35 UTC (permalink / raw)
  To: Stephan Schmitt; +Cc: emacs-orgmode

Hi Stephan,

On Oct 7, 2009, at 10:25 AM, Stephan Schmitt wrote:

> Hello Carsten,
>
> when I clock in/out from the agenda (using I/O) the function
> 'org-format-agenda-item' is called with a non-nil 'noprefix'
> argument.  This leads to an error because the variable
> 'thecategory' is nil in line 4610 of file org-agenda.el.
>
> I would supply a patch if I understood the meaning of the
> 'noprefix' flag.

This flag means that the agenda prefix should not be recomputed, only
the text related to the headline.  So the category is really unimportant
in this context, and this bug came in when I recently implemented  
special
formatting for the case that the category is a link.

I have fixed this bug, thanks.!

- Carsten

>
> Thanks,
> 	Stephan
>
> Emacs  : GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.16.6)
> of 2009-10-06
> Package: Org-mode version 6.31trans (release_6.31.35.g7ce8)
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: bug: clock in/out from agenda throws error (release_6.31.35.g7ce8)
  2009-10-07  8:35 ` Carsten Dominik
@ 2009-10-07 10:04   ` Stephan Schmitt
  0 siblings, 0 replies; 3+ messages in thread
From: Stephan Schmitt @ 2009-10-07 10:04 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

thx! for both fix and explanation

	Stephan

Carsten Dominik wrote:
> Hi Stephan,
> 
> On Oct 7, 2009, at 10:25 AM, Stephan Schmitt wrote:
> 
>> Hello Carsten,
>>
>> when I clock in/out from the agenda (using I/O) the function
>> 'org-format-agenda-item' is called with a non-nil 'noprefix'
>> argument.  This leads to an error because the variable
>> 'thecategory' is nil in line 4610 of file org-agenda.el.
>>
>> I would supply a patch if I understood the meaning of the
>> 'noprefix' flag.
> 
> This flag means that the agenda prefix should not be recomputed, only
> the text related to the headline.  So the category is really unimportant
> in this context, and this bug came in when I recently implemented special
> formatting for the case that the category is a link.
> 
> I have fixed this bug, thanks.!
> 
> - Carsten
> 
>>
>> Thanks,
>>     Stephan
>>
>> Emacs  : GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.16.6)
>> of 2009-10-06
>> Package: Org-mode version 6.31trans (release_6.31.35.g7ce8)
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> 

-- 

--------------------------------------------

Stephan Schmitt

Neural Information Processing Group
Fac. IV - Electrical Engineering
        & Computer Science
Berlin University of Technology

Office: +49 30 - 314 24 158
Mobile: +49 179 - 593 84 48
Email:
  echo 'drmabuse at cs x tu-berlin x de' \
  | sed -e 's/ x /\./g' -e 's/ at /@/'

--------------------------------------------

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

end of thread, other threads:[~2009-10-07 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07  8:25 bug: clock in/out from agenda throws error (release_6.31.35.g7ce8) Stephan Schmitt
2009-10-07  8:35 ` Carsten Dominik
2009-10-07 10:04   ` Stephan Schmitt

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