aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-20 17:54:26 +0000
committerJuanma Barranquero2005-07-20 17:54:26 +0000
commit84ed1560ca412130e3e0ddf3ab3fb6819f51c84f (patch)
tree7675bbb788bd3492da69f0b74d6e482c99af371a /lisp
parented6565df54a38fb05dd7816ddafef6f4f4a0ea3a (diff)
downloademacs-84ed1560ca412130e3e0ddf3ab3fb6819f51c84f.tar.gz
emacs-84ed1560ca412130e3e0ddf3ab3fb6819f51c84f.zip
(set-frame-font, cursor-in-non-selected-windows): Fix typo in docstring.
(set-screen-width, set-screen-height): Delete redundant info in doctrings. (new-frame, screen-height, screen-width): Declare with `define-obsolete-function-alias'. (delete-frame-hook, blink-cursor): Declare with `define-obsolete-variable-alias'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/frame.el30
1 files changed, 12 insertions, 18 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 5496c857af0..e416817d185 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -592,8 +592,7 @@ The functions are run with one arg, the newly created frame.")
592 "Functions to run after a frame's font has been changed.") 592 "Functions to run after a frame's font has been changed.")
593 593
594;; Alias, kept temporarily. 594;; Alias, kept temporarily.
595(defalias 'new-frame 'make-frame) 595(define-obsolete-function-alias 'new-frame 'make-frame "22.1")
596(make-obsolete 'new-frame 'make-frame "22.1")
597 596
598(defun make-frame (&optional parameters) 597(defun make-frame (&optional parameters)
599 "Return a newly created frame displaying the current buffer. 598 "Return a newly created frame displaying the current buffer.
@@ -851,7 +850,7 @@ When called interactively, prompt for the name of the font to use.
851To get the frame's current default font, use `frame-parameters'. 850To get the frame's current default font, use `frame-parameters'.
852 851
853The default behavior is to keep the numbers of lines and columns in 852The default behavior is to keep the numbers of lines and columns in
854the frame, thus may change its pixel size. If optional KEEP-SIZE is 853the frame, thus may change its pixel size. If optional KEEP-SIZE is
855non-nil (interactively, prefix argument) the current frame size (in 854non-nil (interactively, prefix argument) the current frame size (in
856pixels) is kept by adjusting the numbers of the lines and columns." 855pixels) is kept by adjusting the numbers of the lines and columns."
857 (interactive 856 (interactive
@@ -1149,23 +1148,21 @@ The value is one of the symbols `static-gray', `gray-scale',
1149 1148
1150 1149
1151;;;; Aliases for backward compatibility with Emacs 18. 1150;;;; Aliases for backward compatibility with Emacs 18.
1152(defalias 'screen-height 'frame-height) 1151(define-obsolete-function-alias 'screen-height 'frame-height) ;before 19.15
1153(defalias 'screen-width 'frame-width) 1152(define-obsolete-function-alias 'screen-width 'frame-width) ;before 19.15
1154 1153
1155(defun set-screen-width (cols &optional pretend) 1154(defun set-screen-width (cols &optional pretend)
1156 "Obsolete function to change the size of the screen to COLS columns. 1155 "Change the size of the screen to COLS columns.
1157Optional second arg non-nil means that redisplay should use COLS columns 1156Optional second arg non-nil means that redisplay should use COLS columns
1158but that the idea of the actual width of the frame should not be changed. 1157but that the idea of the actual width of the frame should not be changed.
1159This function is provided only for compatibility with Emacs 18; new code 1158This function is provided only for compatibility with Emacs 18."
1160should use `set-frame-width instead'."
1161 (set-frame-width (selected-frame) cols pretend)) 1159 (set-frame-width (selected-frame) cols pretend))
1162 1160
1163(defun set-screen-height (lines &optional pretend) 1161(defun set-screen-height (lines &optional pretend)
1164 "Obsolete function to change the height of the screen to LINES lines. 1162 "Change the height of the screen to LINES lines.
1165Optional second arg non-nil means that redisplay should use LINES lines 1163Optional second arg non-nil means that redisplay should use LINES lines
1166but that the idea of the actual height of the screen should not be changed. 1164but that the idea of the actual height of the screen should not be changed.
1167This function is provided only for compatibility with Emacs 18; new code 1165This function is provided only for compatibility with Emacs 18."
1168should use `set-frame-height' instead."
1169 (set-frame-height (selected-frame) lines pretend)) 1166 (set-frame-height (selected-frame) lines pretend))
1170 1167
1171(defun delete-other-frames (&optional frame) 1168(defun delete-other-frames (&optional frame)
@@ -1188,14 +1185,12 @@ left untouched. FRAME nil or omitted means use the selected frame."
1188 (when (eq (frame-parameter frame 'minibuffer) 'only) 1185 (when (eq (frame-parameter frame 'minibuffer) 'only)
1189 (delete-frame frame))))) 1186 (delete-frame frame)))))
1190 1187
1191(make-obsolete 'screen-height 'frame-height) ;before 19.15
1192(make-obsolete 'screen-width 'frame-width) ;before 19.15
1193(make-obsolete 'set-screen-width 'set-frame-width) ;before 19.15 1188(make-obsolete 'set-screen-width 'set-frame-width) ;before 19.15
1194(make-obsolete 'set-screen-height 'set-frame-height) ;before 19.15 1189(make-obsolete 'set-screen-height 'set-frame-height) ;before 19.15
1195 1190
1196;; miscellaneous obsolescence declarations 1191;; miscellaneous obsolescence declarations
1197(defvaralias 'delete-frame-hook 'delete-frame-functions) 1192(define-obsolete-variable-alias 'delete-frame-hook
1198(make-obsolete-variable 'delete-frame-hook 'delete-frame-functions "22.1") 1193 'delete-frame-functions "22.1")
1199 1194
1200 1195
1201;; Highlighting trailing whitespace. 1196;; Highlighting trailing whitespace.
@@ -1286,8 +1281,7 @@ cursor display. On a text-only terminal, this is not implemented."
1286 'blink-cursor-start))) 1281 'blink-cursor-start)))
1287 (internal-show-cursor nil t))) 1282 (internal-show-cursor nil t)))
1288 1283
1289(defvaralias 'blink-cursor 'blink-cursor-mode) 1284(define-obsolete-variable-alias 'blink-cursor 'blink-cursor-mode "22.1")
1290(make-obsolete-variable 'blink-cursor 'blink-cursor-mode "22.1")
1291 1285
1292(defun blink-cursor-start () 1286(defun blink-cursor-start ()
1293 "Timer function called from the timer `blink-cursor-idle-timer'. 1287 "Timer function called from the timer `blink-cursor-idle-timer'.
@@ -1333,7 +1327,7 @@ itself as a pre-command hook."
1333 1327
1334 1328
1335(defcustom cursor-in-non-selected-windows t 1329(defcustom cursor-in-non-selected-windows t
1336 "*Non-nil means show a hollow box cursor in non-selected-windows. 1330 "*Non-nil means show a hollow box cursor in non-selected windows.
1337If nil, don't show a cursor except in the selected window. 1331If nil, don't show a cursor except in the selected window.
1338Use Custom to set this variable to get the display updated." 1332Use Custom to set this variable to get the display updated."
1339 :tag "Cursor in non-selected windows" 1333 :tag "Cursor in non-selected windows"