diff options
| author | Joakim Verona | 2013-01-13 00:03:43 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-01-13 00:03:43 +0100 |
| commit | ec43cd5d7289dd1a994dc3517fccce1611966f89 (patch) | |
| tree | a52fa958b4c50e92932bcf5381f749a1846a908f /lisp | |
| parent | c655adbbab4baf73b652c86dcc53a2fc049ea7a5 (diff) | |
| parent | 71c661e4e6ab3857804113bc41fc2310343c9169 (diff) | |
| download | emacs-ec43cd5d7289dd1a994dc3517fccce1611966f89.tar.gz emacs-ec43cd5d7289dd1a994dc3517fccce1611966f89.zip | |
auto upstream
Diffstat (limited to 'lisp')
34 files changed, 246 insertions, 118 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7eef2c80382..7723528c886 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,10 +1,84 @@ | |||
| 1 | 2013-01-12 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * autorevert.el (auto-revert-notify-watch-descriptor): Give it | ||
| 4 | `permanent-local' property. | ||
| 5 | (auto-revert-notify-handler): Use `file-equal-p'. | ||
| 6 | |||
| 7 | 2013-01-12 Eli Zaretskii <eliz@gnu.org> | ||
| 8 | |||
| 9 | * autorevert.el (auto-revert-notify-handler): Fix filtering of | ||
| 10 | file notification by ACTION. For filtering by file name, compare | ||
| 11 | only the non-directory part of the file name. | ||
| 12 | |||
| 13 | 2013-01-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14 | |||
| 15 | * autorevert.el: Use cl-lib instead of cl. | ||
| 16 | |||
| 17 | * vc/vc-bzr.el (vc-bzr--sanitize-header): New function (bug#13307). | ||
| 18 | (vc-bzr-checkin): Use it. | ||
| 19 | * vc/log-edit.el (log-edit-extract-headers): Don't presume FUNCTION | ||
| 20 | will preserve match-data. | ||
| 21 | |||
| 22 | 2013-01-11 Felix H. Dahlke <fhd@ubercode.de> | ||
| 23 | |||
| 24 | * progmodes/js.el: Fix multiline declarations's indentation (bug#8576). | ||
| 25 | (js--declaration-keyword-re): New var. | ||
| 26 | (js--multi-line-declaration-indentation): New function. | ||
| 27 | (js--proper-indentation): Use it. | ||
| 28 | |||
| 29 | 2013-01-11 Aaron S. Hawley <Aaron.Hawley@vtinfo.com> | ||
| 30 | |||
| 31 | * calc/calc.el (calc-highlight-selections-with-faces) | ||
| 32 | (calc-dispatch): | ||
| 33 | * comint.el (comint-history-isearch-message): | ||
| 34 | * emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): | ||
| 35 | * ffap.el (ffap-string-at-point-region, ffap-next) | ||
| 36 | (ffap-string-at-point, ffap-string-around) | ||
| 37 | (ffap-copy-string-as-kill, ffap-highlight-overlay) | ||
| 38 | (ffap-literally): | ||
| 39 | * font-lock.el (font-lock-keywords-alist) | ||
| 40 | (font-lock-removed-keywords-alist): | ||
| 41 | * help-mode.el (help-xref-symbol-regexp): | ||
| 42 | * info.el (Info-find-emacs-command-nodes): | ||
| 43 | * international/mule.el (add-to-coding-system-list): | ||
| 44 | * isearch.el (isearch-message-function, isearch-fail-pos): | ||
| 45 | * misearch.el (multi-isearch-next-buffer-function): | ||
| 46 | * newcomment.el (comment-box): | ||
| 47 | * printing.el (pr-txt-printer-alist, pr-ps-printer-alist) | ||
| 48 | (pr-setting-database): | ||
| 49 | * progmodes/cc-fonts.el (c-font-lock-keywords-3) | ||
| 50 | (c++-font-lock-keywords-3, objc-font-lock-keywords-3) | ||
| 51 | (java-font-lock-keywords-3, idl-font-lock-keywords-3) | ||
| 52 | (pike-font-lock-keywords-3): | ||
| 53 | * progmodes/compile.el (compile): | ||
| 54 | * progmodes/etags.el (tags-table-files) | ||
| 55 | (tags-table-files-function, tags-included-tables-function): | ||
| 56 | * progmodes/gdb-mi.el (gdb, gdb-setup-windows) | ||
| 57 | (gdb-restore-windows): | ||
| 58 | * ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces) | ||
| 59 | (ps-n-up-filling-database): | ||
| 60 | * server.el (server-buffer, server-log): | ||
| 61 | * simple.el (newline, delete-backward-char, delete-forward-char) | ||
| 62 | (minibuffer-history-isearch-message, kill-line, track-eol) | ||
| 63 | (temporary-goal-column): | ||
| 64 | * textmodes/flyspell.el (flyspell-mark-duplications-flag) | ||
| 65 | (flyspell-default-deplacement-commands): | ||
| 66 | * textmodes/ispell.el (ispell-accept-output): | ||
| 67 | * textmodes/sgml-mode.el (html-tag-help): | ||
| 68 | * vc/compare-w.el (compare-ignore-whitespace) | ||
| 69 | (compare-ignore-case, compare-windows-dehighlight): | ||
| 70 | * vc/diff.el (diff): | ||
| 71 | * whitespace.el (whitespace-point) | ||
| 72 | (whitespace-font-lock-refontify, whitespace-bob-marker) | ||
| 73 | (whitespace-eob-marker): Fix ambiguous doc string cross-reference(s). | ||
| 74 | |||
| 1 | 2013-01-11 Michael Albinus <michael.albinus@gmx.de> | 75 | 2013-01-11 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 76 | ||
| 3 | * autorevert.el (top): Require 'cl in order to pacify byte compiler. | 77 | * autorevert.el (top): Require 'cl in order to pacify byte compiler. |
| 4 | (auto-revert-notify-rm-watch): Ignore errors. | 78 | (auto-revert-notify-rm-watch): Ignore errors. |
| 5 | (auto-revert-notify-add-watch): Ignore errors. Use '(modify) for | 79 | (auto-revert-notify-add-watch): Ignore errors. Use '(modify) for |
| 6 | inotify, and '(size last-write-time) for w32notify. Set | 80 | inotify, and '(size last-write-time) for w32notify. |
| 7 | buffer-local `auto-revert-use-notify' to nil when adding a file | 81 | Set buffer-local `auto-revert-use-notify' to nil when adding a file |
| 8 | watch fails - this is a fallback to the file modification check. | 82 | watch fails - this is a fallback to the file modification check. |
| 9 | (auto-revert-notify-event-p, auto-revert-notify-event-descriptor) | 83 | (auto-revert-notify-event-p, auto-revert-notify-event-descriptor) |
| 10 | (auto-revert-notify-event-action) | 84 | (auto-revert-notify-event-action) |
diff --git a/lisp/autorevert.el b/lisp/autorevert.el index e78cecf0cc2..c9180482cd9 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el | |||
| @@ -97,7 +97,7 @@ | |||
| 97 | 97 | ||
| 98 | ;; Dependencies: | 98 | ;; Dependencies: |
| 99 | 99 | ||
| 100 | (eval-when-compile (require 'cl)) | 100 | (eval-when-compile (require 'cl-lib)) |
| 101 | (require 'timer) | 101 | (require 'timer) |
| 102 | 102 | ||
| 103 | ;; Custom Group: | 103 | ;; Custom Group: |
| @@ -311,7 +311,7 @@ Hash key is a watch descriptor, hash value is the corresponding buffer.") | |||
| 311 | 311 | ||
| 312 | (defvar auto-revert-notify-watch-descriptor nil | 312 | (defvar auto-revert-notify-watch-descriptor nil |
| 313 | "The file watch descriptor active for the current buffer.") | 313 | "The file watch descriptor active for the current buffer.") |
| 314 | (make-variable-buffer-local 'auto-revert-notify-watch-descriptor) | 314 | (put 'auto-revert-notify-watch-descriptor 'permanent-local t) |
| 315 | 315 | ||
| 316 | (defvar auto-revert-notify-modified-p nil | 316 | (defvar auto-revert-notify-modified-p nil |
| 317 | "Non-nil when file has been modified on the file system. | 317 | "Non-nil when file has been modified on the file system. |
| @@ -527,17 +527,18 @@ will use an up-to-date value of `auto-revert-interval'" | |||
| 527 | (ignore-errors | 527 | (ignore-errors |
| 528 | ;; Check, that event is meant for us. | 528 | ;; Check, that event is meant for us. |
| 529 | ;; TODO: Filter events which stop watching, like `move' or `removed'. | 529 | ;; TODO: Filter events which stop watching, like `move' or `removed'. |
| 530 | (assert descriptor) | 530 | (cl-assert descriptor) |
| 531 | (when (featurep 'inotify) (assert (memq 'modify descriptor))) | 531 | (when (featurep 'inotify) (cl-assert (memq 'modify action))) |
| 532 | (when (featurep 'w32notify) (assert (eq 'modified descriptor))) | 532 | (when (featurep 'w32notify) (cl-assert (eq 'modified action))) |
| 533 | (assert (bufferp buffer)) | 533 | (cl-assert (bufferp buffer)) |
| 534 | (when (stringp file) | ||
| 535 | (assert (string-equal | ||
| 536 | (directory-file-name file) | ||
| 537 | (directory-file-name (buffer-file-name buffer))))) | ||
| 538 | |||
| 539 | ;; Mark buffer modified. | ||
| 540 | (with-current-buffer buffer | 534 | (with-current-buffer buffer |
| 535 | (when (and (stringp file) (stringp buffer-file-name)) | ||
| 536 | ;; w32notify returns the basename of the file without its | ||
| 537 | ;; leading directories; inotify returns its full absolute | ||
| 538 | ;; file name. | ||
| 539 | (cl-assert (file-equal-p file buffer-file-name))) | ||
| 540 | |||
| 541 | ;; Mark buffer modified. | ||
| 541 | (setq auto-revert-notify-modified-p t)))))) | 542 | (setq auto-revert-notify-modified-p t)))))) |
| 542 | 543 | ||
| 543 | (defun auto-revert-active-p () | 544 | (defun auto-revert-active-p () |
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 6f51be4b89b..c35e7650254 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el | |||
| @@ -435,9 +435,9 @@ when converting units." | |||
| 435 | (defcustom calc-highlight-selections-with-faces | 435 | (defcustom calc-highlight-selections-with-faces |
| 436 | nil | 436 | nil |
| 437 | "If non-nil, use a separate face to indicate selected sub-formulas. | 437 | "If non-nil, use a separate face to indicate selected sub-formulas. |
| 438 | If `calc-show-selections' is non-nil, then selected sub-formulas are shown | 438 | If option `calc-show-selections' is non-nil, then selected sub-formulas are |
| 439 | by displaying the rest of the formula in `calc-nonselected-face'. | 439 | shown by displaying the rest of the formula in `calc-nonselected-face'. |
| 440 | If `calc-show-selections' is nil, then selected sub-formulas are shown | 440 | If option `calc-show-selections' is nil, then selected sub-formulas are shown |
| 441 | by displaying the sub-formula in `calc-selected-face'." | 441 | by displaying the sub-formula in `calc-selected-face'." |
| 442 | :version "24.1" | 442 | :version "24.1" |
| 443 | :group 'calc | 443 | :group 'calc |
| @@ -1183,7 +1183,7 @@ Used by `calc-user-invocation'.") | |||
| 1183 | 1183 | ||
| 1184 | ;;;###autoload | 1184 | ;;;###autoload |
| 1185 | (defun calc-dispatch (&optional arg) | 1185 | (defun calc-dispatch (&optional arg) |
| 1186 | "Invoke the GNU Emacs Calculator. See `calc-dispatch-help' for details." | 1186 | "Invoke the GNU Emacs Calculator. See \\[calc-dispatch-help] for details." |
| 1187 | (interactive "P") | 1187 | (interactive "P") |
| 1188 | ; (sit-for echo-keystrokes) | 1188 | ; (sit-for echo-keystrokes) |
| 1189 | (condition-case err ; look for other keys bound to calc-dispatch | 1189 | (condition-case err ; look for other keys bound to calc-dispatch |
diff --git a/lisp/comint.el b/lisp/comint.el index 42ac08a9ecc..21bd732b43c 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1521,7 +1521,7 @@ Intended to be added to `isearch-mode-hook' in `comint-mode'." | |||
| 1521 | If there are no search errors, this function displays an overlay with | 1521 | If there are no search errors, this function displays an overlay with |
| 1522 | the Isearch prompt which replaces the original comint prompt. | 1522 | the Isearch prompt which replaces the original comint prompt. |
| 1523 | Otherwise, it displays the standard Isearch message returned from | 1523 | Otherwise, it displays the standard Isearch message returned from |
| 1524 | `isearch-message'." | 1524 | the function `isearch-message'." |
| 1525 | (if (not (and isearch-success (not isearch-error))) | 1525 | (if (not (and isearch-success (not isearch-error))) |
| 1526 | ;; Use standard function `isearch-message' when not in comint prompt, | 1526 | ;; Use standard function `isearch-message' when not in comint prompt, |
| 1527 | ;; or search fails, or has an error (like incomplete regexp). | 1527 | ;; or search fails, or has an error (like incomplete regexp). |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 4dba081322f..4cbd02a6e0d 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -469,8 +469,8 @@ STREAM or the value of `standard-input' may be: | |||
| 469 | 469 | ||
| 470 | This version, from Edebug, maybe instruments the expression. But the | 470 | This version, from Edebug, maybe instruments the expression. But the |
| 471 | STREAM must be the current buffer to do so. Whether it instruments is | 471 | STREAM must be the current buffer to do so. Whether it instruments is |
| 472 | also dependent on the values of `edebug-all-defs' and | 472 | also dependent on the values of the option `edebug-all-defs' and |
| 473 | `edebug-all-forms'." | 473 | the option `edebug-all-forms'." |
| 474 | (or stream (setq stream standard-input)) | 474 | (or stream (setq stream standard-input)) |
| 475 | (if (eq stream (current-buffer)) | 475 | (if (eq stream (current-buffer)) |
| 476 | (edebug-read-and-maybe-wrap-form) | 476 | (edebug-read-and-maybe-wrap-form) |
| @@ -492,8 +492,8 @@ similarly. Reinitialize the face according to `defface' specification. | |||
| 492 | 492 | ||
| 493 | With a prefix argument, instrument the code for Edebug. | 493 | With a prefix argument, instrument the code for Edebug. |
| 494 | 494 | ||
| 495 | Setting `edebug-all-defs' to a non-nil value reverses the meaning of | 495 | Setting option `edebug-all-defs' to a non-nil value reverses the meaning |
| 496 | the prefix argument. Code is then instrumented when this function is | 496 | of the prefix argument. Code is then instrumented when this function is |
| 497 | invoked without a prefix argument | 497 | invoked without a prefix argument |
| 498 | 498 | ||
| 499 | If acting on a `defun' for FUNCTION, and the function was instrumented, | 499 | If acting on a `defun' for FUNCTION, and the function was instrumented, |
diff --git a/lisp/emacs-lisp/trace.el b/lisp/emacs-lisp/trace.el index 7a9eb3e1b28..fb1b995be2b 100644 --- a/lisp/emacs-lisp/trace.el +++ b/lisp/emacs-lisp/trace.el | |||
| @@ -167,6 +167,8 @@ some global variables)." | |||
| 167 | (mapconcat 'char-to-string (make-string (1- level) ?|) " ") | 167 | (mapconcat 'char-to-string (make-string (1- level) ?|) " ") |
| 168 | (if (> level 1) " " "") | 168 | (if (> level 1) " " "") |
| 169 | level | 169 | level |
| 170 | ;; FIXME: Make it so we can click the function name to jump to its | ||
| 171 | ;; definition and/or untrace it. | ||
| 170 | (cons function args) | 172 | (cons function args) |
| 171 | context))) | 173 | context))) |
| 172 | 174 | ||
| @@ -275,16 +277,8 @@ To untrace a function, use `untrace-function' or `untrace-all'." | |||
| 275 | ;;;###autoload | 277 | ;;;###autoload |
| 276 | (defun trace-function-background (function &optional buffer context) | 278 | (defun trace-function-background (function &optional buffer context) |
| 277 | "Traces FUNCTION with trace output going quietly to BUFFER. | 279 | "Traces FUNCTION with trace output going quietly to BUFFER. |
| 278 | When this tracing is enabled, every call to FUNCTION writes | 280 | Like `trace-function-foreground' but without popping up the trace BUFFER or |
| 279 | a Lisp-style trace message (showing the arguments and return value) | 281 | changing the window configuration." |
| 280 | into BUFFER. This function generates advice to trace FUNCTION | ||
| 281 | and activates it together with any other advice there might be. | ||
| 282 | The trace output goes to BUFFER quietly, without changing | ||
| 283 | the window or buffer configuration. | ||
| 284 | |||
| 285 | BUFFER defaults to `trace-buffer'. | ||
| 286 | |||
| 287 | To untrace a function, use `untrace-function' or `untrace-all'." | ||
| 288 | (interactive (trace--read-args "Trace function in background: ")) | 282 | (interactive (trace--read-args "Trace function in background: ")) |
| 289 | (trace-function-internal function buffer t context)) | 283 | (trace-function-internal function buffer t context)) |
| 290 | 284 | ||
diff --git a/lisp/ffap.el b/lisp/ffap.el index dfb559f3f0d..c5b0784e5a2 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -321,7 +321,7 @@ disable FFAP most of the time." | |||
| 321 | "Last value returned by `ffap-next-guess'.") | 321 | "Last value returned by `ffap-next-guess'.") |
| 322 | 322 | ||
| 323 | (defvar ffap-string-at-point-region '(1 1) | 323 | (defvar ffap-string-at-point-region '(1 1) |
| 324 | "List (BEG END), last region returned by `ffap-string-at-point'.") | 324 | "List (BEG END), last region returned by the function `ffap-string-at-point'.") |
| 325 | 325 | ||
| 326 | (defun ffap-next-guess (&optional back lim) | 326 | (defun ffap-next-guess (&optional back lim) |
| 327 | "Move point to next file or URL, and return it as a string. | 327 | "Move point to next file or URL, and return it as a string. |
| @@ -346,7 +346,7 @@ Optional argument BACK says to search backwards. | |||
| 346 | Optional argument WRAP says to try wrapping around if necessary. | 346 | Optional argument WRAP says to try wrapping around if necessary. |
| 347 | Interactively: use a single prefix to search backwards, | 347 | Interactively: use a single prefix to search backwards, |
| 348 | double prefix to wrap forward, triple to wrap backwards. | 348 | double prefix to wrap forward, triple to wrap backwards. |
| 349 | Actual search is done by `ffap-next-guess'." | 349 | Actual search is done by the function `ffap-next-guess'." |
| 350 | (interactive | 350 | (interactive |
| 351 | (cdr (assq (prefix-numeric-value current-prefix-arg) | 351 | (cdr (assq (prefix-numeric-value current-prefix-arg) |
| 352 | '((1) (4 t) (16 nil t) (64 t t))))) | 352 | '((1) (4 t) (16 nil t) (64 t t))))) |
| @@ -1028,14 +1028,14 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered." | |||
| 1028 | "Alist of \(MODE CHARS BEG END\), where MODE is a symbol, | 1028 | "Alist of \(MODE CHARS BEG END\), where MODE is a symbol, |
| 1029 | possibly a major-mode name, or one of the symbol | 1029 | possibly a major-mode name, or one of the symbol |
| 1030 | `file', `url', `machine', and `nocolon'. | 1030 | `file', `url', `machine', and `nocolon'. |
| 1031 | `ffap-string-at-point' uses the data fields as follows: | 1031 | Function `ffap-string-at-point' uses the data fields as follows: |
| 1032 | 1. find a maximal string of CHARS around point, | 1032 | 1. find a maximal string of CHARS around point, |
| 1033 | 2. strip BEG chars before point from the beginning, | 1033 | 2. strip BEG chars before point from the beginning, |
| 1034 | 3. Strip END chars after point from the end.") | 1034 | 3. Strip END chars after point from the end.") |
| 1035 | 1035 | ||
| 1036 | (defvar ffap-string-at-point nil | 1036 | (defvar ffap-string-at-point nil |
| 1037 | ;; Added at suggestion of RHOGEE (for ff-paths), 7/24/95. | 1037 | ;; Added at suggestion of RHOGEE (for ff-paths), 7/24/95. |
| 1038 | "Last string returned by `ffap-string-at-point'.") | 1038 | "Last string returned by the function `ffap-string-at-point'.") |
| 1039 | 1039 | ||
| 1040 | (defun ffap-string-at-point (&optional mode) | 1040 | (defun ffap-string-at-point (&optional mode) |
| 1041 | "Return a string of characters from around point. | 1041 | "Return a string of characters from around point. |
| @@ -1043,7 +1043,8 @@ MODE (defaults to value of `major-mode') is a symbol used to look up string | |||
| 1043 | syntax parameters in `ffap-string-at-point-mode-alist'. | 1043 | syntax parameters in `ffap-string-at-point-mode-alist'. |
| 1044 | If MODE is not found, we use `file' instead of MODE. | 1044 | If MODE is not found, we use `file' instead of MODE. |
| 1045 | If the region is active, return a string from the region. | 1045 | If the region is active, return a string from the region. |
| 1046 | Sets `ffap-string-at-point' and `ffap-string-at-point-region'." | 1046 | Sets the variable `ffap-string-at-point' and the variable |
| 1047 | `ffap-string-at-point-region'." | ||
| 1047 | (let* ((args | 1048 | (let* ((args |
| 1048 | (cdr | 1049 | (cdr |
| 1049 | (or (assq (or mode major-mode) ffap-string-at-point-mode-alist) | 1050 | (or (assq (or mode major-mode) ffap-string-at-point-mode-alist) |
| @@ -1068,7 +1069,8 @@ Sets `ffap-string-at-point' and `ffap-string-at-point-region'." | |||
| 1068 | 1069 | ||
| 1069 | (defun ffap-string-around () | 1070 | (defun ffap-string-around () |
| 1070 | ;; Sometimes useful to decide how to treat a string. | 1071 | ;; Sometimes useful to decide how to treat a string. |
| 1071 | "Return string of two chars around last `ffap-string-at-point'. | 1072 | "Return string of two chars around last result of function |
| 1073 | `ffap-string-at-point'. | ||
| 1072 | Assumes the buffer has not changed." | 1074 | Assumes the buffer has not changed." |
| 1073 | (save-excursion | 1075 | (save-excursion |
| 1074 | (format "%c%c" | 1076 | (format "%c%c" |
| @@ -1082,7 +1084,7 @@ Assumes the buffer has not changed." | |||
| 1082 | 1084 | ||
| 1083 | (defun ffap-copy-string-as-kill (&optional mode) | 1085 | (defun ffap-copy-string-as-kill (&optional mode) |
| 1084 | ;; Requested by MCOOK. Useful? | 1086 | ;; Requested by MCOOK. Useful? |
| 1085 | "Call `ffap-string-at-point', and copy result to `kill-ring'." | 1087 | "Call function `ffap-string-at-point', and copy result to `kill-ring'." |
| 1086 | (interactive) | 1088 | (interactive) |
| 1087 | (let ((str (ffap-string-at-point mode))) | 1089 | (let ((str (ffap-string-at-point mode))) |
| 1088 | (if (equal "" str) | 1090 | (if (equal "" str) |
| @@ -1364,7 +1366,7 @@ which may actually result in an URL rather than a filename." | |||
| 1364 | :version "22.1") | 1366 | :version "22.1") |
| 1365 | 1367 | ||
| 1366 | (defvar ffap-highlight-overlay nil | 1368 | (defvar ffap-highlight-overlay nil |
| 1367 | "Overlay used by `ffap-highlight'.") | 1369 | "Overlay used by function `ffap-highlight'.") |
| 1368 | 1370 | ||
| 1369 | (defun ffap-highlight (&optional remove) | 1371 | (defun ffap-highlight (&optional remove) |
| 1370 | "If `ffap-highlight' is set, highlight the guess in this buffer. | 1372 | "If `ffap-highlight' is set, highlight the guess in this buffer. |
| @@ -1734,7 +1736,7 @@ Only intended for interactive use." | |||
| 1734 | (call-interactively 'ffap))) | 1736 | (call-interactively 'ffap))) |
| 1735 | 1737 | ||
| 1736 | (defun ffap-literally () | 1738 | (defun ffap-literally () |
| 1737 | "Like `ffap' and `find-file-literally'. | 1739 | "Like `ffap' and command `find-file-literally'. |
| 1738 | Only intended for interactive use." | 1740 | Only intended for interactive use." |
| 1739 | (interactive) | 1741 | (interactive) |
| 1740 | (let ((ffap-file-finder 'find-file-literally)) | 1742 | (let ((ffap-file-finder 'find-file-literally)) |
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 7a2577eabbb..f714eaab233 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -469,7 +469,7 @@ optimized.") | |||
| 469 | "Alist of additional `font-lock-keywords' elements for major modes. | 469 | "Alist of additional `font-lock-keywords' elements for major modes. |
| 470 | 470 | ||
| 471 | Each element has the form (MODE KEYWORDS . HOW). | 471 | Each element has the form (MODE KEYWORDS . HOW). |
| 472 | `font-lock-set-defaults' adds the elements in the list KEYWORDS to | 472 | Function `font-lock-set-defaults' adds the elements in the list KEYWORDS to |
| 473 | `font-lock-keywords' when Font Lock is turned on in major mode MODE. | 473 | `font-lock-keywords' when Font Lock is turned on in major mode MODE. |
| 474 | 474 | ||
| 475 | If HOW is nil, KEYWORDS are added at the beginning of | 475 | If HOW is nil, KEYWORDS are added at the beginning of |
| @@ -484,7 +484,7 @@ This is normally set via `font-lock-add-keywords' and | |||
| 484 | (defvar font-lock-removed-keywords-alist nil | 484 | (defvar font-lock-removed-keywords-alist nil |
| 485 | "Alist of `font-lock-keywords' elements to be removed for major modes. | 485 | "Alist of `font-lock-keywords' elements to be removed for major modes. |
| 486 | 486 | ||
| 487 | Each element has the form (MODE . KEYWORDS). `font-lock-set-defaults' | 487 | Each element has the form (MODE . KEYWORDS). Function `font-lock-set-defaults' |
| 488 | removes the elements in the list KEYWORDS from `font-lock-keywords' | 488 | removes the elements in the list KEYWORDS from `font-lock-keywords' |
| 489 | when Font Lock is turned on in major mode MODE. | 489 | when Font Lock is turned on in major mode MODE. |
| 490 | 490 | ||
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0cea790792f..44dbf060e49 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-01-11 Aaron S. Hawley <Aaron.Hawley@vtinfo.com> | ||
| 2 | |||
| 3 | * gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string | ||
| 4 | cross-reference(s). | ||
| 5 | |||
| 6 | * gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string | ||
| 7 | cross-reference(s). | ||
| 8 | |||
| 1 | 2013-01-11 Dmitry Antipov <dmantipov@yandex.ru> | 9 | 2013-01-11 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 10 | ||
| 3 | * gnus-art.el (gnus-mime-display-security): Use point-min-marker | 11 | * gnus-art.el (gnus-mime-display-security): Use point-min-marker |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 42cc284a0ad..aa8b6bf2703 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -110,7 +110,7 @@ ask the servers (primary, secondary, and archive servers) to list new | |||
| 110 | groups since the last time it checked: | 110 | groups since the last time it checked: |
| 111 | 1. This variable is `ask-server'. | 111 | 1. This variable is `ask-server'. |
| 112 | 2. This variable is a list of select methods (see below). | 112 | 2. This variable is a list of select methods (see below). |
| 113 | 3. `gnus-read-active-file' is nil or `some'. | 113 | 3. Option `gnus-read-active-file' is nil or `some'. |
| 114 | 4. A prefix argument is given to `gnus-find-new-newsgroups' interactively. | 114 | 4. A prefix argument is given to `gnus-find-new-newsgroups' interactively. |
| 115 | 115 | ||
| 116 | Thus, if this variable is `ask-server' or a list of select methods or | 116 | Thus, if this variable is `ask-server' or a list of select methods or |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 49b7e5930f6..14597f031e1 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -1167,7 +1167,7 @@ using `gnus-ignored-from-addresses'." | |||
| 1167 | 1167 | ||
| 1168 | (defcustom gnus-summary-newsgroup-prefix "=> " | 1168 | (defcustom gnus-summary-newsgroup-prefix "=> " |
| 1169 | "*String prefixed to the Newsgroup field in the summary | 1169 | "*String prefixed to the Newsgroup field in the summary |
| 1170 | line when using `gnus-ignored-from-addresses'." | 1170 | line when using the option `gnus-ignored-from-addresses'." |
| 1171 | :version "22.1" | 1171 | :version "22.1" |
| 1172 | :group 'gnus-summary | 1172 | :group 'gnus-summary |
| 1173 | :type 'string) | 1173 | :type 'string) |
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 662f431d3c3..b5aca1a4445 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -322,7 +322,7 @@ Commands: | |||
| 322 | 322 | ||
| 323 | (defconst help-xref-symbol-regexp | 323 | (defconst help-xref-symbol-regexp |
| 324 | (purecopy (concat "\\(\\<\\(\\(variable\\|option\\)\\|" ; Link to var | 324 | (purecopy (concat "\\(\\<\\(\\(variable\\|option\\)\\|" ; Link to var |
| 325 | "\\(function\\|command\\)\\|" ; Link to function | 325 | "\\(function\\|command\\|call\\)\\|" ; Link to function |
| 326 | "\\(face\\)\\|" ; Link to face | 326 | "\\(face\\)\\|" ; Link to face |
| 327 | "\\(symbol\\|program\\|property\\)\\|" ; Don't link | 327 | "\\(symbol\\|program\\|property\\)\\|" ; Don't link |
| 328 | "\\(source \\(?:code \\)?\\(?:of\\|for\\)\\)\\)" | 328 | "\\(source \\(?:code \\)?\\(?:of\\|for\\)\\)\\)" |
diff --git a/lisp/info.el b/lisp/info.el index 48ad00c9f28..e230ed0f82c 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -4313,7 +4313,7 @@ If the element is just a file name, the file name also serves as the prefix.") | |||
| 4313 | The `info-file' property of COMMAND says which Info manual to search. | 4313 | The `info-file' property of COMMAND says which Info manual to search. |
| 4314 | If COMMAND has no property, the variable `Info-file-list-for-emacs' | 4314 | If COMMAND has no property, the variable `Info-file-list-for-emacs' |
| 4315 | defines heuristics for which Info manual to try. | 4315 | defines heuristics for which Info manual to try. |
| 4316 | The locations are of the format used in `Info-history', i.e. | 4316 | The locations are of the format used in the variable `Info-history', i.e. |
| 4317 | \(FILENAME NODENAME BUFFERPOS), where BUFFERPOS is the line number | 4317 | \(FILENAME NODENAME BUFFERPOS), where BUFFERPOS is the line number |
| 4318 | in the first element of the returned list (which is treated specially in | 4318 | in the first element of the returned list (which is treated specially in |
| 4319 | `Info-goto-emacs-command-node'), and 0 for the rest elements of a list." | 4319 | `Info-goto-emacs-command-node'), and 0 for the rest elements of a list." |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 6fa589a9622..995df2fb9a7 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -891,7 +891,7 @@ or one is an alias of the other." | |||
| 891 | (and (vectorp eol-type-1) (vectorp eol-type-2))))))) | 891 | (and (vectorp eol-type-1) (vectorp eol-type-2))))))) |
| 892 | 892 | ||
| 893 | (defun add-to-coding-system-list (coding-system) | 893 | (defun add-to-coding-system-list (coding-system) |
| 894 | "Add CODING-SYSTEM to `coding-system-list' while keeping it sorted." | 894 | "Add CODING-SYSTEM to variable `coding-system-list' while keeping it sorted." |
| 895 | (if (or (null coding-system-list) | 895 | (if (or (null coding-system-list) |
| 896 | (coding-system-lessp coding-system (car coding-system-list))) | 896 | (coding-system-lessp coding-system (car coding-system-list))) |
| 897 | (setq coding-system-list (cons coding-system coding-system-list)) | 897 | (setq coding-system-list (cons coding-system coding-system-list)) |
diff --git a/lisp/isearch.el b/lisp/isearch.el index b13881b208b..e16e3840d0d 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -176,7 +176,7 @@ is non-nil if the user quits the search.") | |||
| 176 | 176 | ||
| 177 | (defvar isearch-message-function nil | 177 | (defvar isearch-message-function nil |
| 178 | "Function to call to display the search prompt. | 178 | "Function to call to display the search prompt. |
| 179 | If nil, use `isearch-message'.") | 179 | If nil, use function `isearch-message'.") |
| 180 | 180 | ||
| 181 | (defvar isearch-wrap-function nil | 181 | (defvar isearch-wrap-function nil |
| 182 | "Function to call to wrap the search when search is failed. | 182 | "Function to call to wrap the search when search is failed. |
| @@ -1101,7 +1101,7 @@ nonincremental search instead via `isearch-edit-string'." | |||
| 1101 | 1101 | ||
| 1102 | (defun isearch-fail-pos (&optional msg) | 1102 | (defun isearch-fail-pos (&optional msg) |
| 1103 | "Return position of first mismatch in search string, or nil if none. | 1103 | "Return position of first mismatch in search string, or nil if none. |
| 1104 | If MSG is non-nil, use `isearch-message', otherwise `isearch-string'." | 1104 | If MSG is non-nil, use variable `isearch-message', otherwise `isearch-string'." |
| 1105 | (let ((cmds isearch-cmds) | 1105 | (let ((cmds isearch-cmds) |
| 1106 | (curr-msg (if msg isearch-message isearch-string)) | 1106 | (curr-msg (if msg isearch-message isearch-string)) |
| 1107 | succ-msg) | 1107 | succ-msg) |
diff --git a/lisp/misearch.el b/lisp/misearch.el index 2584f8df77b..0c4cd4ea323 100644 --- a/lisp/misearch.el +++ b/lisp/misearch.el | |||
| @@ -73,7 +73,7 @@ end of the search space). | |||
| 73 | The first argument of this function is the current buffer where the | 73 | The first argument of this function is the current buffer where the |
| 74 | search is currently searching. It defines the base buffer relative to | 74 | search is currently searching. It defines the base buffer relative to |
| 75 | which this function should find the next buffer. When the isearch | 75 | which this function should find the next buffer. When the isearch |
| 76 | direction is backward (when `isearch-forward' is nil), this function | 76 | direction is backward (when option `isearch-forward' is nil), this function |
| 77 | should return the previous buffer to search. | 77 | should return the previous buffer to search. |
| 78 | 78 | ||
| 79 | If the second argument of this function WRAP is non-nil, then it | 79 | If the second argument of this function WRAP is non-nil, then it |
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index d55feaa3c1a..bcb5f721ae8 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el | |||
| @@ -1206,7 +1206,8 @@ changed with `comment-style'." | |||
| 1206 | (defun comment-box (beg end &optional arg) | 1206 | (defun comment-box (beg end &optional arg) |
| 1207 | "Comment out the BEG .. END region, putting it inside a box. | 1207 | "Comment out the BEG .. END region, putting it inside a box. |
| 1208 | The numeric prefix ARG specifies how many characters to add to begin- and | 1208 | The numeric prefix ARG specifies how many characters to add to begin- and |
| 1209 | end- comment markers additionally to what `comment-add' already specifies." | 1209 | end- comment markers additionally to what variable `comment-add' already |
| 1210 | specifies." | ||
| 1210 | (interactive "*r\np") | 1211 | (interactive "*r\np") |
| 1211 | (comment-normalize-vars) | 1212 | (comment-normalize-vars) |
| 1212 | (let ((comment-style (if (cadr (assoc comment-style comment-styles)) | 1213 | (let ((comment-style (if (cadr (assoc comment-style comment-styles)) |
diff --git a/lisp/printing.el b/lisp/printing.el index a8eed066a15..bf50aa8f679 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -1800,7 +1800,7 @@ The alist element has the form: | |||
| 1800 | Where: | 1800 | Where: |
| 1801 | 1801 | ||
| 1802 | SYMBOL It's a symbol to identify a text printer. It's for | 1802 | SYMBOL It's a symbol to identify a text printer. It's for |
| 1803 | `pr-txt-name' variable setting and for menu selection. | 1803 | setting option `pr-txt-name' and for menu selection. |
| 1804 | Examples: | 1804 | Examples: |
| 1805 | 'prt_06a | 1805 | 'prt_06a |
| 1806 | 'my_printer | 1806 | 'my_printer |
| @@ -1951,7 +1951,7 @@ The alist element has the form: | |||
| 1951 | Where: | 1951 | Where: |
| 1952 | 1952 | ||
| 1953 | SYMBOL It's a symbol to identify a PostScript printer. It's for | 1953 | SYMBOL It's a symbol to identify a PostScript printer. It's for |
| 1954 | `pr-ps-name' variable setting and for menu selection. | 1954 | setting option `pr-ps-name' and for menu selection. |
| 1955 | Examples: | 1955 | Examples: |
| 1956 | 'prt_06a | 1956 | 'prt_06a |
| 1957 | 'my_printer | 1957 | 'my_printer |
| @@ -2935,9 +2935,9 @@ INHERITS Specify the inheritance for SYMBOL group. It's a symbol name | |||
| 2935 | 2935 | ||
| 2936 | The example above has two setting groups: no-duplex and | 2936 | The example above has two setting groups: no-duplex and |
| 2937 | no-duplex-and-landscape. When setting no-duplex is activated | 2937 | no-duplex-and-landscape. When setting no-duplex is activated |
| 2938 | through `inherits-from:' (see `pr-ps-utility', `pr-mode-alist' | 2938 | through `inherits-from:' (see option `pr-ps-utility', |
| 2939 | and `pr-ps-printer-alist'), the variables pr-file-duplex and | 2939 | `pr-mode-alist' and `pr-ps-printer-alist'), the variables |
| 2940 | pr-file-tumble are both set to nil. | 2940 | pr-file-duplex and pr-file-tumble are both set to nil. |
| 2941 | 2941 | ||
| 2942 | Now when setting no-duplex-and-landscape is activated through | 2942 | Now when setting no-duplex-and-landscape is activated through |
| 2943 | `inherits-from:', the variable pr-file-landscape is set to nil | 2943 | `inherits-from:', the variable pr-file-landscape is set to nil |
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index 376edcdc76b..f6c47f5bb4d 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el | |||
| @@ -2049,7 +2049,7 @@ styles specified by `c-doc-comment-style'.") | |||
| 2049 | 2049 | ||
| 2050 | (defconst c-font-lock-keywords-3 (c-lang-const c-matchers-3 c) | 2050 | (defconst c-font-lock-keywords-3 (c-lang-const c-matchers-3 c) |
| 2051 | "Accurate normal font locking for C mode. | 2051 | "Accurate normal font locking for C mode. |
| 2052 | Like `c-font-lock-keywords-2' but detects declarations in a more | 2052 | Like the variable `c-font-lock-keywords-2' but detects declarations in a more |
| 2053 | accurate way that works in most cases for arbitrary types without the | 2053 | accurate way that works in most cases for arbitrary types without the |
| 2054 | need for `c-font-lock-extra-types'.") | 2054 | need for `c-font-lock-extra-types'.") |
| 2055 | 2055 | ||
| @@ -2207,7 +2207,7 @@ styles specified by `c-doc-comment-style'.") | |||
| 2207 | 2207 | ||
| 2208 | (defconst c++-font-lock-keywords-3 (c-lang-const c-matchers-3 c++) | 2208 | (defconst c++-font-lock-keywords-3 (c-lang-const c-matchers-3 c++) |
| 2209 | "Accurate normal font locking for C++ mode. | 2209 | "Accurate normal font locking for C++ mode. |
| 2210 | Like `c++-font-lock-keywords-2' but detects declarations in a more | 2210 | Like the variable `c++-font-lock-keywords-2' but detects declarations in a more |
| 2211 | accurate way that works in most cases for arbitrary types without the | 2211 | accurate way that works in most cases for arbitrary types without the |
| 2212 | need for `c++-font-lock-extra-types'.") | 2212 | need for `c++-font-lock-extra-types'.") |
| 2213 | 2213 | ||
| @@ -2313,7 +2313,7 @@ comment styles specified by `c-doc-comment-style'.") | |||
| 2313 | 2313 | ||
| 2314 | (defconst objc-font-lock-keywords-3 (c-lang-const c-matchers-3 objc) | 2314 | (defconst objc-font-lock-keywords-3 (c-lang-const c-matchers-3 objc) |
| 2315 | "Accurate normal font locking for Objective-C mode. | 2315 | "Accurate normal font locking for Objective-C mode. |
| 2316 | Like `objc-font-lock-keywords-2' but detects declarations in a more | 2316 | Like the variable `objc-font-lock-keywords-2' but detects declarations in a more |
| 2317 | accurate way that works in most cases for arbitrary types without the | 2317 | accurate way that works in most cases for arbitrary types without the |
| 2318 | need for `objc-font-lock-extra-types'.") | 2318 | need for `objc-font-lock-extra-types'.") |
| 2319 | 2319 | ||
| @@ -2356,7 +2356,7 @@ comment styles specified by `c-doc-comment-style'.") | |||
| 2356 | 2356 | ||
| 2357 | (defconst java-font-lock-keywords-3 (c-lang-const c-matchers-3 java) | 2357 | (defconst java-font-lock-keywords-3 (c-lang-const c-matchers-3 java) |
| 2358 | "Accurate normal font locking for Java mode. | 2358 | "Accurate normal font locking for Java mode. |
| 2359 | Like `java-font-lock-keywords-2' but detects declarations in a more | 2359 | Like variable `java-font-lock-keywords-2' but detects declarations in a more |
| 2360 | accurate way that works in most cases for arbitrary types without the | 2360 | accurate way that works in most cases for arbitrary types without the |
| 2361 | need for `java-font-lock-extra-types'.") | 2361 | need for `java-font-lock-extra-types'.") |
| 2362 | 2362 | ||
| @@ -2389,7 +2389,7 @@ styles specified by `c-doc-comment-style'.") | |||
| 2389 | 2389 | ||
| 2390 | (defconst idl-font-lock-keywords-3 (c-lang-const c-matchers-3 idl) | 2390 | (defconst idl-font-lock-keywords-3 (c-lang-const c-matchers-3 idl) |
| 2391 | "Accurate normal font locking for CORBA IDL mode. | 2391 | "Accurate normal font locking for CORBA IDL mode. |
| 2392 | Like `idl-font-lock-keywords-2' but detects declarations in a more | 2392 | Like the variable `idl-font-lock-keywords-2' but detects declarations in a more |
| 2393 | accurate way that works in most cases for arbitrary types without the | 2393 | accurate way that works in most cases for arbitrary types without the |
| 2394 | need for `idl-font-lock-extra-types'.") | 2394 | need for `idl-font-lock-extra-types'.") |
| 2395 | 2395 | ||
| @@ -2422,7 +2422,7 @@ comment styles specified by `c-doc-comment-style'.") | |||
| 2422 | 2422 | ||
| 2423 | (defconst pike-font-lock-keywords-3 (c-lang-const c-matchers-3 pike) | 2423 | (defconst pike-font-lock-keywords-3 (c-lang-const c-matchers-3 pike) |
| 2424 | "Accurate normal font locking for Pike mode. | 2424 | "Accurate normal font locking for Pike mode. |
| 2425 | Like `pike-font-lock-keywords-2' but detects declarations in a more | 2425 | Like the variable `pike-font-lock-keywords-2' but detects declarations in a more |
| 2426 | accurate way that works in most cases for arbitrary types without the | 2426 | accurate way that works in most cases for arbitrary types without the |
| 2427 | need for `pike-font-lock-extra-types'.") | 2427 | need for `pike-font-lock-extra-types'.") |
| 2428 | 2428 | ||
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f6c43e2c392..4e1cd4a24e3 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1427,8 +1427,9 @@ and move to the source code that caused it. | |||
| 1427 | If optional second arg COMINT is t the buffer will be in Comint mode with | 1427 | If optional second arg COMINT is t the buffer will be in Comint mode with |
| 1428 | `compilation-shell-minor-mode'. | 1428 | `compilation-shell-minor-mode'. |
| 1429 | 1429 | ||
| 1430 | Interactively, prompts for the command if `compilation-read-command' is | 1430 | Interactively, prompts for the command if the variable |
| 1431 | non-nil; otherwise uses `compile-command'. With prefix arg, always prompts. | 1431 | `compilation-read-command' is non-nil; otherwise uses`compile-command'. |
| 1432 | With prefix arg, always prompts. | ||
| 1432 | Additionally, with universal prefix arg, compilation buffer will be in | 1433 | Additionally, with universal prefix arg, compilation buffer will be in |
| 1433 | comint mode, i.e. interactive. | 1434 | comint mode, i.e. interactive. |
| 1434 | 1435 | ||
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 81dc31792c3..92f9447652e 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -199,7 +199,8 @@ Pop back to the last location with \\[negative-argument] \\[find-tag].") | |||
| 199 | 199 | ||
| 200 | (defvar tags-table-files nil | 200 | (defvar tags-table-files nil |
| 201 | "List of file names covered by current tags table. | 201 | "List of file names covered by current tags table. |
| 202 | nil means it has not yet been computed; use `tags-table-files' to do so.") | 202 | nil means it has not yet been computed; |
| 203 | use function `tags-table-files' to do so.") | ||
| 203 | 204 | ||
| 204 | (defvar tags-completion-table nil | 205 | (defvar tags-completion-table nil |
| 205 | "Obarray of tag names defined in current tags table.") | 206 | "Obarray of tag names defined in current tags table.") |
| @@ -224,7 +225,7 @@ of the format-parsing tags function variables if successful.") | |||
| 224 | One optional argument, a boolean specifying to return complete path (nil) or | 225 | One optional argument, a boolean specifying to return complete path (nil) or |
| 225 | relative path (non-nil).") | 226 | relative path (non-nil).") |
| 226 | (defvar tags-table-files-function nil | 227 | (defvar tags-table-files-function nil |
| 227 | "Function to do the work of `tags-table-files' (which see).") | 228 | "Function to do the work of function `tags-table-files' (which see).") |
| 228 | (defvar tags-completion-table-function nil | 229 | (defvar tags-completion-table-function nil |
| 229 | "Function to build the `tags-completion-table'.") | 230 | "Function to build the `tags-completion-table'.") |
| 230 | (defvar snarf-tag-function nil | 231 | (defvar snarf-tag-function nil |
| @@ -251,7 +252,7 @@ One argument, the tag info returned by `snarf-tag-function'.") | |||
| 251 | (defvar tags-apropos-function nil | 252 | (defvar tags-apropos-function nil |
| 252 | "Function to do the work of `tags-apropos' (which see).") | 253 | "Function to do the work of `tags-apropos' (which see).") |
| 253 | (defvar tags-included-tables-function nil | 254 | (defvar tags-included-tables-function nil |
| 254 | "Function to do the work of `tags-included-tables' (which see).") | 255 | "Function to do the work of function `tags-included-tables' (which see).") |
| 255 | (defvar verify-tags-table-function nil | 256 | (defvar verify-tags-table-function nil |
| 256 | "Function to return t if current buffer contains valid tags file.") | 257 | "Function to return t if current buffer contains valid tags file.") |
| 257 | 258 | ||
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index fc3d336cf99..90c7cfc5008 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -607,12 +607,12 @@ executable followed by command-line options. The command-line | |||
| 607 | options should include \"-i=mi\" to use gdb's MI text interface. | 607 | options should include \"-i=mi\" to use gdb's MI text interface. |
| 608 | Note that the old \"--annotate\" option is no longer supported. | 608 | Note that the old \"--annotate\" option is no longer supported. |
| 609 | 609 | ||
| 610 | If `gdb-many-windows' is nil (the default value) then gdb just | 610 | If option `gdb-many-windows' is nil (the default value) then gdb just |
| 611 | pops up the GUD buffer unless `gdb-show-main' is t. In this case | 611 | pops up the GUD buffer unless `gdb-show-main' is t. In this case |
| 612 | it starts with two windows: one displaying the GUD buffer and the | 612 | it starts with two windows: one displaying the GUD buffer and the |
| 613 | other with the source file with the main routine of the inferior. | 613 | other with the source file with the main routine of the inferior. |
| 614 | 614 | ||
| 615 | If `gdb-many-windows' is t, regardless of the value of | 615 | If option `gdb-many-windows' is t, regardless of the value of |
| 616 | `gdb-show-main', the layout below will appear. Keybindings are | 616 | `gdb-show-main', the layout below will appear. Keybindings are |
| 617 | shown in some of the buffers. | 617 | shown in some of the buffers. |
| 618 | 618 | ||
| @@ -4069,7 +4069,7 @@ window is dedicated." | |||
| 4069 | (set-window-dedicated-p window t)) | 4069 | (set-window-dedicated-p window t)) |
| 4070 | 4070 | ||
| 4071 | (defun gdb-setup-windows () | 4071 | (defun gdb-setup-windows () |
| 4072 | "Layout the window pattern for `gdb-many-windows'." | 4072 | "Layout the window pattern for option `gdb-many-windows'." |
| 4073 | (gdb-get-buffer-create 'gdb-locals-buffer) | 4073 | (gdb-get-buffer-create 'gdb-locals-buffer) |
| 4074 | (gdb-get-buffer-create 'gdb-stack-buffer) | 4074 | (gdb-get-buffer-create 'gdb-stack-buffer) |
| 4075 | (gdb-get-buffer-create 'gdb-breakpoints-buffer) | 4075 | (gdb-get-buffer-create 'gdb-breakpoints-buffer) |
| @@ -4120,7 +4120,7 @@ of the debugged program. Non-nil means display the layout shown for | |||
| 4120 | 4120 | ||
| 4121 | (defun gdb-restore-windows () | 4121 | (defun gdb-restore-windows () |
| 4122 | "Restore the basic arrangement of windows used by gdb. | 4122 | "Restore the basic arrangement of windows used by gdb. |
| 4123 | This arrangement depends on the value of `gdb-many-windows'." | 4123 | This arrangement depends on the value of option `gdb-many-windows'." |
| 4124 | (interactive) | 4124 | (interactive) |
| 4125 | (switch-to-buffer gud-comint-buffer) ;Select the right window and frame. | 4125 | (switch-to-buffer gud-comint-buffer) ;Select the right window and frame. |
| 4126 | (delete-other-windows) | 4126 | (delete-other-windows) |
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 683b3927ae3..96e6039a8c2 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -1680,12 +1680,15 @@ This performs fontification according to `js--class-styles'." | |||
| 1680 | "each")) | 1680 | "each")) |
| 1681 | "Regexp matching keywords optionally followed by an opening brace.") | 1681 | "Regexp matching keywords optionally followed by an opening brace.") |
| 1682 | 1682 | ||
| 1683 | (defconst js--declaration-keyword-re | ||
| 1684 | (regexp-opt '("var" "let" "const") 'words) | ||
| 1685 | "Regular expression matching variable declaration keywords.") | ||
| 1686 | |||
| 1683 | (defconst js--indent-operator-re | 1687 | (defconst js--indent-operator-re |
| 1684 | (concat "[-+*/%<>=&^|?:.]\\([^-+*/]\\|$\\)\\|" | 1688 | (concat "[-+*/%<>=&^|?:.]\\([^-+*/]\\|$\\)\\|" |
| 1685 | (js--regexp-opt-symbol '("in" "instanceof"))) | 1689 | (js--regexp-opt-symbol '("in" "instanceof"))) |
| 1686 | "Regexp matching operators that affect indentation of continued expressions.") | 1690 | "Regexp matching operators that affect indentation of continued expressions.") |
| 1687 | 1691 | ||
| 1688 | |||
| 1689 | (defun js--looking-at-operator-p () | 1692 | (defun js--looking-at-operator-p () |
| 1690 | "Return non-nil if point is on a JavaScript operator, other than a comma." | 1693 | "Return non-nil if point is on a JavaScript operator, other than a comma." |
| 1691 | (save-match-data | 1694 | (save-match-data |
| @@ -1764,6 +1767,37 @@ nil." | |||
| 1764 | (list (cons 'c js-comment-lineup-func)))) | 1767 | (list (cons 'c js-comment-lineup-func)))) |
| 1765 | (c-get-syntactic-indentation (list (cons symbol anchor))))) | 1768 | (c-get-syntactic-indentation (list (cons symbol anchor))))) |
| 1766 | 1769 | ||
| 1770 | (defun js--multi-line-declaration-indentation () | ||
| 1771 | "Helper function for `js--proper-indentation'. | ||
| 1772 | Return the proper indentation of the current line if it belongs to a declaration | ||
| 1773 | statement spanning multiple lines; otherwise, return nil." | ||
| 1774 | (let (at-opening-bracket) | ||
| 1775 | (save-excursion | ||
| 1776 | (back-to-indentation) | ||
| 1777 | (when (not (looking-at js--declaration-keyword-re)) | ||
| 1778 | (when (looking-at js--indent-operator-re) | ||
| 1779 | (goto-char (match-end 0))) | ||
| 1780 | (while (and (not at-opening-bracket) | ||
| 1781 | (not (bobp)) | ||
| 1782 | (let ((pos (point))) | ||
| 1783 | (save-excursion | ||
| 1784 | (js--backward-syntactic-ws) | ||
| 1785 | (or (eq (char-before) ?,) | ||
| 1786 | (and (not (eq (char-before) ?\;)) | ||
| 1787 | (prog2 | ||
| 1788 | (skip-chars-backward "[[:punct:]]") | ||
| 1789 | (looking-at js--indent-operator-re) | ||
| 1790 | (js--backward-syntactic-ws)) | ||
| 1791 | (not (eq (char-before) ?\;))) | ||
| 1792 | (and (>= pos (point-at-bol)) | ||
| 1793 | (<= pos (point-at-eol))))))) | ||
| 1794 | (condition-case err | ||
| 1795 | (backward-sexp) | ||
| 1796 | (scan-error (setq at-opening-bracket t)))) | ||
| 1797 | (when (looking-at js--declaration-keyword-re) | ||
| 1798 | (goto-char (match-end 0)) | ||
| 1799 | (1+ (current-column))))))) | ||
| 1800 | |||
| 1767 | (defun js--proper-indentation (parse-status) | 1801 | (defun js--proper-indentation (parse-status) |
| 1768 | "Return the proper indentation for the current line." | 1802 | "Return the proper indentation for the current line." |
| 1769 | (save-excursion | 1803 | (save-excursion |
| @@ -1772,6 +1806,7 @@ nil." | |||
| 1772 | (js--get-c-offset 'c (nth 8 parse-status))) | 1806 | (js--get-c-offset 'c (nth 8 parse-status))) |
| 1773 | ((nth 8 parse-status) 0) ; inside string | 1807 | ((nth 8 parse-status) 0) ; inside string |
| 1774 | ((js--ctrl-statement-indentation)) | 1808 | ((js--ctrl-statement-indentation)) |
| 1809 | ((js--multi-line-declaration-indentation)) | ||
| 1775 | ((eq (char-after) ?#) 0) | 1810 | ((eq (char-after) ?#) 0) |
| 1776 | ((save-excursion (js--beginning-of-macro)) 4) | 1811 | ((save-excursion (js--beginning-of-macro)) 4) |
| 1777 | ((nth 1 parse-status) | 1812 | ((nth 1 parse-status) |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 99f22df4107..f7c03c2de85 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -1959,13 +1959,13 @@ Valid values are: | |||
| 1959 | 1959 | ||
| 1960 | Any other value is treated as nil. | 1960 | Any other value is treated as nil. |
| 1961 | 1961 | ||
| 1962 | If you set `ps-selected-pages' (see it for documentation), first the pages are | 1962 | If you set option `ps-selected-pages', first the pages are |
| 1963 | filtered by `ps-selected-pages' and then by `ps-even-or-odd-pages'. For | 1963 | filtered by option `ps-selected-pages' and then by `ps-even-or-odd-pages'. |
| 1964 | example, if we have: | 1964 | For example, if we have: |
| 1965 | 1965 | ||
| 1966 | (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20)) | 1966 | (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20)) |
| 1967 | 1967 | ||
| 1968 | Combining with `ps-even-or-odd-pages' and `ps-n-up-printing', we have: | 1968 | Combining with `ps-even-or-odd-pages' and option `ps-n-up-printing', we have: |
| 1969 | 1969 | ||
| 1970 | `ps-n-up-printing' = 1: | 1970 | `ps-n-up-printing' = 1: |
| 1971 | `ps-even-or-odd-pages' PAGES PRINTED | 1971 | `ps-even-or-odd-pages' PAGES PRINTED |
| @@ -3566,9 +3566,9 @@ Use the command `ps-despool' to send the spooled images to the printer." | |||
| 3566 | ;;;###autoload | 3566 | ;;;###autoload |
| 3567 | (defun ps-spool-buffer-with-faces () | 3567 | (defun ps-spool-buffer-with-faces () |
| 3568 | "Generate and spool a PostScript image of the buffer. | 3568 | "Generate and spool a PostScript image of the buffer. |
| 3569 | Like `ps-spool-buffer', but includes font, color, and underline information in | 3569 | Like the command `ps-spool-buffer', but includes font, color, and underline |
| 3570 | the generated image. This command works only if you are using a window system, | 3570 | information in the generated image. This command works only if you are using |
| 3571 | so it has a way to determine color values. | 3571 | a window system, so it has a way to determine color values. |
| 3572 | 3572 | ||
| 3573 | Use the command `ps-despool' to send the spooled images to the printer." | 3573 | Use the command `ps-despool' to send the spooled images to the printer." |
| 3574 | (interactive) | 3574 | (interactive) |
| @@ -5369,7 +5369,7 @@ Each element has the following form: | |||
| 5369 | (KIND XCOL YCOL XLIN YLIN REPEAT END XSTART YSTART) | 5369 | (KIND XCOL YCOL XLIN YLIN REPEAT END XSTART YSTART) |
| 5370 | 5370 | ||
| 5371 | Where: | 5371 | Where: |
| 5372 | KIND is a valid value of `ps-n-up-filling'. | 5372 | KIND is a valid value of the variable `ps-n-up-filling'. |
| 5373 | XCOL YCOL are the relative position for the next column. | 5373 | XCOL YCOL are the relative position for the next column. |
| 5374 | XLIN YLIN are the relative position for the beginning of next line. | 5374 | XLIN YLIN are the relative position for the beginning of next line. |
| 5375 | REPEAT is the number of repetitions for external loop. | 5375 | REPEAT is the number of repetitions for external loop. |
diff --git a/lisp/server.el b/lisp/server.el index 03d4bfc33df..64224d2a310 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -361,7 +361,7 @@ Updates `server-clients'." | |||
| 361 | 361 | ||
| 362 | (defconst server-buffer " *server*" | 362 | (defconst server-buffer " *server*" |
| 363 | "Buffer used internally by Emacs's server. | 363 | "Buffer used internally by Emacs's server. |
| 364 | One use is to log the I/O for debugging purposes (see `server-log'), | 364 | One use is to log the I/O for debugging purposes (see option `server-log'), |
| 365 | the other is to provide a current buffer in which the process filter can | 365 | the other is to provide a current buffer in which the process filter can |
| 366 | safely let-bind buffer-local variables like `default-directory'.") | 366 | safely let-bind buffer-local variables like `default-directory'.") |
| 367 | 367 | ||
| @@ -369,7 +369,7 @@ safely let-bind buffer-local variables like `default-directory'.") | |||
| 369 | "If non-nil, log the server's inputs and outputs in the `server-buffer'.") | 369 | "If non-nil, log the server's inputs and outputs in the `server-buffer'.") |
| 370 | 370 | ||
| 371 | (defun server-log (string &optional client) | 371 | (defun server-log (string &optional client) |
| 372 | "If `server-log' is non-nil, log STRING to `server-buffer'. | 372 | "If option `server-log' is non-nil, log STRING to `server-buffer'. |
| 373 | If CLIENT is non-nil, add a description of it to the logged message." | 373 | If CLIENT is non-nil, add a description of it to the logged message." |
| 374 | (when server-log | 374 | (when server-log |
| 375 | (with-current-buffer (get-buffer-create server-buffer) | 375 | (with-current-buffer (get-buffer-create server-buffer) |
diff --git a/lisp/simple.el b/lisp/simple.el index dcd6d792acb..847c07a5c26 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -401,7 +401,7 @@ Other major modes are defined by comparison with this one." | |||
| 401 | 401 | ||
| 402 | (defun newline (&optional arg) | 402 | (defun newline (&optional arg) |
| 403 | "Insert a newline, and move to left margin of the new line if it's blank. | 403 | "Insert a newline, and move to left margin of the new line if it's blank. |
| 404 | If `use-hard-newlines' is non-nil, the newline is marked with the | 404 | If option `use-hard-newlines' is non-nil, the newline is marked with the |
| 405 | text-property `hard'. | 405 | text-property `hard'. |
| 406 | With ARG, insert that many newlines. | 406 | With ARG, insert that many newlines. |
| 407 | Call `auto-fill-function' if the current column number is greater | 407 | Call `auto-fill-function' if the current column number is greater |
| @@ -837,7 +837,7 @@ instead of deleted." | |||
| 837 | "Delete the previous N characters (following if N is negative). | 837 | "Delete the previous N characters (following if N is negative). |
| 838 | If Transient Mark mode is enabled, the mark is active, and N is 1, | 838 | If Transient Mark mode is enabled, the mark is active, and N is 1, |
| 839 | delete the text in the region and deactivate the mark instead. | 839 | delete the text in the region and deactivate the mark instead. |
| 840 | To disable this, set `delete-active-region' to nil. | 840 | To disable this, set option `delete-active-region' to nil. |
| 841 | 841 | ||
| 842 | Optional second arg KILLFLAG, if non-nil, means to kill (save in | 842 | Optional second arg KILLFLAG, if non-nil, means to kill (save in |
| 843 | kill ring) instead of delete. Interactively, N is the prefix | 843 | kill ring) instead of delete. Interactively, N is the prefix |
| @@ -873,7 +873,7 @@ the end of the line." | |||
| 873 | "Delete the following N characters (previous if N is negative). | 873 | "Delete the following N characters (previous if N is negative). |
| 874 | If Transient Mark mode is enabled, the mark is active, and N is 1, | 874 | If Transient Mark mode is enabled, the mark is active, and N is 1, |
| 875 | delete the text in the region and deactivate the mark instead. | 875 | delete the text in the region and deactivate the mark instead. |
| 876 | To disable this, set `delete-active-region' to nil. | 876 | To disable this, set variable `delete-active-region' to nil. |
| 877 | 877 | ||
| 878 | Optional second arg KILLFLAG non-nil means to kill (save in kill | 878 | Optional second arg KILLFLAG non-nil means to kill (save in kill |
| 879 | ring) instead of delete. Interactively, N is the prefix arg, and | 879 | ring) instead of delete. Interactively, N is the prefix arg, and |
| @@ -1778,7 +1778,7 @@ Intended to be added to `minibuffer-setup-hook'." | |||
| 1778 | If there are no search errors, this function displays an overlay with | 1778 | If there are no search errors, this function displays an overlay with |
| 1779 | the isearch prompt which replaces the original minibuffer prompt. | 1779 | the isearch prompt which replaces the original minibuffer prompt. |
| 1780 | Otherwise, it displays the standard isearch message returned from | 1780 | Otherwise, it displays the standard isearch message returned from |
| 1781 | `isearch-message'." | 1781 | the function `isearch-message'." |
| 1782 | (if (not (and (minibufferp) isearch-success (not isearch-error))) | 1782 | (if (not (and (minibufferp) isearch-success (not isearch-error))) |
| 1783 | ;; Use standard function `isearch-message' when not in the minibuffer, | 1783 | ;; Use standard function `isearch-message' when not in the minibuffer, |
| 1784 | ;; or search fails, or has an error (like incomplete regexp). | 1784 | ;; or search fails, or has an error (like incomplete regexp). |
| @@ -3805,7 +3805,7 @@ If `show-trailing-whitespace' is non-nil, this command will just | |||
| 3805 | kill the rest of the current line, even if there are only | 3805 | kill the rest of the current line, even if there are only |
| 3806 | nonblanks there. | 3806 | nonblanks there. |
| 3807 | 3807 | ||
| 3808 | If `kill-whole-line' is non-nil, then this command kills the whole line | 3808 | If option `kill-whole-line' is non-nil, then this command kills the whole line |
| 3809 | including its terminating newline, when used at the beginning of a line | 3809 | including its terminating newline, when used at the beginning of a line |
| 3810 | with no argument. As a consequence, you can always kill a whole line | 3810 | with no argument. As a consequence, you can always kill a whole line |
| 3811 | by typing \\[move-beginning-of-line] \\[kill-line]. | 3811 | by typing \\[move-beginning-of-line] \\[kill-line]. |
| @@ -4575,13 +4575,13 @@ to use and more reliable (no dependence on goal column, etc.)." | |||
| 4575 | "Non-nil means vertical motion starting at end of line keeps to ends of lines. | 4575 | "Non-nil means vertical motion starting at end of line keeps to ends of lines. |
| 4576 | This means moving to the end of each line moved onto. | 4576 | This means moving to the end of each line moved onto. |
| 4577 | The beginning of a blank line does not count as the end of a line. | 4577 | The beginning of a blank line does not count as the end of a line. |
| 4578 | This has no effect when `line-move-visual' is non-nil." | 4578 | This has no effect when the variable `line-move-visual' is non-nil." |
| 4579 | :type 'boolean | 4579 | :type 'boolean |
| 4580 | :group 'editing-basics) | 4580 | :group 'editing-basics) |
| 4581 | 4581 | ||
| 4582 | (defcustom goal-column nil | 4582 | (defcustom goal-column nil |
| 4583 | "Semipermanent goal column for vertical motion, as set by \\[set-goal-column], or nil. | 4583 | "Semipermanent goal column for vertical motion, as set by \\[set-goal-column], or nil. |
| 4584 | A non-nil setting overrides `line-move-visual', which see." | 4584 | A non-nil setting overrides the variable `line-move-visual', which see." |
| 4585 | :type '(choice integer | 4585 | :type '(choice integer |
| 4586 | (const :tag "None" nil)) | 4586 | (const :tag "None" nil)) |
| 4587 | :group 'editing-basics) | 4587 | :group 'editing-basics) |
| @@ -4592,7 +4592,7 @@ A non-nil setting overrides `line-move-visual', which see." | |||
| 4592 | It is the column where point was at the start of the current run | 4592 | It is the column where point was at the start of the current run |
| 4593 | of vertical motion commands. | 4593 | of vertical motion commands. |
| 4594 | 4594 | ||
| 4595 | When moving by visual lines via `line-move-visual', it is a cons | 4595 | When moving by visual lines via the function `line-move-visual', it is a cons |
| 4596 | cell (COL . HSCROLL), where COL is the x-position, in pixels, | 4596 | cell (COL . HSCROLL), where COL is the x-position, in pixels, |
| 4597 | divided by the default column width, and HSCROLL is the number of | 4597 | divided by the default column width, and HSCROLL is the number of |
| 4598 | columns by which window is scrolled from left margin. | 4598 | columns by which window is scrolled from left margin. |
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index fe2f808c594..6ab3e3d3f16 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -63,7 +63,7 @@ Non-nil means use highlight, nil means use minibuffer messages." | |||
| 63 | "Non-nil means Flyspell reports a repeated word as an error. | 63 | "Non-nil means Flyspell reports a repeated word as an error. |
| 64 | See `flyspell-mark-duplications-exceptions' to add exceptions to this rule. | 64 | See `flyspell-mark-duplications-exceptions' to add exceptions to this rule. |
| 65 | Detection of repeated words is not implemented in | 65 | Detection of repeated words is not implemented in |
| 66 | \"large\" regions; see `flyspell-large-region'." | 66 | \"large\" regions; see variable `flyspell-large-region'." |
| 67 | :group 'flyspell | 67 | :group 'flyspell |
| 68 | :type 'boolean) | 68 | :type 'boolean) |
| 69 | 69 | ||
| @@ -145,9 +145,10 @@ whose length is specified by `flyspell-delay'." | |||
| 145 | (defcustom flyspell-default-deplacement-commands | 145 | (defcustom flyspell-default-deplacement-commands |
| 146 | '(next-line previous-line | 146 | '(next-line previous-line |
| 147 | handle-switch-frame handle-select-window | 147 | handle-switch-frame handle-select-window |
| 148 | scroll-up scroll-down) | 148 | scroll-up |
| 149 | scroll-down) | ||
| 149 | "The standard list of deplacement commands for Flyspell. | 150 | "The standard list of deplacement commands for Flyspell. |
| 150 | See `flyspell-deplacement-commands'." | 151 | See variable `flyspell-deplacement-commands'." |
| 151 | :group 'flyspell | 152 | :group 'flyspell |
| 152 | :version "21.1" | 153 | :version "21.1" |
| 153 | :type '(repeat (symbol))) | 154 | :type '(repeat (symbol))) |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 067ffdaa1f0..52e97b8248d 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1594,8 +1594,8 @@ You can set this variable in hooks in your init file -- eg: | |||
| 1594 | 1594 | ||
| 1595 | (defun ispell-accept-output (&optional timeout-secs timeout-msecs) | 1595 | (defun ispell-accept-output (&optional timeout-secs timeout-msecs) |
| 1596 | "Wait for output from ispell process, or TIMEOUT-SECS and TIMEOUT-MSECS. | 1596 | "Wait for output from ispell process, or TIMEOUT-SECS and TIMEOUT-MSECS. |
| 1597 | If asynchronous subprocesses are not supported, call `ispell-filter' and | 1597 | If asynchronous subprocesses are not supported, call function `ispell-filter' |
| 1598 | pass it the output of the last ispell invocation." | 1598 | and pass it the output of the last ispell invocation." |
| 1599 | (if ispell-async-processp | 1599 | (if ispell-async-processp |
| 1600 | (accept-process-output ispell-process timeout-secs timeout-msecs) | 1600 | (accept-process-output ispell-process timeout-secs timeout-msecs) |
| 1601 | (if (null ispell-process) | 1601 | (if (null ispell-process) |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index a7e44402a26..b7288772034 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -1926,7 +1926,7 @@ This takes effect when first loading the library.") | |||
| 1926 | ("ul" . "Unordered list") | 1926 | ("ul" . "Unordered list") |
| 1927 | ("var" . "Math variable face") | 1927 | ("var" . "Math variable face") |
| 1928 | ("wbr" . "Enable <br> within <nobr>")) | 1928 | ("wbr" . "Enable <br> within <nobr>")) |
| 1929 | "Value of `sgml-tag-help' for HTML mode.") | 1929 | "Value of variable `sgml-tag-help' for HTML mode.") |
| 1930 | 1930 | ||
| 1931 | (defvar outline-regexp) | 1931 | (defvar outline-regexp) |
| 1932 | (defvar outline-heading-end-regexp) | 1932 | (defvar outline-heading-end-regexp) |
diff --git a/lisp/vc/compare-w.el b/lisp/vc/compare-w.el index 2423d322460..fa451ccbe20 100644 --- a/lisp/vc/compare-w.el +++ b/lisp/vc/compare-w.el | |||
| @@ -53,13 +53,13 @@ whitespace is considered to match, and is skipped." | |||
| 53 | :group 'compare-windows) | 53 | :group 'compare-windows) |
| 54 | 54 | ||
| 55 | (defcustom compare-ignore-whitespace nil | 55 | (defcustom compare-ignore-whitespace nil |
| 56 | "Non-nil means `compare-windows' ignores whitespace." | 56 | "Non-nil means command `compare-windows' ignores whitespace." |
| 57 | :type 'boolean | 57 | :type 'boolean |
| 58 | :group 'compare-windows | 58 | :group 'compare-windows |
| 59 | :version "22.1") | 59 | :version "22.1") |
| 60 | 60 | ||
| 61 | (defcustom compare-ignore-case nil | 61 | (defcustom compare-ignore-case nil |
| 62 | "Non-nil means `compare-windows' ignores case differences." | 62 | "Non-nil means command `compare-windows' ignores case differences." |
| 63 | :type 'boolean | 63 | :type 'boolean |
| 64 | :group 'compare-windows) | 64 | :group 'compare-windows) |
| 65 | 65 | ||
| @@ -379,7 +379,7 @@ on third call it again advances points to the next difference and so on." | |||
| 379 | (delete-overlay compare-windows-overlay2))))) | 379 | (delete-overlay compare-windows-overlay2))))) |
| 380 | 380 | ||
| 381 | (defun compare-windows-dehighlight () | 381 | (defun compare-windows-dehighlight () |
| 382 | "Remove highlighting created by `compare-windows-highlight'." | 382 | "Remove highlighting created by function `compare-windows-highlight'." |
| 383 | (interactive) | 383 | (interactive) |
| 384 | (remove-hook 'pre-command-hook 'compare-windows-dehighlight) | 384 | (remove-hook 'pre-command-hook 'compare-windows-dehighlight) |
| 385 | (mapc 'delete-overlay compare-windows-overlays1) | 385 | (mapc 'delete-overlay compare-windows-overlays1) |
diff --git a/lisp/vc/diff.el b/lisp/vc/diff.el index d0e496d2d21..8b4ff792969 100644 --- a/lisp/vc/diff.el +++ b/lisp/vc/diff.el | |||
| @@ -86,7 +86,7 @@ exists. If NO-ASYNC is non-nil, call diff synchronously. | |||
| 86 | 86 | ||
| 87 | When called interactively with a prefix argument, prompt | 87 | When called interactively with a prefix argument, prompt |
| 88 | interactively for diff switches. Otherwise, the switches | 88 | interactively for diff switches. Otherwise, the switches |
| 89 | specified in `diff-switches' are passed to the diff command." | 89 | specified in the variable `diff-switches' are passed to the diff command." |
| 90 | (interactive | 90 | (interactive |
| 91 | (let* ((newf (if (and buffer-file-name (file-exists-p buffer-file-name)) | 91 | (let* ((newf (if (and buffer-file-name (file-exists-p buffer-file-name)) |
| 92 | (read-file-name | 92 | (read-file-name |
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el index f8e753772e4..dfc7eee81a6 100644 --- a/lisp/vc/log-edit.el +++ b/lisp/vc/log-edit.el | |||
| @@ -953,13 +953,14 @@ line of MSG." | |||
| 953 | (while (re-search-forward (concat "^" (car header) | 953 | (while (re-search-forward (concat "^" (car header) |
| 954 | ":" log-edit-header-contents-regexp) | 954 | ":" log-edit-header-contents-regexp) |
| 955 | nil t) | 955 | nil t) |
| 956 | (if (eq t (cdr header)) | 956 | (let ((txt (match-string 1))) |
| 957 | (setq summary (match-string 1)) | 957 | (replace-match "" t t) |
| 958 | (if (functionp (cdr header)) | 958 | (if (eq t (cdr header)) |
| 959 | (setq res (nconc res (funcall (cdr header) (match-string 1)))) | 959 | (setq summary txt) |
| 960 | (push (match-string 1) res) | 960 | (if (functionp (cdr header)) |
| 961 | (push (or (cdr header) (car header)) res))) | 961 | (setq res (nconc res (funcall (cdr header) txt))) |
| 962 | (replace-match "" t t))) | 962 | (push txt res) |
| 963 | (push (or (cdr header) (car header)) res)))))) | ||
| 963 | ;; Remove header separator if the header is empty. | 964 | ;; Remove header separator if the header is empty. |
| 964 | (widen) | 965 | (widen) |
| 965 | (goto-char (point-min)) | 966 | (goto-char (point-min)) |
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el index f436d300089..0968c83ae5f 100644 --- a/lisp/vc/vc-bzr.el +++ b/lisp/vc/vc-bzr.el | |||
| @@ -620,15 +620,24 @@ or a superior directory.") | |||
| 620 | 620 | ||
| 621 | (declare-function log-edit-extract-headers "log-edit" (headers string)) | 621 | (declare-function log-edit-extract-headers "log-edit" (headers string)) |
| 622 | 622 | ||
| 623 | (defun vc-bzr--sanitize-header (arg) | ||
| 624 | ;; Newlines in --fixes (and probably other fields as well) trigger a nasty | ||
| 625 | ;; Bazaar bug; see https://bugs.launchpad.net/bzr/+bug/1094180. | ||
| 626 | (lambda (str) (list arg | ||
| 627 | (replace-regexp-in-string "\\`[ \t]+\\|[ \t]+\\'" | ||
| 628 | "" (replace-regexp-in-string | ||
| 629 | "\n[ \t]?" " " str))))) | ||
| 630 | |||
| 623 | (defun vc-bzr-checkin (files rev comment) | 631 | (defun vc-bzr-checkin (files rev comment) |
| 624 | "Check FILES in to bzr with log message COMMENT. | 632 | "Check FILES in to bzr with log message COMMENT. |
| 625 | REV non-nil gets an error." | 633 | REV non-nil gets an error." |
| 626 | (if rev (error "Can't check in a specific revision with bzr")) | 634 | (if rev (error "Can't check in a specific revision with bzr")) |
| 627 | (apply 'vc-bzr-command "commit" nil 0 | 635 | (apply 'vc-bzr-command "commit" nil 0 files |
| 628 | files (cons "-m" (log-edit-extract-headers '(("Author" . "--author") | 636 | (cons "-m" (log-edit-extract-headers |
| 629 | ("Date" . "--commit-time") | 637 | `(("Author" . ,(vc-bzr--sanitize-header "--author")) |
| 630 | ("Fixes" . "--fixes")) | 638 | ("Date" . ,(vc-bzr--sanitize-header "--commit-time")) |
| 631 | comment)))) | 639 | ("Fixes" . ,(vc-bzr--sanitize-header "--fixes"))) |
| 640 | comment)))) | ||
| 632 | 641 | ||
| 633 | (defun vc-bzr-find-revision (file rev buffer) | 642 | (defun vc-bzr-find-revision (file rev buffer) |
| 634 | "Fetch revision REV of file FILE and put it into BUFFER." | 643 | "Fetch revision REV of file FILE and put it into BUFFER." |
diff --git a/lisp/whitespace.el b/lisp/whitespace.el index e2a726f4264..ed7edbc5a68 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el | |||
| @@ -1271,19 +1271,19 @@ SYMBOL is a valid symbol associated with CHAR. | |||
| 1271 | 1271 | ||
| 1272 | (defvar whitespace-point (point) | 1272 | (defvar whitespace-point (point) |
| 1273 | "Used to save locally current point value. | 1273 | "Used to save locally current point value. |
| 1274 | Used by `whitespace-trailing-regexp' function (which see).") | 1274 | Used by function `whitespace-trailing-regexp' (which see).") |
| 1275 | 1275 | ||
| 1276 | (defvar whitespace-font-lock-refontify nil | 1276 | (defvar whitespace-font-lock-refontify nil |
| 1277 | "Used to save locally the font-lock refontify state. | 1277 | "Used to save locally the font-lock refontify state. |
| 1278 | Used by `whitespace-post-command-hook' function (which see).") | 1278 | Used by function `whitespace-post-command-hook' (which see).") |
| 1279 | 1279 | ||
| 1280 | (defvar whitespace-bob-marker nil | 1280 | (defvar whitespace-bob-marker nil |
| 1281 | "Used to save locally the bob marker value. | 1281 | "Used to save locally the bob marker value. |
| 1282 | Used by `whitespace-post-command-hook' function (which see).") | 1282 | Used by function `whitespace-post-command-hook' (which see).") |
| 1283 | 1283 | ||
| 1284 | (defvar whitespace-eob-marker nil | 1284 | (defvar whitespace-eob-marker nil |
| 1285 | "Used to save locally the eob marker value. | 1285 | "Used to save locally the eob marker value. |
| 1286 | Used by `whitespace-post-command-hook' function (which see).") | 1286 | Used by function `whitespace-post-command-hook' (which see).") |
| 1287 | 1287 | ||
| 1288 | (defvar whitespace-buffer-changed nil | 1288 | (defvar whitespace-buffer-changed nil |
| 1289 | "Used to indicate locally if buffer changed. | 1289 | "Used to indicate locally if buffer changed. |