Jim Blandy [Tue, 2 Mar 1993 02:11:18 +0000 (02:11 +0000)]
These are in preparation for a more thorough renaming to occur soon.
* scroll-bar.el: Provide `scroll-bar', not `scrollbar'.
* term/x-win.el: Require `scroll-bar', not `scrollbar'.
Richard M. Stallman [Mon, 1 Mar 1993 08:57:31 +0000 (08:57 +0000)]
(Fadd_text_properties, Fremove_text_properties):
Add len>0 as condition for main loop.
Abort if reach a null interval.
(Fset_text_properties): Abort if reach a null interval.
(Ftext_properties_at, Fget_text_property):
Return nil if POS is end of OBJECT.
(add_properties): Use NILP to test result of Fequal.
No longer inline.
(remove_properties): No longer inline.
(set_properties): Total rewrite as function.
(validate_interval_range): Don't alter *begin at end of buffer.
But do search for a position just before the end.
Return null for an empty string.
(validate_interval_range): Allow 0 as position in string.
Add 1 to specified string positions.
(Fprevious_single_property_change): Subtract 1 if object is string.
(Fnext_single_property_change): Likewise.
(Fprevious_property_change, Fnext_property_change): Likewise.
(Fadd_text_properties): Pass new arg to add_properties.
(Fremove_text_properties): Likewise.
(add_properties, remove_properties): New arg OBJECT. Record undo info.
(Fput_text_property): New function.
Richard M. Stallman [Mon, 1 Mar 1993 08:56:22 +0000 (08:56 +0000)]
(intervals_equal): Handle one arg null and other not.
(set_point): Considerable rewrite. Handle intervals both
before and after the old and new point values.
Redo handling of invisible intervals, and of motion hooks.
(textget): New function.
(graft_intervals_into_buffer):
create_root_interval needs Lisp object arg.
Set tree to new root interval.
Don't test TREE_LENGTH if buffer has no intervals.
Rearrange code to copy properties so that it really
does merge the inserted ones into the inherited ones.
(traverse_intervals): Pass `arg' on recursive calls.
(split_interval_left): Use new_length as basis for length of new.
Jim Blandy [Thu, 25 Feb 1993 00:38:55 +0000 (00:38 +0000)]
* term/x-win.el (scroll-bar-mode, scroll-bar-mode): Move these
functions to scrolbar.el.
* scrollbar.el (scroll-bar-mode, scroll-bar-mode): Here they are.
Make scroll-bar-mode set the {vertical,horizontal}-scrollbars
parameters in default-frame-alist, and modify all extant screens
using the correct parameter names.
Jim Blandy [Tue, 23 Feb 1993 14:17:11 +0000 (14:17 +0000)]
* abbrev.c (Fexpand_abbrev): Only copy the text we're going to
expand - from wordstart to wordend, not from wordstart to point -
into the buffer. There might be non-word text between wordend and
point.
Jim Blandy [Mon, 22 Feb 1993 14:53:13 +0000 (14:53 +0000)]
* keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
* lread.c (Feval_buffer): Same.
* window.c (Fscroll_other_window): Same.
* window.c (Fset_window_configuration): Pass the proper number of
arguments to Fselect_frame.
Jim Blandy [Mon, 22 Feb 1993 14:47:53 +0000 (14:47 +0000)]
* process.c: Make sure we don't miss processes exiting, by having
the sigchld handler clear *input_available_clear_time.
(wait_reading_process_input): Check for process activity after
setting the timeout and calling set_waiting_for_input.
(sigchld_handler): If the process which has exited is one we care
about, clear *input_available_clear_time.
* process.c (process_send_signal): Use TERMIOS functions in
preference to BSD ioctls. Some systems attempt to provide the BSD
functions for backward compatibility, and get it wrong.
Jim Blandy [Mon, 22 Feb 1993 14:46:31 +0000 (14:46 +0000)]
* keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
* lread.c (Feval_buffer): Same.
* window.c (Fscroll_other_window): Same.
Jim Blandy [Mon, 22 Feb 1993 14:45:23 +0000 (14:45 +0000)]
* data.c (Fstring_to_int): Rename this to Fstring_to_number, since
it parses floats as well as integers. Fix docstring.
(syms_of_data): Fix defsubr.
(wrong_type_argument): Change use.
(Fint_to_string): Doc fix.
* lisp.h (Fstring_to_int): Change extern declaration.
Jim Blandy [Mon, 22 Feb 1993 14:43:44 +0000 (14:43 +0000)]
* keyboard.c (init_keyboard): Recognize HAVE_TERMIOS as well as
HAVE_TERMIO.
* keyboard.c (echo_char): Apply XINT to c before passing it to
push_key_description.
* keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
* lread.c (Feval_buffer): Same.
* window.c (Fscroll_other_window): Same.
* keyboard.c (command_loop_1): Apply XINT to c before passing it
to internal_self_insert and direct_output_for_insert.
* keyboard.c (make_lispy_movement): Rename the variable `part'
declared in the block handling scrollbar movement to `part_sym',
to avoid potential conflicts with the argument named `part'.
Apparently the semantics of expressions like this are unclear.
* keyboard.c (Fread_key_sequence): Backslash the newlines in this
docstring.
* textprop.c (Fget_text_property): Same.
Jim Blandy [Mon, 22 Feb 1993 14:42:38 +0000 (14:42 +0000)]
* frame.c (Fselect_frame): Set Vlast_event_frame to Qnil after
switching frames, to make sure we'll get a switch-frame event.
(Vlast_event_frame): Add external declaration for this here.
* frame.c (Fdelete_frame): If FRAME is a dead frame, return Qnil,
not nothing.
Jim Blandy [Mon, 22 Feb 1993 14:41:26 +0000 (14:41 +0000)]
* floatfns.c (Flogb): Always implement this by calling Flog, even
on non-USG systems, which supposedly have a logb function.
(Fround): Always implement this by calling floor, even on systems
that have rint.
* floatfns.c (IN_FLOAT): Make this work properly when SIGTYPE is void.
Jim Blandy [Mon, 22 Feb 1993 14:40:34 +0000 (14:40 +0000)]
* callproc.c (init_callproc): Move the initialization of
Vprocess_environment to its own function.
(set_process_environment): This is that.
* emacs.c (main): Call set_process_environment earlier than
init_callproc.
Jim Blandy [Mon, 22 Feb 1993 14:27:14 +0000 (14:27 +0000)]
* data.c (Fstring_to_number): Skip initial spaces, to make Emacs
lisp parse consistently on different operating systems.
#include <ctype.h> to help with this.
* data.c (Fstring_to_int): Rename this to Fstring_to_number, since
it parses floats as well as integers. Fix docstring.
(syms_of_data): Fix defsubr.
(wrong_type_argument): Change use.
(Fint_to_string): Doc fix.
* lisp.h (Fstring_to_int): Change extern declaration.
* data.c (wrong_type_argument): Pass the correct number of
arguments to Fstring_to_int.
* data.c (arithcompare): Add a default case which aborts, just to
make me happy.
Jim Blandy [Mon, 22 Feb 1993 14:24:42 +0000 (14:24 +0000)]
* callproc.c (delete_temp_file): Declare this to return
Lisp_Object, to smooth type-checking.
* callproc.c (init_callproc): Move the initialization of
Vprocess_environment to its own function.
(set_process_environment): This is that.
* emacs.c (main): Call set_process_environment earlier than
init_callproc.
Jim Blandy [Mon, 22 Feb 1993 14:20:51 +0000 (14:20 +0000)]
* ibmrs6000.h (C_ALLOCA, STACK_DIRECTION): Only define if HAVE_ALLOCA
is not defined.
(X_DEFAULT_FONT): Change to `fixed', as `Rom14.500' only works on the
console.
Jim Blandy [Mon, 22 Feb 1993 14:17:16 +0000 (14:17 +0000)]
* files.el (revert-buffer): Reverse the sense of the first
argument, but leave interactive usage the same.
* vc.el (vc-resynch-window): Call vc-revert-buffer1 with the newly
appropriate arguments. This seems to be the only file which was
adjusted for the new meaning of the revert-buffer arguments.
Jim Blandy [Mon, 22 Feb 1993 14:15:34 +0000 (14:15 +0000)]
* gud.el (gud-break): With a prefix argument, set a temporary
breakpoint.
(gud-apply-from-source): New argument ARGS, to pass to FUNC. Now
it's really like `apply'.
(gud-set-break): Add another argument to this method.
Document it in the section describing how the methods are supposed
to be used.
(gud-gdb-set-break): New argument TEMP; if non-nil, set a
temporary breakpoint.
(gud-sdb-set-break, gud-dbx-set-break): New argument TEMP. Ignore
it, since I don't know how to set a temporary breakpoint in these
debuggers.
* gud.el (gud-break): With a prefix argument, set a temporary
breakpoint.
(gud-apply-from-source): New argument ARGS, to pass to FUNC. Now
it's really like `apply'.
(gud-set-break): Add another argument to this method.
Document it in the section describing how the methods are supposed
to be used.
(gud-gdb-set-break): New argument TEMP; if non-nil, set a
temporary breakpoint.
(gud-sdb-set-break, gud-dbx-set-break): New argument TEMP. Ignore
it, since I don't know how to set a temporary breakpoint in these
debuggers.
Jim Blandy [Mon, 22 Feb 1993 14:11:28 +0000 (14:11 +0000)]
* Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
CFLAGS.
* Makefile.in (locallisppath): Make this default to
${datadir}/emacs/site-lisp, instead of
${datadir}/emacs/local-lisp. ${datadir} and ${statedir} are often
the same thing, and local-lisp causes completion conflicts with
lock.
(lisppath): Add ${externallispdir} to this.
* INSTALL: Adjust installation directions.
* Makefile.in (externallispdir): New variable, to say where to
install the externally-maintained lisp files.
(COPYDIR, COPYDESTS): Copy the external lisp directory just like
the others.
* INSTALL: Describe external-lisp and the new externallispdir
variable.
Michael I. Bushnell [Thu, 18 Feb 1993 03:43:45 +0000 (03:43 +0000)]
* process.c (Fstart_process): Jimb's change of December 11
had a misplaced paren. This only became apparent because of
jimb's change on February 8 to Fexpand_file_name.
* callproc.c (Fcall_process): Ditto.
Richard M. Stallman [Wed, 17 Feb 1993 20:34:20 +0000 (20:34 +0000)]
(isearch-backward-regexp):
New arg no-recursive-edit, always non-nil for interactive call.
Rename first arg, and set it right in interactive call.
(isearch-forward-regexp): Likewise.
(isearch-forward, isearch-backward): Likewise no-recursive-edit.
Jim Blandy [Sun, 14 Feb 1993 14:40:55 +0000 (14:40 +0000)]
* xterm.c (x_set_window_size): Call change_frame_size instead of
just setting the `rows' and `cols' members of the frame, and
leaving the window tree in complete disarray.
* xterm.c (x_io_error_quitter): New function.
(x_error_quitter): Note that this is only used for protocol
errors now, not I/O errors.
(x_term_init): Set the I/O error handler to x_io_error_quitter.