1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00
Commit graph

4111 commits

Author SHA1 Message Date
Jim Blandy
ad9c19400f * intervals.c (split_interval_left, split_interval_right): Change
OFFSET argument of these functions to be origin 0, not origin 1.
	This is what all the callers currently want.
	* intervals.c, textprop.c: All callers changed.

	* textprop.c (Ftext_property_not_all): Renamed from
	Ftext_property_all, and changed sense of return value, so that it
	returns useful information if not all characters have properties
	EQ to value.  Now all the existential and universal questions can
	be asked.

	* textprop.c (syms_of_textprop): Don't forget defsubr for
	Stext_property_all.

	* textprop.c (Ftext_property_any, Ftext_property_all): Use EQ to
	compare property values, not Fequal.

	* textprop.c (Ftext_property_any, Ftext_property_all): New
	functions, from David Gillespie.
	* intervals.h (Ftext_property_any, Ftext_property_all): Declare them.
1993-07-18 06:28:12 +00:00
Jim Blandy
23c6349cdd * termhooks.h: In order to avoid declaring struct input_event
(which contains Lisp_Objects) in those .c files which need access
	to the terminal hooks but don't #include lisp.h (like cm.c), test
	to see if the macro CONSP is #defined.  We used to test XINT, but
	config.h will #define that everywhere on systems that use tailored
	tagging schemes.
1993-07-18 06:27:38 +00:00
Jim Blandy
46f2fdac02 * xterm.c, sysdep.c (F_SETOWN_BUG): Defined.
* m/dpx2.h: New file.
1993-07-18 06:27:15 +00:00
Jim Blandy
2fcea188d6 * syntax.c (Fmodify_syntax_entry): Doc fix. 1993-07-18 06:26:51 +00:00
Jim Blandy
c7b1427704 * print.c (float_to_string): Distinguish between a precision of
zero and an omitted precision.  Do allow %.0f to produce strings
	containing no decimal point or exponent.
	(syms_of_print): Doc fix for float-output-format.
1993-07-18 06:26:28 +00:00
Jim Blandy
e872064401 Consistently use the mark bit of the root interval's parent field
to say whether or not the interval tree has been visited (and skip
	it when revisited), and the mark bit of the plist field to say
	whether or not that interval has been visited (and abort if
	revisited); don't try to use the plist mark bit for both
	meanings.
	* alloc.c (mark_interval_tree): Don't test if the interval tree
	has already been visited here; let the MARK_INTERVAL_TREE macro do
	that; avoid function call overhead.  Mark the interval tree as
	having been visited by setting TREE->parent's mark bit.
	(MARK_INTERVAL_TREE): If the tree has been visited (according to
	I->parent's mark bit), don't call mark_interval_tree.
	(gc_sweep): Rebalance the interval trees of those large strings
	which are still alive.  This also clears the mark bits of those
	trees' root intervals' parent fields.
	(compact_strings): Rebalance the interval tree of each small
	strings which is still alive.  This also clears the mark bits of
	that tree's root interval's parent field.  Since the string has
	moved, update the root interval's parent pointer to contain the
	new address.
	* lisp.h (struct interval): Doc fix; explain the roles of the mark
	bits of the parent and plist members.
1993-07-18 06:26:10 +00:00
Jim Blandy
718ca51e40 * keyboard.c (read_key_sequence): Accept both strings and vectors
as bindings in function-key-map.
    	* keymap.c (Vfunction_key_map in syms_of_keymap): Doc fix.

	* keymap.c (syms_of_keymap): Doc fix.
1993-07-18 06:25:40 +00:00
Jim Blandy
f5ea616372 * keyboard.c (read_key_sequence): Accept both strings and vectors
as bindings in function-key-map.
    	* keymap.c (Vfunction_key_map in syms_of_keymap): Doc fix.

	* keyboard.c (Fsuspend_emacs): Pass selected_frame as the first
	argument to change_frame_size, not 0.  This function may be called
	in an Emacs compiled with multi-frame support.
1993-07-18 06:25:09 +00:00
Jim Blandy
5256403ca5 * textprop.c (Ftext_property_any, Ftext_property_all): New
functions, from David Gillespie.
	* intervals.h (Ftext_property_any, Ftext_property_all): Declare them.
1993-07-18 06:24:48 +00:00
Jim Blandy
2bc7a79bdc * intervals.c (split_interval_left, split_interval_right): Change
OFFSET argument of these functions to be origin 0, not origin 1.
	This is what all the callers currently want.
	* intervals.c, textprop.c: All callers changed.

	* intervals.c (graft_intervals_into_buffer): Properly compute
	length of buffer.
1993-07-18 06:24:25 +00:00
Jim Blandy
c02e300467 * dispnew.c (direct_output_for_insert): By the time this function
is called, we have already inserted the character into the buffer;
	the proper buffer position to pass to compute_char_face is point
	- 1, not point.
1993-07-18 06:23:32 +00:00
Jim Blandy
331636c44e * Makefile.in (C_SWITCH_SYSTEM): New variable, set by top-level
Makefile.
	(xmakefile): Pass it to the C preprocessor.
1993-07-18 06:22:37 +00:00
Jim Blandy
800642d27d * term/x-win.el: Include (invocation-name) in the error messages
which might occur during startup.

	* term/x-win.el: Make the `-rn NAME' option specify a resource
	name, as documented, and not a resource database string.  Make
	`-name NAME' act like `-rn NAME' and also set the name of the
	initial frame.
	(command-switch-alist): Process the `-rn' and `-name' options
	using the x-handle-name-rn-switch function.
	(x-handle-name-rn-switch): New function, which sets the
	x-resource-name variable.
	(opening connection): Make sure x-resource-name is valid.  If it's
	not a string, set it to (invocation-name), with any periods or
	asterisks changed to hyphens.

	* term/x-win.el: Make the `-xrm STRING' option specify a resource
	database string.  `-rn' used to behave this way.
	(command-switch-alist): Process the `-xrm' switch using
	x-handle-xrm-switch.
	(x-handle-xrm-switch): Renamed from x-handle-rn-switch; this
	function does the right thing for `-xrm', not for `-rn'.

	* term/x-win.el: Recognize affirmative values for reverseVideo
	properly.  Include "on" in the list of recognized values.
1993-07-18 06:21:42 +00:00
Jim Blandy
ac75ef20d2 * shell.el (shell-process-pushd): Fix syntax error in
condition-case.

	* shell.el (shell-prompt-pattern): Don't match more than one line.
	Doc fix.
1993-07-18 06:20:47 +00:00
Jim Blandy
8c6677ed1f * hippie-exp.el: Renamed from hippie.el.
Changes from Anders Holst, to bring hippie-expand up to version 1.2:
	* hippie-exp.el (hippie-expand-max-buffers): New variable.
	(try-expand-line-all-buffers, try-expand-list-all-buffers,
	try-expand-dabbrev-all-buffers): Use it.
	(try-expand-list, try-expand-list-all-buffers): New functions.
	(he-string-beg, he-string-end, he-search-loc): These values are
	now markers, not integers.  Uses changed.
	(he-reset-string, he-substitute-string): Use a marker to preserve
	the old position of point.
	(try-expand-all-abbrevs): handle case the same way as the
        usual expand-abbrev (which is not a very good way, but for
        consistency...).
	(he-dabbrev-beg): Use `skip-syntax' instead of `skip-chars', to
        adjust its behavior to different modes.
	(hippie-expand): Don't messages which try function it is using,
        when the expansion itself is done in the minibuffer (it was very
        annoying to have the message obscuring the expansion).
	(try-complete-file-name, try-complete-file-name-partially,
	try-complete-lisp-symbol, try-complete-lisp-symbol-partially,
	try-expand-line, try-expand-line-all-buffers,
	try-expand-all-abbrevs, try-expand-dabbrev,
	try-expand-dabbrev-all-buffers): No unnecessary "resetting" of the
	epansion, when no expansion is done (caused the buffer to be
	marked as changed, although nothing was done, among other things).
	(he-reset-string): Undoing of last expansion at a later occasion, now
        undoes correctly (before, it garbled things up).
	(make-hippie-expand-function): now uses "(function ...)"
        instead of "'" (matters for compilation).
	(try-expand-line, try-expand-line-all-buffers,
	he-line-search-regexp): uses `comint-prompt-regexp' instead of
	`shell-prompt-pattern', to strip off prompt in process buffers.
1993-07-18 06:20:15 +00:00
Jim Blandy
42106ea549 * bytecomp.el (byte-compile-from-buffer): Bind float-output-format
to "%.20e", not "%20e"; the latter is always ignored, since it
	doesn't have a decimal point after the percent sign.
1993-07-18 06:18:45 +00:00
Jim Blandy
8a30241de3 * ange-ftp.el: Install the correct regexp in
file-name-handler-alist.
1993-07-18 06:18:03 +00:00
Jim Blandy
af40bbfa99 * wakeup.c: Use CPP tangle from autoconf manual to #include the
correct combination of <time.h> and <sys/time.h>.
1993-07-18 06:13:07 +00:00
Jim Blandy
52cc7c59b5 * etags.c (print_help): Break up the very long strings containing
the help message into shorter strings, to placate chintzy C
	compilers which can't handle strings that long.
1993-07-18 06:12:49 +00:00
Jim Blandy
6ec1f458d9 * configure.in (m68k-bull-sysv3): new config. 1993-07-18 06:11:06 +00:00
Jim Blandy
174be3e7d6 * Makefile.in (src/Makefile): Propagate C_SWITCH_SYSTEM to the src
directory's makefile.  This allows the invocation of CPP which
	builds xmakefile to receive these switches.  The SunSoft C
	preprocessor inserts spaces between tokens if it doesn't get the
	-Xs flag requested in src/s/sol2.h.
1993-07-18 06:10:46 +00:00
Richard M. Stallman
eb0d9f0861 Enable the hook only if window-system.
Clear blink-paren-function at the same time.
(show-paren-command-hook): If after a closeparen,
highlight that closeparen as well as matching open.
Use a different color for a mismatch, if color screen.
1993-07-18 04:47:10 +00:00
Richard M. Stallman
11872f7e1e (face-equal): Don't mess with face-background-pixmap. 1993-07-18 04:44:27 +00:00
Richard M. Stallman
fbee972730 Rewritten by Vromans to use text properties. 1993-07-17 19:15:19 +00:00
Richard M. Stallman
b5ae9ca5a9 (tar-extract): Use view-exit-action to kill viewed buf. 1993-07-17 19:10:13 +00:00
Richard M. Stallman
5c05f56971 Doc fixes; some args renamed. 1993-07-17 19:06:12 +00:00
Richard M. Stallman
056afaf788 (gnus-info-nodes): Update node names. 1993-07-17 18:56:09 +00:00
Richard M. Stallman
f66c5d9a9c entered into RCS 1993-07-17 17:43:14 +00:00
Richard M. Stallman
d78fc31546 (texinfo-mode): Undo changes mistakenly added with
previous batch: texinfo-{start,end}-of-header are now tex-...
1993-07-17 17:27:02 +00:00
Richard M. Stallman
9f9c0e277f (Vhelp_menu_bar_map): Deleted.
(menu_bar_items): Move elts for events in Vmenu_bar_final_items to end.
(syms_of_keyboard): Corresponding changes.
1993-07-17 02:10:03 +00:00
Richard M. Stallman
da183f87af (revert-buffer): Make menu-enable form more accurate
using revert-buffer-function and verify-visited-file-modtime.
(menu-bar-help-menu): Put back under global-map.
(menu-bar-final-items): Set it.
1993-07-17 01:43:00 +00:00
Richard M. Stallman
5fe77fd950 (mh-yank-hooks): Use (mark t).
(mh-new-draft-name): Likewise.
1993-07-17 00:18:04 +00:00
Roland McGrath
1de80a34eb (comint-{next,prev}-prompt, comint-send-eof): New functions.
(comint-mode-map): Bind C-c C-n, C-c C-p, and C-c C-d to those.
Bind C-c C-y to comint-previous-input, for compatibility with v18 shell.el.
1993-07-16 20:30:18 +00:00
Roland McGrath
de0748e009 (ad-start-advice-on-load): Initialize to t. 1993-07-16 19:53:38 +00:00
Roland McGrath
ee7bf2ad24 Initial revision 1993-07-16 19:50:55 +00:00
Doug Evans
51b3c82ff7 if [ "$os" ] --> if [ x"$os" != x"" ] 1993-07-16 18:24:47 +00:00
Richard M. Stallman
94ed51e86b (rmail-mail-new-frame): New variable.
(rmail-start-mail): New function.
(rmail-mail, rmail-continue, rmail-reply, rmail-forward)
(rmail-retry-failure): Use rmail-start-mail.
1993-07-16 04:19:04 +00:00
Richard M. Stallman
9320d42195 (mail-bury): If selected frame is dedicated,
and there are other visible frames, delete this frame.
1993-07-16 04:18:46 +00:00
Richard M. Stallman
dcc408a053 (read_char_menu_prompt): If the user rejects a menu,
return t.  This makes read_char also return t.
(read_key_sequence): If read_char returned t, return -1.
(Fread_key_sequence): If read_key_sequence returned -1, quit.
(command_loop_1): If read_key_sequence returned -1, loop around.
1993-07-15 06:56:17 +00:00
Richard M. Stallman
e3a39644f2 (ispell-menu-map): Add missing quote in defalias.
(ispell-window-configuration): Initialize to nil.
1993-07-15 06:55:39 +00:00
Richard M. Stallman
e4953cae72 (vc-rcs-status): Make work buffer's name start w/ space. 1993-07-15 05:49:21 +00:00
Richard M. Stallman
1394df4374 (completion-setup-function): Insert the mouse help message
only if non-nil `window-system'.
1993-07-15 05:47:31 +00:00
Richard M. Stallman
cfc736bf9a (Fdisplay_completion_list): Run completion-setup-hook. 1993-07-15 05:46:02 +00:00
Richard M. Stallman
ddf70bd8dd (help-menu-bar-map): Put the Help item in this map. 1993-07-15 05:40:01 +00:00
Richard M. Stallman
553defa404 (Fbuffer_local_variables): For local var that is unbound,
put just the symbol in the result, not a cons of (symbol . value).
1993-07-15 05:36:59 +00:00
Richard M. Stallman
fc53efda7f (dired-mode-map): Add menu bar items. 1993-07-15 05:32:25 +00:00
Jim Blandy
6476a5fa36 * assoc.el (asort): First argument should be named alist-symbol,
not assoc-symbol.
1993-07-15 05:08:23 +00:00
Jim Blandy
ae450a9555 * keyboard.c (menu_bar_one_keymap): If the key's binding is the
symbol `undefined', don't try to take that symbol's cdr before
passing it to menu_bar_item; pass the `undefined' binding itself,
so menu_bar_item can remove bindings for the same key from result.
1993-07-15 04:58:59 +00:00
Richard M. Stallman
991298c3fc (server-done): Let save-buffer make the backup,
so that make-backup-files remains effective.
1993-07-15 04:01:14 +00:00
Roland McGrath
a9a5a9fa77 (isearch-edit-string): Bind isearch-nonincremental to its own value, not to
nil.
1993-07-15 03:46:02 +00:00