]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/cc-cmds.el: Remove unused vars
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 5 Jul 2017 02:00:35 +0000 (22:00 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 5 Jul 2017 02:00:35 +0000 (22:00 -0400)
(c-syntactic-context): Declare as dynbound.
(c-beginning-of-defun, c-end-of-defun): Remove unused var `start'.

lisp/progmodes/cc-cmds.el

index de2543951b9bf916ab29a555ee64a07867a894ca..121ba24f090ee285b0eea777e448826cb74929aa 100644 (file)
@@ -51,6 +51,8 @@
 ;; Indentation / Display syntax functions
 (defvar c-fix-backslashes t)
 
+(defvar c-syntactic-context)
+
 (defun c-indent-line (&optional syntax quiet ignore-point-pos)
   "Indent the current line according to the syntactic context,
 if `c-syntactic-indentation' is non-nil.  Optional SYNTAX is the
@@ -1635,7 +1637,6 @@ defun."
   (c-save-buffer-state
       (beginning-of-defun-function
        end-of-defun-function
-       (start (point))
        (paren-state (c-parse-state))
        (orig-point-min (point-min)) (orig-point-max (point-max))
        lim                 ; Position of { which has been widened to.
@@ -1759,7 +1760,6 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'."
   (c-save-buffer-state
       (beginning-of-defun-function
        end-of-defun-function
-       (start (point))
        (paren-state (c-parse-state))
        (orig-point-min (point-min)) (orig-point-max (point-max))
        lim