emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* possible bug in version 5.08
@ 2007-09-14  3:25 McKelvie
  2007-09-14 12:20 ` Andrew J. Korty
  0 siblings, 1 reply; 2+ messages in thread
From: McKelvie @ 2007-09-14  3:25 UTC (permalink / raw)
  To: emacs-orgmode


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

Hi,
version 5.04 allows my to file quick notes away using remember. On upgrading to 5.08, when I try typing in my template hot key I get the error, Wrong type argument: stringp, nil. It works fine in 5.04.

Here's the relevant bit of my .emacs file (I think). Is this a bug?


;;; remember mode
(require 'remember)
(autoload 'org-remember-annotation "org")
(autoload 'org-remember-handler "org")
(setq org-directory "~/My Documents/org/")
(setq org-default-notes-file "~/My Documents/org/notes.org")
(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 [f8] 'remember)
(define-key global-map [f9] 'remember-region)
(setq org-remember-templates
 '((?t "* TODO %?\n  %a" "~/My Documents/org/mygtd.org" "Tasks")
   (?m "* %?\n  %u\n" "~/My Documents/org/mygtd.org" "Mindsweep")
   (?n "* %U %?\n\n  %a" "~/My Documents/org/notes.org" "Notes")))

Bill

[-- Attachment #1.2: Type: text/html, Size: 1762 bytes --]

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

_______________________________________________
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] 2+ messages in thread

* Re: possible bug in version 5.08
  2007-09-14  3:25 possible bug in version 5.08 McKelvie
@ 2007-09-14 12:20 ` Andrew J. Korty
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew J. Korty @ 2007-09-14 12:20 UTC (permalink / raw)
  To: emacs-orgmode

"McKelvie" <mckelvie@securenym.net> writes:

> version 5.04 allows my to file quick notes away using remember. On
> upgrading to 5.08, when I try typing in my template hot key I get the
> error, Wrong type argument: stringp, nil. It works fine in 5.04.

Sounds like a problem I was having which came down to
org-remember-apply-template expecting remember's global `annotation'
variable to be non-nil.  I temporarily (and unartfully) fixed it with

,----
| (defadvice org-remember-apply-template
|   (around ajk/fix-org-remember-apply-template activate compile)
|   (with-no-warnings
|     (if annotation
|         ad-do-it
|       (let ((annotation ""))
|         ad-do-it))))
`----

-- 
Andrew J. Korty, Deputy Information Security Officer
Office of the Vice President for Information Technology and CIO
Indiana University

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

end of thread, other threads:[~2007-09-14 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-14  3:25 possible bug in version 5.08 McKelvie
2007-09-14 12:20 ` Andrew J. Korty

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