1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 06:21:02 -08:00
Commit graph

3042 commits

Author SHA1 Message Date
Jim Blandy
ea96210c35 * xfns.c: Clear out the old face stuff.
(x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font,
	Fx_set_face, Fx_get_face): Removed.
	(syms_of_xfns): Remove defsubr for Fx_set_face.

	Arrange for font names to get fully resolved - no wildcards.
	* xfns.c (x_set_frame_parameters): Store the value in the frame
	parameter alist before we call the setter function, so the setter
	function can touch up the value if it chooses.
	(x_set_foreground_color, x_set_background_color): Call
	recompute_basic_faces, so their GC's will reflect the changes.
	(x_new_font): Add extern declaration - this returns a Lisp_Object
	now, the fully resolved font name.
	(x_set_font): Accept the fully resolved name from x_new_font, and
	put it in the frame's parameter alist.  Call recompute_basic_faces.
	* xterm.c (x_new_font): Return the fully resolved font name, Qnil
	(if no match), or Qt (match, but unacceptable metrics).
	* xterm.c (x_new_font): Don't call init_frame_faces.

	* xterm.h: New section for declarations for xfaces.c.
	(init_frame_faces, free_frame_faces, intern_face,
	face_name_id_number, same_size_fonts, recompute_basic_faces,
	compute_char_face, compute_glyph_face): Declare these here.
	* xfaces.c (same_size_fonts): We can now remove this extern
	declaration.
	* xfns.c (face_name_id_number): Likewise.
	* xterm.c (intern_face): Likewise.

	* xfns.c (Fx_list_fonts): Remember that FACE may not have a font
	specified.  Don't specify 30000 as the maximum limit on the number
	of fontns returned  - 2000 is more reasonable.

	Treat faces as structures specifying modifications to the frame's
	parameters, rather than things which need to specify a complete
	set of parameters by themselves.
	* xfaces.c (init_frame_faces): Don't set up the two frame display
	faces by querying the GC - just leave all their fields blank, and
	call recompute_basic_faces, letting build_face do the work of
	consulting the frame when necessary.
	(recompute_basic_faces): New function.
	(compute_base_faces): New function for obtaining the "identity"
	for compute_char_face and compute_glyph_face.
	(compute_char_face, compute_glyph_face): Call it, instead of copying
	FRAME_DEFAULT_FACE.
	* xfns.c (x_make_gc): No need to call init_frame_faces here.
1993-05-25 14:03:41 +00:00
Jim Blandy
660ed6694b * xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
	face_name_id_number, same_size_fonts, recompute_basic_faces,
	compute_char_face, compute_glyph_face): Declare these here.
	* xfaces.c (same_size_fonts): We can now remove this extern
	declaration.
	* xfns.c (face_name_id_number): Likewise.
	* xterm.c (intern_face): Likewise.

	* xfaces.c (build_face, unload_font, free_frame_faces): Don't
	forget to block input while making X calls.

	Treat faces as structures specifying modifications to the frame's
	parameters, rather than things which need to specify a complete
	set of parameters by themselves.
	* xfaces.c (init_frame_faces): Don't set up the two frame display
	faces by querying the GC - just leave all their fields blank, and
	call recompute_basic_faces, letting build_face do the work of
	consulting the frame when necessary.
	(recompute_basic_faces): New function.
	(compute_base_faces): New function for obtaining the "identity"
	for compute_char_face and compute_glyph_face.
	(compute_char_face, compute_glyph_face): Call it, instead of copying
	FRAME_DEFAULT_FACE.
	* xfns.c (x_make_gc): No need to call init_frame_faces here.

	* xfaces.c (intern_frame_face): This can be static.

	* dispextern.h (struct face): New field - `copy', to help us with
	resource allocation.
	* xfaces.c (free_frame_faces): Do free the first two faces; don't
	free anything from a face that's a copy.
	(intern_frame_face): Mark every face we intern as a copy; its
	resources are actually a combination of the real faces.
	(Fset_face_attribute_internal): No need to check if we're trying
	to free one of the frame's GC's; they never enter into the
	picture.

	* xfns.c (Fx_list_fonts): New function.
	(face_name_id_number): Add extern declaration for this.
	* xfaces.c (face_name_id_number): Make this externally visible,
	and make the FRAME argument a FRAME_PTR, not a Lisp_Object.
	(compute_char_face): Call face_name_id_number properly.
1993-05-25 14:02:58 +00:00
Jim Blandy
e5c8436a17 * dispextern.h (struct face): New field - `copy', to help us with
resource allocation.
	* xfaces.c (free_frame_faces): Do free the first two faces; don't
	free anything from a face that's a copy.
	(intern_frame_face): Mark every face we intern as a copy; its
	resources are actually a combination of the real faces.
	(Fset_face_attribute_internal): No need to check if we're trying
	to free one of the frame's GC's; they never enter into the
	picture.
1993-05-25 14:01:54 +00:00
Jim Blandy
fbce865419 * startup.el (command-line-1): Don't handle `-i'. We're
abandoning the `insert file' meaning in favor of the `use a
	bitmapped icon' meaning.
1993-05-25 13:22:21 +00:00
Jim Blandy
281dc1c259 * faces.el (set-face-font): Call x-resolve-font-name on the font
before including it in the face.
	(x-resolve-font-name): New function.
1993-05-25 13:19:28 +00:00
Jim Blandy
db176f55de * x-win.el (command-switch-alist, x-switch-definitions): Treat
`-i' like `-itype', as in Emacs 18.
1993-05-25 13:17:52 +00:00
Jim Blandy
a1de6b4b57 * casetab.c: Fix formatting, so as not to confuse etags. 1993-05-25 13:03:47 +00:00
Jim Blandy
e6299e3010 * x-win.el (x-select-text): New arg PUSH.
(x-switch-definitions): Represent -r as `reverse' option.
1993-05-25 10:23:48 +00:00
Jim Blandy
7b50ece767 Fix the fix. 1993-05-25 09:26:44 +00:00
Jim Blandy
f126bd6787 * xfaces.c (merge_faces): You can't tell if a font is a
character-cell font or not by testing whether or not it has a
	per_char table.  They all do.
	* xterm.c (x_new_font): Same deal.
1993-05-25 07:03:38 +00:00
Jim Blandy
1d9fd7feaa * xfns.c (Fx_list_fonts): New function.
(same_size_fonts): Function moved here from xfaces.c.
	(face_name_id_number): Add extern declaration for this.
	* xfaces.c (same_size_fonts): Moved to xfns.c.  Left an extern
	declaration behind.
	(face_name_id_number): Make this externally visible, and make the
	FRAME argument a FRAME_PTR, not a Lisp_Object.
	(compute_char_face): Call face_name_id_number properly.

	* xfaces.c (unload_color): Don't free the pixel for now.

	* xfaces.c (merge_faces): You can't tell if a font is a
	character-cell font or not by testing whether or not it has a
	per_char table.  They all do.
1993-05-25 06:59:12 +00:00
Jim Blandy
ed61592a79 * paths.h (PATH_INFO): New path, to edited by the configuration
process.
	* callproc.c (Vconfigure_info_directory): New variable, used
	internally by build process.
	(syms_of_callproc): DEFVAR it and initialize it.
1993-05-25 06:38:43 +00:00
Jim Blandy
7af17c1c21 * m/iris4d.h: Dyke out the section which specifies how to get the
load average.
1993-05-25 06:25:07 +00:00
Jim Blandy
bb292c9277 * paths.el (Info-default-directory-list): Add ../../info. 1993-05-25 06:22:21 +00:00
Jim Blandy
2eae72268f * disp-table.el (standard-display-european): Doc fix. Make
this autoload.  Make it respond to prefix arg like a minor mode.
1993-05-25 06:21:35 +00:00
Jim Blandy
8b14d29674 * Makefile.in (src/paths.h): Edit the `infodir' variable into this
too, as the value of the PATH_INFO macro.

	* Makefile.in (install): Split this into `install' and
	`do-install', to give people more control over exactly what gets
	done.
	(do-install): New target, containing the guts of `install'.  Don't
	remove and recreate the directories inside the copying loop - do
	it all before the copying loop.  Pass more flags to the lib-src
	make.
	(mkdir): Create ${infodir}, ${mandir}, and ${sitelispdir} here, to
	avoid errors and warnings.
1993-05-25 06:18:24 +00:00
Jim Blandy
2e694846eb * configure.in: Check to see if the source lives in the same
directory as the configure script.
1993-05-25 04:56:17 +00:00
Jim Blandy
3fa657a268 * keyboard.c (Fcurrent_input_mode): Use XFASTINT to build the last
element of the return value, not XSETINT.
1993-05-25 04:53:07 +00:00
Jim Blandy
df4da582ba * configure.in: Recognize configuration names for i860 boxes
running SYSV.
1993-05-25 04:39:28 +00:00
Richard M. Stallman
9466a1f687 (find-file-read-only-other-window): Use find-file-other-window. 1993-05-25 03:56:02 +00:00
Jim Blandy
c027d070eb Changes for OSF/1:
* mem-limits.h [__osf__ && (__mips || mips)]: #include
	<sys/time.h> and <sys/resource.h>.
	(get_lim_data): OSF wants a definition like BSD4_2's.
	* s/osf1.h: #include "bsd4-3.h", not "s-bsd4-3.h".
1993-05-25 03:05:38 +00:00
Richard M. Stallman
36ae397ead (lispy_function_keys): Add kp-numlock. Fix kp-backspace. 1993-05-25 02:53:28 +00:00
Jim Blandy
f507095065 Some makes can't handle form feed characters in their makefiles.
* s/usg5-3.h: Remove form feed.
	* s/template.h, m/template.h: Remove form feeds.
1993-05-25 02:42:54 +00:00
Jim Blandy
a753b63755 s/ 1993-05-25 02:42:40 +00:00
Richard M. Stallman
79363a54ad (Info-default-directory-list): Add ../../info. 1993-05-25 02:33:03 +00:00
Richard M. Stallman
36fc9c9f18 (frame-initialize): Handle `reverse' as parameter. 1993-05-25 02:28:39 +00:00
Richard M. Stallman
1dd6d2a2dd (x-create-frame-with-faces): Handle `reverse' as parameter. 1993-05-25 02:28:03 +00:00
Jim Blandy
f0614854a5 * xfns.c (select_visual): Include the screen number in the
template of things XGetVisualInfo must match.
* xfns.c (Fx_list_fonts): New function.
(same_size_fonts): Function moved here from xfaces.c.
(face_name_id_number): Add extern declaration for this.
1993-05-25 02:18:33 +00:00
Richard M. Stallman
316aafd641 (Info-suffix-list): Fix duplicate .z to .info.z. 1993-05-25 02:03:52 +00:00
Richard M. Stallman
1f9ecc7b66 (NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__. 1993-05-25 01:05:04 +00:00
Richard M. Stallman
3bd330d47a (XTread_socket, ConfigureNotify case):
Convert from parent window, not Emacs window.
(XTread_socket): Handle ReparentNotify events.

(XTread_socket): For ConfigureNotify event,
translate coordinates if send_event field is false
provided the x-coord value is not large.
1993-05-25 01:00:21 +00:00
Richard M. Stallman
5b3bb7c63d *** empty log message *** 1993-05-25 00:43:37 +00:00
Richard M. Stallman
a91526b927 (dired-flag-backup-files): Speedup:
check explicitly for ~ at end of line.
(dired-flag-auto-save-files): Similar change.
1993-05-24 23:03:04 +00:00
Richard M. Stallman
d1f504609f (modify_event_symbol): If a name_table elt is null,
generate a name to use.  Don't crash.
1993-05-24 22:58:54 +00:00
Richard M. Stallman
6291710025 Don't #undef NULL. 1993-05-24 22:35:11 +00:00
Richard M. Stallman
01d0071958 (C_SWITCH_MACHINE): Definition deleted. 1993-05-24 22:34:52 +00:00
Richard M. Stallman
bf77ce530a (jump-to-register): Don't fail if frame-configuration-p is unbound. 1993-05-24 22:12:29 +00:00
Richard M. Stallman
9daefb36fa (cd): Set cd-path to a list. 1993-05-24 21:45:20 +00:00
Roland McGrath
7ee260fe39 *** empty log message *** 1993-05-24 21:41:18 +00:00
Richard M. Stallman
0e2f4e59a5 (x-select-text): New arg PUSH. 1993-05-24 21:19:42 +00:00
Richard M. Stallman
39479f7efa (x-set-cut-buffer): New arg PUSH. 1993-05-24 21:19:26 +00:00
Richard M. Stallman
9f112a3d4c (kill-new): Pass t as 2nd arg to interprogram-cut-function. 1993-05-24 21:19:08 +00:00
Jim Blandy
798aa8d0a7 * disp-table.el (standard-display-default): New function.
(standard-display-european): New command.
1993-05-24 21:13:21 +00:00
Richard M. Stallman
b320926ac6 (Fread_file_name): If input is empty, do return the default
even if !insert_default_directory.
1993-05-24 21:09:38 +00:00
Jim Blandy
883047b99c * buffer.c (Fmake_overlay): Put beg and end in the
right order.
	(Fmove_overlay): If beg and end are markers, make sure they're in
	the right buffer.
1993-05-24 20:57:32 +00:00
Richard M. Stallman
af395ec10e (XTread_socket): For ConfigureNotify event,
translate coordinates if send_event field is false
provided the x-coord value is not large.
1993-05-24 19:54:15 +00:00
Richard M. Stallman
c3e46f0c63 (shell-command): Don't activate mark even momentarily. 1993-05-24 18:46:13 +00:00
Jim Blandy
a706b8084a * make-docfile.c: Doc fix. 1993-05-24 18:05:21 +00:00
Richard M. Stallman
c0f0a4a2c3 Fix typo in last change. 1993-05-24 17:45:04 +00:00
Richard M. Stallman
04f4386e0d (NO_MATHERR): Defined. 1993-05-24 17:44:37 +00:00