]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-emacs-features): argumentative-bod-function: bind mark-ring to avoid
authorAlan Mackenzie <acm@muc.de>
Tue, 12 Aug 2008 20:00:18 +0000 (20:00 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 12 Aug 2008 20:00:18 +0000 (20:00 +0000)
accumulating a spurious mark.

lisp/progmodes/cc-defs.el

index 92ff4562b85d41782efe78538588817f6c75a6e9..f9f5fdc8b1519c95c3961e84d0ed09b24308cb05 100644 (file)
@@ -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)))))