diff options
| author | Glenn Morris | 2018-01-15 13:53:40 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-01-15 13:53:40 -0800 |
| commit | 9bd8f01cd6613795e6a7bb228b1aff342cc88c8b (patch) | |
| tree | aa566ea564a3d8e344c3015b997a6478e2010b5d /lisp | |
| parent | e6b1df09551fc02aedcba4dbf5ee91dad4686e9a (diff) | |
| parent | 2c0cfa64553dc1d4d376b42b56e52a007222736b (diff) | |
| download | emacs-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')
| -rw-r--r-- | lisp/emacs-lisp/generator.el | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/syntax.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 3 | ||||
| -rw-r--r-- | lisp/term/pc-win.el | 121 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 9 |
5 files changed, 126 insertions, 18 deletions
diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el index b19f6fab722..506df59d8e2 100644 --- a/lisp/emacs-lisp/generator.el +++ b/lisp/emacs-lisp/generator.el | |||
| @@ -681,7 +681,8 @@ When called as a function, NAME returns an iterator value that | |||
| 681 | encapsulates the state of a computation that produces a sequence | 681 | encapsulates the state of a computation that produces a sequence |
| 682 | of values. Callers can retrieve each value using `iter-next'." | 682 | of values. Callers can retrieve each value using `iter-next'." |
| 683 | (declare (indent defun) | 683 | (declare (indent defun) |
| 684 | (debug (&define name lambda-list lambda-doc def-body))) | 684 | (debug (&define name lambda-list lambda-doc def-body)) |
| 685 | (doc-string 3)) | ||
| 685 | (cl-assert lexical-binding) | 686 | (cl-assert lexical-binding) |
| 686 | (let* ((parsed-body (macroexp-parse-body body)) | 687 | (let* ((parsed-body (macroexp-parse-body body)) |
| 687 | (declarations (car parsed-body)) | 688 | (declarations (car parsed-body)) |
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index a1b70b18693..6106720f7a5 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el | |||
| @@ -291,6 +291,14 @@ END) suitable for `syntax-propertize-function'." | |||
| 291 | ;; (message "Needs to syntax-propertize from %s to %s" | 291 | ;; (message "Needs to syntax-propertize from %s to %s" |
| 292 | ;; syntax-propertize--done pos) | 292 | ;; syntax-propertize--done pos) |
| 293 | (set (make-local-variable 'parse-sexp-lookup-properties) t) | 293 | (set (make-local-variable 'parse-sexp-lookup-properties) t) |
| 294 | (when (< syntax-propertize--done (point-min)) | ||
| 295 | ;; *Usually* syntax-propertize is called via syntax-ppss which | ||
| 296 | ;; takes care of adding syntax-ppss-flush-cache to b-c-f, but this | ||
| 297 | ;; is not *always* the case, so since we share a single "flush" function | ||
| 298 | ;; between syntax-ppss and syntax-propertize, we also have to make | ||
| 299 | ;; sure the flush function is installed here (bug#29767). | ||
| 300 | (add-hook 'before-change-functions | ||
| 301 | #'syntax-ppss-flush-cache t t)) | ||
| 294 | (save-excursion | 302 | (save-excursion |
| 295 | (with-silent-modifications | 303 | (with-silent-modifications |
| 296 | (make-local-variable 'syntax-propertize--done) ;Just in case! | 304 | (make-local-variable 'syntax-propertize--done) ;Just in case! |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index cbb12703e72..93b897b2beb 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -3420,7 +3420,8 @@ Message buffers and is not meant to be called directly." | |||
| 3420 | (defun message-do-auto-fill () | 3420 | (defun message-do-auto-fill () |
| 3421 | "Like `do-auto-fill', but don't fill in message header." | 3421 | "Like `do-auto-fill', but don't fill in message header." |
| 3422 | (unless (message-point-in-header-p) | 3422 | (unless (message-point-in-header-p) |
| 3423 | (do-auto-fill))) | 3423 | (let ((paragraph-separate (default-value 'paragraph-separate))) |
| 3424 | (do-auto-fill)))) | ||
| 3424 | 3425 | ||
| 3425 | (defun message-insert-signature (&optional force) | 3426 | (defun message-insert-signature (&optional force) |
| 3426 | "Insert a signature. See documentation for variable `message-signature'." | 3427 | "Insert a signature. See documentation for variable `message-signature'." |
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 | 194 | The optional argument DISPLAY specifies which display to ask about. |
| 195 | (defun x-display-color-cells (&optional _frame) 16) | 195 | DISPLAY should be either a frame or a display name (a string). |
| 196 | (defun x-server-max-request-size (&optional _frame) 1000000) ; ??? | 196 | If 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)) | 198 | On \"multi-monitor\" setups this refers to the pixel width for all |
| 199 | (defun x-display-screens (&optional _frame) 1) | 199 | physical monitors associated with DISPLAY. To get information for |
| 200 | (defun x-display-mm-height (&optional _frame) 245) ; Guess the size of my | 200 | each 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. |
| 204 | The optional argument DISPLAY specifies which display to ask about. | ||
| 205 | DISPLAY should be either a frame or a display name (a string). | ||
| 206 | If omitted or nil, that stands for the selected frame's display. | ||
| 207 | |||
| 208 | On \"multi-monitor\" setups this refers to the pixel height for all | ||
| 209 | physical monitors associated with DISPLAY. To get information for | ||
| 210 | each 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. | ||
| 214 | The optional argument DISPLAY specifies which display to ask about. | ||
| 215 | DISPLAY should be either a frame or a display name (a string). | ||
| 216 | If 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. | ||
| 220 | The optional argument DISPLAY specifies which display to ask about. | ||
| 221 | DISPLAY should be either a frame or a display name (a string). | ||
| 222 | If 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. | ||
| 226 | The optional argument DISPLAY specifies which display to ask about. | ||
| 227 | DISPLAY should be either a frame or a display name (a string). | ||
| 228 | If 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 | ||
| 234 | that operating systems cannot be developed and distributed noncommercially.) | ||
| 235 | |||
| 236 | For GNU and Unix systems, this queries the X server software; for | ||
| 237 | MS-Windows, this queries the OS. | ||
| 238 | |||
| 239 | The optional argument TERMINAL specifies which display to ask about. | ||
| 240 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 241 | If 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. | ||
| 245 | The value is a list of three integers specifying the version of the GUI | ||
| 246 | software in use. | ||
| 247 | |||
| 248 | For GNU and Unix system, the first 2 numbers are the version of the X | ||
| 249 | Protocol used on TERMINAL and the 3rd number is the distributor-specific | ||
| 250 | release number. For MS-Windows, the 3 numbers report the version and | ||
| 251 | the build number of the OS. | ||
| 252 | |||
| 253 | See also the function `x-server-vendor'. | ||
| 254 | |||
| 255 | The optional argument TERMINAL specifies which display to ask about. | ||
| 256 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 257 | If 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. | ||
| 261 | The optional argument DISPLAY specifies which display to ask about. | ||
| 262 | DISPLAY should be either a frame or a display name (a string). | ||
| 263 | If 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. | ||
| 267 | The optional argument DISPLAY specifies which display to ask about. | ||
| 268 | DISPLAY should be either a frame or a display name (a string). | ||
| 269 | If omitted or nil, that stands for the selected frame's display. | ||
| 270 | |||
| 271 | On \"multi-monitor\" setups this refers to the height in millimeters for | ||
| 272 | all physical monitors associated with DISPLAY. To get information | ||
| 273 | for 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. | ||
| 277 | The optional argument DISPLAY specifies which display to ask about. | ||
| 278 | DISPLAY should be either a frame or a display name (a string). | ||
| 279 | If omitted or nil, that stands for the selected frame's display. | ||
| 280 | |||
| 281 | On \"multi-monitor\" setups this refers to the width in millimeters for | ||
| 282 | all physical monitors associated with TERMINAL. To get information | ||
| 283 | for 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. | ||
| 287 | The value may be `always', `when-mapped', or `not-useful'. | ||
| 288 | The optional argument DISPLAY specifies which display to ask about. | ||
| 289 | DISPLAY should be either a frame or a display name (a string). | ||
| 290 | If 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. | ||
| 294 | The value is one of the symbols `static-gray', `gray-scale', | ||
| 295 | `static-color', `pseudo-color', `true-color', or `direct-color'. | ||
| 296 | |||
| 297 | The optional argument DISPLAY specifies which display to ask about. | ||
| 298 | DISPLAY should be either a frame or a display name (a string). | ||
| 299 | If 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 | ||
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index a46f0b2a4cd..7f9538fb569 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -50,10 +50,11 @@ A value of nil means that any change in indentation starts a new paragraph." | |||
| 50 | (put 'colon-double-space 'safe-local-variable 'booleanp) | 50 | (put 'colon-double-space 'safe-local-variable 'booleanp) |
| 51 | 51 | ||
| 52 | (defcustom fill-separate-heterogeneous-words-with-space nil | 52 | (defcustom fill-separate-heterogeneous-words-with-space nil |
| 53 | "Non-nil means that use a space to separate words of different kind. | 53 | "Non-nil means to use a space to separate words of a different kind. |
| 54 | This will be done with a word in the end of a line and a word in the | 54 | This will be done with a word in the end of a line and a word in |
| 55 | beginning of the next line when concatenating them for filling those | 55 | the beginning of the next line when concatenating them for |
| 56 | lines. Whether to use a space is up to how the words are categorized." | 56 | filling those lines. Whether to use a space depends on how the |
| 57 | words are categorized." | ||
| 57 | :type 'boolean | 58 | :type 'boolean |
| 58 | :group 'fill | 59 | :group 'fill |
| 59 | :version "26.1") | 60 | :version "26.1") |