all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#68985: 30.0.50; Gnus: Add option to disable display of logo image in mode-line
@ 2024-02-07 22:02 Mekeor Melire
  2024-02-08  1:39 ` Visuwesh
  2024-02-08  6:11 ` Eli Zaretskii
  0 siblings, 2 replies; 20+ messages in thread
From: Mekeor Melire @ 2024-02-07 22:02 UTC (permalink / raw)
  To: 68985

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

By default, Gnus will attempt to display its logo as image in the
mode-line. I propose to introduce a defcustom variable that allows users
to disable its display. Find attached a patch that implements this. Let
me know your thoughts.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-option-gnus-mode-line-logo.patch --]
[-- Type: text/x-patch, Size: 1739 bytes --]

From 7d3eb97c746ecdd253a370e11727e3041537afe1 Mon Sep 17 00:00:00 2001
From: Mekeor Melire <mekeor@posteo.de>
Date: Wed, 7 Feb 2024 23:00:08 +0100
Subject: [PATCH] Add option gnus-mode-line-logo

* lisp/gnus/gnus.el (gnus-mode-line-logo): New option specifying the
display of the Gnus logo image in the mode-line.
* etc/NEWS: Announce the change.
---
 etc/NEWS          | 4 ++++
 lisp/gnus/gnus.el | 8 +++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index ee7462cb2aa..b283717596c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1098,6 +1098,10 @@ The gmane.org website is, sadly, down since a number of years with no
 prospect of it coming back.  Therefore, it is no longer valid to set
 the user option 'nnweb-type' to 'gmane'.
 
+*** New user option 'gnus-mode-line-logo'.
+This allows the user to disable the display of the Gnus logo image in
+the mode-line.
+
 ** Rmail
 
 ---
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 99833e4eeca..7477828eb72 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -309,12 +309,18 @@ gnus-inhibit-startup-message
   :group 'gnus-start
   :type 'boolean)
 
+(defcustom gnus-mode-line-logo t
+  "If non-nil, Gnus-buffers display logo in mode-line, if applicable."
+  :group 'gnus-visual
+  :type 'boolean)
+
 (defun gnus-mode-line-buffer-identification (line)
   (let* ((str (car-safe line))
          (str (if (stringp str)
                   (car (propertized-buffer-identification str))
                 str)))
-    (if (or (not (fboundp 'find-image))
+    (if (or (not gnus-mode-line-logo)
+            (not (fboundp 'find-image))
 	    (not (display-graphic-p))
 	    (not (stringp str))
 	    (not (string-match "^Gnus:" str)))
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2024-02-13 21:36 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 22:02 bug#68985: 30.0.50; Gnus: Add option to disable display of logo image in mode-line Mekeor Melire
2024-02-08  1:39 ` Visuwesh
2024-02-08 10:53   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-08  6:11 ` Eli Zaretskii
2024-02-08 19:49   ` Mekeor Melire
2024-02-08 22:29     ` Eric Abrahamsen
2024-02-09 10:30       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-09 18:07         ` Eric Abrahamsen
2024-02-09 20:56           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-09 21:53             ` bug#68985: [PATCH v2] Add option gnus-mode-line-logo Mekeor Melire
2024-02-09 23:18               ` Eric Abrahamsen
2024-02-10  2:03                 ` bug#68985: [PATCH v3] " Mekeor Melire
2024-02-10  4:20                   ` Eric Abrahamsen
2024-02-10  9:07                     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-10  7:31               ` bug#68985: [PATCH v2] " Eli Zaretskii
2024-02-10 16:43                 ` Eric Abrahamsen
2024-02-10 22:01                   ` Mekeor Melire
2024-02-11  3:26       ` bug#68985: 30.0.50; Gnus: Add option to disable display of logo image in mode-line Richard Stallman
2024-02-11 15:14         ` Eric Abrahamsen
2024-02-13 21:36           ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors

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.