ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Error in post-command-hook (ergoemacs-post-command-hook): (wrong-type-argument stringp nil) #378

Closed gamaralf closed 3 years ago

gamaralf commented 8 years ago

Sometimes when I hit a shortcut like "C-o" I get the error message:

Error in post-command-hook (ergoemacs-post-command-hook): (wrong-type-argument stringp nil)

mattfidler commented 8 years ago

If you can get a backtrace, or a recipe on how to reproduce this error, I will fix this. Its an easy issue to fix, but tracking down where it comes from is more of a challenge. I have fixed the possible places where I see this may occur in one function.

ghost commented 8 years ago

I see this error message appear once, when I first start emacs (with ergoemacs-mode enabled in my init file), and press C-o. It does not appear after the first time.

Using emacs version GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) if that's relevant.

mattfidler commented 8 years ago

Thanks. I will see if I can reproduce under windows tomorrow.

On Mon, Nov 2, 2015, 8:25 PM wilsonywx notifications@github.com wrote:

I see this error message appear once, when I first start emacs (with ergoemacs-mode enabled in my init file), and press C-o. It does not appear after the first time.

Using emacs version GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) if that's relevant.

— Reply to this email directly or view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/378#issuecomment-153219659 .

gamaralf commented 8 years ago

One way to make the error message appear:

  1. start emacs
  2. Type M-x and run "ergoemacs-mode"
  3. As soon as you see the message "Started `ergoemacs-mode'. (...)" hit C-o (to open a file). You cannot wait too long to do that.
  4. the error message appears briefly, but you can see it fully on buffer "Messages"

I am using GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian.

My OS is Ubuntu 14.04.3.

mattfidler commented 8 years ago

Still can't reproduce it with a clean environment. Did removing the elc files fix this issue for you @gamaralf

gamaralf commented 8 years ago

@mattfidler deleting the elc files unfortunately did not make the error message go away.

On the other hand, despite been an "error" message, I did not notice any other problems. The only issue I have noticed is the message itself.

gamaralf commented 8 years ago

It seems the error message is related to the Emacs version available for Ubuntu 14.04.3.

I have just installed a newer version of Emacs from source and the error message is gone!

The new version is GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8).

mattfidler commented 8 years ago

Hm. I wonder what packages Ubuntu installs for Emacs. Thanks for following up on this.

cstjean commented 4 years ago

I can trigger it simply. After emacs starts with ergoemacs, M-a term, then press M-y. In my case, doing this screws up search in non-term buffers, and I have to restart emacs. M-y in the minibuffer becomes "paste" instead of isearch-forward-next