diff options
| author | Alan Mackenzie | 2009-02-06 10:13:59 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2009-02-06 10:13:59 +0000 |
| commit | e9176a6375c587e3bdf76c94b5e457a2c52ca4f4 (patch) | |
| tree | bb5e59ee9a2411aed3ff35adb1d6b636adbc6b1a | |
| parent | 0b91aef0f38dfda986d5dbcc004c9c52a12693fd (diff) | |
| download | emacs-e9176a6375c587e3bdf76c94b5e457a2c52ca4f4.tar.gz emacs-e9176a6375c587e3bdf76c94b5e457a2c52ca4f4.zip | |
(c-emacs-features): Change a let to a let* to eliminate BC warnings.
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 26 |
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." | |||
| 1446 | ;; Check whether beginning/end-of-defun call | 1446 | ;; Check whether beginning/end-of-defun call |
| 1447 | ;; beginning/end-of-defun-function nicely, passing through the | 1447 | ;; beginning/end-of-defun-function nicely, passing through the |
| 1448 | ;; argument and respecting the return code. | 1448 | ;; argument and respecting the return code. |
| 1449 | (let (mark-ring | 1449 | (let* (mark-ring |
| 1450 | (bod-param 'foo) (eod-param 'foo) | 1450 | (bod-param 'foo) (eod-param 'foo) |
| 1451 | (beginning-of-defun-function | 1451 | (beginning-of-defun-function |
| 1452 | (lambda (&optional arg) | 1452 | (lambda (&optional arg) |
| 1453 | (or (eq bod-param 'foo) (setq bod-param 'bar)) | 1453 | (or (eq bod-param 'foo) (setq bod-param 'bar)) |
| 1454 | (and (eq bod-param 'foo) | 1454 | (and (eq bod-param 'foo) |
| 1455 | (setq bod-param arg) | 1455 | (setq bod-param arg) |
| 1456 | (eq arg 3)))) | 1456 | (eq arg 3)))) |
| 1457 | (end-of-defun-function | 1457 | (end-of-defun-function |
| 1458 | (lambda (&optional arg) | 1458 | (lambda (&optional arg) |
| 1459 | (and (eq eod-param 'foo) | 1459 | (and (eq eod-param 'foo) |
| 1460 | (setq eod-param arg) | 1460 | (setq eod-param arg) |
| 1461 | (eq arg 3))))) | 1461 | (eq arg 3))))) |
| 1462 | (if (save-excursion (and (beginning-of-defun 3) (= bod-param 3) | 1462 | (if (save-excursion (and (beginning-of-defun 3) (= bod-param 3) |
| 1463 | (not (beginning-of-defun)) | 1463 | (not (beginning-of-defun)) |
| 1464 | (end-of-defun 3) (= eod-param 3) | 1464 | (end-of-defun 3) (= eod-param 3) |