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

26431 commits

Author SHA1 Message Date
Chong Yidong
59facb788f (font_parse_fcname): For known key symbols, intern using correct
symbol name.
2008-06-17 16:04:47 +00:00
Chong Yidong
1578da3196 * font.c (font_parse_fcname): For known key symbols, intern using
correct symbol name.
2008-06-17 16:03:29 +00:00
Chong Yidong
84d50b7123 (font_parse_fcname): Store divider characters for unknown-spec list. 2008-06-17 05:33:06 +00:00
Chong Yidong
0c36bc4ede * font.c (font_parse_fcname): Store divider characters for
unknown-spec list.
2008-06-17 05:32:19 +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
Kenichi Handa
821bc4dbf1 (fontset_pattern_regexp): Escape some regexp characters. 2008-06-17 01:26:47 +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
Stefan Monnier
93eed26bfb (font_unparse_gtkname): Use EQ to compare Lisp_Objects. 2008-06-16 19:11:02 +00:00
Chong Yidong
77989187bf (font_parse_fcname): Fix handling of unknown-spec string. 2008-06-16 14:35:24 +00:00
Chong Yidong
d756bcd047 * font.c (font_parse_fcname): Fix handling of unknown-spec string. 2008-06-16 14:35:02 +00:00
Juanma Barranquero
48105a6a30 (Ffont_face_attributes): Doc fix. 2008-06-16 13:44:18 +00:00
Juanma Barranquero
7a18a1780a (Ffont_spec): Fix usage in docstring. 2008-06-16 13:32:07 +00:00
Andreas Schwab
6f56895505 (Ffont_face_attributes): Fix definition. 2008-06-16 12:02:44 +00:00
Kenichi Handa
2babb35916 (Ffont_get): Return a symbol for :weight, :slant, and :width. 2008-06-16 11:46:33 +00:00
Jason Rumney
3ef8c1b49e Fix crashing bug in use of bold fonts from x-select-font on W32.
* w32font.c (w32_to_fc_weight): New function.
(w32font_full_name, logfont_to_fcname): Use it.

* font.h (font_style_symbolic_from_value): Remove.

* font.c (font_style_symbolic_from_value): Remove.
(font_style_symbolic): Revert to pre 2008-06-13 version.
2008-06-16 09:11:05 +00:00
Kenichi Handa
5e634ec9b7 (font_check_object): Delete it.
(font_clear_cache): Check if a font-object is alive.
(font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
font-object to nil.
(font_close_object): Don't check FONT_CLOSE_OBJECT.
(font_at): Don't call font_check_object.
2008-06-16 07:32:48 +00:00
Katsumi Yamaoka
6409a9558a (BASE_PURESIZE): Increase to 1230000. 2008-06-16 04:55:44 +00:00
Chong Yidong
9277a69d80 Tweak last change. 2008-06-16 02:04:45 +00:00
Chong Yidong
90c00b018d (font_parse_fcname): Correctly parse KEY=VAL values. 2008-06-16 01:59:40 +00:00
Chong Yidong
ce4eaddbd6 * font.c (font_parse_fcname): Correctly parse KEY=VAL values. 2008-06-16 01:58:48 +00:00
Juanma Barranquero
54b2ab2737 Fix typo. 2008-06-15 21:08:04 +00:00
Chong Yidong
53c7540dc3 (Fx_select_font): Give GTK font dialog the default font name. 2008-06-15 19:42:53 +00:00
Chong Yidong
349c787a53 (font_unparse_gtkname): Add prototype. 2008-06-15 19:42:31 +00:00
Chong Yidong
b1868a1a8d (font_parse_fcname): Only only one decimal point.
(font_unparse_fcname): Handle data in family and foundry indices
as symbols, not strings.
(font_unparse_gtkname, Ffont_face_attributes): New functions.
2008-06-15 19:42:11 +00:00
Chong Yidong
523dbe64af * font.c (font_parse_fcname): Only only one decimal point.
(font_unparse_fcname): Handle data in family and foundry indices
as symbols, not strings.
(font_unparse_gtkname, Ffont_face_attributes): New functions.

* xfns.c (Fx_select_font): Give GTK font dialog the default font
name.

* font.h (font_unparse_gtkname): Add prototype.
2008-06-15 19:41:54 +00:00
Kenichi Handa
9f29608265 (fontset_pattern_regexp): Escape `+' characters in pattern. 2008-06-15 12:26:28 +00:00
Andreas Schwab
3306c6dcd7 (font_update_drivers): Fix crash when no drivers match. 2008-06-15 10:13:24 +00:00
Stefan Monnier
a099c27aa3 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
* gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
2008-06-15 05:53:48 +00:00
Glenn Morris
1eb8fd9137 Comment fix for rms. 2008-06-14 19:14:01 +00:00
Stefan Monnier
a8aa344d07 (syms_of_xdisp): Default underline-minimum-offset to 1. 2008-06-14 19:12:44 +00:00
Stefan Monnier
a879ee6f98 (Fserial_process_configure, Fprocess_send_eof):
Use EQ to compare Lisp_Objects.
2008-06-13 16:35:17 +00:00
Jason Rumney
3d5edfa300 Restore line that last checkin inexplicably lost. 2008-06-13 14:52:13 +00:00
Jason Rumney
6fe9826d75 * w32fns.c (Fw32_select_font): Removed old font API function.
* w32font.c (logfont_to_fcname): New function.
(Fx_select_font): New font dialog function compatible with
GTK/fontconfig version.

* font.c (font_style_symbolic_from_value): New function.
(font_style_symbolic): Use it.

* font.h (font_style_symbolic_from_value): Declare new function.
2008-06-13 14:29:47 +00:00
Juanma Barranquero
b344d29d16 Fix typos, convert to utf-8. 2008-06-13 13:42:21 +00:00
Kenichi Handa
904a2e0e2f (font_find_for_lface): Fix typo of the previous change. 2008-06-13 12:41:46 +00:00
Kenichi Handa
d0a477766d (font_find_for_lface): If registry is NULL, try iso8859-1 and ascii-0. 2008-06-13 12:29:55 +00:00
Kenichi Handa
a2e860b3db *** empty log message *** 2008-06-13 12:29:21 +00:00
Juanma Barranquero
17ab8f5d83 (syms_of_font) <font-weight-table, font-slant-table, font-width-table>:
Fix typos in docstrings.
2008-06-13 09:47:04 +00:00
Juanma Barranquero
7a18e381ce Fix typos. 2008-06-13 09:20:41 +00:00
Glenn Morris
d888760c95 Daniel Engeler <engeler at gmail.com>
These changes add serial port access.
* process.c: Add HAVE_SERIAL.
(Fdelete_process, Fprocess_status, Fset_process_buffer)
(Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
(list_processes_1, select_wrapper, Fstop_process)
(Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
(status_notify): Modify to handle serial processes.
[HAVE_SERIAL] (Fserial_process_configure)
[HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
New functions.
* process.h (struct Lisp_Process): Add `type'.
* sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
New functions.
* w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle serial ports.
(serial_open, serial_configure) New functions.
* w32.h: Add FILE_SERIAL.
(struct _child_process): Add ovl_read, ovl_write.
2008-06-13 08:08:20 +00:00
Kenichi Handa
bf970f2bd1 (Fx_create_frame, x_create_tip_frame): Register X
font-driver at first.
2008-06-13 05:47:42 +00:00
Kenichi Handa
f4cc015342 (font_score): Ignore the diffference of alias style symbols. 2008-06-13 04:26:01 +00:00
Kenichi Handa
943b7eea74 (font_update_sort_order): Setting of sort_shift_bits adjusted for the
change of font_score and font_sort_entites.
2008-06-13 02:57:10 +00:00
Kenichi Handa
ff63b08670 (enum lface_attribute_index): New member
LFACE_FOUNDRY_INDEX.
2008-06-13 02:19:47 +00:00
Kenichi Handa
4007dd1cf6 (font_score): Delete arg alternate_families. Check only
weight, slant, width, and size.
(font_sort_entites): Adjusted for the above change.  Reflect the
order of font-driver to scores.
(font_list_entities): Don't check alternate_familes here.
(font_clear_prop): Handle foundry.
(font_update_lface): Don't parse "foundry-family" form here.
Handle FONT_FOUNDRY_INDEX.
(font_find_for_lface): Likewise.  Handle alternate families here.
(font_open_for_lface): Pay attention to size in ENTITY.
(font_open_by_name): Simplified by calling font_load_for_lface.
(free_font_driver_list): Delete it.
(font_update_drivers): Preserve the order of backends.
(syms_of_font): Setting of sort_shift_bits adjusted for the change
of font_score and font_sort_entites.
2008-06-13 02:18:59 +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
Juanma Barranquero
d434fef5e9 *** empty log message *** 2008-06-13 00:01:27 +00:00
Jim Meyering
97dead2d1f * lread.c (Fload): Use xfree, not free on saved_doc_string.
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
2008-06-12 22:54:12 +00:00
Jim Meyering
9c5e177ecf make unexec_free handle NULL the same way free does
* unexmacosx.c (unexec_free): Ignore a NULL argument.
2008-06-12 22:53:07 +00:00
Stefan Monnier
455af463a1 (CHAR_TO_BYTE_SAFE): Cut&paste error. 2008-06-12 20:53:18 +00:00