org: Small simplification

* lisp/org.el (org-metaup, org-metadown): Remove unnecessary min/max computation.
This commit is contained in:
Marco Wahl 2022-01-18 09:47:53 +01:00
parent 9b58ead467
commit 0725237eed
1 changed files with 4 additions and 4 deletions

View File

@ -17468,10 +17468,10 @@ for more information."
((run-hook-with-args-until-success 'org-metaup-hook))
((org-region-active-p)
(let* ((a (save-excursion
(goto-char (min (region-beginning) (region-end)))
(goto-char (region-beginning))
(line-beginning-position)))
(b (save-excursion
(goto-char (max (region-beginning) (region-end)))
(goto-char (region-end))
(if (bolp) (1- (point)) (line-end-position))))
(c (save-excursion
(goto-char a)
@ -17501,10 +17501,10 @@ commands for more information."
((run-hook-with-args-until-success 'org-metadown-hook))
((org-region-active-p)
(let* ((a (save-excursion
(goto-char (min (region-beginning) (region-end)))
(goto-char (region-beginning))
(line-beginning-position)))
(b (save-excursion
(goto-char (max (region-beginning) (region-end)))
(goto-char (region-end))
(if (bolp) (1- (point)) (line-end-position))))
(c (save-excursion
(goto-char b)