diff options
| -rw-r--r-- | lisp/emulation/edt.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index a07c4159190..613c40af3a5 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -1990,21 +1990,25 @@ G-C-\\: Split Window | FNDNXT | Yank | CUT | | |||
| 1990 | (edt-electric-helpify 'edt-user-keypad-help)) | 1990 | (edt-electric-helpify 'edt-user-keypad-help)) |
| 1991 | 1991 | ||
| 1992 | ;;; | 1992 | ;;; |
| 1993 | ;;; Generic EDT emulation screen width commands. | 1993 | ;;; EDT emulation screen width commands. |
| 1994 | ;;; | 1994 | ;;; |
| 1995 | ;; If modification of terminal attributes is desired when invoking these | 1995 | ;; Some terminals require modification of terminal attributes when changing the |
| 1996 | ;; commands, then the corresponding terminal specific file will contain a | 1996 | ;; number of columns displayed, hence the fboundp tests below. These functions |
| 1997 | ;; re-definition of these commands. | 1997 | ;; are defined in the corresponding terminal specific file, if needed. |
| 1998 | 1998 | ||
| 1999 | (defun edt-set-screen-width-80 () | 1999 | (defun edt-set-screen-width-80 () |
| 2000 | "Set screen width to 80 columns." | 2000 | "Set screen width to 80 columns." |
| 2001 | (interactive) | 2001 | (interactive) |
| 2002 | (if (fboundp 'edt-set-term-width-80) | ||
| 2003 | (edt-set-term-width-80)) | ||
| 2002 | (set-screen-width 80) | 2004 | (set-screen-width 80) |
| 2003 | (message "Screen width 80")) | 2005 | (message "Screen width 80")) |
| 2004 | 2006 | ||
| 2005 | (defun edt-set-screen-width-132 () | 2007 | (defun edt-set-screen-width-132 () |
| 2006 | "Set screen width to 132 columns." | 2008 | "Set screen width to 132 columns." |
| 2007 | (interactive) | 2009 | (interactive) |
| 2010 | (if (fboundp 'edt-set-term-width-132) | ||
| 2011 | (edt-set-term-width-132)) | ||
| 2008 | (set-screen-width 132) | 2012 | (set-screen-width 132) |
| 2009 | (message "Screen width 132")) | 2013 | (message "Screen width 132")) |
| 2010 | 2014 | ||