emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with remember template
@ 2010-06-01 13:54 Tyler Smith
  2010-06-01 14:11 ` Scheduling bug? [was: problem with remember template] Tyler Smith
  2010-06-01 14:29 ` problem with remember template Mikael Fornius
  0 siblings, 2 replies; 9+ messages in thread
From: Tyler Smith @ 2010-06-01 13:54 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Scheduling bug? [was: problem with remember template]
  2010-06-01 13:54 problem with remember template Tyler Smith
@ 2010-06-01 14:11 ` Tyler Smith
  2010-06-01 14:33   ` Scheduling bug? Mikael Fornius
  2010-06-01 14:29 ` problem with remember template Mikael Fornius
  1 sibling, 1 reply; 9+ messages in thread
From: Tyler Smith @ 2010-06-01 14:11 UTC (permalink / raw)
  To: emacs-orgmode

Sorry, I've just realized that the problem described in my previous
email (below) is not a remember template issue at all. I get the same
(or similar) issue when using the schedule function in org.

To reproduce:
run 'emacs -Q'
open a file in org mode ("test.org")
Enter a headline (*test)
Try to schedule it ("C-c C-s")

At this point I get the message "Don't know how to make a let-bound
variable an alias"

I get this problem in the latest Emacs on my system:

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

But not in the previous version on my system:

GNU Emacs 23.1.90.2 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of
2010-02-16 on eku238261 
org-version 6.33x

So I think this is a bug that crept into org-mode or emacs, and not a
problem in my config files.

I also confirmed that the problem reported below doesn't occur in Emacs
23.1.90.2

Thanks,

Tyler


Tyler Smith <tyler.smith@eku.edu> writes:

> 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")))
>
>
>
> _______________________________________________
> 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] 9+ messages in thread

* Re: problem with remember template
  2010-06-01 13:54 problem with remember template Tyler Smith
  2010-06-01 14:11 ` Scheduling bug? [was: problem with remember template] Tyler Smith
@ 2010-06-01 14:29 ` Mikael Fornius
  1 sibling, 0 replies; 9+ messages in thread
From: Mikael Fornius @ 2010-06-01 14:29 UTC (permalink / raw)
  To: Tyler Smith; +Cc: emacs-orgmode


I will take a look at this.

-- 
Mikael Fornius

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

* Re: Scheduling bug?
  2010-06-01 14:11 ` Scheduling bug? [was: problem with remember template] Tyler Smith
@ 2010-06-01 14:33   ` Mikael Fornius
  2010-06-01 14:43     ` Mikael Fornius
  0 siblings, 1 reply; 9+ messages in thread
From: Mikael Fornius @ 2010-06-01 14:33 UTC (permalink / raw)
  To: Tyler Smith; +Cc: emacs-orgmode


> I get this problem in the latest Emacs on my system:

I remember vaguely that I have read something about a change in let-bound
behavior with new emacs. Maybe I can find it again...

> So I think this is a bug that crept into org-mode or emacs, and not a
> problem in my config files.

Probably.

> I also confirmed that the problem reported below doesn't occur in Emacs
> 23.1.90.2

Great!

-- 
Mikael Fornius

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

* Re: Scheduling bug?
  2010-06-01 14:33   ` Scheduling bug? Mikael Fornius
@ 2010-06-01 14:43     ` Mikael Fornius
  2010-06-01 15:21       ` Tyler Smith
  0 siblings, 1 reply; 9+ messages in thread
From: Mikael Fornius @ 2010-06-01 14:43 UTC (permalink / raw)
  To: Tyler Smith; +Cc: emacs-orgmode

Mikael Fornius <mfo@abc.se> writes:

> Maybe I can find it again...

I think it was this 

--8<---------------cut here---------------start------------->8---
* Lisp changes in Emacs 24.1

** frame-local variables cannot be let-bound any more.
--8<---------------cut here---------------end--------------->8---

in emacs NEWS file I was thinking about and it is probably not relevant
here.
 
As you found out the problem is fixed in later versions of emacs, thanks
for telling!

-- 
Mikael Fornius

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

* Re: Scheduling bug?
  2010-06-01 14:43     ` Mikael Fornius
@ 2010-06-01 15:21       ` Tyler Smith
  2010-06-01 15:50         ` Mikael Fornius
  0 siblings, 1 reply; 9+ messages in thread
From: Tyler Smith @ 2010-06-01 15:21 UTC (permalink / raw)
  To: emacs-orgmode

Mikael Fornius <mfo@abc.se> writes:

> As you found out the problem is fixed in later versions of emacs, thanks
> for telling!

Sorry, you misunderstood. It's fixed in an earlier version (23), but
broken in the later version (24).

Tyler

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

* Re: Scheduling bug?
  2010-06-01 15:21       ` Tyler Smith
@ 2010-06-01 15:50         ` Mikael Fornius
  2010-06-01 15:57           ` Mikael Fornius
  0 siblings, 1 reply; 9+ messages in thread
From: Mikael Fornius @ 2010-06-01 15:50 UTC (permalink / raw)
  To: Tyler Smith; +Cc: emacs-orgmode

Tyler Smith <tyler.smith@eku.edu> writes:

> Sorry, you misunderstood. It's fixed in an earlier version (23), but
> broken in the later version (24).

Sorry :)

I have now upgraded both org-mode and emacs to latest development version
and I get the same error as you described:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "Don't know how to make a let-bound variable an alias")
  defvaralias(view-diary-entries-initially calendar-view-diary-initially-flag nil)
--8<---------------cut here---------------end--------------->8---

It looks like a problem in emacs calendar. I will see if I can understand
or fix it.

-- 
Mikael Fornius

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

* Re: Scheduling bug?
  2010-06-01 15:50         ` Mikael Fornius
@ 2010-06-01 15:57           ` Mikael Fornius
  2010-06-01 16:23             ` Tyler Smith
  0 siblings, 1 reply; 9+ messages in thread
From: Mikael Fornius @ 2010-06-01 15:57 UTC (permalink / raw)
  To: Tyler Smith; +Cc: emacs-orgmode


I was wrong it does work for me with this fresh from today setup:

GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-01 on eee
Org-mode version 6.36trans (release_6.36.141.gbc53b)

(earlier I forgot to load the latest org-mode from $HOME).

Does it for you?

-- 
Mikael Fornius

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

* Re: Scheduling bug?
  2010-06-01 15:57           ` Mikael Fornius
@ 2010-06-01 16:23             ` Tyler Smith
  0 siblings, 0 replies; 9+ messages in thread
From: Tyler Smith @ 2010-06-01 16:23 UTC (permalink / raw)
  To: emacs-orgmode

Mikael Fornius <mfo@abc.se> writes:

> I was wrong it does work for me with this fresh from today setup:
>
> GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-01 on eee
> Org-mode version 6.36trans (release_6.36.141.gbc53b)
>
> (earlier I forgot to load the latest org-mode from $HOME).
>
> Does it for you?

It does, thanks! Updating to org-mode 6.36trans from the git repository
fixed the problem. 

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

Cheers,

Tyler

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

end of thread, other threads:[~2010-06-01 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-01 13:54 problem with remember template Tyler Smith
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

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