Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mew-status-update: Invalid function: mew-called-interactively-p #75

Closed
yuutayamada opened this issue Oct 31, 2014 · 2 comments
Closed

Comments

@yuutayamada
Copy link
Contributor

Hi, I'm using "Mew version 6.6" on Ubuntu 12.04.

Today I encountered the title's error after I started M-x mew command.
It seems the mew issued the error during mew-status-update.
I made sure this error at emacs-version 24.3.1(from apt-get emacs24) and 25.0.50.1(from git
and emacs-24 branch).
(I did "apt-get update && apt-get upgrade" before I make sure it.
So the emacs 24.3.1 is probably latest.)

I found mew-called-interactively-p definition in mew-env.el (line 318 - 325)

(cond
 ((>= emacs-major-version 24)
  ;; this must be macro. If implemented as a function, its behavior
  ;; is changed.
  (defmacro mew-called-interactively-p ()
    '(called-interactively-p 'interactive)))
 (t
  (defalias 'mew-called-interactively-p 'called-interactively-p)))

Somehow, I suppressed this error at myself by below code:

(defalias 'mew-called-interactively-p 'called-interactively-p)

I checked Emacs's modifications by (view-emacs-news 24), but I
couldn't find about the called-interactively-p. So I'm not sure my
modification is correct or not. Anyway I report you this problem.

Regards

@tats
Copy link
Collaborator

tats commented Oct 31, 2014

Invalid function: mew-called-interactively-p

It seems Emacs 24/25 uses *.elc files byte-compiled with Emacs 23,
so probably you should recompile with your Emacs.

@yuutayamada
Copy link
Contributor Author

It seems Emacs 24/25 uses *.elc files byte-compiled with Emacs 23,
so probably you should recompile with your Emacs.

I'm sorry. You are right.

The invalid function error was disappeared after I bytecompiled mew's el files with below command.

;; in mew directory
~/.ghq/github.com/mirrors/emacs/src/emacs -batch -L ./ -f batch-byte-compile ./*el

Maybe my path configuration was wrong.(I registered above emacs path to PATH environment directly)

Thank you for your advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants