diff options
| author | Eli Zaretskii | 1997-11-20 15:55:31 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1997-11-20 15:55:31 +0000 |
| commit | 7777d03b3441c5787cc100163f7b44f5c846cc68 (patch) | |
| tree | d1f6b5452b3fce8e6db8ddc2f99d24729d55eae6 | |
| parent | e5317d612688c235216e798521a3a199b315817b (diff) | |
| download | emacs-7777d03b3441c5787cc100163f7b44f5c846cc68.tar.gz emacs-7777d03b3441c5787cc100163f7b44f5c846cc68.zip | |
(set-frame-name): New function.
| -rw-r--r-- | lisp/frame.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 96d103e1229..e4531a3d15a 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -675,6 +675,14 @@ that is beyond the control of Emacs and this command has no effect on it." | |||
| 675 | -1 1))) | 675 | -1 1))) |
| 676 | (modify-frame-parameters (selected-frame) | 676 | (modify-frame-parameters (selected-frame) |
| 677 | (list (cons 'auto-lower (> arg 0))))) | 677 | (list (cons 'auto-lower (> arg 0))))) |
| 678 | (defun set-frame-name (name) | ||
| 679 | "Set the name of the selected frame to NAME. | ||
| 680 | When called interactively, prompt for the name of the frame. | ||
| 681 | The frame name is displayed on the modeline if the terminal displays only | ||
| 682 | one frame, otherwise the name is displayed on the frame's caption bar." | ||
| 683 | (interactive "sFrame name: ") | ||
| 684 | (modify-frame-parameters (selected-frame) | ||
| 685 | (list (cons 'name name)))) | ||
| 678 | 686 | ||
| 679 | ;;;; Aliases for backward compatibility with Emacs 18. | 687 | ;;;; Aliases for backward compatibility with Emacs 18. |
| 680 | (defalias 'screen-height 'frame-height) | 688 | (defalias 'screen-height 'frame-height) |