diff options
| author | Karl Fogel | 2000-06-06 22:41:24 +0000 |
|---|---|---|
| committer | Karl Fogel | 2000-06-06 22:41:24 +0000 |
| commit | 59cfe8b98f262363d81cd0da0e5f291b8d6c427d (patch) | |
| tree | 3eb603d3726de178a6a94f07519c35d87cbde737 | |
| parent | 666852af779a33301b352898195df9b472143ce5 (diff) | |
| download | emacs-59cfe8b98f262363d81cd0da0e5f291b8d6c427d.tar.gz emacs-59cfe8b98f262363d81cd0da0e5f291b8d6c427d.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/bookmark.el | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 83b67478e9f..901c68c23bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * bookmark.el (bookmark-insert-location, bookmark-bmenu-list) | ||
| 4 | (bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames): | ||
| 5 | Call display-color-p and display-mouse-p instead of looking at | ||
| 6 | window-system. | ||
| 7 | |||
| 1 | 2000-06-06 Dave Love <fx@gnu.org> | 8 | 2000-06-06 Dave Love <fx@gnu.org> |
| 2 | 9 | ||
| 3 | * image.el (find-image): Doc fix. Return nil if image not found. | 10 | * image.el (find-image): Doc fix. Return nil if image not found. |
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'." | |||
| 1175 | (let ((start (point))) | 1175 | (let ((start (point))) |
| 1176 | (prog1 | 1176 | (prog1 |
| 1177 | (insert (bookmark-location bookmark)) ; *Return this line* | 1177 | (insert (bookmark-location bookmark)) ; *Return this line* |
| 1178 | (if window-system | 1178 | (if (and (display-color-p) (display-mouse-p)) |
| 1179 | (put-text-property start | 1179 | (put-text-property start |
| 1180 | (save-excursion (re-search-backward | 1180 | (save-excursion (re-search-backward |
| 1181 | "[^ \t]") | 1181 | "[^ \t]") |
| @@ -1561,7 +1561,7 @@ deletion, or > if it is flagged for displaying." | |||
| 1561 | (insert " ")) | 1561 | (insert " ")) |
| 1562 | (let ((start (point))) | 1562 | (let ((start (point))) |
| 1563 | (insert (bookmark-name-from-full-record full-record)) | 1563 | (insert (bookmark-name-from-full-record full-record)) |
| 1564 | (if window-system | 1564 | (if (and (display-color-p) (display-mouse-p)) |
| 1565 | (put-text-property start | 1565 | (put-text-property start |
| 1566 | (save-excursion (re-search-backward | 1566 | (save-excursion (re-search-backward |
| 1567 | "[^ \t]") | 1567 | "[^ \t]") |
| @@ -1657,7 +1657,7 @@ Optional argument SHOW means show them unconditionally." | |||
| 1657 | (let ((start (save-excursion (end-of-line) (point)))) | 1657 | (let ((start (save-excursion (end-of-line) (point)))) |
| 1658 | (move-to-column bookmark-bmenu-file-column t) | 1658 | (move-to-column bookmark-bmenu-file-column t) |
| 1659 | ;; Strip off `mouse-face' from the white spaces region. | 1659 | ;; Strip off `mouse-face' from the white spaces region. |
| 1660 | (if window-system | 1660 | (if (and (display-color-p) (display-mouse-p)) |
| 1661 | (remove-text-properties start (point) | 1661 | (remove-text-properties start (point) |
| 1662 | '(mouse-face)))) | 1662 | '(mouse-face)))) |
| 1663 | (delete-region (point) (progn (end-of-line) (point))) | 1663 | (delete-region (point) (progn (end-of-line) (point))) |
| @@ -1688,7 +1688,7 @@ Optional argument SHOW means show them unconditionally." | |||
| 1688 | (bookmark-kill-line) | 1688 | (bookmark-kill-line) |
| 1689 | (let ((start (point))) | 1689 | (let ((start (point))) |
| 1690 | (insert (car bookmark-bmenu-hidden-bookmarks)) | 1690 | (insert (car bookmark-bmenu-hidden-bookmarks)) |
| 1691 | (if window-system | 1691 | (if (and (display-color-p) (display-mouse-p)) |
| 1692 | (put-text-property start | 1692 | (put-text-property start |
| 1693 | (save-excursion (re-search-backward | 1693 | (save-excursion (re-search-backward |
| 1694 | "[^ \t]") | 1694 | "[^ \t]") |