aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Wallington2003-04-04 21:46:42 +0000
committerJohn Paul Wallington2003-04-04 21:46:42 +0000
commit1cd7affa21ba770e22958c41539d6d1933138b23 (patch)
tree6e077155be8925109c1fcdd91870efc37fe0364f
parent05670fa88b877cfceb2e00b4dbfac66c9237872e (diff)
downloademacs-1cd7affa21ba770e22958c41539d6d1933138b23.tar.gz
emacs-1cd7affa21ba770e22958c41539d6d1933138b23.zip
(ibuffer-insert-filter-group): `help-echo' text property dynamically
respects `tooltip-mode'. (define-ibuffer-column name): Likewise.
-rw-r--r--lisp/ibuffer.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 06b71c9fa24..c6209e1a07f 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1612,7 +1612,9 @@ If point is on a group name, this function operates on that group."
1612 :props 1612 :props
1613 ('mouse-face 'highlight 'keymap ibuffer-name-map 1613 ('mouse-face 'highlight 'keymap ibuffer-name-map
1614 'ibuffer-name-column t 1614 'ibuffer-name-column t
1615 'help-echo "mouse-1: mark this buffer\nmouse-2: select this buffer\nmouse-3: operate on this buffer")) 1615 'help-echo '(if tooltip-mode
1616 "mouse-1: mark this buffer\nmouse-2: select this buffer\nmouse-3: operate on this buffer"
1617 "mouse-1: mark buffer mouse-2: select buffer mouse-3: operate")))
1616 (propertize (buffer-name) 'font-lock-face (ibuffer-buffer-name-face buffer mark))) 1618 (propertize (buffer-name) 'font-lock-face (ibuffer-buffer-name-face buffer mark)))
1617 1619
1618(define-ibuffer-column size (:inline t) 1620(define-ibuffer-column size (:inline t)
@@ -2063,7 +2065,12 @@ If optional arg SILENT is non-nil, do not display progress messages."
2063 font-lock-face ,ibuffer-filter-group-name-face 2065 font-lock-face ,ibuffer-filter-group-name-face
2064 keymap ,ibuffer-mode-filter-group-map 2066 keymap ,ibuffer-mode-filter-group-map
2065 mouse-face highlight 2067 mouse-face highlight
2066 help-echo ,(concat filter-string "mouse-1: toggle marks in this group\nmouse-2: hide/show this filtering group "))) 2068 help-echo ,(let ((echo '(if tooltip-mode
2069 "mouse-1: toggle marks in this group\nmouse-2: hide/show this filtering group"
2070 " mouse-1: toggle marks mouse-2: hide/show")))
2071 (if (> (length filter-string) 0)
2072 `(concat ,filter-string (and tooltip-mode "\n") ,echo)
2073 echo))))
2067 (insert "\n") 2074 (insert "\n")
2068 (when bmarklist 2075 (when bmarklist
2069 (put-text-property 2076 (put-text-property