diff options
| author | Joakim Verona | 2013-08-24 04:36:40 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-24 04:36:40 +0200 |
| commit | 202cca22fe9e2451a8d3cabe0c443ba985289503 (patch) | |
| tree | e81f63d5a3a578ef23839b43b071854d015613a8 /src/process.c | |
| parent | 4bd3d0459af0b4c8ec3128d0d0d67ff2cbc2750d (diff) | |
| parent | 9c05bccfb9cd29ab66b5c46643467671315a0f29 (diff) | |
| download | emacs-202cca22fe9e2451a8d3cabe0c443ba985289503.tar.gz emacs-202cca22fe9e2451a8d3cabe0c443ba985289503.zip | |
merge from trunk
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c index ea1129ffbb8..c5e691bf602 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1140,15 +1140,18 @@ See `set-process-sentinel' for more info on sentinels. */) | |||
| 1140 | DEFUN ("set-process-window-size", Fset_process_window_size, | 1140 | DEFUN ("set-process-window-size", Fset_process_window_size, |
| 1141 | Sset_process_window_size, 3, 3, 0, | 1141 | Sset_process_window_size, 3, 3, 0, |
| 1142 | doc: /* Tell PROCESS that it has logical window size HEIGHT and WIDTH. */) | 1142 | doc: /* Tell PROCESS that it has logical window size HEIGHT and WIDTH. */) |
| 1143 | (register Lisp_Object process, Lisp_Object height, Lisp_Object width) | 1143 | (Lisp_Object process, Lisp_Object height, Lisp_Object width) |
| 1144 | { | 1144 | { |
| 1145 | CHECK_PROCESS (process); | 1145 | CHECK_PROCESS (process); |
| 1146 | CHECK_RANGED_INTEGER (height, 0, INT_MAX); | 1146 | |
| 1147 | CHECK_RANGED_INTEGER (width, 0, INT_MAX); | 1147 | /* All known platforms store window sizes as 'unsigned short'. */ |
| 1148 | CHECK_RANGED_INTEGER (height, 0, USHRT_MAX); | ||
| 1149 | CHECK_RANGED_INTEGER (width, 0, USHRT_MAX); | ||
| 1148 | 1150 | ||
| 1149 | if (XPROCESS (process)->infd < 0 | 1151 | if (XPROCESS (process)->infd < 0 |
| 1150 | || set_window_size (XPROCESS (process)->infd, | 1152 | || (set_window_size (XPROCESS (process)->infd, |
| 1151 | XINT (height), XINT (width)) <= 0) | 1153 | XINT (height), XINT (width)) |
| 1154 | < 0)) | ||
| 1152 | return Qnil; | 1155 | return Qnil; |
| 1153 | else | 1156 | else |
| 1154 | return Qt; | 1157 | return Qt; |