diff options
| author | Kenichi Handa | 2000-07-26 04:12:42 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-07-26 04:12:42 +0000 |
| commit | d6ac884e3492c15c16a6a90d7095743e7de6b97e (patch) | |
| tree | 410e3a5b53042368228e783fde49cd7859762cd7 /src | |
| parent | 13f5ad37f539a65031923a6a79be6cb763e24a50 (diff) | |
| download | emacs-d6ac884e3492c15c16a6a90d7095743e7de6b97e.tar.gz emacs-d6ac884e3492c15c16a6a90d7095743e7de6b97e.zip | |
(print_object): If vector printing is truncated, print "..." to
indicate it as well as the case of list printing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index debd6c67f98..85b508a50b4 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1718,6 +1718,7 @@ print_object (obj, printcharfun, escapeflag) | |||
| 1718 | { | 1718 | { |
| 1719 | register int i; | 1719 | register int i; |
| 1720 | register Lisp_Object tem; | 1720 | register Lisp_Object tem; |
| 1721 | int real_size = size; | ||
| 1721 | 1722 | ||
| 1722 | /* Don't print more elements than the specified maximum. */ | 1723 | /* Don't print more elements than the specified maximum. */ |
| 1723 | if (NATNUMP (Vprint_length) | 1724 | if (NATNUMP (Vprint_length) |
| @@ -1730,6 +1731,8 @@ print_object (obj, printcharfun, escapeflag) | |||
| 1730 | tem = XVECTOR (obj)->contents[i]; | 1731 | tem = XVECTOR (obj)->contents[i]; |
| 1731 | print_object (tem, printcharfun, escapeflag); | 1732 | print_object (tem, printcharfun, escapeflag); |
| 1732 | } | 1733 | } |
| 1734 | if (size < real_size) | ||
| 1735 | strout (" ...", 4, 4, printcharfun, 0); | ||
| 1733 | } | 1736 | } |
| 1734 | PRINTCHAR (']'); | 1737 | PRINTCHAR (']'); |
| 1735 | } | 1738 | } |