emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Unable to finalize capture
@ 2013-10-04  8:18 Dror Atariah
  2013-10-04 12:56 ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: Dror Atariah @ 2013-10-04  8:18 UTC (permalink / raw)
  To: emacs-orgmode

It seems like after the last update I've made to org-mode the capturing of notes does not work properly. Currently I have version 8.0.7 (20130930) from the ELPA. Hitting C-c c (i.e. org-capture) brings the list of capture templates and then I can choose one of them to open a buffer where I can actually entry the note. The problem is that once I'm done, hitting C-c C-c doesn't close the capturing buffer. The content is saved in the right place but I'm not returned to the place where I started the capturing. In the *Messages* buffer I get the following error: org-capture-finalize: Symbol's value as variable is void: org-bookmark-names-plist

I don't really know where to start debugging this problem. Any ideas?

I believe the following are all the related setting that I have:

;; Capture-org
(setq org-default-notes-file (concat org-directory "/notes.org"))
(define-key global-map "\C-cc" 'org-capture)

(setq org-capture-templates
      (quote (("t" "todo" entry (file (concat org-directory "/gtd.org"))
               "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
              ("n" "note" entry (file (concat org-directory "/gtd.org"))
               "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)
              ("j" "Journal" entry (file+datetree (concat org-directory "/diary.org"))
               "* %?\n%U\n" :clock-in t :clock-resume t)
              ("v" "Vocabulary" entry
               (file+headline (concat org-directory "/vocab.org")
                              "Vocabulary")
               "* %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be empty)} \n** Answer \n%^{The definition}")
              )))

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

* Re: Unable to finalize capture
  2013-10-04  8:18 Unable to finalize capture Dror Atariah
@ 2013-10-04 12:56 ` Nick Dokos
  2013-10-04 14:31   ` Dror Atariah
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2013-10-04 12:56 UTC (permalink / raw)
  To: emacs-orgmode

Dror Atariah <drorata@gmail.com> writes:

> It seems like after the last update I've made to org-mode the
> capturing of notes does not work properly. Currently I have version
> 8.0.7 (20130930) from the ELPA. Hitting C-c c (i.e. org-capture)
> brings the list of capture templates and then I can choose one of them
> to open a buffer where I can actually entry the note. The problem is
> that once I'm done, hitting C-c C-c doesn't close the capturing
> buffer. The content is saved in the right place but I'm not returned
> to the place where I started the capturing. In the *Messages* buffer I
> get the following error: org-capture-finalize: Symbol's value as
> variable is void: org-bookmark-names-plist
>

org-bookmark-names-plist is defined in org.el. Try evaluating

(require 'org)

and seeing if the variable is now defined:

C-h v org-bookmark-names-plist RET

If so, the capture should work. Then you have to figure out why
org.el[c] was not loaded.

If the variable is not defined, check whether you have some old
obsolete org.el lying around:

M-x locate-library RET org RET

and

M-x list-load-path-shadows RET

should give you some clues.

-- 
Nick

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

* Re: Unable to finalize capture
  2013-10-04 12:56 ` Nick Dokos
@ 2013-10-04 14:31   ` Dror Atariah
  2013-10-04 21:04     ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: Dror Atariah @ 2013-10-04 14:31 UTC (permalink / raw)
  To: Nick Dokos; +Cc: Emacs-orgmode

On Oct 4, 2013, at 14:56 PM, Nick Dokos wrote:

> Dror Atariah <drorata@gmail.com> writes:
> 
>> It seems like after the last update I've made to org-mode the
>> capturing of notes does not work properly. Currently I have version
>> 8.0.7 (20130930) from the ELPA. Hitting C-c c (i.e. org-capture)
>> brings the list of capture templates and then I can choose one of them
>> to open a buffer where I can actually entry the note. The problem is
>> that once I'm done, hitting C-c C-c doesn't close the capturing
>> buffer. The content is saved in the right place but I'm not returned
>> to the place where I started the capturing. In the *Messages* buffer I
>> get the following error: org-capture-finalize: Symbol's value as
>> variable is void: org-bookmark-names-plist
>> 
> 
> org-bookmark-names-plist is defined in org.el. Try evaluating
> 
> (require 'org)
This evaluation can be found in my init file. I can evaluate this manually without any problem. 

> and seeing if the variable is now defined:
> 
> C-h v org-bookmark-names-plist RET
The variable is not defined. Thus, I guess I'm facing the following case in your answer:

> If the variable is not defined, check whether you have some old
> obsolete org.el lying around:
> 
> M-x locate-library RET org RET
Returns:
Library is file ~/.emacs.d/elpa/org-plus-contrib-20130930/org.elc

> and
> 
> M-x list-load-path-shadows RET
Returns (I hope I collected only the relevant entries):
/Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130930/org
/Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130812/org
/Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130923/org
/Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130812/org
/Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130923/org
/Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org

I guess that the above output suggests that org-mode is properly installed (via ELPA), isn't it? I'm afraid that I am not hinted by this output.

What further steps can I take?

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

* Re: Unable to finalize capture
  2013-10-04 14:31   ` Dror Atariah
@ 2013-10-04 21:04     ` Nick Dokos
  2013-10-05  6:51       ` Dror Atariah
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2013-10-04 21:04 UTC (permalink / raw)
  To: emacs-orgmode

Dror Atariah <drorata@gmail.com> writes:

>> M-x locate-library RET org RET
> Returns:
> Library is file ~/.emacs.d/elpa/org-plus-contrib-20130930/org.elc

N.B. Never used elpa, so take with appropriately sized grain of salt.

Not sure whether this is a problem, but why is org.elc in the main
directory and not under

~/.emacs.d/elpa/org-plus-contrib-20130930/org/lisp?

Maybe you are using a left-over org.elc?

>
>> and
>> 
>> M-x list-load-path-shadows RET
> Returns (I hope I collected only the relevant entries):
> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130930/org
> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130812/org
> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130923/org
> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130812/org
> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130923/org
> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org
>
> I guess that the above output suggests that org-mode is properly installed (via ELPA), isn't it? I'm afraid that I am not hinted by this output.
>

Check that your org.el does include the definition  of the variable.
Then load the uncompiled version using an explicit path:

M-x load-file RET /Users/user_name/.emacsd./elpa/..../org/lisp/org.el RET

*Now* is the variable defined? If so, does capture work?

I'd probably clean up the .elc files and compile anew. Then restart
emacs.

Nick

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

* Re: Unable to finalize capture
  2013-10-04 21:04     ` Nick Dokos
@ 2013-10-05  6:51       ` Dror Atariah
  0 siblings, 0 replies; 5+ messages in thread
From: Dror Atariah @ 2013-10-05  6:51 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

On Oct 4, 2013, at 23:04 PM, Nick Dokos wrote:

> Dror Atariah <drorata@gmail.com> writes:
> 
>>> M-x locate-library RET org RET
>> Returns:
>> Library is file ~/.emacs.d/elpa/org-plus-contrib-20130930/org.elc
> 
> N.B. Never used elpa, so take with appropriately sized grain of salt.
> 
> Not sure whether this is a problem, but why is org.elc in the main
> directory and not under
> 
> ~/.emacs.d/elpa/org-plus-contrib-20130930/org/lisp?
> 
> Maybe you are using a left-over org.elc?

Probably, this is somehow the case... I think the directory structure that you can see is the default one of ELPA - I don't think I tweaked it.


>>> and
>>> 
>>> M-x list-load-path-shadows RET
>> Returns (I hope I collected only the relevant entries):
>> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130930/org
>> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130812/org
>> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-20130923/org
>> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130812/org
>> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130923/org
>> /Users/user_name/.emacs.d/elpa/org-plus-contrib-20130930/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org
>> 
>> I guess that the above output suggests that org-mode is properly installed (via ELPA), isn't it? I'm afraid that I am not hinted by this output.
>> 
> 
> Check that your org.el does include the definition  of the variable.
> Then load the uncompiled version using an explicit path:
The file "~/.emacs.d/elpa/org-plus-contrib-20130930/org.el" contains the definition of the variable "org-bookmark-names-plist"

> M-x load-file RET /Users/user_name/.emacsd./elpa/..../org/lisp/org.el RET
> 
> *Now* is the variable defined? If so, does capture work?
Indeed, loading it manually, solved the problem.

> I'd probably clean up the .elc files and compile anew. Then restart
> emacs.
I didn't know how to recompile the files, and what exactly do you mean by cleaning the .elc's; so I did something else. I removed the old directories of org-mode from the ELPA directory, restarted emacs and it  now seems to work fine.

Thanks and all the best,
Dror

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

end of thread, other threads:[~2013-10-05  6:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-04  8:18 Unable to finalize capture Dror Atariah
2013-10-04 12:56 ` Nick Dokos
2013-10-04 14:31   ` Dror Atariah
2013-10-04 21:04     ` Nick Dokos
2013-10-05  6:51       ` Dror Atariah

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