|
From: | Nicolas Goaziou |
Subject: | Re: (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \] |
Date: | Mon, 25 May 2020 12:11:40 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
TEC <address@hidden> writes: > - (end (progn (goto-char (org-element-property :end datum)) > - (search-backward "}" (line-beginning-position) t)))) > + (end (org-with-point-at (org-element-property :end datum) > + (skip-chars-backward " \t") > + (point)))) > + (list beg end (buffer-substring-no-properties beg end)))) > + ((eq type 'latex-fragment) > + (let ((beg (org-element-property :begin datum)) > + (end (org-element-property :end datum))) It seems you're mixing inline source blocks and LaTeX fragment. You modified the former, but not the latter. > + (lambda () ; trim content > + (goto-char (point-min)) This is not needed. The function is always called at `point-min'. > + (skip-chars-forward " \t") > + (delete-region (point-min) (point)) > + (goto-char (point-max)) > + (skip-chars-backward " \t") > + (delete-region (point) (point-max)))) I'm not sure this clean-up is necessary. Is it?
[Prev in Thread] | Current Thread | [Next in Thread] |