summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2008-08-12 20:00:18 +0000
committerAlan Mackenzie <acm@muc.de>2008-08-12 20:00:18 +0000
commit05d1da31b577a38fc30b1d879aad17899ab98c40 (patch)
treefb68e601c17fc19df34ee79f4f5e17af7ab4da1f /lisp
parentd8ff76929d002c8f195a4887954022bbb6c5e127 (diff)
downloademacs-05d1da31b577a38fc30b1d879aad17899ab98c40.tar.gz
(c-emacs-features): argumentative-bod-function: bind mark-ring to avoid
accumulating a spurious mark.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cc-defs.el3
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."
;; beginning-of-defun-function. Assume end-of-defun does likewise.
(let ((beginning-of-defun-function
(lambda (&optional arg)
- (not (eq arg nil)))))
+ (not (eq arg nil))))
+ mark-ring)
(save-excursion
(if (beginning-of-defun-raw 1)
(setq list (cons 'argumentative-bod-function list)))))