aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-06-18 10:21:59 +0000
committerEli Zaretskii2001-06-18 10:21:59 +0000
commit855eca564cc7814366babaf5f792e69468f97597 (patch)
treead2649161e8d17ac27237aa92297b34d02b714bf
parentcea2ad762d4179d3f44860bb311f138b99ea6615 (diff)
downloademacs-855eca564cc7814366babaf5f792e69468f97597.tar.gz
emacs-855eca564cc7814366babaf5f792e69468f97597.zip
(bs--get-name, bs--get-file-name): Add help-echo to
mouse-highlighted text.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/bs.el13
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 50dff1ed466..6e57a7a988b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12001-06-18 Eli Zaretskii <eliz@is.elta.co.il> 12001-06-18 Eli Zaretskii <eliz@is.elta.co.il>
2 2
3 * bs.el (bs--get-name, bs--get-file-name): Add help-echo to
4 mouse-highlighted text.
5
3 * dired.el (dired-mark-pop-up): Fix last change. 6 * dired.el (dired-mark-pop-up): Fix last change.
4 7
52001-06-17 Eli Zaretskii <eliz@is.elta.co.il> 82001-06-17 Eli Zaretskii <eliz@is.elta.co.il>
diff --git a/lisp/bs.el b/lisp/bs.el
index f17609f556b..26942c3e593 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -1339,7 +1339,12 @@ for mouse highlighting.
1339START-BUFFER is the buffer where we started buffer selection. 1339START-BUFFER is the buffer where we started buffer selection.
1340ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu." 1340ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu."
1341 (let ((name (copy-sequence (buffer-name)))) 1341 (let ((name (copy-sequence (buffer-name))))
1342 (put-text-property 0 (length name) 'mouse-face 'highlight name) 1342 (add-text-properties
1343 0 (length name)
1344 '(mouse-face highlight
1345 help-echo
1346 "mouse-2: select this buffer, mouse-3: select in other frame")
1347 name)
1343 (if (< (length name) bs--name-entry-length) 1348 (if (< (length name) bs--name-entry-length)
1344 (concat name 1349 (concat name
1345 (make-string (- bs--name-entry-length (length name)) ? )) 1350 (make-string (- bs--name-entry-length (length name)) ? ))
@@ -1362,7 +1367,11 @@ ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu."
1362 '(shell-mode dired-mode)) 1367 '(shell-mode dired-mode))
1363 default-directory 1368 default-directory
1364 (or buffer-file-name ""))))) 1369 (or buffer-file-name "")))))
1365 (put-text-property 0 (length string) 'mouse-face 'highlight string) 1370 (add-text-properties
1371 0 (length string)
1372 '(mouse-face highlight
1373 help-echo "mouse-2: select this buffer, mouse-3: select in other frame")
1374 string)
1366 string)) 1375 string))
1367 1376
1368(defun bs--insert-one-entry (buffer) 1377(defun bs--insert-one-entry (buffer)