diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mh-e/mh-folder.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-utils.el | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index 5b902902378..308660431ac 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el | |||
| @@ -583,7 +583,7 @@ perform the operation on all messages in that region. | |||
| 583 | (make-local-variable 'desktop-save-buffer) | 583 | (make-local-variable 'desktop-save-buffer) |
| 584 | (setq desktop-save-buffer t) | 584 | (setq desktop-save-buffer t) |
| 585 | (setq-local | 585 | (setq-local |
| 586 | mh-colors-available-flag (mh-colors-available-p) | 586 | mh-colors-available-flag (display-color-p) |
| 587 | ; Do we have colors available | 587 | ; Do we have colors available |
| 588 | mh-current-folder (buffer-name) ; Name of folder, a string | 588 | mh-current-folder (buffer-name) ; Name of folder, a string |
| 589 | mh-show-buffer (format "show-%s" (buffer-name)) ; Buffer that displays msgs | 589 | mh-show-buffer (format "show-%s" (buffer-name)) ; Buffer that displays msgs |
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el index dd662f35522..b2c79350c46 100644 --- a/lisp/mh-e/mh-utils.el +++ b/lisp/mh-e/mh-utils.el | |||
| @@ -60,13 +60,6 @@ used in lieu of `search' in the CL package." | |||
| 60 | (set-syntax-table syntax-table)))) | 60 | (set-syntax-table syntax-table)))) |
| 61 | 61 | ||
| 62 | ;;;###mh-autoload | 62 | ;;;###mh-autoload |
| 63 | (defun mh-colors-available-p () | ||
| 64 | "Check if colors are available in the Emacs being used." | ||
| 65 | ;; FIXME: Can this be replaced with `display-color-p'? | ||
| 66 | (let ((color-cells (display-color-cells))) | ||
| 67 | (and (numberp color-cells) (>= color-cells 8)))) | ||
| 68 | |||
| 69 | ;;;###mh-autoload | ||
| 70 | (defun mh-colors-in-use-p () | 63 | (defun mh-colors-in-use-p () |
| 71 | "Check if colors are being used in the folder buffer." | 64 | "Check if colors are being used in the folder buffer." |
| 72 | (and mh-colors-available-flag font-lock-mode)) | 65 | (and mh-colors-available-flag font-lock-mode)) |
| @@ -1005,6 +998,9 @@ If the current line is too long truncate a part of it as well." | |||
| 1005 | (goto-char (point-min)) | 998 | (goto-char (point-min)) |
| 1006 | (re-search-forward mh-signature-separator-regexp nil t))) | 999 | (re-search-forward mh-signature-separator-regexp nil t))) |
| 1007 | 1000 | ||
| 1001 | ;;;###mh-autoload | ||
| 1002 | (define-obsolete-function-alias 'mh-colors-available-p #'display-color-p "29.1") | ||
| 1003 | |||
| 1008 | (provide 'mh-utils) | 1004 | (provide 'mh-utils) |
| 1009 | 1005 | ||
| 1010 | ;; Local Variables: | 1006 | ;; Local Variables: |