GNU bug report logs - #70365
29.2; Unable to remove suffixes such as Emacs-Lisp/l or C++//l from mode-name variable

Previous Next

Package: emacs;

Reported by: Animesh Sahu <animeshz916 <at> gmail.com>

Date: Sat, 13 Apr 2024 08:15:05 UTC

Severity: normal

Tags: notabug

Found in version 29.2

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

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: Animesh Sahu <animeshz916 <at> gmail.com>
Cc: 70365 <at> debbugs.gnu.org
Subject: bug#70365: 29.2; Unable to remove suffixes such as Emacs-Lisp/l or C++//l from mode-name variable
Date: Sat, 13 Apr 2024 12:42:10 +0300
tags 70365 notabug
thanks

> From: Animesh Sahu <animeshz916 <at> gmail.com>
> Date: Sat, 13 Apr 2024 12:56:20 +0530
> 
> I was trying to set up emacs modeline, the major modes however under the variable name "mode-name"
> seems to have a suffix injected, and thus it renders either C++//l instead of C++ and Emacs-Lisp/l instead of
> Emacs-Lisp, I would like it to be simply the name of major mode without extra details. And I don't seem to find
> any way of doing that anywhere on the internet.

Can't you simply overwrite the value of mode-name in your mode hook?

Or modify the value of mode-line-modes to use some other variable
instead of mode-name, and then set the value of that other variable as
you see fit.




This bug report was last modified 1 year and 37 days ago.

Previous Next


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