changeset 37430:a0e805e3a7f1

(diary-entry-marker, calendar-today-marker, calendar-holiday-marker): Use display-color-p instead of window-system. (calendar-mode-map, calendar-mode): Use display-popup-menus-p instead of window-system. (calendar-hide-window): Use display-multi-frame-p instead of window-system.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 23 Apr 2001 14:19:57 +0000
parents 8536ad236a7d
children bd1a8b1c88d7
files lisp/calendar/calendar.el
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/calendar.el	Mon Apr 23 12:31:27 2001 +0000
+++ b/lisp/calendar/calendar.el	Mon Apr 23 14:19:57 2001 +0000
@@ -233,7 +233,7 @@
   :group 'diary)
 
 (defcustom diary-entry-marker
-  (if (not window-system)
+  (if (not (display-color-p))
       "+"
     'diary-face)
   "*How to mark dates that have diary entries.
@@ -242,7 +242,7 @@
   :group 'diary)
 
 (defcustom calendar-today-marker
-  (if (not window-system)
+  (if (not (display-color-p))
       "="
     'calendar-today-face)
   "*How to mark today's date in the calendar.
@@ -253,7 +253,7 @@
   :group 'calendar)
 
 (defcustom calendar-holiday-marker
-  (if (not window-system)
+  (if (not (display-color-p))
       "*"
     'holiday-face)
   "*How to mark notable dates in the calendar.
@@ -1894,7 +1894,7 @@
 (if calendar-mode-map
     nil
   (setq calendar-mode-map (make-sparse-keymap))
-  (if window-system (require 'cal-menu))
+  (if (display-popup-menus-p) (require 'cal-menu))
   (calendar-for-loop i from 0 to 9 do
        (define-key calendar-mode-map (int-to-string i) 'digit-argument))
   (let ((l (list 'narrow-to-region 'mark-word 'mark-sexp 'mark-paragraph
@@ -2091,7 +2091,7 @@
   (setq buffer-read-only t)
   (setq indent-tabs-mode nil)
   (update-calendar-mode-line)
-  (if window-system
+  (if (display-popup-menus-p)
       (progn
         (make-local-hook 'activate-menubar-hook)
         (add-hook 'activate-menubar-hook 'cal-menu-update nil t)))
@@ -2180,12 +2180,12 @@
   (let ((buffer (if (window-live-p window) (window-buffer window))))
     (if (memq buffer (calendar-buffer-list))
         (cond
-         ((and window-system
+         ((and (display-multi-frame-p)
                (eq 'icon (cdr (assoc 'visibility
                                      (frame-parameters
                                       (window-frame window))))))
           nil)
-         ((and window-system (window-dedicated-p window))
+         ((and (display-multi-frame-p) (window-dedicated-p window))
           (if calendar-remove-frame-by-deleting
               (delete-frame (window-frame window))
               (iconify-frame (window-frame window))))