diff options
author | Juri Linkov <juri@linkov.net> | 2014-11-19 00:23:47 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2014-11-19 00:23:47 +0200 |
commit | 4a306d701b0dbe860c8ced70e0d93bd3129f0665 (patch) | |
tree | ed810860abb174661610c0bec4affb0f2e265f84 /lisp/simple.el | |
parent | 239aa11e1eeb1aa7a1247c40cfac2fe43b715e25 (diff) |
* lisp/simple.el (next-line-or-history-element): Wrap next-line in with-no-warnings.
(previous-line-or-history-element): Wrap previous-line in with-no-warnings.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index fda7040ccb8..2a471652da2 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1992,7 +1992,8 @@ next element of the minibuffer history in the minibuffer." (or arg (setq arg 1)) (let ((old-point (point))) (condition-case nil - (next-line arg) + (with-no-warnings + (next-line arg)) (end-of-buffer ;; Restore old position since `line-move-visual' moves point to ;; the end of the line when it fails to go to the next line. @@ -2007,7 +2008,8 @@ previous element of the minibuffer history in the minibuffer." (or arg (setq arg 1)) (let ((old-point (point))) (condition-case nil - (previous-line arg) + (with-no-warnings + (previous-line arg)) (beginning-of-buffer ;; Restore old position since `line-move-visual' moves point to ;; the beginning of the line when it fails to go to the previous line. |