]> git.eshelyaron.com Git - emacs.git/commit
Enhance terpri to allow conditionally output a newline
authorLeo Liu <sdl.web@gmail.com>
Wed, 8 Oct 2014 22:05:48 +0000 (06:05 +0800)
committerLeo Liu <sdl.web@gmail.com>
Wed, 8 Oct 2014 22:05:48 +0000 (06:05 +0800)
commit2dbd7a37a809e2dcef6c8e7323ac15c98b051cd9
tree3325d872642948f831a9acb971a2c06ce7d10b4d
parent289a43910e29999f125d76a48602b63cea7ed9b9
Enhance terpri to allow conditionally output a newline

* doc/lispref/streams.texi (Output Functions): Document new argument ENSURE to
terpri.

* doc/misc/cl.texi (Porting Common Lisp): Remove parse-integer.

* lisp/emacs-lisp/cl-extra.el (cl-fresh-line): New function.

* src/keymap.c (describe_vector_princ):
* src/keyboard.c (Fcommand_error_default_function): Adapt to change to
Fterpri.

* src/print.c (printchar_stdout_last): Declare.
(printchar): Record the last char written to stdout.
(Fterpri): Add optional argument ENSURE.

* test/automated/print-tests.el: New file.
(terpri): Tests for terpri.  (Bug#18652)
12 files changed:
doc/lispref/ChangeLog
doc/lispref/streams.texi
doc/misc/ChangeLog
doc/misc/cl.texi
lisp/ChangeLog
lisp/emacs-lisp/cl-extra.el
src/ChangeLog
src/keyboard.c
src/keymap.c
src/print.c
test/ChangeLog
test/automated/print-tests.el [new file with mode: 0644]