aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorGlenn Morris2018-01-15 13:53:40 -0800
committerGlenn Morris2018-01-15 13:53:40 -0800
commit9bd8f01cd6613795e6a7bb228b1aff342cc88c8b (patch)
treeaa566ea564a3d8e344c3015b997a6478e2010b5d /lisp/term
parente6b1df09551fc02aedcba4dbf5ee91dad4686e9a (diff)
parent2c0cfa64553dc1d4d376b42b56e52a007222736b (diff)
downloademacs-9bd8f01cd6613795e6a7bb228b1aff342cc88c8b.tar.gz
emacs-9bd8f01cd6613795e6a7bb228b1aff342cc88c8b.zip
Merge from origin/emacs-26
2c0cfa6455 * ChangeLog.3: Update 4387bb44ae Update authors bce51bd6f7 * lisp/gnus/message.el (message-do-auto-fill): Prevent do-... bd2a2a1e84 Improve documentation of etags 7ba75b9637 Teach etags new interpreters for some languages 1f7f03742d * lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-stri... dbb4aac212 * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#2... 80463a43da Improve documentation of fill-separate-heterogeneous-words... 4bd2416d55 Fix documentation of some x-* functions 9c2b11484f Inherit query-on-exit flag to stderr process (Bug#30031) 3efb1e7def Fix Bug#30057 a9b884c60f Tag some unstable tests, and skip by default (bug#24503) # Conflicts: # test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/pc-win.el121
1 files changed, 109 insertions, 12 deletions
diff --git a/lisp/term/pc-win.el b/lisp/term/pc-win.el
index f49ad7a4830..3ed21b8e436 100644
--- a/lisp/term/pc-win.el
+++ b/lisp/term/pc-win.el
@@ -189,18 +189,115 @@ the WIDTH times as wide as FACE on FRAME."
189 (if (or (null width) (and (numberp width) (= width 1))) 189 (if (or (null width) (and (numberp width) (= width 1)))
190 (list "ms-dos") 190 (list "ms-dos")
191 (list "no-such-font"))) 191 (list "no-such-font")))
192(defun x-display-pixel-width (&optional frame) (frame-width frame)) 192(defun x-display-pixel-width (&optional frame)
193(defun x-display-pixel-height (&optional frame) (frame-height frame)) 193 "Return the width in pixels of DISPLAY.
194(defun x-display-planes (&optional _frame) 4) ;bg switched to 16 colors as well 194The optional argument DISPLAY specifies which display to ask about.
195(defun x-display-color-cells (&optional _frame) 16) 195DISPLAY should be either a frame or a display name (a string).
196(defun x-server-max-request-size (&optional _frame) 1000000) ; ??? 196If omitted or nil, that stands for the selected frame's display.
197(defun x-server-vendor (&optional _frame) t "GNU") 197
198(defun x-server-version (&optional _frame) '(1 0 0)) 198On \"multi-monitor\" setups this refers to the pixel width for all
199(defun x-display-screens (&optional _frame) 1) 199physical monitors associated with DISPLAY. To get information for
200(defun x-display-mm-height (&optional _frame) 245) ; Guess the size of my 200each physical monitor, use `display-monitor-attributes-list'."
201(defun x-display-mm-width (&optional _frame) 322) ; monitor, EZ... 201 (frame-width frame))
202(defun x-display-backing-store (&optional _frame) 'not-useful) 202(defun x-display-pixel-height (&optional frame)
203(defun x-display-visual-class (&optional _frame) 'static-color) 203 "Return the height in pixels of DISPLAY.
204The optional argument DISPLAY specifies which display to ask about.
205DISPLAY should be either a frame or a display name (a string).
206If omitted or nil, that stands for the selected frame's display.
207
208On \"multi-monitor\" setups this refers to the pixel height for all
209physical monitors associated with DISPLAY. To get information for
210each physical monitor, use `display-monitor-attributes-list'."
211 (frame-height frame))
212(defun x-display-planes (&optional _frame)
213 "Return the number of bitplanes of DISPLAY.
214The optional argument DISPLAY specifies which display to ask about.
215DISPLAY should be either a frame or a display name (a string).
216If omitted or nil, that stands for the selected frame's display."
217 4) ;bg switched to 16 colors as well
218(defun x-display-color-cells (&optional _frame)
219 "Return the number of color cells of DISPLAY.
220The optional argument DISPLAY specifies which display to ask about.
221DISPLAY should be either a frame or a display name (a string).
222If omitted or nil, that stands for the selected frame's display."
223 16)
224(defun x-server-max-request-size (&optional _frame)
225 "Return the maximum request size of the server of DISPLAY.
226The optional argument DISPLAY specifies which display to ask about.
227DISPLAY should be either a frame or a display name (a string).
228If omitted or nil, that stands for the selected frame's display."
229 1000000) ; ???
230(defun x-server-vendor (&optional _frame)
231 "Return the \"vendor ID\" string of the GUI software on TERMINAL.
232
233\(Labeling every distributor as a \"vendor\" embodies the false assumption
234that operating systems cannot be developed and distributed noncommercially.)
235
236For GNU and Unix systems, this queries the X server software; for
237MS-Windows, this queries the OS.
238
239The optional argument TERMINAL specifies which display to ask about.
240TERMINAL should be a terminal object, a frame or a display name (a string).
241If omitted or nil, that stands for the selected frame's display."
242 "GNU")
243(defun x-server-version (&optional _frame)
244 "Return the version numbers of the GUI software on TERMINAL.
245The value is a list of three integers specifying the version of the GUI
246software in use.
247
248For GNU and Unix system, the first 2 numbers are the version of the X
249Protocol used on TERMINAL and the 3rd number is the distributor-specific
250release number. For MS-Windows, the 3 numbers report the version and
251the build number of the OS.
252
253See also the function `x-server-vendor'.
254
255The optional argument TERMINAL specifies which display to ask about.
256TERMINAL should be a terminal object, a frame or a display name (a string).
257If omitted or nil, that stands for the selected frame's display."
258 '(1 0 0))
259(defun x-display-screens (&optional _frame)
260 "Return the number of screens on the server of DISPLAY.
261The optional argument DISPLAY specifies which display to ask about.
262DISPLAY should be either a frame or a display name (a string).
263If omitted or nil, that stands for the selected frame's display."
264 1)
265(defun x-display-mm-height (&optional _frame)
266 "Return the height in millimeters of DISPLAY.
267The optional argument DISPLAY specifies which display to ask about.
268DISPLAY should be either a frame or a display name (a string).
269If omitted or nil, that stands for the selected frame's display.
270
271On \"multi-monitor\" setups this refers to the height in millimeters for
272all physical monitors associated with DISPLAY. To get information
273for each physical monitor, use `display-monitor-attributes-list'."
274 245) ; Guess the size of my...
275(defun x-display-mm-width (&optional _frame)
276 "Return the width in millimeters of DISPLAY.
277The optional argument DISPLAY specifies which display to ask about.
278DISPLAY should be either a frame or a display name (a string).
279If omitted or nil, that stands for the selected frame's display.
280
281On \"multi-monitor\" setups this refers to the width in millimeters for
282all physical monitors associated with TERMINAL. To get information
283for each physical monitor, use `display-monitor-attributes-list'."
284 322) ; ...monitor, EZ...
285(defun x-display-backing-store (&optional _frame)
286 "Return an indication of whether DISPLAY does backing store.
287The value may be `always', `when-mapped', or `not-useful'.
288The optional argument DISPLAY specifies which display to ask about.
289DISPLAY should be either a frame or a display name (a string).
290If omitted or nil, that stands for the selected frame's display."
291 'not-useful)
292(defun x-display-visual-class (&optional _frame)
293 "Return the visual class of DISPLAY.
294The value is one of the symbols `static-gray', `gray-scale',
295`static-color', `pseudo-color', `true-color', or `direct-color'.
296
297The optional argument DISPLAY specifies which display to ask about.
298DISPLAY should be either a frame or a display name (a string).
299If omitted or nil, that stands for the selected frame's display."
300 'static-color)
204(fset 'x-display-save-under 'ignore) 301(fset 'x-display-save-under 'ignore)
205(fset 'x-get-resource 'ignore) 302(fset 'x-get-resource 'ignore)
206 303