Subject: Re: bug#49592: 28.0.50; lisp-current-defun-name and non-standard defuns

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 12 Aug 2022 17:06:11 +0200

Michael Heerdegen <[email-masked]> writes:

> Have you checked how other major modes handle this case?
>
> Would also be interesting if they also all use
> `add-log-current-defun-function' or if `which-func-functions' are also
> used.  I would not want to special-case Elisp if not necessary.

The only in-tree mode that sets `which-func-functions' is python.el, so
I guess all other modes punt to `add-log-current-defun-function'.