diff options
| author | Alan Mackenzie | 2008-08-12 20:00:18 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2008-08-12 20:00:18 +0000 |
| commit | 05d1da31b577a38fc30b1d879aad17899ab98c40 (patch) | |
| tree | fb68e601c17fc19df34ee79f4f5e17af7ab4da1f | |
| parent | d8ff76929d002c8f195a4887954022bbb6c5e127 (diff) | |
| download | emacs-05d1da31b577a38fc30b1d879aad17899ab98c40.tar.gz emacs-05d1da31b577a38fc30b1d879aad17899ab98c40.zip | |
(c-emacs-features): argumentative-bod-function: bind mark-ring to avoid
accumulating a spurious mark.
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 92ff4562b85..f9f5fdc8b15 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el | |||
| @@ -1444,7 +1444,8 @@ non-nil, a caret is prepended to invert the set." | |||
| 1444 | ;; beginning-of-defun-function. Assume end-of-defun does likewise. | 1444 | ;; beginning-of-defun-function. Assume end-of-defun does likewise. |
| 1445 | (let ((beginning-of-defun-function | 1445 | (let ((beginning-of-defun-function |
| 1446 | (lambda (&optional arg) | 1446 | (lambda (&optional arg) |
| 1447 | (not (eq arg nil))))) | 1447 | (not (eq arg nil)))) |
| 1448 | mark-ring) | ||
| 1448 | (save-excursion | 1449 | (save-excursion |
| 1449 | (if (beginning-of-defun-raw 1) | 1450 | (if (beginning-of-defun-raw 1) |
| 1450 | (setq list (cons 'argumentative-bod-function list))))) | 1451 | (setq list (cons 'argumentative-bod-function list))))) |