summaryrefslogtreecommitdiff
path: root/lisp/bs.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-08-06 07:32:15 +0000
committerEli Zaretskii <eliz@gnu.org>2000-08-06 07:32:15 +0000
commit6968a481f5e1c375b403263e233e9292196e1b79 (patch)
treecc7b132ceabc62604de706404066f5b61879cb0c /lisp/bs.el
parente49aa397e852ffb6826439a728497e2d05cfbb48 (diff)
downloademacs-6968a481f5e1c375b403263e233e9292196e1b79.tar.gz
(bs-apply-sort-faces): Don't use window-system, since all
types of display support faces now.
Diffstat (limited to 'lisp/bs.el')
-rw-r--r--lisp/bs.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/bs.el b/lisp/bs.el
index 2a2cf700c53..20fe02c363d 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -963,15 +963,14 @@ Default is `bs--current-sort-function'."
bs--current-sort-function)))
(save-excursion
(goto-char (point-min))
- (if (and window-system
- (nth 2 sort-description)
- (search-forward-regexp (nth 2 sort-description) nil t))
- (let ((inhibit-read-only t))
- (put-text-property (match-beginning 0)
- (match-end 0)
- 'face
- (or (nth 3 sort-description)
- 'region)))))))
+ (if (and (nth 2 sort-description)
+ (search-forward-regexp (nth 2 sort-description) nil t))
+ (let ((inhibit-read-only t))
+ (put-text-property (match-beginning 0)
+ (match-end 0)
+ 'face
+ (or (nth 3 sort-description)
+ 'region)))))))
(defun bs-toggle-show-all ()
"Toggle show all buffers / show buffers with current configuration."