1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-26 07:00:35 -08:00
Commit graph

2762 commits

Author SHA1 Message Date
Richard M. Stallman
bc0db68d47 (compute_char_face): New args REGION_BEG, REGION_END.
Don't sort if noverlays is 0 or 1.
1993-05-15 18:45:14 +00:00
Richard M. Stallman
de83c3149e (direct_output_forward_char): Just give up
if region is being highlighted.

(direct_output_for_insert): Pass those args.
1993-05-15 18:44:46 +00:00
Richard M. Stallman
31ba9d398e (map-y-or-n-p): Show the answers in the echo area. 1993-05-15 18:05:42 +00:00
Richard M. Stallman
66afa119d0 Make links in info subdir. 1993-05-15 04:13:27 +00:00
Jim Blandy
3ece337ad9 * buffer.c (Fmove_overlay): If the overlay is in no buffer and the
BUFFER argument has been omitted, put it in the current buffer,
	for symmetry with move-marker.

	* buffer.c (Fdelete_overlay): Make the overlay's markers point
	nowhere, not at 1.  Do this after calling redisplay_region, so
	that code knows what section has changed.
1993-05-14 22:57:10 +00:00
Richard M. Stallman
926a64aa20 (access_keymap): Handle any length vector.
(store_in_keymap): Likewise.
(Fcopy_keymap): Likewise.
1993-05-14 22:11:17 +00:00
Richard M. Stallman
0e9d6dd34b (command_loop_1): Don't do it here. 1993-05-14 19:43:05 +00:00
Richard M. Stallman
8d7e4e80d8 (isearch-mode-map): Handle any length vector in keymap.
(isearch-char-to-string): Handle non-character events properly.
1993-05-14 18:02:55 +00:00
Jim Blandy
8ebafa8d4d * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer,
Foverlay_properties): Functions moved here from subr.el.
1993-05-14 15:35:17 +00:00
Jim Blandy
24f1977f70 * vc.el (vc-version-diff): Match parens. 1993-05-14 15:21:50 +00:00
Jim Blandy
4a4dc352d5 * xterm.c (dumpglyphs): Give the cursor higher priority than the
face specified by the glyph under it.

	* xterm.c (dumpglyphs): Move the underline up a row.  I dislike
	the way X addresses pixels.  Quickdraw is much nicer.

	* xterm.c (dumpglyphs): Pass the proper arguments to intern_face.

	* xterm.c (dumpglyphs): Don't increment left twice.
1993-05-14 14:44:26 +00:00
Jim Blandy
f6b98e0be9 * xfaces.c (compute_char_face): When merging the overlays,
traverse sortvec, not overlay_vec; the latter isn't the one we
	sorted.

	* xfaces.c (intern_face): If the face has a GC, but it's not the
	default or modeline face, abort.  Nothing but those two faces
	should have a GC *and* be passed to intern_face.
	(compute_char_face, compute_glyph_face): After copying
	the frame's default face into face, to use as a base case for
	calculation, set the `gc' member to zero; that way we don't have
	things lying around that look like display faces but aren't.

	* xfaces.c (intern_frame_face): When copying the new face into the
	frame's face array, remember that the number of bytes to copy is
	sizeof (*new_face), not sizeof (new_face).

	* xfaces.c (compute_char_face): Assume that W is displaying the
	current buffer.  Abort if it isn't.
1993-05-14 14:44:01 +00:00
Jim Blandy
04a759c81b The text property routines can now modify buffers other
than the current one.
	* insdel.c (modify_region): New argument BUFFER.  Select that
	buffer while we prepare for the modification, and switch back when
	we're done.
	* textprop.c (add_properties, remove_properties): Pass
	the buffer being modified as the first argument to modify_region.
	* editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the
	current_buffer as the first argument to modify_region.
	* casefiddle.c (casify_region): Same.
1993-05-14 14:43:30 +00:00
Jim Blandy
6c523803b3 * lisp.h (Lisp_Overlay): New tag.
(OVERLAYP): New predicate.
	(CHECK_OVERLAY): New type-checker.
	(Qoverlayp): New extern declaration.
	* buffer.c (Foverlayp): New function.
	(Qoverlayp): New atom.
	(overlays_at, recenter_overlay_lists): Abort if we encounter an
	invalid overlay.
	(syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
	(Fdelete_overlay): Set the overlay's markers to point nowhere.
	Use CHECK_OVERLAY instead of signalling a special error.
	(Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
	signalling a special error.
	(Foverlay_get): Use CHECK_OVERLAY.
	* fns.c (internal_equal): Define this for overlays.
	* buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
	* print.c (print): Give overlays their own print syntax.
	* alloc.c (mark_object): Treat overlays like conses.
1993-05-14 14:43:00 +00:00
Jim Blandy
93b9120871 * lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
to get the extern declarations for atof.  That's where it is in
	POSIX.
1993-05-14 14:42:01 +00:00
Jim Blandy
20280af7ca * lisp.h (Lisp_Overlay): New tag.
(OVERLAYP): New predicate.
	(CHECK_OVERLAY): New type-checker.
	(Qoverlayp): New extern declaration.
	* buffer.c (Foverlayp): New function.
	(Qoverlayp): New atom.
	(overlays_at, recenter_overlay_lists): Abort if we encounter an
	invalid overlay.
	(syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
	(Fdelete_overlay): Set the overlay's markers to point nowhere.
	Use CHECK_OVERLAY instead of signalling a special error.
	(Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
	signalling a special error.
	(Foverlay_get): Use CHECK_OVERLAY.
	* fns.c (internal_equal): Define this for overlays.
	* buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
	* print.c (print): Give overlays their own print syntax.
	* alloc.c (mark_object): Treat overlays like conses.

	* lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE
	is not defined.
1993-05-14 14:41:36 +00:00
Jim Blandy
620567645f * intervals.c (set_point): Check for point out of bounds before
checking for an empty interval tree.
1993-05-14 14:40:56 +00:00
Jim Blandy
517b2e01b3 * dispnew.c (direct_output_for_insert): Compute the face of the
character we're inserting properly.
1993-05-14 14:39:15 +00:00
Jim Blandy
7b502dc326 * cmds.c (Fforward_char): Check proposed new position, and then
set point, instead of setting point to a potentially invalid
	position.
1993-05-14 14:37:53 +00:00
Jim Blandy
52f8ec734e * lisp.h (Lisp_Overlay): New tag.
(OVERLAYP): New predicate.
	(CHECK_OVERLAY): New type-checker.
	(Qoverlayp): New extern declaration.
	* buffer.c (Foverlayp): New function.
	(Qoverlayp): New atom.
	(overlays_at, recenter_overlay_lists): Abort if we encounter an
	invalid overlay.
	(syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
	(Fdelete_overlay): Set the overlay's markers to point nowhere.
	Use CHECK_OVERLAY instead of signalling a special error.
	(Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
	signalling a special error.
	(Foverlay_get): Use CHECK_OVERLAY.
	* fns.c (internal_equal): Define this for overlays.
	* buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
	* print.c (print): Give overlays their own print syntax.
	* alloc.c (mark_object): Treat overlays like conses.

	* buffer.c (Foverlay_get): Return Qnil if the requested property
	is missing from the property list.
1993-05-14 14:36:01 +00:00
Jim Blandy
d855a60363 * configure.in: Call AC_STDC_HEADERS. 1993-05-14 14:27:17 +00:00
Richard M. Stallman
6fb6ab11e1 (vc-revert-buffer1): Don't assume that compilation-error-list
is a list; it might be t.
1993-05-14 03:57:45 +00:00
Richard M. Stallman
661d3230fb (emerge-find-difference-diff): Renamed from emerge-find-difference.
(emerge-find-difference): New command.  Now on `.'.
(emerge-diff-ok-lines-regexp): Renamed from emerge-diff-ok-lines.
(emerge-diff3-ok-lines-regexp): Renamed from emerge-diff3-ok-lines.
1993-05-13 20:06:18 +00:00
Richard M. Stallman
adca3f58ff (emerge-setup-fixed-keymaps): Put emerge-abort on C-]. 1993-05-13 19:33:20 +00:00
Richard M. Stallman
737e38923a (emerge-count-matches-string): Renamed from count-matches-string.
(emerge-command-prefix): Now C-c C-c.
emerge-shadow-key-definition): Deleted.
Callers use substitute-key-definition.
(emerge-recursively-substitute-key-definition): Deleted.
Callers use substitute-key-definition.
(emerge-unselect-hook): Renamed from emerge-unselect-hooks.
(emerge-files-internal): Use file-local-copy to handle remote files.
(emerge-files-with-ancestor-internal): Likewise.
(emerge-remote-file-p): Deleted.
(emerge-abort): New command.
(describe-mode): Deleted.
(emerge-hash-string-into-string): Renamed from hash-string-into-string.
(emerge-unslashify-name): Renamed from unslashify-name.
(emerge-write-and-delete): Don't write-file if file-out is nil.
1993-05-13 19:25:37 +00:00
Richard M. Stallman
151e4b9ca8 Install DRW's version 5. 1993-05-13 19:24:38 +00:00
Richard M. Stallman
36bed8bc8c (vc-version-diff): Don't move point in current buffer. 1993-05-13 12:05:52 +00:00
Roland McGrath
41e7816ac5 (tags-table-including): Take new third arg CORE-ONLY. If non-nil,
ignore files without extant buffers.
(visit-tags-table-buffer): Call tags-table-including first with
CORE-ONLY set, and then afterwards with it clear.
1993-05-13 05:28:14 +00:00
Jim Blandy
b6d40e465b * xfaces.c (intern_frame_face): Exchange order of arguments, to
make callers correct.

	* xfaces.c (compute_char_face): Notice the next property change
	location correctly.

	* xfaces.c (face_name_id_number): Return 0 (the default face) if
	the name is undefined.

	* xfaces.c (Fset_face_attribute_internal): Do nothing unless FRAME
	is an X frame.
1993-05-13 04:08:52 +00:00
Jim Blandy
1c2250c26e * xdisp.c (copy_rope, copy_part_of_rope): Add face argument.
(display_text_line): Initialize current_face to zero.   Apply it
	to characters as we write them to the display matrix.
	(display_string): Pass the new argument to copy_rope.

	* xdisp.c (display_text_line): Handle the locations of face
	changes properly.
1993-05-13 04:08:26 +00:00
Richard M. Stallman
bffa5d4d15 Provide 'menu-bar. 1993-05-13 03:34:18 +00:00
Richard M. Stallman
e09c52a8a0 (face-initialize): New function.
All initialization code moved into it.
Call at end of file, if using X frames already.
(x-create-frame-with-faces): Don't use faces if not initialized.
1993-05-13 03:24:09 +00:00
Richard M. Stallman
fc4d4afb41 Don't put frame-initialize and frame-notice-user-settings on hooks.
They are now called directly.
1993-05-13 03:23:40 +00:00
Jim Blandy
6a0486dd89 * textprop.c (Fnext_single_property_change,
Fprevious_single_property_change): Pass arguments to textget in
	the right order.
1993-05-13 03:17:03 +00:00
Richard M. Stallman
c722566c7c (command-line): Call frame-initialize explicitly.
Call face-initialize.
(normal-top-level): Call frame-notice-user-settings explicitly.
1993-05-13 03:14:39 +00:00
Richard M. Stallman
4f6e4ad6cd (Setting minor-mode-map-alist):
Put the map directly in the alist, not a variable name.
1993-05-13 03:14:07 +00:00
Roland McGrath
0e5ad25f6b (main): Don't require that there be input files if -i switches were given. 1993-05-13 03:00:51 +00:00
Jim Blandy
8b4cc189e3 *** empty log message *** 1993-05-13 01:47:22 +00:00
Richard M. Stallman
cd9565badb (child_setup): Omit duplicates from new env array. 1993-05-13 00:21:47 +00:00
Richard M. Stallman
1a40d27fa2 (make_lispy_event): Don't set shift modifier for C-^. 1993-05-13 00:21:23 +00:00
Richard M. Stallman
992984b287 (current_minor_maps): Call Findirect_function, so symbols
can be used in place of actual maps.
1993-05-13 00:20:51 +00:00
Richard M. Stallman
68a37fa8c7 (display_text_line): Use break; to exit loop at eol.
Duplicate the short MAKE_GLYPH loop after the main loop.
If no display table, do obey selective_display_ellipses.
(copy_part_of_rope): Arg FROM is now Lisp_Object *.
1993-05-13 00:19:20 +00:00
Richard M. Stallman
8693344e1f (kbd-macro-query): Fix prompt string. 1993-05-12 23:56:18 +00:00
Richard M. Stallman
db6f9d952e (Faccessible_keymaps): Use whatever size the vector has.
(Fwhere_is_internal): Likewise.
(describe_vector): Likewise.
1993-05-12 21:58:16 +00:00
Richard M. Stallman
8b86c9ebbf (default-menubar): Make initial value nil.
(kill-this-buffer, x-new-frame)
(sensitize-file-and-edit-menus-hook, format-buffers-menu-line)
(buffers-menu-max-size, complex-buffers-menu-p)
(buffers-menu-switch-to-buffer-function, buffer-menu-save-buffer)
(buffer-menu-write-file, build-buffers-menu-internal)
(build-buffers-menu-hook): Functions and variables deleted.
1993-05-12 21:41:56 +00:00
Richard M. Stallman
34291cd2f7 Improve doc strings and prompt strings.
(vc-cancel-version): Ask whether to revert buffer.
1993-05-12 21:30:35 +00:00
Richard M. Stallman
c64cc46775 (comint-filter): Increment opoint only if after insertion point. 1993-05-12 20:32:32 +00:00
Richard M. Stallman
d3f7c8c6e4 (te-pass-through): Handle meta chars and non-char events.
(terminal-map, etc.): Use default bindings, not fillarray.
Make the maps sparse.
(terminal-meta-map): New map; lets us make ESC a prefix key.
(terminal-map): Bind ESC to terminal-meta-map.
(te-more-break-unread): Handle non-char as last-input-char.
(te-filter): Delete code that worked with meta-flag.
(terminal-emulator): Don't look at meta-flag.
(terminal-mode): Don't make meta-flag local.
(te-stty-string): Quote the args that have ^.  Add pass8.

Changes that esr made in the previous version but didn't describe in detail:

Some defvars moved.
Defvars added for many variables.
(te-stty-string): Specify the characters explicitly--not `stty dec'.
1993-05-12 18:41:29 +00:00
Richard M. Stallman
819012f055 (Fx_popup_menu): Add a vector of prefix keys for the panes.
(keymap_panes): Allocate that vector.
(single_keymap_panes): Fill in that vector.
(xmenu_show): Return a list of events, not just one event.
1993-05-12 05:17:47 +00:00
Jim Meyering
9d330ad06a Initial revision 1993-05-11 23:23:34 +00:00