Browse Source

cmake-mode.el: Avoid using beginning-of-buffer

This should not be used from lisp programs.  Use the replacement
suggested by the doc: (goto-char (point-min))
Philipp Möller 11 years ago
parent
commit
fbc3a6f33e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Auxiliary/cmake-mode.el

+ 1 - 1
Auxiliary/cmake-mode.el

@@ -79,7 +79,7 @@ set the path with these commands:
   (if (save-excursion
         (beginning-of-line)
         (let ((parse-end (point)))
-          (beginning-of-buffer)
+          (goto-char (point-min))
           (nth 3 (parse-partial-sexp (point) parse-end))
           )
         )