diff options
| author | Richard M. Stallman | 2002-08-27 18:45:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-08-27 18:45:34 +0000 |
| commit | 6e910e07ada8a37f26173e24e363286d04454bc6 (patch) | |
| tree | 198aa48bd9b72756d8276761e0a06adb15173311 /src | |
| parent | 0a1c83e745cfaca794d9a0dd4a3b63eeda8b3e21 (diff) | |
| download | emacs-6e910e07ada8a37f26173e24e363286d04454bc6.tar.gz emacs-6e910e07ada8a37f26173e24e363286d04454bc6.zip | |
(main): Handle --script.
(USAGE1): Mention --script.
(standard_args): Define sort order for --script.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 36 | ||||
| -rw-r--r-- | src/emacs.c | 12 |
2 files changed, 48 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3f55cd02ea1..0a7cf4bc506 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,39 @@ | |||
| 1 | 2002-08-27 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and | ||
| 4 | FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist. | ||
| 5 | (Vblink_cursor_alist): New variable. | ||
| 6 | (syms_of_xfns): Initialize and defvar it. | ||
| 7 | (x_specified_cursor_type): Recognize Qbox for filled box. | ||
| 8 | Exceptions are hollow boxes. | ||
| 9 | (Qbox, Qhollow): New variables. | ||
| 10 | (syms_of_xfns): Initialize and staticpro them. | ||
| 11 | |||
| 12 | * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH): | ||
| 13 | New macros. | ||
| 14 | (struct x_output): New fields blink_off_cursor, blink_off_cursor_width. | ||
| 15 | |||
| 16 | * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR | ||
| 17 | and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off. | ||
| 18 | |||
| 19 | * emacs.c (main): Handle --script. | ||
| 20 | (USAGE1): Mention --script. | ||
| 21 | (standard_args): Define sort order for --script. | ||
| 22 | |||
| 23 | 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de> | ||
| 24 | |||
| 25 | * xdisp.c (redisplay_updating_p): Variable removed. | ||
| 26 | (inhibit_free_realized_faces, Qinhibit_free_realized_faces): New | ||
| 27 | variables. | ||
| 28 | (init_iterator): Don't free realized faces if | ||
| 29 | inhibit_free_realized_faces is set. | ||
| 30 | (redisplay_internal): Bind Qinhibit_free_realized_faces to nil. | ||
| 31 | (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces, | ||
| 32 | initialize Qinhibit_free_realized_faces. | ||
| 33 | |||
| 34 | * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces | ||
| 35 | when iterator is adding glyphs to a glyph matrix. | ||
| 36 | |||
| 1 | 2002-08-27 Kenichi Handa <handa@etl.go.jp> | 37 | 2002-08-27 Kenichi Handa <handa@etl.go.jp> |
| 2 | 38 | ||
| 3 | * xdisp.c (get_next_display_element): In unibyte case, don't use | 39 | * xdisp.c (get_next_display_element): In unibyte case, don't use |
diff --git a/src/emacs.c b/src/emacs.c index 061b92be152..87604158fe1 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -228,6 +228,7 @@ read the main documentation for these command-line arguments.\n\ | |||
| 228 | Initialization options:\n\ | 228 | Initialization options:\n\ |
| 229 | \n\ | 229 | \n\ |
| 230 | --batch do not do interactive display; implies -q\n\ | 230 | --batch do not do interactive display; implies -q\n\ |
| 231 | --script FILE run FILE as an Emacs Lisp script. | ||
| 231 | --debug-init enable Emacs Lisp debugger during init file\n\ | 232 | --debug-init enable Emacs Lisp debugger during init file\n\ |
| 232 | --help display this help message and exit\n\ | 233 | --help display this help message and exit\n\ |
| 233 | --multibyte, --no-unibyte run Emacs in multibyte mode\n\ | 234 | --multibyte, --no-unibyte run Emacs in multibyte mode\n\ |
| @@ -779,6 +780,7 @@ main (argc, argv, envp) | |||
| 779 | struct rlimit rlim; | 780 | struct rlimit rlim; |
| 780 | #endif | 781 | #endif |
| 781 | int no_loadup = 0; | 782 | int no_loadup = 0; |
| 783 | char *junk = 0; | ||
| 782 | 784 | ||
| 783 | #if GC_MARK_STACK | 785 | #if GC_MARK_STACK |
| 784 | extern Lisp_Object *stack_base; | 786 | extern Lisp_Object *stack_base; |
| @@ -1033,6 +1035,15 @@ main (argc, argv, envp) | |||
| 1033 | noninteractive = 0; | 1035 | noninteractive = 0; |
| 1034 | if (argmatch (argv, argc, "-batch", "--batch", 5, NULL, &skip_args)) | 1036 | if (argmatch (argv, argc, "-batch", "--batch", 5, NULL, &skip_args)) |
| 1035 | noninteractive = 1; | 1037 | noninteractive = 1; |
| 1038 | if (argmatch (argv, argc, "-script", "--script", 3, &junk, &skip_args)) | ||
| 1039 | { | ||
| 1040 | noninteractive = 1; /* Set batch mode. */ | ||
| 1041 | /* Convert --script to -l, un-skip it, and sort again so that -l will be | ||
| 1042 | handled in proper sequence. */ | ||
| 1043 | argv[skip_args - 1] = "-l"; | ||
| 1044 | skip_args -= 2; | ||
| 1045 | sort_args (argc, argv); | ||
| 1046 | } | ||
| 1036 | 1047 | ||
| 1037 | /* Handle the --help option, which gives a usage message. */ | 1048 | /* Handle the --help option, which gives a usage message. */ |
| 1038 | if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) | 1049 | if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) |
| @@ -1658,6 +1669,7 @@ struct standard_args standard_args[] = | |||
| 1658 | { "-nw", "--no-window-system", 110, 0 }, | 1669 | { "-nw", "--no-window-system", 110, 0 }, |
| 1659 | { "-nw", "--no-windows", 110, 0 }, | 1670 | { "-nw", "--no-windows", 110, 0 }, |
| 1660 | { "-batch", "--batch", 100, 0 }, | 1671 | { "-batch", "--batch", 100, 0 }, |
| 1672 | { "-script", "--script", 100, 1 }, | ||
| 1661 | { "-help", "--help", 90, 0 }, | 1673 | { "-help", "--help", 90, 0 }, |
| 1662 | { "-no-unibyte", "--no-unibyte", 83, 0 }, | 1674 | { "-no-unibyte", "--no-unibyte", 83, 0 }, |
| 1663 | { "-multibyte", "--multibyte", 82, 0 }, | 1675 | { "-multibyte", "--multibyte", 82, 0 }, |