diff options
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 19 | ||||
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 7 |
4 files changed, 34 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cb8348e1d51..b207deea0de 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,15 @@ | |||
| 1 | 2014-12-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/cc-cmds.el (c-subword-mode): Alias to subword-mode. | ||
| 4 | (c-update-modeline): | ||
| 5 | * progmodes/cc-langs.el (c-mode-menu): Use c-subword-mode. | ||
| 6 | * progmodes/cc-mode.el (subword-mode): Move autoload to cc-cmds.el. | ||
| 7 | (c-mode-base-map): Use c-subword-mode. | ||
| 8 | |||
| 1 | 2014-12-18 Eli Zaretskii <eliz@gnu.org> | 9 | 2014-12-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 10 | ||
| 3 | * international/mule-diag.el (describe-font-internal): Display | 11 | * international/mule-diag.el (describe-font-internal): |
| 4 | additional info returned by font-info. | 12 | Display additional info returned by font-info. |
| 5 | 13 | ||
| 6 | * linum.el (linum--face-width): Rename from linum--face-height, | 14 | * linum.el (linum--face-width): Rename from linum--face-height, |
| 7 | and use the new functionality of font-info. | 15 | and use the new functionality of font-info. |
| @@ -21,8 +29,8 @@ | |||
| 21 | 29 | ||
| 22 | 2014-12-17 Sam Steingold <sds@gnu.org> | 30 | 2014-12-17 Sam Steingold <sds@gnu.org> |
| 23 | 31 | ||
| 24 | * emacs-lisp/package.el (package--list-loaded-files): Handle | 32 | * emacs-lisp/package.el (package--list-loaded-files): |
| 25 | `(nil ...)' elements in `load-history'. | 33 | Handle `(nil ...)' elements in `load-history'. |
| 26 | 34 | ||
| 27 | 2014-12-17 Teodor Zlatanov <tzz@lifelogs.com> | 35 | 2014-12-17 Teodor Zlatanov <tzz@lifelogs.com> |
| 28 | 36 | ||
| @@ -152,8 +160,8 @@ | |||
| 152 | 160 | ||
| 153 | 2014-12-13 Fabián Ezequiel Gallina <fgallina@gnu.org> | 161 | 2014-12-13 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 154 | 162 | ||
| 155 | * progmodes/python.el (python-shell-parse-command): Quote | 163 | * progmodes/python.el (python-shell-parse-command): |
| 156 | `python-shell-interpreter`. (Bug#19289) | 164 | Quote `python-shell-interpreter`. (Bug#19289) |
| 157 | 165 | ||
| 158 | 2014-12-12 Stefan Monnier <monnier@iro.umontreal.ca> | 166 | 2014-12-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 159 | 167 | ||
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 55b676b1d9f..0724697f8e8 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -258,9 +258,11 @@ With universal argument, inserts the analysis as a comment on that line." | |||
| 258 | "a" "") | 258 | "a" "") |
| 259 | (if c-hungry-delete-key "h" "") | 259 | (if c-hungry-delete-key "h" "") |
| 260 | (if (and | 260 | (if (and |
| 261 | ;; subword might not be loaded. | 261 | ;; (cc-)subword might not be loaded. |
| 262 | (boundp 'subword-mode) | 262 | (boundp 'c-subword-mode) |
| 263 | (symbol-value 'subword-mode)) | 263 | (symbol-value 'c-subword-mode)) |
| 264 | ;; FIXME: subword-mode already comes with its | ||
| 265 | ;; own lighter! | ||
| 264 | "w" | 266 | "w" |
| 265 | ""))) | 267 | ""))) |
| 266 | ;; FIXME: Derived modes might want to use something else | 268 | ;; FIXME: Derived modes might want to use something else |
| @@ -1304,6 +1306,17 @@ keyword on the line, the keyword is not inserted inside a literal, and | |||
| 1304 | (declare-function subword-forward "subword" (&optional arg)) | 1306 | (declare-function subword-forward "subword" (&optional arg)) |
| 1305 | (declare-function subword-backward "subword" (&optional arg)) | 1307 | (declare-function subword-backward "subword" (&optional arg)) |
| 1306 | 1308 | ||
| 1309 | (cond | ||
| 1310 | ((and (fboundp 'subword-mode) (not (fboundp 'c-subword-mode))) | ||
| 1311 | ;; Recent Emacsen come with their own subword support. Use that. | ||
| 1312 | (define-obsolete-function-alias 'c-subword-mode 'subword-mode "24.3") | ||
| 1313 | (define-obsolete-variable-alias 'c-subword-mode 'subword-mode "24.3")) | ||
| 1314 | (t | ||
| 1315 | ;; Autoload directive for emacsen that doesn't have an older CC Mode | ||
| 1316 | ;; version in the dist. | ||
| 1317 | (autoload 'c-subword-mode "cc-subword" | ||
| 1318 | "Mode enabling subword movement and editing keys." t))) | ||
| 1319 | |||
| 1307 | ;; "nomenclature" functions + c-scope-operator. | 1320 | ;; "nomenclature" functions + c-scope-operator. |
| 1308 | (defun c-forward-into-nomenclature (&optional arg) | 1321 | (defun c-forward-into-nomenclature (&optional arg) |
| 1309 | "Compatibility alias for `c-forward-subword'." | 1322 | "Compatibility alias for `c-forward-subword'." |
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 375725e6834..b93cc780732 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -318,9 +318,9 @@ the evaluated constant value at compile time." | |||
| 318 | :style toggle :selected c-auto-newline] | 318 | :style toggle :selected c-auto-newline] |
| 319 | ["Hungry delete" c-toggle-hungry-state | 319 | ["Hungry delete" c-toggle-hungry-state |
| 320 | :style toggle :selected c-hungry-delete-key] | 320 | :style toggle :selected c-hungry-delete-key] |
| 321 | ["Subword mode" subword-mode | 321 | ["Subword mode" c-subword-mode |
| 322 | :style toggle :selected (and (boundp 'subword-mode) | 322 | :style toggle :selected (and (boundp 'c-subword-mode) |
| 323 | subword-mode)]))) | 323 | c-subword-mode)]))) |
| 324 | 324 | ||
| 325 | 325 | ||
| 326 | ;;; Syntax tables. | 326 | ;;; Syntax tables. |
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 4b8e41f1c54..a4824479b3c 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -108,11 +108,6 @@ | |||
| 108 | ;; with your version of Emacs, you are incompatible! | 108 | ;; with your version of Emacs, you are incompatible! |
| 109 | (cc-external-require 'easymenu) | 109 | (cc-external-require 'easymenu) |
| 110 | 110 | ||
| 111 | ;; Autoload directive for emacsen that doesn't have an older CC Mode | ||
| 112 | ;; version in the dist. | ||
| 113 | (autoload 'subword-mode "subword" | ||
| 114 | "Mode enabling subword movement and editing keys." t) | ||
| 115 | |||
| 116 | ;; Load cc-fonts first after font-lock is loaded, since it isn't | 111 | ;; Load cc-fonts first after font-lock is loaded, since it isn't |
| 117 | ;; necessary until font locking is requested. | 112 | ;; necessary until font locking is requested. |
| 118 | ; (eval-after-load "font-lock" ; 2006-07-09: font-lock is now preloaded. | 113 | ; (eval-after-load "font-lock" ; 2006-07-09: font-lock is now preloaded. |
| @@ -379,7 +374,7 @@ control). See \"cc-mode.el\" for more info." | |||
| 379 | ;; conflicts with OOBR | 374 | ;; conflicts with OOBR |
| 380 | ;;(define-key c-mode-base-map "\C-c\C-v" 'c-version) | 375 | ;;(define-key c-mode-base-map "\C-c\C-v" 'c-version) |
| 381 | ;; (define-key c-mode-base-map "\C-c\C-y" 'c-toggle-hungry-state) Commented out by ACM, 2005-11-22. | 376 | ;; (define-key c-mode-base-map "\C-c\C-y" 'c-toggle-hungry-state) Commented out by ACM, 2005-11-22. |
| 382 | (define-key c-mode-base-map "\C-c\C-w" 'subword-mode) | 377 | (define-key c-mode-base-map "\C-c\C-w" 'c-subword-mode) |
| 383 | ) | 378 | ) |
| 384 | 379 | ||
| 385 | ;; We don't require the outline package, but we configure it a bit anyway. | 380 | ;; We don't require the outline package, but we configure it a bit anyway. |