(define column process): Use `ibuffer-aif'.
This commit is contained in:
parent
a902944c2f
commit
96777edb82
1 changed files with 3 additions and 4 deletions
|
@ -1580,10 +1580,9 @@ If point is on a group name, this function operates on that group."
|
|||
(format "%s" mode-name))
|
||||
|
||||
(define-ibuffer-column process ()
|
||||
(let ((proc (get-buffer-process buffer)))
|
||||
(if proc
|
||||
(format "(%s %s)" proc (process-status proc))
|
||||
"none")))
|
||||
(ibuffer-aif (get-buffer-process buffer)
|
||||
(format "(%s %s)" it (process-status it))
|
||||
"none"))
|
||||
|
||||
(define-ibuffer-column filename ()
|
||||
(let ((directory-abbrev-alist ibuffer-directory-abbrev-alist))
|
||||
|
|
Loading…
Add table
Reference in a new issue