From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#32403: 27.0.50; cc mode: c-display-defun-name doesn't work when return type is a pointer Date: Wed, 8 Aug 2018 17:18:58 -0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000087a5430572f23815" X-Trace: blaine.gmane.org 1533760868 27398 195.159.176.226 (8 Aug 2018 20:41:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2018 20:41:08 +0000 (UTC) To: 32403@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 08 22:41:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fnVGP-0006v9-Qe for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Aug 2018 22:41:02 +0200 Original-Received: from localhost ([::1]:45402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnVIU-00045y-Nc for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Aug 2018 16:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnVIN-00045q-Vk for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:43:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnVIM-00009a-H0 for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:43:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fnVIM-00009S-DC for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fnVIM-0005jv-5g for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Aug 2018 20:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153376094021980 (code B ref -1); Wed, 08 Aug 2018 20:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Aug 2018 20:42:20 +0000 Original-Received: from localhost ([127.0.0.1]:45323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fnVHg-0005iR-7h for submit@debbugs.gnu.org; Wed, 08 Aug 2018 16:42:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fnUvI-00056a-Ex for submit@debbugs.gnu.org; Wed, 08 Aug 2018 16:19:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnUvB-00071P-LY for submit@debbugs.gnu.org; Wed, 08 Aug 2018 16:19:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fnUvB-00071F-HB for submit@debbugs.gnu.org; Wed, 08 Aug 2018 16:19:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnUv9-0002ye-Lw for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnUv8-0006zl-1c for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:19:03 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:44571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fnUv7-0006ys-Jv for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2018 16:19:01 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id g6-v6so2478165lfb.11 for ; Wed, 08 Aug 2018 13:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aghOMPWIdMTQi0iqmzT4P2So9nBeKGc6RI9+dq6X3XM=; b=ddE8Jb7mpod6+EfMjBPzHEO98VAJ0V0lZjkVPomRBvnGjC4D1M/3SdWI2AUogbCiR8 9UezwkVSsJ6o7ayVS00HjN7FRMMCKtPYZHQlN0xA/HP2wj1SqDqQ27RzVYFRLQj0f2zh bNd0fYKeQhRZXFwy8zRynWXlYyUCKIwSJhRMrVmNCs4Esl/ktIH53d5Sfo5r2iK1a8ew vaJGKdX+g4StnCTFjyQQ0BxUeLtr8EptagxEXZhzrK2qrc7/lcoc+rWjKd0MKOvLmg3h S2aJJ12et6b+VnGb8W3+JR7PpV/pDNpj0M5ulscRvA1wAphGou7dgx4pZ/fpy4Y21D4+ YjHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aghOMPWIdMTQi0iqmzT4P2So9nBeKGc6RI9+dq6X3XM=; b=XLyeBZsmeniFTs+YVH9Nyo1+bgw2B+KznRb3DfNjC9cowCEujWM88VcF5/OOTr41ro KaRMGx6gDnZ9vlumyJAe5Y7lxTCP8VZ4rqDxJUciZ4b6s+nAU7zvbC4eaKhDo5V3p786 hJT40Y4u96DrKzoXc1Vw2gzf1XftQ8j7v0KJ6zBYN5E6WQzLwnYfvlSe+6CnwhT103zH FhGIBVbpdPl5Hf/qptPOtTXJDp4LrGPj+k4igtrMuesBxqWdDPxq0XE7Pswj1tk1trxI bKmHwbeQoeUM+FsuMgYYB6SU4YNuwPCW/kg83p0WFP1qfcJXP6TuwQY/71P7disJ31vs zW0Q== X-Gm-Message-State: AOUpUlHoIT9PREo9dUmCVRaePyLVH9csBC3+gfXbkJJoxyH60rcmVFVQ tE9XkEO2l9F1NmNPuXgZbLVRD1E/9VTvqQI/guv2OwBl X-Google-Smtp-Source: AA+uWPxl4CNOqSWt5WypSSIp/1Lf6FITNRWMOoP1R5iWn55VmtzLZGF78zbBn8HjVIr9Z/eLgekNhOfDkAzd3ZDeLc4= X-Received: by 2002:a19:1586:: with SMTP id 6-v6mr2733388lfv.51.1533759539617; Wed, 08 Aug 2018 13:18:59 -0700 (PDT) Original-Received: by 2002:a19:ded1:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 13:18:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 08 Aug 2018 16:42:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149362 Archived-At: --00000000000087a5430572f23815 Content-Type: text/plain; charset="UTF-8" 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 CC mode version is 5.33.1 in both. In GNU Emacs 27.0.50 (build 2, i686-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-08-08 built on the-blackbeard Repository revision: c85ff212dcd0817b833032650f1d52850e8a3c2e Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.5 LTS Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2 Important settings: value of $LANG: es_AR.UTF-8 value of $XMODIFIERS: locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr help-fns radix-tree help-mode emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib misearch multi-isearch jka-compr info easymenu elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 144019 19238) (symbols 24 22989 1) (miscs 20 89 398) (strings 16 39537 2547) (string-bytes 1 1168068) (vectors 12 17763) (vector-slots 4 584268 27730) (floats 8 66 344) (intervals 28 4892 66) (buffers 536 16) (heap 1024 29018 999)) --00000000000087a5430572f23815 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello. I'm sending this report here because I tes= ted in GNU Emacs 26.1.50 and the problem is not present. If it belongs to t= he CC Mode mailing list, please let me know.


<= /div>
I run: emacs -Q and visit a C file.

Insi= de a function that doesn't return a pointer, c-display-defun-name works= just fine. Example:

int
dummy_returnint(int ret)
{
= =C2=A0 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)
{
=C2=A0 return ret;
}

Minibu= ffer displays nothing


CC mode version is 5.33.1 in both.

=
In GNU Emacs 27.0.50 (build 2, i686-pc-linux-gnu, GTK+ Version 3.18.9)<= br>=C2=A0of 2018-08-08 built on the-blackbeard
Repository revision: c85f= f212dcd0817b833032650f1d52850e8a3c2e
Windowing system distributor 'T= he X.Org Foundation', version 11.0.11906000
System Description: Ubun= tu 16.04.5 LTS

Configured features:
XPM JPEG TIFF GIF PNG RSVG IM= AGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 = FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS L= CMS2

Important settings:
=C2=A0 value of $LANG: es_AR.UTF-8
= =C2=A0 value of $XMODIFIERS:
=C2=A0 locale-coding-system: utf-8-unix
Major mode: C/*l

Minor modes in effect:
=C2=A0 tooltip-mode:= t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2= =A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode:= t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-com= position-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compressi= on-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t=C2=A0 abbrev-mode: t

Load-path shadows:
None found.

Fea= tures:
(shadow sort mail-extr help-fns radix-tree help-mode emacsbug mes= sage
rmc puny seq byte-opt gv bytecomp byte-compile cconv dired
dired= -loaddefs format-spec rfc822 mml mml-sec password-cache epa derived
epg = epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies
mm-encode = mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2= 045 ietf-drums mm-util mail-prsvr mail-utils cc-mode
cc-fonts cc-guess c= c-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs cl-loaddefs= cl-lib misearch multi-isearch jka-compr info
easymenu elec-pair time-da= te mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-fl= oat-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd font= set image regexp-opt fringe
tabulated-list replace newcomment text-mode = elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearc= h timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-= core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang=
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932hebrew greek romanian slovak czech european ethiopic indian cyrillic
c= hinese composite charscript charprop case-table epa-hook jka-cmpr-hook
h= elp simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
butto= n faces cus-face macroexp files text-properties overlay sha1 md5
base64 = format env code-pages mule custom widget hashtable-print-readable
backqu= ote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting f= ont-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-p= rocess emacs)

Memory information:
((conses 8 144019 19238)
=C2= =A0(symbols 24 22989 1)
=C2=A0(miscs 20 89 398)
=C2=A0(strings 16 395= 37 2547)
=C2=A0(string-bytes 1 1168068)
=C2=A0(vectors 12 17763)
= =C2=A0(vector-slots 4 584268 27730)
=C2=A0(floats 8 66 344)
=C2=A0(in= tervals 28 4892 66)
=C2=A0(buffers 536 16)
=C2=A0(heap 1024 29018 999= ))

--00000000000087a5430572f23815--