aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2016-02-09 14:23:09 -0800
committerPaul Eggert2016-02-09 14:23:09 -0800
commitfdc2da4ef44b32e2dd360defc9bd64d644ed1783 (patch)
tree0c4c996897292cec2115b21f40db68836af0190e /lisp
parentf414fe61dd5e9f54c562adc65739305198173001 (diff)
parent2c117fc7e283ad20f404c392be433c74f5cf8a4e (diff)
downloademacs-fdc2da4ef44b32e2dd360defc9bd64d644ed1783.tar.gz
emacs-fdc2da4ef44b32e2dd360defc9bd64d644ed1783.zip
Merge from origin/emacs-25
2c117fc * etc/NEWS: Document new mpc.el features 71a0496 * lisp/custom.el (defface): Revert indentation change. (Bug#22524) 9dfece1 Correctly fontify C++ initializations which "look like" functions. 4485222 Improve newsticker-treeview-selection-face 4236944 Minor fix in tagging Ruby accessors by etags 35fc77d Spelling fixes 3dda110 Remove 'def X' from the example
Diffstat (limited to 'lisp')
-rw-r--r--lisp/custom.el3
-rw-r--r--lisp/erc/erc.el2
-rw-r--r--lisp/net/newst-treeview.el2
-rw-r--r--lisp/progmodes/cc-engine.el23
-rw-r--r--lisp/progmodes/cc-fonts.el25
5 files changed, 42 insertions, 13 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index 550ba440c0f..f4045008ebf 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -411,8 +411,7 @@ In the ATTS property list, possible attributes are `:family',
411 411
412See Info node `(elisp) Faces' in the Emacs Lisp manual for more 412See Info node `(elisp) Faces' in the Emacs Lisp manual for more
413information." 413information."
414 (declare (doc-string 3) 414 (declare (doc-string 3))
415 (indent 1))
416 ;; It is better not to use backquote in this file, 415 ;; It is better not to use backquote in this file,
417 ;; because that makes a bootstrapping problem 416 ;; because that makes a bootstrapping problem
418 ;; if you need to recompile all the Lisp files using interpreted code. 417 ;; if you need to recompile all the Lisp files using interpreted code.
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 98ea594e164..d52a83b1029 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -3997,7 +3997,7 @@ Prompt for one if called interactively."
3997 (format "MODE %s -k" tgt))))) 3997 (format "MODE %s -k" tgt)))))
3998 3998
3999(defun erc-completion-at-point () 3999(defun erc-completion-at-point ()
4000 "Perform complection on the text around point case-insentitively. 4000 "Perform completion on the text around point case-insensitively.
4001See `completion-at-point'." 4001See `completion-at-point'."
4002 (interactive) 4002 (interactive)
4003 (let ((completion-ignore-case t)) 4003 (let ((completion-ignore-case t))
diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el
index 4de3d1d1125..c995af58c27 100644
--- a/lisp/net/newst-treeview.el
+++ b/lisp/net/newst-treeview.el
@@ -77,7 +77,7 @@
77 :group 'newsticker-treeview) 77 :group 'newsticker-treeview)
78 78
79(defface newsticker-treeview-selection-face 79(defface newsticker-treeview-selection-face
80 '((((class color) (background dark)) :background "#bbbbff") 80 '((((class color) (background dark)) :background "#4444aa")
81 (((class color) (background light)) :background "#bbbbff")) 81 (((class color) (background light)) :background "#bbbbff"))
82 "Face for newsticker selection." 82 "Face for newsticker selection."
83 :group 'newsticker-treeview) 83 :group 'newsticker-treeview)
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index dc2480961d1..39600cf28f8 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -6802,7 +6802,7 @@ comment at the start of cc-engine.el for more info."
6802 ;; This identifier is bound only in the inner let. 6802 ;; This identifier is bound only in the inner let.
6803 '(setq start id-start)))) 6803 '(setq start id-start))))
6804 6804
6805(defun c-forward-declarator (&optional limit) 6805(defun c-forward-declarator (&optional limit accept-anon)
6806 ;; Assuming point is at the start of a declarator, move forward over it, 6806 ;; Assuming point is at the start of a declarator, move forward over it,
6807 ;; leaving point at the next token after it (e.g. a ) or a ; or a ,). 6807 ;; leaving point at the next token after it (e.g. a ) or a ; or a ,).
6808 ;; 6808 ;;
@@ -6811,6 +6811,11 @@ comment at the start of cc-engine.el for more info."
6811 ;; BRACKETS-AFTER-ID is non-nil if a [...] pair is present after the id. 6811 ;; BRACKETS-AFTER-ID is non-nil if a [...] pair is present after the id.
6812 ;; GOT-INIT is non-nil when the declarator is followed by "=" or "(". 6812 ;; GOT-INIT is non-nil when the declarator is followed by "=" or "(".
6813 ;; 6813 ;;
6814 ;; If ACCEPT-ANON is non-nil, move forward over any "anonymous declarator",
6815 ;; i.e. something like the (*) in int (*), such as might be found in a
6816 ;; declaration. In such a case ID-START and ID-END in the return value are
6817 ;; both set to nil. A "null" "anonymous declarator" gives a non-nil result.
6818 ;;
6814 ;; If no declarator is found, leave point unmoved and return nil. LIMIT is 6819 ;; If no declarator is found, leave point unmoved and return nil. LIMIT is
6815 ;; an optional limit for forward searching. 6820 ;; an optional limit for forward searching.
6816 ;; 6821 ;;
@@ -6865,13 +6870,17 @@ comment at the start of cc-engine.el for more info."
6865 6870
6866 ;; If we haven't passed the identifier already, do it now. 6871 ;; If we haven't passed the identifier already, do it now.
6867 (unless got-identifier 6872 (unless got-identifier
6868 (setq id-start (point)) 6873 (setq id-start (point)))
6869 (c-forward-name)) 6874 (cond
6870 (prog1 6875 ((or got-identifier
6871 (/= (point) here) 6876 (c-forward-name))
6872 (save-excursion 6877 (save-excursion
6873 (c-backward-syntactic-ws) 6878 (c-backward-syntactic-ws)
6874 (setq id-end (point))))) 6879 (setq id-end (point))))
6880 (accept-anon
6881 (setq id-start nil id-end nil)
6882 t)
6883 (t (/= (point) here))))
6875 6884
6876 ;; Skip out of the parens surrounding the identifier. If closing 6885 ;; Skip out of the parens surrounding the identifier. If closing
6877 ;; parens are missing, this form returns nil. 6886 ;; parens are missing, this form returns nil.
@@ -7260,7 +7269,7 @@ comment at the start of cc-engine.el for more info."
7260 (goto-char id-start) 7269 (goto-char id-start)
7261 7270
7262 ;; Skip over type decl prefix operators. (Note similar code in 7271 ;; Skip over type decl prefix operators. (Note similar code in
7263 ;; `c-font-lock-declarators'.) 7272 ;; `c-forward-declarator'.)
7264 (if (and c-recognize-typeless-decls 7273 (if (and c-recognize-typeless-decls
7265 (equal c-type-decl-prefix-key "\\<\\>")) 7274 (equal c-type-decl-prefix-key "\\<\\>"))
7266 (when (eq (char-after) ?\() 7275 (when (eq (char-after) ?\()
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 1e101d12aac..3cc537bba3d 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -1008,7 +1008,7 @@ casts and declarations are fontified. Used on level 2 and higher."
1008 ((pos (point)) next-pos id-start id-end 1008 ((pos (point)) next-pos id-start id-end
1009 decl-res 1009 decl-res
1010 paren-depth 1010 paren-depth
1011 id-face got-init 1011 id-face got-type got-init
1012 c-last-identifier-range 1012 c-last-identifier-range
1013 (separator-prop (if types 'c-decl-type-start 'c-decl-id-start)) 1013 (separator-prop (if types 'c-decl-type-start 'c-decl-id-start))
1014 brackets-after-id) 1014 brackets-after-id)
@@ -1020,7 +1020,28 @@ casts and declarations are fontified. Used on level 2 and higher."
1020 (setq next-pos (point) 1020 (setq next-pos (point)
1021 id-start (car decl-res) 1021 id-start (car decl-res)
1022 id-face (if (and (eq (char-after) ?\() 1022 id-face (if (and (eq (char-after) ?\()
1023 (not (car (cddr decl-res)))) ; brackets-after-id 1023 (not (car (cddr decl-res))) ; brackets-after-id
1024 (or (not (c-major-mode-is 'c++-mode))
1025 (save-excursion
1026 (let (c-last-identifier-range)
1027 (forward-char)
1028 (c-forward-syntactic-ws)
1029 (catch 'is-function
1030 (while
1031 (progn
1032 (if (eq (char-after) ?\))
1033 (throw 'is-function t))
1034 (setq got-type (c-forward-type))
1035 (cond
1036 ((null got-type)
1037 (throw 'is-function nil))
1038 ((not (eq got-type 'maybe))
1039 (throw 'is-function t)))
1040 (c-forward-declarator limit t)
1041 (eq (char-after) ?,))
1042 (forward-char)
1043 (c-forward-syntactic-ws))
1044 t)))))
1024 'font-lock-function-name-face 1045 'font-lock-function-name-face
1025 'font-lock-variable-name-face) 1046 'font-lock-variable-name-face)
1026 got-init (and (cadr (cddr decl-res)) ; got-init 1047 got-init (and (cadr (cddr decl-res)) ; got-init