From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#57977: 29.0.50; [PATCH] Make Gnus respect mode-line-buffer-identification-keymap Date: Wed, 21 Sep 2022 18:20:26 +0530 Message-ID: <87y1ucc2nh.fsf@gmail.com> References: <8735ckdhit.fsf@gmail.com> 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="21633"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 57977@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 15:42:07 2022 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 1oazzK-0005P3-GF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 15:42:06 +0200 Original-Received: from localhost ([::1]:45236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oazzJ-0001hN-IA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 09:42:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oazBu-0001CQ-Sa for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:51:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oazBu-0006k5-D3 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oazBu-0006js-88 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2022 12:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57977-submit@debbugs.gnu.org id=B57977.166376464225880 (code B ref 57977); Wed, 21 Sep 2022 12:51:02 +0000 Original-Received: (at 57977) by debbugs.gnu.org; 21 Sep 2022 12:50:42 +0000 Original-Received: from localhost ([127.0.0.1]:32892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oazBa-0006jL-7m for submit@debbugs.gnu.org; Wed, 21 Sep 2022 08:50:42 -0400 Original-Received: from mail-pf1-f195.google.com ([209.85.210.195]:39858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oazBY-0006j4-RV for 57977@debbugs.gnu.org; Wed, 21 Sep 2022 08:50:41 -0400 Original-Received: by mail-pf1-f195.google.com with SMTP id u132so5810935pfc.6 for <57977@debbugs.gnu.org>; Wed, 21 Sep 2022 05:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:references:message-id:date:in-reply-to :subject:to:from:from:to:cc:subject:date; bh=Iy14MnKguEyQUWw9+RTXypw6XBImpjnDiYQq3kWmB5Y=; b=dhRlYWIFoBMdXiZvYEUKVa59AyUu8uWl8gonVfPbQKif31cvrLeze/tDRR6FPBwXfS Gw0DnHbmEZ4js+eXWsNd942mX/oj5GQVmD9v2iIKOUallCtIQhrH9F064Sduy/Tt11fl NGrye/JjmFOYROUVfoUZ9T7iEhW4tBpg7Zpuvzvvjlr8KyR0RDLJm5KN++7iaObrYGNR n5FnzSdsp8GQ3FiNJwQO0AcUgnbB6I1wkuxmanuUY3LahRe1GcCQQ9AeAY4Q4eZCfkm/ 5Va5C8INEnteXTJqKTiNUF6mnrCBFC5xup7UGK++ZJ0gG/IRhOdGl97sgZr8mmWBNJvj XMhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:references:message-id:date:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date; bh=Iy14MnKguEyQUWw9+RTXypw6XBImpjnDiYQq3kWmB5Y=; b=sqivsGe1xUCM9zgt0gFPjkLxXN/JxwNPw2DXoJ1LmUh7FLqOGWL5SGBwqWSM5tstUx UEH9aNMEwnSJKn52sig2HsF/TLRzcLrru5NgtjCUP3HJYioUSvgWHodmE00Ot8SMYZ8c ZM5eWhEzud56CqD73uYtEolDBc+t6H/QEgAgzQPm0S6zHSp3PdTd/tDiDQy2Q23g9rqy TuPUyttoiMT4Hc1hZx5RvZkYA+A16rr1VAOy3Qtu2nMzczYvOH6gutgSYd9GjOsSCERC BRrSzJZO0+a3Own57GasgOV9B7iw1xZly3bC6cM8WSwYN+hDYFrYV04gQWdysC9kLbEf BukQ== X-Gm-Message-State: ACrzQf3YBWBXxwwdXUU9XOSbYqxU2HNSLoo8swFSt8j8Y179gI03BQmG YuUtADvqBS8bvj72pMF8tfKGxUvoELc= X-Google-Smtp-Source: AMsMyM5sKd9FjlinHaJDPiw4y5+SRbgY9/7bbnGd9V+KM/dFydC9HHnVtk8+tH7MVGtBQx7WpdZO9w== X-Received: by 2002:a63:3508:0:b0:439:57e4:5859 with SMTP id c8-20020a633508000000b0043957e45859mr25442350pga.54.1663764634573; Wed, 21 Sep 2022 05:50:34 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id q3-20020a6557c3000000b0042a93b625d4sm1799593pgr.27.2022.09.21.05.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 05:50:33 -0700 (PDT) In-Reply-To: <8735ckdhit.fsf@gmail.com> (Visuwesh's message of "Wed, 21 Sep 2022 18:13:54 +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" Xref: news.gmane.io gmane.emacs.bugs:243343 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 W+CuquCvgeCupOCuqeCvjSDgrprgr4bgrqrgr43grp/grq7gr43grqrgrrDgr40gMjEsIDIwMjJd IFZpc3V3ZXNoIHdyb3RlOg0KDQo+IFBsZWFzZSBmaW5kIGF0dGFjaGVkLCB0aGFua3MuDQoNCk9v cHMsIHRoYXQgcGF0Y2ggaGFkIGEgdmVyeSBzaWxseSB0aGlua28uLi4NCg== --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Make-Gnus-respect-mode-line-buffer-identification-ke.patch >From d2f6518329298a3e8c2a5f19358e915b94173828 Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Wed, 21 Sep 2022 18:11:55 +0530 Subject: [PATCH] Make Gnus respect mode-line-buffer-identification-keymap * lisp/gnus/gnus.el (gnus-mode-line-buffer-identification): Use `propertized-buffer-identification' to set the keymap and to fontify the buffer name. * lisp/gnus/gnus-group.el (gnus-group-set-mode-line): * lisp/gnus/gnus-sum.el (gnus-set-mode-line): Adjust calls to above. * lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): Fix missing `gnus-mode-line-buffer-identification' call. --- lisp/gnus/gnus-group.el | 4 +--- lisp/gnus/gnus-srvr.el | 7 ++++--- lisp/gnus/gnus-sum.el | 3 +-- lisp/gnus/gnus.el | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index fcad601d0c..7765bf296b 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -1717,9 +1717,7 @@ gnus-group-set-mode-line (setq mode-string (substring mode-string 0 (- max-len 4)))) (prog1 (setq mode-line-buffer-identification - (gnus-mode-line-buffer-identification - (list (propertize mode-string - 'face 'mode-line-buffer-id)))) + (gnus-mode-line-buffer-identification mode-string)) (set-buffer-modified-p modified)))))) (defun gnus-group-group-name () diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index e659a648e1..315381a6dd 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el @@ -829,9 +829,10 @@ gnus-browse-foreign-server (erase-buffer)) (gnus-browse-mode) (setq mode-line-buffer-identification - (list - (format - "Gnus: %%b {%s:%s}" (car method) (cadr method)))) + (gnus-mode-line-buffer-identification + (list + (format + "Gnus: %%b {%s:%s}" (car method) (cadr method))))) (let ((buffer-read-only nil) name (prefix (let ((gnus-select-method orig-select-method)) diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index dde60caee7..107ad8fd4a 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -6207,8 +6207,7 @@ gnus-set-mode-line ;; Update the mode line. (setq mode-line-buffer-identification (gnus-mode-line-buffer-identification - (list (propertize mode-string - 'face 'mode-line-buffer-id)))) + (list mode-string))) (set-buffer-modified-p t)))) (defun gnus-create-xref-hashtb (from-newsgroup headers unreads) diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index 0afd873a5d..cda5bf2994 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el @@ -310,7 +310,7 @@ gnus-inhibit-startup-message :type 'boolean) (defun gnus-mode-line-buffer-identification (line) - (let ((str (car-safe line))) + (let ((str (car (propertized-buffer-identification (car-safe line))))) (if (or (not (fboundp 'find-image)) (not (display-graphic-p)) (not (stringp str)) -- 2.35.1 --=-=-=--