[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r106231: Fixes: debbugs:9903
From: |
Andreas Schwab |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r106231: Fixes: debbugs:9903 |
Date: |
Sat, 29 Oct 2011 10:54:06 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 106231
committer: Andreas Schwab <address@hidden>
branch nick: emacs
timestamp: Sat 2011-10-29 10:54:06 +0200
message:
Fixes: debbugs:9903
* src/minibuf.c (read_minibuf_noninteractive): Allow reading empty
line.
modified:
src/ChangeLog
src/minibuf.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-10-29 00:12:02 +0000
+++ b/src/ChangeLog 2011-10-29 08:54:06 +0000
@@ -1,3 +1,8 @@
+2011-10-29 Andreas Schwab <address@hidden>
+
+ * minibuf.c (read_minibuf_noninteractive): Allow reading empty
+ line. (Bug#9903)
+
2011-10-29 Glenn Morris <address@hidden>
* process.c (wait_reading_process_output): Revert 2009-08-30 change.
=== modified file 'src/minibuf.c'
--- a/src/minibuf.c 2011-10-11 17:32:38 +0000
+++ b/src/minibuf.c 2011-10-29 08:54:06 +0000
@@ -251,7 +251,7 @@
while ((c = getchar ()) != '\n')
{
- if (c < 0)
+ if (c == EOF)
{
if (errno != EINTR)
break;
@@ -269,7 +269,7 @@
}
}
- if (len)
+ if (len || c == '\n')
{
val = make_string (line, len);
xfree (line);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r106231: Fixes: debbugs:9903,
Andreas Schwab <=