diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/term.c | 18 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 7c1c6f3f463..3fc685d58c7 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -10193,7 +10193,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 10193 | struct gcpro gcpro1; | 10193 | struct gcpro gcpro1; |
| 10194 | 10194 | ||
| 10195 | if (tty_list && tty_list->next) | 10195 | if (tty_list && tty_list->next) |
| 10196 | error ("Suspend is not supported with multiple ttys"); | 10196 | error ("There are other tty frames open; close them before suspending Emacs"); |
| 10197 | 10197 | ||
| 10198 | if (!NILP (stuffstring)) | 10198 | if (!NILP (stuffstring)) |
| 10199 | CHECK_STRING (stuffstring); | 10199 | CHECK_STRING (stuffstring); |
diff --git a/src/term.c b/src/term.c index 629c823e8b2..899829ebadb 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2197,7 +2197,6 @@ frame's display). */) | |||
| 2197 | return Qnil; | 2197 | return Qnil; |
| 2198 | } | 2198 | } |
| 2199 | 2199 | ||
| 2200 | |||
| 2201 | DEFUN ("display-tty-type", Fdisplay_tty_type, Sdisplay_tty_type, 0, 1, 0, | 2200 | DEFUN ("display-tty-type", Fdisplay_tty_type, Sdisplay_tty_type, 0, 1, 0, |
| 2202 | doc: /* Return the type of the TTY device that DISPLAY uses. */) | 2201 | doc: /* Return the type of the TTY device that DISPLAY uses. */) |
| 2203 | (display) | 2202 | (display) |
| @@ -2216,6 +2215,22 @@ DEFUN ("display-tty-type", Fdisplay_tty_type, Sdisplay_tty_type, 0, 1, 0, | |||
| 2216 | return Qnil; | 2215 | return Qnil; |
| 2217 | } | 2216 | } |
| 2218 | 2217 | ||
| 2218 | DEFUN ("display-controlling-tty-p", Fdisplay_controlling_tty_p, Sdisplay_controlling_tty_p, 0, 1, 0, | ||
| 2219 | doc: /* Return non-nil if DISPLAY is on the controlling tty of the Emacs process. */) | ||
| 2220 | (display) | ||
| 2221 | Lisp_Object display; | ||
| 2222 | { | ||
| 2223 | struct display *d = get_display (display); | ||
| 2224 | |||
| 2225 | if (!d) | ||
| 2226 | wrong_type_argument (Qdisplay_live_p, display); | ||
| 2227 | |||
| 2228 | if (d->type != output_termcap || d->display_info.tty->name) | ||
| 2229 | return Qnil; | ||
| 2230 | else | ||
| 2231 | return Qt; | ||
| 2232 | } | ||
| 2233 | |||
| 2219 | 2234 | ||
| 2220 | /*********************************************************************** | 2235 | /*********************************************************************** |
| 2221 | Initialization | 2236 | Initialization |
| @@ -3363,6 +3378,7 @@ See `resume-tty'. */); | |||
| 3363 | defsubr (&Stty_display_color_cells); | 3378 | defsubr (&Stty_display_color_cells); |
| 3364 | defsubr (&Sdisplay_name); | 3379 | defsubr (&Sdisplay_name); |
| 3365 | defsubr (&Sdisplay_tty_type); | 3380 | defsubr (&Sdisplay_tty_type); |
| 3381 | defsubr (&Sdisplay_controlling_tty_p); | ||
| 3366 | defsubr (&Sdelete_display); | 3382 | defsubr (&Sdelete_display); |
| 3367 | defsubr (&Sdisplay_live_p); | 3383 | defsubr (&Sdisplay_live_p); |
| 3368 | defsubr (&Sdisplay_list); | 3384 | defsubr (&Sdisplay_list); |