From: Eli Zaretskii Date: Sun, 10 Jul 2016 19:06:57 +0000 (+0300) Subject: Fix 'vertical-motion' in non-interactive sessions X-Git-Tag: emacs-25.1-rc1~30 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=658daf9;p=emacs.git Fix 'vertical-motion' in non-interactive sessions * src/indent.c (Fvertical_motion): Don't return uninitialized value in non-interactive session. This fixes random errors in batch mode, see http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00609.html and http://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00500.html for the details. --- diff --git a/src/indent.c b/src/indent.c index 0ef8903501d..578dac83df5 100644 --- a/src/indent.c +++ b/src/indent.c @@ -2027,6 +2027,7 @@ whether or not it is currently displayed in some window. */) struct position pos; pos = *vmotion (PT, PT_BYTE, XINT (lines), w); SET_PT_BOTH (pos.bufpos, pos.bytepos); + it.vpos = pos.vpos; } else {