diff options
| -rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 4704dd1e99e..f97a2e40f71 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1833,14 +1833,14 @@ is allowed once again." | |||
| 1833 | (defmacro while-no-input (&rest body) | 1833 | (defmacro while-no-input (&rest body) |
| 1834 | "Execute BODY only as long as there's no pending input. | 1834 | "Execute BODY only as long as there's no pending input. |
| 1835 | If input arrives, that ends the execution of BODY, | 1835 | If input arrives, that ends the execution of BODY, |
| 1836 | and `while-no-input' returns nil. If BODY finishes, | 1836 | and `while-no-input' returns t. Quitting makes it return nil. |
| 1837 | `while-no-input' returns whatever value BODY produced." | 1837 | If BODY finishes, `while-no-input' returns whatever value BODY produced." |
| 1838 | (declare (debug t) (indent 0)) | 1838 | (declare (debug t) (indent 0)) |
| 1839 | (let ((catch-sym (make-symbol "input"))) | 1839 | (let ((catch-sym (make-symbol "input"))) |
| 1840 | `(with-local-quit | 1840 | `(with-local-quit |
| 1841 | (catch ',catch-sym | 1841 | (catch ',catch-sym |
| 1842 | (let ((throw-on-input ',catch-sym)) | 1842 | (let ((throw-on-input ',catch-sym)) |
| 1843 | (when (sit-for 0 0 t) | 1843 | (or (not (sit-for 0 0 t)) |
| 1844 | ,@body)))))) | 1844 | ,@body)))))) |
| 1845 | 1845 | ||
| 1846 | (defmacro combine-after-change-calls (&rest body) | 1846 | (defmacro combine-after-change-calls (&rest body) |