diff options
| author | Phillip Lord | 2016-01-15 22:20:34 +0000 |
|---|---|---|
| committer | Phillip Lord | 2016-01-15 22:20:34 +0000 |
| commit | bb0cd3193912032ae11a27016271d4587f876f98 (patch) | |
| tree | d07e7bade1a79bec532447af64c9a5e1e63fc7ee /lisp | |
| parent | 549a765efeca2748e68a5c6ce6c9238784e82535 (diff) | |
| parent | 9e5452f7166e3634f2d8e943815ed722e1672714 (diff) | |
| download | emacs-bb0cd3193912032ae11a27016271d4587f876f98.tar.gz emacs-bb0cd3193912032ae11a27016271d4587f876f98.zip | |
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/gnus-start.el | 10 | ||||
| -rw-r--r-- | lisp/newcomment.el | 12 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 8 | ||||
| -rw-r--r-- | lisp/textmodes/picture.el | 6 |
5 files changed, 34 insertions, 8 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 4efec86f6e0..10f93d8e526 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -122,7 +122,6 @@ This variable can be a list of select methods which Gnus will query with | |||
| 122 | the `ask-server' method in addition to the primary, secondary, and archive | 122 | the `ask-server' method in addition to the primary, secondary, and archive |
| 123 | servers. | 123 | servers. |
| 124 | 124 | ||
| 125 | |||
| 126 | E.g.: | 125 | E.g.: |
| 127 | (setq gnus-check-new-newsgroups | 126 | (setq gnus-check-new-newsgroups |
| 128 | \\='((nntp \"some.server\") (nntp \"other.server\"))) | 127 | \\='((nntp \"some.server\") (nntp \"other.server\"))) |
| @@ -1673,10 +1672,11 @@ backend check whether the group actually exists." | |||
| 1673 | (push (setq method-group-list (list method method-type nil nil)) | 1672 | (push (setq method-group-list (list method method-type nil nil)) |
| 1674 | type-cache)) | 1673 | type-cache)) |
| 1675 | ;; Only add groups that need updating. | 1674 | ;; Only add groups that need updating. |
| 1676 | (if (funcall (if one-level #'= #'<=) (gnus-info-level info) | 1675 | (if (or (and foreign-level (null (numberp foreign-level))) |
| 1677 | (if (eq (cadr method-group-list) 'foreign) | 1676 | (funcall (if one-level #'= #'<=) (gnus-info-level info) |
| 1678 | foreign-level | 1677 | (if (eq (cadr method-group-list) 'foreign) |
| 1679 | alevel)) | 1678 | foreign-level |
| 1679 | alevel))) | ||
| 1680 | (setcar (nthcdr 2 method-group-list) | 1680 | (setcar (nthcdr 2 method-group-list) |
| 1681 | (cons info (nth 2 method-group-list))) | 1681 | (cons info (nth 2 method-group-list))) |
| 1682 | ;; The group is inactive, so we nix out the number of unread articles. | 1682 | ;; The group is inactive, so we nix out the number of unread articles. |
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 88ed08d4429..80b52ed9561 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el | |||
| @@ -990,6 +990,14 @@ comment markers." | |||
| 990 | (goto-char (point-max)))))) | 990 | (goto-char (point-max)))))) |
| 991 | (set-marker end nil)) | 991 | (set-marker end nil)) |
| 992 | 992 | ||
| 993 | (defun comment-make-bol-ws (len) | ||
| 994 | "Make a white-space string of width LEN for use at BOL. | ||
| 995 | When `indent-tabs-mode' is non-nil, tab characters will be used." | ||
| 996 | (if (and indent-tabs-mode (> tab-width 0)) | ||
| 997 | (concat (make-string (/ len tab-width) ?\t) | ||
| 998 | (make-string (% len tab-width) ? )) | ||
| 999 | (make-string len ? ))) | ||
| 1000 | |||
| 993 | (defun comment-make-extra-lines (cs ce ccs cce min-indent max-indent &optional block) | 1001 | (defun comment-make-extra-lines (cs ce ccs cce min-indent max-indent &optional block) |
| 994 | "Make the leading and trailing extra lines. | 1002 | "Make the leading and trailing extra lines. |
| 995 | This is used for `extra-line' style (or `box' style if BLOCK is specified)." | 1003 | This is used for `extra-line' style (or `box' style if BLOCK is specified)." |
| @@ -1025,8 +1033,8 @@ This is used for `extra-line' style (or `box' style if BLOCK is specified)." | |||
| 1025 | (setq cs (replace-match fill t t s))) | 1033 | (setq cs (replace-match fill t t s))) |
| 1026 | (string-match re e) | 1034 | (string-match re e) |
| 1027 | (setq ce (replace-match fill t t e)))) | 1035 | (setq ce (replace-match fill t t e)))) |
| 1028 | (cons (concat cs "\n" (make-string min-indent ? ) ccs) | 1036 | (cons (concat cs "\n" (comment-make-bol-ws min-indent) ccs) |
| 1029 | (concat cce "\n" (make-string (+ min-indent eindent) ? ) ce)))) | 1037 | (concat cce "\n" (comment-make-bol-ws (+ min-indent eindent)) ce)))) |
| 1030 | 1038 | ||
| 1031 | (defmacro comment-with-narrowing (beg end &rest body) | 1039 | (defmacro comment-with-narrowing (beg end &rest body) |
| 1032 | "Execute BODY with BEG..END narrowing. | 1040 | "Execute BODY with BEG..END narrowing. |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index b08c555e34f..63f01829845 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -6739,6 +6739,9 @@ comment at the start of cc-engine.el for more info." | |||
| 6739 | (c-backward-syntactic-ws)) | 6739 | (c-backward-syntactic-ws)) |
| 6740 | (c-back-over-list-of-member-inits) | 6740 | (c-back-over-list-of-member-inits) |
| 6741 | (and (eq (char-before) ?:) | 6741 | (and (eq (char-before) ?:) |
| 6742 | (save-excursion | ||
| 6743 | (c-backward-token-2) | ||
| 6744 | (not (looking-at c-:$-multichar-token-regexp))) | ||
| 6742 | (c-just-after-func-arglist-p)))) | 6745 | (c-just-after-func-arglist-p)))) |
| 6743 | 6746 | ||
| 6744 | (while (and (not (and level-plausible | 6747 | (while (and (not (and level-plausible |
| @@ -6753,6 +6756,9 @@ comment at the start of cc-engine.el for more info." | |||
| 6753 | (c-backward-syntactic-ws) | 6756 | (c-backward-syntactic-ws) |
| 6754 | (c-back-over-list-of-member-inits) | 6757 | (c-back-over-list-of-member-inits) |
| 6755 | (and (eq (char-before) ?:) | 6758 | (and (eq (char-before) ?:) |
| 6759 | (save-excursion | ||
| 6760 | (c-backward-token-2) | ||
| 6761 | (not (looking-at c-:$-multichar-token-regexp))) | ||
| 6756 | (c-just-after-func-arglist-p))))) | 6762 | (c-just-after-func-arglist-p))))) |
| 6757 | 6763 | ||
| 6758 | (and at-top-level level-plausible))) | 6764 | (and at-top-level level-plausible))) |
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index b52da3f662d..48dd9960886 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -1219,6 +1219,14 @@ operators." | |||
| 1219 | (c-lang-defvar c-assignment-op-regexp | 1219 | (c-lang-defvar c-assignment-op-regexp |
| 1220 | (c-lang-const c-assignment-op-regexp)) | 1220 | (c-lang-const c-assignment-op-regexp)) |
| 1221 | 1221 | ||
| 1222 | (c-lang-defconst c-:$-multichar-token-regexp | ||
| 1223 | ;; Regexp matching all tokens ending in ":" which are longer than one char. | ||
| 1224 | ;; Currently (2016-01-07) only used in C++ Mode. | ||
| 1225 | t (c-make-keywords-re nil | ||
| 1226 | (c-filter-ops (c-lang-const c-operators) t ".+:$"))) | ||
| 1227 | (c-lang-defvar c-:$-multichar-token-regexp | ||
| 1228 | (c-lang-const c-:$-multichar-token-regexp)) | ||
| 1229 | |||
| 1222 | (c-lang-defconst c-<>-multichar-token-regexp | 1230 | (c-lang-defconst c-<>-multichar-token-regexp |
| 1223 | ;; Regexp matching all tokens containing "<" or ">" which are longer | 1231 | ;; Regexp matching all tokens containing "<" or ">" which are longer |
| 1224 | ;; than one char. | 1232 | ;; than one char. |
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el index 4aee2734158..b77f8e9717c 100644 --- a/lisp/textmodes/picture.el +++ b/lisp/textmodes/picture.el | |||
| @@ -272,7 +272,11 @@ Use \"\\[command-apropos] picture-movement\" to see commands which control motio | |||
| 272 | (or (eolp) | 272 | (or (eolp) |
| 273 | (let ((pos (point))) | 273 | (let ((pos (point))) |
| 274 | (move-to-column col t) | 274 | (move-to-column col t) |
| 275 | (delete-region pos (point))))) | 275 | (let ((old-width (string-width (buffer-substring pos (point))))) |
| 276 | (delete-region pos (point)) | ||
| 277 | (when (> old-width width) | ||
| 278 | (insert-char ? (- old-width width)) | ||
| 279 | (goto-char pos)))))) | ||
| 276 | (insert ch) | 280 | (insert ch) |
| 277 | (forward-char -1) | 281 | (forward-char -1) |
| 278 | (picture-move)))) | 282 | (picture-move)))) |