mirror of
https://github.com/chrisbarrett/nursery
synced 2025-08-09 12:57:22 -05:00
Ignore errors when attempting to delete region in org-format
This commit is contained in:
@ -67,8 +67,9 @@ Only applies to level-1 headings in the document."
|
||||
(forward-char -1)
|
||||
(let ((start (point)))
|
||||
(when (search-backward-regexp (rx (not (any space "\n"))))
|
||||
(forward-char 1)
|
||||
(delete-region (point) start)))
|
||||
(ignore-errors
|
||||
(forward-char 1)
|
||||
(delete-region (point) start))))
|
||||
(insert (make-string n ?\n)))))
|
||||
|
||||
(defun org-format--in-archived-heading-p ()
|
||||
|
Reference in New Issue
Block a user