From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <86plutppjh.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70365@debbugs.gnu.org To: Animesh Sahu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 13 11:43:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rvZur-00089K-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Apr 2024 11:43:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvZuS-0008VX-6u; Sat, 13 Apr 2024 05:42:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvZuQ-0008TL-C7 for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 05:42:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvZuQ-0001Vj-3X for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 05:42:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvZuZ-0008Ki-Ny for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 05:43:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Apr 2024 09:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70365 X-GNU-PR-Package: emacs Original-Received: via spool by 70365-submit@debbugs.gnu.org id=B70365.171300135231686 (code B ref 70365); Sat, 13 Apr 2024 09:43:03 +0000 Original-Received: (at 70365) by debbugs.gnu.org; 13 Apr 2024 09:42:32 +0000 Original-Received: from localhost ([127.0.0.1]:60151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvZu3-0008El-0w for submit@debbugs.gnu.org; Sat, 13 Apr 2024 05:42:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvZu1-0008EI-06; Sat, 13 Apr 2024 05:42:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvZtl-0001MW-2A; Sat, 13 Apr 2024 05:42:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BgUe6GwBYwTyQa4azB2vsrcF2sYOGJGBq2Ob9cvEle4=; b=D2Quf6tGo1V7 fDKlvkCFw28TPqh1jAp+5HixW8Kc03I+sR1xvk7AaKsrXbLgexU2LKKMBQ4sPnsATtwoyF4Ip31dJ Py9XjVTSYEQFMBVI/y2cBHg4bR52TTcPrMPwTNYHWFOOTmCbzeiecEXe50S8TNBMBaZIHb37ZVWmC HsG+wRVLsC54FJpHdaOZpz48pxDTQXujTPYlTOUPzBmiqLfdXQ52EBRFgYSXdQOVXUWuQp87B7K/Y qLO9O1GP+EYL1TLpPH6iw54eVLYSrMV1XrWqbIyyGHSH4wqzKUa34dhBqxgA8IPOvFpxeg3EwaMEU /6HT6kHs0u90Qv4MAaqOCg==; In-Reply-To: (message from Animesh Sahu on Sat, 13 Apr 2024 12:56:20 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283197 Archived-At: tags 70365 notabug thanks > From: Animesh Sahu > 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.