Jim Blandy [Tue, 13 Jul 1993 03:21:39 +0000 (03:21 +0000)]
* autoload.el (generate-file-autoloads): Correctly detect when the
buffer receiving the autoload forms is in a parent of or the same
directory as FILE, even in the presence of symlinks.
(Qundefined): New variable.
(syms_of_keyboard): Set up Qundefined.
(menu_bar_items): Don't reverse the items.
Process the maps in reverse order.
(menu_bar_item): If definition is `undefined',
delete any menu bar item already made, and don't make one.
(rmail-output): If file is an Rmail file,
use rmail-output-to-rmail-file.
(rmail-output-to-rmail-file): If file exists
and is not an Rmail file, use rmail-output.
If we find an element in rmail-output-file-alist, eval it.
(rmail-file-p): New function.
(rmail-output-file-alist): Now contains expressions to eval.
Jim Blandy [Fri, 9 Jul 1993 19:44:58 +0000 (19:44 +0000)]
* etags.c (alloca): removed all references to it.
(main): now calls xnew instead of alloca for portability.
(../src/config.h): included only if HAVE_CONFIG_H.
(const): void definition removed--config.h takes care of it.
(consider_token): was `==', now is `='.
(consider_token): DEFUNs now treated like funcs in ctags mode.
(LEVEL_OK_FOR_FUNCDEF): removed.
(C_entries): optimized the test that used LEVEL_OK_FOR_FUNCDEF.
(C_entries): removed a piece of useless code.
(C_entries): making typedef tags is delayed until a semicolon
is met. This handles "typedef int X, Y, Z;" correctly.
(byte-compile-setq-default):
Generate a progn of calls to set-default, then compile it.
(byte-compile-file-form-defmumble): Put back second arg of
byte-compile-keep-pending, accidentally deleted before.
Roland McGrath [Thu, 8 Jul 1993 21:36:04 +0000 (21:36 +0000)]
(region_limit): Don't error if Vmark_even_if_inactive is set. When the
mark is inactive and that is a no-no, signal mark-inactive instead of using
error with a message.
Fix typo re `texinfo-sequential-node-update.'
Ensure that no commands depend on the value of
case-fold-search.
Rewrite messages. Avoid using `mark-whole-buffer'.
(texinfo-start-menu-description):
New function to insert title as description in a menu.
(texinfo-make-menu-list): Remove automatic title insertion.
(texinfo-master-menu): Error message if file
contains too few nodes for a master menu.
Handle the case where no master menu was inserted.
(texinfo-insert-master-menu-list): Only attempt to insert detailed
master menu if there is one.
Insert a master menu only after `Top' node and before next node.
(texinfo-check-for-node-name): Offer section title as prompt.
(texinfo-copy-next-section-title): Copy title correctly.
Handle failure to find @node.
(texinfo-copy-menu): Error message if menu empty.
(texinfo-pointer-name): Find only those
section commands that are accompanied by `@node' lines.
(texinfo-section-types-regexp): Look for subh and subs, not just sub.
(texinfo-make-one-menu): Copy node-name correctly for message.
(texinfo-copy-menu-title): Copy title as it
should rather than node line.
(texinfo-find-higher-level-node): Stop search at limit.
Special handling for `top' and `chapter' levels.
(texinfo-copy-menu-title): Rewrite to handle outer include files.
(texinfo-multi-file-update): Update all nodes properly (and sooner);
rewrite doc string and interactive. Copy title properly.
(texinfo-all-menus-update): Fixed typo that
caused the function to create a master menu when it shouldn't.
Update pre-existing master menu, if there is one.
(texinfo-incorporate-descriptions): Use a regexp search to look for
both kinds of menu item.
(texinfo-menu-indent-description): Likewise.
(texinfo-incorporate-menu-entry-names): New function.
(texinfo-insert-menu): Handle both kinds of menu item.
(texinfo-multi-files-insert-main-menu): Likewise.
(texinfo-update-node): Pass t as second arg to push-mark.
(texinfo-sequential-node-update): Likewise.
(texinfo-insert-node-lines): Bind `title' at a higher level.
Don't find previous @node if it's close.
Take region to process as arguments.
(texinfo-multiple-files-update): Handle prefix arg better within
`interactive'. Canonicalize the blank lines.
(describe_map_tree): When inserting TITLE, mention PREFIX.
Insert newline at end, if inserted anything else.
(describe_buffer_bindings): Corresponding changes.
For minor mode maps, build up a title string,
then let describe_map_tree insert it.
Jim Blandy [Wed, 7 Jul 1993 10:22:05 +0000 (10:22 +0000)]
* editfns.c (Fformat): Since floats occupy two elements in the
argument list passed to doprnt, we must use separate indices for
the array of arguments passed to Fformat, and the array of
arguments to be passed to doprnt.
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.