emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Bug with org-remember integration
       [not found] <m38x7ubzki.fsf@mafu.ws.chemie.tu-muenchen.de>
@ 2007-08-29 10:05 ` jemarch
  2007-08-29 18:00   ` Bernt Hansen
  2007-08-30  6:42 ` Carsten Dominik
  1 sibling, 1 reply; 4+ messages in thread
From: jemarch @ 2007-08-29 10:05 UTC (permalink / raw)
  To: Thomas Baumann; +Cc: emacs-orgmode


   emacs 23 from cvs
   org version 5.06e
   remember settings as described by John Wiegleys very nice article

   When I try to add a note or todo with

   M-x remember (C-M-r)

   and I have not yet visited any org buffer

   I get the following error:

   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
     string-match("\\S-" nil)

The error is launched when invoking the `org-remember-annotation' hook
while staying in a buffer not associated with a file.

    (if (and (interactive-p) link)
	(progn
	  (setq org-stored-links
		(cons (list cpltxt link desc) org-stored-links))
	  (message "Stored: %s" (or cpltxt link)))
      (org-make-link-string link desc))))

In that case, `org-make-link-string' is called with nil values for
both `link' and `desc'.

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

* Re: Bug with org-remember integration
  2007-08-29 10:05 ` Bug with org-remember integration jemarch
@ 2007-08-29 18:00   ` Bernt Hansen
  2007-08-29 19:04     ` Sven Bretfeld
  0 siblings, 1 reply; 4+ messages in thread
From: Bernt Hansen @ 2007-08-29 18:00 UTC (permalink / raw)
  To: emacs-orgmode

jemarch@gnu.org writes:

>    emacs 23 from cvs
>    org version 5.06e
>    remember settings as described by John Wiegleys very nice article
>
>    When I try to add a note or todo with
>
>    M-x remember (C-M-r)
>
>    and I have not yet visited any org buffer
>
>    I get the following error:
>
>    Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>      string-match("\\S-" nil)
>
> The error is launched when invoking the `org-remember-annotation' hook
> while staying in a buffer not associated with a file.
>
>     (if (and (interactive-p) link)
> 	(progn
> 	  (setq org-stored-links
> 		(cons (list cpltxt link desc) org-stored-links))
> 	  (message "Stored: %s" (or cpltxt link)))
>       (org-make-link-string link desc))))
>
> In that case, `org-make-link-string' is called with nil values for
> both `link' and `desc'.

I also get this

   "if: Wrong type argument: stringp, nil"

when using C-M-r in a non-file buffer (typically the agenda)

GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-07-07 on raven, modified by Debian
Org-mode version 5.06


Bernt

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

* Re: Re: Bug with org-remember integration
  2007-08-29 18:00   ` Bernt Hansen
@ 2007-08-29 19:04     ` Sven Bretfeld
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Bretfeld @ 2007-08-29 19:04 UTC (permalink / raw)
  To: emacs-orgmode


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

On Wed, Aug 29, 2007 at 02:00:49PM -0400, Bernt Hansen wrote:
> I also get this
> 
>    "if: Wrong type argument: stringp, nil"
> 
> when using C-M-r in a non-file buffer (typically the agenda)

Same here.

Greetings,

Sven

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Bug with org-remember integration
       [not found] <m38x7ubzki.fsf@mafu.ws.chemie.tu-muenchen.de>
  2007-08-29 10:05 ` Bug with org-remember integration jemarch
@ 2007-08-30  6:42 ` Carsten Dominik
  1 sibling, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2007-08-30  6:42 UTC (permalink / raw)
  To: Thomas Baumann; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Aug 29, 2007, at 8:54, Thomas Baumann wrote:

> emacs 23 from cvs
> org version 5.06e
> remember settings as described by John Wiegleys very nice article
>
> When I try to add a note or todo with
>
> M-x remember (C-M-r)
>
> and I have not yet visited any org buffer
>
> I get the following error:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   string-match("\\S-" nil)
>   org-make-link-string(nil nil)
>   org-store-link(nil)
>   org-remember-annotation()
>   run-hook-with-args-until-success(org-remember-annotation)
>   (if remember-run-all-annotation-functions-flag (mapconcat (quote 
> identity) (delq nil ...) "\n") (run-hook-with-args-until-success 
> (quote remember-annotation-functions)))
>   (let* ((annotation ...) (buf ...)) (run-hooks (quote 
> remember-before-remember-hook)) (switch-to-buffer-other-window buf) 
> (remember-mode) (when (= ... ...) (when initial ...) (setq 
> remember-annotation annotation) (when remember-initial-contents ...) 
> (when ... ...) (setq remember-initial-contents nil) (goto-char ...)) 
> (message "Use C-c C-c to remember the data."))
>   remember(nil)
>   call-interactively(remember)
>
>
> However, this did work with version 5.04, although there was
> (obviously) no way to file the note directly.
>
> Maybe I'm missing something?
>
> Ciao
> Thomas
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

end of thread, other threads:[~2007-08-30  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m38x7ubzki.fsf@mafu.ws.chemie.tu-muenchen.de>
2007-08-29 10:05 ` Bug with org-remember integration jemarch
2007-08-29 18:00   ` Bernt Hansen
2007-08-29 19:04     ` Sven Bretfeld
2007-08-30  6:42 ` Carsten Dominik

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