mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-20 18:17:20 +00:00
Fix documentation of some x-* functions
* lisp/term/pc-win.el (x-display-pixel-width) (x-display-pixel-height, x-display-planes) (x-display-color-cells, x-server-max-request-size) (x-server-vendor, x-server-version, x-display-screens) (x-display-mm-height, x-display-mm-width) (x-display-backing-store, x-display-visual-class): Provide doc strings, so that 'makedoc' produces non-empty documentation in etc/DOC for these functions. (Bug#30068)
This commit is contained in:
parent
9c2b11484f
commit
4bd2416d55
@ -189,18 +189,115 @@ the WIDTH times as wide as FACE on FRAME."
|
|||||||
(if (or (null width) (and (numberp width) (= width 1)))
|
(if (or (null width) (and (numberp width) (= width 1)))
|
||||||
(list "ms-dos")
|
(list "ms-dos")
|
||||||
(list "no-such-font")))
|
(list "no-such-font")))
|
||||||
(defun x-display-pixel-width (&optional frame) (frame-width frame))
|
(defun x-display-pixel-width (&optional frame)
|
||||||
(defun x-display-pixel-height (&optional frame) (frame-height frame))
|
"Return the width in pixels of DISPLAY.
|
||||||
(defun x-display-planes (&optional _frame) 4) ;bg switched to 16 colors as well
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
(defun x-display-color-cells (&optional _frame) 16)
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
(defun x-server-max-request-size (&optional _frame) 1000000) ; ???
|
If omitted or nil, that stands for the selected frame's display.
|
||||||
(defun x-server-vendor (&optional _frame) t "GNU")
|
|
||||||
(defun x-server-version (&optional _frame) '(1 0 0))
|
On \"multi-monitor\" setups this refers to the pixel width for all
|
||||||
(defun x-display-screens (&optional _frame) 1)
|
physical monitors associated with DISPLAY. To get information for
|
||||||
(defun x-display-mm-height (&optional _frame) 245) ; Guess the size of my
|
each physical monitor, use `display-monitor-attributes-list'."
|
||||||
(defun x-display-mm-width (&optional _frame) 322) ; monitor, EZ...
|
(frame-width frame))
|
||||||
(defun x-display-backing-store (&optional _frame) 'not-useful)
|
(defun x-display-pixel-height (&optional frame)
|
||||||
(defun x-display-visual-class (&optional _frame) 'static-color)
|
"Return the height in pixels of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display.
|
||||||
|
|
||||||
|
On \"multi-monitor\" setups this refers to the pixel height for all
|
||||||
|
physical monitors associated with DISPLAY. To get information for
|
||||||
|
each physical monitor, use `display-monitor-attributes-list'."
|
||||||
|
(frame-height frame))
|
||||||
|
(defun x-display-planes (&optional _frame)
|
||||||
|
"Return the number of bitplanes of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
4) ;bg switched to 16 colors as well
|
||||||
|
(defun x-display-color-cells (&optional _frame)
|
||||||
|
"Return the number of color cells of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
16)
|
||||||
|
(defun x-server-max-request-size (&optional _frame)
|
||||||
|
"Return the maximum request size of the server of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
1000000) ; ???
|
||||||
|
(defun x-server-vendor (&optional _frame)
|
||||||
|
"Return the \"vendor ID\" string of the GUI software on TERMINAL.
|
||||||
|
|
||||||
|
\(Labeling every distributor as a \"vendor\" embodies the false assumption
|
||||||
|
that operating systems cannot be developed and distributed noncommercially.)
|
||||||
|
|
||||||
|
For GNU and Unix systems, this queries the X server software; for
|
||||||
|
MS-Windows, this queries the OS.
|
||||||
|
|
||||||
|
The optional argument TERMINAL specifies which display to ask about.
|
||||||
|
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
"GNU")
|
||||||
|
(defun x-server-version (&optional _frame)
|
||||||
|
"Return the version numbers of the GUI software on TERMINAL.
|
||||||
|
The value is a list of three integers specifying the version of the GUI
|
||||||
|
software in use.
|
||||||
|
|
||||||
|
For GNU and Unix system, the first 2 numbers are the version of the X
|
||||||
|
Protocol used on TERMINAL and the 3rd number is the distributor-specific
|
||||||
|
release number. For MS-Windows, the 3 numbers report the version and
|
||||||
|
the build number of the OS.
|
||||||
|
|
||||||
|
See also the function `x-server-vendor'.
|
||||||
|
|
||||||
|
The optional argument TERMINAL specifies which display to ask about.
|
||||||
|
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
'(1 0 0))
|
||||||
|
(defun x-display-screens (&optional _frame)
|
||||||
|
"Return the number of screens on the server of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
1)
|
||||||
|
(defun x-display-mm-height (&optional _frame)
|
||||||
|
"Return the height in millimeters of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display.
|
||||||
|
|
||||||
|
On \"multi-monitor\" setups this refers to the height in millimeters for
|
||||||
|
all physical monitors associated with DISPLAY. To get information
|
||||||
|
for each physical monitor, use `display-monitor-attributes-list'."
|
||||||
|
245) ; Guess the size of my...
|
||||||
|
(defun x-display-mm-width (&optional _frame)
|
||||||
|
"Return the width in millimeters of DISPLAY.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display.
|
||||||
|
|
||||||
|
On \"multi-monitor\" setups this refers to the width in millimeters for
|
||||||
|
all physical monitors associated with TERMINAL. To get information
|
||||||
|
for each physical monitor, use `display-monitor-attributes-list'."
|
||||||
|
322) ; ...monitor, EZ...
|
||||||
|
(defun x-display-backing-store (&optional _frame)
|
||||||
|
"Return an indication of whether DISPLAY does backing store.
|
||||||
|
The value may be `always', `when-mapped', or `not-useful'.
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
'not-useful)
|
||||||
|
(defun x-display-visual-class (&optional _frame)
|
||||||
|
"Return the visual class of DISPLAY.
|
||||||
|
The value is one of the symbols `static-gray', `gray-scale',
|
||||||
|
`static-color', `pseudo-color', `true-color', or `direct-color'.
|
||||||
|
|
||||||
|
The optional argument DISPLAY specifies which display to ask about.
|
||||||
|
DISPLAY should be either a frame or a display name (a string).
|
||||||
|
If omitted or nil, that stands for the selected frame's display."
|
||||||
|
'static-color)
|
||||||
(fset 'x-display-save-under 'ignore)
|
(fset 'x-display-save-under 'ignore)
|
||||||
(fset 'x-get-resource 'ignore)
|
(fset 'x-get-resource 'ignore)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user