Charles Cave | 23 Dec 00:47

Remember mode (frist time) reports wrong type argument: stringp, nil

The first time I use Remember, after I file the note with C-c C-c
I get a message: Wrong type argument: stringp, nil
When I repeat C-c C-c  the note is filed successfully.

When I run Remember again, there is no problem.

My org version: 6.15d
My emacs version: 22.1.1   (GNU on Windows XP)

Relevant part of .emacs file:

(setq load-path (append load-path (list "L:/elisp")))
(add-to-list 'load-path "L:/elisp/")
(add-to-list 'load-path "L:/elisp/remember-1.9/")

;; 20th JUly 2007 following line:
;; (require 'org-export-latex)

(autoload 'remember "remember" nil t)
(autoload 'remember-region "remember" nil t)

(setq org-directory "~/orgfiles/")
(setq org-default-notes-file "~/.notes")
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(define-key global-map "\C-cr" 'org-remember)

(setq org-remember-templates
     '(("Todo" ?t "* TODO %? %^g\n %i\n " "E:/GTD/newgtd.org" "Tasks")
(Continue reading)

Carsten Dominik | 23 Dec 23:04
Favicon

Re: Remember mode (frist time) reports wrong type argument:stringp, nil

Hi Charles,

this is a strange bug which should not happen.

Basically what seems to happen is this:

I do

   (find-file-no-select file)

followed by

   (with-current-buffer (get-file-buffer file))

For some strange reason, get-file-buffer cannot find the buffer
even though it has just been created.  Is there something strange
with the file name, is is accessed through a shortcut/link?

Can you please try this:

In the file where you want to store the item, insert "(buffer-file- 
name)",
press `C-c C-e' with the cursor after that line and memorize the result.

Then compare with the result of evaluating

(expand-file-name "...")

where you insert the file name exactly as given in the remember template
you are using to produce this bug.
(Continue reading)


Gmane