From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Olivier Certner Newsgroups: gmane.emacs.bugs Subject: bug#44100: Patch Date: Wed, 21 Oct 2020 12:08:47 +0200 Message-ID: <21986473.sr7ieKrsik@ravel> References: <4578382.cRamKGfW39@ravel> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3302483.j5jfTYeP2b" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12706"; mail-complaints-to="usenet@ciao.gmane.io" To: 44100@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 21 13:42:51 2020 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 1kVCW3-0003DA-EK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Oct 2020 13:42:51 +0200 Original-Received: from localhost ([::1]:33314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVCW2-000112-B5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Oct 2020 07:42:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVCRO-0006sQ-2S for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 07:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVCRN-0006QS-NM for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 07:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVCRN-0002gg-M0 for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 07:38:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <4578382.cRamKGfW39@ravel> Resent-From: Olivier Certner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Oct 2020 11:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44100 X-GNU-PR-Package: emacs Original-Received: via spool by 44100-submit@debbugs.gnu.org id=B44100.160328022410252 (code B ref 44100); Wed, 21 Oct 2020 11:38:01 +0000 Original-Received: (at 44100) by debbugs.gnu.org; 21 Oct 2020 11:37:04 +0000 Original-Received: from localhost ([127.0.0.1]:48173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVCQR-0002fI-VV for submit@debbugs.gnu.org; Wed, 21 Oct 2020 07:37:04 -0400 Original-Received: from smtp2-g21.free.fr ([212.27.42.2]:31117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVB34-0006Xh-Ss for 44100@debbugs.gnu.org; Wed, 21 Oct 2020 06:08:51 -0400 Original-Received: from ravel.localnet (unknown [2.15.200.177]) (Authenticated sender: ocert.dev@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 92E1D200348 for <44100@debbugs.gnu.org>; Wed, 21 Oct 2020 12:08:48 +0200 (CEST) X-Mailman-Approved-At: Wed, 21 Oct 2020 07:37:02 -0400 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:191159 Archived-At: This is a multi-part message in MIME format. --nextPart3302483.j5jfTYeP2b Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" In attachment. -- Olivier Certner --nextPart3302483.j5jfTYeP2b Content-Disposition: attachment; filename="0001-ERC-Make-IBuffer-ERC-s-custom-displays-work-again.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-ERC-Make-IBuffer-ERC-s-custom-displays-work-again.patch" >From 33586f449fdf646fbfb1aa6bd5ef6ca4c4848761 Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Tue, 20 Oct 2020 18:36:25 +0200 Subject: [PATCH] ERC: Make IBuffer ERC's custom displays work again * lisp/erc/erc-ibuffer.el (erc-modified): Don't use `length' on dotted lists (and not even to test if there is more than one element, for that matter). Use `cdr' instead. --- ChangeLog.3 | 8 ++++++++ lisp/erc/erc-ibuffer.el | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog.3 b/ChangeLog.3 index ec2d3f8d46..86579b3913 100644 --- a/ChangeLog.3 +++ b/ChangeLog.3 @@ -1,3 +1,11 @@ +2020-10-20 Olivier Certner + + ERC: Make IBuffer ERC's custom displays work again + + * lisp/erc/erc-ibuffer.el (erc-modified): Don't use `length' on + dotted lists (and not even to test if there is more than one + element, for that matter). Use `cdr' instead. + 2020-08-03 Phil Sainty lisp/so-long.el: Improve support for major mode hooks diff --git a/lisp/erc/erc-ibuffer.el b/lisp/erc/erc-ibuffer.el index 7aee7705ff..955b022177 100644 --- a/lisp/erc/erc-ibuffer.el +++ b/lisp/erc/erc-ibuffer.el @@ -77,7 +77,7 @@ erc-track-mode) (let ((entry (assq (current-buffer) erc-modified-channels-alist))) (if entry - (if (> (length entry) 1) + (if (cdr entry) (cond ((eq 'pal (nth 1 entry)) (string erc-ibuffer-pal-char)) ((eq 'fool (nth 1 entry)) -- 2.24.1 --nextPart3302483.j5jfTYeP2b--