emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture mode fails until "reload org uncompiled" is used
@ 2011-11-29 20:02 Felix
  2011-11-30  9:48 ` David Maus
  0 siblings, 1 reply; 3+ messages in thread
From: Felix @ 2011-11-29 20:02 UTC (permalink / raw)
  To: emacs-orgmode

When I fire up emacs and use C-c c t to enter a task (see .emacs below), I get
the message "Capture template `t': org-called-interactively-p" and nothing
happens. However, if I use the menu option "Org->Refresh/Reload->Reload Org
Uncompiled", then C-c c t works correctly every time. I have provided a
backtrace below (without "reload org uncompiled", since that fixes the problem).

Any suggestions to fix this so that I don't have to "reload org uncompiled"
every time I start emacs? Thanks.

--------------------------------------------------------------------------
.EMACS:
;;; org-mode
(require 'org-install)
(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)
(define-key global-map "\C-cc" 'org-capture)

(setq org-log-done nil); to not log the time for an completed task.
(setq org-directory "~/")
(setq org-agenda-files (list "~/todo.org"))
(setq org-agenda-start-on-weekday nil); start agenda from the current day.
(setq org-agenda-start-with-follow-mode t)

(setq org-capture-templates
      (quote 
      (("t" "Todo" entry (file+headline "~/todo.org" "Tasks")
             "* TODO %?\n  %i\n  %a")
        ("j" "Journal" entry (file+datetree "~/journal.org")
             "* %?\nEntered on %U\n  %i\n  %a"))))
--------------------------------------------------------------------------
BACKTRACE (Without "reload org uncompiled"):
Debugger entered--Lisp error: (error "Capture template `t':
org-called-interactively-p")
  signal(error ("Capture template `t': org-called-interactively-p"))
  error("Capture template `%s': %s" "t" org-called-interactively-p)
  byte-code("..." [error buffer-base-buffer string-match "\\`CAPTURE-"
buffer-name kill-buffer set-window-configuration org-capture-get
:return-to-wconf "Capture template `%s': %s" :key] 4)
  org-capture(nil)
  call-interactively(org-capture nil nil)
---------------------------------------------------------------------------

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

* Re: Capture mode fails until "reload org uncompiled" is used
  2011-11-29 20:02 Capture mode fails until "reload org uncompiled" is used Felix
@ 2011-11-30  9:48 ` David Maus
  2011-11-30 12:00   ` Capture mode fails until Felix
  0 siblings, 1 reply; 3+ messages in thread
From: David Maus @ 2011-11-30  9:48 UTC (permalink / raw)
  To: Felix; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

At Tue, 29 Nov 2011 20:02:22 +0000 (UTC),
Felix wrote:
>
> When I fire up emacs and use C-c c t to enter a task (see .emacs below), I get
> the message "Capture template `t': org-called-interactively-p" and nothing
> happens. However, if I use the menu option "Org->Refresh/Reload->Reload Org
> Uncompiled", then C-c c t works correctly every time. I have provided a
> backtrace below (without "reload org uncompiled", since that fixes the problem).
>
> Any suggestions to fix this so that I don't have to "reload org uncompiled"
> every time I start emacs? Thanks.

`org-called-interactively-p' is a macro, so maybe recompiling Org will
fix the problem. I.e. I cannot reproduce it with

Org-mode version 7.7 (release_7.7.532.gf48321)

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-12-11 on raven, modified by Debian

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

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

* Re: Capture mode fails until
  2011-11-30  9:48 ` David Maus
@ 2011-11-30 12:00   ` Felix
  0 siblings, 0 replies; 3+ messages in thread
From: Felix @ 2011-11-30 12:00 UTC (permalink / raw)
  To: emacs-orgmode

Thanks, David. It worked.

Sincerely,
Felix

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

end of thread, other threads:[~2011-11-30 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 20:02 Capture mode fails until "reload org uncompiled" is used Felix
2011-11-30  9:48 ` David Maus
2011-11-30 12:00   ` Capture mode fails until Felix

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