unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: e190@163.com, 60296@debbugs.gnu.org
Subject: bug#60296: The imenu is not created properly in c-ts-mode
Date: Sun, 25 Dec 2022 00:31:05 -0800	[thread overview]
Message-ID: <5C8629D4-6B5D-4478-83E2-9D4027C0F8C7@gmail.com> (raw)
In-Reply-To: <83bkns3rf2.fsf@gnu.org>



> On Dec 24, 2022, at 10:53 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> Cc: 60296-done@debbugs.gnu.org
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Sat, 24 Dec 2022 19:00:21 -0800
>> 
>>> From: sniper <e190@163.com>
>>> To: bug-gnu-emacs@gnu.org
>>> Subject: 29.0.60; The imenu is not created properly in c-ts-mode.
>>> 
>>> ``` c
>>> char *test(int size){
>>> return NULL;
>>> }
>>> ```
>>> If c-ts-mode is enabled in a c file, the imenu created will be [` test(int size)`] if the return type of the function is a
>>> pointer.
>>> The expected display should just be the function name [` test `], with no subsequent arguments
>> 
>> Thanks, this should be fixed now.
> 
> This change leads to
> 
>  In c-ts-mode--fontify-declarator:
>  progmodes/c-ts-mode.el:405:69: Warning: Unused lexical argument `args'
> 
> And "&rest args" is indeed unused there, AFAICT.

My bad. I’ve fixed that by changing args to _.

Yuan






  reply	other threads:[~2022-12-25  8:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-24  9:31 bug#60296: The imenu is not created properly in c-ts-mode e190
2022-12-25  3:00 ` Yuan Fu
2022-12-25  6:53   ` Eli Zaretskii
2022-12-25  8:31     ` Yuan Fu [this message]
2022-12-26  7:58       ` bug#60296: " e190
2022-12-26  9:47         ` Yuan Fu
2022-12-27 10:03           ` bug#60296: " e190

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5C8629D4-6B5D-4478-83E2-9D4027C0F8C7@gmail.com \
    --to=casouri@gmail.com \
    --cc=60296@debbugs.gnu.org \
    --cc=e190@163.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).