;;; makefile-edit.el --- Makefile editing/scanning commands.
-;;; Copyright (C) 2009 Free Software Foundation, Inc.
+;; Copyright (C) 2009-2012 Free Software Foundation, Inc.
;; Author: Eric M. Ludlam <eric@siege-engine.com>
;;; Code:
(defun makefile-beginning-of-command ()
- "Move the the beginning of the current command."
+ "Move to the beginning of the current command."
(interactive)
(if (save-excursion
(forward-line -1)
(forward-line 1)))
(defun makefile-end-of-command ()
- "Move the the beginning of the current command."
+ "Move to the end of the current command."
(interactive)
(end-of-line)
(while (and (makefile-line-continued-p)
(end-of-line)
(= (preceding-char) ?\\)))
-;;; Programatic editing of a Makefile
+;;; Programmatic editing of a Makefile
;;
(defun makefile-move-to-macro (macro &optional next)
"Move to the definition of MACRO. Return t if found.
-If NEXT is non-nil, move to the next occurance of MACRO."
+If NEXT is non-nil, move to the next occurrence of MACRO."
(let ((oldpt (point)))
(when (not next) (goto-char (point-min)))
(if (re-search-forward (concat "^\\s-*" macro "\\s-*[+:?]?=") nil t)