GNU bug report logs - #45560
27.1; add-change-log-entry erroneously removes "const" from function name

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Wed, 30 Dec 2020 23:13:01 UTC

Severity: normal

Tags: patch

Found in version 27.1

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tom Tromey <tom <at> tromey.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 45560 <at> debbugs.gnu.org
Subject: bug#45560: 27.1; add-change-log-entry erroneously removes "const" from function name
Date: Thu, 31 Dec 2020 06:09:21 +0100
Tom Tromey <tom <at> tromey.com> writes:

> Put this into a .c file:
>
> void
> const_ref ()
> {
> }
>
> Now, put point inside the braces and M-x add-change-log-entry.
>
> For me the resulting ChangeLog looks like:
>
> 2020-12-30  Tom Tromey  <tom <at> tromey.com>
>
> 	* q.c (_ref): 

Debugging this, it looks like this is down to

(c-defun-name-1)

returning "_ref" if called in the const_ref function, so I've added Alan
to the CCs. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 109 days ago.

Previous Next


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