diff options
| author | Stefan Monnier | 2010-08-03 00:35:38 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-08-03 00:35:38 +0200 |
| commit | 548c5c47f1636e7acf9ee85ddce62c36dc68efe7 (patch) | |
| tree | b7231928af74dfebf3337459537d8431931aaba2 | |
| parent | 4d464ae4d6970592730a50ed716499c46931a5a4 (diff) | |
| download | emacs-548c5c47f1636e7acf9ee85ddce62c36dc68efe7.tar.gz emacs-548c5c47f1636e7acf9ee85ddce62c36dc68efe7.zip | |
* lisp/frame.el (screen-height, screen-width, set-screen-width)
(set-screen-height): Remove ancient compatibility aliases.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/frame.el | 20 |
2 files changed, 3 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e475a152e38..60a1b8a3f18 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-08-02 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2010-08-02 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * frame.el (screen-height, screen-width, set-screen-width) | ||
| 4 | (set-screen-height): Remove ancient compatibility aliases. | ||
| 5 | |||
| 3 | * textmodes/fill.el (justify-current-line): Don't add 1 to nspaces | 6 | * textmodes/fill.el (justify-current-line): Don't add 1 to nspaces |
| 4 | when justifying. It seems useless and harmful for ncols=1 (bug#6738). | 7 | when justifying. It seems useless and harmful for ncols=1 (bug#6738). |
| 5 | 8 | ||
diff --git a/lisp/frame.el b/lisp/frame.el index 534d6a2b4e7..8b5be93791e 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1431,23 +1431,6 @@ In the 3rd, 4th, and 6th examples, the returned value is relative to | |||
| 1431 | the opposite frame edge from the edge indicated in the input spec." | 1431 | the opposite frame edge from the edge indicated in the input spec." |
| 1432 | (cons (car spec) (frame-geom-value-cons (car spec) (cdr spec)))) | 1432 | (cons (car spec) (frame-geom-value-cons (car spec) (cdr spec)))) |
| 1433 | 1433 | ||
| 1434 | ;;;; Aliases for backward compatibility with Emacs 18. | ||
| 1435 | (define-obsolete-function-alias 'screen-height 'frame-height "19.7") | ||
| 1436 | (define-obsolete-function-alias 'screen-width 'frame-width "19.7") | ||
| 1437 | |||
| 1438 | (defun set-screen-width (cols &optional pretend) | ||
| 1439 | "Change the size of the screen to COLS columns. | ||
| 1440 | Optional second arg non-nil means that redisplay should use COLS columns | ||
| 1441 | but that the idea of the actual width of the frame should not be changed. | ||
| 1442 | This function is provided only for compatibility with Emacs 18." | ||
| 1443 | (set-frame-width (selected-frame) cols pretend)) | ||
| 1444 | |||
| 1445 | (defun set-screen-height (lines &optional pretend) | ||
| 1446 | "Change the height of the screen to LINES lines. | ||
| 1447 | Optional second arg non-nil means that redisplay should use LINES lines | ||
| 1448 | but that the idea of the actual height of the screen should not be changed. | ||
| 1449 | This function is provided only for compatibility with Emacs 18." | ||
| 1450 | (set-frame-height (selected-frame) lines pretend)) | ||
| 1451 | 1434 | ||
| 1452 | (defun delete-other-frames (&optional frame) | 1435 | (defun delete-other-frames (&optional frame) |
| 1453 | "Delete all frames except FRAME. | 1436 | "Delete all frames except FRAME. |
| @@ -1473,9 +1456,6 @@ left untouched. FRAME nil or omitted means use the selected frame." | |||
| 1473 | (when (eq (frame-parameter frame 'minibuffer) 'only) | 1456 | (when (eq (frame-parameter frame 'minibuffer) 'only) |
| 1474 | (delete-frame frame))))) | 1457 | (delete-frame frame))))) |
| 1475 | 1458 | ||
| 1476 | (make-obsolete 'set-screen-width 'set-frame-width "19.7") | ||
| 1477 | (make-obsolete 'set-screen-height 'set-frame-height "19.7") | ||
| 1478 | |||
| 1479 | ;; miscellaneous obsolescence declarations | 1459 | ;; miscellaneous obsolescence declarations |
| 1480 | (define-obsolete-variable-alias 'delete-frame-hook | 1460 | (define-obsolete-variable-alias 'delete-frame-hook |
| 1481 | 'delete-frame-functions "22.1") | 1461 | 'delete-frame-functions "22.1") |