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

emacspeak-handle-action-at-point is void with EVIL #47

Closed
TiFaBl opened this issue Sep 29, 2020 · 6 comments
Closed

emacspeak-handle-action-at-point is void with EVIL #47

TiFaBl opened this issue Sep 29, 2020 · 6 comments

Comments

@TiFaBl
Copy link

TiFaBl commented Sep 29, 2020

First of all: thank you very much for the amazing work with this package! I am not an experienced emacs user and tried to debug this as far as possible. If i missed anything, i am happy to provide further information.

Problem description

emacspeak-handle-action-at-point appears to not be loaded correctly which results in errors when using commands hooked to it.

System

Ubuntu 20.04.1
This is GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20
Discovered with Emacspeak 52.0, WorkAtHomeDog 2e5568e
also just tryed with Emacspeak 52.0, WorkAtHomeDog c200d64

Steps to reproduce

Run emacs -q -l /path/to/emacspeak/lisp/emacspeak-setup.el
then load/eval

(require 'package)
(package-initialize)
(require 'use-package)

;; EVIL
(use-package evil
  :ensure t
  :config
  (evil-mode 1))

Hit dd, to delete a line.

Debug stack trace

Debugger entered--Lisp error: (void-function emacspeak-handle-action-at-point)
  emacspeak-handle-action-at-point()
  emacspeak-speak-region(83 84)
  ad-Advice-evil-delete(#f(compiled-function (beg end &optional type register yank-handler) "Delete text from BEG to END with TYPE.\nSave in REGISTER or in the kill-ring with YANK-HANDLER." (interactive #f(compiled-function () #<bytecode 0x157f099c4065>)) #<bytecode 0x157f0991ecf1>) 83 84 line nil nil)
  apply(ad-Advice-evil-delete #f(compiled-function (beg end &optional type register yank-handler) "Delete text from BEG to END with TYPE.\nSave in REGISTER or in the kill-ring with YANK-HANDLER." (interactive #f(compiled-function () #<bytecode 0x157f09931e19>)) #<bytecode 0x157f0991ecf1>) (83 84 line nil nil))
  evil-delete(83 84 line nil nil)
  #<subr funcall-interactively>(evil-delete 83 84 line nil nil)
  apply(#<subr funcall-interactively> evil-delete (83 84 line nil nil))
  ad-Advice-funcall-interactively(#<subr funcall-interactively> evil-delete 83 84 line nil nil)
  apply(ad-Advice-funcall-interactively #<subr funcall-interactively> (evil-delete 83 84 line nil nil))
  funcall-interactively(evil-delete 83 84 line nil nil)
  #<subr call-interactively>(evil-delete nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> evil-delete nil nil)
  apply(ad-Advice-call-interactively #<subr call-interactively> (evil-delete nil nil))
  #f(advice-wrapper :around #<subr call-interactively> ad-Advice-call-interactively)(evil-delete nil nil)
  apply(#f(advice-wrapper :around #<subr call-interactively> ad-Advice-call-interactively) evil-delete (nil nil))
  call-interactively@ido-cr+-record-current-command(#f(advice-wrapper :around #<subr call-interactively> ad-Advice-call-interactively) evil-delete nil nil)
  apply(call-interactively@ido-cr+-record-current-command #f(advice-wrapper :around #<subr call-interactively> ad-Advice-call-interactively) (evil-delete nil nil))
  call-interactively(evil-delete nil nil)
  command-execute(evil-delete)

Solution hint

When i manually load/eval emacspeak/lisp/emacspeak-wizards.el the emacspeak-handle-action-at-point gets reassigned. Using C-h f to describe emacspeak-handle-action-at-point also gets it working. I think there is some loading issue.

@didiercolle
Copy link

I believe commit 71c1b8b (dated Sep 24th) is the guilty one.
@TiFaBl can you confirm this that the issue you have is there for that commit 71c1b8b but not in the commit before ( commit 2346393 )?

@tvraman
Copy link
Owner

tvraman commented Oct 14, 2020

Thanks for reporting this.
I suspect you may not have done a full build, ie make clean; make
config; make or make q for short.
This is needed when code moves around.

For the record, I've moved the action code back to module
emacspeak-speak from the emacspeak-wizards module for other reasons.

Let me know if you are still seeing the issue after updating from git
and doing a clean build as described above.

@didiercolle
Copy link

didiercolle commented Oct 14, 2020 via email

@tvraman
Copy link
Owner

tvraman commented Oct 14, 2020 via email

@tvraman
Copy link
Owner

tvraman commented Oct 14, 2020

Fixed by clean build. Closing issue.

@tvraman tvraman closed this as completed Oct 14, 2020
@TiFaBl
Copy link
Author

TiFaBl commented Oct 14, 2020

thanks for your efforts, I also just did some testing and can second @didiercolle.
Using the full command and therefore also cleaning the untraced files fixed the issue for me as well (even though i am currently using emacs kbd instead of evil).

Not sure if that is of any use but without the git clean it did not work for me on commit 558cbdf

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

3 participants