comparison lisp/ibuffer.el @ 44870:ed308b745565

(define column process): Use `ibuffer-aif'.
author Colin Walters <walters@gnu.org>
date Fri, 26 Apr 2002 03:59:18 +0000
parents 6cd35f994b33
children ee04dcf4fae7
comparison
equal deleted inserted replaced
44869:fe9296210133 44870:ed308b745565
1578 'keymap ibuffer-mode-name-map 1578 'keymap ibuffer-mode-name-map
1579 'help-echo "mouse-2: filter by this mode")) 1579 'help-echo "mouse-2: filter by this mode"))
1580 (format "%s" mode-name)) 1580 (format "%s" mode-name))
1581 1581
1582 (define-ibuffer-column process () 1582 (define-ibuffer-column process ()
1583 (let ((proc (get-buffer-process buffer))) 1583 (ibuffer-aif (get-buffer-process buffer)
1584 (if proc 1584 (format "(%s %s)" it (process-status it))
1585 (format "(%s %s)" proc (process-status proc)) 1585 "none"))
1586 "none")))
1587 1586
1588 (define-ibuffer-column filename () 1587 (define-ibuffer-column filename ()
1589 (let ((directory-abbrev-alist ibuffer-directory-abbrev-alist)) 1588 (let ((directory-abbrev-alist ibuffer-directory-abbrev-alist))
1590 (abbreviate-file-name 1589 (abbreviate-file-name
1591 (or buffer-file-name 1590 (or buffer-file-name