Browse Source

Remove unnecessary `ignore-error'

* lisp/org.el (org-end-of-line): Remove `ignore-error'.  It is
  unnecessary since 3bc8c9647a55decc6c27cfdb8267de14d54d86d3.
Nicolas Goaziou 5 years ago
parent
commit
dbadb2916b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      lisp/org.el

+ 2 - 4
lisp/org.el

@@ -22240,10 +22240,8 @@ the cursor is already beyond the end of the headline."
 			((fboundp 'move-end-of-line) 'move-end-of-line)
 			(t 'end-of-line))))
     (if (or (not special) arg) (call-interactively move-fun)
-      (let* ((element (ignore-errors
-			;; Don't throw an error outside elements
-			(save-excursion (beginning-of-line)
-					(org-element-at-point))))
+      (let* ((element (save-excursion (beginning-of-line)
+				      (org-element-at-point)))
 	     (type (org-element-type element)))
 	(cond
 	 ((memq type '(headline inlinetask))