1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00

(unreadchar): Don't back up the pointer when unreading EOF.

This commit is contained in:
Karl Heuer 1994-03-22 22:20:38 +00:00
parent f943104adb
commit 92fddec9eb

View File

@ -165,7 +165,11 @@ unreadchar (readcharfun, c)
Lisp_Object readcharfun;
int c;
{
if (XTYPE (readcharfun) == Lisp_Buffer)
if (c == -1)
/* Don't back up the pointer if we're unreading the end-of-input mark,
since readchar didn't advance it when we read it. */
;
else if (XTYPE (readcharfun) == Lisp_Buffer)
{
if (XBUFFER (readcharfun) == current_buffer)
SET_PT (point - 1);