diff options
| author | Leo Liu | 2014-10-09 06:05:48 +0800 |
|---|---|---|
| committer | Leo Liu | 2014-10-09 06:05:48 +0800 |
| commit | 2dbd7a37a809e2dcef6c8e7323ac15c98b051cd9 (patch) | |
| tree | 3325d872642948f831a9acb971a2c06ce7d10b4d /doc | |
| parent | 289a43910e29999f125d76a48602b63cea7ed9b9 (diff) | |
| download | emacs-2dbd7a37a809e2dcef6c8e7323ac15c98b051cd9.tar.gz emacs-2dbd7a37a809e2dcef6c8e7323ac15c98b051cd9.zip | |
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)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/streams.texi | 9 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 5 |
4 files changed, 17 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 510f9e983c3..4d4d0b529cc 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-08 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * streams.texi (Output Functions): Document new argument ENSURE to | ||
| 4 | terpri. (Bug#18652) | ||
| 5 | |||
| 1 | 2014-10-04 Martin Rudalics <rudalics@gmx.at> | 6 | 2014-10-04 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * display.texi (Scroll Bars): Add description of horizontal scroll | 8 | * display.texi (Scroll Bars): Add description of horizontal scroll |
diff --git a/doc/lispref/streams.texi b/doc/lispref/streams.texi index 1d549ae8916..c287b617713 100644 --- a/doc/lispref/streams.texi +++ b/doc/lispref/streams.texi | |||
| @@ -615,10 +615,13 @@ spacing between calls. | |||
| 615 | @end example | 615 | @end example |
| 616 | @end defun | 616 | @end defun |
| 617 | 617 | ||
| 618 | @defun terpri &optional stream | 618 | @defun terpri &optional stream ensure |
| 619 | @cindex newline in print | 619 | @cindex newline in print |
| 620 | This function outputs a newline to @var{stream}. The name stands | 620 | This function outputs a newline to @var{stream}. The name stands for |
| 621 | for ``terminate print''. | 621 | ``terminate print''. If @var{ensure} is non-nil no newline is printed |
| 622 | if @var{stream} is already at the beginning of a line. Note in this | ||
| 623 | case @var{stream} can not be a function and an error is signalled if | ||
| 624 | it is. This function returns @code{t} if a newline is printed. | ||
| 622 | @end defun | 625 | @end defun |
| 623 | 626 | ||
| 624 | @defun write-char character &optional stream | 627 | @defun write-char character &optional stream |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 050c3339c8b..70207de3b3b 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-08 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * cl.texi (Porting Common Lisp): Remove parse-integer. | ||
| 4 | |||
| 1 | 2014-10-06 Ulf Jasper <ulf.jasper@web.de> | 5 | 2014-10-06 Ulf Jasper <ulf.jasper@web.de> |
| 2 | 6 | ||
| 3 | * newsticker.texi (Supported Formats): Fix order of subheading and | 7 | * newsticker.texi (Supported Formats): Fix order of subheading and |
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 04a0e5725e8..c15918afc4e 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -4707,9 +4707,8 @@ exactly the same thing, so this package has not bothered to | |||
| 4707 | implement a Common Lisp-style @code{make-list}. | 4707 | implement a Common Lisp-style @code{make-list}. |
| 4708 | 4708 | ||
| 4709 | @item | 4709 | @item |
| 4710 | A few more notable Common Lisp features not included in this | 4710 | A few more notable Common Lisp features not included in this package: |
| 4711 | package: @code{compiler-let}, @code{tagbody}, @code{prog}, | 4711 | @code{compiler-let}, @code{prog}, @code{ldb/dpb}, @code{cerror}. |
| 4712 | @code{ldb/dpb}, @code{parse-integer}, @code{cerror}. | ||
| 4713 | 4712 | ||
| 4714 | @item | 4713 | @item |
| 4715 | Recursion. While recursion works in Emacs Lisp just like it | 4714 | Recursion. While recursion works in Emacs Lisp just like it |