diff options
| author | Richard M. Stallman | 1994-05-02 07:51:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-02 07:51:29 +0000 |
| commit | 24ba360bb3db246d9a8129f9252419a62f1a7348 (patch) | |
| tree | 4385fe9a298c849b97c9c210606b7f6a03a9e9e9 /src | |
| parent | 52ed2dada021c978056b460e1c9c6998217b839e (diff) | |
| download | emacs-24ba360bb3db246d9a8129f9252419a62f1a7348.tar.gz emacs-24ba360bb3db246d9a8129f9252419a62f1a7348.zip | |
Finish downcasing mouse_init1, mouse_off,
mouse_check_moved, mouse_pressed, mouse_released, mouse_on, mouse_init.
(Fmode25, Fmode4350): Clean up the coding and return a well-defined value.
(syms_of_dosfns): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dosfns.c | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/src/dosfns.c b/src/dosfns.c index 60ed6ae7f07..3eeb08c1c9c 100644 --- a/src/dosfns.c +++ b/src/dosfns.c | |||
| @@ -34,20 +34,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 34 | #include "dosfns.h" | 34 | #include "dosfns.h" |
| 35 | #include "msdos.h" | 35 | #include "msdos.h" |
| 36 | 36 | ||
| 37 | static void | 37 | DEFUN ("mode25", Fmode25, Smode25, 0, 0, "", "\ |
| 38 | mode_resetsize () | 38 | Changes the number of rows to 25.") |
| 39 | { | ||
| 40 | Fset_screen_width (ScreenCols (), Qnil); | ||
| 41 | Fset_screen_height (ScreenRows (), Qnil); | ||
| 42 | } | ||
| 43 | |||
| 44 | DEFUN ("mode25", Fmode25, Smode25, 0, 0, "", | ||
| 45 | "Set the number of rows to 25.") | ||
| 46 | () | 39 | () |
| 47 | { | 40 | { |
| 48 | union REGS regs; | 41 | union REGS regs; |
| 49 | 42 | ||
| 50 | if (have_mouse) Mouse_off (); | 43 | #ifdef HAVE_X_WINDOWS |
| 44 | if (!inhibit_window_system) | ||
| 45 | return Qnil; | ||
| 46 | #endif | ||
| 47 | if (have_mouse) mouse_off (); | ||
| 51 | regs.x.ax = 3; | 48 | regs.x.ax = 3; |
| 52 | int86 (0x10, ®s, ®s); | 49 | int86 (0x10, ®s, ®s); |
| 53 | regs.x.ax = 0x1101; | 50 | regs.x.ax = 0x1101; |
| @@ -58,19 +55,24 @@ DEFUN ("mode25", Fmode25, Smode25, 0, 0, "", | |||
| 58 | int86 (0x10, ®s, ®s); | 55 | int86 (0x10, ®s, ®s); |
| 59 | regs.x.ax = 3; | 56 | regs.x.ax = 3; |
| 60 | int86 (0x10, ®s, ®s); | 57 | int86 (0x10, ®s, ®s); |
| 61 | mode_resetsize (); | 58 | Fset_frame_size (Fselected_frame (), ScreenCols (), ScreenRows ()); |
| 62 | Frecenter (Qnil); | 59 | Frecenter (Qnil); |
| 63 | Fredraw_display (); | 60 | Fredraw_display (); |
| 64 | if (have_mouse) Mouse_init (); | 61 | if (have_mouse) mouse_init (); |
| 62 | return Qnil; | ||
| 65 | } | 63 | } |
| 66 | 64 | ||
| 67 | DEFUN ("mode4350", Fmode4350, Smode4350, 0, 0, "", | 65 | DEFUN ("mode4350", Fmode4350, Smode4350, 0, 0, "", "\ |
| 68 | "Set the number of rows to 43 (EGA) or 50 (VGA).") | 66 | Changes the number of rows to 43 (EGA) or 50 (VGA).") |
| 69 | () | 67 | () |
| 70 | { | 68 | { |
| 71 | union REGS regs; | 69 | union REGS regs; |
| 72 | 70 | ||
| 73 | if (have_mouse) Mouse_off (); | 71 | #ifdef HAVE_X_WINDOWS |
| 72 | if (!inhibit_window_system) | ||
| 73 | return Qnil; | ||
| 74 | #endif | ||
| 75 | if (have_mouse) mouse_off (); | ||
| 74 | regs.x.ax = 3; | 76 | regs.x.ax = 3; |
| 75 | int86 (0x10, ®s, ®s); | 77 | int86 (0x10, ®s, ®s); |
| 76 | regs.x.ax = 0x1112; | 78 | regs.x.ax = 0x1112; |
| @@ -82,10 +84,11 @@ DEFUN ("mode4350", Fmode4350, Smode4350, 0, 0, "", | |||
| 82 | regs.x.ax = 0x0100; | 84 | regs.x.ax = 0x0100; |
| 83 | regs.x.cx = 7; | 85 | regs.x.cx = 7; |
| 84 | int86 (0x10, ®s, ®s); | 86 | int86 (0x10, ®s, ®s); |
| 85 | mode_resetsize (); | 87 | Fset_frame_size (Fselected_frame (), ScreenCols (), ScreenRows ()); |
| 86 | Frecenter (Qnil); | 88 | Frecenter (Qnil); |
| 87 | Fredraw_display (); | 89 | Fredraw_display (); |
| 88 | if (have_mouse) Mouse_init (); | 90 | if (have_mouse) mouse_init (); |
| 91 | return Qnil; | ||
| 89 | } | 92 | } |
| 90 | 93 | ||
| 91 | DEFUN ("int86", Fint86, Sint86, 2, 2, 0, | 94 | DEFUN ("int86", Fint86, Sint86, 2, 2, 0, |
| @@ -199,14 +202,14 @@ Usually this is the international telephone prefix."); | |||
| 199 | 202 | ||
| 200 | DEFVAR_INT ("dos-codepage", &dos_codepage, | 203 | DEFVAR_INT ("dos-codepage", &dos_codepage, |
| 201 | "The codepage active when Emacs was started.\n\ | 204 | "The codepage active when Emacs was started.\n\ |
| 202 | The following are known: | 205 | The following are known:\n\ |
| 203 | 437 US | 206 | 437 United States\n\ |
| 204 | 850 Multilingual | 207 | 850 Multilingual (Latin I)\n\ |
| 205 | 852 Slavic/Latin II | 208 | 852 Slavic (Latin II)\n\ |
| 206 | 857 Turkish | 209 | 857 Turkish\n\ |
| 207 | 860 Portugal | 210 | 860 Portugal\n\ |
| 208 | 861 Iceland | 211 | 861 Iceland\n\ |
| 209 | 863 Canada (French) | 212 | 863 Canada (French)\n\ |
| 210 | 865 Norway/Denmark"); | 213 | 865 Norway/Denmark"); |
| 211 | 214 | ||
| 212 | DEFVAR_LISP ("dos-version", &Vdos_version, | 215 | DEFVAR_LISP ("dos-version", &Vdos_version, |