1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 13:40:36 -08:00
Commit graph

598 commits

Author SHA1 Message Date
Kenichi Handa
a8c0cc186d (face_with_height): Call font_clear_prop. 2009-07-27 04:19:57 +00:00
Jim Meyering
5f4457269e Remove useless if-before-xfree tests.
* nsfont.m (nsfont_close): Remove useless test.
* term.c (delete_tty): Likewise.
* w32.c (system_process_attributes): Likewise.
* w32font.c (w32font_close): Likewise.
* xfaces.c (x_free_gc): Likewise.
* xselect.c (buffer): Likewise.
2009-06-29 05:28:54 +00:00
Jim Meyering
40aa3f13c6 x-load-color-file: avoid array bounds error
x-load-color-file expects each line of input to be of the form
"R G B name".  But if "name" is missing, it would read name[-1],
and if that value is '\n', zero it.
* xfaces.c (Fx_load_color_file): Handle missing color name.
2009-06-09 05:57:35 +00:00
Chong Yidong
337fbd1718 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
weight when testing attributes (Bug#3282).
2009-05-14 21:37:02 +00:00
Chong Yidong
6970f632f1 * xfaces.c (face_at_buffer_position): New arg base_face_id.
* xdisp.c (handle_face_prop): Pass base_face_id of iterator to
face_at_buffer_position.
(face_before_or_after_it_pos, get_next_display_element)
(note_mouse_highlight): Update face_at_buffer_position call.

* term.c (term_mouse_highlight):
* msdos.c (IT_note_mouse_highlight):
* fontset.c (Finternal_char_font):
* font.c (font_at, font_range): Update face_at_buffer_position
call.

* dispextern.h (face_at_buffer_position): Update prototype.
2009-04-30 05:01:57 +00:00
Kenichi Handa
493dcf2c9b (Fx_list_fonts): If a font size is specified in PATTERN, set it in
returned scalable fonts.
2009-04-23 01:34:15 +00:00
Kenichi Handa
89dc9a8ed9 (merge_face_vectors): Reflect font properties in
to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
font_clear_prop if a face attribute doesn't change.
2009-04-16 01:08:24 +00:00
Glenn Morris
2c7d156554 (Finternal_set_font_selection_order): Remove leading whitespace that
confuses documentation.
2009-02-24 03:39:57 +00:00
Chong Yidong
21bdb81a75 (Finternal_set_lisp_face_attribute, Fx_list_fonts): Check return value of font_spec_from_name.
(Fx_list_fonts): Doc fix.
2009-01-19 16:41:16 +00:00
Chong Yidong
156302e85f (Finternal_set_lisp_face_attribute): Revert last change. 2009-01-13 20:03:08 +00:00
Chong Yidong
5e5e80fb43 (Finternal_set_lisp_face_attribute): If setting the family, clear the
font width index too.
2009-01-12 02:32:08 +00:00
Chong Yidong
058f0a510f (Fx_font_family_list): Function deleted. Compatibility version moved
to faces.el.
2009-01-09 14:11:38 +00:00
Glenn Morris
76b6f70759 Add 2009 to copyright years. 2009-01-08 03:15:17 +00:00
Chong Yidong
fe69cf00e0 Remove obsolete comment. 2009-01-01 08:23:02 +00:00
Chong Yidong
e66d536393 (Finternal_set_lisp_face_attribute): Improve error message. 2009-01-01 08:09:32 +00:00
Martin Rudalics
e2749141d6 In comments, write delete_frame instead of Fdelete_frame. 2008-12-23 07:28:06 +00:00
Chong Yidong
91c37b7e41 Update commentary. 2008-12-13 05:39:20 +00:00
Kenichi Handa
96f9306b8b (font_rescale_ratio): Moved to font.c. 2008-12-13 03:29:30 +00:00
Chong Yidong
d78494f962 (realize_x_face): Make abort condition clearer. 2008-12-01 18:08:59 +00:00
Eli Zaretskii
32247e3db3 (Fx_font_family_list, syms_of_xfaces): Fix last change. 2008-11-27 20:18:34 +00:00
Glenn Morris
9f688acf32 (Fx_font_family_list): Replace lisp/term/pc-win.el redefinition with
ifdef.  (Bug#1383)
2008-11-26 03:00:53 +00:00
Chong Yidong
ca6888b6e5 (Finternal_set_lisp_face_attribute): Make null values of :foreground
and :background equivalent to unspecified (20.x compatibility).
2008-10-16 16:32:58 +00:00
Chong Yidong
afb11cdc94 (Finternal_set_lisp_face_attribute): Revert last change. 2008-10-14 14:37:03 +00:00
Chong Yidong
e69a00b749 (Finternal_set_lisp_face_attribute): If the font is to be updated,
clear its average width field too.
2008-10-14 04:08:08 +00:00
Chong Yidong
a77d5bb2eb (Finternal_set_alternative_font_family_alist)
(Finternal_set_alternative_font_registry_alist): Properly copy entire
alist structure.
2008-09-01 19:46:16 +00:00
Chong Yidong
23888717d0 (x_update_menu_appearance): Check validity of menu font before using
it.
2008-08-21 13:53:30 +00:00
Chong Yidong
d8453278d9 (lookup_derived_face): Properly handle possible zero
return value of get_lface_attributes.
(merge_faces): Don't tell lookup_derived_face to signal an error
if face is not found.
2008-08-15 21:32:48 +00:00
Juanma Barranquero
dee8cd4354 * xfaces.c (Fx_load_color_file): Fix previous change;
it is #ifdef WINDOWSNT, not WINDOWS_NT.
2008-08-01 23:40:13 +00:00
Adrian Robert
ebadbfa6e7 commit patch to x-load-color-file posted by lekktu@gmail.com 2008-08-01 15:33:15 +00:00
Adrian Robert
150349607c clear warnings and clean up NS port 2008-08-01 14:01:08 +00:00
Adrian Robert
7ded338349 NS port now uses etc/rgb.txt instead of etc/Emacs.clr (now removed); function Fw32_load_color_file moved to xfaces x_load_color_file 2008-08-01 11:48:29 +00:00
Dan Nicolaescu
9e2a264775 Remove support for Mac Carbon.
* mactoolbox.c:
* macterm.h:
* macterm.c:
* macselect.c:
* macmenu.c:
* macgui.h:
* macfns.c:
* mac.c: Remove file.
* s/darwin.h:
* m/intel386.h:
* xfaces.c:
* xdisp.c:
* window.c:
* tparam.c:
* termhooks.h:
* termcap.c:
* term.c:
* syssignal.h:
* sysselect.h:
* sysdep.c:
* process.c:
* lread.c:
* lisp.h:
* keyboard.c:
* image.c:
* fringe.c:
* frame.h:
* frame.c:
* fontset.c:
* font.h:
* font.c:
* fns.c:
* fileio.c:
* emacs.c:
* dispnew.c:
* dispextern.h:
* config.in:
* atimer.c:
* Makefile.in: Remove code for Carbon

* erc.el: Remove code for Carbon.

Remove support for Mac Carbon.
* term/mac-win.el: Remove file
* international/mule-cmds.el:
* version.el:
* startup.el:
* simple.el:
* mwheel.el:
* mouse.el:
* loadup.el:
* isearch.el:
* info.el:
* frame.el:
* faces.el:
* disp-table.el:
* cus-start.el:
* cus-face.el:
* cus-edit.el:
* Makefile.in: Remove code for Carbon.

Remove support for Mac Carbon.
* makefile.w32-in:
* emacsclient.c: Remove code for Carbon.

* PROBLEMS:
* MACHINES: Remove mentions of Mac Carbon.

* ns-emacs.texi:
* faq.texi: Remove mentions of Mac Carbon.

* os.texi:
* frames.texi:
* display.texi: Remove mentions of Mac Carbon.

* xresources.texi: Remove mentions of Mac Carbon.

* make-tarball.txt:
* admin.el:
* FOR-RELEASE:
* CPP-DEFINES: Remove mentions of Mac Carbon.

Remove support for Mac Carbon.
* mac: Remove directory.
* make-dist:
* configure.in:
* README:
* Makefile.in:
* INSTALL:  Remove code for Carbon.
* configure: Regenerate.
2008-07-27 18:24:48 +00:00
Adrian Robert
edfda78355 merging Emacs.app (NeXTstep port) 2008-07-15 18:15:18 +00:00
Chong Yidong
fa9fa316d4 (Finternal_merge_in_global_face): Save merged attributes for the
default face back into the face vector.
2008-07-08 17:27:28 +00:00
Chong Yidong
be22aa9713 (set_font_frame_param): Don't try to set the font parameter if it is
still unspecified in the lface.
2008-07-06 03:51:06 +00:00
Chong Yidong
0421a7a780 (Finternal_merge_in_global_face): Don't realize default face if it
didn't already exist.
2008-07-05 21:16:05 +00:00
Chong Yidong
811029d313 Fix typo in comments. 2008-06-30 02:12:47 +00:00
Chong Yidong
8d3810fd98 (Finternal_merge_in_global_face): If default face was modified,
realize it again.  Update the font face attribute.
2008-06-30 02:09:21 +00:00
Kenichi Handa
34e9727275 (Fx_list_fonts): Call Flist_fonts with the arg PREFER. 2008-06-25 07:35:49 +00:00
Kenichi Handa
70d6ecc654 (realize_default_face): If the frame is not on window
system, set the fontset of face to nil.
2008-06-17 04:50:11 +00:00
Juanma Barranquero
3554e566e3 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
(build_font_name_from_vector): Delete externs.

* xfaces.c (struct font_name): Don't declare.
2008-06-16 22:42:46 +00:00
Kenichi Handa
53aaf1e22f (LFACE_FOUNDRY): New macro.
(check_lface_attrs): Check foundry.
(set_lface_from_font): Don't parse "FOUNDRY-FAMILY" from.
(merge_face_vectors): Check foundry.
(merge_face_ref): Likewise.
(Finternal_set_lisp_face_attribute): Likewise.
(x_update_menu_appearance): Likewise.
(Finternal_get_lisp_face_attribute): Likewise.
(lface_hash): Likewise.
(lface_same_font_attributes_p): Likewise.
(x_supports_face_attributes_p): Likewise.
(tty_supports_face_attributes_p): Likewise.
(Finternal_set_alternative_font_family_alist): Intern strings.
(Finternal_set_alternative_font_registry_alist): Downcase strings.
(realize_default_face): Set LFACE_FOUNDRY (lface).
2008-06-13 02:08:52 +00:00
Kenichi Handa
6b1f69f1af (Fx_family_fonts): Use font_parse_family_registry instead of
Ffont_put.
2008-06-05 05:40:11 +00:00
Kenichi Handa
76f54ecc91 (realize_x_face): If the font-related face attributes
are the same s those of default face, realize a new fontset
from default->fontset.
2008-06-05 04:14:48 +00:00
Kenichi Handa
4fc1984a7e (x_supports_face_attributes_p): Check face->font before
comparing the properties.
2008-06-02 01:49:47 +00:00
Miles Bader
f2cec7a990 Implement face-remapping-alist feature
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1195
2008-06-01 05:04:24 +00:00
Kenichi Handa
62057df6e6 (Fx_family_fonts): Set frame correctly. 2008-05-29 04:46:59 +00:00
Juanma Barranquero
d5ab09cd20 (Fx_list_fonts, Finternal_copy_lisp_face): Fix typos in docstrings. 2008-05-29 02:51:49 +00:00
Kenichi Handa
a4eec62604 (Fx_list_fonts): Make it return a list of font names. 2008-05-29 01:44:39 +00:00
Kenichi Handa
a6c4ecbc32 *** empty log message *** 2008-05-25 11:09:53 +00:00