diff options
author | Spencer Williams <spnw@plexwave.org> | 2025-04-16 14:16:59 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2025-04-16 14:16:59 -0400 |
commit | d01692a12f5e38bd7cced93d2f91f6d4d57683c7 (patch) | |
tree | bc59b509fc00be725261762ad9f662123708bd15 /lisp/seam.el | |
parent | 6f94a057441044b3e66c45c7cba094dbf3e750c2 (diff) |
Use literal regexp instead of calling org-headline-re
Diffstat (limited to 'lisp/seam.el')
-rw-r--r-- | lisp/seam.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/seam.el b/lisp/seam.el index d8e8138..201bbdf 100644 --- a/lisp/seam.el +++ b/lisp/seam.el @@ -157,7 +157,7 @@ naming. Must be a function taking two arguments: TITLE and TYPE." (widen) (goto-char 1) (ignore-errors - (re-search-forward (org-headline-re 1)) + (re-search-forward "^\\* ") (let ((start (point))) (end-of-line) (let ((title (string-trim (buffer-substring-no-properties start (point))))) @@ -176,7 +176,7 @@ naming. Must be a function taking two arguments: TITLE and TYPE." (widen) (goto-char 1) (ignore-errors - (re-search-forward (org-headline-re 1)) + (re-search-forward "^\\* ") (org-element-property :SEAM_SLUG (org-element-at-point)))))) (seam-slugify (seam-get-title-from-buffer buffer)))) |