emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tyler Smith <tyler.smith@eku.edu>
To: emacs-orgmode@gnu.org
Subject: problem with remember template
Date: Tue, 01 Jun 2010 09:54:59 -0400	[thread overview]
Message-ID: <87iq62g8ng.fsf@eku238261.eku.edu> (raw)

Hi,

I'm having trouble with a remember template. My template definitions
are:

(setq org-remember-templates
      '(("Todo" ?t "* TODO %^{Brief Description} %^G\n%?Added: %U"
                "~/org/todo.org" "Tasks")
	("Notes"   ?n "** %^{Head Line} %U %^G\n%i%?"
                   "~/org/notes.org" "Notes")
	("Appointment" ?a
"* %^{What}\n       %^{When}T\n       %^{Where}\n       %? Added: %U"
                    "~/org/appts.org" "Appointments")))

This used to work as expected for all three templates. However, when I
use the appointment template now, it halts processing after I enter the
"What" string. When it gets to %^{When}T: it deletes the string
"%^{When}T", leaving point at that location, and leaves the following
prompt unaltered in the remember buffer.

I have tried various modifications, including emacs -Q and loading only
my org-mode setup. When I do that I get the same result, with the
message text "Don't know how to make a let-bound variable an alias"
appearing in the minibuffer. This doesn't appear when I use my full
.emacs.d/init.el file.

What have I messed up here?

Thanks,

Tyler
GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-04-30 on eku238261
org-version 6.35i

my org config file:

;; org-mode
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(setq org-cycle-global-at-bob t)
(defun my-org-mode-hook ()
  (setq fill-column 80))
(add-hook 'org-mode-hook 'my-org-mode-hook)
(setq my-org-refile-targets (quote ("~/org/todo.org"
      "~/org/notes.org" "~/org/bio131.org" "~/org/research.org"
      "~/org/multivariate.org")))
(setq org-refile-targets '((my-org-refile-targets . (:maxlevel . 5))))
(setq org-log-done nil) ;; prompt for closing note? No.
(setq org-todo-keywords
      '((sequence "TODO(t)" "WAIT(w)" "STARTED(s)" "|"
                  "DONE(d)" "CANCELED(c)")))

(define-key mode-specific-map [?a] 'org-agenda)

(require 'remember)

(add-hook 'remember-mode-hook 'org-remember-apply-template)

(define-key global-map [f5] 'remember)

(custom-set-variables
 '(org-agenda-files (quote ("~/org/todo.org" "~/org/notes.org"
                    "~/org/appts.org" "~/org/bio131.org"
                    "~/org/research.org" "~/org/multivariate.org")))
 '(org-default-notes-file "~/org/notes.org")
 '(org-agenda-ndays 7)
 '(org-deadline-warning-days 14)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(org-reverse-note-order t)
 '(org-fast-tag-selection-single-key (quote expert))
 '(org-remember-store-without-prompt t)
 '(remember-annotation-functions (quote (org-remember-annotation)))
 '(remember-handler-functions (quote (org-remember-handler)))
 '(remember-in-new-frame t))

(setq org-tag-alist '(("@office" . ?o) ("@home" . ?h) ("@lab" . ?l)
                      ("@errand" . ?e) ("@computer" . ?c)
                      ("@maywoods" . ?m) ("@LCW" . ?w) ("bio131" . ?b)
		      ("teaching" . ?t) ("research" . ?r)
                      ("service" . ?s) ("social" . ?S)))

(setq org-remember-templates
      '(("Todo" ?t "* TODO %^{Brief Description} %^G\n%?Added: %U"
                "~/org/todo.org" "Tasks")
	("Notes"   ?n "** %^{Head Line} %U %^G\n%i%?"
                   "~/org/notes.org" "Notes")
	("Appointment" ?a
"* %^{What}\n       %^{When}t\n       %^{Where}\n       %? Added: %U"
                    "~/org/appts.org" "Appointments")))

             reply	other threads:[~2010-06-01 13:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 13:54 Tyler Smith [this message]
2010-06-01 14:11 ` Scheduling bug? [was: problem with remember template] Tyler Smith
2010-06-01 14:33   ` Scheduling bug? Mikael Fornius
2010-06-01 14:43     ` Mikael Fornius
2010-06-01 15:21       ` Tyler Smith
2010-06-01 15:50         ` Mikael Fornius
2010-06-01 15:57           ` Mikael Fornius
2010-06-01 16:23             ` Tyler Smith
2010-06-01 14:29 ` problem with remember template Mikael Fornius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iq62g8ng.fsf@eku238261.eku.edu \
    --to=tyler.smith@eku.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).