Dan Nicolaescu
d67b4f80db
* xterm.c (syms_of_xterm):
...
* xselect.c (syms_of_xselect):
* xmenu.c (syms_of_xmenu):
* xfns.c (syms_of_xfns):
* xfaces.c (syms_of_xfaces):
* xdisp.c (syms_of_xdisp):
* window.c (syms_of_window):
* w32fns.c (syms_of_w32fns):
* undo.c (syms_of_undo):
* textprop.c (syms_of_textprop):
* terminal.c (syms_of_terminal):
* syntax.c (syms_of_syntax):
* sound.c (syms_of_sound):
* search.c (syms_of_search):
* print.c (syms_of_print):
* minibuf.c (syms_of_minibuf):
* macros.c (syms_of_macros):
* keymap.c (syms_of_keymap, initial_define_key)
(initial_define_lispy_key):
* keyboard.c (syms_of_keyboard):
* insdel.c (syms_of_insdel):
* image.c (syms_of_image):
* fringe.c (syms_of_fringe):
* frame.c (syms_of_frame):
* fontset.c (syms_of_fontset):
* fns.c (syms_of_fns):
* fns.c (syms_of_fns):
* fileio.c (syms_of_fileio):
* fileio.c (syms_of_fileio):
* eval.c (syms_of_eval):
* doc.c (syms_of_doc):
* dispnew.c (syms_of_display):
* dired.c (syms_of_dired):
* dbusbind.c (syms_of_dbusbind):
* data.c (syms_of_data):
* composite.c (syms_of_composite):
* coding.c (syms_of_coding):
* cmds.c (syms_of_cmds):
* charset.c (define_charset_internal, syms_of_character):
* ccl.c (syms_of_ccl):
* category.c (syms_of_category, init_category_once):
* casetab.c (syms_of_casetab):
* casefiddle.c (syms_of_casefiddle):
* callint.c (syms_of_callint):
* bytecode.c (syms_of_bytecode):
* buffer.c (keys_of_buffer, syms_of_buffer):
* alloc.c (syms_of_alloc):
* process.c (syms_of_process, init_process):
* lread.c (syms_of_lread, init_obarray):
* font.c (build_style_table):
* emacs.c (syms_of_emacs, main): Replace calls to intern with
intern_c_string, calls to make_pure_string with
make_pure_c_string. Use pure_cons instead of Fcons.
* process.c (socket_options): Make it const.
(set_socket_option, init_process): Use a const pointer.
* lread.c (intern_c_string): New function.
(defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
(defvar_int): Uset it. Make the name const char*.
* font.c (struct table_entry): Remove unused member. Make NAMES
constant.
(weight_table, slant_table, width_table): Make constant.
* emacs.c (struct standard_args): Make name and longname constant.
2009-11-06 06:50:52 +00:00
Dan Nicolaescu
5e2327cf92
* process.c (socket_options): Make it const.
...
(set_socket_option, init_process): Use a const pointer.
* lread.c (intern_c_string): New function.
(defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
(defvar_int): Uset it. Make the name const char*.
* lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
(defvar_int): Update prototypes.
(DEFUN, EXFUN): Support for prototypes is now required.
(intern_c_string): New prototype.
(struct Lisp_Subr): Make symbol_name constant.
* font.c (struct table_entry): Remove unused member. Make NAMES
constant.
(weight_table, slant_table, width_table): Make constant.
* emacs.c (struct standard_args): Make name and longname constant.
* character.h (DEFSYM): Use intern_c_string.
2009-11-06 06:07:46 +00:00
Dan Nicolaescu
d7306fe6b1
* alloc.c: Do not define struct catchtag.
...
* eval.c: Move struct catchtag definition ...
* lisp.h: ... here.
* image.c: Move png.h #include earlier to avoid warnings.
* xterm.c:
* xsmfns.c:
* xselect.c:
* xrdb.c:
* xmenu.c:
* xftfont.c:
* xfont.c:
* xfns.c:
* xfaces.c:
* xdisp.c:
* window.c:
* widget.c:
* w32xfns.c:
* w32uniscribe.c:
* w32term.c:
* w32select.c:
* w32reg.c:
* w32proc.c:
* w32menu.c:
* w32inevt.c:
* w32heap.c:
* w32font.c:
* w32fns.c:
* w32console.c:
* w32.c:
* w16select.c:
* vm-limit.c:
* unexsol.c:
* unexec.c:
* unexcw.c:
* unexaix.c:
* undo.c:
* tparam.c:
* textprop.c:
* terminfo.c:
* terminal.c:
* termcap.c:
* term.c:
* syntax.c:
* sound.c:
* sheap.c:
* search.c:
* scroll.c:
* region-cache.c:
* regex.c:
* ralloc.c:
* process.c:
* print.c:
* msdos.c:
* minibuf.c:
* menu.c:
* marker.c:
* macros.c:
* keymap.c:
* keyboard.c:
* intervals.c:
* insdel.c:
* indent.c:
* gtkutil.c:
* ftxfont.c:
* ftfont.c:
* fringe.c:
* frame.c:
* fontset.c:
* font.c:
* fns.c:
* floatfns.c:
* filelock.c:
* fileio.c:
* emacs.c:
* editfns.c:
* dosfns.c:
* doprnt.c:
* doc.c:
* dispnew.c:
* dired.c:
* dbusbind.c:
* data.c:
* composite.c:
* coding.c:
* cmds.c:
* cm.c:
* chartab.c:
* charset.c:
* character.c:
* ccl.c:
* category.c:
* casetab.c:
* casefiddle.c:
* callproc.c:
* callint.c:
* bytecode.c:
* buffer.c:
* atimer.c: Include setjmp.h. (Bug#4643)
* xlwmenu.c:
* lwlib.c:
* lwlib-utils.c:
* lwlib-Xm.c:
* lwlib-Xlw.c:
* lwlib-Xaw.c: Include setjmp.h.
2009-10-19 04:27:09 +00:00
Adrian Robert
c56c14a12f
(font_unparse_xlfd, font_unparse_fcname): Use long format in printf, and cast argument.
2009-10-13 01:03:38 +00:00
Adrian Robert
f456006161
* font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2009-09-23 02:35:54 +00:00
Adrian Robert
7107c29e11
Update comment for HAVE_NS code in font_find_for_lface().
2009-09-18 21:16:28 +00:00
Kenichi Handa
087048cd5d
(font_parse_xlfd): Check DPI and AVGWIDTH properties more rigidly.
2009-07-28 02:09:52 +00:00
Kenichi Handa
72d36834fc
(font_vconcat_entity_vectors): New function.
...
(struct font_sort_data): New member font_driver_preference.
(font_compare): Check font_driver_preference.
(font_sort_entities): The format of the first argument changed.
(font_delete_unmatched): Likewise.
(font_list_entities): The return type changed.
(font_select_entity): The format of the second argument changed.
(font_find_for_lface): Adjusted for the above changes. Don't
suppress the checking of C even if the repertory supports it.
(Flist_fonts): Adjusted for the above changes.
2009-07-14 12:03:31 +00:00
Kenichi Handa
652b9560dc
(font_sort_entities, font_list_entities)
...
(font_matching_entity, font_open_entity)
(font_close_object): Change font_add_log to FONT_ADD_LOG.
(Vfont_log): Delete static.
(font_log_env_checked): Delete this variable.
(font_add_log): Don't check font_log_env_checked.
(font_deferred_log): Check Vfont_log.
(init_font): New function.
2009-06-23 05:52:59 +00:00
Kenichi Handa
9903d1e69c
(font_parse_family_registry): Fix for one-char foundry.
...
(font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2009-06-10 01:27:10 +00:00
Kenichi Handa
2645d15bb1
(font_sort_entities): Renamed from font_sort_entites.
...
Callers changed.
2009-05-19 02:05:52 +00:00
Kenichi Handa
227f12fabb
(font_find_for_lface): Copy SPEC's FONT_TYPE too.
2009-05-18 12:14:14 +00:00
Kenichi Handa
cccd42d52f
(Ffont_spec): Check arguments.
2009-05-15 02:49:46 +00:00
Stefan Monnier
ba98e3a0ff
(font_update_drivers): Sanity fallback to avoid disabling all drivers.
2009-05-06 02:57:47 +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
c0a6070d60
(font_score): Check AVGWIDTH too.
2009-04-21 07:30:00 +00:00
Kenichi Handa
908567efed
(font_load_for_lface): Cancel previous change.
2009-04-21 06:46:39 +00:00
Andreas Schwab
973e784949
(font_put_frame_data): Use xfree instead of free.
2009-04-18 13:29:59 +00:00
Chong Yidong
cf70255861
* font.c (Qja, Qko): Move definitions here from ftfont.c.
...
* font.h (Qja, Qko): Extern them.
* ftfont.c (Qja, Qko): Remove declarations.
* xfont.c (Qja, Qko): Remove declarations.
2009-04-17 18:38:00 +00:00
Kenichi Handa
c9477f014b
(font_sort_entites): Change the meaning of the arg
...
BEST-ONLY. Don't optimize for VEC of lenght 1.
(font_select_entity): Just return the value of font_sort_entites.
2009-04-16 01:32:44 +00:00
Kenichi Handa
06f19b9126
(Ffont_info): Fix docstring. Fix the second element of
...
the returned value.
2009-04-14 12:41:33 +00:00
Kenichi Handa
7395a3b327
(font_delete_unmatched): Preserve the order of list
...
elements.
(font_select_entity): Suppress the code to optimize for the same
kind of fonts.
(font_load_for_lface): Get a font that supports at least ASCII
characters.
2009-04-13 12:33:02 +00:00
Kenichi Handa
483670b590
(font_put_extra): If VAL is nil, delete the slot for PROP
...
from the list of extra properties.
(font_clear_prop): Be sure to delete `:name' font property.
2009-04-09 02:40:51 +00:00
Kenichi Handa
182ba28cff
(find_font_encoding): Return Qnil for unsupported encoding.
2009-03-24 00:56:34 +00:00
Kenichi Handa
c50b7e98ea
(font_open_by_spec): New function.
...
(font_open_by_name): Use font_open_by_spec.
2009-03-11 11:44:21 +00:00
Kenichi Handa
988a7ddb0c
(font_select_entity): New function.
...
(font_find_for_lface): Use font_select_entity to select a font.
2009-03-05 12:27:04 +00:00
Chong Yidong
c2694a0642
(font_style_to_value): Set value for unknown symbols to
...
100 instead of 255.
(weight_table, slant_table, width_table): Treat "unspecified" as the
default value.
2009-02-27 00:29:42 +00:00
Chong Yidong
0e3bf4a3e6
(Qfont_spec, Qfont_entity, Qfont_object): Definitions
...
moved to data.c.
2009-02-21 13:39:20 +00:00
Kenichi Handa
22f799662b
(Ffont_spec): Fix typo.
2009-02-18 03:57:19 +00:00
Kenichi Handa
c423eccad4
(font_check_otf_features): Fix handling of `nil' element.
...
(Ffont_spec): Describe :lang and :otf in the docstring.
2009-02-18 02:33:26 +00:00
Juanma Barranquero
8510724d46
Remove spurious semicolons.
2009-02-11 09:45:12 +00:00
Kenichi Handa
209f39ac8a
(Ffont_spec): Docstring modified.
2009-02-05 06:21:19 +00:00
Chong Yidong
e39280819e
(font_parse_xlfd): Handle patterns of length < 2.
2009-01-24 03:17:42 +00:00
Chong Yidong
05802645c6
(font_spec_from_name): Return Qnil if font name could not be parsed.
...
(font_parse_name): Treat a `?' character as part of an XLFD.
2009-01-19 16:42:44 +00:00
Glenn Morris
b60861e61f
(Ffont_variation_glyphs): Silence compiler.
2009-01-16 03:26:29 +00:00
Chong Yidong
962e8aa92a
(font_clear_prop): If clearing the family, clear the font width index
...
too.
2009-01-13 20:02:59 +00:00
Chong Yidong
13bf758b40
(Ffont_family_list): Return a list of strings, not symbols.
2009-01-09 14:12:04 +00:00
Chong Yidong
50b0cd29f7
(font_open_for_lface): Handle unspecified height attribute.
2009-01-08 13:34:44 +00:00
Glenn Morris
76b6f70759
Add 2009 to copyright years.
2009-01-08 03:15:17 +00:00
Kenichi Handa
78a2f9cd53
(font_range): Don't require a font for a variation
...
selector.
(Ffont_variation_glyphs): New function.
(syms_of_font): Defsubr it.
2008-12-30 23:41:25 +00:00
Kenichi Handa
545312c251
(font_intern_prop): Validate str as multibyte.
2008-12-30 00:46:13 +00:00
Kenichi Handa
a35dd56b88
(font_open_entity): Fix previous change.
2008-12-16 11:30:23 +00:00
Chong Yidong
6136b72f0b
(font_update_drivers): Fix mistake in reconstructing the driver list.
...
(font_clear_cache): Fix format of font cache data.
2008-12-16 03:33:00 +00:00
Chong Yidong
2ed98482b8
(free_font_driver_list): Implement missing function.
2008-12-13 15:39:48 +00:00
Kenichi Handa
55e4177003
(font_rescale_ratio): Moved from xfaces.c. Argument
...
type changed. Handle a font-spec too.
(font_score): Check Vface_font_rescale_alist.
(font_open_entity): Likewise.
2008-12-13 03:29:47 +00:00
Juanma Barranquero
ba3de0e8f9
* font.c (Ffont_spec): Move usage to end of docstring.
2008-12-10 19:25:26 +00:00
Kenichi Handa
e500c47d64
(font_at): Set `multibyte' at first.
2008-12-03 05:54:27 +00:00
Chong Yidong
2cf4d521ac
Handle fonts with corrupted size specs, i.e. non-int and non-float.
2008-12-03 05:16:38 +00:00
Chong Yidong
d03b5cdb8c
(Fopen_font): Compute pixel size correctly.
2008-12-03 05:10:50 +00:00
Andreas Schwab
f7741ce9a0
(font_unparse_fcname): Fix use of uninitialized variable.
2008-12-02 22:47:20 +00:00