summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-02-15 16:03:23 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2013-02-15 16:14:09 +0100
commitdbadb2916b713853a79cc8b8aa8c65086d9fff7e (patch)
tree38a23d91bc0400158e1799a3fff8afd3d92a3630
parent3bc8c9647a55decc6c27cfdb8267de14d54d86d3 (diff)
downloadorg-mode-dbadb2916b713853a79cc8b8aa8c65086d9fff7e.tar.gz
Remove unnecessary `ignore-error'
* lisp/org.el (org-end-of-line): Remove `ignore-error'. It is unnecessary since 3bc8c9647a55decc6c27cfdb8267de14d54d86d3.
-rw-r--r--lisp/org.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 809cca9..81926f1 100644
--- a/lisp/org.el
+++ b/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))