[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master eeaa707: Fix a small incompatibility in ibuffer
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master eeaa707: Fix a small incompatibility in ibuffer |
Date: |
Thu, 30 Mar 2017 20:20:10 -0400 (EDT) |
branch: master
commit eeaa707eb6c437b4a23d353eca5de1dc21bf7b24
Author: John Mastro <address@hidden>
Commit: Mark Oteiza <address@hidden>
Fix a small incompatibility in ibuffer
Translate nil values from column functions to the empty string, so that
subsequent calls to string-width don't signal an error (Bug#26317).
* lisp/ibuffer.el (ibuffer-compile-format): If a column function returns
nil, treat it like the empty string.
---
lisp/ibuffer.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 66916b2..c83c213 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1689,7 +1689,7 @@ If point is on a group name, this function operates on
that group."
;; generate a call to the column function.
(ibuffer-aif (assq sym ibuffer-inline-columns)
(nth 1 it)
- `(,sym buffer mark)))
+ `(or (,sym buffer mark) "")))
;; You're not expected to understand this. Hell, I
;; don't even understand it, and I wrote it five
;; minutes ago.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master eeaa707: Fix a small incompatibility in ibuffer,
Mark Oteiza <=