Remove unnecessary `ignore-error'
* lisp/org.el (org-end-of-line): Remove `ignore-error'. It is
unnecessary since 3bc8c9647a
.
This commit is contained in:
parent
3bc8c9647a
commit
dbadb2916b
|
@ -22240,10 +22240,8 @@ the cursor is already beyond the end of the headline."
|
||||||
((fboundp 'move-end-of-line) 'move-end-of-line)
|
((fboundp 'move-end-of-line) 'move-end-of-line)
|
||||||
(t 'end-of-line))))
|
(t 'end-of-line))))
|
||||||
(if (or (not special) arg) (call-interactively move-fun)
|
(if (or (not special) arg) (call-interactively move-fun)
|
||||||
(let* ((element (ignore-errors
|
(let* ((element (save-excursion (beginning-of-line)
|
||||||
;; Don't throw an error outside elements
|
(org-element-at-point)))
|
||||||
(save-excursion (beginning-of-line)
|
|
||||||
(org-element-at-point))))
|
|
||||||
(type (org-element-type element)))
|
(type (org-element-type element)))
|
||||||
(cond
|
(cond
|
||||||
((memq type '(headline inlinetask))
|
((memq type '(headline inlinetask))
|
||||||
|
|
Loading…
Reference in New Issue