summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-mode.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-01-02 02:34:44 +0000
committerMiles Bader <miles@gnu.org>2007-01-02 02:34:44 +0000
commite35ae98e41ee3c7b511aa351455683aff26fc3cd (patch)
tree6be4accc54e7156820a590566adfff4d12af17cc /lisp/progmodes/cc-mode.el
parentc24fa7dcae432696df74d2fa537e233bcbeeeb92 (diff)
parente19bc9c426237617960d9b6a4ab1f776bdf09ec3 (diff)
downloademacs-e35ae98e41ee3c7b511aa351455683aff26fc3cd.tar.gz
emacs-e35ae98e41ee3c7b511aa351455683aff26fc3cd.tar.bz2
emacs-e35ae98e41ee3c7b511aa351455683aff26fc3cd.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 583-585) - Update from CVS - Fix admin/quick-install-emacs to work with recent versions of autoconf Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-160
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r--lisp/progmodes/cc-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 40407f3819a..993fd102951 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -288,8 +288,9 @@ control). See \"cc-mode.el\" for more info."
c-mode-base-map global-map))
;; RMS says don't make these the default.
-;; (define-key c-mode-base-map "\e\C-a" 'c-beginning-of-defun)
-;; (define-key c-mode-base-map "\e\C-e" 'c-end-of-defun)
+ ;; (April 2006): RMS has now approved these commands as defaults.
+ (define-key c-mode-base-map "\e\C-a" 'c-beginning-of-defun)
+ (define-key c-mode-base-map "\e\C-e" 'c-end-of-defun)
(define-key c-mode-base-map "\C-c\C-n" 'c-forward-conditional)
(define-key c-mode-base-map "\C-c\C-p" 'c-backward-conditional)
@@ -728,8 +729,8 @@ Note that the style variables are always made local to the buffer."
;; We prevent this by temporarily removing `mode' from the Local Variables
;; section.
(if (or c-file-style c-file-offsets)
- (c-tentative-buffer-changes
- (let ((hack-local-variables-hook nil))
+ (let ((hack-local-variables-hook nil) (inhibit-read-only t))
+ (c-tentative-buffer-changes
(c-remove-any-local-eval-or-mode-variables)
(hack-local-variables))
nil))))