diff options
author | Karl Fogel <kfogel@red-bean.com> | 2000-06-06 22:41:24 +0000 |
---|---|---|
committer | Karl Fogel <kfogel@red-bean.com> | 2000-06-06 22:41:24 +0000 |
commit | 59cfe8b98f262363d81cd0da0e5f291b8d6c427d (patch) | |
tree | 3eb603d3726de178a6a94f07519c35d87cbde737 /lisp/bookmark.el | |
parent | 666852af779a33301b352898195df9b472143ce5 (diff) | |
download | emacs-59cfe8b98f262363d81cd0da0e5f291b8d6c427d.tar.gz |
Applied this patch from Eli Zaretskii. Pretty much taking on faith
that it works, because I can't build the 20.6 raw tree...
2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
* bookmark.el (bookmark-insert-location, bookmark-bmenu-list)
(bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames):
Call display-color-p and display-mouse-p instead of looking at
window-system.
Diffstat (limited to 'lisp/bookmark.el')
-rw-r--r-- | lisp/bookmark.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index b6e084d6898..1aaefcba15a 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1175,7 +1175,7 @@ minibuffer history list `bookmark-history'." (let ((start (point))) (prog1 (insert (bookmark-location bookmark)) ; *Return this line* - (if window-system + (if (and (display-color-p) (display-mouse-p)) (put-text-property start (save-excursion (re-search-backward "[^ \t]") @@ -1561,7 +1561,7 @@ deletion, or > if it is flagged for displaying." (insert " ")) (let ((start (point))) (insert (bookmark-name-from-full-record full-record)) - (if window-system + (if (and (display-color-p) (display-mouse-p)) (put-text-property start (save-excursion (re-search-backward "[^ \t]") @@ -1657,7 +1657,7 @@ Optional argument SHOW means show them unconditionally." (let ((start (save-excursion (end-of-line) (point)))) (move-to-column bookmark-bmenu-file-column t) ;; Strip off `mouse-face' from the white spaces region. - (if window-system + (if (and (display-color-p) (display-mouse-p)) (remove-text-properties start (point) '(mouse-face)))) (delete-region (point) (progn (end-of-line) (point))) @@ -1688,7 +1688,7 @@ Optional argument SHOW means show them unconditionally." (bookmark-kill-line) (let ((start (point))) (insert (car bookmark-bmenu-hidden-bookmarks)) - (if window-system + (if (and (display-color-p) (display-mouse-p)) (put-text-property start (save-excursion (re-search-backward "[^ \t]") |