From: Olivier Certner <olce.emacs@certner.fr>
To: 44100@debbugs.gnu.org
Subject: bug#44100: Updated patch
Date: Tue, 06 Jul 2021 14:06:32 +0200 [thread overview]
Message-ID: <3008082.TtUXfVIq0z@ravel> (raw)
In-Reply-To: <4578382.cRamKGfW39@ravel>
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
Patch slightly edited (commit message) and rebased on top of a recent
'master'. Ready to apply. Easy to backport to 27 as well.
--
Olivier Certner
[-- Attachment #2: 0001-ERC-Unbreak-ERC-s-IBuffer-s-custom-displays-Bug-4410.patch --]
[-- Type: text/x-patch, Size: 957 bytes --]
From c21f772f35fad8f80d951048ff134387e30ca076 Mon Sep 17 00:00:00 2001
From: Olivier Certner <olce.emacs@certner.fr>
Date: Tue, 6 Jul 2021 10:51:57 +0200
Subject: [PATCH] ERC: Unbreak ERC's IBuffer's custom displays (Bug#44100)
* 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.
---
lisp/erc/erc-ibuffer.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/erc/erc-ibuffer.el b/lisp/erc/erc-ibuffer.el
index 22336ede21..31e59a6d3e 100644
--- a/lisp/erc/erc-ibuffer.el
+++ b/lisp/erc/erc-ibuffer.el
@@ -73,7 +73,7 @@ erc-modified
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.30.0
next prev parent reply other threads:[~2021-07-06 12:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 16:39 bug#44100: 26.3; ERC: Make IBuffer custom display work again Olivier Certner
2020-10-21 10:08 ` bug#44100: Patch Olivier Certner
2020-10-21 15:54 ` Corwin Brust
[not found] ` <CAJf-WoRBf-TNXSopiUnugOgAj_GAnJsRjkbuwBXRc-m4EB7-Jw@mail.gmail.com>
2020-10-31 19:54 ` Amin Bandali
[not found] ` <87imaquq6z.fsf@gnu.org>
2020-11-01 2:16 ` Amin Bandali
[not found] ` <875z6pu8h5.fsf@gnu.org>
2020-11-01 13:09 ` Lars Ingebrigtsen
[not found] ` <87mu01cjfh.fsf@gnus.org>
2020-11-03 2:38 ` Amin Bandali
[not found] ` <87lffjf9lu.fsf@gnu.org>
2020-11-05 16:38 ` Olivier Certner
2020-11-07 14:54 ` Amin Bandali
2021-06-04 10:07 ` bug#44100: 26.3; ERC: Make IBuffer custom display work again Lars Ingebrigtsen
[not found] ` <87v96ux7rc.fsf_-_@gnus.org>
2021-06-04 19:58 ` bandali
[not found] ` <1946874.pO33bOzxCm@ravel>
2021-08-03 2:52 ` Amin Bandali
2021-07-06 12:06 ` Olivier Certner [this message]
2021-07-06 14:29 ` bug#44100: On Amin's proposed change Olivier Certner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3008082.TtUXfVIq0z@ravel \
--to=olce.emacs@certner.fr \
--cc=44100@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.