瀏覽代碼

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 年之前
父節點
當前提交
fbc3a6f33e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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))
           )
         )