emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Cannot use org-mode and remember templates
@ 2009-07-16 10:38 ` Frank Rust
  2009-07-16 14:08   ` Sébastien Vauban
                     ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Frank Rust @ 2009-07-16 10:38 UTC (permalink / raw)
  To: emacs-orgmode


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

Hi,

I'm using a new version of emacs for windows (GNU Emacs 23.1.50.1
(i386-mingw-nt5.1.2600) of 2009-06-30 on LENNART-69DE564 (patched)) which
provides Org-mode in version 6.21b.

After the last upgrade the remember templates are not working anymore.
Everytime I select a template with my shortcuts I receive the following
error:

Select template: [t]odo [j]ournal*
org-remember-apply-template: Wrong type argument: listp, 5*


This is the relevant entry in my .emacs

;; Remember mode
(require 'remember)
(org-remember-insinuate)
(setq org-remember-store-without-prompt t)

(setq org-remember-templates
     '(("Todo" ?t "* TODO %^{Brief Description} %^g\nAdded: %U"
"~/emacs/gtd/gtd.org" "Tasks")
      ("Journal" ?j "\n* %^{topic} %T \n%i%?\n" "journal.org" "Ideas")))


Unfortunately I'm not very experienced in lisp programming and I couldn't
find any hints with google. Is there any way to fix this?

Thanks for your efforts and regards,
Frank

[-- Attachment #1.2: Type: text/html, Size: 1229 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] 13+ messages in thread

* Re: Cannot use org-mode and remember templates
  2009-07-16 10:38 ` Cannot use org-mode and remember templates Frank Rust
@ 2009-07-16 14:08   ` Sébastien Vauban
  2009-07-16 14:33   ` Nick Dokos
  2009-07-16 21:22   ` Bastien
  2 siblings, 0 replies; 13+ messages in thread
From: Sébastien Vauban @ 2009-07-16 14:08 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Frank,

Frank Rust wrote:
> After the last upgrade the remember templates are not working anymore.
> Everytime I select a template with my shortcuts I receive the following
> error:
>
> Select template: [t]odo [j]ournal*
> org-remember-apply-template: Wrong type argument: listp, 5*

The error makes me think at this: don't you have set
`org-time-stamp-rounding-minutes'?  If yes, check that it looks like:

--8<---------------cut here---------------start------------->8---
;; number of minutes to round time stamps to
(setq org-time-stamp-rounding-minutes '(5 5))
--8<---------------cut here---------------end--------------->8---

Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Cannot use org-mode and remember templates
  2009-07-16 10:38 ` Cannot use org-mode and remember templates Frank Rust
  2009-07-16 14:08   ` Sébastien Vauban
@ 2009-07-16 14:33   ` Nick Dokos
  2009-07-16 16:32     ` Frank Rust
  2009-07-16 21:22   ` Bastien
  2 siblings, 1 reply; 13+ messages in thread
From: Nick Dokos @ 2009-07-16 14:33 UTC (permalink / raw)
  To: Frank Rust; +Cc: emacs-orgmode

Frank Rust <rustikus@gmail.com> wrote:


> I'm using a new version of emacs for windows (GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-06-30 on LENNART-69DE564 (patched)) which provides
> Org-mode in version 6.21b.
> 
> After the last upgrade the remember templates are not working anymore. Everytime I select a template with my shortcuts I receive the following error:
> 
> Select template: [t]odo [j]ournal
> org-remember-apply-template: Wrong type argument: listp, 5
> 

Please provide a backtrace: set the variable `debug-on-error' to t, e.g.
by doing

   M-x set-var<RET>debug-on-error<RET>t<RET>


and do whatever is necessary to produce the error - the backtrace should
appear in a buffer called '*Backtrace*. If you can do that with
uncompiled code, that is vastly preferable: do 

  M-x load-library <RET>org-remember.el<RET>

first and then try to produce the error.

Thanks,
Nick

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

* Re: Cannot use org-mode and remember templates
  2009-07-16 14:33   ` Nick Dokos
@ 2009-07-16 16:32     ` Frank Rust
  2009-07-16 17:07       ` Nick Dokos
  0 siblings, 1 reply; 13+ messages in thread
From: Frank Rust @ 2009-07-16 16:32 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


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

>
> Please provide a backtrace: set the variable `debug-on-error' to t, e.g.
> by doing
>
>   M-x set-var<RET>debug-on-error<RET>t<RET>
>

>
> and do whatever is necessary to produce the error - the backtrace should
> appear in a buffer called '*Backtrace*.


Debugger entered--Lisp error: (wrong-type-argument listp 5)
  org-current-time()
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)



> If you can do that with
> uncompiled code, that is vastly preferable: do
>
>  M-x load-library <RET>org-remember.el<RET>
>
> first and then try to produce the error.
>


Debugger entered--Lisp error: (wrong-type-argument listp 5)
  org-current-time()
  (or org-overriding-default-time (org-current-time))
  (let* ((entry ...) (ct ...) (dct ...) (ct1 ...) (tpl ...) (plist-p ...)
(file ...) (headline ...) (v-c ...) (v-x ...) (v-t ...) (v-T ...) (v-u ...)
(v-U ...) (v-i ...) (v-a ...) (clipboards ...) (v-A ...) (v-n
user-full-name) (v-k ...) (v-K ...) v-I (org-startup-folded nil)
(org-inhibit-startup t) org-time-was-given org-end-time-was-given x prompt
completions char time pos default histvar) (when (functionp file) (setq file
...)) (when (and file ...) (setq file ...)) (setq org-store-link-plist
(append ... org-store-link-plist)) (unless tpl (setq tpl "") (message "No
template") (ding) (sit-for 1)) (erase-buffer) (insert
(substitute-command-keys ...)) (insert tpl) (goto-char (point-min)) (while
(re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t) (when ... ...)
(replace-match ... t t)) (goto-char (point-min)) (while (re-search-forward
"%\\[\\(.+\\)\\]" nil t) (let ... ... ... ...)) (goto-char (point-min))
(while (re-search-forward "%\\((.+)\\)" nil t) (goto-char ...) (let ... ...
...)) (when plist-p (goto-char ...) (while ... ...)) (let (...) (org-mode)
(org-remember-mode 1)) (if (and file ... ...) (org-set-local ... file)) (if
headline (org-set-local ... headline)) (goto-char (point-min)) (while
(re-search-forward "%^\\({\\([^}]*\\)}\\)?\\([gGtTuUCLp]\\)?" nil t) (setq
char ... prompt ...) (goto-char ...) (replace-match "") (setq completions
nil default nil) (when prompt ...) (cond ... ... ... ... ... ...))
(goto-char (point-min)) (if (re-search-forward "%\\?" nil t) (replace-match
"") (and ... ...)))
  (if org-remember-templates (let* (... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... v-I ... ... org-time-was-given
org-end-time-was-given x prompt completions char time pos default histvar)
(when ... ...) (when ... ...) (setq org-store-link-plist ...) (unless tpl
... ... ... ...) (erase-buffer) (insert ...) (insert tpl) (goto-char ...)
(while ... ... ...) (goto-char ...) (while ... ...) (goto-char ...) (while
... ... ...) (when plist-p ... ...) (let ... ... ...) (if ... ...) (if
headline ...) (goto-char ...) (while ... ... ... ... ... ... ...) (goto-char
...) (if ... ... ...)) (let (...) (org-mode) (org-remember-mode 1)))
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)
  recursive-edit()
  byte-code(" xxxxxxxx --> bytecode" [unread-command-char debugger-args x
debugger-buffer noninteractive debugger-batch-max-lines -1 debug
backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode
debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string
kill-emacs "" nil recursive-edit middlestart buffer-read-only
standard-output] 4)
  debug(error (wrong-type-argument listp 5))
  org-current-time()
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)


>
> Thanks,
> Nick
>

I hope this helps.

Thanks and regards,
Frank

[-- Attachment #1.2: Type: text/html, Size: 5138 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] 13+ messages in thread

* Re: Cannot use org-mode and remember templates
  2009-07-16 16:32     ` Frank Rust
@ 2009-07-16 17:07       ` Nick Dokos
  2009-07-16 20:41         ` Sébastien Vauban
  2009-07-17 14:03         ` Frank Rust
  0 siblings, 2 replies; 13+ messages in thread
From: Nick Dokos @ 2009-07-16 17:07 UTC (permalink / raw)
  To: Frank Rust; +Cc: emacs-orgmode

Frank Rust <rustikus@gmail.com> wrote:

> Debugger entered--Lisp error: (wrong-type-argument listp 5)
>   org-current-time()
>   org-remember-apply-template()
>   run-hooks(text-mode-hook remember-mode-hook)
>   apply(run-hooks (text-mode-hook remember-mode-hook))
>   run-mode-hooks(remember-mode-hook)
>   remember-mode()
>   remember(nil)
>   call-interactively(remember nil nil)
> 
>  
> 
> Debugger entered--Lisp error: (wrong-type-argument listp 5)
>   org-current-time()
>
> ... 
> 
> I hope this helps.
> p

In this case, no, because Seb Vauban nailed the cause (he must have
recently polished his crystal ball, so he did not need a backtrace at
all): org-time-stamp-rounding-minutes should be a list of two numbers.

In general, however, a bug report with a backtrace and uncompiled code
makes things much easier: from your backtrace, anybody (with some
knowledge of lisp) can see what the problem is - no crystal ball
required.

Thanks,
Nick

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

* Re: Cannot use org-mode and remember templates
  2009-07-16 17:07       ` Nick Dokos
@ 2009-07-16 20:41         ` Sébastien Vauban
  2009-07-20 16:56           ` Nick Dokos
  2009-07-17 14:03         ` Frank Rust
  1 sibling, 1 reply; 13+ messages in thread
From: Sébastien Vauban @ 2009-07-16 20:41 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Nick,

Nick Dokos wrote:
> Frank Rust <rustikus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Debugger entered--Lisp error: (wrong-type-argument listp 5)
>>   org-current-time()
>
> In this case, no, because Seb Vauban nailed the cause (he must have recently
> polished his crystal ball, so he did not need a backtrace at all):
> org-time-stamp-rounding-minutes should be a list of two numbers.

Great. I'm finally helping people out there ;-)

But, that was not so difficult for me: just had the same type of message a
couple of months ago.


> In general, however, a bug report with a backtrace and uncompiled code
> makes things much easier: from your backtrace, anybody (with some
> knowledge of lisp) can see what the problem is - no crystal ball
> required.

For sure.

BTW, the problem with the above is that bad code is still readable in lots of
pages or tutorials on the Web. That's how it appeared for me, as I take a lot
of inspiration on the setup some describe.

Best regards,
  Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Cannot use org-mode and remember templates
  2009-07-16 10:38 ` Cannot use org-mode and remember templates Frank Rust
  2009-07-16 14:08   ` Sébastien Vauban
  2009-07-16 14:33   ` Nick Dokos
@ 2009-07-16 21:22   ` Bastien
  2 siblings, 0 replies; 13+ messages in thread
From: Bastien @ 2009-07-16 21:22 UTC (permalink / raw)
  To: Frank Rust; +Cc: emacs-orgmode

Hi Frank,

Frank Rust <rustikus@gmail.com> writes:

> I'm using a new version of emacs for windows (GNU Emacs 23.1.50.1
> (i386-mingw-nt5.1.2600) of 2009-06-30 on LENNART-69DE564 (patched)) which
> provides Org-mode in version 6.21b.

I can't reproduce your problem.  Maybe try with the latest Org.  
If it doesn't work, please provide a backtrace as described here:

  http://orgmode.org/manual/Feedback.html

Thanks,

-- 
 Bastien

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

* Re: Cannot use org-mode and remember templates
  2009-07-16 17:07       ` Nick Dokos
  2009-07-16 20:41         ` Sébastien Vauban
@ 2009-07-17 14:03         ` Frank Rust
  2009-07-17 15:26           ` Nick Dokos
  1 sibling, 1 reply; 13+ messages in thread
From: Frank Rust @ 2009-07-17 14:03 UTC (permalink / raw)
  To: emacs-orgmode


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

Thanks to all for the hints so far but unfortunately the setting for
"org-time-stamp-rounding-minutes" did not solve my problem.

Here is an actual backtrace:

Debugger entered--Lisp error: (wrong-type-argument listp 5)
  org-current-time()
  (or org-overriding-default-time (org-current-time))
  (let* ((entry ...) (ct ...) (dct ...) (ct1 ...) (tpl ...) (plist-p ...)
(file ...) (headline ...) (v-c ...) (v-x ...) (v-t ...) (v-T ...) (v-u ...)
(v-U ...) (v-i ...) (v-a ...) (clipboards ...) (v-A ...) (v-n
user-full-name) (v-k ...) (v-K ...) v-I (org-startup-folded nil)
(org-inhibit-startup t) org-time-was-given org-end-time-was-given x prompt
completions char time pos default histvar) (when (functionp file) (setq file
...)) (when (and file ...) (setq file ...)) (setq org-store-link-plist
(append ... org-store-link-plist)) (unless tpl (setq tpl "") (message "No
template") (ding) (sit-for 1)) (erase-buffer) (insert
(substitute-command-keys ...)) (insert tpl) (goto-char (point-min)) (while
(re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t) (when ... ...)
(replace-match ... t t)) (goto-char (point-min)) (while (re-search-forward
"%\\[\\(.+\\)\\]" nil t) (let ... ... ... ...)) (goto-char (point-min))
(while (re-search-forward "%\\((.+)\\)" nil t) (goto-char ...) (let ... ...
...)) (when plist-p (goto-char ...) (while ... ...)) (let (...) (org-mode)
(org-remember-mode 1)) (if (and file ... ...) (org-set-local ... file)) (if
headline (org-set-local ... headline)) (goto-char (point-min)) (while
(re-search-forward "%^\\({\\([^}]*\\)}\\)?\\([gGtTuUCLp]\\)?" nil t) (setq
char ... prompt ...) (goto-char ...) (replace-match "") (setq completions
nil default nil) (when prompt ...) (cond ... ... ... ... ... ...))
(goto-char (point-min)) (if (re-search-forward "%\\?" nil t) (replace-match
"") (and ... ...)))
  (if org-remember-templates (let* (... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... v-I ... ... org-time-was-given
org-end-time-was-given x prompt completions char time pos default histvar)
(when ... ...) (when ... ...) (setq org-store-link-plist ...) (unless tpl
... ... ... ...) (erase-buffer) (insert ...) (insert tpl) (goto-char ...)
(while ... ... ...) (goto-char ...) (while ... ...) (goto-char ...) (while
... ... ...) (when plist-p ... ...) (let ... ... ...) (if ... ...) (if
headline ...) (goto-char ...) (while ... ... ... ... ... ... ...) (goto-char
...) (if ... ... ...)) (let (...) (org-mode) (org-remember-mode 1)))
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)

I hope this helps.

Thanks and regards,
Frank



On Thu, Jul 16, 2009 at 7:07 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Frank Rust <rustikus@gmail.com> wrote:
>
> > Debugger entered--Lisp error: (wrong-type-argument listp 5)
> >   org-current-time()
> >   org-remember-apply-template()
> >   run-hooks(text-mode-hook remember-mode-hook)
> >   apply(run-hooks (text-mode-hook remember-mode-hook))
> >   run-mode-hooks(remember-mode-hook)
> >   remember-mode()
> >   remember(nil)
> >   call-interactively(remember nil nil)
> >
> >
> >
> > Debugger entered--Lisp error: (wrong-type-argument listp 5)
> >   org-current-time()
> >
> > ...
> >
> > I hope this helps.
> > p
>
> In this case, no, because Seb Vauban nailed the cause (he must have
> recently polished his crystal ball, so he did not need a backtrace at
> all): org-time-stamp-rounding-minutes should be a list of two numbers.
>
> In general, however, a bug report with a backtrace and uncompiled code
> makes things much easier: from your backtrace, anybody (with some
> knowledge of lisp) can see what the problem is - no crystal ball
> required.
>
> Thanks,
> Nick
>
>

[-- Attachment #1.2: Type: text/html, Size: 4609 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] 13+ messages in thread

* Re: Cannot use org-mode and remember templates
  2009-07-17 14:03         ` Frank Rust
@ 2009-07-17 15:26           ` Nick Dokos
  2009-07-17 16:27             ` Frank Rust
  0 siblings, 1 reply; 13+ messages in thread
From: Nick Dokos @ 2009-07-17 15:26 UTC (permalink / raw)
  To: Frank Rust; +Cc: emacs-orgmode

Frank Rust <rustikus@gmail.com> wrote:

> Thanks to all for the hints so far but unfortunately the setting for "org-time-stamp-rounding-minutes" did not solve my problem.
> 

What does

 C-h v org-time-stamp-rounding-minutes <RET>

say?

In fact, it might be better to evaluate it in the backtrace buffer
itself: when you get the error, go to the backtrace buffer, type `e'
which should give you an ``Eval: '' prompt in the echo area and then type
``org-time-stamp-rounding-minutes<RET>''.

You see, the function that gets the error, org-current-time,
is very short and simple:

,----
| (defun org-current-time ()
|   "Current time, possibly rounded to `org-time-stamp-rounding-minutes'."
|   (if (> (car org-time-stamp-rounding-minutes) 1)
|       (let ((r (car org-time-stamp-rounding-minutes))
| 	    (time (decode-time)))
| 	(apply 'encode-time
| 	       (append (list 0 (* r (floor (+ .5 (/ (float (nth 1 time)) r)))))
| 		       (nthcdr 2 time))))
|     (current-time)))
`----

so there is not that much that can go wrong: the error message pretty
much says we are trying to apply a function that takes a list as
argument to something that is not a list: car is one such
function. That's why I still think that the
org-time-stamp-rounding-minutes variable is at fault. Are you setting it
like this:

(setq org-time-stamp-rounding-minutes '(0 5))

in your .emacs?

BTW, what version of orgmode are you using?

Thanks,
Nick

> Here is an actual backtrace:
> 
> Debugger entered--Lisp error: (wrong-type-argument listp 5)
>   org-current-time()
>   (or org-overriding-default-time (org-current-time))
>   (let* ((entry ...) (ct ...) (dct ...) (ct1 ...) (tpl ...) (plist-p ...) (file ...) (headline ...) (v-c ...) (v-x ...) (v-t ...) (v-T ...) (v-u ...)
> (v-U ...) (v-i ...) (v-a ...) (clipboards ...) (v-A ...) (v-n user-full-name) (v-k ...) (v-K ...) v-I (org-startup-folded nil) (org-inhibit-startup t)
> org-time-was-given org-end-time-was-given x prompt completions char time pos default histvar) (when (functionp file) (setq file ...)) (when (and file
> ...) (setq file ...)) (setq org-store-link-plist (append ... org-store-link-plist)) (unless tpl (setq tpl "") (message "No template") (ding) (sit-for
> 1)) (erase-buffer) (insert (substitute-command-keys ...)) (insert tpl) (goto-char (point-min)) (while (re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t)
> (when ... ...) (replace-match ... t t)) (goto-char (point-min)) (while (re-search-forward "%\\[\\(.+\\)\\]" nil t) (let ... ... ... ...)) (goto-char
> (point-min)) (while (re-search-forward "%\\((.+)\\)" nil t) (goto-char ...) (let ... ... ...)) (when plist-p (goto-char ...) (while ... ...)) (let (...)
> (org-mode) (org-remember-mode 1)) (if (and file ... ...) (org-set-local ... file)) (if headline (org-set-local ... headline)) (goto-char (point-min))
> (while (re-search-forward "%^\\({\\([^}]*\\)}\\)?\\([gGtTuUCLp]\\)?" nil t) (setq char ... prompt ...) (goto-char ...) (replace-match "") (setq
> completions nil default nil) (when prompt ...) (cond ... ... ... ... ... ...)) (goto-char (point-min)) (if (re-search-forward "%\\?" nil t)
> (replace-match "") (and ... ...)))
>   (if org-remember-templates (let* (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... v-I ... ... org-time-was-given
> org-end-time-was-given x prompt completions char time pos default histvar) (when ... ...) (when ... ...) (setq org-store-link-plist ...) (unless tpl ...
> ... ... ...) (erase-buffer) (insert ...) (insert tpl) (goto-char ...) (while ... ... ...) (goto-char ...) (while ... ...) (goto-char ...) (while ... ...
> ...) (when plist-p ... ...) (let ... ... ...) (if ... ...) (if headline ...) (goto-char ...) (while ... ... ... ... ... ... ...) (goto-char ...) (if ...
> ... ...)) (let (...) (org-mode) (org-remember-mode 1)))
>   org-remember-apply-template()
>   run-hooks(text-mode-hook remember-mode-hook)
>   apply(run-hooks (text-mode-hook remember-mode-hook))
>   run-mode-hooks(remember-mode-hook)
>   remember-mode()
>   remember(nil)
>   call-interactively(remember nil nil)
> 
> I hope this helps.
> 
> Thanks and regards,
> Frank
> 
> On Thu, Jul 16, 2009 at 7:07 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> 
>     Frank Rust <rustikus@gmail.com> wrote:
>    
>     > Debugger entered--Lisp error: (wrong-type-argument listp 5)
>     >   org-current-time()
>     >   org-remember-apply-template()
>     >   run-hooks(text-mode-hook remember-mode-hook)
>     >   apply(run-hooks (text-mode-hook remember-mode-hook))
>     >   run-mode-hooks(remember-mode-hook)
>     >   remember-mode()
>     >   remember(nil)
>     >   call-interactively(remember nil nil)
>     >
>     >  
>     >
>     > Debugger entered--Lisp error: (wrong-type-argument listp 5)
>     >   org-current-time()
>     >
>     > ...
>     >
>     > I hope this helps.
>     > p
>    
>     In this case, no, because Seb Vauban nailed the cause (he must have
>     recently polished his crystal ball, so he did not need a backtrace at
>     all): org-time-stamp-rounding-minutes should be a list of two numbers.
>    
>     In general, however, a bug report with a backtrace and uncompiled code
>     makes things much easier: from your backtrace, anybody (with some
>     knowledge of lisp) can see what the problem is - no crystal ball
>     required.
>    
>     Thanks,
>     Nick
> 
> _______________________________________________
> 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] 13+ messages in thread

* Re: Cannot use org-mode and remember templates
  2009-07-17 15:26           ` Nick Dokos
@ 2009-07-17 16:27             ` Frank Rust
  0 siblings, 0 replies; 13+ messages in thread
From: Frank Rust @ 2009-07-17 16:27 UTC (permalink / raw)
  To: emacs-orgmode


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

Hi all,

sorry for the confusion but I finally found the reason for my problem.

I set the variable "org-time-stamp-rounding-minutes" in my .emacs correctly
but unfortunately I didn't recognize the same variable in
"custom-set-variables" section. :(

@Bastien: In the meantime I installed the actual version "Org-mode version
6.28e"

Thanks a lot for all your efforts.

Kind regards,
Frank

PS: At least I learned some aspects of lisp debugging. :)

[-- Attachment #1.2: Type: text/html, Size: 602 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] 13+ messages in thread

* Re: Re: Cannot use org-mode and remember templates
  2009-07-16 20:41         ` Sébastien Vauban
@ 2009-07-20 16:56           ` Nick Dokos
  2009-07-20 18:38             ` Bastien
  0 siblings, 1 reply; 13+ messages in thread
From: Nick Dokos @ 2009-07-20 16:56 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

=?utf-8?Q?S=C3=A9bastien_Vauban?= <wxhgmqzgwmuf@spammotel.com> wrote:

> ...
> 
> BTW, the problem with the above is that bad code is still readable in lots =
> of
> pages or tutorials on the Web. That's how it appeared for me, as I take a l=
> ot
> of inspiration on the setup some describe.
> 

Are you saying that you copied the incorrect setting of
org-time-stamp-rounding-minutes from somewhere on the web? If so, and
since this problem seems to arise frequently (there was another report
from Keith Lancaster a few minutes ago), I wonder whether anybody who's
run into the problem remembers where they got the bad code. It might be
worth tracking it down and having the webpage author fix it to avoid
this problem from arising in the future. I did a cursory search in the
various tutorials on Worg, but I did not find anything.

Thanks,
Nick

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

* Re: Re: Cannot use org-mode and remember templates
  2009-07-20 16:56           ` Nick Dokos
@ 2009-07-20 18:38             ` Bastien
  2009-07-20 20:25               ` Nick Dokos
  0 siblings, 1 reply; 13+ messages in thread
From: Bastien @ 2009-07-20 18:38 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Sébastien Vauban, emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

> =?utf-8?Q?S=C3=A9bastien_Vauban?= <wxhgmqzgwmuf@spammotel.com> wrote:
>
>> ...
>> 
>> BTW, the problem with the above is that bad code is still readable in lots =
>> of
>> pages or tutorials on the Web. That's how it appeared for me, as I take a l=
>> ot
>> of inspiration on the setup some describe.
>> 
>
> Are you saying that you copied the incorrect setting of
> org-time-stamp-rounding-minutes from somewhere on the web? If so, and
> since this problem seems to arise frequently (there was another report
> from Keith Lancaster a few minutes ago), I wonder whether anybody
> who's run into the problem remembers where they got the bad code.

I found one occurrence in Worg:

  org-configs/org-customization-survey.org

I fixed it (replaced "5" by "'(0 5)")

-- 
 Bastien

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

* Re: Re: Cannot use org-mode and remember templates
  2009-07-20 18:38             ` Bastien
@ 2009-07-20 20:25               ` Nick Dokos
  0 siblings, 0 replies; 13+ messages in thread
From: Nick Dokos @ 2009-07-20 20:25 UTC (permalink / raw)
  To: Bastien; +Cc: Sébastien Vauban, emacs-orgmode

Bastien <bastienguerry@googlemail.com> wrote:

> Nick Dokos <nicholas.dokos@hp.com> writes:
> 
> > =?utf-8?Q?S=C3=A9bastien_Vauban?= <wxhgmqzgwmuf@spammotel.com> wrote:
> >
> >> ...
> >> 
> >> BTW, the problem with the above is that bad code is still readable in lots =
> >> of
> >> pages or tutorials on the Web. That's how it appeared for me, as I take a l=
> >> ot
> >> of inspiration on the setup some describe.
> >> 
> >
> > Are you saying that you copied the incorrect setting of
> > org-time-stamp-rounding-minutes from somewhere on the web? If so, and
> > since this problem seems to arise frequently (there was another report
> > from Keith Lancaster a few minutes ago), I wonder whether anybody
> > who's run into the problem remembers where they got the bad code.
> 
> I found one occurrence in Worg:
> 
>   org-configs/org-customization-survey.org
> 
> I fixed it (replaced "5" by "'(0 5)")
> 

Great! Thanks, Bastien.

Nick

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

end of thread, other threads:[~2009-07-20 20:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <rustikus@gmail.com>
2009-07-16 10:38 ` Cannot use org-mode and remember templates Frank Rust
2009-07-16 14:08   ` Sébastien Vauban
2009-07-16 14:33   ` Nick Dokos
2009-07-16 16:32     ` Frank Rust
2009-07-16 17:07       ` Nick Dokos
2009-07-16 20:41         ` Sébastien Vauban
2009-07-20 16:56           ` Nick Dokos
2009-07-20 18:38             ` Bastien
2009-07-20 20:25               ` Nick Dokos
2009-07-17 14:03         ` Frank Rust
2009-07-17 15:26           ` Nick Dokos
2009-07-17 16:27             ` Frank Rust
2009-07-16 21:22   ` Bastien

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