beacon icon indicating copy to clipboard operation
beacon copied to clipboard

`post-command-hook` error reported with Emacs 27.1

Open junwei-wang opened this issue 5 years ago • 2 comments

Error in post-command-hook (beacon--post-command): (wrong-type-argument number-or-marker-p t)
Quit

junwei-wang avatar Dec 15 '20 15:12 junwei-wang

same here with Emacs 27.1.

cryoguy avatar Dec 23 '20 17:12 cryoguy

You probably set beacon-blink-when-point-moves-horizontally or beacon-blink-when-point-moves-vertically to a boolean. They are integers :warning:

You can reproduce this error message by configuring:

  (beacon-blink-when-point-moves-horizontally t)
  (beacon-blink-when-point-moves-vertically t)

Instead of integers:

  (beacon-blink-when-point-moves-horizontally 10)
  (beacon-blink-when-point-moves-vertically 5)

It takes some tracing to figure out the issue.

You won't get any feedback unless you used setopt. Sadly, the use-package :custom keyword did not save me from having to debug this.

The variable name really seems like a boolean, but it is definitely an integer.

@junwei-wang I can submit a PR to generate a warning that will at least let people know. I think the issue is just that the names are not obviously integer types.

How would you like to proceed?

psionic-k avatar Nov 07 '23 11:11 psionic-k