GNU bug report logs - #49592
28.0.50; lisp-current-defun-name and non-standard defuns

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Fri, 16 Jul 2021 02:55:02 UTC

Severity: normal

Found in version 28.0.50

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 49592 <at> debbugs.gnu.org
Subject: bug#49592: 28.0.50; lisp-current-defun-name and non-standard defuns
Date: Fri, 05 Aug 2022 05:01:35 +0200
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Isn't "defun" synonymous with "top-level-form" in such cases
> (e.g. `end-of-defun')?

`add-log-current-defun-function' tells "[...] should return the
function's name as a string, or nil if point is outside a function." -
but here "function" is also meta language - for something like
"(top-level) defining form" probably.

But I don't use add-log.  In my which-function example, returning nil is
better than the current behavior.  `which-function-mode' is for
orientation, so saying "(progn ...)" would also make sense to me and
provide a bit more help than staying silent.

Michael.




This bug report was last modified 2 years and 325 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.