aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2016-07-10 22:06:57 +0300
committerEli Zaretskii2016-07-10 22:06:57 +0300
commit658daf93e295dd00048d15001335f58f91e679f6 (patch)
treebf0eb0f294bb242ec0e54a6faca004d16e794bb5 /src
parent686b520ff9ae25f9fa293a92e65b9331e192d142 (diff)
downloademacs-658daf93e295dd00048d15001335f58f91e679f6.tar.gz
emacs-658daf93e295dd00048d15001335f58f91e679f6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c1
1 files changed, 1 insertions, 0 deletions
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. */)
2027 struct position pos; 2027 struct position pos;
2028 pos = *vmotion (PT, PT_BYTE, XINT (lines), w); 2028 pos = *vmotion (PT, PT_BYTE, XINT (lines), w);
2029 SET_PT_BOTH (pos.bufpos, pos.bytepos); 2029 SET_PT_BOTH (pos.bufpos, pos.bytepos);
2030 it.vpos = pos.vpos;
2030 } 2031 }
2031 else 2032 else
2032 { 2033 {