summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-defs.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2009-02-06 10:13:59 +0000
committerAlan Mackenzie <acm@muc.de>2009-02-06 10:13:59 +0000
commite9176a6375c587e3bdf76c94b5e457a2c52ca4f4 (patch)
treebb5e59ee9a2411aed3ff35adb1d6b636adbc6b1a /lisp/progmodes/cc-defs.el
parent0b91aef0f38dfda986d5dbcc004c9c52a12693fd (diff)
downloademacs-e9176a6375c587e3bdf76c94b5e457a2c52ca4f4.tar.gz
emacs-e9176a6375c587e3bdf76c94b5e457a2c52ca4f4.tar.bz2
emacs-e9176a6375c587e3bdf76c94b5e457a2c52ca4f4.zip
(c-emacs-features): Change a let to a let* to eliminate BC warnings.
Diffstat (limited to 'lisp/progmodes/cc-defs.el')
-rw-r--r--lisp/progmodes/cc-defs.el26
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index 01b11cfe8e2..e12b9c1dc13 100644
--- a/lisp/progmodes/cc-defs.el
+++ b/lisp/progmodes/cc-defs.el
@@ -1446,19 +1446,19 @@ non-nil, a caret is prepended to invert the set."
;; Check whether beginning/end-of-defun call
;; beginning/end-of-defun-function nicely, passing through the
;; argument and respecting the return code.
- (let (mark-ring
- (bod-param 'foo) (eod-param 'foo)
- (beginning-of-defun-function
- (lambda (&optional arg)
- (or (eq bod-param 'foo) (setq bod-param 'bar))
- (and (eq bod-param 'foo)
- (setq bod-param arg)
- (eq arg 3))))
- (end-of-defun-function
- (lambda (&optional arg)
- (and (eq eod-param 'foo)
- (setq eod-param arg)
- (eq arg 3)))))
+ (let* (mark-ring
+ (bod-param 'foo) (eod-param 'foo)
+ (beginning-of-defun-function
+ (lambda (&optional arg)
+ (or (eq bod-param 'foo) (setq bod-param 'bar))
+ (and (eq bod-param 'foo)
+ (setq bod-param arg)
+ (eq arg 3))))
+ (end-of-defun-function
+ (lambda (&optional arg)
+ (and (eq eod-param 'foo)
+ (setq eod-param arg)
+ (eq arg 3)))))
(if (save-excursion (and (beginning-of-defun 3) (= bod-param 3)
(not (beginning-of-defun))
(end-of-defun 3) (= eod-param 3)