org: Small simplification
* lisp/org.el (org-metaup, org-metadown): Remove unnecessary min/max computation.
This commit is contained in:
parent
9b58ead467
commit
0725237eed
|
@ -17468,10 +17468,10 @@ for more information."
|
||||||
((run-hook-with-args-until-success 'org-metaup-hook))
|
((run-hook-with-args-until-success 'org-metaup-hook))
|
||||||
((org-region-active-p)
|
((org-region-active-p)
|
||||||
(let* ((a (save-excursion
|
(let* ((a (save-excursion
|
||||||
(goto-char (min (region-beginning) (region-end)))
|
(goto-char (region-beginning))
|
||||||
(line-beginning-position)))
|
(line-beginning-position)))
|
||||||
(b (save-excursion
|
(b (save-excursion
|
||||||
(goto-char (max (region-beginning) (region-end)))
|
(goto-char (region-end))
|
||||||
(if (bolp) (1- (point)) (line-end-position))))
|
(if (bolp) (1- (point)) (line-end-position))))
|
||||||
(c (save-excursion
|
(c (save-excursion
|
||||||
(goto-char a)
|
(goto-char a)
|
||||||
|
@ -17501,10 +17501,10 @@ commands for more information."
|
||||||
((run-hook-with-args-until-success 'org-metadown-hook))
|
((run-hook-with-args-until-success 'org-metadown-hook))
|
||||||
((org-region-active-p)
|
((org-region-active-p)
|
||||||
(let* ((a (save-excursion
|
(let* ((a (save-excursion
|
||||||
(goto-char (min (region-beginning) (region-end)))
|
(goto-char (region-beginning))
|
||||||
(line-beginning-position)))
|
(line-beginning-position)))
|
||||||
(b (save-excursion
|
(b (save-excursion
|
||||||
(goto-char (max (region-beginning) (region-end)))
|
(goto-char (region-end))
|
||||||
(if (bolp) (1- (point)) (line-end-position))))
|
(if (bolp) (1- (point)) (line-end-position))))
|
||||||
(c (save-excursion
|
(c (save-excursion
|
||||||
(goto-char b)
|
(goto-char b)
|
||||||
|
|
Loading…
Reference in New Issue