aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2006-04-20 12:37:41 +0000
committerKaroly Lorentey2006-04-20 12:37:41 +0000
commit3fde2acf6a4b228b3493666ab17f43eeac5a738f (patch)
tree574e0c24b2d36be722002dce6cabc60320d6ec01 /lisp
parent447b0165acd09060977e05c843f81c0bee4aa4df (diff)
downloademacs-3fde2acf6a4b228b3493666ab17f43eeac5a738f.tar.gz
emacs-3fde2acf6a4b228b3493666ab17f43eeac5a738f.zip
Fix `vc-annotate' under X. (Reported by Dan Nicolaescu.)
* lisp/vc.el (vc-annotate-color-map): Call `tty-display-color-p' only on ttys. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-551
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 61b8aa05a4b..348903fc031 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -617,7 +617,9 @@ version control backend imposes itself."
617 617
618;; Annotate customization 618;; Annotate customization
619(defcustom vc-annotate-color-map 619(defcustom vc-annotate-color-map
620 (if (and (tty-display-color-p) (<= (display-color-cells) 8)) 620 (if (and (not window-system)
621 (tty-display-color-p)
622 (<= (display-color-cells) 8))
621 ;; A custom sorted TTY colormap 623 ;; A custom sorted TTY colormap
622 (let* ((colors 624 (let* ((colors
623 (sort 625 (sort