[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 1a6f595: * src/minibuf.c (read_minibuf): Add a
Re: [Emacs-diffs] master 1a6f595: * src/minibuf.c (read_minibuf): Add a FIXME comment.
Tue, 24 Apr 2018 21:09:50 -0700
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Stefan Monnier wrote:
My guess is that it's because the miniwindow is mostly single-line, so
"prints" usually work better with \n than with LF. I expect that while
there might not be any prin1/print in sight nowadays that probably
hasn't always been the case.
I went back to the earliest (circa 1991) minibuf.c in our repository and
couldn't see a print1/print there either.
Perhaps this dates back to an earlier time when the minibuffer (or at least the
minibuffer prompt) couldn't be multiline, so Emacs wanted to output "\n" rather
than an actual newline when prompting or when echoing data.
Anyway, I doubt whether the code is needed now, as multiline prompts and data
work just fine now in the minibuffer.
I filed a bug report for this (Bug#31251) to give others a chance to comment.