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

26289 commits

Author SHA1 Message Date
Kenichi Handa
eea9c5c494 *** empty log message *** 2008-06-03 11:57:01 +00:00
Kenichi Handa
e6cb3cf55f (font_parse_fcname): Fix handling of unknown key. 2008-06-03 11:50:33 +00:00
Juanma Barranquero
2f593f4c65 Fix typos. 2008-06-03 07:40:29 +00:00
Kenichi Handa
3692570fcd (font_prop_validate_spacing): Handle uppercase symbols. 2008-06-03 05:57:56 +00:00
Kenichi Handa
37470f4dfe (xfont_list): Try an alias. 2008-06-03 05:57:28 +00:00
Kenichi Handa
8a1816bb4a (char_charset): Return NULL if the arg charset_list is
specified and C doesn't belong to any of them.
2008-06-03 04:24:04 +00:00
Chong Yidong
17e28f6d73 (font_pixel_size): Don't take cdr of an integer. 2008-06-02 16:40:59 +00:00
Chong Yidong
6c5e8775ac * font.c (font_pixel_size): Don't take cdr of an integer. 2008-06-02 16:40:39 +00:00
Jim Meyering
70fdbb46cd Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
* src/alloc.c (xfree): Return right away for a NULL arg.
* src/lread.c (nosuffix): Remove now-useless if-before-xfree tests.
* src/gtkutil.c (xg_gtk_scroll_destroy): Likewise.
* src/mac.c (create_apple_event_from_event_ref): Likewise.
(create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise.
* src/doprnt.c (doprnt1): Likewise.
* src/frame.c (frame): Likewise.
* src/keyboard.c (wipe_kboard): Likewise.
* src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap):
(init_font_name_table, mac_unload_font, x_delete_display): Likewise.
* src/term.c (tty_default_color_capabilities, maybe_fatal)
(delete_tty): Likewise.
* src/w16select.c (string): Likewise.
* src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
* src/w32bdf.c (w32_free_bdf_font): Likewise.
* src/w32fns.c (w32_unload_font): Likewise.
* src/w32font.c (w32font_close): Likewise.
* src/window.c (size_window): Likewise.
* src/xselect.c (receive_incremental_selection): Likewise.
* src/xterm.c (x_free_frame_resources, x_delete_display): Likewise.
* src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
* src/w32.c (stat): Likewise.
2008-06-02 06:09:17 +00:00
Jim Meyering
c2cd06e61e remove useless if-before-free tests
* lib-src/ebrowse.c (xfree): Likewise.
* lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise.
(popclass_above, Prolog_functions, Erlang_functions): Likewise.
* lib-src/pop.c (pop_quit): Likewise.
* lwlib/lwlib-Xm.c (xm_update_one_value): Likewise.
* lwlib/lwlib.c (safe_free_str, free_widget_value_tree): Likewise.
* src/editfns.c (Fset_time_zone_rule): Likewise.
* src/lread.c (nosuffix): Likewise.
* src/ralloc.c (get_bloc): Likewise.
* src/regex.c (reg_free): Likewise.
* src/xftfont.c (xftfont_open, xftfont_close): Likewise.
* src/xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
* src/xsmfns.c (smc_save_yourself_CB): Likewise.
2008-06-02 06:00:54 +00:00
Kenichi Handa
1d1e124535 (font_find_for_lface): Handle float font size.
(font_open_for_lface): Likewise.
2008-06-02 04:07:43 +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
Kenichi Handa
fd2ae9b27e *** empty log message *** 2008-06-02 01:24:26 +00:00
Jason Rumney
aee986fd8b (w32_enumfont_pattern_entity): Use requested registry.
Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
Don't add empty script list.
(w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
2008-06-01 21:57:06 +00:00
Juanma Barranquero
2a46904e0e Fix typo in comment. 2008-06-01 21:26:53 +00:00
Dan Nicolaescu
60a3d7ee19 (dot, dotdot): Remove, update users.
".." has been used elsewhere in the file for a long time.
(LIBXT_STATIC): Remove conditional based on unused variable.
2008-06-01 16:59:27 +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
Juanma Barranquero
518c0b8331 (syms_of_textprop) <text-property-default-nonsticky>:
(Fremove_text_properties): Fix typos in docstrings.
2008-06-01 04:24:43 +00:00
Kenichi Handa
e4c93315ec (font_list_entities): Fix the car part of data to be
stored in the cache.
2008-05-31 09:58:27 +00:00
Kenichi Handa
719b3d63d3 (ftfont_font_format): Don't use strcasestr. 2008-05-31 02:29:58 +00:00
Stefan Monnier
d0827857e7 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
Add a `test' argument so another predicate than `equal' can be used.
(map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
(map_char_table): Remove unused vars `c' and `i'.
* lisp.h (Foptimize_char_table): Adjust declaration.
* charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2008-05-30 21:07:50 +00:00
Kenichi Handa
a266686a02 (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is
defined.
(syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
defined.
2008-05-30 13:21:57 +00:00
Stefan Monnier
fd9440c582 (Fmake_variable_buffer_local, Fmake_local_variable)
(Fmake_variable_frame_local): Disallow mixing buffer-local and
frame-local settings for the same variable.
2008-05-30 02:37:40 +00:00
Kenichi Handa
22b7086bdb * fontset.c (Ffont_info): Moved to font.c.
(syms_of_fontset): Delete defsubr of Sfont_info.
2008-05-30 02:35:54 +00:00
Kenichi Handa
72606e4580 (font_style_to_value, font_score): Delete casting of the
args to xstcasecmp.
(register_font_driver): Increment num_font_drivers only when
registering the driver globally.
(Ffont_info): Moved from fontset.c.  Handle a font object too.
(syms_of_font): Defsubr Sfont_info.
2008-05-30 02:34:46 +00:00
Kenichi Handa
eaf1161847 (utf-8-sig, utf-8-auto): New coding systems. 2008-05-29 23:00:20 +00:00
Kenichi Handa
a470d44380 (CODING_UTF_8_BOM): New macro.
(enum coding_category): Delete coding_category_utf_8, add
coding_category_utf_8_auto, coding_category_utf_8_nosig, and
coding_category_utf_8_sig.
(CATEGORY_MASK_UTF_8): Delete it.
(CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
(CATEGORY_MASK_UTF_8_SIG): New macros.
(CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
CATEGORY_MASK_UTF_8_SIG.
(CATEGORY_MASK_UTF_8): New macro.
(UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
(detect_coding_utf_8): Check BOM.
(decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
(decode_coding_utf_16): Adjusted for the change of enum
utf_bom_type.
(encode_coding_utf_16): Likewise.
(setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
(detect_coding, detect_coding_system): Handle utf-8-auto.
(Fdefine_coding_system_internal): Handle `bom' property for utf-8.
(syms_of_coding): Fix setting up of Vcoding_category_table.
2008-05-29 22:58:15 +00:00
Kenichi Handa
e4215ddd07 (enum define_coding_utf8_arg_index): New enum.
(enum coding_attr_index): Change coding_attr_utf_16_bom to
coding_attr_utf_bom.
(enum utf_bom_type): Renamed from utf_16_bom_type.
(struct utf_16_spec): Adjusted for the above change.
(struct coding_system): Add utf_8_bom in `spec' union.
2008-05-29 22:58:00 +00:00
Jason Rumney
13e702f06a *** empty log message *** 2008-05-29 17:11:48 +00:00
Jason Rumney
ef8e283dd5 (add_font_entity_to_list): Allow non-opentype truetype fonts back
in the uniscribe backend, but disallow any font that has no
unicode subrange support.
2008-05-29 16:57:00 +00:00
Stefan Monnier
891bd142e2 (Faccept_process_output): If millisec' is non-nil, seconds' default to 0.
(wait_reading_process_output): Also return non-nil if we read output
from a non-running process.
2008-05-29 16:54:53 +00:00
Jason Rumney
1519d52ee5 (w32font_open_internal): Prefer truetype fonts unless
'raster' specified.
2008-05-29 16:12:50 +00:00
Kenichi Handa
e887f2ac0e *** empty log message *** 2008-05-29 13:03:39 +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
Jason Rumney
a6e0b7e572 (x_draw_glyph_string): Use clipmask if specified. 2008-05-28 16:13:20 +00:00
Stefan Monnier
6b3d752c5d * src/fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
calling build_annotations.
* lisp/files.el (basic-save-buffer-2): Pass nil rather than (point-min)
to write-region.
2008-05-28 12:36:15 +00:00
Kenichi Handa
b75d7f2882 *** empty log message *** 2008-05-28 12:26:41 +00:00
Kenichi Handa
bbfea8767a (Ffont_info): Don't call font_close_object. 2008-05-28 12:19:52 +00:00
Kenichi Handa
aa50ca2fb3 (font_parse_family_registry): Use Ffont_put to validate
foundry and family.
(font_delete_unmatched): Don't check spacing.
(font_list_entities): Add spacing to the spec to list fonts.
2008-05-28 11:47:01 +00:00
Kenichi Handa
5d376f741b (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
(ftfont_list): Check spacing here.  Don't include FC_CHARSET in
objset.
2008-05-28 11:45:29 +00:00
Juanma Barranquero
c3f9fba859 *** empty log message *** 2008-05-28 09:27:18 +00:00
Juanma Barranquero
446dcd7574 (Fdecode_coding_region, Fencode_coding_region, Fencode_coding_string):
(syms_of_coding) <coding-system-for-read, coding-system-for-write>:
<latin-extra-code-table>: Fix typos in docstrings.
(syms_of_coding) <coding-system-alist>: Doc fix.
(syms_of_coding) <translation-table-for-input>: Reflow docstring.
2008-05-28 09:11:59 +00:00
Juanma Barranquero
45c420d68f Fix typo in comment. 2008-05-28 08:10:37 +00:00
Kenichi Handa
00c670e142 *** empty log message *** 2008-05-28 06:46:55 +00:00
Kenichi Handa
319a394709 (encode_coding_raw_text): Fix previous change.
(encode_coding_object): When the dst_object is a buffer and is
different from src_object, move gap to PT.
2008-05-28 06:38:47 +00:00
Chong Yidong
c1e4782a8a (x_draw_glyph_string): If a clipmask is specified, use it. 2008-05-27 21:10:55 +00:00
Chong Yidong
45feca9190 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it. 2008-05-27 21:10:39 +00:00
Stefan Monnier
a0ed9b27c3 (encode_coding_raw_text): Fix last change. 2008-05-27 15:56:59 +00:00