* lisp/mh-e/mh-utils.el (mh-colors-available-p): Redefine as
obsolete function alias for 'display-color-p'.
(make-local-variable 'desktop-save-buffer)
(setq desktop-save-buffer t)
(setq-local
- mh-colors-available-flag (mh-colors-available-p)
+ mh-colors-available-flag (display-color-p)
; Do we have colors available
mh-current-folder (buffer-name) ; Name of folder, a string
mh-show-buffer (format "show-%s" (buffer-name)) ; Buffer that displays msgs
(point))
(set-syntax-table syntax-table))))
-;;;###mh-autoload
-(defun mh-colors-available-p ()
- "Check if colors are available in the Emacs being used."
- ;; FIXME: Can this be replaced with `display-color-p'?
- (let ((color-cells (display-color-cells)))
- (and (numberp color-cells) (>= color-cells 8))))
-
;;;###mh-autoload
(defun mh-colors-in-use-p ()
"Check if colors are being used in the folder buffer."
(goto-char (point-min))
(re-search-forward mh-signature-separator-regexp nil t)))
+;;;###mh-autoload
+(define-obsolete-function-alias 'mh-colors-available-p #'display-color-p "29.1")
+
(provide 'mh-utils)
;; Local Variables: