Jim Blandy [Thu, 25 Mar 1993 01:15:34 +0000 (01:15 +0000)]
* config.h.in (HAVE_XFREE386): New flag, set by configure script.
If it's set, #define LIBX11_SYSTEM and HAVE_RANDOM as appropriate
for XFree386.
* sysdep.c (random, srandom): Don't define these if HAVE_RANDOM is
#defined.
Jim Blandy [Wed, 24 Mar 1993 01:53:00 +0000 (01:53 +0000)]
* keyboard.c [POLL_FOR_INPUT] (quit_throw_to_read_char): If
we're polling for input, abort; input polling should always be
suppressed while we're waiting for input.
* keyboard.c (interrupt_signal): Remove extern declaration of
Vwindow_system; this is no longer used.
Jim Blandy [Tue, 23 Mar 1993 05:57:11 +0000 (05:57 +0000)]
* config.h.in (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): New flags.
* ymakefile (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): Provide default
values. Include C_SWITCH_X_SITE in CFLAGS, include
LD_SWITCH_X_SITE in LIBX, and pass C_SWITCH_X_SITE to the make
which builds the X Menu library.
Jim Blandy [Tue, 23 Mar 1993 05:53:36 +0000 (05:53 +0000)]
* configure: Add `--x-includes' and `--x-libraries' options. I
think these are dopey, but no less than three alpha testers, at
large sites, have said they have their X files installed in odd
places. Implement them by setting C_SWITCH_X_SITE and
LD_SWITCH_X_SITE in src/config.h.
Jim Blandy [Tue, 23 Mar 1993 05:31:35 +0000 (05:31 +0000)]
* configure: Add `--x-includes' and `--x-libraries' options. I
think these are dopey, but no less than three alpha testers, at
large sites, have said they have their X files installed in odd
places.
Richard M. Stallman [Mon, 22 Mar 1993 23:13:10 +0000 (23:13 +0000)]
(YACC): flag added to c_ext.
(c_ext): no more a synonim for c_ext&C_PLPL because of YACC.
(find_entries): consistently use streq when reasonable.
(find_entries): a .y file is a yacc file.
(get_C_stab): c_ext becomes c_ext&C_PLPL.
(C_entries): logical cplpl means c_ext&C_PLPL.
(C_entries): logical yacc_rules means we are after the first %%.
(C_entries): added logic for yacc files.
(C_entries): ':' case moved to the second switch.
(C_entries): do not examine token if structdef==scolonseen.
(consider_token): structtag set to null string for enum.
(GET_COOKIE): and related macros removed.
(logical): is now int, no more a char.
(reg): define deleted.
(isgood, _gd, notgd): deleted.
(gotone): deleted.
(TOKEN): member linestart removed.
(linepos, prev_linepos, lb1): deleted.
(main): call initbuffer on lbs array instead of lb1.
(init): removed the initialisation of the logical _gd array;
(find_entries): a .sa suffix means assembler file.
(C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
All C state machines rewritten.
(C_entries): complete rewrite.
(condider_token): complete rewrite.
(getline): deleted.
(C_entries): Added the quotednl logical variable.
Used for parsing of #define's spanning multiple lines.
(C_entries): Save the definedef status even when a
newline is met inside a string.
Richard M. Stallman [Sun, 21 Mar 1993 23:04:18 +0000 (23:04 +0000)]
(decode_mode_spec): Handle `%l'.
(display_count_lines): New function.
(redisplay_window): Update base_line_number and base_line_pos fields.
Always update mode line if it's an integer.
Jim Blandy [Sun, 21 Mar 1993 07:24:32 +0000 (07:24 +0000)]
* xfns.c (Fx_open_connection): If we have X11R5, use
XrmSetDatabase to set the display's database. In older versions,
just store the value into x_current_display->db.
* xterm.h (HAVE_X11R5): Define this where appropriate.
Jim Blandy [Sun, 21 Mar 1993 07:04:44 +0000 (07:04 +0000)]
* simple.el (comment-indent-function): New variable, intended to
replace comment-indent-hook.
(comment-indent-hook): Make this default to nil now.
(indent-for-comment): If comment-indent-hook is non-nil, call it
for backward compatibility; otherwise, call
comment-indent-function.
* bytecomp.el: Declare comment-indent-hook an obsolete variable.
Jim Blandy [Sun, 21 Mar 1993 06:53:04 +0000 (06:53 +0000)]
* frame.c (Fhandle_switch_frame): Renamed from Fselect_frame.
Doc changed in anticipation of new purpose.
(Fselect_frame): Just call Fhandle_switch_frame for now.
Jim Blandy [Sun, 21 Mar 1993 05:11:23 +0000 (05:11 +0000)]
Use the `visiblity' parameter to determine the initial state of
the frame, instead of the `iconic-startup' and
`suppress-initial-map'.
* xfns.c (x_icon): Test the Qvisibility parameter against Qicon,
instead of the Qiconic_startup against Qt.
(x_create_frame): Test Qvisibility against Qnil and
Qicon, instead of testing Qsuppress_initial_map and Qvisibility.
(Qicon): New symbol.
(Qiconic_startup, Qsuppress_icon, Qsuppress_initial_map): Removed.
(syms_of_xfns): Adjusted appropriately.
* xfns.c [not HAVE_X11] (x_create_frame): Check Qicon_type,
instead of Qsuppress_icon.
* xfns.c (x_set_visibility): Instead of interpreting only Qt as
`make the frame visible' and everything else as `iconify the
frame', interpret Qicon as `iconify the frame' and everything else
as `make the frame visible.'
* xfns.c (x_get_arg): When the type of the resource is `symbol',
return `true' and `on' as Qt, and `false' and `off' as Qnil.
Jim Blandy [Sat, 20 Mar 1993 23:03:35 +0000 (23:03 +0000)]
* dispnew.c (Fsleep_for): Make this take two arguments SECONDS and
MILLISECONDS, which add, rather than a second argument which says
"treat the first argument as milliseconds."
(Fsit_for): Same thing.
(Fsleep_for_milliseconds): Deleted; this can be done with Fsleep_for.
Jim Blandy [Sat, 20 Mar 1993 20:48:34 +0000 (20:48 +0000)]
* xfns.c (Fx_open_connection): If we have X11R5, use
XrmSetDatabase to set the display's database. In older versions,
just store the value into x_current_display->db.
Jim Blandy [Sat, 20 Mar 1993 19:30:58 +0000 (19:30 +0000)]
* emacs.c (Finvocation_name): New function.
(Vinvocation_name): New variable.
(init_cmdargs): Set it.
(syms_of_emacs): defsubr Finvocation_name, staticpro and
initialize Vinvocation_name.
* lisp.h (Vinvocation_name): New extern declaration.
* xterm.c (invocation_name): Variable deleted; use
Vinvocation_name now.
(x_text_icon, x_term_init): Use Vinvocation_name now instead of
invocation_name.
(x_term_init): Don't initialize invocation_name.
(syms_of_xterm): Don't initialize or staticpro invocation_name.
* xfns.c (invocation_name): Remove extern declaration for this.
[HAVE_X11] (Fx_get_resource): Use Vinvocation_name now instead of
invocation_name.
[not HAVE_X11] (Fx_get_default): Same.
Richard M. Stallman [Sat, 20 Mar 1993 06:25:55 +0000 (06:25 +0000)]
(x_screen): Make this var file scope.
(Fx_server_version): Use Fcons, not list3.
(Fx_server_vendor, Fx_server_version, Fx_display_pixel_width)
(Fx_display_pixel_height, Fx_display_mm_width, Fx_display_mm_height)
(Fx_display_screens, Fx_display_planes, Fx_display_color_cells)
(Fx_display_visual_class, Fx_display_backing_store)
(Fx_display_save_under): New functions.
(x_screen_count, Vx_vendor, x_release, x_screen_height_mm)
(x_screen_width_mm, Vx_backing_store, x_save_under, Vx_screen_visual)
(x_visual_strings): Vars deleted.
(Fx_open_connection): Don't init those vars.
(syms_of_xfns): Set up new functions. Don't set up those vars as Lisp vars.
Nor x-screen-width and x-screen-height.
Jim Blandy [Fri, 19 Mar 1993 17:28:14 +0000 (17:28 +0000)]
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
* [VMS] systime.h: Include vmstime.h. VMS has the timezone
variable and the tzname array.
* s/vms.h: VMS does have select.
mth$dmod is the same as Unix's drem.
Use the time functions in vmstime.c.
No need to rename the malloc routines if we're using GNU malloc.
PURESIZE needs to be 330000.
* vmstime.c, vmstime.h: New files.
* systty.h: Don't try to initialize extern declarations under VAX C.
* vmspaths.h (PATH_LOADSEARCH): Include EMACS_LIBRARY:[LOCAL-LISP]
in PATH_LOADSEARCH.
(PATH_EXEC): Use EMACS_LIBRARY:[LIB-SRC] instead of [ETC].
* sysdep.c [VMS] (init_sys_modes): Don't allocate process_ef.
[VMS] (queue_kbd_input): Build events structure correctly.
[VMS] (gethostname): New function.
[VMS] (getwd): Don't get the PATH environment variable; that's
dumb. Call getcwd.
Richard M. Stallman [Fri, 19 Mar 1993 05:30:19 +0000 (05:30 +0000)]
(Fvisited_file_modtime): New function.
(Fset_visited_file_modtime): Accept an argument specifying time value.
If arg is nil, really use the filename handler.