diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/simple.el | 6 |
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 @@ | |||
| 1 | 2014-11-18 Juri Linkov <juri@linkov.net> | 1 | 2014-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 | |||
| 8 | 2014-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. |