diff options
| author | John Mastro | 2017-03-30 16:01:41 -0700 |
|---|---|---|
| committer | Mark Oteiza | 2017-03-30 20:19:50 -0400 |
| commit | eeaa707eb6c437b4a23d353eca5de1dc21bf7b24 (patch) | |
| tree | b7a9f358729ee6e4a2840ad94d5a695d1afca940 | |
| parent | ef7df187eb0b631a6909bdc02f82b3dfef0ad689 (diff) | |
| download | emacs-eeaa707eb6c437b4a23d353eca5de1dc21bf7b24.tar.gz emacs-eeaa707eb6c437b4a23d353eca5de1dc21bf7b24.zip | |
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.
| -rw-r--r-- | lisp/ibuffer.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 66916b2bca1..c83c21315a1 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." | |||
| 1689 | ;; generate a call to the column function. | 1689 | ;; generate a call to the column function. |
| 1690 | (ibuffer-aif (assq sym ibuffer-inline-columns) | 1690 | (ibuffer-aif (assq sym ibuffer-inline-columns) |
| 1691 | (nth 1 it) | 1691 | (nth 1 it) |
| 1692 | `(,sym buffer mark))) | 1692 | `(or (,sym buffer mark) ""))) |
| 1693 | ;; You're not expected to understand this. Hell, I | 1693 | ;; You're not expected to understand this. Hell, I |
| 1694 | ;; don't even understand it, and I wrote it five | 1694 | ;; don't even understand it, and I wrote it five |
| 1695 | ;; minutes ago. | 1695 | ;; minutes ago. |