aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-06-24 11:14:12 +0000
committerEli Zaretskii2001-06-24 11:14:12 +0000
commit2fbb6576c8f67685889367c2154e6075f652153a (patch)
tree5fcf594e4f51d20e5964729f9cf9612a0826ad82
parent015a26d79c29e0ae441d0f4543e3f55382d12ce2 (diff)
downloademacs-2fbb6576c8f67685889367c2154e6075f652153a.tar.gz
emacs-2fbb6576c8f67685889367c2154e6075f652153a.zip
(bookmark-insert-location, bookmark-bmenu-list)
(bookmark-bmenu-hide-filenames): Add help-echo to mouse-highlighted text. (bookmark-bmenu-show-filenames): Remove help-echo property from the whitespace.
-rw-r--r--lisp/bookmark.el36
1 files changed, 20 insertions, 16 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 8ad4842e28d..4582a55f948 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1171,11 +1171,12 @@ minibuffer history list `bookmark-history'."
1171 (prog1 1171 (prog1
1172 (insert (bookmark-location bookmark)) ; *Return this line* 1172 (insert (bookmark-location bookmark)) ; *Return this line*
1173 (if (and (display-color-p) (display-mouse-p)) 1173 (if (and (display-color-p) (display-mouse-p))
1174 (put-text-property start 1174 (add-text-properties start
1175 (save-excursion (re-search-backward 1175 (save-excursion (re-search-backward
1176 "[^ \t]") 1176 "[^ \t]")
1177 (1+ (point))) 1177 (1+ (point)))
1178 'mouse-face 'highlight))))) 1178 '(mouse-face highlight
1179 help-echo "mouse-2: go to this bookmark"))))))
1179 1180
1180;;;###autoload 1181;;;###autoload
1181(defalias 'bookmark-locate 'bookmark-insert-location) 1182(defalias 'bookmark-locate 'bookmark-insert-location)
@@ -1557,11 +1558,12 @@ deletion, or > if it is flagged for displaying."
1557 (let ((start (point))) 1558 (let ((start (point)))
1558 (insert (bookmark-name-from-full-record full-record)) 1559 (insert (bookmark-name-from-full-record full-record))
1559 (if (and (display-color-p) (display-mouse-p)) 1560 (if (and (display-color-p) (display-mouse-p))
1560 (put-text-property start 1561 (add-text-properties start
1561 (save-excursion (re-search-backward 1562 (save-excursion (re-search-backward
1562 "[^ \t]") 1563 "[^ \t]")
1563 (1+ (point))) 1564 (1+ (point)))
1564 'mouse-face 'highlight)) 1565 '(mouse-face highlight
1566 help-echo "mouse-2: go to this bookmark")))
1565 (insert "\n") 1567 (insert "\n")
1566 ))) 1568 )))
1567 bookmark-alist)) 1569 bookmark-alist))
@@ -1654,7 +1656,7 @@ Optional argument SHOW means show them unconditionally."
1654 ;; Strip off `mouse-face' from the white spaces region. 1656 ;; Strip off `mouse-face' from the white spaces region.
1655 (if (and (display-color-p) (display-mouse-p)) 1657 (if (and (display-color-p) (display-mouse-p))
1656 (remove-text-properties start (point) 1658 (remove-text-properties start (point)
1657 '(mouse-face)))) 1659 '(mouse-face nil help-echo nil))))
1658 (delete-region (point) (progn (end-of-line) (point))) 1660 (delete-region (point) (progn (end-of-line) (point)))
1659 (insert " ") 1661 (insert " ")
1660 ;; Pass the NO-HISTORY arg: 1662 ;; Pass the NO-HISTORY arg:
@@ -1684,11 +1686,13 @@ Optional argument SHOW means show them unconditionally."
1684 (let ((start (point))) 1686 (let ((start (point)))
1685 (insert (car bookmark-bmenu-hidden-bookmarks)) 1687 (insert (car bookmark-bmenu-hidden-bookmarks))
1686 (if (and (display-color-p) (display-mouse-p)) 1688 (if (and (display-color-p) (display-mouse-p))
1687 (put-text-property start 1689 (add-text-properties start
1688 (save-excursion (re-search-backward 1690 (save-excursion (re-search-backward
1689 "[^ \t]") 1691 "[^ \t]")
1690 (1+ (point))) 1692 (1+ (point)))
1691 'mouse-face 'highlight))) 1693 '(mouse-face highlight
1694 help-echo
1695 "mouse-2: go to this bookmark"))))
1692 (setq bookmark-bmenu-hidden-bookmarks 1696 (setq bookmark-bmenu-hidden-bookmarks
1693 (cdr bookmark-bmenu-hidden-bookmarks)) 1697 (cdr bookmark-bmenu-hidden-bookmarks))
1694 (forward-line 1)))))))) 1698 (forward-line 1))))))))