diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-06-24 11:14:12 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-06-24 11:14:12 +0000 |
commit | 2fbb6576c8f67685889367c2154e6075f652153a (patch) | |
tree | 5fcf594e4f51d20e5964729f9cf9612a0826ad82 /lisp/bookmark.el | |
parent | 015a26d79c29e0ae441d0f4543e3f55382d12ce2 (diff) | |
download | emacs-2fbb6576c8f67685889367c2154e6075f652153a.tar.gz |
(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.
Diffstat (limited to 'lisp/bookmark.el')
-rw-r--r-- | lisp/bookmark.el | 36 |
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'." (prog1 (insert (bookmark-location bookmark)) ; *Return this line* (if (and (display-color-p) (display-mouse-p)) - (put-text-property start - (save-excursion (re-search-backward - "[^ \t]") - (1+ (point))) - 'mouse-face 'highlight))))) + (add-text-properties start + (save-excursion (re-search-backward + "[^ \t]") + (1+ (point))) + '(mouse-face highlight + help-echo "mouse-2: go to this bookmark")))))) ;;;###autoload (defalias 'bookmark-locate 'bookmark-insert-location) @@ -1557,11 +1558,12 @@ deletion, or > if it is flagged for displaying." (let ((start (point))) (insert (bookmark-name-from-full-record full-record)) (if (and (display-color-p) (display-mouse-p)) - (put-text-property start - (save-excursion (re-search-backward - "[^ \t]") - (1+ (point))) - 'mouse-face 'highlight)) + (add-text-properties start + (save-excursion (re-search-backward + "[^ \t]") + (1+ (point))) + '(mouse-face highlight + help-echo "mouse-2: go to this bookmark"))) (insert "\n") ))) bookmark-alist)) @@ -1654,7 +1656,7 @@ Optional argument SHOW means show them unconditionally." ;; Strip off `mouse-face' from the white spaces region. (if (and (display-color-p) (display-mouse-p)) (remove-text-properties start (point) - '(mouse-face)))) + '(mouse-face nil help-echo nil)))) (delete-region (point) (progn (end-of-line) (point))) (insert " ") ;; Pass the NO-HISTORY arg: @@ -1684,11 +1686,13 @@ Optional argument SHOW means show them unconditionally." (let ((start (point))) (insert (car bookmark-bmenu-hidden-bookmarks)) (if (and (display-color-p) (display-mouse-p)) - (put-text-property start - (save-excursion (re-search-backward - "[^ \t]") - (1+ (point))) - 'mouse-face 'highlight))) + (add-text-properties start + (save-excursion (re-search-backward + "[^ \t]") + (1+ (point))) + '(mouse-face highlight + help-echo + "mouse-2: go to this bookmark")))) (setq bookmark-bmenu-hidden-bookmarks (cdr bookmark-bmenu-hidden-bookmarks)) (forward-line 1)))))))) |