aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2014-11-19 00:23:47 +0200
committerJuri Linkov2014-11-19 00:23:47 +0200
commit4a306d701b0dbe860c8ced70e0d93bd3129f0665 (patch)
treeed810860abb174661610c0bec4affb0f2e265f84
parent239aa11e1eeb1aa7a1247c40cfac2fe43b715e25 (diff)
downloademacs-4a306d701b0dbe860c8ced70e0d93bd3129f0665.tar.gz
emacs-4a306d701b0dbe860c8ced70e0d93bd3129f0665.zip
* 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.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/simple.el6
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7763d257224..8b7f62a306e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12014-11-18 Juri Linkov <juri@linkov.net> 12014-11-18 Juri Linkov <juri@linkov.net>
2 2
3 * simple.el (next-line-or-history-element): Wrap next-line
4 in with-no-warnings.
5 (previous-line-or-history-element): Wrap previous-line
6 in with-no-warnings.
7
82014-11-18 Juri Linkov <juri@linkov.net>
9
3 * progmodes/grep.el (grep-compute-defaults): 10 * progmodes/grep.el (grep-compute-defaults):
4 Compute grep-highlight-matches before its use. 11 Compute grep-highlight-matches before its use.
5 12
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."
1992 (or arg (setq arg 1)) 1992 (or arg (setq arg 1))
1993 (let ((old-point (point))) 1993 (let ((old-point (point)))
1994 (condition-case nil 1994 (condition-case nil
1995 (next-line arg) 1995 (with-no-warnings
1996 (next-line arg))
1996 (end-of-buffer 1997 (end-of-buffer
1997 ;; Restore old position since `line-move-visual' moves point to 1998 ;; Restore old position since `line-move-visual' moves point to
1998 ;; the end of the line when it fails to go to the next line. 1999 ;; 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."
2007 (or arg (setq arg 1)) 2008 (or arg (setq arg 1))
2008 (let ((old-point (point))) 2009 (let ((old-point (point)))
2009 (condition-case nil 2010 (condition-case nil
2010 (previous-line arg) 2011 (with-no-warnings
2012 (previous-line arg))
2011 (beginning-of-buffer 2013 (beginning-of-buffer
2012 ;; Restore old position since `line-move-visual' moves point to 2014 ;; Restore old position since `line-move-visual' moves point to
2013 ;; the beginning of the line when it fails to go to the previous line. 2015 ;; the beginning of the line when it fails to go to the previous line.