|
From: | gerard . vermeulen |
Subject: | Re: [PATCH] org-babel-demarcate-block: split using element API |
Date: | Tue, 09 Jan 2024 07:49:01 +0000 |
On 08.01.2024 21:25, gerard.vermeulen@posteo.net wrote:
On 08.01.2024 13:08, Ihor Radchenko wrote:gerard.vermeulen@posteo.net writes:
[...]
Anyhow, I have removed the comment and I have replaced check below it withIt occurred to me to that I only should set mark to point when the region is+ (set-mark (point)) ;; To simplify the next (unless ...): + (unless (and (>= (point) body-beg) (<= (mark) body-end))+ (user-error "Select within the source block body to split it")) which also protects against having point in body and mark on or below #+end_src
not active. I will add checking for `user-error's to the ERT test. Regards -- Gerard
[Prev in Thread] | Current Thread | [Next in Thread] |