GNU bug report logs - #32403
27.0.50; cc mode: c-display-defun-name doesn't work when return type is a pointer

Previous Next

Packages: emacs, cc-mode;

Reported by: Mauro Aranda <maurooaranda <at> gmail.com>

Date: Wed, 8 Aug 2018 20:43:01 UTC

Severity: normal

Found in version 27.0.50

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: Eli Zaretskii <eliz <at> gnu.org>
To: Mauro Aranda <maurooaranda <at> gmail.com>, Alan Mackenzie <acm <at> muc.de>
Cc: 32403 <at> debbugs.gnu.org
Subject: bug#32403: 27.0.50; cc mode: c-display-defun-name doesn't work when return type is a pointer
Date: Fri, 17 Aug 2018 12:24:50 +0300
> From: Mauro Aranda <maurooaranda <at> gmail.com>
> Date: Wed, 8 Aug 2018 17:18:58 -0300
> 
> Hello. I'm sending this report here because I tested in GNU Emacs 26.1.50 and the problem is not present. If
> it belongs to the CC Mode mailing list, please let me know.
> 
> I run: emacs -Q and visit a C file.
> 
> Inside a function that doesn't return a pointer, c-display-defun-name works just fine. Example:
> 
> int
> dummy_returnint(int ret)
> {
>   return ret;
> }
> 
> Minibuffer displays: dummy_returnint
> 
> But when the function returns a pointer, c-display-defun-name fails to display the function name in the
> minibuffer. Example:
> 
> int *
> dummy_returnpointertoint(int *ret)
> {
>   return ret;
> }
> 
> Minibuffer displays nothing

Confirmed.  Alan, could you please take a look at this?




This bug report was last modified 6 years and 271 days ago.

Previous Next


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