Menu

#494 mh-funcall-if-exists ignores function if it wasn't there at compile time

Unassigned
closed-fixed
None
5
2023-12-31
2020-01-20
Mike Kupfer
No

The docstring for mh-funcall-if-exists says "Call FUNCTION with ARGS as parameters if it exists."
But it will only do that if FUNCTION was defined at compile time. If it wasn't, then the function will not ever be called, even if it's defined at runtime.

Discussion

  • Mike Kupfer

    Mike Kupfer - 2020-06-28
    • status: unread --> open
     
  • Stephen Gildea

    Stephen Gildea - 2023-11-02

    In fall 2021 (for Emacs 29), Stefan Kangas removed all calls to mh-funcall-if-exists and declared it obsolete. Probably all that remains to be done is to remove the definition itself.

     
  • Bill Wohler

    Bill Wohler - 2023-12-31

    This wasn't the only unused macro. The list of unused macros in mh-acros.el is: mh-do-in-gnu-emacs, mh-do-in-xemacs, mh-funcall-if-exists, defun-mh, defmacro-mh, mh-make-local-hook,mh-mark-active-p. These have been deleted on the master branch.

     
  • Bill Wohler

    Bill Wohler - 2023-12-31
    • status: open --> closed-fixed
    • assigned_to: Bill Wohler
     
  • Bill Wohler

    Bill Wohler - 2023-12-31

    Fixed in a058d61615.

     

Log in to post a comment.