aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2016-05-23 20:25:28 -0400
committerStefan Monnier2016-05-23 20:25:28 -0400
commit850bcb1e5850eeea9ab04bdca33e2df10d7ea7ce (patch)
tree9c5c2a5174946dee20f824c1cefca383e6f68d46
parent276a6545ad48d6c2ffcf17929f896e6a964d993f (diff)
downloademacs-850bcb1e5850eeea9ab04bdca33e2df10d7ea7ce.tar.gz
emacs-850bcb1e5850eeea9ab04bdca33e2df10d7ea7ce.zip
* lisp/progmodes/cc-mode.el: Add minor comments
(c-change-expand-fl-region): Mark args as unused.
-rw-r--r--lisp/progmodes/cc-mode.el21
1 files changed, 17 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 6a78992756b..de903b80ade 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -71,6 +71,19 @@
71;; 71;;
72;; http://lists.sourceforge.net/mailman/listinfo/cc-mode-announce 72;; http://lists.sourceforge.net/mailman/listinfo/cc-mode-announce
73 73
74;; Externally maintained major modes which use CC-mode's engine include:
75;; - cuda-mode
76;; - csharp-mode (https://github.com/josteink/csharp-mode)
77;; - haxe-mode
78;; - d-mode
79;; - dart-mode
80;; - cc-php-js-cs.el
81;; - php-mode
82;; - yang-mode
83;; - math-mode (mathematica)
84;; - unrealscript-mode
85;; - groovy-mode
86
74;;; Code: 87;;; Code:
75 88
76;; For Emacs < 22.2. 89;; For Emacs < 22.2.
@@ -1234,7 +1247,7 @@ Note that the style variables are always made local to the buffer."
1234 (backward-char)) ; back over (, [, <. 1247 (backward-char)) ; back over (, [, <.
1235 (and (/= new-pos pos) new-pos))) 1248 (and (/= new-pos pos) new-pos)))
1236 1249
1237(defun c-change-expand-fl-region (beg end old-len) 1250(defun c-change-expand-fl-region (_beg _end _old-len)
1238 ;; Expand the region (c-new-BEG c-new-END) to an after-change font-lock 1251 ;; Expand the region (c-new-BEG c-new-END) to an after-change font-lock
1239 ;; region. This will usually be the smallest sequence of whole lines 1252 ;; region. This will usually be the smallest sequence of whole lines
1240 ;; containing `c-new-BEG' and `c-new-END', but if `c-new-BEG' is in a 1253 ;; containing `c-new-BEG' and `c-new-END', but if `c-new-BEG' is in a
@@ -1770,9 +1783,9 @@ Key bindings:
1770(defvar awk-mode-map 1783(defvar awk-mode-map
1771 (let ((map (c-make-inherited-keymap))) 1784 (let ((map (c-make-inherited-keymap)))
1772 ;; Add bindings which are only useful for awk. 1785 ;; Add bindings which are only useful for awk.
1773 (define-key map "#" 'self-insert-command) 1786 (define-key map "#" 'self-insert-command);Overrides electric parent binding.
1774 (define-key map "/" 'self-insert-command) 1787 (define-key map "/" 'self-insert-command);Overrides electric parent binding.
1775 (define-key map "*" 'self-insert-command) 1788 (define-key map "*" 'self-insert-command);Overrides electric parent binding.
1776 (define-key map "\C-c\C-n" 'undefined) ; #if doesn't exist in awk. 1789 (define-key map "\C-c\C-n" 'undefined) ; #if doesn't exist in awk.
1777 (define-key map "\C-c\C-p" 'undefined) 1790 (define-key map "\C-c\C-p" 'undefined)
1778 (define-key map "\C-c\C-u" 'undefined) 1791 (define-key map "\C-c\C-u" 'undefined)