diff options
| author | Karl Heuer | 1995-03-16 20:23:22 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-16 20:23:22 +0000 |
| commit | 0759c4d083666eecd0cbd903bbdaf761ec39f11f (patch) | |
| tree | 09cd621f5139804d0968a2071983dc50abfb96a6 | |
| parent | f845b8b224e08e8e0e414a2a88547dcaaa731b72 (diff) | |
| download | emacs-0759c4d083666eecd0cbd903bbdaf761ec39f11f.tar.gz emacs-0759c4d083666eecd0cbd903bbdaf761ec39f11f.zip | |
(frame-initialize): Set frame-creation-function to `make-terminal-frame' if
appropriate.
| -rw-r--r-- | lisp/frame.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 88e088abdc7..a53b3c82eda 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -187,12 +187,15 @@ These supersede the values given in `default-frame-alist'.") | |||
| 187 | (delete-frame terminal-frame) | 187 | (delete-frame terminal-frame) |
| 188 | (setq terminal-frame nil)) | 188 | (setq terminal-frame nil)) |
| 189 | 189 | ||
| 190 | ;; No, we're not running a window system. Arrange to cause errors. | 190 | ;; No, we're not running a window system. Use make-terminal-frame if |
| 191 | ;; we support that feature, otherwise arrange to cause errors. | ||
| 191 | (setq frame-creation-function | 192 | (setq frame-creation-function |
| 192 | (function | 193 | (if (fboundp 'make-terminal-frame) |
| 193 | (lambda (parameters) | 194 | 'make-terminal-frame |
| 194 | (error | 195 | (function |
| 195 | "Can't create multiple frames without a window system")))))) | 196 | (lambda (parameters) |
| 197 | (error | ||
| 198 | "Can't create multiple frames without a window system"))))))) | ||
| 196 | 199 | ||
| 197 | ;;; startup.el calls this function after loading the user's init | 200 | ;;; startup.el calls this function after loading the user's init |
| 198 | ;;; file. Now default-frame-alist and initial-frame-alist contain | 201 | ;;; file. Now default-frame-alist and initial-frame-alist contain |