]> git.eshelyaron.com Git - emacs.git/commitdiff
Make mh-colors-available-p obsolete
authorStefan Kangas <stefankangas@gmail.com>
Wed, 24 Aug 2022 04:38:36 +0000 (06:38 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 24 Aug 2022 04:38:36 +0000 (06:38 +0200)
* lisp/mh-e/mh-utils.el (mh-colors-available-p): Redefine as
obsolete function alias for 'display-color-p'.

lisp/mh-e/mh-folder.el
lisp/mh-e/mh-utils.el

index 5b902902378f5cff54455e8412cf0651de533980..308660431ac65e310ff6997437abaa425956d498 100644 (file)
@@ -583,7 +583,7 @@ perform the operation on all messages in that region.
   (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
index dd662f355220a0b1b262558a1edb69252d13ba5b..b2c79350c467a6d557924eb1840a043b08ed1e49 100644 (file)
@@ -59,13 +59,6 @@ used in lieu of `search' in the CL package."
           (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."
@@ -1005,6 +998,9 @@ If the current line is too long truncate a part of it as well."
     (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: