emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org mode installation problems
@ 2015-01-06 19:21 Felix Fernandes
  2015-01-06 23:44 ` Felix Fernandes
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fernandes @ 2015-01-06 19:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I recently updated to the latest org-mode version (using M-x list-packages).
I am having some problems after installation. For example, the following
keyboard test macro

   (fset 'jj   [?\C-c ?c ?t ?j ?j  return ?\C-c ?\C-c]) 

that invokes this capture template definition 

  (setq org-capture-templates '(("t" "Todo" entry (file "~/org/j.org"))))

no longer works. However, when I removed the directories org* from
~/.emacs.d/elpa/, then this keyboard test macro began to work again. 

Any suggestions on how to fix the installation problems? I have placed
package-initialize at the beginning of my .emacs but that doesn't help.

Is there an easy way to delete all previous installations of org mode? I had
several org* directories in my ~/.emacs.d/elpa/ directory and the above
problem was fixed when I removed them all.

Thanks.

Sincerely,
Felix
----------------------------------------------------------
Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2014-02-22 on chindi10, modified by Debian
Package: Org-mode version 7.8.02

current state:
==============
(setq
 org-export-blocks '((src org-babel-exp-src-block nil) (comment
org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa
nil) (dot org-export-blocks-format-dot nil))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-icalendar-include-todo t
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe)
 org-agenda-use-time-grid nil
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-agenda-custom-commands '(("pa" "A-priority" tags-todo
"+SCHEDULED<=\"<today>\"+PRIORITY=\"A\"") ("pb" "B-priority"
                                                                           
                          tags-todo
                                                                           
                          "+SCHEDULED<=\"<today>\"+PRIORITY=\"B\"")
                              ("pc" "C-priority" tags-todo
"+SCHEDULED<=\"<today>\"+PRIORITY=\"C\"") ("b" "Buy" tags
                                                                           
                          "+CATEGORY=\"BUY\"")
                              ("w" "Web" tags "+CATEGORY=\"WEB\"") ("k"
"Books" tags "+CATEGORY=\"BOOKS\"")
                              ("v" "Movies" tags "+CATEGORY=\"MOVIES\"")
("u" "Music" tags "+CATEGORY=\"MUSIC\""))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-deadline-warning-days 0
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-capture-templates '(("t" "Todo" entry (file+headline "~/org/todo.org"
"Tasks") "* TODO %^{Brief Description}"
                          :prepend t)
                         ("e" "Email Todo" entry (file+headline
"~/org/todo.org" "Tasks") "* TODO %:subject\n%a\n%?Added: %U\n" :prepend t))
 org-agenda-sorting-strategy '((agenda priority-down) (todo priority-down
category-keep) (tags priority-down category-keep) (search category-keep))
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-agenda-start-with-follow-mode t
 org-blank-before-new-entry nil
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-agenda-prefix-format "  %-11:c% s"
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
org-babel-hide-all-hashes my-org-mode-hook)
 org-agenda-start-on-weekday nil
 org-agenda-mode-hook '(my-org-agenda-mode-hook)
 org-directory "~/org/"
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-agenda-files '("~/org/todo.org" "~/org/home.org")
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-confirm-shell-link-function 'yes-or-no-p
 )

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

* Re: Org mode installation problems
  2015-01-06 19:21 Org mode installation problems Felix Fernandes
@ 2015-01-06 23:44 ` Felix Fernandes
  2015-01-07  2:23   ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fernandes @ 2015-01-06 23:44 UTC (permalink / raw)
  To: emacs-orgmode

> Any suggestions on how to fix the installation problems? I have placed
> package-initialize at the beginning of my .emacs but that doesn't help.

I re-installed org-mode from elpa after deleting all org-related entries
from my .emacs (I don't have init.el) and ensuring that no org buffers were
open. After the installation I observed the following information from the
elpa entry:
    org is an installed package.

     Status: Installed in `/home/vadmin/.emacs.d/elpa/org-20150105/',
             shadowing a built-in package.
    Version: 20150105

So, it appears to be installed correctly. However, the obsolete function M-x
org-export-icalendar-this-file is still available (it shouldn't be) and the
keyboard test macro that I mentioned in my previous post fails. 

According to available documentation, I have followed the correct procedure
to update org from the built-in installation. But it doesn't work. Please
advise. Thanks.

Information on my state after the update is below:


Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2014-02-22 on chindi10, modified by Debian
Package: Org-mode version 8.2.10 (8.2.10-29-g89a0ac-elpa @
/home/vadmin/.emacs.d/elpa/org-20150105/)

current state:
==============
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-agenda-use-time-grid nil
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-agenda-custom-commands '(("pa" "A-priority" tags-todo
"+SCHEDULED<=\"<today>\"+PRIORITY=\"A\"") ("pb" "B-priority"
                                                                           
                          tags-todo
                                                                           
                          "+SCHEDULED<=\"<today>\"+PRIORITY=\"B\"")
                              ("pc" "C-priority" tags-todo
"+SCHEDULED<=\"<today>\"+PRIORITY=\"C\"") ("b" "Buy" tags
                                                                           
                          "+CATEGORY=\"BUY\"")
                              ("w" "Web" tags "+CATEGORY=\"WEB\"") ("k"
"Books" tags "+CATEGORY=\"BOOKS\"")
                              ("v" "Movies" tags "+CATEGORY=\"MOVIES\"")
("u" "Music" tags "+CATEGORY=\"MUSIC\""))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-deadline-warning-days 0
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-sorting-strategy '((agenda priority-down) (todo priority-down
category-keep) (tags priority-down category-keep) (search category-keep))
 org-agenda-start-with-follow-mode t
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-agenda-prefix-format "  %-11:c% s"
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local]
                   5]
                 #[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes my-org-mode-hook)
 org-agenda-start-on-weekday nil
 org-agenda-mode-hook '(my-org-agenda-mode-hook)
 org-directory "~/org/"
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-agenda-files '("~/org/todo.org" "~/org/home.org")
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-confirm-shell-link-function 'yes-or-no-p
 )

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

* Re: Org mode installation problems
  2015-01-06 23:44 ` Felix Fernandes
@ 2015-01-07  2:23   ` Nick Dokos
  2015-01-07  5:27     ` Felix Fernandes
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Dokos @ 2015-01-07  2:23 UTC (permalink / raw)
  To: emacs-orgmode

Felix Fernandes <felixfcaf@gmail.com> writes:

>> Any suggestions on how to fix the installation problems? I have placed
>> package-initialize at the beginning of my .emacs but that doesn't help.
>
> I re-installed org-mode from elpa after deleting all org-related entries
> from my .emacs (I don't have init.el) and ensuring that no org buffers were
> open. After the installation I observed the following information from the
> elpa entry:
>     org is an installed package.
>
>      Status: Installed in `/home/vadmin/.emacs.d/elpa/org-20150105/',
>              shadowing a built-in package.
>     Version: 20150105
>
> So, it appears to be installed correctly. However, the obsolete function M-x
> org-export-icalendar-this-file is still available (it shouldn't be) and the
> keyboard test macro that I mentioned in my previous post fails. 
>
> According to available documentation, I have followed the correct procedure
> to update org from the built-in installation. But it doesn't work. Please
> advise. Thanks.
>
> Information on my state after the update is below:
>

You must have something in your initialization file that pulls in the
old org-icalendar file, either an explicit require or something that
autoloads it.

Try loading a minimal init file (e.g. check

   http://thread.gmane.org/gmane.emacs.orgmode/80179/focus=80213

for an example) and start emacs with

   emacs -q -l /path/to/minimal/.emacs

If org-export-icalendar-this-file is undefined (as it should be), then
the problem is somewhere in your .emacs file. So start eliminating stuff
from it, until you find out what causes the problem.

Nick

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

* Re: Org mode installation problems
  2015-01-07  2:23   ` Nick Dokos
@ 2015-01-07  5:27     ` Felix Fernandes
  2015-01-07 12:52       ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fernandes @ 2015-01-07  5:27 UTC (permalink / raw)
  To: emacs-orgmode

> Try loading a minimal init file (e.g. check
> 
>    http://thread.gmane.org/gmane.emacs.orgmode/80179/focus=80213
> 
> for an example) and start emacs with
> 
>    emacs -q -l /path/to/minimal/.emacs
> 
> If org-export-icalendar-this-file is undefined (as it should be), then
> the problem is somewhere in your .emacs file. So start eliminating stuff
> from it, until you find out what causes the problem.

I chopped my .emacs file down to the following bare essentials:
------------------------------------------------------------------
  (require 'package)
  (package-initialize)
  (add-to-list 'package-archives '("melpa" .
"http://melpa.milkbox.net/packages/") t)

(global-set-key "\C-t" 'previous-line)
(global-set-key "\C-f" 'backward-char)
(global-set-key "\C-v" 'next-line)
(global-set-key "\C-g"  'forward-char)
(global-set-key "\C-b"  'backward-word)
(global-set-key "\C-n"  'forward-word)
(global-set-key "\C-k"  'kill-line)
(global-set-key "\C-l"  'kill-word)
(global-set-key "\M-w"  'kill-region)
(global-set-key (kbd "C-'")  'shrink-window)
(global-set-key (kbd "C-;")  'kill-ring-save)
(global-set-key (kbd "C-:")  'clipboard-kill-ring-save)
(global-set-key "\C-q"  'recenter)
-----------------------------------------------------------------------
Then I re-started emacs and opened an org file. I found that M-x
org-export-icalendar-this-file is still defined. So the problem may not be
in my .emacs?

Not sure if this helps but in my load path, I find
"usr/share/emacs24/site-lisp/org-mode" and at this location, grep shows that
the obsolete function is defined:
[vadmin@ubu1004:/usr/share/emacs24/site-lisp/org-mode] $ 
  grep "org-export-icalendar-this-file" org-icalendar.el
   (defun org-export-icalendar-this-file ()

Any suggestions on how to fix this, since .emacs may not be the culprit?

Here is the full load-path:
("/home/vadmin/.emacs.d/elpa/org-20150105"
"/home/vadmin/.emacs.d/elpa/wanderlust-20141208.1533"
"/home/vadmin/.emacs.d/elpa/semi-20141109.9"
"/home/vadmin/.emacs.d/elpa/flim-20141216.1521"
"/home/vadmin/.emacs.d/elpa/apel-20141024.1642"
"/usr/share/emacs24/site-lisp/thailatex"
"/usr/share/emacs24/site-lisp/namazu"
"/usr/share/emacs24/site-lisp/latex-cjk-thai"
"/usr/share/emacs24/site-lisp/latex-cjk-common"
"/usr/share/emacs24/site-lisp/x-face-el" "/usr/share/emacs24/site-lisp/wl"
"/usr/share/emacs24/site-lisp/bitmap-mule"
"/usr/share/emacs24/site-lisp/semi" "/usr/share/emacs24/site-lisp/mu-cite"
"/usr/share/emacs24/site-lisp/w3m"
"/usr/share/emacs24/site-lisp/w3m/shimbun"
"/usr/share/emacs24/site-lisp/org-mode" "/usr/share/emacs24/site-lisp/mhc"
"/usr/share/emacs24/site-lisp/flim"
"/usr/share/emacs24/site-lisp/dictionaries-common"
"/usr/share/emacs24/site-lisp/bbdb" "/usr/share/emacs24/site-lisp/apel"
"/etc/emacs24" "/etc/emacs" "/usr/local/share/emacs/24.3/site-lisp"
"/usr/local/share/emacs/site-lisp" "/usr/share/emacs/24.3/site-lisp"
"/usr/share/emacs/24.3/site-lisp/apel"
"/usr/share/emacs/24.3/site-lisp/bbdb"
"/usr/share/emacs/24.3/site-lisp/bitmap-mule"
"/usr/share/emacs/24.3/site-lisp/dictionaries-common"
"/usr/share/emacs/24.3/site-lisp/flim"
"/usr/share/emacs/24.3/site-lisp/latex-cjk-common"
"/usr/share/emacs/24.3/site-lisp/latex-cjk-thai"
"/usr/share/emacs/24.3/site-lisp/mhc"
"/usr/share/emacs/24.3/site-lisp/mu-cite"
"/usr/share/emacs/24.3/site-lisp/namazu"
"/usr/share/emacs/24.3/site-lisp/org-mode"
"/usr/share/emacs/24.3/site-lisp/semi"
"/usr/share/emacs/24.3/site-lisp/thailatex"
"/usr/share/emacs/24.3/site-lisp/w3m" "/usr/share/emacs/24.3/site-lisp/wl"
"/usr/share/emacs/24.3/site-lisp/x-face-el"
"/usr/share/emacs/24.3/site-lisp/w3m/shimbun"
"/usr/share/emacs/24.3/site-lisp/wl/etc"
"/usr/share/emacs/24.3/site-lisp/wl/etc/icons" "/usr/share/emacs/site-lisp"
"/usr/share/emacs/24.3/lisp" "/usr/share/emacs/24.3/lisp/vc"
"/usr/share/emacs/24.3/lisp/url" "/usr/share/emacs/24.3/lisp/textmodes"
"/usr/share/emacs/24.3/lisp/progmodes" "/usr/share/emacs/24.3/lisp/play"
"/usr/share/emacs/24.3/lisp/org" "/usr/share/emacs/24.3/lisp/nxml"
"/usr/share/emacs/24.3/lisp/net" "/usr/share/emacs/24.3/lisp/mh-e"
"/usr/share/emacs/24.3/lisp/mail" "/usr/share/emacs/24.3/lisp/language"
"/usr/share/emacs/24.3/lisp/international" "/usr/share/emacs/24.3/lisp/gnus"
"/usr/share/emacs/24.3/lisp/eshell" "/usr/share/emacs/24.3/lisp/erc"
"/usr/share/emacs/24.3/lisp/emulation"
"/usr/share/emacs/24.3/lisp/emacs-lisp" "/usr/share/emacs/24.3/lisp/cedet"
"/usr/share/emacs/24.3/lisp/calendar" "/usr/share/emacs/24.3/lisp/calc"
"/usr/share/emacs/24.3/lisp/obsolete" "/usr/share/emacs/24.3/leim")

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

* Re: Org mode installation problems
  2015-01-07  5:27     ` Felix Fernandes
@ 2015-01-07 12:52       ` Nick Dokos
  2015-01-07 16:43         ` Felix Fernandes
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Dokos @ 2015-01-07 12:52 UTC (permalink / raw)
  To: emacs-orgmode

Felix Fernandes <felixfcaf@gmail.com> writes:


> Not sure if this helps but in my load path, I find
> "usr/share/emacs24/site-lisp/org-mode" and at this location, grep shows that
> the obsolete function is defined:
> [vadmin@ubu1004:/usr/share/emacs24/site-lisp/org-mode] $ 
>   grep "org-export-icalendar-this-file" org-icalendar.el
>    (defun org-export-icalendar-this-file ()
>
> Any suggestions on how to fix this, since .emacs may not be the culprit?
>
> Here is the full load-path:
> ("/home/vadmin/.emacs.d/elpa/org-20150105"
> "/home/vadmin/.emacs.d/elpa/wanderlust-20141208.1533"
> "/home/vadmin/.emacs.d/elpa/semi-20141109.9"
> "/home/vadmin/.emacs.d/elpa/flim-20141216.1521"
> "/home/vadmin/.emacs.d/elpa/apel-20141024.1642"
> "/usr/share/emacs24/site-lisp/thailatex"
> "/usr/share/emacs24/site-lisp/namazu"
> "/usr/share/emacs24/site-lisp/latex-cjk-thai"
> "/usr/share/emacs24/site-lisp/latex-cjk-common"
> "/usr/share/emacs24/site-lisp/x-face-el" "/usr/share/emacs24/site-lisp/wl"
> "/usr/share/emacs24/site-lisp/bitmap-mule"
> "/usr/share/emacs24/site-lisp/semi" "/usr/share/emacs24/site-lisp/mu-cite"
> "/usr/share/emacs24/site-lisp/w3m"
> "/usr/share/emacs24/site-lisp/w3m/shimbun"
> "/usr/share/emacs24/site-lisp/org-mode" "/usr/share/emacs24/site-lisp/mhc"
> "/usr/share/emacs24/site-lisp/flim"
> "/usr/share/emacs24/site-lisp/dictionaries-common"
> "/usr/share/emacs24/site-lisp/bbdb" "/usr/share/emacs24/site-lisp/apel"
> "/etc/emacs24" "/etc/emacs" "/usr/local/share/emacs/24.3/site-lisp"
> "/usr/local/share/emacs/site-lisp" "/usr/share/emacs/24.3/site-lisp"
> "/usr/share/emacs/24.3/site-lisp/apel"
> "/usr/share/emacs/24.3/site-lisp/bbdb"
> "/usr/share/emacs/24.3/site-lisp/bitmap-mule"
> "/usr/share/emacs/24.3/site-lisp/dictionaries-common"
> "/usr/share/emacs/24.3/site-lisp/flim"
> "/usr/share/emacs/24.3/site-lisp/latex-cjk-common"
> "/usr/share/emacs/24.3/site-lisp/latex-cjk-thai"
> "/usr/share/emacs/24.3/site-lisp/mhc"
> "/usr/share/emacs/24.3/site-lisp/mu-cite"
> "/usr/share/emacs/24.3/site-lisp/namazu"
> "/usr/share/emacs/24.3/site-lisp/org-mode"
> "/usr/share/emacs/24.3/site-lisp/semi"
> "/usr/share/emacs/24.3/site-lisp/thailatex"
> "/usr/share/emacs/24.3/site-lisp/w3m" "/usr/share/emacs/24.3/site-lisp/wl"
> "/usr/share/emacs/24.3/site-lisp/x-face-el"
> "/usr/share/emacs/24.3/site-lisp/w3m/shimbun"
> "/usr/share/emacs/24.3/site-lisp/wl/etc"
> "/usr/share/emacs/24.3/site-lisp/wl/etc/icons" "/usr/share/emacs/site-lisp"
> "/usr/share/emacs/24.3/lisp" "/usr/share/emacs/24.3/lisp/vc"
> "/usr/share/emacs/24.3/lisp/url" "/usr/share/emacs/24.3/lisp/textmodes"
> "/usr/share/emacs/24.3/lisp/progmodes" "/usr/share/emacs/24.3/lisp/play"
> "/usr/share/emacs/24.3/lisp/org" "/usr/share/emacs/24.3/lisp/nxml"
> "/usr/share/emacs/24.3/lisp/net" "/usr/share/emacs/24.3/lisp/mh-e"
> "/usr/share/emacs/24.3/lisp/mail" "/usr/share/emacs/24.3/lisp/language"
> "/usr/share/emacs/24.3/lisp/international" "/usr/share/emacs/24.3/lisp/gnus"
> "/usr/share/emacs/24.3/lisp/eshell" "/usr/share/emacs/24.3/lisp/erc"
> "/usr/share/emacs/24.3/lisp/emulation"
> "/usr/share/emacs/24.3/lisp/emacs-lisp" "/usr/share/emacs/24.3/lisp/cedet"
> "/usr/share/emacs/24.3/lisp/calendar" "/usr/share/emacs/24.3/lisp/calc"
> "/usr/share/emacs/24.3/lisp/obsolete" "/usr/share/emacs/24.3/leim")
>
>

... and where did that load-path get initialized?

-- 
Nick

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

* Re: Org mode installation problems
  2015-01-07 12:52       ` Nick Dokos
@ 2015-01-07 16:43         ` Felix Fernandes
  2015-01-07 16:54           ` Felix Fernandes
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fernandes @ 2015-01-07 16:43 UTC (permalink / raw)
  To: emacs-orgmode

> ... and where did that load-path get initialized?

According to
https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Search.html,
the load-path got initialized to default sources when emacs was compiled.
Then after I did the elpa org-mode update, the elpa directories got placed
at the start of the load-path so that all the files in them should shadow
the built-in org-mode files. However, org-icalendar.el is obsolete and not
included in the elpa directories. Hence, it does not get shadowed. I have
appended an excerpt from the output of M-x list-load-path-shadows to show
which org files are shadowed. This explains why M-x
org-export-icalendar-this-file is still defined. It does not bother me as
much as the following keyboard macro 

(fset 'jk
[?\M-x ?o ?r ?g ?- ?c ?a ?p ?t ?u ?r ?e return ?t return ?\C-e ?  ?j ?k
?\C-c ?\C-c])

that should invoke the following template:
 (setq org-capture-templates '(("t" "Todo" entry (file "~/org/j.org"))))

Executing M-x jk gives the following error message:

Capture abort: (wrong-type-argument stringp (file:~/org/todo.org::(fset 'jk
[?\M-x ?o ?r ?g ?- ?c ?a ?p ?t ?u ?r ?e return ?t return ?\C-e ? ?j ?k ?\C-c
?\C-c]) Tasks))

Any ideas? Thanks.

----Excerpt from M-x list-load-path-shadows
/home/vadmin/.emacs.d/elpa/org-20150105/org-mobile hides
/usr/share/emacs24/site-lisp/org-mode/org-mobile
/home/vadmin/.emacs.d/elpa/org-20150105/ob-gnuplot hides
/usr/share/emacs24/site-lisp/org-mode/ob-gnuplot
/home/vadmin/.emacs.d/elpa/org-20150105/org-clock hides
/usr/share/emacs24/site-lisp/org-mode/org-clock
/home/vadmin/.emacs.d/elpa/org-20150105/org-install hides
/usr/share/emacs24/site-lisp/org-mode/org-install
/home/vadmin/.emacs.d/elpa/org-20150105/ob-octave hides
/usr/share/emacs24/site-lisp/org-mode/ob-octave
/home/vadmin/.emacs.d/elpa/org-20150105/org-protocol hides
/usr/share/emacs24/site-lisp/org-mode/org-protocol
/home/vadmin/.emacs.d/elpa/org-20150105/ob-asymptote hides
/usr/share/emacs24/site-lisp/org-mode/ob-asymptote
/home/vadmin/.emacs.d/elpa/org-20150105/ob-ref hides
/usr/share/emacs24/site-lisp/org-mode/ob-ref
/home/vadmin/.emacs.d/elpa/org-20150105/org-gnus hides
/usr/share/emacs24/site-lisp/org-mode/org-gnus
/home/vadmin/.emacs.d/elpa/org-20150105/ob-sass hides
/usr/share/emacs24/site-lisp/org-mode/ob-sass
/home/vadmin/.emacs.d/elpa/org-20150105/org-agenda hides
/usr/share/emacs24/site-lisp/org-mode/org-agenda
/home/vadmin/.emacs.d/elpa/org-20150105/org-w3m hides
/usr/share/emacs24/site-lisp/org-mode/org-w3m
/home/vadmin/.emacs.d/elpa/org-20150105/org-plot hides
/usr/share/emacs24/site-lisp/org-mode/org-plot
/home/vadmin/.emacs.d/elpa/org-20150105/org-indent hides
/usr/share/emacs24/site-lisp/org-mode/org-indent
/home/vadmin/.emacs.d/elpa/org-20150105/ob-org hides
/usr/share/emacs24/site-lisp/org-mode/ob-org
/home/vadmin/.emacs.d/elpa/org-20150105/org-list hides
/usr/share/emacs24/site-lisp/org-mode/org-list
/home/vadmin/.emacs.d/elpa/org-20150105/ob-emacs-lisp hides
/usr/share/emacs24/site-lisp/org-mode/ob-emacs-lisp
/home/vadmin/.emacs.d/elpa/org-20150105/org-bbdb hides
/usr/share/emacs24/site-lisp/org-mode/org-bbdb
/home/vadmin/.emacs.d/elpa/org-20150105/ob-scheme hides
/usr/share/emacs24/site-lisp/org-mode/ob-scheme
/home/vadmin/.emacs.d/elpa/org-20150105/ob-ledger hides
/usr/share/emacs24/site-lisp/org-mode/ob-ledger
/home/vadmin/.emacs.d/elpa/org-20150105/org-feed hides
/usr/share/emacs24/site-lisp/org-mode/org-feed
/home/vadmin/.emacs.d/elpa/org-20150105/ob-java hides
/usr/share/emacs24/site-lisp/org-mode/ob-java
/home/vadmin/.emacs.d/elpa/org-20150105/ob-js hides
/usr/share/emacs24/site-lisp/org-mode/ob-js
/home/vadmin/.emacs.d/elpa/org-20150105/org-info hides
/usr/share/emacs24/site-lisp/org-mode/org-info
/home/vadmin/.emacs.d/elpa/org-20150105/org-attach hides
/usr/share/emacs24/site-lisp/org-mode/org-attach
/home/vadmin/.emacs.d/elpa/org-20150105/ob-matlab hides
/usr/share/emacs24/site-lisp/org-mode/ob-matlab
/home/vadmin/.emacs.d/elpa/org-20150105/ob-ocaml hides
/usr/share/emacs24/site-lisp/org-mode/ob-ocaml
/home/vadmin/.emacs.d/elpa/org-20150105/ob-fortran hides
/usr/share/emacs24/site-lisp/org-mode/ob-fortran
/home/vadmin/.emacs.d/elpa/org-20150105/ob-exp hides
/usr/share/emacs24/site-lisp/org-mode/ob-exp
/home/vadmin/.emacs.d/elpa/org-20150105/org-mouse hides
/usr/share/emacs24/site-lisp/org-mode/org-mouse
/home/vadmin/.emacs.d/elpa/org-20150105/ob hides
/usr/share/emacs24/site-lisp/org-mode/ob
/home/vadmin/.emacs.d/elpa/org-20150105/ob-lilypond hides
/usr/share/emacs24/site-lisp/org-mode/ob-lilypond
/home/vadmin/.emacs.d/elpa/org-20150105/org-colview hides
/usr/share/emacs24/site-lisp/org-mode/org-colview
/home/vadmin/.emacs.d/elpa/org-20150105/ob-plantuml hides
/usr/share/emacs24/site-lisp/org-mode/ob-plantuml
/home/vadmin/.emacs.d/elpa/org-20150105/org-rmail hides
/usr/share/emacs24/site-lisp/org-mode/org-rmail
/home/vadmin/.emacs.d/elpa/org-20150105/org-compat hides
/usr/share/emacs24/site-lisp/org-mode/org-compat
/home/vadmin/.emacs.d/elpa/org-20150105/ob-dot hides
/usr/share/emacs24/site-lisp/org-mode/ob-dot
/home/vadmin/.emacs.d/elpa/org-20150105/org hides
/usr/share/emacs24/site-lisp/org-mode/org
/home/vadmin/.emacs.d/elpa/org-20150105/org-entities hides
/usr/share/emacs24/site-lisp/org-mode/org-entities
/home/vadmin/.emacs.d/elpa/org-20150105/ob-perl hides
/usr/share/emacs24/site-lisp/org-mode/ob-perl
/home/vadmin/.emacs.d/elpa/org-20150105/ob-keys hides
/usr/share/emacs24/site-lisp/org-mode/ob-keys
/home/vadmin/.emacs.d/elpa/org-20150105/ob-screen hides
/usr/share/emacs24/site-lisp/org-mode/ob-screen
/home/vadmin/.emacs.d/elpa/org-20150105/ob-shen hides
/usr/share/emacs24/site-lisp/org-mode/ob-shen
/home/vadmin/.emacs.d/elpa/org-20150105/org-datetree hides
/usr/share/emacs24/site-lisp/org-mode/org-datetree
/home/vadmin/.emacs.d/elpa/org-20150105/org-faces hides
/usr/share/emacs24/site-lisp/org-mode/org-faces
/home/vadmin/.emacs.d/elpa/org-20150105/ob-eval hides
/usr/share/emacs24/site-lisp/org-mode/ob-eval
/home/vadmin/.emacs.d/elpa/org-20150105/ob-python hides
/usr/share/emacs24/site-lisp/org-mode/ob-python
/home/vadmin/.emacs.d/elpa/org-20150105/ob-lisp hides
/usr/share/emacs24/site-lisp/org-mode/ob-lisp
/home/vadmin/.emacs.d/elpa/org-20150105/ob-lob hides
/usr/share/emacs24/site-lisp/org-mode/ob-lob
/home/vadmin/.emacs.d/elpa/org-20150105/org-src hides
/usr/share/emacs24/site-lisp/org-mode/org-src
/home/vadmin/.emacs.d/elpa/org-20150105/org-crypt hides
/usr/share/emacs24/site-lisp/org-mode/org-crypt
/home/vadmin/.emacs.d/elpa/org-20150105/org-inlinetask hides
/usr/share/emacs24/site-lisp/org-mode/org-inlinetask
/home/vadmin/.emacs.d/elpa/org-20150105/org-table hides
/usr/share/emacs24/site-lisp/org-mode/org-table
/home/vadmin/.emacs.d/elpa/org-20150105/org-habit hides
/usr/share/emacs24/site-lisp/org-mode/org-habit
/home/vadmin/.emacs.d/elpa/org-20150105/org-capture hides
/usr/share/emacs24/site-lisp/org-mode/org-capture

 

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

* Re: Org mode installation problems
  2015-01-07 16:43         ` Felix Fernandes
@ 2015-01-07 16:54           ` Felix Fernandes
  2015-01-07 17:55             ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fernandes @ 2015-01-07 16:54 UTC (permalink / raw)
  To: emacs-orgmode

> It does not bother me as much as the following keyboard macro 
> 
> (fset 'jk
> [?\M-x ?o ?r ?g ?- ?c ?a ?p ?t ?u ?r ?e return ?t return ?\C-e ?  ?j ?k
> ?\C-c ?\C-c])
> 
> that should invoke the following template:
>  (setq org-capture-templates '(("t" "Todo" entry (file "~/org/j.org"))))
> 

If it helps to debug, here is the backtrace from M-x jk as defined above:
Debugger entered--Lisp error: (error "Capture abort: (wrong-type-argument
stringp (file:~/org/todo.org::*Tasks Tasks))")
  signal(error ("Capture abort: (wrong-type-argument stringp
(file:~/org/todo.org::*Tasks Tasks))"))
  error("Capture abort: %s" (wrong-type-argument stringp
("file:~/org/todo.org::*Tasks" "Tasks")))
  byte-code("\301\302!\203\302!\210\300\304" [error get-buffer "*Capture*"
kill-buffer "Capture abort: %s"] 3)
  org-capture(nil)
  call-interactively(org-capture record nil)
  command-execute(org-capture record)
  execute-extended-command(nil "org-capture")
  call-interactively(execute-extended-command nil nil)
  command-execute(jj record)
  execute-extended-command(nil "jj")
  call-interactively(execute-extended-command nil nil)

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

* Re: Org mode installation problems
  2015-01-07 16:54           ` Felix Fernandes
@ 2015-01-07 17:55             ` Nick Dokos
  2015-01-07 18:11               ` Felix Fernandes
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Dokos @ 2015-01-07 17:55 UTC (permalink / raw)
  To: emacs-orgmode

Felix Fernandes <felixfcaf@gmail.com> writes:

>> It does not bother me as much as the following keyboard macro 
>> 
>> (fset 'jk
>> [?\M-x ?o ?r ?g ?- ?c ?a ?p ?t ?u ?r ?e return ?t return ?\C-e ?  ?j ?k
>> ?\C-c ?\C-c])
>> 
>> that should invoke the following template:
>>  (setq org-capture-templates '(("t" "Todo" entry (file "~/org/j.org"))))
>> 
>
> If it helps to debug, here is the backtrace from M-x jk as defined above:
> Debugger entered--Lisp error: (error "Capture abort: (wrong-type-argument
> stringp (file:~/org/todo.org::*Tasks Tasks))")
>   signal(error ("Capture abort: (wrong-type-argument stringp
> (file:~/org/todo.org::*Tasks Tasks))"))
>   error("Capture abort: %s" (wrong-type-argument stringp
> ("file:~/org/todo.org::*Tasks" "Tasks")))
>   byte-code("\301\302!\203\302!\210\300\304" [error get-buffer "*Capture*"
> kill-buffer "Capture abort: %s"] 3)
>   org-capture(nil)
>   call-interactively(org-capture record nil)
>   command-execute(org-capture record)
>   execute-extended-command(nil "org-capture")
>   call-interactively(execute-extended-command nil nil)
>   command-execute(jj record)
>   execute-extended-command(nil "jj")
>   call-interactively(execute-extended-command nil nil)

That works for me. M-x jk <RET> produces ~/org/j.org:

--8<---------------cut here---------------start------------->8---

* 
jk

--8<---------------cut here---------------end--------------->8---

The backtrace is not very useful as is because of the byte code. You
might try to reproduce with uncompiled code and see if it is any
clearer.

Nick

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

* Re: Org mode installation problems
  2015-01-07 17:55             ` Nick Dokos
@ 2015-01-07 18:11               ` Felix Fernandes
  2015-01-08 19:18                 ` Felix Fernandes
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fernandes @ 2015-01-07 18:11 UTC (permalink / raw)
  To: emacs-orgmode

> The backtrace is not very useful as is because of the byte code. You
> might try to reproduce with uncompiled code and see if it is any
> clearer.

How to do that? I had used  
  C-u M-x org-reload RET
before, as described in the org-mode documentation to get a backtrace from
uncompiled code. Apparently, that didn't work. Could it be part of the problem?

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

* Re: Org mode installation problems
  2015-01-07 18:11               ` Felix Fernandes
@ 2015-01-08 19:18                 ` Felix Fernandes
  0 siblings, 0 replies; 10+ messages in thread
From: Felix Fernandes @ 2015-01-08 19:18 UTC (permalink / raw)
  To: emacs-orgmode

> > The backtrace is not very useful as is because of the byte code. You
> > might try to reproduce with uncompiled code and see if it is any
> > clearer.
> 
> How to do that? I had used  
>   C-u M-x org-reload RET
> before, as described in the org-mode documentation to get a backtrace from
> uncompiled code. Apparently, that didn't work. Could it be part of the
problem?
> 
> 

I did an org re-install from a tarball (instead of elpa). All problems
persist. However by issuing a sudo make clean before the reload, I managed
to get a backtrace without uncompiled code. I will create a new post with
that backtrace seeking help to debug the problem.

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

end of thread, other threads:[~2015-01-08 19:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06 19:21 Org mode installation problems Felix Fernandes
2015-01-06 23:44 ` Felix Fernandes
2015-01-07  2:23   ` Nick Dokos
2015-01-07  5:27     ` Felix Fernandes
2015-01-07 12:52       ` Nick Dokos
2015-01-07 16:43         ` Felix Fernandes
2015-01-07 16:54           ` Felix Fernandes
2015-01-07 17:55             ` Nick Dokos
2015-01-07 18:11               ` Felix Fernandes
2015-01-08 19:18                 ` Felix Fernandes

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