all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Animesh Sahu <animeshz916@gmail.com>
Cc: 70365@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	[thread overview]
Message-ID: <86plutppjh.fsf@gnu.org> (raw)
In-Reply-To: <CA+pP8JBCyrYF2Ef4D1SeoZ4v4Cga_iw1x93SMc7AFJBPj8ikOA@mail.gmail.com> (message from Animesh Sahu on Sat, 13 Apr 2024 12:56:20 +0530)

tags 70365 notabug
thanks

> From: Animesh Sahu <animeshz916@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.





  reply	other threads:[~2024-04-13  9:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-13  7:26 bug#70365: 29.2; Unable to remove suffixes such as Emacs-Lisp/l or C++//l from mode-name variable Animesh Sahu
2024-04-13  9:42 ` Eli Zaretskii [this message]
     [not found]   ` <CA+pP8JA-u7VztkUPsHB6EjzmmWnsUxnC21NX4izvXneNsLZo1g@mail.gmail.com>
2024-04-13 12:00     ` Eli Zaretskii
     [not found]       ` <CA+pP8JAKMERzwDAptyZq5BK1T+=FSiWA7cMrPwpHEg8dHXHSYg@mail.gmail.com>
2024-04-13 14:30         ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=86plutppjh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70365@debbugs.gnu.org \
    --cc=animeshz916@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.