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

t in post-command-hook #4175

Closed
jschaf opened this issue Dec 14, 2015 · 2 comments
Closed

t in post-command-hook #4175

jschaf opened this issue Dec 14, 2015 · 2 comments
Labels

Comments

@jschaf
Copy link
Contributor

jschaf commented Dec 14, 2015

There is a lone t in post-command-hook

I'm on develop and all my packages are upgraded. I commented out my spacemacs.

Steps to reproduce

  1. Run emacs
  2. Switch to scratch buffer
  3. Eval "post-command-hook" with type M-: post-command-hook
  4. Observe (evil-normal-post-command t)

The t occurs in the local post-command-hook, it's not present in the global value.

emacs -q doesn't have a t in the post-command-hook.

I found this because for some reasons, a t in the post-command-hook seems to close pos-tip tooltips.

All the post-command-hooks in spacemacs look normal. I checked all the elpa packages and they also look normal. So, I'm not sure what's going on.

@Miciah
Copy link
Contributor

Miciah commented Jul 7, 2018

t has a special and desired meaning in post-command-hook; to quote the Running Hooks section in the Emacs Lisp manual, "If the hook variable is buffer-local, the buffer-local variable will be used instead of the global variable. However, if the buffer-local variable contains the element t, the global hook variable will be run as well." Evil in particular relies on the behavior described in the manual (cf. emacs-evil/evil#19).

Do you still see the problem with pos-tip? Can you provide more details around that problem?

@jschaf
Copy link
Contributor Author

jschaf commented Jul 7, 2018

I'm not on spacemacs any more. I'll close as not reproducible.

@jschaf jschaf closed this as completed Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants