evil-paredit icon indicating copy to clipboard operation
evil-paredit copied to clipboard

fix call to deprecated function `evil-called-interactively-p'.

Open emiflake opened this issue 2 years ago • 3 comments

This function has been deprecated after Emacs 24. See https://github.com/emacs-evil/evil/pull/771/.

It has been added back as a deprecated function, however, so I don't quite know why I encountered it now. Still, I thought why not fix it.

emiflake avatar Aug 06 '23 15:08 emiflake

my name is mark polyakov, and i approve this message

markasoftware-aqtc avatar Apr 02 '25 19:04 markasoftware-aqtc

of course, since this'll never probably get merged, the workaround is:

(defun evil-called-interactively-p ()
  (called-interactively-p 'any))

markasoftware-aqtc avatar Apr 02 '25 19:04 markasoftware-aqtc

This is one of the reasons why I developed enhanced-evil-paredit (available on MELPA), a fork of evil-paredit. It fixes this issue along with a few others.

If your sole objective is to resolve this issue, the workaround by @markasoftware-aqtc fixes it.

jamescherti avatar Apr 03 '25 12:04 jamescherti