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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Animesh Sahu <animeshz916@HIDDEN>; Keywords: notabug; dated Sat, 13 Apr 2024 08:15:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 70365 <at> debbugs.gnu.org:


Received: (at 70365) by debbugs.gnu.org; 13 Apr 2024 09:42:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 13 05:42:32 2024
Received: from localhost ([127.0.0.1]:60151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rvZu3-0008El-0w
	for submit <at> debbugs.gnu.org; Sat, 13 Apr 2024 05:42:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1rvZu1-0008EI-06; Sat, 13 Apr 2024 05:42:29 -0400
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 <eliz@HIDDEN>)
 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==;
Date: Sat, 13 Apr 2024 12:42:10 +0300
Message-Id: <86plutppjh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Animesh Sahu <animeshz916@HIDDEN>
In-Reply-To: <CA+pP8JBCyrYF2Ef4D1SeoZ4v4Cga_iw1x93SMc7AFJBPj8ikOA@HIDDEN>
 (message from Animesh Sahu on Sat, 13 Apr 2024 12:56:20 +0530)
Subject: Re: bug#70365: 29.2;
 Unable to remove suffixes such as Emacs-Lisp/l or C++//l from
 mode-name variable
References: <CA+pP8JBCyrYF2Ef4D1SeoZ4v4Cga_iw1x93SMc7AFJBPj8ikOA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70365
Cc: 70365 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 70365 notabug
thanks

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70365; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Apr 2024 08:14:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 13 04:14:39 2024
Received: from localhost ([127.0.0.1]:60065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rvYWw-0000iv-LZ
	for submit <at> debbugs.gnu.org; Sat, 13 Apr 2024 04:14:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <animeshz916@HIDDEN>) id 1rvXmr-00020c-83
 for submit <at> debbugs.gnu.org; Sat, 13 Apr 2024 03:27:00 -0400
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 <animeshz916@HIDDEN>)
 id 1rvXmb-0008Hq-EI
 for bug-gnu-emacs@HIDDEN; Sat, 13 Apr 2024 03:26:41 -0400
Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <animeshz916@HIDDEN>)
 id 1rvXmY-0000DJ-3x
 for bug-gnu-emacs@HIDDEN; Sat, 13 Apr 2024 03:26:41 -0400
Received: by mail-vk1-xa2b.google.com with SMTP id
 71dfb90a1353d-4dabbf19e1eso575453e0c.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 13 Apr 2024 00:26:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1712993196; x=1713597996; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=7/iqzEwcozq+wPjtPcRR7Uw0g5X358DSy1QODTEUks0=;
 b=l8J9Ij8UGdMqHrJ55Xwf+j0HywhU8TtLxQ/fDYNTwZkQkMgmtTmZqwNEva6TPutNFU
 5BbSE+IGmOvC4bPbcYsdHNPa70G14azIjwsxHtve9tBdSx242q9g4HAwnsyTz+BaaXPA
 U1e0JZuWTyRz6b1ZpH6Bi92WMCf3HRsUzqnSKYnT2tVnZ9kZg2SCbSLEDNDShnW4EzbT
 Dh+ztf8Xu+utbYoGrzlRK66RaibYGeJacByTxDmWy9jIiblN9iMvHZ35CSgGDvn42bda
 zOAzLclp0lyhdM0LKusJ2qRUbYgrnuTk2r4GCoW4ebu3tbSp8qyjFPMwoIMnsRV83Rr4
 VaZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1712993196; x=1713597996;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=7/iqzEwcozq+wPjtPcRR7Uw0g5X358DSy1QODTEUks0=;
 b=FaXe2/3Kv5VDABuOVI0Z6FBtl1VIjX5BppPzS8i3qef/bhBQAk/FoMwfQ+ypY4vV1d
 24XPQphBmzNHiufn/t36fQRscbg8jvxGEmhpWMgOa3EaYrApOYtAVNZmqquvEwBCI0h9
 ioA/b50kATNHts7eQmc1oLk6DX4soGojJhvt40UUrxNHBSbeRYWOrHFfFWRr6xgjb3sf
 2kLfhvQ0fYtnBbckysj5UfkwEu8ls+17m5K90AFoe0sX6BDnDWDcpgWRPUEbCW/BwGDM
 G+grMEIxEIYaRuuZjoBBEths7v455ZoN2Ue7ID6UY/UWNUWo2Qm/2ERm0Vxr9gZmPd+C
 efYg==
X-Gm-Message-State: AOJu0YyXOy53ANiE7ah29uyFPdd3oI+w+BYclcMXEhySRDsOGjCW0RRh
 vnKLxx4eAf/go/SRzVorADAMVKcDGQ32g8mD56Zw3WwMlh43OEgzB11fl2shFPDoF7JUfvhtg0j
 YQI18RXZ7CdUxay04N4qAOHoWUcvvAbf8Pnk=
X-Google-Smtp-Source: AGHT+IFrp/lnN0SmKn4/TASYsrn4s6bj5o3QMqNC7Q21xRUvx0PHHlgdEN5FUKM3SsRF5e2MT432CVueD049hZl5Ctw=
X-Received: by 2002:a05:6122:3d14:b0:4d4:ef9:719d with SMTP id
 ga20-20020a0561223d1400b004d40ef9719dmr4803802vkb.5.1712993195296; Sat, 13
 Apr 2024 00:26:35 -0700 (PDT)
MIME-Version: 1.0
From: Animesh Sahu <animeshz916@HIDDEN>
Date: Sat, 13 Apr 2024 12:56:20 +0530
Message-ID: <CA+pP8JBCyrYF2Ef4D1SeoZ4v4Cga_iw1x93SMc7AFJBPj8ikOA@HIDDEN>
Subject: 29.2; Unable to remove suffixes such as Emacs-Lisp/l or C++//l from
 mode-name variable
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000e890c20615f54eed"
Received-SPF: pass client-ip=2607:f8b0:4864:20::a2b;
 envelope-from=animeshz916@HIDDEN; helo=mail-vk1-xa2b.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: --text follows this line-- 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
 in [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (animeshz916[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (animeshz916[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 HTML_MESSAGE           BODY: HTML included in message
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 13 Apr 2024 04:14:33 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

--000000000000e890c20615f54eed
Content-Type: text/plain; charset="UTF-8"

--text follows this line--

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.

Closest I could find something is here:
https://www.reddit.com/r/emacs/comments/8v8de4/change_modename_for_major_mode/
it suggests doing something like (defalias 'c-update-modeline #'ignore),
but this doesn't seem right way to do it, since its basically doing only
for C or C++ language, same has to be done for java, ts, many more. Also
Emacs-Lisp/l doesn't have similar function that can be suppressed with
'ignore either, so I don't see a concrete way of doing it.

Any help would be appreciated, thanks!


In GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.18.0, Xaw3d scroll bars)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101011
System Description: Void Linux

Configured using:
 'configure
 --prefix=/nix/store/5hl68vr85cagmwaycqy652r2g2isjcyq-emacs-29.2
 --disable-build-details --with-modules --with-x-toolkit=lucid
 --with-xft --with-cairo --with-compress-install
 --with-toolkit-scroll-bars --with-native-compilation
 --without-imagemagick --without-small-ja-dic --with-tree-sitter
 --with-xinput2 --without-xwidgets'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM
LUCID ZLIB

Important settings:
  value of $EMACSLOADPATH:
  value of $EMACSNATIVELOADPATH:
  value of $LC_COLLATE: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
  org-html-themify-mode: t
  hl-todo-mode: t
  telephone-line-mode: t
  global-hl-line-mode: t
  marginalia-mode: t
  projectile-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  global-company-mode: t
  company-mode: t
  vertico-mode: t
  which-key-mode: t
  undo-fu-session-global-mode: t
  undo-fu-session-mode: t
  global-evil-collection-unimpaired-mode: t
  evil-collection-unimpaired-mode: t
  evil-mode: t
  evil-local-mode: t
  general-override-mode: t
  shell-dirtrack-mode: t
  global-display-line-numbers-mode: t
  display-line-numbers-mode: t
  winner-mode: t
  recentf-mode: t
  savehist-mode: t
  elpaca-use-package-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: #[128 \304\300\301 #\207 [yas--auto-fill #[128
\301\302\300! "\207 [auto-fill-function apply default-value] 4

(fn &rest ARGS)] :around nil apply] 5 advice]
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/nix/store/1vlha7xa4myxc37y3463c2f481w3vw81-emacs-packages-deps/share/emacs/site-lisp/site-start
hides
/nix/store/5hl68vr85cagmwaycqy652r2g2isjcyq-emacs-29.2/share/emacs/site-lisp/site-start
/home/animesh/.emacs.d/elpaca/builds/transient/transient hides
/nix/store/5hl68vr85cagmwaycqy652r2g2isjcyq-emacs-29.2/share/emacs/29.2/lisp/transient

Features:
(shadow sort mail-extr emacsbug cua-base cl-print em-unix em-term
evil-collection-term term disp-table ehelp em-script em-ls em-hist
em-pred em-glob em-extpipe em-cmpl em-dirs esh-var em-basic em-banner
em-alias evil-collection-eshell em-prompt esh-mode eshell esh-cmd
esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util
company-elisp org-html-themify ox-odt rng-loc rng-uri rng-parse
rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok
nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii
ox-publish ox htmlize oc-basic ol-eww evil-collection-eww eww url-queue
mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill
kinsoku url-file svg dom browse-url gnus-group gnus-undo gnus-start
gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo
gnus-spec gnus-int gnus-range message sendmail yank-media puny rfc822
mml mml-sec evil-collection-epa epa derived epg rfc6068 epg-config
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win evil-collection-gnus
gnus nnheader gnus-util mail-utils range mm-util mail-prsvr ol-docview
evil-collection-doc-view doc-view filenotify evil-collection-image
image-mode exif evil-collection-dired dired dired-loaddefs ol-bibtex
bibtex ol-bbdb ol-w3m ol-doi org-link-doi pp mule-util
evil-collection-vc-git vc-git evil-collection-diff-mode diff-mode
vc-dispatcher jka-compr hl-todo company-yasnippet hexrgb telephone-line
telephone-line-segments telephone-line-separators telephone-line-utils
doom-city-lights-theme doom-themes-ext-visual-bell face-remap hl-line
doom-themes doom-themes-base evil-collection-helpful helpful cc-langs
evil-collection-imenu imenu trace evil-collection-edebug edebug
evil-collection-debug debug backtrace info-look evil-collection-info
info f help-fns radix-tree evil-collection-elisp-refs elisp-refs
marginalia evil-collection-embark embark-org org-element org-persist xdg
org-id org-refile avl-tree embark projectile lisp-mnt
evil-collection-grep grep evil-collection-compile compile
text-property-search ibuf-ext evil-collection-ibuffer ibuffer
ibuffer-loaddefs nix-mode ffap smie nix-repl nix-shell nix-store
evil-collection-magit-section magit-section cursor-sensor nix-log
nix-instantiate nix-shebang nix-format nix evil-collection-markdown-mode
markdown-mode color yasnippet company-tabnine s dash company-oddmuse
company-keywords company-etags etags fileloop generator
evil-collection-xref xref company-gtags company-dabbrev-code
company-dabbrev company-files company-clang company-capf company-cmake
company-semantic company-template company-bbdb evil-collection-company
company hop orderless evil-collection-vertico vertico compat
evil-collection-which-key which-key evil-collection-vundo vundo
undo-fu-session undo-fu hl-todo-autoloads org-html-themify-autoloads
htmlize-autoloads hexrgb-autoloads telephone-line-autoloads
doom-themes-autoloads helpful-autoloads f-autoloads elisp-refs-autoloads
marginalia-autoloads embark-autoloads projectile-autoloads
nix-mode-autoloads magit-section-autoloads transient-autoloads
markdown-mode-autoloads yasnippet-autoloads company-tabnine-autoloads
dash-autoloads s-autoloads company-autoloads hop-autoloads
orderless-autoloads vertico-autoloads compat-autoloads
which-key-autoloads vundo-autoloads undo-fu-session-autoloads
undo-fu-autoloads chdir chdir-core tramp tramp-loaddefs trampver
tramp-integration files-x tramp-compat parse-time iso8601 pcre pcre-core
evil-collection-unimpaired evil-collection-tabulated-list
evil-collection-tab-bar evil-collection-simple evil-collection-replace
evil-collection-python evil-collection-process-menu
evil-collection-outline evil-collection-org evil-collection-indent
evil-collection-help evil-collection-elisp-mode evil-collection-eldoc
evil-collection-elpaca evil-collection-comint evil-collection-calendar
evil-collection-buff-menu evil-collection annalist evil evil-integration
evil-maps evil-commands reveal evil-jumps evil-command-window evil-types
evil-search evil-ex evil-macros evil-repeat evil-states evil-core advice
evil-common thingatpt rect evil-vars edmacro kmacro comp comp-cstr
warnings general evil-collection-autoloads annalist-autoloads
evil-autoloads goto-chg-autoloads general-autoloads cl-extra help-mode
ob-js ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs ob-ruby ob-python python project pcase treesit
ob-shell shell display-line-numbers winner recentf tree-widget wid-edit
savehist org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color
ring org-list org-footnote org-faces org-entities time-date noutline
outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx
org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu
calendar cal-loaddefs org-version org-compat org-macs format-spec
elpaca-use-package use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core elpaca-use-package-autoloads elpaca-log elpaca-ui url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util url-parse auth-source eieio
eieio-core password-cache json subr-x map byte-opt bytecomp byte-compile
url-vars mailcap cl-seq cl-macs elpaca elpaca-process cl-loaddefs cl-lib
elpaca-autoloads early-init gv rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
xinput2 x multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 967497 256396)
 (symbols 48 49654 3)
 (strings 32 312726 26972)
 (string-bytes 1 9196016)
 (vectors 16 93110)
 (vector-slots 8 2293913 442255)
 (floats 8 906 1912)
 (intervals 56 4205 1976)
 (buffers 984 26))

--000000000000e890c20615f54eed
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">--text follows this line--<br><br>I was trying to set up e=
macs modeline, the major modes however under the variable name &quot;mode-n=
ame&quot; 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&#39;t se=
em to find any way of doing that anywhere on the internet.<div><br></div><d=
iv>Closest I could find something is here:=C2=A0<a href=3D"https://www.redd=
it.com/r/emacs/comments/8v8de4/change_modename_for_major_mode/">https://www=
.reddit.com/r/emacs/comments/8v8de4/change_modename_for_major_mode/</a> it =
suggests doing something like=C2=A0(defalias &#39;c-update-modeline #&#39;i=
gnore), but this doesn&#39;t seem right way to do it, since its basically d=
oing only for C or C++ language, same has to be done for java, ts, many mor=
e. Also Emacs-Lisp/l doesn&#39;t have similar function that can be suppress=
ed=C2=A0with &#39;ignore either, so I don&#39;t see a concrete way of doing=
 it.</div><div><br></div><div>Any help=C2=A0would be appreciated, thanks!</=
div><div><br><br>In GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, X toolkit=
, cairo<br>version 1.18.0, Xaw3d scroll bars)<br>Windowing system distribut=
or &#39;The X.Org Foundation&#39;, version 11.0.12101011<br>System Descript=
ion: Void Linux<br><br>Configured using:<br>=C2=A0&#39;configure<br>=C2=A0-=
-prefix=3D/nix/store/5hl68vr85cagmwaycqy652r2g2isjcyq-emacs-29.2<br>=C2=A0-=
-disable-build-details --with-modules --with-x-toolkit=3Dlucid<br>=C2=A0--w=
ith-xft --with-cairo --with-compress-install<br>=C2=A0--with-toolkit-scroll=
-bars --with-native-compilation<br>=C2=A0--without-imagemagick --without-sm=
all-ja-dic --with-tree-sitter<br>=C2=A0--with-xinput2 --without-xwidgets&#3=
9;<br><br>Configured features:<br>CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS G=
PM GSETTINGS HARFBUZZ JPEG JSON<br>LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17=
N_FLT MODULES NATIVE_COMP NOTIFY<br>INOTIFY PDUMPER PNG RSVG SECCOMP SOUND =
SQLITE3 THREADS TIFF<br>TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE=
 XIM XINPUT2 XPM<br>LUCID ZLIB<br><br>Important settings:<br>=C2=A0 value o=
f $EMACSLOADPATH: <br>=C2=A0 value of $EMACSNATIVELOADPATH: <br>=C2=A0 valu=
e of $LC_COLLATE: C<br>=C2=A0 value of $LANG: en_US.UTF-8<br>=C2=A0 locale-=
coding-system: utf-8-unix<br><br>Major mode: Org<br><br>Minor modes in effe=
ct:<br>=C2=A0 org-html-themify-mode: t<br>=C2=A0 hl-todo-mode: t<br>=C2=A0 =
telephone-line-mode: t<br>=C2=A0 global-hl-line-mode: t<br>=C2=A0 marginali=
a-mode: t<br>=C2=A0 projectile-mode: t<br>=C2=A0 yas-global-mode: t<br>=C2=
=A0 yas-minor-mode: t<br>=C2=A0 global-company-mode: t<br>=C2=A0 company-mo=
de: t<br>=C2=A0 vertico-mode: t<br>=C2=A0 which-key-mode: t<br>=C2=A0 undo-=
fu-session-global-mode: t<br>=C2=A0 undo-fu-session-mode: t<br>=C2=A0 globa=
l-evil-collection-unimpaired-mode: t<br>=C2=A0 evil-collection-unimpaired-m=
ode: t<br>=C2=A0 evil-mode: t<br>=C2=A0 evil-local-mode: t<br>=C2=A0 genera=
l-override-mode: t<br>=C2=A0 shell-dirtrack-mode: t<br>=C2=A0 global-displa=
y-line-numbers-mode: t<br>=C2=A0 display-line-numbers-mode: t<br>=C2=A0 win=
ner-mode: t<br>=C2=A0 recentf-mode: t<br>=C2=A0 savehist-mode: t<br>=C2=A0 =
elpaca-use-package-mode: t<br>=C2=A0 override-global-mode: t<br>=C2=A0 tool=
tip-mode: t<br>=C2=A0 global-eldoc-mode: t<br>=C2=A0 show-paren-mode: t<br>=
=C2=A0 electric-indent-mode: t<br>=C2=A0 mouse-wheel-mode: t<br>=C2=A0 file=
-name-shadow-mode: t<br>=C2=A0 global-font-lock-mode: t<br>=C2=A0 font-lock=
-mode: t<br>=C2=A0 blink-cursor-mode: t<br>=C2=A0 column-number-mode: t<br>=
=C2=A0 line-number-mode: t<br>=C2=A0 auto-fill-function: #[128 \304\300\301=
 #\207 [yas--auto-fill #[128 \301\302\300! &quot;\207 [auto-fill-function a=
pply default-value] 4 <br><br>(fn &amp;rest ARGS)] :around nil apply] 5 adv=
ice]<br>=C2=A0 global-visual-line-mode: t<br>=C2=A0 visual-line-mode: t<br>=
=C2=A0 transient-mark-mode: t<br>=C2=A0 auto-composition-mode: t<br>=C2=A0 =
auto-encryption-mode: t<br>=C2=A0 auto-compression-mode: t<br><br>Load-path=
 shadows:<br>/nix/store/1vlha7xa4myxc37y3463c2f481w3vw81-emacs-packages-dep=
s/share/emacs/site-lisp/site-start hides /nix/store/5hl68vr85cagmwaycqy652r=
2g2isjcyq-emacs-29.2/share/emacs/site-lisp/site-start<br>/home/animesh/.ema=
cs.d/elpaca/builds/transient/transient hides /nix/store/5hl68vr85cagmwaycqy=
652r2g2isjcyq-emacs-29.2/share/emacs/29.2/lisp/transient<br><br>Features:<b=
r>(shadow sort mail-extr emacsbug cua-base cl-print em-unix em-term<br>evil=
-collection-term term disp-table ehelp em-script em-ls em-hist<br>em-pred e=
m-glob em-extpipe em-cmpl em-dirs esh-var em-basic em-banner<br>em-alias ev=
il-collection-eshell em-prompt esh-mode eshell esh-cmd<br>esh-ext esh-opt e=
sh-proc esh-io esh-arg esh-module esh-groups esh-util<br>company-elisp org-=
html-themify ox-odt rng-loc rng-uri rng-parse<br>rng-match rng-dt rng-util =
rng-pttrn nxml-parse nxml-ns nxml-enc xmltok<br>nxml-util ox-latex ox-icale=
ndar org-agenda ox-html table ox-ascii<br>ox-publish ox htmlize oc-basic ol=
-eww evil-collection-eww eww url-queue<br>mm-url ol-rmail ol-mhe ol-irc ol-=
info ol-gnus nnselect gnus-art mm-uu<br>mml2015 mm-view mml-smime smime gnu=
tls dig gnus-sum shr pixel-fill<br>kinsoku url-file svg dom browse-url gnus=
-group gnus-undo gnus-start<br>gnus-dbus dbus xml gnus-cloud nnimap nnmail =
mail-source utf7 nnoo<br>gnus-spec gnus-int gnus-range message sendmail yan=
k-media puny rfc822<br>mml mml-sec evil-collection-epa epa derived epg rfc6=
068 epg-config<br>mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 =
rfc2045<br>ietf-drums mailabbrev gmm-utils mailheader gnus-win evil-collect=
ion-gnus<br>gnus nnheader gnus-util mail-utils range mm-util mail-prsvr ol-=
docview<br>evil-collection-doc-view doc-view filenotify evil-collection-ima=
ge<br>image-mode exif evil-collection-dired dired dired-loaddefs ol-bibtex<=
br>bibtex ol-bbdb ol-w3m ol-doi org-link-doi pp mule-util<br>evil-collectio=
n-vc-git vc-git evil-collection-diff-mode diff-mode<br>vc-dispatcher jka-co=
mpr hl-todo company-yasnippet hexrgb telephone-line<br>telephone-line-segme=
nts telephone-line-separators telephone-line-utils<br>doom-city-lights-them=
e doom-themes-ext-visual-bell face-remap hl-line<br>doom-themes doom-themes=
-base evil-collection-helpful helpful cc-langs<br>evil-collection-imenu ime=
nu trace evil-collection-edebug edebug<br>evil-collection-debug debug backt=
race info-look evil-collection-info<br>info f help-fns radix-tree evil-coll=
ection-elisp-refs elisp-refs<br>marginalia evil-collection-embark embark-or=
g org-element org-persist xdg<br>org-id org-refile avl-tree embark projecti=
le lisp-mnt<br>evil-collection-grep grep evil-collection-compile compile<br=
>text-property-search ibuf-ext evil-collection-ibuffer ibuffer<br>ibuffer-l=
oaddefs nix-mode ffap smie nix-repl nix-shell nix-store<br>evil-collection-=
magit-section magit-section cursor-sensor nix-log<br>nix-instantiate nix-sh=
ebang nix-format nix evil-collection-markdown-mode<br>markdown-mode color y=
asnippet company-tabnine s dash company-oddmuse<br>company-keywords company=
-etags etags fileloop generator<br>evil-collection-xref xref company-gtags =
company-dabbrev-code<br>company-dabbrev company-files company-clang company=
-capf company-cmake<br>company-semantic company-template company-bbdb evil-=
collection-company<br>company hop orderless evil-collection-vertico vertico=
 compat<br>evil-collection-which-key which-key evil-collection-vundo vundo<=
br>undo-fu-session undo-fu hl-todo-autoloads org-html-themify-autoloads<br>=
htmlize-autoloads hexrgb-autoloads telephone-line-autoloads<br>doom-themes-=
autoloads helpful-autoloads f-autoloads elisp-refs-autoloads<br>marginalia-=
autoloads embark-autoloads projectile-autoloads<br>nix-mode-autoloads magit=
-section-autoloads transient-autoloads<br>markdown-mode-autoloads yasnippet=
-autoloads company-tabnine-autoloads<br>dash-autoloads s-autoloads company-=
autoloads hop-autoloads<br>orderless-autoloads vertico-autoloads compat-aut=
oloads<br>which-key-autoloads vundo-autoloads undo-fu-session-autoloads<br>=
undo-fu-autoloads chdir chdir-core tramp tramp-loaddefs trampver<br>tramp-i=
ntegration files-x tramp-compat parse-time iso8601 pcre pcre-core<br>evil-c=
ollection-unimpaired evil-collection-tabulated-list<br>evil-collection-tab-=
bar evil-collection-simple evil-collection-replace<br>evil-collection-pytho=
n evil-collection-process-menu<br>evil-collection-outline evil-collection-o=
rg evil-collection-indent<br>evil-collection-help evil-collection-elisp-mod=
e evil-collection-eldoc<br>evil-collection-elpaca evil-collection-comint ev=
il-collection-calendar<br>evil-collection-buff-menu evil-collection annalis=
t evil evil-integration<br>evil-maps evil-commands reveal evil-jumps evil-c=
ommand-window evil-types<br>evil-search evil-ex evil-macros evil-repeat evi=
l-states evil-core advice<br>evil-common thingatpt rect evil-vars edmacro k=
macro comp comp-cstr<br>warnings general evil-collection-autoloads annalist=
-autoloads<br>evil-autoloads goto-chg-autoloads general-autoloads cl-extra =
help-mode<br>ob-js ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-style=
s cc-align<br>cc-engine cc-vars cc-defs ob-ruby ob-python python project pc=
ase treesit<br>ob-shell shell display-line-numbers winner recentf tree-widg=
et wid-edit<br>savehist org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-=
macro<br>org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-col=
or<br>ring org-list org-footnote org-faces org-entities time-date noutline<=
br>outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx<br=
>org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu<br>cale=
ndar cal-loaddefs org-version org-compat org-macs format-spec<br>elpaca-use=
-package use-package use-package-ensure use-package-delight<br>use-package-=
diminish use-package-bind-key bind-key easy-mmode<br>use-package-core elpac=
a-use-package-autoloads elpaca-log elpaca-ui url<br>url-proxy url-privacy u=
rl-expand url-methods url-history url-cookie<br>generate-lisp-file url-doms=
uf url-util url-parse auth-source eieio<br>eieio-core password-cache json s=
ubr-x map byte-opt bytecomp byte-compile<br>url-vars mailcap cl-seq cl-macs=
 elpaca elpaca-process cl-loaddefs cl-lib<br>elpaca-autoloads early-init gv=
 rmc iso-transl tooltip cconv eldoc paren<br>electric uniquify ediff-hook v=
c-hooks lisp-float-type elisp-mode mwheel<br>term/x-win x-win term/common-w=
in x-dnd tool-bar dnd fontset image<br>regexp-opt fringe tabulated-list rep=
lace newcomment text-mode lisp-mode<br>prog-mode register page tab-bar menu=
-bar rfn-eshadow isearch easymenu<br>timer select scroll-bar mouse jit-lock=
 font-lock syntax font-core<br>term/tty-colors frame minibuffer nadvice seq=
 simple cl-generic<br>indonesian philippine cham georgian utf-8-lang misc-l=
ang vietnamese<br>tibetan thai tai-viet lao korean japanese eucjp-ms cp5193=
2 hebrew greek<br>romanian slovak czech european ethiopic indian cyrillic c=
hinese<br>composite emoji-zwj charscript charprop case-table epa-hook<br>jk=
a-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs<br>th=
eme-loaddefs faces cus-face macroexp files window text-properties<br>overla=
y sha1 md5 base64 format env code-pages mule custom widget keymap<br>hashta=
ble-print-readable backquote threads dbusbind inotify<br>dynamic-setting sy=
stem-font-setting font-render-setting cairo x-toolkit<br>xinput2 x multi-tt=
y make-network-process native-compile emacs)<br><br>Memory information:<br>=
((conses 16 967497 256396)<br>=C2=A0(symbols 48 49654 3)<br>=C2=A0(strings =
32 312726 26972)<br>=C2=A0(string-bytes 1 9196016)<br>=C2=A0(vectors 16 931=
10)<br>=C2=A0(vector-slots 8 2293913 442255)<br>=C2=A0(floats 8 906 1912)<b=
r>=C2=A0(intervals 56 4205 1976)<br>=C2=A0(buffers 984 26))<br></div></div>

--000000000000e890c20615f54eed--




Acknowledgement sent to Animesh Sahu <animeshz916@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70365; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 13 Apr 2024 09:45:01 UTC

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