diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/simple.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index a757876328b..17697f9be2b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -8718,6 +8718,21 @@ to capitalize ARG words." | |||
| 8718 | (capitalize-region (region-beginning) (region-end)) | 8718 | (capitalize-region (region-beginning) (region-end)) |
| 8719 | (capitalize-word arg))) | 8719 | (capitalize-word arg))) |
| 8720 | 8720 | ||
| 8721 | (defvar external-standard-input-pushback nil | ||
| 8722 | "Pushback character for `external-standard-input'.") | ||
| 8723 | |||
| 8724 | (defun external-standard-input (&optional char) | ||
| 8725 | "Read a character from the system standard input. | ||
| 8726 | |||
| 8727 | If CHAR is non-nil, then do not read but return CHAR | ||
| 8728 | on the next invocation." | ||
| 8729 | (if char | ||
| 8730 | (setq external-standard-input-pushback char) | ||
| 8731 | (if (eq nil external-standard-input-pushback) | ||
| 8732 | (external-standard-input-read-char) | ||
| 8733 | (let ((rtn external-standard-input-pushback)) | ||
| 8734 | (setq external-standard-input-pushback nil) | ||
| 8735 | rtn)))) | ||
| 8721 | 8736 | ||
| 8722 | 8737 | ||
| 8723 | (provide 'simple) | 8738 | (provide 'simple) |