emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Accepted] [Orgmode] Re: [bug] org-store-link on gnus message fails


From: Tassilo Horn
Subject: Re: [Accepted] [Orgmode] Re: [bug] org-store-link on gnus message fails
Date: Thu, 13 Jan 2011 14:38:27 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Carsten Dominik <address@hidden> writes:

Hi Carsten,

> Patch 533 (http://patchwork.newartisans.com/patch/533/) is now "Accepted".

The patch below was wrong.  The patch in the next mail that used
`ignore-errors' instead of `condition-case' is the right one.

Bye,
Tassilo

>> diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
>> index 32641bf..ae5dc52 100644
>> --- a/lisp/org-gnus.el
>> +++ b/lisp/org-gnus.el
>> @@ -152,11 +152,16 @@ If `org-store-link' was called with a prefix arg the 
>> meaning of
>>         (from (mail-header-from header))
>>         (message-id (org-remove-angle-brackets (mail-header-id header)))
>>         (date (org-trim (mail-header-date header)))
>> -       (date-ts (and date (format-time-string
>> -                           (org-time-stamp-format t) (date-to-time date))))
>> -       (date-ts-ia (and date (format-time-string
>> -                              (org-time-stamp-format t t)
>> -                              (date-to-time date))))
>> +       (date-ts (and date
>> +                     (condition-case nil
>> +                         (format-time-string
>> +                          (org-time-stamp-format t)
>> +                          (date-to-time date)))))
>> +       (date-ts-ia (and date
>> +                        (condition-case nil
>> +                            (format-time-string
>> +                             (org-time-stamp-format t t)
>> +                             (date-to-time date)))))
>>         (subject (copy-sequence (mail-header-subject header)))
>>         (to (cdr (assq 'To (mail-header-extra header))))
>>         newsgroups x-no-archive desc link)
>> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]