GNU bug report logs - #72223
31.0.50; c-ts-mode-indent-style custom function should accept a `mode`(c/c++) parameter

Previous Next

Package: emacs;

Reported by: Meow King <mr.meowking <at> anche.no>

Date: Sun, 21 Jul 2024 08:41:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 72223-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Meow King <mr.meowking <at> anche.no>
Cc: 72223-done <at> debbugs.gnu.org
Subject: Re: bug#72223: 31.0.50; c-ts-mode-indent-style custom function
 should accept a `mode`(c/c++) parameter
Date: Sun, 21 Jul 2024 12:35:38 +0300
> From: Meow King <mr.meowking <at> anche.no>
> Cc: 
> Date: Sun, 21 Jul 2024 17:14:35 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Isn't the mode available as the value of major-mode?
> 
> Yes, after testing, this approach is proved to be right.
> 
> My `major-mode` related thoughts was immediately discarded since the
> function call is inside `define-derived-mode` block, and not even the
> `after-hook`. After testing, it is proved that the `major-mode` variable
> is already settled. Though, I think it's better to give it a mention in the doc.
> 
> Thank you for your reply and your awesome work!

Thanks, so I'm closing this bug report.

P.S. Please in the future use Reply All to reply, so that the bug
tracker is CC'ed.




This bug report was last modified 340 days ago.

Previous Next


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