* Call org-remember on a "RE:" post raises error in gnus
@ 2010-06-30 6:50 Kane Dou
2010-06-30 11:11 ` Bernt Hansen
0 siblings, 1 reply; 8+ messages in thread
From: Kane Dou @ 2010-06-30 6:50 UTC (permalink / raw)
To: emacs-orgmode
The error is:
org-replace-escapes: Wrong type argument: stringp, nil
And org-remember works fine on a parent post.
It seems that gnus doesn't print the title of a reply post, so
org-remember can't catch it and this leads to the error.
Any workaround?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Call org-remember on a "RE:" post raises error in gnus
2010-06-30 6:50 Call org-remember on a "RE:" post raises error in gnus Kane Dou
@ 2010-06-30 11:11 ` Bernt Hansen
2010-06-30 13:13 ` Kane Dou
2010-06-30 13:21 ` Kane Dou
0 siblings, 2 replies; 8+ messages in thread
From: Bernt Hansen @ 2010-06-30 11:11 UTC (permalink / raw)
To: Kane Dou; +Cc: emacs-orgmode
Kane Dou <douqilong@gmail.com> writes:
> The error is:
> org-replace-escapes: Wrong type argument: stringp, nil
>
> And org-remember works fine on a parent post.
> It seems that gnus doesn't print the title of a reply post, so
> org-remember can't catch it and this leads to the error.
> Any workaround?
This works fine for me with both org-remember and org-capture. Can you
provide more details and a backtrace?
-Bernt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Call org-remember on a "RE:" post raises error in gnus
2010-06-30 11:11 ` Bernt Hansen
@ 2010-06-30 13:13 ` Kane Dou
2010-07-01 7:04 ` David Maus
2010-06-30 13:21 ` Kane Dou
1 sibling, 1 reply; 8+ messages in thread
From: Kane Dou @ 2010-06-30 13:13 UTC (permalink / raw)
To: emacs-orgmode
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1380 bytes --]
Bernt Hansen <bernt@norang.ca> writes:
> Kane Dou <douqilong@gmail.com> writes:
>
>> The error is:
>> org-replace-escapes: Wrong type argument: stringp, nil
>>
>> And org-remember works fine on a parent post.
>> It seems that gnus doesn't print the title of a reply post, so
>> org-remember can't catch it and this leads to the error.
>> Any workaround?
>
> This works fine for me with both org-remember and org-capture. Can you
> provide more details and a backtrace?
>
> -Bernt
>
> _______________________________________________
> 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
Hi, Bernt
I use:
Ubuntu 10.04
Emacs 23.1.1
Gnus 5.13
Org Mode 6.36c
No special settings for gnus or org-remember.
When I call "org-remember" on a post like this: "O [ 40: Istvan ADAM ]
Erroneous display when working on remote Unix machine".
The backtrace("debug-on-entry" on "org-replace-escapes", no
backtrace will occur if "org-remember" works normally):
Debugger entered--entering a function: * copy-alist((("%c") ("%F"
. "Istvan ADAM <istvan.adam@yahoo.com>") ("%f" . "Istvan ADAM") ("%T")
("%t" . "?") ("%s" . "Erroneous display when working on remote Unix
machine") ("%m"
. "20060509074313.51846.qmail@web37102.mail.mud.yahoo.com"))) *
byte-code("Æ\b!ÇÈÇ\x19\x1a^[\x1c\x1d\x1e\x18\x0e\x18A\x16\x18@\x13q
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Call org-remember on a "RE:" post raises error in gnus
2010-06-30 13:13 ` Kane Dou
@ 2010-07-01 7:04 ` David Maus
2010-07-01 11:11 ` Kane Dou
0 siblings, 1 reply; 8+ messages in thread
From: David Maus @ 2010-07-01 7:04 UTC (permalink / raw)
To: Kane Dou; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 550 bytes --]
Kane Dou wrote:
>When I call "org-remember" on a post like this: "O [ 40: Istvan ADAM ]
>Erroneous display when working on remote Unix machine".
>The backtrace("debug-on-entry" on "org-replace-escapes", no
>backtrace will occur if "org-remember" works normally):
Can you provide the backtrace for the error?
M-x toggle-debug-on-error RET
To get a backtrace without byte-code, just reload Org before provoking
the error (M-x org-reload RET).
HTH
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Call org-remember on a "RE:" post raises error in gnus
2010-07-01 7:04 ` David Maus
@ 2010-07-01 11:11 ` Kane Dou
2010-07-01 12:16 ` David Maus
0 siblings, 1 reply; 8+ messages in thread
From: Kane Dou @ 2010-07-01 11:11 UTC (permalink / raw)
To: emacs-orgmode
David Maus <dmaus@ictsoc.de> writes:
> Kane Dou wrote:
>>When I call "org-remember" on a post like this: "O [ 40: Istvan ADAM ]
>>Erroneous display when working on remote Unix machine".
>
>>The backtrace("debug-on-entry" on "org-replace-escapes", no
>>backtrace will occur if "org-remember" works normally):
>
> Can you provide the backtrace for the error?
>
> M-x toggle-debug-on-error RET
>
> To get a backtrace without byte-code, just reload Org before provoking
> the error (M-x org-reload RET).
>
> HTH
> -- David
It returns this:
Debugger entered--Lisp error: (error "Cannot return from the debugger in an error")
string-match("%-?[0-9.]*c" nil)
org-replace-escapes("Email from %f: %.30s" (("%c") ("%F" . "David Maus <dmaus@ictsoc.de>") ("%f" . "David Maus") ("%T") ("%t" . "?") ("%s" . "Re: Re: Call org-remember on a \"RE:\" post raises error in gnus") ("%m" . "87630zvg2e.wl%dmaus@ictsoc.de")))
org-email-link-description()
org-gnus-store-link()
run-hook-with-args-until-success(org-gnus-store-link)
org-store-link(nil)
org-remember-annotation()
run-hook-with-args-until-success(org-remember-annotation)
remember(nil)
org-do-remember()
org-remember(nil)
call-interactively(org-remember nil nil)
And I want to update a fact that the error sometimes also happens on the
parent post.
-Kane
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Call org-remember on a "RE:" post raises error in gnus
2010-07-01 11:11 ` Kane Dou
@ 2010-07-01 12:16 ` David Maus
2010-07-01 13:00 ` Kane Dou
0 siblings, 1 reply; 8+ messages in thread
From: David Maus @ 2010-07-01 12:16 UTC (permalink / raw)
To: Kane Dou; +Cc: emacs-orgmode
[-- Attachment #1.1.1: Type: text/plain, Size: 1288 bytes --]
Kane Dou wrote:
>David Maus <dmaus@ictsoc.de> writes:
>> Kane Dou wrote:
>>>When I call "org-remember" on a post like this: "O [ 40: Istvan ADAM ]
>>>Erroneous display when working on remote Unix machine".
>>
>>>The backtrace("debug-on-entry" on "org-replace-escapes", no
>>>backtrace will occur if "org-remember" works normally):
>>
>> Can you provide the backtrace for the error?
>>
>> M-x toggle-debug-on-error RET
>>
>> To get a backtrace without byte-code, just reload Org before provoking
>> the error (M-x org-reload RET).
>>
>> HTH
>> -- David
This bug was fixed in the development tree by
,----
| commit 19aec9ed9a53a18deaa58b69714bae724aec7111
| Author: Carsten Dominik <carsten.dominik@gmail.com>
| Date: Mon May 10 08:46:03 2010 +0200
|
| Fix minor bug
|
| Patch by Gregory J. Grubbs
|
`----
after 6.36c was released. If you got 6.36c from the Orgmode web page
you could apply the attached patch to fix this issue.
It's the commit w/o the change to ChangeLog. Simply move to Org
mode installation directory and use the patch util
patch < /path/to/patch
or, to see if patching will work before applying the patch
patch --dry-run < /path/to/patch
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.1.2: fix-org-replace-escapes.patch --]
[-- Type: application/octet-stream, Size: 792 bytes --]
commit 19aec9ed9a53a18deaa58b69714bae724aec7111
Author: Carsten Dominik <carsten.dominik@gmail.com>
Date: Mon May 10 08:46:03 2010 +0200
Fix minor bug
Patch by Gregory J. Grubbs
Modified lisp/org.el
diff --git a/lisp/org.el b/lisp/org.el
index 8f9e16c..85c79ee 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17700,7 +17700,7 @@ so values can contain further %-escapes if they are define later in TABLE."
e re rpl)
(while (setq e (pop tbl))
(setq re (concat "%-?[0-9.]*" (substring (car e) 1)))
- (when (string-match re (cdr e))
+ (when (and (cdr e) (string-match re (cdr e)))
(let ((sref (substring (cdr e) (match-beginning 0) (match-end 0)))
(safe "SREF"))
(add-text-properties 0 3 (list 'sref sref) safe)
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: Call org-remember on a "RE:" post raises error in gnus
2010-07-01 12:16 ` David Maus
@ 2010-07-01 13:00 ` Kane Dou
0 siblings, 0 replies; 8+ messages in thread
From: Kane Dou @ 2010-07-01 13:00 UTC (permalink / raw)
To: emacs-orgmode
David Maus <dmaus@ictsoc.de> writes:
> Kane Dou wrote:
>>David Maus <dmaus@ictsoc.de> writes:
>
>>> Kane Dou wrote:
>>>>When I call "org-remember" on a post like this: "O [ 40: Istvan ADAM ]
>>>>Erroneous display when working on remote Unix machine".
>>>
>>>>The backtrace("debug-on-entry" on "org-replace-escapes", no
>>>>backtrace will occur if "org-remember" works normally):
>>>
>>> Can you provide the backtrace for the error?
>>>
>>> M-x toggle-debug-on-error RET
>>>
>>> To get a backtrace without byte-code, just reload Org before provoking
>>> the error (M-x org-reload RET).
>>>
>>> HTH
>>> -- David
>
> This bug was fixed in the development tree by
>
> ,----
> | commit 19aec9ed9a53a18deaa58b69714bae724aec7111
> | Author: Carsten Dominik <carsten.dominik@gmail.com>
> | Date: Mon May 10 08:46:03 2010 +0200
> |
> | Fix minor bug
> |
> | Patch by Gregory J. Grubbs
> |
> `----
>
> after 6.36c was released. If you got 6.36c from the Orgmode web page
> you could apply the attached patch to fix this issue.
>
> It's the commit w/o the change to ChangeLog. Simply move to Org
> mode installation directory and use the patch util
>
> patch < /path/to/patch
>
> or, to see if patching will work before applying the patch
>
> patch --dry-run < /path/to/patch
>
>
> HTH,
> -- David
>
>
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
>
> _______________________________________________
> 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
Hi David,
The patch is useful, and org-remember now works fine in gnus.
Thanks so much.
-Kane
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Call org-remember on a "RE:" post raises error in gnus
2010-06-30 11:11 ` Bernt Hansen
2010-06-30 13:13 ` Kane Dou
@ 2010-06-30 13:21 ` Kane Dou
1 sibling, 0 replies; 8+ messages in thread
From: Kane Dou @ 2010-06-30 13:21 UTC (permalink / raw)
To: emacs-orgmode
Seems the byte code can not be sent.
Here's what follows the byte-code line:
* org-replace-escapes("Email from %f: %.30s" (("%c") ("%F" . "Istvan
ADAM <istvan.adam@yahoo.com>") ("%f" . "Istvan ADAM") ("%T") ("%t"
. "?") ("%s" . "Erroneous display when working on remote Unix
machine") ("%m" . "20060509074313.51846.qmail@web37102.mail.mud.yahoo.com")))
org-email-link-description() org-gnus-store-link()
run-hook-with-args-until-success(org-gnus-store-link)
org-store-link(nil) org-remember-annotation()
run-hook-with-args-until-success(org-remember-annotation)
remember(nil) org-do-remember() org-remember(nil)
call-interactively(org-remember nil nil)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-07-01 13:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-30 6:50 Call org-remember on a "RE:" post raises error in gnus Kane Dou
2010-06-30 11:11 ` Bernt Hansen
2010-06-30 13:13 ` Kane Dou
2010-07-01 7:04 ` David Maus
2010-07-01 11:11 ` Kane Dou
2010-07-01 12:16 ` David Maus
2010-07-01 13:00 ` Kane Dou
2010-06-30 13:21 ` Kane Dou
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.