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

2820 Commits

Author SHA1 Message Date
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
Richard M. Stallman
7ef84cf98f (vc-diff): Report an error if the buffer isn't registered.
(vc-registration-error): New function.
(vc-next-action, vc-diff, vc-print-log, vc-backend-diff): Use it to
make VC's error messages more uniform.

(vc-directory, vc-revert-buffer1): Quote lambdas with (function ...)
for Emacs 18.
(compilation-old-error-list): Set if undefined, for Emacs 18.
1993-05-11 21:15:54 +00:00
Jim Blandy
bdda375433 Re-arranged stuff to put defsubst accessors at the top 1993-05-11 19:14:34 +00:00
Jim Blandy
18004d2b7f * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
macro here; that's x-specific.  Just don't pass the second
	argument.
	* xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
	use F's default face.
1993-05-11 02:48:07 +00:00
Jim Blandy
9dbd4b48c5 * xdisp.c (display_text_line): Make face-handling code conditional
on HAVE_X_WINDOWS macro.  Perhaps this isn't the best approach,
	but it'll do for now.

	* xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
	macro here; that's x-specific.  Just don't pass the second
	argument.
	* xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
	use F's default face.
1993-05-11 02:47:46 +00:00
Jim Blandy
a253bab22d * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
filesystem being ro, since Solaris 2.1 doesn't.
        (file-writable-p): Call ro_fsys.
	* s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
1993-05-11 01:39:42 +00:00
Jim Blandy
5cbdb35688 * systime.h: Use the strategy from getdate.y to include the proper
combination of <time.h> and <sys/time.h>.
1993-05-11 00:07:51 +00:00
Jim Blandy
942990d1fb Use pushdef and popdef, instead of saving the macro's value in a
variable.
1993-05-10 23:58:36 +00:00
Jim Blandy
ee8f40ccfc * xfns.c (Fx_create_frame): Use an XLFD name for the default font,
instead of "9x15" or whatever it was.
1993-05-10 23:31:01 +00:00
Jim Blandy
0ca2af7c0b * configure.in: Sidestep autoconf's quoting of the second argument
of AC_DEFINE, so we can specify the value to put there.  It would
	be nice if autoconf provided some way to specify computed values
	for macros.
1993-05-10 19:20:56 +00:00
Richard M. Stallman
3ed788ec2c (buffer-menu): Don't save a window config.
(Buffer-menu-select): Don't call Buffer-menu-execute.
Don't restore a window config.
1993-05-10 16:31:21 +00:00
Roland McGrath
0dea0bbe34 (byte-recompile-directory): If ARG is non-nil, set it to its prefix
numeric value.  Test for ARG being zero with eq, not zerop.
1993-05-10 00:49:06 +00:00
Jim Blandy
32de648411 * s/template.h: Explain the relative significance of the SIGIO and
INTERRUPT_INPUT macros.
1993-05-10 00:35:06 +00:00
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