emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Invalid function: org-called-interactively-p
@ 2011-10-09  0:27 Gerrard McNulty
  2011-10-09 15:31 ` Jambunathan K
  0 siblings, 1 reply; 10+ messages in thread
From: Gerrard McNulty @ 2011-10-09  0:27 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed via
elpa/marmalade).

My .emacs is fairly minimalist:

(add-to-list 'load-path "~/.emacs.d/")

(require 'package)
(add-to-list 'package-archives
             '("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)

(setq ido-create-new-buffer 'always)
(setq ido-enable-flex-matching t)
(ido-mode 1)

(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)
(setq org-log-done t)

I get the message "Invalid function: org-called-interactively-p" whenever I
try certain commands e.g.:
Whenever I try to refile (C-c C-w) or at the end of a sparse tree command
(C-c /) it matches what I
search for but then complains about the invalid function again

Any help appreciated

[-- Attachment #2: Type: text/html, Size: 1133 bytes --]

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

* Re: Invalid function: org-called-interactively-p
  2011-10-09  0:27 Invalid function: org-called-interactively-p Gerrard McNulty
@ 2011-10-09 15:31 ` Jambunathan K
  2011-10-09 15:42   ` Gerrard McNulty
  0 siblings, 1 reply; 10+ messages in thread
From: Jambunathan K @ 2011-10-09 15:31 UTC (permalink / raw)
  To: Gerrard McNulty; +Cc: emacs-orgmode


See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg47345.html


> Hi,
>
> I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed via
> elpa/marmalade).
>
> My .emacs is fairly minimalist:
>
> (add-to-list 'load-path "~/.emacs.d/")
>
> (require 'package)
> (add-to-list 'package-archives
>              '("marmalade" . "http://marmalade-repo.org/packages/"))
> (package-initialize)
>
> (setq ido-create-new-buffer 'always)
> (setq ido-enable-flex-matching t)
> (ido-mode 1)
>
> (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)
> (setq org-log-done t)
>
> I get the message "Invalid function: org-called-interactively-p"
> whenever I try certain commands e.g.:
> Whenever I try to refile (C-c C-w) or at the end of a sparse tree
> command (C-c /) it matches what I
> search for but then complains about the invalid function again
>
> Any help appreciated
>
>
>

-- 

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

* Re: Invalid function: org-called-interactively-p
  2011-10-09 15:31 ` Jambunathan K
@ 2011-10-09 15:42   ` Gerrard McNulty
  2011-10-09 16:34     ` Jambunathan K
  2011-10-09 16:43     ` Achim Gratz
  0 siblings, 2 replies; 10+ messages in thread
From: Gerrard McNulty @ 2011-10-09 15:42 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

Here's what I get when I follow those instructions:

Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc


On Sun, Oct 9, 2011 at 4:31 PM, Jambunathan K <kjambunathan@gmail.com>wrote:

>
> See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg47345.html
>
>
> > Hi,
> >
> > I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed via
> > elpa/marmalade).
> >
> > My .emacs is fairly minimalist:
> >
> > (add-to-list 'load-path "~/.emacs.d/")
> >
> > (require 'package)
> > (add-to-list 'package-archives
> >              '("marmalade" . "http://marmalade-repo.org/packages/"))
> > (package-initialize)
> >
> > (setq ido-create-new-buffer 'always)
> > (setq ido-enable-flex-matching t)
> > (ido-mode 1)
> >
> > (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)
> > (setq org-log-done t)
> >
> > I get the message "Invalid function: org-called-interactively-p"
> > whenever I try certain commands e.g.:
> > Whenever I try to refile (C-c C-w) or at the end of a sparse tree
> > command (C-c /) it matches what I
> > search for but then complains about the invalid function again
> >
> > Any help appreciated
> >
> >
> >
>
> --
>

[-- Attachment #2: Type: text/html, Size: 2142 bytes --]

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

* Re: Invalid function: org-called-interactively-p
  2011-10-09 15:42   ` Gerrard McNulty
@ 2011-10-09 16:34     ` Jambunathan K
  2011-10-09 21:37       ` Gerrard McNulty
  2011-10-17 19:51       ` David Maus
  2011-10-09 16:43     ` Achim Gratz
  1 sibling, 2 replies; 10+ messages in thread
From: Jambunathan K @ 2011-10-09 16:34 UTC (permalink / raw)
  To: Gerrard McNulty; +Cc: emacs-orgmode


Seems like a bug to me.

As a temporary workaround add this to your .emacs. (Do this only if your
are running emacs >= 23.2)

--8<---------------cut here---------------start------------->8---
(defalias 'org-called-interactively-p 'called-interactively-p)
--8<---------------cut here---------------end--------------->8---

If you don't want to touch your .emacs, you can also do a 

C-u M-x org-reload

Btw, (require 'org-install) is not needed if you are using elpa.

> Hi,
>
> Here's what I get when I follow those instructions:
>
> Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
> Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc
>
>
> On Sun, Oct 9, 2011 at 4:31 PM, Jambunathan K <kjambunathan@gmail.com
>> wrote:
>
>    
>     See http://www.mail-archive.com/emacs-orgmode@gnu.org/
>     msg47345.html
>    
>    
>     > Hi,
>     >
>     > I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed
>     via
>     > elpa/marmalade).
>     >
>     > My .emacs is fairly minimalist:
>     >
>     > (add-to-list 'load-path "~/.emacs.d/")
>     >
>     > (require 'package)
>     > (add-to-list 'package-archives
>     >              '("marmalade" . "http://marmalade-repo.org/
>     packages/"))
>     > (package-initialize)
>     >
>     > (setq ido-create-new-buffer 'always)
>     > (setq ido-enable-flex-matching t)
>     > (ido-mode 1)
>     >
>     > (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)
>     > (setq org-log-done t)
>     >
>     > I get the message "Invalid function:
>     org-called-interactively-p"
>     > whenever I try certain commands e.g.:
>     > Whenever I try to refile (C-c C-w) or at the end of a sparse
>     tree
>     > command (C-c /) it matches what I
>     > search for but then complains about the invalid function again
>     >
>     > Any help appreciated
>     >
>     >
>     >
>    
>     --
>
>
>
>

-- 

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

* Re: Invalid function: org-called-interactively-p
  2011-10-09 15:42   ` Gerrard McNulty
  2011-10-09 16:34     ` Jambunathan K
@ 2011-10-09 16:43     ` Achim Gratz
  1 sibling, 0 replies; 10+ messages in thread
From: Achim Gratz @ 2011-10-09 16:43 UTC (permalink / raw)
  To: emacs-orgmode

Gerrard McNulty <gerrard.mcnulty@gmail.com> writes:
> Here's what I get when I follow those instructions:
>
> Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
> Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc

Did you perhaps have an earlier version of org-mode installed without
using ELPA?  Is it possible you still pick up some files from that old
place?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

DIY Stuff:
http://Synth.Stromeko.net/DIY.html

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

* Re: Invalid function: org-called-interactively-p
  2011-10-09 16:34     ` Jambunathan K
@ 2011-10-09 21:37       ` Gerrard McNulty
  2011-10-17 19:51       ` David Maus
  1 sibling, 0 replies; 10+ messages in thread
From: Gerrard McNulty @ 2011-10-09 21:37 UTC (permalink / raw)
  To: emacs-orgmode

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

Thanks mate, that works fine


On Sun, Oct 9, 2011 at 5:34 PM, Jambunathan K <kjambunathan@gmail.com>wrote:

>
> Seems like a bug to me.
>
> As a temporary workaround add this to your .emacs. (Do this only if your
> are running emacs >= 23.2)
>
> --8<---------------cut here---------------start------------->8---
> (defalias 'org-called-interactively-p 'called-interactively-p)
> --8<---------------cut here---------------end--------------->8---
>
> If you don't want to touch your .emacs, you can also do a
>
> C-u M-x org-reload
>
> Btw, (require 'org-install) is not needed if you are using elpa.
>
> > Hi,
> >
> > Here's what I get when I follow those instructions:
> >
> > Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
> > Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc
> >
> >
> > On Sun, Oct 9, 2011 at 4:31 PM, Jambunathan K <kjambunathan@gmail.com
> >> wrote:
> >
> >
> >     See http://www.mail-archive.com/emacs-orgmode@gnu.org/
> >     msg47345.html
> >
> >
> >     > Hi,
> >     >
> >     > I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed
> >     via
> >     > elpa/marmalade).
> >     >
> >     > My .emacs is fairly minimalist:
> >     >
> >     > (add-to-list 'load-path "~/.emacs.d/")
> >     >
> >     > (require 'package)
> >     > (add-to-list 'package-archives
> >     >              '("marmalade" . "http://marmalade-repo.org/
> >     packages/"))
> >     > (package-initialize)
> >     >
> >     > (setq ido-create-new-buffer 'always)
> >     > (setq ido-enable-flex-matching t)
> >     > (ido-mode 1)
> >     >
> >     > (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)
> >     > (setq org-log-done t)
> >     >
> >     > I get the message "Invalid function:
> >     org-called-interactively-p"
> >     > whenever I try certain commands e.g.:
> >     > Whenever I try to refile (C-c C-w) or at the end of a sparse
> >     tree
> >     > command (C-c /) it matches what I
> >     > search for but then complains about the invalid function again
> >     >
> >     > Any help appreciated
> >     >
> >     >
> >     >
> >
> >     --
> >
> >
> >
> >
>
> --
>

[-- Attachment #2: Type: text/html, Size: 3413 bytes --]

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

* Re: Invalid function: org-called-interactively-p
  2011-10-09 16:34     ` Jambunathan K
  2011-10-09 21:37       ` Gerrard McNulty
@ 2011-10-17 19:51       ` David Maus
  1 sibling, 0 replies; 10+ messages in thread
From: David Maus @ 2011-10-17 19:51 UTC (permalink / raw)
  To: Jambunathan K; +Cc: Gerrard McNulty, emacs-orgmode

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

At Sun, 09 Oct 2011 22:04:47 +0530,
Jambunathan K wrote:
>
>
> Seems like a bug to me.

Not necessarily: From past experience an invalid function error is an
indicator of a mixed up Org mode installation. What roughly happens is
that Emacs tries to look up a function value for
`org-called-interactively-p' but does not get a valid function because
`org-called-interactively-p' is a macro.[1]

Normally a make clean && make in the source tree solves this kind of problem.


Best,
  -- David

[1] http://www.gnu.org/s/emacs/manual/html_node/elisp/Function-Indirection.html
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

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

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

* Re: Invalid function: org-called-interactively-p
  2012-02-13  8:55 ` Thorsten
@ 2012-02-14  0:19   ` Peter Salazar
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Salazar @ 2012-02-14  0:19 UTC (permalink / raw)
  To: Thorsten; +Cc: emacs-orgmode

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

That worked, thank you so much!


On Mon, Feb 13, 2012 at 3:55 AM, Thorsten <quintfall@googlemail.com> wrote:

> Peter Salazar <cycleofsong@gmail.com> writes:
>
> > I seem to have broken my org-mode.
>
> I remember having a similar problem, and it turned out that the old
> version interfered with the new one, resulting in a corrupted org
> installation. I had to get the old version completely out of the
> way (delete the org folder in the original emacs installation folder) to
> solve the problem.
>
> Maybe that helps
> Cheers
> Thorsten
>
>
>

[-- Attachment #2: Type: text/html, Size: 987 bytes --]

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

* Re: Invalid function: org-called-interactively-p
  2012-02-13  8:15 Peter Salazar
@ 2012-02-13  8:55 ` Thorsten
  2012-02-14  0:19   ` Peter Salazar
  0 siblings, 1 reply; 10+ messages in thread
From: Thorsten @ 2012-02-13  8:55 UTC (permalink / raw)
  To: emacs-orgmode

Peter Salazar <cycleofsong@gmail.com> writes:

> I seem to have broken my org-mode. 

I remember having a similar problem, and it turned out that the old
version interfered with the new one, resulting in a corrupted org
installation. I had to get the old version completely out of the
way (delete the org folder in the original emacs installation folder) to
solve the problem. 

Maybe that helps
Cheers
Thorsten

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

* Invalid function: org-called-interactively-p
@ 2012-02-13  8:15 Peter Salazar
  2012-02-13  8:55 ` Thorsten
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Salazar @ 2012-02-13  8:15 UTC (permalink / raw)
  To: emacs-orgmode

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

Hey everyone,

I seem to have broken my org-mode. I'm running Aquamacs which comes with
org-mode 6.33 or thereabouts. I downloaded 7.8.03, did a setq load-path
(cons to the directory, then used the package manager to install org from
within Aquamacs.

I can verify that org now states its version as 7.8.03. But now whenever I
try to do much of anything—org-capture (the reason I upgraded) or export to
HTML or anything I try to do really, I get "Invalid function:
org-called-interactively-p."

What did I do wrong?

Thanks!

[-- Attachment #2: Type: text/html, Size: 642 bytes --]

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

end of thread, other threads:[~2012-02-14  0:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-09  0:27 Invalid function: org-called-interactively-p Gerrard McNulty
2011-10-09 15:31 ` Jambunathan K
2011-10-09 15:42   ` Gerrard McNulty
2011-10-09 16:34     ` Jambunathan K
2011-10-09 21:37       ` Gerrard McNulty
2011-10-17 19:51       ` David Maus
2011-10-09 16:43     ` Achim Gratz
2012-02-13  8:15 Peter Salazar
2012-02-13  8:55 ` Thorsten
2012-02-14  0:19   ` Peter Salazar

Code repositories for project(s) associated with this 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).