Subject: Re: bug#45560: 27.1; add-change-log-entry erroneously removes "const" from function name

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 31 Dec 2020 06:09:21 +0100

Tom Tromey <[email-masked]> 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  <[email-masked]>
>
> 	* 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