diff options
| author | Michael Albinus | 2023-08-06 11:44:43 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-08-06 11:44:43 +0200 |
| commit | 75fa36635d8a090933123d923dd9f76261bcd2af (patch) | |
| tree | fd98097d408aaecdd29846330a0bfee61db55604 | |
| parent | 5f24ca555383e039d93a852d239d5f2c8781d6c8 (diff) | |
| parent | 3135007bf16b67943eb0c9ba72b06356c9424f31 (diff) | |
| download | emacs-75fa36635d8a090933123d923dd9f76261bcd2af.tar.gz emacs-75fa36635d8a090933123d923dd9f76261bcd2af.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
| -rw-r--r-- | doc/lispref/frames.texi | 15 | ||||
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 10 | ||||
| -rw-r--r-- | lisp/faces.el | 10 |
4 files changed, 14 insertions, 26 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 368def90d85..42f1a42c73b 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -4461,20 +4461,12 @@ really supports that color. When using X, you can ask for any defined | |||
| 4461 | color on any kind of display, and you will get some result---typically, | 4461 | color on any kind of display, and you will get some result---typically, |
| 4462 | the closest it can do. To determine whether a frame can really display | 4462 | the closest it can do. To determine whether a frame can really display |
| 4463 | a certain color, use @code{color-supported-p} (see below). | 4463 | a certain color, use @code{color-supported-p} (see below). |
| 4464 | |||
| 4465 | @findex x-color-defined-p | ||
| 4466 | This function used to be called @code{x-color-defined-p}, | ||
| 4467 | and that name is still supported as an alias. | ||
| 4468 | @end defun | 4464 | @end defun |
| 4469 | 4465 | ||
| 4470 | @defun defined-colors &optional frame | 4466 | @defun defined-colors &optional frame |
| 4471 | This function returns a list of the color names that are defined | 4467 | This function returns a list of the color names that are defined |
| 4472 | and supported on frame @var{frame} (default, the selected frame). | 4468 | and supported on frame @var{frame} (default, the selected frame). |
| 4473 | If @var{frame} does not support colors, the value is @code{nil}. | 4469 | If @var{frame} does not support colors, the value is @code{nil}. |
| 4474 | |||
| 4475 | @findex x-defined-colors | ||
| 4476 | This function used to be called @code{x-defined-colors}, | ||
| 4477 | and that name is still supported as an alias. | ||
| 4478 | @end defun | 4470 | @end defun |
| 4479 | 4471 | ||
| 4480 | @defun color-supported-p color &optional frame background-p | 4472 | @defun color-supported-p color &optional frame background-p |
| @@ -4526,10 +4518,6 @@ The color values are returned for @var{frame}'s display. If | |||
| 4526 | @var{frame} is omitted or @code{nil}, the information is returned for | 4518 | @var{frame} is omitted or @code{nil}, the information is returned for |
| 4527 | the selected frame's display. If the frame cannot display colors, the | 4519 | the selected frame's display. If the frame cannot display colors, the |
| 4528 | value is @code{nil}. | 4520 | value is @code{nil}. |
| 4529 | |||
| 4530 | @findex x-color-values | ||
| 4531 | This function used to be called @code{x-color-values}, | ||
| 4532 | and that name is still supported as an alias. | ||
| 4533 | @end defun | 4521 | @end defun |
| 4534 | 4522 | ||
| 4535 | @defun color-name-to-rgb color &optional frame | 4523 | @defun color-name-to-rgb color &optional frame |
| @@ -4714,10 +4702,7 @@ This function returns @code{t} if @var{display} has a mouse available, | |||
| 4714 | @end defun | 4702 | @end defun |
| 4715 | 4703 | ||
| 4716 | @defun display-color-p &optional display | 4704 | @defun display-color-p &optional display |
| 4717 | @findex x-display-color-p | ||
| 4718 | This function returns @code{t} if the screen is a color screen. | 4705 | This function returns @code{t} if the screen is a color screen. |
| 4719 | It used to be called @code{x-display-color-p}, and that name | ||
| 4720 | is still supported as an alias. | ||
| 4721 | @end defun | 4706 | @end defun |
| 4722 | 4707 | ||
| 4723 | @defun display-grayscale-p &optional display | 4708 | @defun display-grayscale-p &optional display |
| @@ -701,6 +701,11 @@ Instead, the Lisp reader approximates an infinity with the nearest | |||
| 701 | finite value, and a NaN with some other non-numeric object that | 701 | finite value, and a NaN with some other non-numeric object that |
| 702 | provokes an error if used numerically. | 702 | provokes an error if used numerically. |
| 703 | 703 | ||
| 704 | +++ | ||
| 705 | ** X color support compatibility aliases are now marked obsolete. | ||
| 706 | The compatibility aliases 'x-defined-colors', 'x-color-defined-p', | ||
| 707 | 'x-color-values', and 'x-display-color-p' are now obsolete. | ||
| 708 | |||
| 704 | 709 | ||
| 705 | * Lisp Changes in Emacs 30.1 | 710 | * Lisp Changes in Emacs 30.1 |
| 706 | 711 | ||
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index c0aa9dd7b46..78114db0972 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -4724,15 +4724,15 @@ Please, specify your level now: ")) | |||
| 4724 | (defun viper-submit-report () | 4724 | (defun viper-submit-report () |
| 4725 | "Submit bug report on Viper." | 4725 | "Submit bug report on Viper." |
| 4726 | (interactive) | 4726 | (interactive) |
| 4727 | (defvar x-display-color-p) | 4727 | (defvar display-color-p) |
| 4728 | (defvar viper-frame-parameters) | 4728 | (defvar viper-frame-parameters) |
| 4729 | (defvar viper-minibuffer-emacs-face) | 4729 | (defvar viper-minibuffer-emacs-face) |
| 4730 | (defvar viper-minibuffer-vi-face) | 4730 | (defvar viper-minibuffer-vi-face) |
| 4731 | (defvar viper-minibuffer-insert-face) | 4731 | (defvar viper-minibuffer-insert-face) |
| 4732 | (let ((reporter-prompt-for-summary-p t) | 4732 | (let ((reporter-prompt-for-summary-p t) |
| 4733 | (x-display-color-p (if (viper-window-display-p) | 4733 | (display-color-p (if (viper-window-display-p) |
| 4734 | (x-display-color-p) | 4734 | (display-color-p) |
| 4735 | 'non-x)) | 4735 | 'non-x)) |
| 4736 | (viper-frame-parameters (frame-parameters (selected-frame))) | 4736 | (viper-frame-parameters (frame-parameters (selected-frame))) |
| 4737 | (viper-minibuffer-emacs-face (if (viper-has-face-support-p) | 4737 | (viper-minibuffer-emacs-face (if (viper-has-face-support-p) |
| 4738 | (facep | 4738 | (facep |
| @@ -4790,7 +4790,7 @@ Please, specify your level now: ")) | |||
| 4790 | 'viper-expert-level | 4790 | 'viper-expert-level |
| 4791 | 'major-mode | 4791 | 'major-mode |
| 4792 | 'window-system | 4792 | 'window-system |
| 4793 | 'x-display-color-p | 4793 | 'display-color-p |
| 4794 | 'viper-frame-parameters | 4794 | 'viper-frame-parameters |
| 4795 | 'viper-minibuffer-vi-face | 4795 | 'viper-minibuffer-vi-face |
| 4796 | 'viper-minibuffer-insert-face | 4796 | 'viper-minibuffer-insert-face |
diff --git a/lisp/faces.el b/lisp/faces.el index dad16966f48..3ad6fe59557 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1850,7 +1850,6 @@ If there is neither a user setting nor a default for FACE, return nil." | |||
| 1850 | 1850 | ||
| 1851 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1851 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1852 | ;;; Frame-type independent color support. | 1852 | ;;; Frame-type independent color support. |
| 1853 | ;;; We keep the old x-* names as aliases for back-compatibility. | ||
| 1854 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1853 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1855 | 1854 | ||
| 1856 | (defun defined-colors (&optional frame) | 1855 | (defun defined-colors (&optional frame) |
| @@ -1862,7 +1861,6 @@ If FRAME is nil, that stands for the selected frame." | |||
| 1862 | (if (display-graphic-p frame) | 1861 | (if (display-graphic-p frame) |
| 1863 | (xw-defined-colors frame) | 1862 | (xw-defined-colors frame) |
| 1864 | (mapcar 'car (tty-color-alist frame)))) | 1863 | (mapcar 'car (tty-color-alist frame)))) |
| 1865 | (defalias 'x-defined-colors 'defined-colors) | ||
| 1866 | 1864 | ||
| 1867 | (defun defined-colors-with-face-attributes (&optional frame foreground) | 1865 | (defun defined-colors-with-face-attributes (&optional frame foreground) |
| 1868 | "Return a list of colors supported for a particular FRAME. | 1866 | "Return a list of colors supported for a particular FRAME. |
| @@ -1946,7 +1944,6 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 1946 | (if (display-graphic-p frame) | 1944 | (if (display-graphic-p frame) |
| 1947 | (xw-color-defined-p color frame) | 1945 | (xw-color-defined-p color frame) |
| 1948 | (numberp (tty-color-translate color frame))))) | 1946 | (numberp (tty-color-translate color frame))))) |
| 1949 | (defalias 'x-color-defined-p 'color-defined-p) | ||
| 1950 | 1947 | ||
| 1951 | (declare-function xw-color-values "xfns.c" (color &optional frame)) | 1948 | (declare-function xw-color-values "xfns.c" (color &optional frame)) |
| 1952 | 1949 | ||
| @@ -1974,8 +1971,6 @@ return value is nil." | |||
| 1974 | (t | 1971 | (t |
| 1975 | (tty-color-values color frame)))) | 1972 | (tty-color-values color frame)))) |
| 1976 | 1973 | ||
| 1977 | (defalias 'x-color-values 'color-values) | ||
| 1978 | |||
| 1979 | (declare-function xw-display-color-p "xfns.c" (&optional terminal)) | 1974 | (declare-function xw-display-color-p "xfns.c" (&optional terminal)) |
| 1980 | 1975 | ||
| 1981 | (defun display-color-p (&optional display) | 1976 | (defun display-color-p (&optional display) |
| @@ -1986,7 +1981,6 @@ If omitted or nil, that stands for the selected frame's display." | |||
| 1986 | (if (display-graphic-p display) | 1981 | (if (display-graphic-p display) |
| 1987 | (xw-display-color-p display) | 1982 | (xw-display-color-p display) |
| 1988 | (tty-display-color-p display))) | 1983 | (tty-display-color-p display))) |
| 1989 | (defalias 'x-display-color-p 'display-color-p) | ||
| 1990 | 1984 | ||
| 1991 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) | 1985 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) |
| 1992 | 1986 | ||
| @@ -3221,6 +3215,10 @@ also the same size as FACE on FRAME, or fail." | |||
| 3221 | 3215 | ||
| 3222 | (define-obsolete-function-alias 'face-background-pixmap #'face-stipple "29.1") | 3216 | (define-obsolete-function-alias 'face-background-pixmap #'face-stipple "29.1") |
| 3223 | (define-obsolete-function-alias 'set-face-background-pixmap #'set-face-stipple "29.1") | 3217 | (define-obsolete-function-alias 'set-face-background-pixmap #'set-face-stipple "29.1") |
| 3218 | (define-obsolete-function-alias 'x-defined-colors #'defined-colors "30.1") | ||
| 3219 | (define-obsolete-function-alias 'x-color-defined-p #'color-defined-p "30.1") | ||
| 3220 | (define-obsolete-function-alias 'x-color-values #'color-values "30.1") | ||
| 3221 | (define-obsolete-function-alias 'x-display-color-p #'display-color-p "30.1") | ||
| 3224 | 3222 | ||
| 3225 | (provide 'faces) | 3223 | (provide 'faces) |
| 3226 | 3224 | ||