Mercurial > emacs
comparison lisp/emulation/edt.el @ 13058:1d26583f8c2b
(edt-set-screen-width-80, edt-set-screen-width-132):
If a terminal-specific function exists, call it.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 21 Sep 1995 21:06:09 +0000 |
parents | 1e09e8fd3384 |
children | 717fa3c6e815 |
comparison
equal
deleted
inserted
replaced
13057:5c78211aa9e0 | 13058:1d26583f8c2b |
---|---|
1988 "Display user custom EDT bindings." | 1988 "Display user custom EDT bindings." |
1989 (interactive) | 1989 (interactive) |
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 |
2011 (provide 'edt) | 2015 (provide 'edt) |
2012 | 2016 |