diff options
author | Sébastien Delafond <sdelafond@gmail.com> | 2016-12-28 09:22:34 +0100 |
---|---|---|
committer | Sébastien Delafond <sdelafond@gmail.com> | 2016-12-28 09:22:34 +0100 |
commit | 22e20457f23e72d264227a96e6f4888cd967f028 (patch) | |
tree | 88537844e5a562fae7dfdfa1f0e51af4e7b90703 /lisp/org-macs.el | |
parent | 3c1786756e434dae5960b1eed5cf1f84e4bd3a07 (diff) |
Imported Upstream version 9.0.3
Diffstat (limited to 'lisp/org-macs.el')
-rw-r--r-- | lisp/org-macs.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 6c0abcb..b7da6c6 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -194,11 +194,11 @@ program is needed for, so that the error message can be more informative." (<= (match-beginning n) pos) (>= (match-end n) pos))) -(defun org-match-line (re) - "Looking-at at the beginning of the current line." +(defun org-match-line (regexp) + "Match REGEXP at the beginning of the current line." (save-excursion - (goto-char (point-at-bol)) - (looking-at re))) + (beginning-of-line) + (looking-at regexp))) (defun org-plist-delete (plist property) "Delete PROPERTY from PLIST. |