1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

2700 Commits

Author SHA1 Message Date
Jim Blandy
16f7413a03 * s/sunos4shr.h: Apply changes from David J. Mackenzie; this isn't
used by any configuration right now, but he's trying to make it
	work.
	#include "sunos4-1.h" instead of "bsd4-2.h".
	(O_NDELAY): Don't define this.
	(SYSTEM_MALLOC): Don't define this, either.
	(LD_SWITCH_SYSTEM): Remove the definition for this.
1993-05-10 00:34:31 +00:00
Jim Blandy
07e34cb0a9 * xdisp.c (display_text_line): Apply faces to characters
according to overlays and text properties; use
	compute_char_face and compute_glyph_face to figure out what
	face to use, and where a new face starts.
	* xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
	which frame face to use.  Call GLYPH_FOLLOW_ALIASES to make sure
	we're implementing the glyph table properly.  If we're not using
	the default or mode line face, call intern_face to find a display
	face for the frame face selected by the glyph code.  Implement
	underlining.  Remove the `font' argument; we have to derive this
	from the frame and face anyway.  Change all callers.
	* disptab.h (GLYPH_FOLLOW_ALIASES): New macro.

	* xterm.c (x_destroy_window): Call free_frame_faces.
1993-05-10 00:26:32 +00:00
Jim Blandy
9c7bb45ff3 * xfns.c (x_make_gc): After building the GC's for the frame, call
init_frame_faces to set up the first two faces.
	* xfaces.c (init_frame_faces): Don't just try to copy the default
	and mode line faces from some other random frame; instead, consult
	the normal_gc and reverse_gc members of the frame, and build the
	faces based on their parameters.
1993-05-10 00:25:40 +00:00
Jim Blandy
cb63767871 * xfaces.c (Fmake_face_internal): Do nothing for non-X frames.
* dispextern.h (struct face): Add cached_index member.
	* xfaces.c (get_cached_face): Use it to avoid unnecessary
	searches of face_vector.

	* xfaces.c (intern_face): Renamed from get_display_face.

	* xfns.c (x_make_gc): After building the GC's for the frame, call
	init_frame_faces to set up the first two faces.
	* xfaces.c (init_frame_faces): Don't just try to copy the default
	and mode line faces from some other random frame; instead, consult
	the normal_gc and reverse_gc members of the frame, and build the
	faces based on their parameters.

	Adjust the face computation functions to return frame face ID's,
	not pointers to display faces; since we call these functions
	during display construction, we don't want the display faces yet.
	* xfaces.c (intern_frame_face): New function.
	(compute_char_face, compute_glyph_face): Apply intern_frame_face
	to the computed face, and return the frame face's ID, instead of
	calling intern_face and returning a pointer to a display frame.

	* xfaces.c: Describe the facial data structures.  It took me a
	while to figure them out; perhaps this will save someone else the
	trouble.

	* xfaces.c (get_display_face): Use face_eql instead of writing it out.
1993-05-10 00:25:17 +00:00
Jim Blandy
31b2455197 Arrange to tell redisplay about changes in overlays.
* xdisp.c (redisplay_region): New function.
	* buffer.c (Fmove_overlay): Call redisplay_region on the areas the
	overlay has enclosed or left.
	(Fdelete_overlay): Call redisplay_region on the area the overlay
	used to occupy.
	(Foverlay_put): Call redisplay_region on the area the overlay now
	occupies; we may have put a face property on it.

	* xdisp.c (redisplay): If we're doing a thorough redisplay (all
	windows on all frames involved), go ahead and flush the GC cache -
	call clear_face_vector.

	* xdisp.c (display_text_line): Apply faces to characters
	according to overlays and text properties; use
	compute_char_face and compute_glyph_face to figure out what
	face to use, and where a new face starts.
	* xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
	which frame face to use.  Call GLYPH_FOLLOW_ALIASES to make sure
	we're implementing the glyph table properly.  If we're not using
	the default or mode line face, call intern_face to find a display
	face for the frame face selected by the glyph code.  Implement
	underlining.  Remove the `font' argument; we have to derive this
	from the frame and face anyway.  Change all callers.
	* disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
1993-05-10 00:23:47 +00:00
Jim Blandy
703f280806 * config.h.in: Remove mention of GLYPH datatype; that shouldn't be
a user option.
	* lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
1993-05-10 00:17:55 +00:00
Jim Blandy
2fc6697323 * keymap.c (Fwhere_is_internal): If FIRSTONLY is non-nil, avoid
returning a non-ascii key sequence unless FIRSTONLY is the symbol
	`non-ascii'.
1993-05-10 00:17:31 +00:00
Jim Blandy
ad163903cc * blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO is
defined everywhere this file is #included; merge the two
	definitions for defined (SIGIO) and ! defined (SIGIO) into one,
	which calls reinvoke_input_signal if interrupt_input_pending is
	set.
	* keyboard.c (reinvoke_input_signal): New function.

	* keyboard.c (syms_of_keyboard): Doc fix for
	extra-keyboard-modifiers.
1993-05-10 00:17:08 +00:00
Jim Blandy
be269961dc * xdisp.c (display_text_line): Apply faces to characters according
to overlays and text properties; use compute_char_face to figure out
	what face to use, and where a new face starts.
	* xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
	which frame face to use.  Call GLYPH_FOLLOW_ALIASES to make sure
	we're implementing the glyph table properly.  If we're not using
	the default or mode line face, call intern_face to find a display
	face for the frame face selected by the glyph code.  Implement
	underlining.  Remove the `font' argument; we have to derive this
	from the frame and face anyway.  Change all callers.
	* disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
1993-05-10 00:16:34 +00:00
Jim Blandy
88fd275e69 * dispextern.h (struct face): Add cached_index member.
* xfaces.c (get_cached_face): Use it to avoid unnecessary
	searches of face_vector.
1993-05-10 00:15:58 +00:00
Jim Blandy
783f85c7ae * config.h.in: Adjust this for use by autoconf's AC_CONFIG_HEADER,
instead of AC_OUTPUT.

	* config.h.in: Remove mention of GLYPH datatype; that shouldn't be
	a user option.
	* lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
1993-05-10 00:15:35 +00:00
Jim Blandy
b61982dd6e Arrange to tell redisplay about changes in overlays.
* xdisp.c (redisplay_region): New function.
	* buffer.c (Fmove_overlay): Call redisplay_region on the areas the
	overlay has enclosed or left.
	(Fdelete_overlay): Call redisplay_region on the area the overlay
	used to occupy.
	(Foverlay_put): Call redisplay_region on the area the overlay now
	occupies; we may have put a face property on it.

	* buffer.c (Fmove_overlay): Doc fix.
1993-05-10 00:15:02 +00:00
Jim Blandy
40a4095a69 * blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO is
defined everywhere this file is #included; merge the two
	definitions for defined (SIGIO) and ! defined (SIGIO) into one,
	which calls reinvoke_input_signal if interrupt_input_pending is
	set.
	* keyboard.c (reinvoke_input_signal): New function.
1993-05-10 00:14:09 +00:00
Jim Blandy
d70fd7d6ee * Makefile.in (DEFS): Remove this; we have configure build a
config.h file directly, instead of having lots of -D flags.

	* Makefile.in (CFLAGS): Don't make this carry DEFS from the
	configure script; the coding standards say that CFLAGS should be
	left for the user to tweak.

	* Makefile.in (LN_S): New variable, edited by top Makefile.
	(SUBMAKEFILE): New variable, containing all flags to pass to
	recursive makes.
1993-05-10 00:13:32 +00:00
Jim Blandy
663258f2ff * keyboard.c (read_char): Exit kbd macro if Vexecuting_macro is t.
* keyboard.c (do_mouse_tracking): Now static.

	* keyboard.c (read_char_menu_prompt): Expect Fx_popup_menu
	to return a list of events.  Don't lose any of them.
1993-05-10 00:10:08 +00:00
Jim Blandy
ffe1dd7ac1 * x-win.el: Since we require faces.el, there's no point in setting
frame-creation-function to x-create-frame - just set it directly
	to x-create-frame-with-faces.

	* x-win.el: (require 'faces), too.  Move (require 'select) to top,
	with the other requires.
1993-05-09 23:54:12 +00:00
Richard M. Stallman
4bf5153268 (rmail-output): Undo June 11 1992 change:
Don't try to use Date field in the From.
1993-05-09 23:53:56 +00:00
Jim Blandy
527da10641 * finder.el: Bind finder-exit to 'q', not 'x'; the former is the
conventional way to get out of such a package.
	(finder-summary): Use substitute-command-keys.
	(finder-mode): Use \\<...> to make sure we get the right keymap.
1993-05-09 23:52:39 +00:00
Jim Blandy
f0138172cd * faces.el: Call internal-set-face-1, not internat-set-face-1.
* faces.el: Don't set frame-creation-function here; x-win.el is
	the appropriate place to set it.

	* faces.el: Only apply x-initialize-frame-faces to X frames; pass
	over terminal frames.

	* faces.el: Provide 'faces.
1993-05-09 23:48:41 +00:00
Jim Blandy
bb9a81fcda * faces.el (read-face-name): Call face-list, not list-faces.
Fail more gracefully if we can't build bold, italic, etc,
	versions of the default font.
	* faces.el (make-face-bold, make-face-italic,
	make-face-bold-italic, make-face-unbold, make-face-unitalic):
	Implement NOERROR argument.
	(x-initialize-frame-faces): Use the NOERROR argument to the
	font manipulation functions to avoid errors while starting up.
	Remove initialization of isearch font.
	* xfaces.c (internal-x-complain-about-font): Add new frame
	argument, so we can check the frame parameters to find the
	default font.  Callers changed.

	* faces.el (x-create-frame-with-faces): Fix typo.  Dyke out
	code to fully qualify the modeline font; we may not be able to
	do that correctly.
1993-05-09 23:38:29 +00:00
Richard M. Stallman
9b54f2680c (dabbrev-expand): Delete a search-forward call
after the second replace-match.
1993-05-09 23:18:30 +00:00
Roland McGrath
723472f14e (find-change-log): If there is a buffer-local value of
change-log-default-name, just return it with no searching.  Previously a if
it was set to a nonexistent file name, we would loop forever.
1993-05-09 23:16:19 +00:00
Jim Blandy
e447481751 The GNU coding standards specify that CFLAGS should be left for
users to set.
	* Makefile.in (CFLAGS): Let configure determine the default value
	for this.  Don't
	have it default to DEFS.
	(${SUBDIR}): Pass CFLAGS down to submakes, not DEFS.
	(lib-src/Makefile, src/Makefile): Edit the default value for
	CFLAGS into these files, not DEFS.
	* configure.in (CFLAGS): Choose a default value for this - "-g"
	normally, or "-g -O" if we're using GCC.  Edit it into the
	top-level Makefile.

	* configure.in: When scanning the machine and system description
	#include files, write their names to conftest.c properly.

	* configure.in: In configuration name case for Apallos running
	Domainios, set opsys, not opsysfile.

	* configure.in: Use the autoconf AC_CONFIG_HEADER macro to produce
	src/config.h, instead of AC_OUTPUT; the latter overwrites
	src/config.h even when it hasn't changed, puts a makefile-style
	comment at the top even though it's C code, and produces a
	config.status script which doesn't do the job right.

	* configure.in: Add AC_LN_S test, so we can tell whether or not we
	can use a symbolic link to get the X Menu library into src.
	* Makefile.in (LN_S): New variable.
	(src/Makefile): Edit the value of LN_S into this makefile.
1993-05-09 22:52:15 +00:00
Jim Blandy
b6472fc16b * Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
this is always just -DHAVE_CONFIG_H.

	The GNU coding standards specify that CFLAGS should be left for
	users to set.
	* Makefile.in (CFLAGS): Let configure determine the default value
	for this.  Don't
	have it default to DEFS.
	(${SUBDIR}): Pass CFLAGS down to submakes, not DEFS.
	(lib-src/Makefile, src/Makefile): Edit the default value for
	CFLAGS into these files, not DEFS.
	* configure.in (CFLAGS): Choose a default value for this - "-g"
	normally, or "-g -O" if we're using GCC.  Edit it into the
	top-level Makefile.

	* configure.in: Add AC_LN_S test, so we can tell whether or not we
	can use a symbolic link to get the X Menu library into src.
	* Makefile.in (LN_S): New variable.
	(src/Makefile): Edit the value of LN_S into this makefile.
1993-05-09 22:51:16 +00:00
Richard M. Stallman
679f7f7eb7 (query-replace-map): Bind [escape] like "\e". 1993-05-09 18:03:20 +00:00
Richard M. Stallman
ba79087074 Doc fix. 1993-05-09 18:02:10 +00:00
Richard M. Stallman
af400c0042 (kbd-macro-query): Use query-replace-map to define answers. 1993-05-09 17:58:55 +00:00
Richard M. Stallman
4c2c1de1fd (vc-backend-diff): Handle either string or list. 1993-05-09 14:29:33 +00:00
Richard M. Stallman
2e810285eb (diff-switches): Define var here as well as in diff.el. 1993-05-09 14:27:02 +00:00
Richard M. Stallman
fa203a7cc3 Comment fix. 1993-05-09 14:26:40 +00:00
Richard M. Stallman
1f5862cfd7 *** empty log message *** 1993-05-09 04:27:47 +00:00
Richard M. Stallman
1a6847b5bc [SCO]: Include time.h. 1993-05-09 04:26:46 +00:00
Richard M. Stallman
2d4130047f (mail-do-fcc): Don't output a newline before From... 1993-05-09 01:16:14 +00:00
Richard M. Stallman
8896f2df11 (rmail-convert-to-babyl-format): Delete 1 char
if we see a newline instead of what we expect.
1993-05-09 01:14:47 +00:00
Richard M. Stallman
22073ddadb (jump-to-register): Allow file name "in" a register. 1993-05-09 00:57:56 +00:00
Richard M. Stallman
e532b01661 (scroll-bar-drag, scroll-bar-drag-1): New functions.
Put scroll-bar-drag on down-mouse-2 in scroll bar.
Leave up-events on mouse-2 unbound.
1993-05-08 23:49:17 +00:00
Richard M. Stallman
b1fe930449 Require help-macro, not help-screen. 1993-05-08 22:38:37 +00:00
Richard M. Stallman
dd6a74ce66 Provide help-macro, not help-screen. 1993-05-08 22:38:25 +00:00
Richard M. Stallman
e5a10c8169 Don't add menu bar to minibuffer-only frames. 1993-05-08 16:45:38 +00:00
Richard M. Stallman
99e2d9a915 (Fx_get_mouse_event, Fx_mouse_events): Code deleted. 1993-05-08 16:29:04 +00:00
Richard M. Stallman
3a68f530fe (Vmouse_event): Var deleted.
(syms_of_window): Don't make it  Lisp var.
1993-05-08 16:28:36 +00:00
Richard M. Stallman
0ee7d6239a (vc-directory-18): cd to the directory in question before the file tree walk. 1993-05-08 16:17:01 +00:00
Richard M. Stallman
6ed5075cab (vc-directory-18): New function.
If Emacs 18, make vc-directory alias to this.
1993-05-08 16:14:11 +00:00
Richard M. Stallman
b04904fb2e (read_avail_input): If meta_key is 2, let 8 bits thru.
(Fset_input_mode): Set meta_key to 2 if META arg isn't t or nil.
1993-05-08 14:55:39 +00:00
Eric S. Raymond
d2b641800e *** empty log message *** 1993-05-08 09:25:11 +00:00
Richard M. Stallman
e9c78f076c (calendar-mode-map): Add arrow key bindings. 1993-05-07 17:40:01 +00:00
Richard M. Stallman
8159f4af7e (rmail-resend): Add `resent' attribute.
(rmail-forward): With prefix arg, run rmail-resend.
1993-05-07 17:34:34 +00:00
Richard M. Stallman
8903221548 (x_get_arg): Call Fintern, not intern. 1993-05-07 02:55:22 +00:00
Richard M. Stallman
72f21cdfe3 (flush-lines, keep-lines, how-many):
Delete spurious `s' from prompt arg to read-from-minibuffer.
1993-05-06 22:21:12 +00:00
Richard M. Stallman
4f8cc93a21 Typo in last change. 1993-05-06 20:17:22 +00:00