Commit 4a306d70 authored by Juri Linkov's avatar Juri Linkov
Browse files

* 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.
parent 239aa11e
2014-11-18 Juri Linkov <juri@linkov.net>
* 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.
2014-11-18 Juri Linkov <juri@linkov.net>
* progmodes/grep.el (grep-compute-defaults):
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment