From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mekeor Melire Newsgroups: gmane.emacs.bugs Subject: bug#68985: 30.0.50; Gnus: Add option to disable display of logo image in mode-line Date: Wed, 07 Feb 2024 22:02:35 +0000 Message-ID: <877cjg3p5k.fsf@posteo.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15294"; mail-complaints-to="usenet@ciao.gmane.io" To: 68985@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 07 23:08:08 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 1rXq5P-0003iE-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Feb 2024 23:08:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXq58-00040n-MV; Wed, 07 Feb 2024 17:07:50 -0500 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 1rXq56-00040X-NY for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 17:07:49 -0500 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 1rXq56-00010i-2o for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 17:07:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXq5J-0003C8-SE for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 17:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Feb 2024 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68985 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170734363112221 (code B ref -1); Wed, 07 Feb 2024 22:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2024 22:07:11 +0000 Original-Received: from localhost ([127.0.0.1]:58098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXq4R-0003Aw-Bn for submit@debbugs.gnu.org; Wed, 07 Feb 2024 17:07:11 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:43664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXq4P-0003AM-FM for submit@debbugs.gnu.org; Wed, 07 Feb 2024 17:07:06 -0500 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 1rXq42-0003NY-KZ for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 17:06:44 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXq40-0000ku-MT for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 17:06:42 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2BEEA240027 for ; Wed, 7 Feb 2024 23:06:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1707343597; bh=RHn3EU53Ebck5S2sddEpa7+YdQZW+bV9yfAer58/Jpc=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=ixaGKYh1nUNIqiJ3LMDC30oKPP1x1gYaqA1/sJUj1AKlL0jrKh/yN8qLH9GfXjHcn V56IuMFCIdn+wRoxB6Rba0vcHIbHZs17avsnKZ4QnUD+m45ii0GG+JkXntp/vZga4F /YXzfDKKnwYthzp4fDrx9s9keqzdde/B6zjCuPI4N3y6dUQqAh8Ih93lkwe5jvlRHp VhATos6PswwPWYFUMWPLMXxMjBiVsiLgXdFbxscF1RL3bIIYdlVa/bFSFuHXokdsmq XlpFlTr00KvpPd+Dr/FwE4zue2UKTb2VUBQOXa9HPjNlFB5HSFuMjmcCe+KNUn28j9 uSk5gjjEp2ARg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TVZ2h2zlGz9rxL; Wed, 7 Feb 2024 23:06:36 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=mekeor@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:279585 Archived-At: --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Add-option-gnus-mode-line-logo.patch >From 7d3eb97c746ecdd253a370e11727e3041537afe1 Mon Sep 17 00:00:00 2001 From: Mekeor Melire 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 --=-=-=--