Jim Blandy [Tue, 6 Jul 1993 14:55:20 +0000 (14:55 +0000)]
* textprop.c (copy_text_properties): Pass a copy of POS to
validate_interval_range; that function increments its arguments,
which isn't what we want.
* intervals.c (find_interval): Consistently treat POSITION as an
actual buffer position, i.e. origin 1. The old code seemed
undecided on this point. Treat the end of the buffer as being
part of the rightmost interval.
(adjust_intervals_for_insertion): Consistently treat POSITION as
origin 1.
(interval_deletion_adjustment): The exception: FROM should be
origin zero here. Consistently treat it as such. Simplify code
which shrinks and possibly deletes intervals.
(adjust_intervals_for_deletion): Treat start as origin 1; our
caller does.
(set_point): Use buffer positions throughout, not a mix of buffer
posns and origin zero posns.
(get_local_map): Remove special case for POSITION at end of buffer;
find_interval handles that case correctly.
(verify_interval_modification): Remove special case for START at
end of buffer.
* textprop.c (validate_interval_range): End-of-buffer/string
positions no longer need special handling.
* textprop.c (copy_text_properties): New function, from David
Gillespie.
* intervals.h: Declare copy_text_properties.
* fns.c: #include "intervals.h".
(Fsubstring): Copy text properties to result string.
(concat): Copy text properties to result string.
* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
Jim Blandy [Tue, 6 Jul 1993 14:54:28 +0000 (14:54 +0000)]
* textprop.c (copy_text_properties): New function, from David
Gillespie.
* intervals.h: Declare copy_text_properties.
* fns.c: #include "intervals.h".
(Fsubstring): Copy text properties to result string.
(concat): Copy text properties to result string.
* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
Jim Blandy [Tue, 6 Jul 1993 14:53:54 +0000 (14:53 +0000)]
* intervals.c (find_interval): Doc fixes, computation of
tree->position rearranged for clarity.
* intervals.c (find_interval): Consistently treat POSITION as an
actual buffer position, i.e. origin 1. The old code seemed
undecided on this point. Treat the end of the buffer as being
part of the rightmost interval.
(adjust_intervals_for_insertion): Consistently treat POSITION as
origin 1.
(interval_deletion_adjustment): The exception: FROM should be
origin zero here. Consistently treat it as such. Simplify code
which shrinks and possibly deletes intervals.
(adjust_intervals_for_deletion): Treat start as origin 1; our
caller does.
(set_point): Use buffer positions throughout, not a mix of buffer
posns and origin zero posns.
(get_local_map): Remove special case for POSITION at end of buffer;
find_interval handles that case correctly.
(verify_interval_modification): Remove special case for START at
end of buffer.
* textprop.c (validate_interval_range): End-of-buffer/string
positions no longer need special handling.
* intervals.c (make_new_interval): #if 0 this out. Nobody calls it.
Jim Blandy [Tue, 6 Jul 1993 14:43:32 +0000 (14:43 +0000)]
* fns.c (Fsubstring, concat): Pass all six arguments to
copy_text_properties.
* textprop.c (copy_text_properties): New function, from David
Gillespie.
* intervals.h: Declare copy_text_properties.
* fns.c: #include "intervals.h".
(Fsubstring): Copy text properties to result string.
(concat): Copy text properties to result string.
* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
Jim Blandy [Tue, 6 Jul 1993 07:44:36 +0000 (07:44 +0000)]
* print.c: Get rid of extra space at the end of print syntax for
strings with intervals.
[USE_TEXT_PROPERTIES] (print): Don't print a space before the
interval property lists.
[USE_TEXT_PROPERTIES] (print_interval): Print a space before this
internal's properties, not after.
Jim Blandy [Tue, 6 Jul 1993 06:59:31 +0000 (06:59 +0000)]
* man.el (Man-build-man-command): Don't leave a pipe symbol at the
end of the command list if Man-filter-list is nil.
(Man-default-man-args): Don't write out assq and mapconcat.
(Man-default-man-entry): Don't default to section 2 for C-mode.
Call Man-default-man-args, and let people use
Man-auto-section-alist if this is what they want.
(manual-entry): Call Man-translate-references, instead of writing
it out.
(Man-getpage-in-background): Don't apply Man-default-man-args
here; manual-entry has already run it, and
Man-follow-manual-reference provides the sections itself.
Jim Blandy [Tue, 6 Jul 1993 06:57:49 +0000 (06:57 +0000)]
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
"-DNeedFunctionPrototypes=0", to avoid lossage in DEC X11 header
files.
* ymakefile (really-oldXMenu): Pass C_SWITCH_X_MACHINE to the
oldXMenu make.
Jim Blandy [Tue, 6 Jul 1993 06:18:50 +0000 (06:18 +0000)]
* vc.el (vc-start-entry): Don't call file-name-nondirectory on
FILE before passing it to vc-mode-line. Everyplace else passes
vc-mode-line full filenames, and vc-mode-line now needs the real
file name to decide which version-control system the file is under.
Jim Blandy [Tue, 6 Jul 1993 02:23:22 +0000 (02:23 +0000)]
Compare the values of text properties using EQ, not Fequal.
* intervals.c (intervals_equal): Call EQ, not Fequal.
* textprop.c (interval_has_all_properties, add_properties): Same.
Jim Blandy [Mon, 5 Jul 1993 08:13:50 +0000 (08:13 +0000)]
* textprop.c (validate_interval_range): Don't increment both
*begin and *end if they point to the same thing.
(validate_plist): Call QUIT while scanning LIST.
Jim Blandy [Mon, 5 Jul 1993 07:18:24 +0000 (07:18 +0000)]
* keyboard.c (Vdouble_click_time): Renamed from double_click_time,
and made a Lisp_Object instead of an int.
(make_lispy_event): If Vdouble_click_time is t, impose no time
limit on double-clicks.
(syms_of_keyboard): DEFVAR_LISP (not DEFVAR_INT)
Vdouble_click_time (not double_click_time), and adjust doc string
to say that `nil' means no double clicks, and `t' means no time
limit.
Paul Eggert [Mon, 5 Jul 1993 03:20:12 +0000 (03:20 +0000)]
(vc-name): Moved from vc.el; vc-rcs-status now uses it.
(vc-name, vc-backend-deduce): Set both vc-name and vc-backend
properties, to avoid calling vc-registered unnecessarily when
the other property is needed.
(vc-rcs-status): Yield only status of locks; do not try to yield " REV"
if there are no locks, since this cannot be done easily if there are
branches. Use vc-name instead of duplicating its function incorrectly.
Fix off-by-one bug when inserting master header pieces. Read headers
8192 bytes at a time instead of 100. Don't bother to expand-file-name.
(vc-rcs-glean-field): Removed.
Richard M. Stallman [Sun, 4 Jul 1993 02:21:02 +0000 (02:21 +0000)]
(read_char): After Fgarbage_collect, call redisplay.
(read_key_sequence): When inserting `menu-bar' prefix,
modify the position field to prevent doing so twice.
Do all these forms of event expansion after replayed events also.
Set last_real_key_start before each key.
Use last_real_key_start in criterion for being the first event.
(syms_of_keyboard): Doc fix.
(Vhelp_char): Renamed from help_char.
(Vprefix_help_command): New Lisp variable.
(read_key_sequence): Use that, for help char after prefix key.
(kbd_buffer_get_event): Clear f before calling mouse_position_hook.
Jim Blandy [Sat, 3 Jul 1993 10:17:56 +0000 (10:17 +0000)]
* term/x-win.el: Check the reverseVideo/ReverseVideo resource,
correctly distinguish between "on" and "off" values, and put a
parameter in default-frame-alist.
* frame.el (frame-initialize): Don't call x-get-resource here.
Jim Blandy [Sat, 3 Jul 1993 07:19:24 +0000 (07:19 +0000)]
* s/hpux8.h (random, srandom): No need to define these to be
foo_random and foo_srandom; autoconf should autodetect when the
real random functions are available.
Jim Blandy [Fri, 2 Jul 1993 22:50:40 +0000 (22:50 +0000)]
* textprop.c (set_properties): Add undo records to remove entirely
new properties. Only record old property values for those
properties whose values have changed.
* textprop.c (set_properties): Don't try to make undo records if
OBJECT is a string.
Richard M. Stallman [Fri, 2 Jul 1993 05:21:05 +0000 (05:21 +0000)]
(describe_map_tree): Insert key_heading here.
New arg TITLE.
(describe_buffer_bindings): Corresponding changes.
(shadow_lookup): New function.
(describe_map_2): Call it. SHADOW is now a list of maps.
(describe_vector): Likewise.
(describe_map): SHADOW is now a list of maps.
(describe_map_tree): Likewise.
(describe_buffer_bindings): Build suitable list to pass as SHADOW.
(Faccessible_keymaps): New arg PREFIX. Callers changed.
(describe_map_tree): New arg PREFIX.
(Fdescribe_bindings): New arg PREFIX.
Pass to describe_buffer_bindings along with buffer.
(describe_buffer_bindings): Extract PREFIX and pass along.
Richard M. Stallman [Wed, 30 Jun 1993 22:03:15 +0000 (22:03 +0000)]
(compile-abbreviate-directory): New function.
(compilation-parse-errors): Use that, to visit files with a dirname
more like the one the user specified.
Jim Blandy [Wed, 30 Jun 1993 21:30:25 +0000 (21:30 +0000)]
* xdisp.c (redisplay): If we're not already showing the region,
then don't disable the single-line optimizations just because the
mark isn't where we last displayed it.
Jim Blandy [Wed, 30 Jun 1993 06:27:30 +0000 (06:27 +0000)]
* gud.el: Add history lists to the debugging commands, so we don't
have to retype the filename every invocation.
(gud-gdb-history, gud-sdb-history, gud-dbx-history,
gud-xdb-history): New variables.
(gdb, sdb, dbx, xdb): Use them when reading the argument string.
Jim Blandy [Wed, 30 Jun 1993 04:47:37 +0000 (04:47 +0000)]
* mouse.el (mouse-drag-region-1): Commented out.
(mouse-drag-region): Commented out, and replaced with new version,
which highlights the region as we drag.
(mouse-scroll-delay, mouse-drag-overlay): New variables.
(mouse-scroll-subr): New function.
Jim Blandy [Tue, 29 Jun 1993 23:07:22 +0000 (23:07 +0000)]
* xterm.c: Add CPP tangle from process.c to get definitions for
FD_SET, etcetera.
(XTread_socket): Use those macros when testing for dropped connection.
Jim Blandy [Tue, 29 Jun 1993 22:58:40 +0000 (22:58 +0000)]
* etags.c: #include "config.h" and the alloca CPP tangle before
#including the system headers and getopt.h. AIX requires the
#pragma to come before any actual C code.