diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-16 12:43:46 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-16 12:43:46 -0700 |
commit | 290d7ac277986bd118e594a8100b3f40e4492cb1 (patch) | |
tree | d63a3aa61cac577dd119665edaffe2def8d194e2 /lisp/term | |
parent | 37eccff4f72c5a36dcd4b89d417b0047aab84e50 (diff) | |
parent | b262bde327db2cd9b2f01f2d3ed946d0b188cb9d (diff) | |
download | emacs-290d7ac277986bd118e594a8100b3f40e4492cb1.tar.gz |
Merge from emacs-24; up to 2014-04-16T15:28:26Z!monnier@iro.umontreal.ca
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/pc-win.el | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/lisp/term/pc-win.el b/lisp/term/pc-win.el index 00b860f8dcc..f24a54fbe28 100644 --- a/lisp/term/pc-win.el +++ b/lisp/term/pc-win.el @@ -165,6 +165,27 @@ created." ;; From src/xfns.c (defun x-list-fonts (_pattern &optional _face _frame _maximum width) + "Return a list of the names of available fonts matching PATTERN. +If optional arguments FACE and FRAME are specified, return only fonts +the same size as FACE on FRAME. + +PATTERN should be a string containing a font name in the XLFD, +Fontconfig, or GTK format. A font name given in the XLFD format may +contain wildcard characters: + the * character matches any substring, and + the ? character matches any single character. + PATTERN is case-insensitive. + +The return value is a list of strings, suitable as arguments to +\`set-face-font'. + +Fonts Emacs can't use may or may not be excluded +even if they match PATTERN and FACE. +The optional fourth argument MAXIMUM sets a limit on how many +fonts to match. The first MAXIMUM fonts are reported. +The optional fifth argument WIDTH, if specified, is a number of columns +occupied by a character of a font. In that case, return only fonts +the WIDTH times as wide as FACE on FRAME." (if (or (null width) (and (numberp width) (= width 1))) (list "ms-dos") (list "no-such-font"))) @@ -232,9 +253,9 @@ is not used)." (w16-set-clipboard-data text)) (setq x-last-selected-text text)) -;;; Return the value of the current selection. -;;; Consult the selection. Treat empty strings as if they were unset. (defun x-get-selection-value () + "Return the value of the current selection. +Consult the selection. Treat empty strings as if they were unset." (if x-select-enable-clipboard (let (text) ;; Don't die if x-get-selection signals an error. |