diff options
| author | Stefan Monnier | 2007-09-20 21:24:47 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-09-20 21:24:47 +0000 |
| commit | f76c8b1ef303f7294c0c4ef0ebe9f9032350ff65 (patch) | |
| tree | ed61dd881afc2246c26adc34d90114ec24249dbe /src | |
| parent | 49e49fb5dd6543c6c21c5a3d9045f3bf3adb55b3 (diff) | |
| download | emacs-f76c8b1ef303f7294c0c4ef0ebe9f9032350ff65.tar.gz emacs-f76c8b1ef303f7294c0c4ef0ebe9f9032350ff65.zip | |
(print_object): Handle terminals.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index cd3d6438bff..a14c041d6a2 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -34,6 +34,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 34 | #include "termchar.h" | 34 | #include "termchar.h" |
| 35 | #include "intervals.h" | 35 | #include "intervals.h" |
| 36 | #include "blockinput.h" | 36 | #include "blockinput.h" |
| 37 | #include "termhooks.h" /* For struct terminal. */ | ||
| 37 | 38 | ||
| 38 | Lisp_Object Vstandard_output, Qstandard_output; | 39 | Lisp_Object Vstandard_output, Qstandard_output; |
| 39 | 40 | ||
| @@ -1965,6 +1966,19 @@ print_object (obj, printcharfun, escapeflag) | |||
| 1965 | } | 1966 | } |
| 1966 | PRINTCHAR ('>'); | 1967 | PRINTCHAR ('>'); |
| 1967 | } | 1968 | } |
| 1969 | else if (TERMINALP (obj)) | ||
| 1970 | { | ||
| 1971 | struct terminal *t = XTERMINAL (obj); | ||
| 1972 | strout ("#<terminal ", -1, -1, printcharfun, 0); | ||
| 1973 | sprintf (buf, "%d", t->id); | ||
| 1974 | strout (buf, -1, -1, printcharfun, 0); | ||
| 1975 | if (t->name) | ||
| 1976 | { | ||
| 1977 | strout (" on ", -1, -1, printcharfun, 0); | ||
| 1978 | strout (t->name, -1, -1, printcharfun, 0); | ||
| 1979 | } | ||
| 1980 | PRINTCHAR ('>'); | ||
| 1981 | } | ||
| 1968 | else if (HASH_TABLE_P (obj)) | 1982 | else if (HASH_TABLE_P (obj)) |
| 1969 | { | 1983 | { |
| 1970 | struct Lisp_Hash_Table *h = XHASH_TABLE (obj); | 1984 | struct Lisp_Hash_Table *h = XHASH_TABLE (obj); |