Commit | Line | Data |
---|---|---|
8c2dccbf SM |
1 | 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca> |
2 | ||
ad97b375 SM |
3 | * lisp.h (indirect_variable): |
4 | * data.c (indirect_variable, let_shadows_buffer_binding_p): | |
5 | Use Lisp_Symbol pointers rather than Lisp_Object. | |
6 | Adjust callers. | |
7 | * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument. | |
8 | To this end, change calling-convention. | |
9 | ||
8c2dccbf SM |
10 | * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers |
11 | if some non-hidden buffers are selected by string&pred. | |
12 | ||
ad97b375 SM |
13 | 2008-05-19 Chong Yidong <cyd@stupidchicken.com> |
14 | ||
15 | * process.c (wait_reading_process_output): Always check status | |
16 | when in batch mode. | |
17 | ||
25b81df4 KH |
18 | 2008-05-19 Kenichi Handa <handa@m17n.org> |
19 | ||
20 | * font.c (font_list_entities): Fix handling of cache. | |
21 | (font_matching_entity): Likewise. | |
22 | ||
8c2dccbf | 23 | * ftfont.c (cs_iso8859_1): Delete. |
25b81df4 KH |
24 | (ft_face_cache): New variable. |
25 | (struct ftfont_info): New member fc_charset_idx; | |
8c2dccbf | 26 | (ftfont_build_basic_charsets): Delete. |
25b81df4 KH |
27 | (fc_charset_table): New variable. |
28 | (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME | |
29 | . FC_CHARSET_IDX) as :font-entity property in the font entity. | |
30 | Callers changed. | |
31 | (ftfont_lookup_cache, ftfont_get_charset): New funcitons. | |
8c2dccbf SM |
32 | (ftfont_spec_pattern): New argument fc_charset_idx. |
33 | Check registry more rigidly. Change callers. | |
25b81df4 KH |
34 | (ftfont_open, ftfont_close, ftfont_has_char): Adjustd for the |
35 | change of :font-entity property of the font. | |
36 | ||
8c2dccbf | 37 | * xftfont.c (xftfont_open): Ajuste for the change of :font-entity |
25b81df4 KH |
38 | property of the font. |
39 | ||
d4a1d553 JB |
40 | 2008-05-18 Juanma Barranquero <lekktu@gmail.com> |
41 | ||
42 | * coding.c (Fcoding_system_p): Rename argument to match docstring. | |
43 | (Funencodable_char_position, Fcheck_coding_systems_region) | |
44 | (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings. | |
45 | (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region) | |
46 | (Ffind_operation_coding_system, Fset_coding_system_priority) | |
47 | (Fcoding_system_eol_type): Doc fixes. | |
48 | ||
07cfc4e7 GM |
49 | 2008-05-17 Glenn Morris <rgm@gnu.org> |
50 | ||
51 | * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY. | |
52 | ||
1cab27d2 EZ |
53 | 2008-05-16 Eli Zaretskii <eliz@gnu.org> |
54 | ||
55 | * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid | |
56 | and st_gid. | |
57 | ||
58 | * frame.c (Fdelete_frame): Don't call font_update_drviers if | |
59 | HAVE_WINDOW_SYSTEM is not defined. | |
60 | ||
61 | * xfaces.c (merge_face_ref, merge_face_vectors) | |
62 | (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when | |
63 | HAVE_WINDOW_SYSTEM is defined. | |
64 | (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case. | |
65 | ||
86b89713 SM |
66 | 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca> |
67 | ||
68 | * keyboard.c (parse_menu_item): Do not cache key shortcut any more. | |
69 | ||
6750bd93 YM |
70 | 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
71 | ||
62867b11 | 72 | * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'. |
6750bd93 | 73 | |
79f105c9 KH |
74 | 2008-05-15 Kenichi Handa <handa@m17n.org> |
75 | ||
76 | * font.c (font_find_for_lface): Reflect LFACE_FONT in the font | |
77 | preference. | |
78 | ||
6b33da9f GM |
79 | 2008-05-15 Glenn Morris <rgm@gnu.org> |
80 | ||
81 | * emacs.c (USAGE1, standard_args): Remove -disable-font-backend. | |
82 | ||
d0e4433b CY |
83 | 2008-05-15 Chong Yidong <cyd@stupidchicken.com> |
84 | ||
85 | * fns.c (init_fns): Don't initialize weak_hash_tables here. | |
86 | (init_weak_hash_tables): New fun. Initialize weak_hash_tables. | |
87 | ||
88 | * alloc.c (init_alloc_once): Call init_weak_hash_tables. | |
89 | ||
5f2d79e0 KH |
90 | 2008-05-15 Kenichi Handa <handa@m17n.org> |
91 | ||
fd8a1cae KH |
92 | * ftfont.c (ftfont_list): Downcase family name to check generic |
93 | families. | |
94 | ||
95 | * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a | |
96 | font-spec for QCfont value. | |
97 | ||
5f2d79e0 KH |
98 | * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte |
99 | buffer. Check the return value of it. | |
100 | ||
e5e29349 JR |
101 | 2008-05-14 Jason Rumney <jasonr@gnu.org> |
102 | ||
103 | * w32term.c (w32_get_glyph_overhangs): Remove. | |
104 | (w32_redisplay_interface): Use x_get_glyph_overhangs instead. | |
105 | ||
1f09f444 KH |
106 | 2008-05-14 Kenichi Handa <handa@m17n.org> |
107 | ||
108 | * font.c (font_prop_validate): Make nil a valid value. | |
be9442ad KH |
109 | (font_clear_cache): Check if the cached vector of entities is nil |
110 | or not. | |
1f09f444 | 111 | |
ecae6af9 | 112 | 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
f8240abd YM |
113 | |
114 | * emacs.c (main_thread): Conditionalize on | |
115 | FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. | |
116 | (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it. | |
117 | ||
118 | * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define. | |
119 | (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on | |
120 | FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. | |
121 | ||
c6b278e7 KH |
122 | 2008-05-14 Kenichi Handa <handa@m17n.org> |
123 | ||
124 | * coding.c (detect_coding_iso_2022): Ignore a coding category that | |
125 | has no corresponding coding system. | |
126 | ||
127 | 2008-05-14 Jason Rumney <jasonr@gnu.org> | |
128 | ||
129 | * font.h (struct font) [WINDOWSNT]: Remove codepage member. | |
130 | ||
131 | * w32font.h (w32font_open_internal): Update declaration. | |
132 | ||
133 | * w32font.c (w32font_open_internal): Change last argument from | |
134 | w32font_info struct to font object. Fill in font object from | |
135 | font_entity. Get Outline metrics if possible. Use them to | |
136 | calculate underline position and thickness. Use xlfd name as name | |
137 | property. Don't set codepage. | |
138 | (w32font_open): Pass font_object to w32font_open_internal. Don't | |
139 | update dpyinfo->smallest_font_height and | |
140 | dpyinfo->smallest_char_width. | |
141 | (w32font_draw): Use s->font. | |
142 | (clear_cached_metrics): Don't clear non-existent blocks. | |
143 | ||
144 | * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if | |
145 | font was not found. | |
146 | (x_draw_glyph_string): Use underline position and thickness from | |
147 | font. | |
148 | ||
149 | * w32uniscribe.c (uniscribe_open): Pass font_object to | |
150 | w32font_open_internal. | |
151 | ||
152 | 2008-05-14 Kenichi Handa <handa@m17n.org> | |
153 | ||
154 | These changes are to delete all legacy font-handling codes, and | |
155 | make Emacs use only font-backends. | |
156 | ||
157 | * Makefile.in: Delete USE_FONT_BACKEND conditionals. | |
158 | (frame.o, image.o, print.o): Depend on $(FONTSRC). | |
159 | ||
160 | * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O). | |
161 | ||
162 | * charset.h (Vcharset_non_preferred_head) | |
163 | (Vcurrent_iso639_language): Extern them. | |
164 | ||
165 | * charset.c (Vcharset_non_preferred_head): New variable. | |
166 | (Vcurrent_iso639_language): New variable. | |
167 | (syms_of_charset): Declare it as a Lisp variable. | |
168 | (char_charset): Don't check non preferred charsets. As a last | |
169 | resort, return charset_unicode. | |
170 | (Fset_charset_priority): Update Vcharset_non_preferred_head. | |
171 | ||
172 | * composite.c: Throughout the file, delete all USE_FONT_BACKEND | |
173 | conditionals. Don't check enable_font_backend. Delete all codes | |
174 | used only when USE_FONT_BACKEND is not defined. | |
175 | ||
176 | * dispextern.h (struct glyph_string): Change type of `font' to | |
177 | `struct font *'. | |
178 | (struct glyph_string): New member underline_position and | |
179 | underline_thickness. | |
180 | (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX. | |
181 | (struct face): Change type of `font' to `struct font *'. Remove | |
182 | members `font_name', `font_info_id'. | |
183 | (per_char_metric, encode_char): Delete externs. | |
184 | (calc_pixel_width_or_height): Adjust the prototype. | |
185 | ||
186 | * emacs.c (enable_font_backend): Delete extern. | |
187 | (main): Don't set enable_font_backend. Don't check the command | |
188 | line argument "-disable-font-backend". | |
189 | ||
190 | * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them. | |
191 | (enum font_property_index): New members FONT_DPI_INDEX, | |
192 | FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX, | |
193 | FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX, | |
194 | FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX. | |
195 | (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC) | |
196 | (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC) | |
197 | (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE) | |
198 | (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC) | |
199 | (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros. | |
200 | (struct font_spec, struct font_entity): New structs. | |
201 | (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h. | |
202 | (struct font): Many members from old "struct font_info" moved to | |
203 | here. Members font and entity deleted. | |
204 | (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for | |
205 | the new font-related objects. | |
206 | (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT) | |
207 | (CHECK_FONT_GET_OBJECT): Likewise. | |
208 | (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros. | |
209 | (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h. | |
210 | (struct font_driver): New members case_sensitive anc check. Type | |
211 | of the member list and open changed. | |
212 | (enable_font_backend, font_symbolic_weight, font_symbolic_slant) | |
213 | (font_symbolic_width, font_find_object, font_get_spec) | |
214 | (font_set_lface_from_name): Delete extern. | |
215 | (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New | |
216 | EXFUNs. | |
217 | ||
218 | * font.c: Include <strings.h>. | |
219 | (enable_font_backend): Delete it. | |
220 | (Qfont_spec, Qfont_entity, Qfont_object): New variables. | |
221 | (CHECK_VALIDATE_FONT_SPEC): Delete it. | |
222 | (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h. | |
223 | (null_string): Delete it. | |
224 | (null_vector): Make it static. | |
225 | (font_family_alist): Delete it. | |
226 | (Qnormal): Extern it. | |
227 | (QCextra, QClanguage): Delete it. | |
228 | (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New | |
229 | variables. | |
230 | (font_make_spec, font_make_entity, font_make_object) | |
231 | (font_intern_prop): Renamed from intern_downcase. Don't downcase | |
232 | the string. Callers changed. | |
233 | (font_pixel_size): Adjusted for the format change of font-related | |
234 | objects. | |
235 | (prop_name_to_numeric, prop_numeric_to_name): Delete them. | |
236 | (font_style_to_value, font_style_symbolic): New function. | |
237 | (build_font_family_alist): Delete it. | |
238 | (font_registry_charsets): Use Fassoc_string instead of | |
239 | assq_no_quit. | |
240 | (font_prop_validate_symbol): Don't return null_string. | |
241 | (font_prop_validate_style): Adjusted for the change of | |
242 | style-related values in a font vector. | |
243 | (font_property_table): Delete entries for QClangauge and | |
244 | QCantialias, add entries for QCavgwidth. | |
245 | (get_font_prop_index): Delete the 2nd argument FROM. | |
246 | (font_prop_validate): Arguments changed. | |
247 | (font_put_extra): Adjusted for the change of font-related objects. | |
248 | (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd) | |
249 | (font_parse_fcname, font_unparse_fcname) | |
250 | (font_prepare_composition): Likewise. | |
251 | (font_parse_family_registry): Renamed from font_merge_old_spec. | |
252 | (otf_open): Delete the 1st arg entity. | |
253 | (font_otf_capability): Adjusted for the above change. | |
254 | (font_score): New arg alternate_families. Adjusted for the change | |
255 | of font-related objects. | |
256 | (font_sort_entites): New arg best_only. | |
257 | (font_symbolic_weight, font_symbolic_slant, font_symbolic_width): | |
258 | Delete them. | |
259 | (font_match_p): Check alternate families. | |
260 | (font_find_object): Delete it. | |
261 | (font_check_object): New function. | |
262 | (font_clear_cache): Adjusted for the change of font-related | |
263 | objects. | |
264 | (font_delete_unmatched): New arg. | |
265 | (font_list_entities): Call font_driver->list with a spec that | |
266 | doesn't specify style-related properties. | |
267 | (font_matching_entity): Arguments changed. Caller changed. | |
268 | (font_open_entity): Adjusted for the change of font-related | |
269 | objects. | |
270 | (font_close_object, font_has_char, font_encode_char) | |
271 | (font_get_name, font_get_spec): Likewise. | |
272 | (font_spec_from_name, font_clear_prop, font_update_lface): New | |
273 | functions. | |
274 | (font_find_for_lface, font_open_for_lface, font_load_for_lface): | |
275 | (font_prepare_for_face, font_done_for_face, font_open_by_name) | |
276 | (font_at): Adjusted for the change of font-related objects. | |
277 | (font_range): New function. | |
278 | (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts) | |
279 | (Ffont_xlfd_name): Adjusted for the change of font-related | |
280 | objects. | |
281 | (Fcopy_font_spec, Fmerge_font_spec): New function. | |
282 | (Ffont_family_list): Renamed from list-families. | |
283 | (Finternal_set_font_style_table): Arguments changed. | |
284 | (Ffont_fill_gstring, Ffont_shape_text, Fopen_font) | |
285 | (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the | |
286 | change of font-related objects. | |
287 | (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new | |
288 | symboles. | |
289 | ||
290 | * fontset.h (struct font_info): Delete it. Most memnbers go to | |
291 | struct font. | |
292 | (FONT_ENCODING_NOT_DECIDED): Moved to font.h. | |
293 | (enum FONT_SPEC_INDEX): Delete it. | |
294 | (font_info, list_fonts_func, load_font_func, query_font_func) | |
295 | (set_frame_fontset_func, find_ccl_program_func) | |
296 | (get_font_repertory_func, new_fontset_from_font_name): Delete | |
297 | externs. | |
298 | (fontset_from_font_name): Extern it. | |
299 | (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID) | |
300 | (FONT_INFO_FROM_FACE): Deleted. | |
301 | (face_for_font): Adjust prototype. | |
302 | ||
303 | * fontset.c: Throughout the file, delete all USE_FONT_BACKEND | |
304 | conditionals. Don't check enable_font_backend. Delete all codes | |
305 | used only when USE_FONT_BACKEND is not defined. | |
306 | (get_font_info_func, list_font_func, load_font_func) | |
307 | (query_font_func, set_frame_fontset_func, find_ccl_program_func) | |
308 | (get_font_repertory_func): Delete them. | |
309 | (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING) | |
310 | (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE) | |
311 | (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY) | |
312 | (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE) | |
313 | (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros. | |
314 | (fontset_compare_rfontdef): New function. | |
315 | (reorder_font_vector): Remove the argument CHARSET-ID. Sort | |
316 | ront-defs by qsort. Adjusted for the change of font-group vector. | |
317 | (load_font_get_repertory): Deleted. | |
318 | (fontset_find_font): Use new macros to ref/set elements of | |
319 | font-def and rfont-def. | |
320 | (fontset_font): Fix the timing of remembering that no font for C. | |
321 | (free_face_fontset): Do nothing if the face has no fontset. | |
322 | (face_suitable_for_char_p): Use new macros to ref/set elements of | |
323 | rfont-def. | |
324 | (face_for_char): Likewise. Call face_for_char with font_object. | |
325 | (fs_load_font): Delete. Delete #pragma surrounding it. | |
326 | (fs_query_fontset): Use strcasecmp instead of strcmp. | |
327 | (generate_ascii_font_name): Adjusted for the format change of | |
328 | font-spec. | |
329 | (Fset_fontset_font): Likewise. Use new macros to set elements of | |
330 | font-def. | |
331 | (Fnew_fontset): Use font_unparse_xlfd to generate | |
332 | FONTSET_ASCII (fontset). | |
333 | (new_fontset_from_font_name): Deleted. | |
334 | (fontset_from_font): Renamed from new_fontset_from_font. Check if | |
335 | a fontset is already created for the font. FIx updating of | |
336 | Vfontset_alias_alist. | |
337 | (fontset_ascii_font): Deleted. | |
338 | (Ffont_info): Adjusted for the format change of font-spec. | |
339 | (Finternal_char_font): Likewise. | |
340 | (Ffontset_info): Likewise. | |
341 | (syms_of_fontset): Don't check load_font_func. | |
342 | ||
343 | * fns.c (internal_equal): Handle PREV_FONT. | |
344 | ||
345 | * frame.h: Delete USE_FONT_BACKEND conditional. | |
346 | ||
347 | * frame.c: Throughout the file, delete all USE_FONT_BACKEND | |
348 | conditionals. Don't check enable_font_backend. Delete all codes | |
349 | used only when USE_FONT_BACKEND is not defined. | |
350 | (x_set_font): Call x_new_font, not x_new_fontset2. | |
351 | (x_set_font_backend): Use FRAME_FONT macro to check if a font is | |
352 | already set for the frame. | |
353 | ||
354 | * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make | |
355 | a font-entity by font_make_entity. Use font_intern_prop instead | |
356 | of intern_downcase. Use FONT_SET_STYLE to set a style-related | |
357 | font property. If a font is scalable, set avgwidth property to 0. | |
358 | Set font-entity property by font_put_extra. | |
359 | (ftfont_list_generic_family): Argument SPEC and REGISTRY removed. | |
360 | (ffont_driver): Adjusted for the change of struct font_driver. | |
361 | (ftfont_spec_pattern): New function. | |
362 | (ftfont_list): Return a list, not vector. | |
363 | (ftfont_match): Use ftfont_spec_pattern to get a pattern. | |
364 | (ftfont_list_family): Don't downcase names. | |
365 | (ftfont_free_entity): Deleted. | |
366 | (ftfont_open): Return a font-ojbect. Adjusted for the change of | |
367 | struct font. Get underline_thickness and underline_position from | |
368 | font property. Don't update dpyinfo->smallest_font_height and | |
369 | dpyinfo->smallest_char_width. | |
370 | (ftfont_close): Don't free `struct font'. | |
371 | (ftfont_has_char): Adjusted for the format change of font-entity. | |
372 | (ftfont_encode_char, ftfont_text_extents): Likewise. | |
373 | ||
374 | * ftxfont.c (ftxfont_list): Return a list, not vector. | |
375 | (ftxfont_open): Return a font-ojbect. Adjusted for the change of | |
376 | struct font. Get underline_thickness and underline_position from | |
377 | font property. Don't update dpyinfo->smallest_font_height and | |
378 | dpyinfo->smallest_char_width. | |
379 | (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts. | |
380 | (ftxfont_draw): Adjusted for the change of struct font. | |
381 | ||
382 | * image.c (image_ascent): Don't include "charset.h". Include | |
383 | "character.h" and "font.h". | |
384 | ||
385 | * lisp.h (enum pvec_type): New member PREV_FONT. | |
386 | (Fassoc_string): EXFUN it. | |
387 | ||
388 | * print.c: Include font.h. | |
389 | (print_object): Handle font-related objects. | |
390 | ||
391 | * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND | |
392 | conditionals. Don't check enable_font_backend. Delete all codes | |
393 | used only when USE_FONT_BACKEND is not defined. | |
394 | (handle_auto_composed_prop): Do nothing if it->f is not on a | |
395 | window system. Check how many following characters can be | |
396 | displayed by the same font. | |
397 | (calc_pixel_width_or_height): Type of the 4th arg is changed to | |
398 | 'struct font *'. | |
399 | (get_char_face_and_encoding): Assign the whole encoding task to | |
400 | the `encode-char' method of a font driver. | |
401 | (fill_composite_glyph_string): Adjusted for the change of `struct | |
402 | face' and `struct glyph_string'. | |
403 | (fill_glyph_string): Likewise. | |
404 | (get_per_char_metric): Arguments changed. | |
405 | (x_get_glyph_overhangs): Adjusted for the change of `struct face' | |
406 | and `struct glyph_string'. | |
407 | (produce_stretch_glyph, calc_line_height_property) | |
408 | (x_produce_glyphs): Likewise. | |
409 | ||
410 | * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND | |
411 | conditionals. Don't check enable_font_backend. Delete all codes | |
412 | used only when USE_FONT_BACKEND is not defined. Use | |
413 | FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx. | |
414 | (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) | |
415 | (Qp): Extern them. | |
416 | (clear_font_table, load_face_font, xlfd_lookup_field_contents): | |
417 | Deleted. | |
418 | (struct font_name): Deleted. | |
419 | (xlfd_numeric_value, xlfd_symbolic_value): Deleted. | |
420 | (compare_fonts_by_sort_order): New function. | |
421 | (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight) | |
422 | (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth): | |
423 | Deleted. | |
424 | (Fx_family_fonts): Use font_list_entities, and sort fonts by | |
425 | compare_fonts_by_sort_order. | |
426 | (Fx_font_family_list): Call Ffont_family_list. | |
427 | (face_numeric_value, face_numeric_weight, face_numeric_slant) | |
428 | (face_numeric_swidth, face_symbolic_value, face_symbolic_weight) | |
429 | (face_symbolic_slant, face_symbolic_swidth) | |
430 | (split_font_name_into_vector, build_font_name_from_vector) | |
431 | (xlfd_fixed_p, xlfd_point_size, pixel_point_size) | |
432 | (font_rescale_ratio, split_font_name, build_font_name) | |
433 | (free_font_names, sort_fonts, x_face_list_fonts) | |
434 | (face_font_available_p, sorted_font_list, cmp_font_names) | |
435 | (font_list_1, concat_font_list, font_list, remove_duplicates): | |
436 | Deleted. | |
437 | (Fx_list_fonts): Use Ffont_list. | |
438 | (LFACE_AVGWIDTH): Deleted. | |
439 | (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT | |
440 | by FONTP. | |
441 | (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. | |
442 | (set_lface_from_font_name): Delete it. | |
443 | (set_lface_from_font): Renamed from | |
444 | set_lface_from_font_and_fontset. Caller changed. Don't set | |
445 | LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable | |
446 | for face. | |
447 | (merge_face_vectors): Copy font-spec if necessary. Clear | |
448 | properties of the font-spec if necessary. | |
449 | (merge_face_ref): Clear properties of the font-spec if necessary. | |
450 | (Finternal_set_lisp_face_attribute): Likewise. | |
451 | (set_font_frame_param): Use font_load_for_lface to load a | |
452 | font-object, and call Fmodify_frame_parameters with it. | |
453 | (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD | |
454 | font name by Ffont_xlfd_name. | |
455 | (Finternal_lisp_face_attribute_values): Don't check QCweight, | |
456 | QCslant, and QCwidth. | |
457 | (Fface_font): Get a font name from font->props[FONT_NAME_INDEX]. | |
458 | (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH. | |
459 | Compare fonts by EQ. | |
460 | (lookup_non_ascii_face): Deleted. | |
461 | (face_for_font): The 2nd argument changed. | |
462 | (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. Check | |
463 | atomic font properties by case insensitive. | |
464 | (realize_non_ascii_face): Set face->overstrike correctly. | |
465 | (realize_x_face): Likewise. Check if LFACE_FONT is a font_object. | |
466 | (dump_realized_face): Get font name from | |
467 | font->props[FONT_NAME_INDEX]. Don't print font_info_id. | |
468 | ||
469 | * xfns.c: Throughout the file, delete all USE_FONT_BACKEND | |
470 | conditionals. Don't check enable_font_backend. Delete all codes | |
471 | used only when USE_FONT_BACKEND is not defined. | |
472 | (xic_create_xfontset): Original code deleted and renamed from | |
473 | xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT. | |
474 | (x_make_gc): Don't set GCFont in GCs. | |
475 | (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font | |
476 | opened by "fixed". | |
477 | (syms_of_xfns): Don't set get_font_info_func, load_font_func, | |
478 | find_ccl_program_func, query_font_func, set_frame_fontset_func, | |
479 | get_font_repertory_func. | |
480 | ||
481 | * xfont.c: Include <stdlib.h> and "ccl.h". | |
482 | (struct xfont_info): New structure. | |
483 | (xfont_query_font): Deleted. | |
484 | (xfont_find_ccl_program): Renamed from x_find_ccl_program and | |
485 | moved from xterm.c. | |
486 | (xfont_driver): Adjusted for the change of struct font_driver. | |
487 | (compare_font_names): New function. | |
488 | (xfont_list_pattern): Sort font names case insensitively. Make | |
489 | font_entity by calling font_make_entity. Avoid auto-scaled fonts. | |
490 | (xfont_list): Return a list, not vector. | |
491 | (xfont_match): If the font doesn't have QCname property, generate | |
492 | a name from the other font properties. | |
493 | (xfont_open): Return a font-ojbect. Adjusted for the change of | |
494 | struct font. Get underline_thickness and underline_position from | |
495 | font property. Don't update dpyinfo->smallest_font_height and | |
496 | dpyinfo->smallest_char_width. | |
497 | (xfont_close): Don't free struct font. | |
498 | (xfont_prepare_face): Adjusted for the change of struct font. | |
499 | (xfont_done_face): Deleted. | |
500 | (xfont_has_char): Adjusted for the change of struct font. | |
501 | (xfont_encode_char, xfont_draw): Likewise. | |
502 | (xfont_check): New function. | |
503 | ||
504 | * xftfont.c (xftfont_list): Adjusted for the change of `list' | |
505 | callback function. | |
506 | (xftfont_match): Adjusted for the fontmat change of font-entity. | |
507 | (xftfont_open): Adjusted for the format change of font-entity and | |
508 | font-object. Adjusted for the change of struct font. Return a | |
509 | font-object. Don't update dpyinfo->smallest_font_height and | |
510 | dpyinfo->smallest_char_width. | |
511 | (xftfont_close): Block input while calling XftFontClose. | |
512 | (xftfont_prepare_face): Don't block input while calling | |
513 | xftfont_get_colors. Adjusted for the change of struct font. | |
514 | (xftfont_shape): Return value of error case fixed. | |
515 | ||
516 | * xrdb.c (x_load_resources): Don't setup a fontset resource. | |
517 | ||
518 | * xterm.h: Throughout the file, delete all USE_FONT_BACKEND | |
519 | conditionals. | |
520 | (FONT_WIDTH): Return (f)->max_width. | |
521 | (struct x_display_info): Delete member `font'. | |
522 | (x_list_fonts, x_get_font_info, x_load_font, x_query_font) | |
523 | (x_find_ccl_program, x_get_font_repertory): Delete externs. | |
524 | (struct x_output): Change type of `font' to `struct font *'. | |
525 | ||
526 | * xterm.c: Throughout the file, delete all USE_FONT_BACKEND | |
527 | conditionals. Don't check enable_font_backend. Delete all codes | |
528 | used only when USE_FONT_BACKEND is not defined. Don't include | |
529 | ccl.h. | |
530 | (x_per_char_metric, x_encode_char): Deleted. | |
531 | (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. | |
532 | (x_compute_glyph_string_overhangs): Adjusted for the change of | |
533 | `struct face' | |
534 | (x_draw_glyph_string_foreground) | |
535 | (x_draw_composite_glyph_string_foreground): Likewise. | |
536 | (x_draw_glyph_string): Likewise. Use font->underline_position and | |
537 | font->underline_thickness. | |
538 | (x_new_font): Renamed from x_new_fontset2. | |
539 | (x_new_fontset, x_get_font_info, x_list_fonts): Deleted. | |
540 | (x_check_font): Call `check' method of a font driver. | |
541 | (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) | |
542 | (x_query_font, x_get_font_repertory): Deleted. | |
543 | (x_find_ccl_program): Renamed and moved to xfont.c. | |
544 | (x_redisplay_interface): Adjusted for the change of `struct | |
545 | redisplay_interface'. | |
546 | ||
547 | * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND | |
548 | conditionals. Don't check enable_font_backend. Delete all codes | |
549 | used only when USE_FONT_BACKEND is not defined. Surround non-used | |
550 | code by "#ifdef OLD_FONT" and "endif". | |
551 | (Fw32_select_font): Use FONT_COMPAT to get old font structure. | |
552 | ||
553 | * w32font.h (struct w32font_info): New member. | |
554 | (FONT_COMPAT): New macro. | |
555 | (w32font_open_internal): Prototype adjusted. | |
556 | ||
557 | * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if | |
558 | OLD_FONT" and "endif". | |
559 | ||
560 | * w32font.c: Throughout the file, delete all USE_FONT_BACKEND | |
561 | conditionals. Don't check enable_font_backend. Delete all codes | |
562 | used only when USE_FONT_BACKEND is not defined. | |
563 | (w32font_open): Return a font-object. Make a font-object by | |
564 | font_make_object. Adjusted for the change of struct w32font_info. | |
565 | (w32font_close): Don't free struct font. Adjusted for the change | |
566 | of struct w32font_info. | |
567 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
568 | Adjusted for the change of struct w32font_info. | |
569 | (w32font_draw): Likewise. | |
570 | (w32font_list_internal): Return a list, not vector. | |
571 | (w32font_open_internal): Change the 4th arg to font-object. | |
572 | Adjusted for the change of struct w32font_info and font-object | |
573 | format. | |
574 | (add_font_name_to_list): Don't downcase names. | |
575 | (w32_enumfont_pattern_entity): Make a font-entity by | |
576 | font_make_entity. Adjusted for the format change of font-entity. | |
577 | Use FONT_SET_STYLE to set a style-related font property. If a | |
578 | font is scalable, set avgwidth property to 0. Set font-entity | |
579 | property by font_put_extra. | |
580 | (font_matches_spec): Adjusted for the format change of | |
581 | font-entity. | |
582 | (w32_weight_table, w32_decode_weight): New variables. | |
583 | (w32_encode_weight): New function. | |
584 | (fill_in_logfont): Adjusted for the format change of font-spec. | |
585 | (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol | |
586 | weight value. | |
587 | (w32font_driver): Adjusted for the change of struct font_driver. | |
588 | ||
589 | * w32term.h: Throughout the file, delete all USE_FONT_BACKEND | |
590 | conditionals. Don't check enable_font_backend. Surround non-used | |
591 | code by "#ifdef OLD_FONT" and "endif". | |
592 | (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT) | |
593 | (FONT_AVG_WIDTH): Adjusted for the change of struct font. | |
594 | ||
595 | * w32term.c: Throughout the file, delete all USE_FONT_BACKEND | |
596 | conditionals. Don't check enable_font_backend. Delete all codes | |
597 | used only when USE_FONT_BACKEND is not defined. Surround non-used | |
598 | code by "#ifdef OLD_FONT" and "endif". | |
599 | ||
600 | * w32uniscribe.c: Delete USE_FONT_BACKEND conditional. | |
601 | (uniscribe_open): Return value changed to font-object. Adjusted | |
602 | for the format change of font-object. | |
603 | (uniscribe_otf_capability): Adjusted for the change of struct | |
604 | font. | |
605 | (add_opentype_font_name_to_list): Don't downcase names. | |
606 | (uniscribe_font_driver): Adjusted for the change of struct | |
607 | font_driver. | |
608 | ||
f9d4c199 CY |
609 | 2008-05-13 Chong Yidong <cyd@stupidchicken.com> |
610 | ||
611 | * dispnew.c (update_frame_1): Check if tty output is still valid | |
612 | before flushing it. | |
613 | ||
44f249c0 JD |
614 | 2008-05-13 Jan Djärv <jan.h.d@swipnet.se> |
615 | ||
616 | * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 | |
617 | to Gtk+ menus. | |
618 | ||
01bb4018 SM |
619 | 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca> |
620 | ||
3271a8f5 SM |
621 | * dired.c (file_name_completion): Tweak the code so as to always do it |
622 | in a single pass. Tighten the scope of some variables. | |
623 | ||
01bb4018 SM |
624 | * dired.c (Qdefault_directory): New var. |
625 | (file_name_completion): Use it instead of Fexpand_file_name. | |
626 | (syms_of_dired): Initialize it. | |
627 | ||
728bb8e0 SM |
628 | 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca> |
629 | ||
630 | * fileio.c (double_dollars): Remove dead code. | |
631 | ||
ed4c17bb EZ |
632 | 2008-05-10 Eli Zaretskii <eliz@gnu.org> |
633 | ||
6c5665e9 EZ |
634 | * dired.c (Ffile_attributes, Fdirectory_files_and_attributes): |
635 | Mention w32-get-true-file-attributes in doc string. | |
636 | ||
ed4c17bb EZ |
637 | * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix. |
638 | ||
71e1f69d GM |
639 | 2008-05-09 Glenn Morris <rgm@gnu.org> |
640 | ||
641 | * fileio.c (Fread_file_name): Remove reference to insdef, deleted | |
642 | 2008-04-23. | |
643 | ||
ee7a2e7a EZ |
644 | 2008-05-09 Eli Zaretskii <eliz@gnu.org> |
645 | ||
8aaaec6b EZ |
646 | Support for reporting owner and group of each file on MS-Windows: |
647 | * dired.c (stat_uname, stat_gname): New functions, with special | |
648 | implementation for w32. | |
649 | (Ffile_attributes): Use them instead of getpwuid and getgrgid. | |
650 | ||
ee7a2e7a EZ |
651 | * w32.c: Rename the_passwd_* to dflt_passwd_*. |
652 | (dflt_group_name): New static variable. | |
728bb8e0 | 653 | (dflt_group): Rename from the_group. |
ee7a2e7a EZ |
654 | (init_user_info): Init dflt_group fields. Get user's group name |
655 | from LookupAccountSid. | |
8aaaec6b EZ |
656 | (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner) |
657 | (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid): | |
658 | New initialization states. | |
659 | (globals_of_w32): Initialize them to zero. Initialize the default | |
660 | group name to "None". | |
661 | (GetFileSecurity_Name): New global var, the name of the function | |
662 | to call for GetFileSecurity. | |
663 | (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc) | |
664 | (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs. | |
665 | (get_file_security, get_security_descriptor_owner) | |
666 | (get_security_descriptor_group, is_valid_sid) | |
667 | (get_file_security_desc, get_rid, get_name_and_id) | |
668 | (get_file_owner_and_group): New functions. | |
669 | (stat): Use get_file_security_desc and get_file_owner_and_group to | |
670 | report the owner and primary group of each file. Don't ignore the | |
728bb8e0 SM |
671 | high 32 bits of file's size, now that st_size is 64-bit wide. |
672 | Fix test when to get true file attributes. | |
8aaaec6b EZ |
673 | (init_user_info): Use get_rid instead of equivalent inline code. |
674 | (fstat): Don't ignore the high 32 bits of file's size. | |
ee7a2e7a | 675 | |
b199c436 CY |
676 | 2008-05-09 Chong Yidong <cyd@stupidchicken.com> |
677 | ||
678 | * image.c (png_load): Use correct bit-depth for setting background | |
679 | color. | |
680 | ||
86914123 EZ |
681 | 2008-05-08 Eli Zaretskii <eliz@gnu.org> |
682 | ||
683 | * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to | |
684 | epa-hook.elc. | |
685 | ||
67b5d7de JB |
686 | 2008-05-08 Juanma Barranquero <lekktu@gmail.com> |
687 | ||
688 | * font.c (Ffont_match_p): Don't use `iff' in docstring. | |
689 | ||
1a111394 DN |
690 | 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu> |
691 | ||
692 | * macfns.c (Fx_create_frame): Make a copy of frame parameters | |
693 | because the original parameters are in pure storage now. | |
694 | (mac_window): Remove unused params. Update callers. | |
695 | ||
6d77fa95 SM |
696 | 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca> |
697 | ||
7a3d90dc SM |
698 | * lread.c (substitute_object_recurse): Use lower-level primitives. |
699 | Don't signal errors when traversing sub-char-tables. | |
700 | Don't loop over all the possible characters when traversing char-tables. | |
701 | ||
6d77fa95 SM |
702 | * print.c (print_preprocess): Add sub-char-tables to the print-table, |
703 | just like we do in print.c. | |
704 | ||
140eb764 SM |
705 | 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca> |
706 | ||
707 | * minibuf.c (Ftry_completion): Remove code left over from when we used | |
708 | scmp instead of Fcompare_strings. | |
709 | ||
e9184ccb JB |
710 | 2008-05-04 Juanma Barranquero <lekktu@gmail.com> |
711 | ||
712 | * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format. | |
713 | ||
0e9378b3 YM |
714 | 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
715 | ||
716 | * image.c [USE_MAC_IMAGE_IO] (image_load_image_io): | |
717 | Create bitmap context in native byte order. | |
718 | ||
f67e15be MB |
719 | * macterm.c (XDrawLine) |
720 | (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap | |
721 | context in native byte order. | |
064032d0 | 722 | |
f67e15be | 723 | 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
50eff40f YM |
724 | |
725 | * config.in: Regenerate. | |
726 | ||
727 | * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]: | |
728 | New definitions for Image I/O support. | |
729 | (XGetImage, XPutPixel, XGetPixel, XDestroyImage) | |
730 | (mac_create_cg_image_from_image, x_create_x_image_and_pixmap) | |
731 | [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. | |
732 | (mac_data_provider_release_data, image_load_image_io) | |
733 | [USE_MAC_IMAGE_IO]: New functions. | |
734 | (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef. | |
735 | (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable. | |
736 | (init_image_func_pointer) [MAC_OSX]: Remove function. | |
737 | (image_load_quartz2d) [MAC_OSX]: Check availability of | |
738 | CGImageCreateWithPNGDataProvider at compile time. | |
739 | Use lowercase `false' for boolean constant. | |
740 | (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]: | |
741 | Use image_load_image_io. | |
742 | (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]: | |
743 | Don't check MyCGImageCreateWithPNGDataProvider. | |
744 | (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]: | |
745 | Don't call init_image_func_pointer. | |
746 | ||
747 | * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O. | |
748 | ||
749 | * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]: | |
750 | Make variable non-static. | |
751 | (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap) | |
752 | [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. | |
753 | ||
754 | * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros. | |
755 | (RED_FROM_ULONG): Mask off higher bits. | |
756 | (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern. | |
757 | ||
758 | * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]: | |
759 | Include AvailabilityMacros.h. | |
760 | (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines. | |
761 | (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE. | |
762 | ||
c6bff69e SM |
763 | 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca> |
764 | ||
765 | * chartab.c (Fset_char_table_range): If range is t, really set all | |
766 | chars to that value. | |
767 | ||
7412d429 EZ |
768 | 2008-05-03 Eli Zaretskii <eliz@gnu.org> |
769 | ||
770 | * dired.c (Ffile_attributes): Don't allow the device number become | |
771 | negative. | |
772 | ||
f83bbfac DU |
773 | 2008-05-02 Daiki Ueno <ueno@unixuser.org> |
774 | ||
5a81d3d7 | 775 | * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc. |
f83bbfac | 776 | |
2e3148e2 JL |
777 | 2008-05-02 Juri Linkov <juri@jurta.org> |
778 | ||
779 | * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command) | |
728bb8e0 SM |
780 | (Fread_variable, Fread_buffer, Fcompleting_read): Document the |
781 | DEFAULT argument as a list of default values in docstrings. | |
2e3148e2 | 782 | |
923fb88c CY |
783 | 2008-05-01 Chong Yidong <cyd@stupidchicken.com> |
784 | ||
785 | * puresize.h (BASE_PURESIZE): Increase to 1210000. | |
786 | ||
047aaeb9 MR |
787 | 2008-05-01 Martin Rudalics <rudalics@gmx.at> |
788 | ||
789 | * dispnew.c (change_frame_size_1): Preserve small windows when | |
790 | shrinking frames by calling set_window_height|width with third | |
791 | arg 2. | |
792 | ||
793 | * window.h (struct window): Replace field too_small_ok by field | |
794 | resize_proportionally. | |
795 | ||
796 | * window.c (make_window): Initialize resize_proportionally. | |
797 | (enlarge_window): Temporarily set resize_proportionally to make | |
798 | sure that shrink_windows does scale the window proportionally. | |
799 | (shrink_windows): When window has resize_proportionally set try | |
800 | to shrink it proportionally by stealing from other windows. | |
801 | (struct saved_window, Fset_window_configuration) | |
802 | (compare_window_configurations): Handle resize_proportionally. | |
803 | (WINDOW_TOTAL_SIZE): New macro. | |
804 | (window_min_size, shrink_windows, size_window): Use it. | |
c6bff69e | 805 | (check_min_window_sizes): Remove. Invalid values of |
047aaeb9 MR |
806 | window-min-height|width are handled by window_min_size_2 now. |
807 | (size_window, Fsplit_window, enlarge_window) | |
808 | (adjust_window_trailing_edge, grow_mini_window): Don't call | |
809 | check_min_window_sizes. | |
c6bff69e SM |
810 | (window_min_size_2, window_min_size_1, window_min_size): |
811 | New argument safe_p for retrieving "safe" minimum sizes. | |
047aaeb9 | 812 | (Fdisplay_buffer, Fsplit_window, enlarge_window): |
c6bff69e SM |
813 | (adjust_window_trailing_edge, grow_mini_window): |
814 | Adjust arguments of window_min_size... functions. | |
047aaeb9 MR |
815 | (shrink_windows): Argument min_size removed. New argument |
816 | safe_p allows shrinking windows to their safe minimum sizes. | |
817 | Calculate minimum size and decide whether a window shall be | |
818 | deleted for each window individually. | |
819 | (size_window): When nodelete_p equals 2, tell shrink_windows to | |
820 | delete windows only if their new minimum size is no more safe. | |
821 | (shrink_window_lowest_first): Call window_min_size_1 to make | |
822 | sure to preserve modeline of bottom-most window when resizing | |
823 | the minibuffer. | |
824 | (Fset_window_configuration, Fcurrent_window_configuration) | |
825 | (compare_window_configurations): Do not handle | |
826 | window-min-height|width any more. | |
827 | (syms_of_window): Clarify window-min-height|width doc-strings. | |
828 | ||
2a54a229 SM |
829 | 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca> |
830 | ||
831 | * dired.c (file_name_completion): Fix up the encoding/decoding issue | |
832 | some more. Copy some of the code from Ftry_completions. | |
833 | Remove special case code that dates back to initial revision when the | |
834 | slash was only added when necessary and that can't trigger nowadays. | |
835 | ||
384bc634 KH |
836 | 2008-04-27 Kenichi Handa <handa@m17n.org> |
837 | ||
838 | * font.c (font_prop_validate): Signal `error' instead of `font'. | |
839 | ||
2c2279c6 JR |
840 | 2008-04-29 Jason Rumney <jasonr@gnu.org> |
841 | ||
842 | * w32fns.c (Fw32_battery_status): New defun. | |
843 | (syms_of_w32fns): Defsubr it. | |
844 | ||
fb4a622a AS |
845 | 2008-04-28 Andreas Schwab <schwab@suse.de> |
846 | ||
847 | * dired.c (file_name_completion): Fix another mixing of encoded | |
848 | and decoded names. | |
849 | ||
23f250f4 JB |
850 | 2008-04-28 Juanma Barranquero <lekktu@gmail.com> |
851 | ||
852 | * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring. | |
853 | ||
d8d30dff JB |
854 | 2008-04-27 Juanma Barranquero <lekktu@gmail.com> |
855 | ||
856 | * fringe.c (Fdefine_fringe_bitmap): Doc fix. | |
857 | ||
ea6104a8 AS |
858 | 2008-04-27 Andreas Schwab <schwab@suse.de> |
859 | ||
9c691c00 AS |
860 | * dired.c (file_name_completion): Fix inappropriate mixing of |
861 | encoded and decoded names. | |
862 | ||
ec1bf773 AS |
863 | * xterm.c (XTread_socket): Fix use of uninitialized variable. |
864 | ||
ea6104a8 AS |
865 | * puresize.h (BASE_PURESIZE): Increase to 1200000. |
866 | ||
01388a3d EZ |
867 | 2008-04-26 Eli Zaretskii <eliz@gnu.org> |
868 | ||
869 | * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from | |
870 | 2008-03-31, it's not needed anymore with `struct stat' definition | |
871 | on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13 | |
872 | for the same reasons. | |
873 | ||
175aea10 | 874 | 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change) |
27af566c CY |
875 | |
876 | * m/sparc.h: Additional redefinitions for GNU/Linux. | |
877 | ||
1289aeb8 YM |
878 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
879 | ||
880 | * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable. | |
881 | (syms_of_macterm) [USE_MAC_TSM]: Defvar it. | |
882 | (Qmouse_drag_overlay) [MAC_OSX]: New variable. | |
883 | (syms_of_macterm) [MAC_OSX]: Intern and staticpro it. | |
884 | (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) | |
885 | (mac_ax_selected_text_range) [MAC_OSX]: New functions. | |
886 | (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
887 | Likewise. | |
888 | ||
889 | * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern. | |
890 | (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range): | |
891 | (mac_ax_number_of_characters): Add externs. | |
892 | (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) | |
893 | [USE_MAC_TSM]: Likewise. | |
894 | (mac_handle_text_input_event) [MAC_OSX]: | |
895 | Handle kEventTextInputOffsetToPos for no active input area case. | |
896 | Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText. | |
897 | (mac_handle_document_access_event) | |
898 | [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function. | |
899 | (install_application_handler) [MAC_OSX]: Register handlers for | |
900 | kEventTextInputPosToOffset and kEventTextInputGetSelectedText. | |
901 | (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
902 | Register mac_handle_document_access_event. | |
903 | ||
904 | * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]: | |
905 | Make functions non-static. | |
906 | ||
dbd50d4b SM |
907 | 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca> |
908 | ||
909 | * fileio.c (Vread_file_name_function, Vread_file_name_predicate) | |
910 | (read_file_name_completion_ignore_case, insert_default_directory) | |
911 | (Qdefault_directory): Move to minibuffer.el. | |
912 | (Fread_file_name): Call the new `read-file-name' instead. | |
913 | ||
9ea37b9d | 914 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
81fe843b YM |
915 | |
916 | * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]: | |
917 | Make function non-static. | |
918 | (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: | |
919 | Remove function. | |
920 | (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: | |
921 | Move to mactoolbox.c. | |
922 | (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function. | |
923 | ||
924 | * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef. | |
925 | (mac_rect_make): New macro. | |
926 | ||
927 | * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat | |
928 | instead of float. | |
929 | (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. | |
930 | (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground) | |
931 | (XSetBackground) [USE_CG_DRAWING]: Likewise. | |
932 | (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of | |
933 | CGRectMake. | |
934 | (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. | |
935 | (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle) | |
936 | (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise. | |
937 | (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window | |
938 | instead of WindowRef in argument type. | |
939 | (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort. | |
940 | (mac_invert_rectangle): Use CGContextSetBlendMode if available. | |
941 | (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F | |
942 | instead of DISPLAY. All uses changed. | |
943 | (mac_handle_size_change): Don't call SET_FRAME_GARBAGED. | |
944 | (x_calc_absolute_position): Simplify so as not to use | |
945 | FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT. | |
81fe843b YM |
946 | |
947 | * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window | |
948 | instead of WindowRef in argument type. | |
949 | (create_apple_event_from_event_ref, create_apple_event_from_drag_ref) | |
950 | [TARGET_API_MAC_CARBON]: Remove externs. | |
951 | (create_apple_event, mac_event_parameters_to_lisp) | |
952 | [TARGET_API_MAC_CARBON]: Add externs. | |
953 | ||
d8d30dff | 954 | * mactoolbox.c (Vmac_ts_script_language_on_focus) |
81fe843b YM |
955 | (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs. |
956 | (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part | |
957 | is clicked. | |
958 | (x_activate_menubar): Remove extern for saved_menu_event_location. | |
959 | (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: | |
960 | Move from mac.c. | |
961 | ||
9ea37b9d | 962 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
a1b41389 YM |
963 | |
964 | * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc) | |
965 | [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex. | |
966 | ||
9ea37b9d | 967 | 2008-04-23 Jason Rumney <jasonr@gnu.org> |
bd735631 JR |
968 | |
969 | * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get | |
970 | attributes only for local files. | |
971 | ||
972 | * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes | |
e9184ccb | 973 | default to Qlocal. |
bd735631 | 974 | |
88970542 JL |
975 | 2008-04-22 Juri Linkov <juri@jurta.org> |
976 | ||
977 | * buffer.c (Fswitch_to_buffer): Change interactive spec to call | |
978 | read-buffer-to-switch instead of using the letter "B". | |
979 | ||
92ec67e3 SM |
980 | 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca> |
981 | ||
982 | * fileio.c (Qdefault_directory): New variable. | |
983 | (Fread_file_name): Use it to pass `dir' to the completion functions. | |
984 | ||
a32b2382 CY |
985 | 2008-04-20 Chong Yidong <cyd@stupidchicken.com> |
986 | ||
2a2e8de7 | 987 | * xdisp.c (pos_visible_p): Check if iterator stops on a display string. |
a32b2382 | 988 | |
6c8b4f07 SM |
989 | 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca> |
990 | ||
ece5f847 SM |
991 | * keyboard.c (Vpre_help_message): Remove. |
992 | (show_help_echo): Remove default C code. | |
993 | ||
6c8b4f07 SM |
994 | * dired.c (directory_files_internal, file_name_completion): |
995 | Only call ENCODE_FILE if the string is indeed decoded. | |
996 | ||
73d798d5 SM |
997 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
998 | ||
999 | * Makefile.in (TOOLKIT_DEFINES): Remove. | |
1000 | (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff. | |
1001 | ||
d8d30dff | 1002 | 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9e13f0c3 YM |
1003 | |
1004 | * Makefile.in (MAC_OBJ): Add mactoolbox.o. | |
1005 | (mactoolbox.o): New target. | |
1006 | ||
1007 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): | |
1008 | Use mac_run_loop_run_once instead of CFRunLoopRunInMode. | |
1009 | ||
1010 | * macfns.c (x_set_background_color, mac_window, x_create_tip_frame): | |
1011 | Use mac_set_frame_window_background instead of XSetWindowBackground. | |
1012 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: | |
1013 | Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible. | |
1014 | (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title | |
1015 | instead of SetWindowTitleWithCFString. | |
1016 | (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT. | |
1017 | Move function to mactoolbox.c. | |
1018 | (mac_update_title_bar) [TARGET_API_MAC_CARBON]: | |
1019 | Use mac_set_window_modified instead of SetWindowModified. | |
1020 | Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon. | |
1021 | (mac_window, x_create_tip_frame): Use mac_create_frame_window. | |
1022 | (Fx_focus_frame): Use mac_front_non_floating_window instead of | |
1023 | FrontNonFloatingWindow. Use mac_activate_window instead of | |
1024 | ActivateWindow. Use mac_active_non_floating_window instead of | |
1025 | ActiveNonFloatingWindow. | |
1026 | (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]: | |
1027 | Use mac_show_hourglass and mac_hide_hourglass. | |
1028 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse | |
1029 | instead of GetGlobalMouse. | |
1030 | (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window | |
1031 | instead of MoveWindow/SizeWindow/ShowWindow, respectively. | |
1032 | Use mac_bring_window_to_front instead of BringToFront. | |
1033 | (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to | |
1034 | mactoolbox.c. | |
1035 | (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to | |
1036 | mac_file_dialog in mactoolbox.c. Use mac_file_dialog. | |
1037 | (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to | |
1038 | mactoolbox.c. | |
1039 | ||
1040 | * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h. | |
1041 | (XtPointer): Move typedef from macmenu.c. | |
1042 | (enum button_type): Move enum from macmenu.c. | |
1043 | (widget_value): Move typedef from macmenu.c. | |
1044 | (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID) | |
1045 | (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) | |
1046 | (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) | |
1047 | (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) | |
1048 | (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) | |
1049 | (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) | |
1050 | (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) | |
1051 | (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c. | |
1052 | (Selection): Move typedef from macselect.c. | |
1053 | (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from | |
1054 | macterm.c. | |
1055 | (mac_set_window_title, mac_set_window_modified, mac_is_window_visible) | |
1056 | (mac_is_window_collapsed, mac_bring_window_to_front) | |
1057 | (mac_send_window_behind, mac_hide_window, mac_show_window) | |
1058 | (mac_collapse_window, mac_front_non_floating_window) | |
1059 | (mac_active_non_floating_window, mac_activate_window) | |
1060 | (mac_move_window_structure, mac_move_window, mac_size_window) | |
1061 | (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines. | |
1062 | ||
1063 | * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c. | |
1064 | (enum mac_menu_kind): Move enum to mactoolbox.c. | |
1065 | (min_menu_id): Move variable to mactoolbox.c. | |
1066 | (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise. | |
1067 | (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c. | |
1068 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
1069 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
1070 | [TARGET_API_MAC_CARBON]: Likewise. | |
1071 | (XtPointer): Move typedef to macgui.h. | |
1072 | (enum button_type): Move enum to macgui.h. | |
d02fe47d MB |
1073 | (widget_value): Move typedef to macgui.h. |
1074 | (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) | |
1075 | (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) | |
1076 | (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) | |
1077 | (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) | |
1078 | (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) | |
1079 | (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) | |
1080 | (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h. | |
1081 | (popup_activated_flag): Make variable non-static. | |
1082 | (x_activate_menubar, install_menu_quit_handler, pop_down_menu) | |
1083 | (add_menu_item, fill_menu, dispose_menus): | |
1084 | Move functions to mactoolbox.c. | |
1085 | (restore_show_help_function, menu_target_item_handler) | |
1086 | (install_menu_target_item_handler, mac_handle_dialog_event) | |
1087 | (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog) | |
1088 | [TARGET_API_MAC_CARBON]: Likewise. | |
1089 | (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise. | |
1090 | (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. | |
1091 | (find_and_call_menu_selection, name_is_separator): Make function | |
1092 | non-static. | |
1093 | (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern | |
1094 | to mactoolbox.c. | |
1095 | (set_frame_menubar): Don't call install_menu_quit_handler. | |
1096 | (menu_item_selection): New variable. | |
1097 | (mac_menu_show): Use create_and_show_popup_menu. | |
1098 | (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return | |
1099 | selection but set variable menu_item_selection. All uses changed. | |
1100 | (mac_fill_menubar): Rename from fill_menubar. All uses changed. | |
1101 | Call install_menu_quit_handler. Move to mactoolbox.c. | |
edd3ff1d | 1102 | |
d02fe47d MB |
1103 | * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h. |
1104 | (Selection): Move typedef to macgui.h. | |
1105 | (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype) | |
1106 | (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id): | |
1107 | Make variables non-static. | |
1108 | (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise. | |
1109 | (mac_handle_apple_event, cleanup_all_suspended_apple_events): | |
1110 | Make functions non-static. | |
1111 | (Vmac_service_selection) [MAC_OSX]: Likewise. | |
1112 | (mac_get_selection_from_symbol, get_flavor_type_from_symbol) | |
1113 | (mac_valid_selection_target_p, mac_clear_selection) | |
1114 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) | |
1115 | (mac_put_selection_value, mac_selection_has_target_p) | |
1116 | (mac_get_selection_value, mac_get_selection_target_list) | |
1117 | (init_apple_event_handler, install_drag_handler, remove_drag_handler): | |
1118 | Move functions to mactoolbox.c. | |
1119 | (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]: | |
1120 | Likewise. | |
1121 | (copy_scrap_flavor_data, mac_handle_service_event) | |
1122 | (install_service_handler) [MAC_OSX]: Likewise. | |
1123 | (syms_of_macselect) <Vmac_dnd_known_types>: | |
1124 | Use mac_dnd_default_known_types. | |
463f55ee | 1125 | |
d02fe47d MB |
1126 | * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): |
1127 | Move to mactoolbox.c. | |
1128 | (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15. | |
1129 | (Fx_selection_owner_p): Add EXFUN. | |
1130 | (install_window_handler, remove_window_handler, XSetWindowBackground): | |
1131 | Remove externs. | |
1132 | (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise. | |
1133 | (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise. | |
1134 | (x_raise_frame, x_lower_frame, mac_alert_sound_play) | |
1135 | (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse) | |
1136 | (mac_convert_frame_point_to_global, mac_set_frame_window_background) | |
1137 | (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush) | |
1138 | (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip) | |
1139 | (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar) | |
1140 | (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar) | |
1141 | (create_and_show_popup_menu, mac_get_selection_from_symbol) | |
1142 | (mac_valid_selection_target_p, mac_clear_selection) | |
1143 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) | |
1144 | (mac_put_selection_value, mac_selection_has_target_p) | |
1145 | (mac_get_selection_value, mac_get_selection_target_list): Add externs. | |
1146 | (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass) | |
1147 | (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog) | |
1148 | (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise. | |
1149 | (mac_run_loop_run_once) [MAC_OSX]: Likewise. | |
1150 | (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. | |
1151 | (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise. | |
1152 | (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. | |
1153 | (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. | |
463f55ee | 1154 | |
d02fe47d | 1155 | * mactoolbox.c: New file. |
af253914 | 1156 | |
d8d30dff | 1157 | 2008-04-18 Jason Rumney <jasonr@gnu.org> |
af253914 | 1158 | |
d02fe47d | 1159 | * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned. |
af253914 | 1160 | |
8ee085a4 SM |
1161 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
1162 | ||
73d798d5 SM |
1163 | * character.c (Fmultibyte_char_to_unibyte): |
1164 | Return latin1 chars unchanged. | |
5556875b | 1165 | |
8ee085a4 SM |
1166 | * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only |
1167 | relocated if it points to `name'. | |
1168 | ||
5dff5999 KH |
1169 | 2008-04-17 Kenichi Handa <handa@m17n.org> |
1170 | ||
1171 | * data.c (Faset): Allow setting a multibyte character in an | |
1172 | ASCII-only unibyte string. | |
1173 | ||
1174 | * lisp.h (STRING_SET_MULTIBYTE): New macro. | |
1175 | ||
a51f4969 SM |
1176 | 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca> |
1177 | ||
1178 | * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now | |
1179 | done in config.h. | |
1180 | ||
add553ac JB |
1181 | 2008-04-16 Juanma Barranquero <lekktu@gmail.com> |
1182 | ||
1183 | * character.c (Fchar_bytes, Fchar_width, Fstring_width) | |
1184 | (Fchar_direction): Add usage in the docstring. | |
1185 | ||
8ad7b280 CY |
1186 | 2008-04-15 Chong Yidong <cyd@stupidchicken.com> |
1187 | ||
1188 | * keyboard.c (read_key_sequence): Remove always-true checks. | |
1189 | ||
e157d7ba JR |
1190 | 2008-04-14 Jason Rumney <jasonr@gnu.org> |
1191 | ||
1192 | * w32font.c (w32font_open_internal): Set max_bounds.descent in | |
1193 | compatibility struct, for better underline positioning. | |
1194 | ||
9ec3aaef | 1195 | 2008-04-13 David Hansen <david.hansen@gmx.net> |
48f7d213 MA |
1196 | |
1197 | * dbusbind.c (dbus-get-unique-name): Remove extra copying of name | |
1198 | string. | |
1199 | ||
36c08864 DN |
1200 | 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu> |
1201 | ||
1202 | * m/hp800.h (XUINT, XSET): Remove. | |
1203 | ||
f5acc071 JB |
1204 | 2008-04-12 Juanma Barranquero <lekktu@gmail.com> |
1205 | ||
1206 | * fileio.c (Fexpand_file_name): Add declaration for `p' missing in | |
1207 | previous change. | |
1208 | ||
5b5a2ea1 SM |
1209 | 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca> |
1210 | ||
1211 | * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars. | |
1212 | Relocate `nm' after calling DECODE_FILE, in case the GC was run. | |
1213 | ||
492d9fd6 SM |
1214 | 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> |
1215 | ||
1216 | * keymap.h (map_keymap_canonical): Declare. | |
1217 | * xmenu.c (single_keymap_panes): Use it. | |
1218 | ||
dd60787c GM |
1219 | 2008-04-11 Glenn Morris <rgm@gnu.org> |
1220 | ||
1221 | * eval.c (Fdefvaralias): If the alias is bound and the target is not, | |
1222 | set the target's value to that of the alias. | |
1223 | ||
c23b5410 SM |
1224 | 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> |
1225 | ||
1226 | * term.c (set_tty_color_mode): Left over typo. | |
1227 | ||
e89b536d MA |
1228 | 2008-04-10 Michael Albinus <michael.albinus@gmx.de> |
1229 | ||
1230 | * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK | |
f5acc071 | 1231 | only after check for file name handler functions. Signal, when |
e89b536d MA |
1232 | native functionality is not supported. |
1233 | (syms_of_fileio): Declare it unconditionally. | |
1234 | ||
40a339c8 JR |
1235 | 2008-04-10 Jason Rumney <jasonr@gnu.org> |
1236 | ||
31403b24 JR |
1237 | * w32menu.c (is_simple_dialog, simple_dialog_show): New functions. |
1238 | (Fx_popup_dialog): Handle simple yes/no questions as dialogs. | |
1239 | ||
40a339c8 JR |
1240 | * w32.c (logon_network_drive): Also logon to remote drives that |
1241 | are mapped to drive letters. | |
1242 | ||
96a7394f GM |
1243 | 2008-04-10 Glenn Morris <rgm@gnu.org> |
1244 | ||
1245 | * xdisp.c (truncate-partial-width-windows): Doc fix. | |
1246 | ||
34b67b0f SM |
1247 | 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca> |
1248 | ||
1249 | * fileio.c (read_file_name_cleanup, Fread_file_name_internal): | |
1250 | Move functions to minibuffer.el. | |
1251 | (syms_of_fileio): Don't declare them. | |
1252 | ||
c025fb0a SM |
1253 | 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
1254 | ||
ba5ff07b SM |
1255 | * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el. |
1256 | (syms_of_minibuf): Remove its initialization. | |
1257 | ||
c025fb0a SM |
1258 | * minibuf.c (temp_echo_area_glyphs): Remove unused function. |
1259 | ||
7a6a86ad JB |
1260 | 2008-04-09 Juanma Barranquero <lekktu@gmail.com> |
1261 | ||
1262 | * editfns.c (Ffield_string_no_properties): Fix typo in docstring. | |
1263 | ||
cf907d69 JR |
1264 | 2008-04-09 Jason Rumney <jasonr@gnu.org> |
1265 | ||
3dc94c30 JR |
1266 | * makefile.w32-in (distclean): Delete makefile too. |
1267 | (maintainer-clean): New target. | |
1268 | ||
8d28646b JR |
1269 | * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change. |
1270 | ||
cf907d69 JR |
1271 | * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs |
1272 | for new font backend and composite cases. | |
1273 | ||
ef5eb925 JD |
1274 | 2008-04-09 Jan Djärv <jan.h.d@swipnet.se> |
1275 | ||
1276 | * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT. | |
1277 | Most of the code moved to run_timers. | |
1278 | (do_pending_atimers): Call run_timers. | |
1279 | (run_timers): New function. | |
1280 | ||
cf907d69 JR |
1281 | * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers, |
1282 | run atimers. | |
ef5eb925 JD |
1283 | |
1284 | * process.c (wait_reading_process_output): The same as above. | |
1285 | ||
9b2cd403 SM |
1286 | 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
1287 | ||
32bae13c SM |
1288 | * minibuf.c (last_exact_completion): Remove variable. |
1289 | (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete) | |
1290 | (complete_and_exit_1, complete_and_exit_2) | |
1291 | (Fminibuffer_complete_and_exit, Fminibuffer_complete_word) | |
1292 | (Fdisplay_completion_list, display_completion_list_1) | |
1293 | (Fminibuffer_completion_help, Fself_insert_and_exit) | |
8d28646b JR |
1294 | (Fexit_minibuffer, Fminibuffer_message): Move functions to |
1295 | minibuffer.el. | |
32bae13c SM |
1296 | (syms_of_minibuf): Remove corresponding initializations. |
1297 | ||
5c4cc82a SM |
1298 | * keyboard.c (Qdeactivate_mark): New var. |
1299 | (command_loop_1): Use it to call `deactivate-mark'. | |
1300 | (syms_of_keyboard): Initialize it. | |
1301 | ||
9b2cd403 SM |
1302 | * xdisp.c (redisplay_internal): Reset tty's color_mode when switching |
1303 | to another frame. | |
1304 | * frame.c (do_switch_frame): Refine the top_frame/async_visible code. | |
1305 | Don't call set_tty_color_mode. | |
1306 | (store_frame_param): Reset previous_frame rather than call | |
1307 | set_tty_color_mode. | |
1308 | * term.c (set_tty_color_mode): Rewrite. | |
1309 | * dispextern.h (set_tty_color_mode): New type. | |
1310 | * termchar.h (struct tty_display_info): Add `previous_color_mode'. | |
1311 | ||
84cb7b45 SM |
1312 | 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca> |
1313 | ||
1314 | * keymap.c (access_keymap): Remove the value 2 for t_ok which was used | |
1315 | for generic chars, which do not exist any more in emacs-unicode. | |
1316 | ||
3ed051d4 MA |
1317 | 2008-04-08 Michael Albinus <michael.albinus@gmx.de> |
1318 | ||
1319 | * coding.c (detect_coding_emacs_mule) | |
1320 | (Ffind_operation_coding_system): Fix typo. | |
1321 | ||
58c3ea42 JR |
1322 | 2008-04-08 Jason Rumney <jasonr@gnu.org> |
1323 | ||
3bf8d230 JR |
1324 | * w32uniscribe.c (SNAME): Extract only symbol name. |
1325 | ||
56a70cca JR |
1326 | * w32font.h (struct w32_metric_cache): New struct. |
1327 | (w32font_info): Use it. | |
1328 | (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL) | |
1329 | (CACHE_BLOCKSIZE): New constants. | |
3ed051d4 | 1330 | |
58c3ea42 JR |
1331 | * w32font.c (Qja, Qko, Qzh): New symbols. |
1332 | (syms_of_w32font): Initialise them. | |
1333 | (font_matches_spec): Use them to filter by language. | |
1334 | (recompute_cached_metrics): Remove function. | |
1335 | (compute_metrics, clear_cached_metrics): New functions. | |
1336 | (w32font_encode_char): Use them to manage metric cache. | |
1337 | (w32font_text_extents): Cache metrics for all glyphs on demand. | |
1338 | Delay converting glyph indices to WORD until needed. | |
1339 | (w32font_open_internal): Initialize metric cache to empty. | |
1340 | (registry_to_w32_charset): Charset should always be a symbol. | |
1341 | (fill_in_logfont, list_all_matching_fonts): Family should | |
1342 | always be a symbol. | |
1343 | ||
0ce24b2d JR |
1344 | 2008-04-06 Jason Rumney <jasonr@gnu.org> |
1345 | ||
1346 | * w32uniscribe.c (uniscribe_shape): Increase items buffer size. | |
1347 | Give up if glyph indices not supported. Use uniscribe obtained | |
1348 | ABC widths for individual metrics. Map glyph clusters back to | |
1349 | characters using fClusterStart flag. Return number of glyphs | |
1350 | produced, not chars processed. | |
b7655e0c | 1351 | (uniscribe_shape): Map char at FROM to current glyph. |
0ce24b2d | 1352 | |
5bc6ddff | 1353 | 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
56613f06 | 1354 | |
fbf57abb JB |
1355 | * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]: |
1356 | Use SetMenuItemHierarchicalMenu. | |
56613f06 | 1357 | |
5bc6ddff | 1358 | 2008-04-05 Jason Rumney <jasonr@gnu.org> |
93421a1f | 1359 | |
5bc6ddff MB |
1360 | * image.c (pbm_load): Allow color values up to 65535. |
1361 | Throw an error if max_color_idx is outside the supported range. | |
1362 | Report an error when image size is invalid. | |
1363 | Read two bytes at a time when raw images have max_color_idx above 255. | |
1f816871 | 1364 | |
5bc6ddff | 1365 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> |
5ed6ba5b | 1366 | |
5bc6ddff MB |
1367 | * w32.c (readdir): If FindFirstFile/FindNextFile return in |
1368 | cFileName a file name that includes `?' characters, use the 8+3 | |
1369 | alias in cAlternateFileName instead. | |
5ed6ba5b | 1370 | |
5bc6ddff | 1371 | 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp> |
32c06229 | 1372 | |
5bc6ddff MB |
1373 | * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't |
1374 | append "CCL: Quitted" when the CCL program is quitted. | |
1375 | (setup_ccl_program): Initialize ccl->quit_silently to zero. | |
32c06229 | 1376 | |
5bc6ddff | 1377 | * ccl.h (struct ccl_program): New member quit_silently. |
32c06229 | 1378 | |
c36e15db CY |
1379 | 2008-04-05 Chong Yidong <cyd@stupidchicken.com> |
1380 | ||
9605d567 CY |
1381 | * search.c (compile_pattern_1): Treat non-nil and non-string of |
1382 | search-spaces-regexp as nil. | |
1383 | ||
c36e15db CY |
1384 | * minibuf.c (Fassoc_string): Tweak docstring. |
1385 | ||
40beb147 EZ |
1386 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> |
1387 | ||
1388 | * dired.c (Ffile_attributes): Support inode numbers wider than 32 | |
1389 | bits. Remove ugly WINDOWSNT-specific kludge introduced on | |
1390 | 2008-03-14 to force inode be positive. | |
1391 | ||
1392 | * w32.c (sys_chown, stat, fstat): Use S_* constants instead of | |
1393 | _S_* ones, since we now use our own sys/stat.h. | |
1394 | (stat, fstat): Don't mangle the inode number. | |
aa08d1ff | 1395 | (init_user_info): Don't restrict UID and GID to 0-60000 range. |
40beb147 | 1396 | |
4591d6cb SM |
1397 | 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca> |
1398 | ||
d4417eb0 SM |
1399 | * frame.h (struct frame): Give one more bit to `visible' since we use |
1400 | values larger than 1 to indicate obscured frames on ttys. | |
1401 | ||
00f7c5ed SM |
1402 | * keymap.c (Qkeymap_canonicalize): New var. |
1403 | (Fmap_keymap_internal): New fun. | |
1404 | (describe_map): Use keymap-canonicalize. | |
1405 | ||
4591d6cb SM |
1406 | * undo.c (last_boundary_buffer, last_boundary_position): New vars. |
1407 | (Fundo_boundary): Set them. | |
1408 | (syms_of_undo): Initialize them. | |
1409 | (record_point): Use them instead of last_point_position*. | |
1410 | (last_undo_buffer): Change type. | |
1411 | ||
3187540e JR |
1412 | 2008-04-04 Jason Rumney <jasonr@gnu.org> |
1413 | ||
0ce24b2d JR |
1414 | * w32font.c (w32font_text_extents): Use font's ascent and descent. |
1415 | (recompute_cached_metrics): Don't set ascent and descent per char. | |
1416 | ||
3187540e | 1417 | * w32uniscribe.c (uniscribe_check_otf): Fix last change. |
4591d6cb | 1418 | (uniscribe_check_otf): Add GC protection before consing. |
d0bfec76 | 1419 | Rearrange loop for counting features. |
3187540e | 1420 | |
f1a6b216 SM |
1421 | 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca> |
1422 | ||
1423 | * insdel.c (insert_from_buffer_1): Don't compare bytes in destination | |
1424 | buffer with byte-size of source buffer. | |
1425 | ||
1d8dcf63 CY |
1426 | 2008-04-03 Chong Yidong <cyd@stupidchicken.com> |
1427 | ||
1428 | * callint.c (Fcall_interactively): Handle temporary region even | |
1429 | when shift-select-mode is off. | |
1430 | ||
6b8aa22a JR |
1431 | 2008-04-03 Jason Rumney <jasonr@gnu.org> |
1432 | ||
1433 | * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec. | |
1434 | ||
2f3cbb32 KH |
1435 | 2008-04-03 Kenichi Handa <handa@m17n.org> |
1436 | ||
1437 | * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO. | |
1438 | (CATEGORY_MASK_UTF_16): Likewise. | |
1439 | (detect_coding_utf_16): Add heuristics to reject utf-16 for a | |
1440 | binary file. | |
1441 | (detect_coding): Add null-byte detection for a binary file. | |
1442 | (detect_coding_system): Likewise. | |
1443 | ||
43f4f91c JR |
1444 | 2008-04-03 Jason Rumney <jasonr@gnu.org> |
1445 | ||
0c1b4ae2 JR |
1446 | * w32uniscribe.c: New file. |
1447 | ||
1448 | * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c. | |
1449 | ||
1450 | * w32font.h (uniscribe_check_otf): Declare for w32font.c. | |
1451 | ||
1452 | * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot) | |
1453 | (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi) | |
1454 | (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya) | |
1455 | (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri) | |
1456 | (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic) | |
1457 | (Qphonetic): New symbols. | |
1458 | (syms_of_w32font): Initialize them. | |
1459 | (font_supported_scripts): Use them. | |
1460 | (w32font_list_family): List all charsets. | |
1461 | (w32font_text_extents, recompute_cached_metrics): Fix metric | |
1462 | calculations. | |
1463 | (w32_enumfont_pattern_entity): Make full_type a DWORD. | |
1464 | Give opentype fonts their own format. | |
1465 | (font_matches_spec): New arguments backend and logfont. | |
1466 | Handle :otf spec for uniscribe backend. | |
1467 | (add_font_entity_to_list): Match truetype fonts in uniscribe backend. | |
1468 | (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied. | |
4591d6cb | 1469 | |
0c1b4ae2 JR |
1470 | * w32fns.c (Fx_create_frame): Conditionally register uniscribe |
1471 | font backend. | |
1472 | (globals_of_w32fns): Initialize uniscribe font backend. | |
1473 | ||
fbf57abb | 1474 | * makefile.w32-in (CONFIG_H): New variable. Use it to clean up |
0c1b4ae2 JR |
1475 | dependencies. |
1476 | (w32uniscribe.$(O)): New file to build. | |
1477 | (FONT_OBJ): Include w32uniscribe.$(O). | |
1478 | (LIBS): Add uniscribe libraries. | |
1479 | ||
43f4f91c JR |
1480 | * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val. |
1481 | ||
75043a7d CY |
1482 | 2008-04-02 Chong Yidong <cyd@stupidchicken.com> |
1483 | ||
1484 | * callint.c (Vshift_select_mode): New var. | |
1485 | (Finteractive): Document new ^ spec. | |
1486 | (Fcall_interactively): Call handle-shift-selection if the ^ spec | |
1487 | is present. | |
1488 | ||
1489 | * keyboard.c (Vthis_command_keys_shift_translated): New var. | |
1490 | (command_loop_1): Avoid running the direct display versions of | |
1491 | forward-char and backward-char if shift-selection may occur. | |
75043a7d CY |
1492 | (read_key_sequence): Set Vthis_command_keys_shift_translated if |
1493 | shift-translation takes place. | |
1494 | ||
1495 | * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to | |
1496 | avoid clobbering by define-minor-mode. | |
1497 | ||
1498 | * cmds.c (Fforward_char, Fbackward_char, Fforward_line) | |
1499 | (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec. | |
1500 | ||
1501 | * syntax.c (Fforward_word): Add ^ interactive spec. | |
1502 | ||
1503 | * window.c (Fscroll_up, Fscroll_down, Fscroll_left) | |
1504 | (Fscroll_right): Add ^ interactive spec. | |
1505 | ||
b2b7f29e SM |
1506 | 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca> |
1507 | ||
a432c0a6 SM |
1508 | * xdisp.c (try_window_id): Don't forget to reset delta_bytes. |
1509 | ||
994b75e0 SM |
1510 | * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup. |
1511 | ||
b2b7f29e SM |
1512 | * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove. |
1513 | ||
e99c7806 JL |
1514 | 2008-03-31 Juri Linkov <juri@jurta.org> |
1515 | ||
1516 | * window.c (Fdisplay_buffer): Reinitialize `tem' to nil. | |
1517 | ||
1c9c1270 JD |
1518 | 2008-03-30 Jan Djärv <jan.h.d@swipnet.se> |
1519 | ||
1520 | * gtkutil.c (xg_set_geometry): Fix indentation. | |
994b75e0 | 1521 | (xg_resize_outer_widget): Remove. |
1c9c1270 JD |
1522 | (x_wm_size_hint_off): Fix indentation. |
1523 | (xg_frame_set_char_size): Call flush_and_sync after | |
1524 | gtk_window_resize. | |
1525 | (x_wm_set_size_hint): Pass NULL as geometry window to | |
1526 | gtk_window_set_geometry_hints due to Gtk+ bug nr 68668. | |
1527 | Add menu bar and tool bar height to base height. | |
1528 | (xg_update_frame_menubar, free_frame_menubar) | |
1529 | (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) | |
994b75e0 SM |
1530 | (update_frame_tool_bar, free_frame_tool_bar): |
1531 | Change xg_resize_outer_widget to xg_frame_set_char_size. | |
1c9c1270 | 1532 | |
90b3fc84 MA |
1533 | 2008-03-30 Michael Albinus <michael.albinus@gmx.de> |
1534 | ||
1535 | * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol. | |
1536 | (Fdbus_call_method): New parameter TIMEOUT. | |
1537 | (dbus-send-signal): Optimize UNGCPRO call. | |
1538 | ||
7ae6d1d1 JL |
1539 | 2008-03-29 Juri Linkov <juri@jurta.org> |
1540 | ||
1541 | * window.c (Fdisplay_buffer): Move call to | |
1542 | Vsplit_window_preferred_function out of conditions that check | |
1543 | if window is eligible for vertical splitting. | |
1544 | When Vsplit_window_preferred_function is non-nil, call it and use | |
1545 | its non-nil return value as window. Otherwise, continue doing | |
1546 | vertical splitting using Fsplit_window with arg horflag=nil. | |
1547 | (syms_of_window) <Vsplit_window_preferred_function>: Change the | |
1548 | default value from `split-window' to nil. | |
1549 | ||
f03f8f2c JL |
1550 | 2008-03-29 Juri Linkov <juri@jurta.org> |
1551 | ||
1552 | * callint.c (Fcall_interactively): Revert 2008-03-16 change | |
1553 | for interactive code letters 'b' and 'B'. | |
1554 | ||
6d557778 EZ |
1555 | 2008-03-29 Eli Zaretskii <eliz@gnu.org> |
1556 | ||
1557 | * fileio.c (Fexpand_file_name): Convert the value of $HOME to a | |
1558 | multibyte string. | |
1559 | ||
58555d81 SM |
1560 | 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca> |
1561 | ||
1562 | * keyboard.c (pending_funcalls): New var. | |
1563 | (timer_check): Run it. | |
1564 | (syms_of_keyboard): Initialize it. | |
1565 | * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions) | |
1566 | (Vdelete_terminal_functions): New vars. | |
1567 | (syms_of_terminal): Initialize them. | |
1568 | (Fdelete_terminal): Run delete-terminal-functions. | |
1569 | * xdisp.c (safe_eval): Rewrite. | |
1570 | (safe_call2): New fun. | |
1571 | * frame.c (Qdelete_frame_functions): New var. | |
1572 | (syms_of_frame): Initialize it. | |
1573 | (Fdelete_frame): Use it and use safe_call2 and pending_funcalls. | |
1574 | * lisp.h (safe_call2, pending_funcalls): Declare. | |
1575 | ||
4c92f429 AS |
1576 | 2008-03-28 Andreas Schwab <schwab@suse.de> |
1577 | ||
1578 | * indent.c (Fmove_to_column): Move declaration before statements. | |
1579 | ||
a1567c45 SM |
1580 | 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca> |
1581 | ||
2806a183 SM |
1582 | * frame.h (enum fullscreen_type): Give it a name. Move it before use. |
1583 | (struct frame): Use bit fields for boolean vars. | |
1584 | ||
eef60308 SM |
1585 | * process.c (server_accept_connection): Simplify naming. |
1586 | (emacs_get_tty_pgrp): Use SDATA. | |
1587 | ||
a1567c45 SM |
1588 | * coding.c (decode_coding_object): Fix last change. |
1589 | ||
30076589 JR |
1590 | 2008-03-27 Jason Rumney <jasonr@gnu.org> |
1591 | ||
1592 | * w32fns.c (start_hourglass): Suppress hourglass on tty frames. | |
1593 | ||
880820fe KH |
1594 | 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp> |
1595 | ||
1596 | * charset.c (Fdefine_charset_internal): Change the way of | |
1597 | registering charsets in Vcharset_order_list. | |
1598 | (syms_of_charset): Make the charset `eight-bit' supplementary. | |
1599 | ||
3cf8cdfb CY |
1600 | 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change) |
1601 | ||
1602 | * regex.c (EXTEND_BUFFER): Change order of pointer addition | |
1603 | operations, to avoid having the difference between pointers | |
1604 | overflow. | |
1605 | ||
ef6f5c0e SM |
1606 | 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> |
1607 | ||
80e3db56 SM |
1608 | * indent.c (check_display_width): New fun. |
1609 | (scan_for_column): Use it. | |
1610 | ||
c397dc7a SM |
1611 | * data.c (syms_of_data): Mark most-positive-fixnum and |
1612 | most-negative-fixnum as constants. | |
1613 | ||
bf6b4d58 SM |
1614 | * xdisp.c (redisplay_internal): Reset selected_frame earlier. |
1615 | ||
ef6f5c0e SM |
1616 | * indent.c (scan_for_column): Extract from current_column_1. |
1617 | Merge with the same code from Fmove_to_column. | |
1618 | (current_column_1, Fmove_to_column): Use it. | |
1619 | ||
72d5003d SM |
1620 | 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca> |
1621 | ||
12270607 SM |
1622 | * keymap.c (map_keymap_internal): New fun. |
1623 | (map_keymap): Use it. | |
1624 | (Fmap_keymap_internal): New fun. | |
1625 | (Fmap_keymap): Remove left-out test from before make_save_value. | |
1626 | ||
a10cca6c SM |
1627 | * keymap.c (Fmap_keymap): Use `map-keymap-sorted. |
1628 | ||
d7b10f4c SM |
1629 | * frame.c (Fmodify_frame_parameters, x_set_frame_parameters): |
1630 | Use XCAR/XCDR. | |
1631 | ||
5431bd6a SM |
1632 | * process.h (struct Lisp_Process): Remove filter_multibyte. |
1633 | * process.c (QCfilter_multibyte): Remove. | |
1634 | (setup_process_coding_systems): Don't use filter_multibyte. | |
1635 | (Fstart_process, Fmake_network_process): Don't set filter_multibyte. | |
1636 | (read_process_output): Don't adjust multibyteness to filter_multibyte. | |
1637 | (Fset_process_filter_multibyte): Change the coding-system to | |
1638 | approximate the previous behavior. | |
1639 | (Fprocess_filter_multibyte_p): Get the multibyteness straight from the | |
1640 | coding-system. | |
1641 | ||
72d5003d SM |
1642 | * coding.c (decode_coding_object): When not decoding into a buffer, |
1643 | obey the coding system's preference of (uni|multi)byte. | |
1644 | ||
438eba3c SM |
1645 | 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca> |
1646 | ||
1647 | * casefiddle.c (casify_object): Avoid pathological N^2 worst case if | |
1648 | every char is changed and has a different byte-length. | |
1649 | (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word): | |
1650 | Fix int -> EMACS_INT. | |
1651 | ||
9ec3aaef | 1652 | 2008-03-23 David Hansen <david.hansen@gmx.net> |
a8e72f4f | 1653 | |
438eba3c | 1654 | * dbusbind.c (xd_read_message): Remove extra copying of message |
a8e72f4f MA |
1655 | strings. Check for NULL `interface' or `member'. |
1656 | ||
b07103dc EZ |
1657 | 2008-03-22 Eli Zaretskii <eliz@gnu.org> |
1658 | ||
1659 | * w32.c (readdir): If FindFirstFile/FindNextFile return in | |
1660 | cFileName a file name that includes `?' characters, use the 8+3 | |
1661 | alias in cAlternateFileName instead. | |
1662 | ||
5371d722 SM |
1663 | 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca> |
1664 | ||
1665 | * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT. | |
1666 | ||
6ba7f443 SM |
1667 | 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
1668 | ||
1669 | * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT. | |
1670 | (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg, | |
1671 | work on current_buffer only instead (that was already the case | |
1672 | for some of the code anyway). | |
1673 | * buffer.h (set_point, set_point_both): Remove buffer arg, use long int. | |
1674 | (temp_set_point, temp_set_point_both): Use EMACS_INT. | |
1675 | (SET_PT, SET_PT_BOTH): Adjust. | |
1676 | * intervals.h (set_point, temp_set_point, set_point_both) | |
1677 | (temp_set_point_both): Remove redundant declarations. | |
1678 | ||
bf1c0f27 SM |
1679 | 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
1680 | ||
1681 | * fileio.c (Finsert_file_contents): | |
1682 | * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT. | |
1683 | * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right | |
1684 | when buffer != current_buffer anyway. | |
1685 | ||
acab783e AS |
1686 | 2008-03-20 Andreas Schwab <schwab@suse.de> |
1687 | ||
1688 | * callint.c (Fcall_interactively) [case 'B']: Use other-buffer | |
1689 | as default. | |
1690 | ||
d148e14d JR |
1691 | 2008-03-19 Jason Rumney <jasonr@gnu.org> |
1692 | ||
1693 | * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. | |
1694 | (syms_of_w32fns): Initialize them. | |
1695 | (HOURGLASS_ID): New constant. | |
1696 | (x_window_to_frame): Don't check hourglass_window. | |
1697 | (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer. | |
1698 | (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor. | |
1699 | (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor. | |
1700 | (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor. | |
1701 | Only change the cursor if hourglass is not active. | |
1702 | (Fx_create_frame): Initialize frame's current_cursor. | |
1703 | (hourglass_atimer): Remove. | |
1704 | (hourglass_started): New function. | |
1705 | (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. | |
1706 | (show_hourglass): Adapt to w32, changing argument to frame. | |
1707 | ||
1708 | * w32term.h (struct w32_output): Remove hourglass_window. | |
1709 | Add current_cursor. | |
1710 | ||
1711 | * eval.c (call_debugger, Fsignal): | |
1712 | * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) | |
1713 | (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) | |
1714 | (Fexecute_extended_command, cancel_hourglass_unwind): | |
1715 | * minibuf.c (read_minibuf): | |
1716 | * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM. | |
63558020 | 1717 | |
a5c54077 JB |
1718 | 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca> |
1719 | ||
1720 | * window.c (run_funs): New fun. | |
1721 | (run_window_configuration_change_hook): Use it to run the buffer-local | |
1722 | and the global part of the hook. | |
1723 | ||
1724 | * xdisp.c (format_mode_line_unwind_data): Add window argument. | |
1725 | (unwind_format_mode_line): Restore selected window. | |
1726 | (x_consider_frame_title, Fformat_mode_line): Set selected window. | |
1727 | ||
f9f3238f SM |
1728 | 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca> |
1729 | ||
253c3c82 SM |
1730 | * editfns.c (Fchar_equal): Check they are valid characters. |
1731 | ||
f9f3238f SM |
1732 | * buffer.h (Fbuffer_list): Declare (for use in callint.c). |
1733 | ||
065a118d AS |
1734 | 2008-03-17 Andreas Schwab <schwab@suse.de> |
1735 | ||
0b8be006 AS |
1736 | * regex.c (re_match_2_internal): Properly match raw 8-bit bytes |
1737 | against a charset. | |
1738 | ||
065a118d AS |
1739 | * lisp.h (Fbuffer_list): Declare. |
1740 | ||
880820fe | 1741 | 2008-03-17 Jan Djärv <jan.h.d@swipnet.se> |
d3b2a6da JD |
1742 | |
1743 | * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if | |
1744 | handlebox_widget is != 0. | |
1745 | ||
6206d6c2 JL |
1746 | 2008-03-16 Juri Linkov <juri@jurta.org> |
1747 | ||
1748 | * callint.c (Fcall_interactively): For interactive code letters | |
1749 | 'b' and 'B' put the buffer list into the list of default "future" | |
1750 | values of the minibuffer. | |
1751 | ||
f5020181 AS |
1752 | 2008-03-16 Andreas Schwab <schwab@suse.de> |
1753 | ||
a864f6d6 AS |
1754 | * keyboard.c (read_key_sequence): Fix downcasing of letters with |
1755 | modifiers. | |
1756 | ||
f5020181 AS |
1757 | * regex.c (re_match_2_internal): Correct matching of a charset |
1758 | against latin-1 characters. | |
1759 | ||
03f244e2 KH |
1760 | 2008-03-16 Kenichi Handa <handa@m17n.org> |
1761 | ||
1762 | * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY) | |
1763 | (STRING_CHAR_ADVANCE_NO_UNIFY): New macros. | |
f9f3238f SM |
1764 | (coding_alloc_by_making_gap): Fix the way to preserve data in the gap. |
1765 | (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap. | |
03f244e2 KH |
1766 | (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of |
1767 | CHAR_STRING_ADVANCE. | |
1768 | (produce_chars): Fix for the case that the source and the | |
1769 | destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY | |
1770 | instead of CHAR_STRING_ADVANCE. | |
1771 | (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of | |
1772 | STRING_CHAR_ADVANCE. | |
1773 | ||
0e2501ed AS |
1774 | 2008-03-15 Andreas Schwab <schwab@suse.de> |
1775 | ||
1776 | * regex.c (re_match_2_internal): Correct matching of eight bit | |
1777 | characters in unibyte strings. | |
1778 | ||
7723e095 MR |
1779 | 2008-03-15 Martin Rudalics <rudalics@gmx.at> |
1780 | ||
1781 | * buffer.c (overlays_in, Foverlays_in): Include empty overlays | |
1782 | at end of range when it coincides with the end of the buffer. | |
1783 | ||
f507f365 EZ |
1784 | 2008-03-14 Eli Zaretskii <eliz@gnu.org> |
1785 | ||
294f1153 EZ |
1786 | * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive. |
1787 | ||
f507f365 EZ |
1788 | * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change. |
1789 | ||
64f0809d JR |
1790 | 2008-03-14 Jason Rumney <jasonr@gnu.org> |
1791 | ||
956ae531 JR |
1792 | * editfns.c (initial_tz): New variable. |
1793 | (syms_of_editfns): Initialize it. | |
1794 | (Fset_time_zone_rule): Set it when first called. | |
1795 | Use it when TZSTRING is nil. | |
1796 | ||
64f0809d JR |
1797 | * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO) |
1798 | (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions. | |
1799 | (monitor_from_point_fn, get_monitor_info_fn): New globals. | |
1800 | (globals_of_w32fns): Initialize them. | |
1801 | (compute_tip_xy): Use them to position tooltips. | |
1802 | ||
21a4ff8e GM |
1803 | 2008-03-14 Glenn Morris <rgm@gnu.org> |
1804 | ||
1805 | * emacs.c (main): Revert previous change. | |
1806 | (standard_args): Revert -internal-script back to -scriptload, | |
1807 | and remove the long-option form. | |
1808 | ||
a09a5b5b GM |
1809 | 2008-03-13 Glenn Morris <rgm@gnu.org> |
1810 | ||
1811 | * emacs.c (main, standard_args): Rename -scriptload to -internal-script. | |
1812 | Remove option -enable-font-backend. | |
1813 | ||
1c55ebd1 SM |
1814 | 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> |
1815 | ||
1816 | * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. | |
1817 | ||
880820fe | 1818 | 2008-03-11 Jan Djärv <jan.h.d@swipnet.se> |
c523e161 JD |
1819 | |
1820 | * xterm.c (x_connection_closed): For GTK: If this is the last | |
1821 | terminal just exit without closing the display. | |
1822 | ||
7145be81 JR |
1823 | 2008-03-11 Jason Rumney <jasonr@gnu.org> |
1824 | ||
1825 | * w32font.c (w32font_full_name): Use floor to round. | |
1826 | ||
e6201af3 | 1827 | 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change) |
ce9033f8 JD |
1828 | |
1829 | * sound.c (alsa_configure): Declare vol at beginning of block. | |
1830 | ||
e6201af3 | 1831 | * fontset.c (Ffontset_info): Remove extra semicolon. |
ce9033f8 | 1832 | |
390b81fa | 1833 | 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca> |
acd37560 | 1834 | |
56388398 MB |
1835 | * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum |
1836 | size of resulting string. | |
af0ad939 | 1837 | |
390b81fa | 1838 | 2008-03-10 Jason Rumney <jasonr@gnu.org> |
acd37560 | 1839 | |
56388398 | 1840 | * dispnew.c (adjust_glyph_matrix): Initialize window_height. |
acd37560 | 1841 | |
390b81fa | 1842 | 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
acd37560 | 1843 | |
56388398 MB |
1844 | * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. |
1845 | Don't pretend as if characters with display property haven't been | |
1846 | consumed for string-replacing-string case. | |
acd37560 | 1847 | |
223ed6db KS |
1848 | 2008-03-08 Kim F. Storm <storm@cua.dk> |
1849 | ||
1850 | * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. | |
1851 | (get_next_display_element, next_element_from_string) | |
1852 | (next_element_from_ellipsis, next_element_from_buffer): Use it. | |
1853 | ||
28545f7c AS |
1854 | 2008-03-08 Andreas Schwab <schwab@suse.de> |
1855 | ||
1856 | * process.h (struct Lisp_Process): Declare bit fields as unsigned. | |
1857 | ||
c960bff8 JR |
1858 | 2008-03-06 Jason Rumney <jasonr@gnu.org> |
1859 | ||
290afd83 JB |
1860 | * w32font.c (w32_registry): Take font_type argument. Use ANSI |
1861 | when charset not specified. Only translate ANSI to unicode when | |
c960bff8 JR |
1862 | font_type is truetype. |
1863 | (w32font_coverage_ok): New function. | |
1864 | (add_font_entity_to_list): Use it to filter unsuitable fonts. | |
1865 | ||
87b8ce92 KH |
1866 | 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp> |
1867 | ||
1868 | * lread.c (Fread_char): Resolve modifiers. | |
1869 | (Fread_char_exclusive): Likewise. | |
1870 | ||
1871 | * character.c (char_resolve_modifier_mask): New function. | |
1872 | (char_string): Use char_resolve_modifier_mask. | |
1873 | (Fchar_resolve_modifiers): New function. | |
1874 | (syms_of_character): Declare Fchar_resolve_modifiers as Lisp | |
1875 | function. | |
1876 | ||
cefd56f6 JR |
1877 | 2008-03-04 Jason Rumney <jasonr@gnu.org> |
1878 | ||
1879 | * makefile.w32-in: Always include w32font.c in the build. | |
1880 | * w32font.c: Wrap in USE_FONT_BACKEND conditional. | |
1881 | ||
03bd3c1f AS |
1882 | 2008-03-04 Andreas Schwab <schwab@suse.de> |
1883 | ||
1884 | * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*. | |
1885 | (versionclean): Likewise. | |
1886 | ||
6f69e89b JB |
1887 | 2008-03-04 Juanma Barranquero <lekktu@gmail.com> |
1888 | ||
1889 | * .cvsignore: Add oo. | |
1890 | ||
f4a3cc44 AS |
1891 | 2008-03-03 Andreas Schwab <schwab@suse.de> |
1892 | ||
1893 | * coding.c (decode_coding_object): Inhibit gap shrinking while | |
1894 | decoding in place. | |
1895 | ||
73f838ad DN |
1896 | 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu> |
1897 | ||
1898 | * w32term.c: Remove unused include "gnu.h". | |
6f69e89b | 1899 | * makefile.w32-in (w32term.o): Don't depend on gnu.h. |
73f838ad DN |
1900 | |
1901 | * gnu.h: Rename to ... | |
1902 | * emacs-icon.h: ... this. | |
1903 | * xterm.c: Use emacs-icon.h instead of gnu.h. | |
1904 | * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h. | |
1905 | ||
ce9c1f06 JB |
1906 | 2008-03-03 Juanma Barranquero <lekktu@gmail.com> |
1907 | ||
1908 | * w32font.c: Include math.h. | |
1909 | ||
34fd2d28 JR |
1910 | 2008-03-03 Jason Rumney <jasonr@gnu.org> |
1911 | ||
54efdcd1 JR |
1912 | * w32font.c (recompute_cached_metrics): Change font arg to w32font_info. |
1913 | Compute options separately. | |
1914 | (w32font_open_internal): Set glyph_idx before caching metrics. | |
1915 | ||
ce9c1f06 JB |
1916 | * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1): |
1917 | Define if system headers don't. | |
1918 | (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx. | |
34fd2d28 JR |
1919 | (w32font_encode_char): Don't declare here. |
1920 | ||
1921 | * w32font.c (Quniscribe, QCformat): New symbols. | |
1922 | (syms_of_w32font): Define them. | |
1923 | (w32font_has_char): Indicate uncertainty. | |
ce9c1f06 | 1924 | (w32font_encode_char): Encode as glyph point. Make static. |
34fd2d28 | 1925 | (recompute_cached_metrics): New function. |
ce9c1f06 JB |
1926 | (w32font_open_internal): Use it. Set font to use glyph points |
1927 | initially. Set format based on type of font. | |
34fd2d28 | 1928 | (w32font_text_extents, w32font_draw): Optionally use glyph points. |
ce9c1f06 JB |
1929 | (w32_enumfont_pattern_entity): Accept backend arg. Set type based |
1930 | on it. Set format based on information available here. | |
34fd2d28 JR |
1931 | (add_font_entity_to_list): Identify backend based on opentype_only. |
1932 | ||
14daee73 AS |
1933 | 2008-03-02 Andreas Schwab <schwab@suse.de> |
1934 | ||
f907fb2e AS |
1935 | * ftfont.c (ftfont_pattern_entity): Fix aliasing violations. |
1936 | ||
ce9c1f06 JB |
1937 | * coding.c (decode_coding_big5, produce_chars): |
1938 | Fix typos in last change. | |
14daee73 | 1939 | |
c9cc6462 DN |
1940 | 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp> |
1941 | ||
1942 | * gnu.h: New icon. | |
1943 | ||
119852e7 KH |
1944 | 2008-03-02 Kenichi Handa <handa@m17n.org> |
1945 | ||
1946 | * coding.c (decode_coding_utf_8): When eol-type of CODING is | |
1947 | `dos', don't decode '\r' if that is the last in the source. | |
1948 | (decode_coding_utf_16, decode_coding_emacs_mule) | |
1949 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
1950 | (decode_coding_raw_text, decode_coding_charset): Likewise. | |
1951 | (produce_chars): Don't decode EOL here. Use EMACS_INT. | |
1952 | ||
a823468b JR |
1953 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
1954 | ||
1955 | * w32font.c (w32font_full_name): Report point size for scalable fonts. | |
1956 | ||
4ddc7e30 KS |
1957 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
1958 | ||
1959 | * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face. | |
1960 | ||
67997c79 JR |
1961 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
1962 | ||
1963 | * w32font.c (w32font_full_name): New function. | |
1964 | (w32font_open_internal): Use it. | |
1965 | ||
3f4e9c35 KS |
1966 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
1967 | ||
1968 | * dispnew.c (line_draw_cost): Fix invalid glyph check. | |
1969 | ||
f3b9e479 JR |
1970 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
1971 | ||
1972 | * font.c (font_unparse_fcname): Increase len when style is a symbol. | |
1973 | ||
880820fe | 1974 | 2008-03-01 Jan Djärv <jan.h.d@swipnet.se> |
7ee480ce JD |
1975 | |
1976 | * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call | |
1977 | xg_frame_resized when the event is for the edit widget. | |
1978 | ||
1979 | * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets. | |
1980 | ||
1981 | * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or | |
1982 | set_char_size. | |
1983 | (xg_frame_resized): Renamed from xg_resize_widgets. Remove all | |
1984 | operations on widgets here. Just set frame size if needed. | |
1985 | (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions. | |
1986 | (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing. | |
1987 | (x_wm_set_size_hint): Set size hints on the edit widget only, not | |
1988 | the whole frame. | |
1989 | (xg_create_tool_bar): Move attachement of the tool bar to | |
1990 | xg_pack_tool_bar. Do not attach the tool bar if there are no items. | |
1991 | (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED. | |
1992 | ||
6c8acaa1 JR |
1993 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
1994 | ||
1995 | * w32fns.c (w32_msg_pump): Disable debug code. | |
1996 | ||
51fb064b | 1997 | 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
03eb5fab | 1998 | |
51fb064b | 1999 | * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. |
cb681b34 | 2000 | |
60221a33 CY |
2001 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
2002 | ||
2003 | * xdisp.c (next_overlay_string): Don't set | |
2004 | overlay_strings_at_end_processed_p if we're currently reading from | |
2005 | a display string. | |
2006 | ||
10cbc34f SM |
2007 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> |
2008 | ||
2009 | * xdisp.c (get_overlay_strings_1): Fix typo. | |
2010 | ||
73c0054e CY |
2011 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
2012 | ||
2013 | * xdisp.c (get_overlay_strings_1): Add missing argument type. | |
2014 | ||
ec1c4354 KH |
2015 | 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp> |
2016 | ||
55082642 KH |
2017 | * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern. |
2018 | ||
ec1c4354 KH |
2019 | * xdisp.c (display_mode_element): Cancel the previous change. |
2020 | (decode_mode_spec): Likewise. | |
ee548a94 KH |
2021 | (handle_auto_composed_prop): Don't make composition if it->string |
2022 | is a string. | |
ec1c4354 | 2023 | |
b6d898a2 KS |
2024 | 2008-02-27 Kim F. Storm <storm@cua.dk> |
2025 | ||
2026 | * lisp.h (GLYPH): Change type from int to struct with separate char | |
2027 | and face_id members. | |
2028 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros. | |
2029 | (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg. | |
2030 | (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ... | |
2031 | (GLYPH_CHAR, GLYPH_FACE): ... these. Change users. | |
2032 | (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ... | |
2033 | (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead. | |
2034 | (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P) | |
2035 | (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to | |
2036 | handle new Lisp glyph code encoding, either an integer or a cons. | |
2037 | ||
2038 | * disptab.h (GLYPH_SIMPLE_P): Rewrite. | |
2039 | (GLYPH_ALIAS): Delete. | |
2040 | (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite. | |
2041 | (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR. | |
2042 | (GLYPH_FROM_CHAR): Replace macro by ... | |
2043 | (SET_GLYPH_FROM_CHAR): ... this macro. Change users. | |
2044 | ||
2045 | * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify. | |
2046 | (GLYPH_FROM_CHAR_GLYPH): Replace macro by ... | |
2047 | (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users. | |
2048 | (GLYPH_INVALID_P): New macro. | |
2049 | (spec_glyph_lookup_face): Update prototype. | |
2050 | ||
2051 | * dispnew.c (line_draw_cost): Adapt to new glyph type. | |
2052 | (build_frame_matrix_from_leaf_window): Adapt to new glyph type and | |
2053 | new glyph code encoding. | |
2054 | (spec_glyph_lookup_face): No return value; update passed glyph instead. | |
2055 | (init_display): Use SET_CHAR_GLYPH to initialize space_glyph. | |
2056 | ||
2057 | * xdisp.c (get_next_display_element, next_element_from_display_vector): | |
2058 | Adapt to new glyph type and new glyph code encoding. | |
2059 | ||
2060 | * term.c (encode_terminal_code, produce_special_glyphs): Likewise. | |
2061 | ||
2062 | * indent.c (current_column, current_column_1, Fmove_to_column) | |
2063 | (compute_motion): Adapt to new glyph code encoding. | |
2064 | ||
2065 | * msdos.c (IT_write_glyphs): Adapt to new glyph type. | |
2066 | ||
af2080a2 CY |
2067 | 2008-02-27 Chong Yidong <cyd@stupidchicken.com> |
2068 | ||
2069 | * process.c (wait_reading_process_output): Check for window | |
2070 | changes caused by timers. | |
880820fe | 2071 | Suggested by Johan Bockgård. |
af2080a2 | 2072 | |
253ed25e GM |
2073 | 2008-02-27 Glenn Morris <rgm@gnu.org> |
2074 | ||
2075 | * emacs.c (USAGE1): Add `--disable-font-backend'. | |
2076 | ||
18a9f8d9 SM |
2077 | 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca> |
2078 | ||
2079 | * fileio.c (Finsert_file_contents): Don't reset undo_list if no change | |
2080 | is made to the buffer. | |
2081 | ||
0f8b27ea SM |
2082 | 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca> |
2083 | ||
2084 | * dispextern.h (face_at_buffer_position, face_for_overlay_string) | |
2085 | (face_at_string_position): | |
2086 | * xfaces.c (face_at_buffer_position, face_for_overlay_string) | |
2087 | (face_at_string_position): | |
2088 | * xdisp.c (display_string, next_overlay_change): | |
2089 | * buffer.h (overlays_at): | |
2090 | * buffer.c (overlays_at): Use EMACS_INT for buffer positions. | |
2091 | Update callers. | |
2092 | ||
4e7c53ca CY |
2093 | 2008-02-26 Chong Yidong <cyd@stupidchicken.com> |
2094 | ||
2095 | * editfns.c (Fformat): Doc fix. | |
2096 | ||
51c01100 JB |
2097 | 2008-02-26 Juanma Barranquero <lekktu@gmail.com> |
2098 | ||
2099 | * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings. | |
2100 | (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf) | |
2101 | (Ffont_otf_alternates, Fquery_font): Doc fixes. | |
2102 | ||
13cda5f9 SM |
2103 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
2104 | ||
2105 | * buffer.c (Fbuffer_swap_text): New function. | |
2106 | (syms_of_buffer): Defsubr it. | |
2107 | ||
8018d430 CY |
2108 | 2008-02-25 Chong Yidong <cyd@stupidchicken.com> |
2109 | ||
2110 | * keyboard.c (command_loop_1): Revert 2006-10-09 change. | |
2111 | ||
9bde1a21 JR |
2112 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
2113 | ||
2114 | * w32font.c (w32font_draw): Draw one character at a time when padding. | |
2115 | ||
eeca6f6f SM |
2116 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
2117 | ||
2118 | * window.c (Fdelete_window, Fadjust_window_trailing_edge): | |
2119 | Handle a nil arg. Use run_window_configuration_change_hook. | |
2120 | (delete_window, adjust_window_trailing_edge): Don't handle nil any more. | |
2121 | (Fenlarge_window, Fshrink_window, Fset_window_configuration): | |
2122 | Use run_window_configuration_change_hook. | |
2123 | ||
ec1c4354 KH |
2124 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
2125 | ||
2126 | * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least | |
2127 | 1-pixel width. | |
2128 | ||
ae185452 KH |
2129 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
2130 | ||
2131 | * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p. | |
2132 | (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1 | |
2133 | if the glyph in the font is zero pixel with. | |
2134 | ||
2135 | * dispextern.h (struct glyph_string): New member padding_p. | |
2136 | ||
2137 | * w32font.c (w32font_draw): Pay attention to s->padding_p. | |
2138 | ||
2139 | * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p. | |
2140 | ||
2141 | * xfont.c (xfont_draw): Pay attention to s->padding_p. | |
2142 | ||
2143 | * xftfont.c (xftfont_draw): Pay attention to s->padding_p. | |
2144 | ||
eeca6f6f | 2145 | * font.c: If the font driver doesn't have `shape' function, return Qnil. |
ae185452 | 2146 | |
ffe832ea | 2147 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
c9029fe5 | 2148 | |
ffe832ea | 2149 | * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. |
16782258 | 2150 | |
06045130 SM |
2151 | 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca> |
2152 | ||
2153 | Allow fine-grained image-cache flushing. | |
2154 | * dispextern.h (struct image): Add `dependencies' field. | |
2155 | (clear_image_caches): Change arg to Lisp_Object. | |
2156 | * image.c (make_image): Initialize `dependencies' field. | |
2157 | (clear_image_cache): Change arg to allow fine-grained flushing. | |
2158 | Perform the flush even if image-cache-eviction-delay is nil. | |
2159 | (clear_image_caches): Change arg to Lisp_Object. | |
2160 | (Fclear_image_cache): Expand meaning of the argument. | |
2161 | (mark_image): Mark `dependencies' field. | |
2162 | * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches. | |
2163 | (lface_hash): Use XHASH rather than XFASTINT. | |
2164 | (face_at_buffer_position): Fix int -> EMACS_INT position. | |
2165 | * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position. | |
2166 | (select_frame_for_redisplay): Remove code duplication. | |
2167 | (redisplay_internal): Adapt arg to call to clear_image_caches. | |
2168 | ||
9d2818d6 DN |
2169 | 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu> |
2170 | ||
2171 | * s/vms4-0.h: | |
2172 | * s/vms4-2.h: | |
2173 | * s/vms4-4.h: | |
2174 | * s/vms5-5.h: Remove, unused. | |
2175 | ||
2176 | * s/irix5-2.h: | |
2177 | * s/irix6-0.h: | |
2178 | * s/riscos5.h: | |
2179 | * s/mach-bsd4-3.h: | |
2a2e8de7 | 2180 | * m/mips4.h: Remove files for obsolete systems. |
9d2818d6 DN |
2181 | |
2182 | * Makefile.in: | |
2183 | * filelock.c: | |
2184 | * unexmips.c: | |
2185 | * m/hp9000s300.h: | |
2186 | * m/iris4d.h: | |
2187 | * s/aix3-1.h: | |
2188 | * s/hpux.h: | |
2189 | * s/msdos.h: | |
2190 | * s/usg5-0.h: | |
2191 | * s/usg5-2-2.h: | |
2192 | * s/usg5-2.h: | |
2193 | * s/usg5-3.h: Remove references to obsolete variables. | |
2194 | ||
2195 | * s/irix5-0.h: Remove, move all the contents ... | |
2196 | * s/irix6-5.h: ... here. Simplify. | |
2197 | * config.in: Regenerate. | |
2198 | ||
2a36efcf JR |
2199 | 2008-02-24 Jason Rumney <jasonr@gnu.org> |
2200 | ||
c5ad7a3d | 2201 | * w32term.c (x_draw_glyph_string_background): Clear the background |
2face669 JR |
2202 | manually when cleartype is in use. |
2203 | (x_draw_glyph_string_foreground): Draw text transparently when | |
2204 | cleartype is in use. | |
2205 | ||
2a36efcf JR |
2206 | * w32font.c (w32font_text_extents): Avoid getting HDC and selecting |
2207 | a font into it unless we have to. | |
2208 | ||
b03f96dc | 2209 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
92a8ce63 | 2210 | |
b03f96dc MB |
2211 | * intervals.h (INT_LISPLIKE): Remove. It may misfire. |
2212 | (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it. | |
92a8ce63 | 2213 | |
b03f96dc | 2214 | 2008-02-18 Jason Rumney <jasonr@gnu.org> |
92a8ce63 | 2215 | |
b03f96dc | 2216 | * w32fns.c (Fw32_shell_execute): Encode parameters. |
92a8ce63 | 2217 | |
b03f96dc | 2218 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
20f1ef2e | 2219 | |
b03f96dc | 2220 | * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix. |
32d0a9dc | 2221 | |
b03f96dc | 2222 | 2008-02-05 Juanma Barranquero <lekktu@gmail.com> |
20f1ef2e | 2223 | |
b03f96dc | 2224 | * unexhp9k800.c (read_header): Replace `legal' with `valid'. |
77d1daf2 | 2225 | |
d5958163 CY |
2226 | 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) |
2227 | ||
2228 | * xterm.c (x_set_offset): Don't change the gravity if | |
2229 | CHANGE_GRAVITY is -1. | |
2230 | ||
9997701e CY |
2231 | 2008-02-23 Chong Yidong <cyd@stupidchicken.com> |
2232 | ||
2233 | * fileio.c (auto_save_error_occurred): New var. | |
2234 | (auto_save_error): Set it. | |
2235 | (Fdo_auto_save): Don't overwrite the error message if an auto-save | |
2236 | error occurred. | |
2237 | ||
9d95a291 EZ |
2238 | 2008-02-23 Eli Zaretskii <eliz@gnu.org> |
2239 | ||
2240 | * w32.c (globals_of_w32): Add initializations for | |
2241 | g_b_init_get_sid_sub_authority and | |
2242 | g_b_init_get_sid_sub_authority_count. | |
2243 | ||
43d1af23 SM |
2244 | 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca> |
2245 | ||
43a1d19b SM |
2246 | * font.c (font_match_xlfd, font_check_xlfd_parse): New funs. |
2247 | (font_parse_xlfd): Use them for sanity check. | |
608c3307 | 2248 | (Finternal_set_font_style_table): Make sure the table is bijective. |
43a1d19b | 2249 | |
354884c4 SM |
2250 | Consolidate the image_cache to the terminal struct. |
2251 | * termhooks.h (P_): Remove redundant def. | |
2252 | (struct terminal): New field `image_cache'. | |
2253 | * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place | |
2254 | of FRAME_X_IMAGE_CACHE. | |
2255 | * xterm.h (struct x_display_info): Remove image_cache field. | |
2256 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
2257 | * w32term.h (struct w32_display_info): Remove image_cache field. | |
2258 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
2259 | * macterm.h (struct mac_display_info): Remove image_cache field. | |
2260 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
2261 | * xterm.c (x_term_init): | |
2262 | * w32term.c (w32_term_init): | |
2263 | * macterm.c (mac_term_init): Set the image_cache in the terminal. | |
2264 | * dispextern.h (clear_image_cache, forall_images_in_image_cache): | |
2265 | Remove declarations. | |
2266 | (clear_image_caches, mark_image_cache): New declarations. | |
2267 | * xfaces.c (clear_face_cache): | |
2268 | * xdisp.c (redisplay_internal): Use clear_image_caches. | |
2269 | * image.c (clear_image_cache): Don't check that a frame is on | |
2270 | a window-system before checking if it shares the same cache. | |
2271 | (clear_image_caches): New function. | |
2272 | (Fclear_image_cache): Use it. | |
2273 | (mark_image): Move from allo.c. | |
2274 | (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. | |
2275 | * alloc.c (mark_image, mark_image_cache): Move to image.c. | |
2276 | (mark_object): Don't call mark_image_cache for frames. | |
2277 | (mark_terminals): Call mark_image_cache. | |
2278 | ||
c2e42690 SM |
2279 | * lisp.h (Fdelete_terminal): Declare. |
2280 | ||
43d1af23 SM |
2281 | * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID) |
2282 | (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of | |
2283 | wrong_type_argument. | |
2284 | ||
cc8d1311 KH |
2285 | 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp> |
2286 | ||
2287 | * Makefile.in (lisp): Remove devanagari.el, kannada.el, | |
4a4bdfc7 | 2288 | malayalam.el, and tamil.el. Add sinhala.el. |
cc8d1311 | 2289 | |
6bd92640 SM |
2290 | 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca> |
2291 | ||
2292 | * xterm.c (x_connection_closed): Consolidate identical tests. | |
2293 | (x_delete_terminal): Don't crash if called via x_connection_closed. | |
2294 | ||
a73b5627 KH |
2295 | 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp> |
2296 | ||
2297 | * xdisp.c (decode_mode_spec): New arg string. | |
6bd92640 | 2298 | (display_mode_element): Adjust for the above change. |
a73b5627 | 2299 | |
1b511542 SM |
2300 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
2301 | ||
2302 | * callint.c (Fcall_interactively): Use AREF. | |
2303 | ||
81aefea4 SM |
2304 | 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca> |
2305 | ||
2306 | * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs. | |
2307 | ||
880820fe | 2308 | 2008-02-18 Jan Djärv <jan.h.d@swipnet.se> |
2d7117fe JD |
2309 | |
2310 | * xfns.c (Fx_show_tip): Set string to " " if empty. | |
2311 | ||
a2b84f35 DN |
2312 | 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu> |
2313 | ||
2314 | * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive | |
2315 | with Qt. | |
2316 | ||
43c0454d KH |
2317 | 2008-02-17 Kenichi Handa <handa@m17n.org> |
2318 | ||
2319 | * ftfont.c (ftfont_shape): Return Lispy number. | |
2320 | ||
2321 | * xfaces.c (prepare_face_for_display): Use display_info->font->fid | |
2322 | for GCs. | |
2323 | (Finternal_set_font_selection_order): Call font_update_sort_order | |
2324 | only when enable_font_backend is set. | |
2325 | (realize_x_face): Set face->font_info to that of default face only | |
2326 | when enable_font_backend is set. | |
2327 | ||
2328 | * xdisp.c (handle_composition_prop): Set it->c to the fist | |
2329 | characte of the composed region. | |
2330 | (fill_composite_glyph_string): Set base_face->font_info to | |
2331 | s->font_info. Get a face for ascii from base_face->ascii_face. | |
2332 | (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string | |
2333 | with a face already decided. | |
2334 | (x_produce_glyphs): Be sure to set it->ascent and it->descent to | |
2335 | non-negative. | |
978bef9a JB |
2336 | (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING, |
2337 | call font_prepare_composition unconditionally. | |
43c0454d | 2338 | |
978bef9a | 2339 | * xfns.c (x_make_gc): Use the default font id of the frame for GCs. |
43c0454d KH |
2340 | |
2341 | * xterm.h (struct x_display_info): New member font. | |
2342 | ||
2343 | * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs. | |
2344 | (x_set_mouse_face_gc, x_new_font): Likewise. | |
2345 | (x_term_init): Setup display_info->font. | |
2346 | (x_delete_terminal): Free display_info->font. | |
2347 | ||
2348 | * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT. | |
2349 | ||
2350 | * ftxfont.c (ftxfont_default_fid): Delete it. | |
2351 | (ftxfont_open): Set xfont->fid to 0. | |
978bef9a | 2352 | (ftxfont_end_for_frame): Clear data specific to the frame and the |
43c0454d KH |
2353 | font-driver. |
2354 | ||
2355 | * xftfont.c (xftfont_default_fid): Delete it. | |
2356 | (xftfont_open): Set xfont->fid to 0. | |
2357 | ||
2358 | * fontset.c (FONTSET_OBJLIST): New macro. | |
2359 | (fontset_find_font): Update font-object list of the fontset. | |
2360 | (free_realized_fontset): New function. | |
2361 | (free_face_fontset): Call free_realized_fontset. | |
2362 | (Ffont_info): Call font_close_object only when enable_font_backend | |
2363 | is set. | |
2364 | ||
2365 | * font.c [HAVE_X_WINDOWS]: Include xterm.h. | |
2366 | [HAVE_NTGUI]: Include w32term.h. | |
2367 | [MAC_OS]: Include macterm.ch. | |
2368 | (font_otf_ValueRecord): Use make_number. | |
2369 | (font_finish_cache): Fix handling of reference count. | |
2370 | (font_clear_cache): Update num_fonts. | |
2371 | (font_open_entity): Update smallest_char_width and | |
2372 | smallest_font_height of the frame. | |
2373 | (font_close_object): Update num_fonts. | |
2374 | (Fclear_font_cache): Fix finding the target cache data. | |
2375 | ||
be617367 GM |
2376 | 2008-02-16 Glenn Morris <rgm@gnu.org> |
2377 | ||
2378 | * fontset.c (Finternal_char_font): Fix compilation warning. | |
2379 | ||
2930d117 EZ |
2380 | 2008-02-16 Eli Zaretskii <eliz@gnu.org> |
2381 | ||
634d3003 EZ |
2382 | * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP |
2383 | instead of char arrays. Enlarge the size of array passed to | |
2384 | get_token_information. | |
2385 | ||
2930d117 EZ |
2386 | * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation |
2387 | warnings. | |
2388 | ||
79214046 DN |
2389 | 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu> |
2390 | ||
2391 | * .gdbinit: Don't set `args', it breaks gdb --args. | |
2392 | ||
7f5d2c72 SM |
2393 | 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca> |
2394 | ||
2395 | * fileio.c (Finsert_file_contents): Adjust offsets when replacing | |
2396 | within a narrowed buffer. | |
2397 | ||
6edacc43 KH |
2398 | 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp> |
2399 | ||
b270d6af JB |
2400 | * coding.c (decode_coding_object, encode_coding_object): |
2401 | Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer. | |
6edacc43 | 2402 | |
174105f7 SM |
2403 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
2404 | ||
b270d6af JB |
2405 | * coding.c (coding_set_destination): Use BEG_BYTE rather than |
2406 | hardcoding 1. | |
13818c30 SM |
2407 | (detect_coding_system): |
2408 | * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text) | |
2409 | (string_char_to_byte, string_byte_to_char, insert_from_gap): | |
2410 | * insdel.c (insert_from_gap): | |
2411 | * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos) | |
2412 | (string_char_to_byte, string_byte_to_char, string_make_multibyte) | |
2413 | (string_to_multibyte): | |
2414 | * character.c (chars_in_text, multibyte_chars_in_text): | |
2415 | * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions. | |
2416 | ||
f1c99628 SM |
2417 | * character.h (FETCH_STRING_CHAR_ADVANCE) |
2418 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE) | |
2419 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF. | |
2420 | (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1. | |
2421 | ||
7927d8e3 SM |
2422 | * casefiddle.c (casify_region): Only call after-change and composition |
2423 | functions on the part of the region that was changed. | |
2424 | ||
adf6a429 | 2425 | * keyboard.c (read_avail_input): |
174105f7 SM |
2426 | * frame.c (Fdelete_frame): Call Fdelete_terminal. |
2427 | ||
3ee24aec SM |
2428 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
2429 | ||
2430 | * buffer.c (clone_per_buffer_values, reset_buffer_local_variables) | |
2431 | (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list. | |
2432 | ||
4ed4b975 JB |
2433 | 2008-02-11 Juanma Barranquero <lekktu@gmail.com> |
2434 | ||
2435 | * w32menu.c (push_submenu_start, push_submenu_end) | |
2436 | (push_left_right_boundary, push_menu_pane, push_menu_item): | |
2437 | * keyboard.c (read_key_sequence): Don't pass args with side effects | |
2438 | to AREF, it fails when compiling with -DENABLE_CHECKING. | |
2439 | ||
79e3bfb8 KH |
2440 | 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp> |
2441 | ||
4ed4b975 JB |
2442 | * Makefile.in (${lispsource}international/charprop.el): |
2443 | Delete this target. | |
6e76043f | 2444 | |
79e3bfb8 KH |
2445 | * search.c (boyer_moore): Fix incorrect synching of the trunk and |
2446 | emacs-unicode-2. | |
2447 | ||
5b8de9c5 SM |
2448 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
2449 | ||
2450 | * terminal.c (Fdelete_terminal): Clean up the `force' path. | |
2451 | ||
eac1939a SM |
2452 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
2453 | ||
c53956fe SM |
2454 | * frame.c (Qnoelisp): New symbol. |
2455 | (syms_of_frame): Initialize it. | |
2456 | (Fdelete_frame): Use it to distinguish a mere `force' passed from | |
2457 | someharmles Elisp code, from a strong `force' from x_connection_closed. | |
2458 | * frame.h (Qnoelisp): Declare. | |
2459 | * xterm.c (x_connection_closed): Pass `noelisp'. | |
2460 | ||
eac1939a SM |
2461 | * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker) |
2462 | (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd) | |
2463 | (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type | |
2464 | rather than `int' for the type of `type'. | |
2465 | ||
13f6772b DN |
2466 | 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu> |
2467 | ||
2468 | * s/gnu-linux.h: Remove support for non-ELF and linux-1.x. | |
2469 | ||
2470 | * Makefile.in (GNUC): Remove support for gcc-1.x. | |
2471 | ||
e8455367 RS |
2472 | 2008-02-10 Richard Stallman <rms@gnu.org> |
2473 | ||
2474 | * lisp.h (ASET): Use AREF, not ASLOT. | |
2475 | ||
4b75ffab SM |
2476 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
2477 | ||
2478 | * lisp.h (ASET): Check bounds. | |
2479 | ||
d224e8c2 GM |
2480 | 2008-02-10 Glenn Morris <rgm@gnu.org> |
2481 | ||
2482 | * buffer.c (mode-name): Doc fix. | |
2483 | ||
4624371d DN |
2484 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
2485 | ||
290afd83 JB |
2486 | * Makefile.in: |
2487 | * emacs.c: | |
2488 | * gmalloc.c: | |
2489 | * keyboard.c: | |
2490 | * lisp.h: | |
2491 | * m/ibm370aix.h: | |
2492 | * process.c: | |
2493 | * regex.c: | |
2494 | * s/hpux.h: | |
2495 | * sysdep.c: | |
2496 | * sysselect.h: | |
2497 | * systty.h: | |
2498 | * unexec.c: | |
2499 | * w32term.c: | |
2500 | * xsmfns.c: | |
2501 | * xterm.c: Remove code that deals with obsolete variables. | |
4624371d DN |
2502 | |
2503 | * s/msdos.h (DONT_NEED_ENVIRON): Don't define. | |
2504 | ||
2505 | * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, | |
2506 | nothing else needs it anymore. | |
2507 | ||
274ec34b EZ |
2508 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
2509 | ||
2510 | * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table | |
2511 | instead of unibyte_char_to_multibyte. | |
2512 | ||
deeaffe1 DN |
2513 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
2514 | ||
2515 | * s/gnu-linux.h: Remove commented out code. | |
2516 | ||
4ed4b975 | 2517 | * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. |
deeaffe1 DN |
2518 | |
2519 | * Makefile.in: Update what RMS says about using autoconf. | |
4ed4b975 | 2520 | (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable. |
deeaffe1 DN |
2521 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1): |
2522 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) | |
2523 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. | |
2524 | ||
68b587a6 SM |
2525 | 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> |
2526 | ||
9141ca5e SM |
2527 | * keymap.c (Fkey_description): Move side effect outside of macro call. |
2528 | ||
dfae5f9a | 2529 | * xfaces.c (Finternal_make_lisp_face): |
b1ebcadb SM |
2530 | * keyboard.c (add_command_key, parse_menu_item): Use ASET. |
2531 | ||
ff7a2223 SM |
2532 | * fontset.c (free_face_fontset): Use FONTSET_FROM_ID. |
2533 | (syms_of_fontset): Use ASET. | |
2534 | ||
68b587a6 SM |
2535 | * fns.c (concat): Move side effect outside of macro call. |
2536 | (hash_clear): Use ASET. | |
2537 | ||
a31787b1 RS |
2538 | 2008-02-08 Richard Stallman <rms@gnu.org> |
2539 | ||
2540 | * frame.c (Fdelete_frame): If FORCE, don't call hooks. | |
2541 | If FORCE, and frame has a surrogate minibuffer for another frame, | |
2542 | delete the other frame first. | |
2543 | ||
987be29b | 2544 | 2008-02-07 Timo Savola <timo.savola@iki.fi> |
1540a61a JD |
2545 | |
2546 | * xterm.c (x_detect_focus_change): Handle embed client message. | |
2547 | (handle_one_xevent): Ditto. | |
2548 | (handle_one_xevent): If embedded and we get a button press/release, | |
2549 | request focus. | |
2550 | (xembed_set_info, xembed_send_message): New functions. | |
2551 | (x_make_frame_visible): Call xembed_set_info if embedded. | |
2552 | (x_make_frame_invisible): Call xembed_set_info if embedded. | |
2553 | (x_term_init): Initialize Xatom_XEMBED. | |
2554 | (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also. | |
2555 | (x_iconify_frame): Ditto. | |
2556 | ||
2557 | * xterm.h (struct x_display_info): Add AtomXatom_XEMBED. | |
2558 | (enum xembed_info, enum xerm srmbed_message, enum xembed_focus) | |
2559 | (enum xembed_modifier, enum xembed_accelerator): New. | |
2560 | (xembed_set_info, xembed_send_message): Declare. | |
2561 | (FRAME_X_EMBEDDED_P): New. | |
2562 | ||
2563 | * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call | |
2564 | gtk_plug_new. | |
2565 | ||
2566 | * xfns.c (Fx_create_frame): Do not override the explicitly set parent | |
2567 | window ID of a frame. | |
2568 | (x_window): Reparent frame if embedded. | |
2569 | (Fx_create_frame): Don't set border width if embedded. | |
2570 | ||
2571 | * emacs.c (USAGE3): Add --parent-id | |
2572 | (standard_args): Ditto. | |
2573 | ||
880820fe | 2574 | 2008-02-07 Jan Djärv <jan.h.d@swipnet.se> |
f937a7db JD |
2575 | |
2576 | * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". | |
2577 | ||
92413ef3 JD |
2578 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
2579 | ||
6f69e89b | 2580 | Use "do...while (0)", not "if (1)...else" in macro definitions. |
987be29b RF |
2581 | The latter provokes a warning from gcc about the empty else, when |
2582 | followed by ";". Also, without that trailing semicolon, it would | |
2583 | silently swallow up any following statement. | |
2584 | * syntax.h (SETUP_SYNTAX_TABLE): | |
2585 | (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise. | |
2586 | * buffer.h (DECODE_POSITION): Likewise. | |
2587 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. | |
2588 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise. | |
2589 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise. | |
2590 | (FETCH_CHAR_ADVANCE): Likewise. | |
2591 | (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise. | |
92413ef3 | 2592 | |
03fa5713 GM |
2593 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
2594 | ||
2595 | * lread.c [lint]: Don't include <sys/inode.h>. | |
2596 | ||
3ae565b3 SM |
2597 | 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca> |
2598 | ||
2599 | * xselect.c (x_handle_dnd_message): | |
2600 | * xmenu.c (digest_single_submenu, xmenu_show): | |
2601 | * xdisp.c (with_echo_area_buffer_unwind_data) | |
2602 | (format_mode_line_unwind_data, unwind_format_mode_line) | |
2603 | (display_menu_bar): | |
2604 | * eval.c (Ffetch_bytecode): | |
2605 | * doc.c (store_function_docstring): | |
2606 | * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code) | |
2607 | (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map): | |
2608 | * buffer.c (add_overlay_mod_hooklist): Use ASET. | |
2609 | ||
146b6e55 KH |
2610 | 2008-02-07 Kenichi Handa <handa@m17n.org> |
2611 | ||
2612 | * ftxfont.c (ftxfont_open): Don't set | |
2613 | dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. | |
2614 | ||
2615 | * ftfont.c (ftfont_open): Fix previous change. | |
2616 | ||
46a923ac JR |
2617 | 2008-02-06 Jason Rumney <jasonr@gnu.org> |
2618 | ||
2619 | * w32font.c (w32font_text_extents): Fill in lbearing metric. | |
2620 | Use cached metrics for ASCII characters. | |
3ae565b3 SM |
2621 | (w32font_open_internal): Don't set font's owning_frame. |
2622 | Cache metrics for ASCII characters. | |
46a923ac JR |
2623 | |
2624 | * w32font.h (struct w32font_info): Add ascii_metrics. | |
2625 | Remove owning_frame. | |
2626 | ||
da7d7c21 KH |
2627 | 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp> |
2628 | ||
2629 | * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent | |
2630 | to negative value. | |
2631 | ||
2632 | * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info. | |
2633 | ||
3ae565b3 | 2634 | * ftfont.c (ftfont_open): Fix calculation of font->font.average_width. |
da7d7c21 KH |
2635 | |
2636 | * charset.c (syms_of_charset): Set QCtest and Qeq. | |
2637 | ||
c62c8ddb SM |
2638 | 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> |
2639 | ||
ca319910 SM |
2640 | * process.c (Fstart_process): |
2641 | * callproc.c (Fcall_process): Handle the case where | |
2642 | Funhandled_file_name_directory returns nil. | |
2643 | ||
76860cbb SM |
2644 | * font.h (enum lgstring_indices, enum lglyph_indices): New enums. |
2645 | (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros. | |
f9ffa1ea SM |
2646 | * font.c (check_gstring): Use them and AREF to access the vector before |
2647 | we know it's really a gstring. | |
2648 | (Ffont_shape_text): Fix typo. | |
2649 | (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups. | |
76860cbb | 2650 | |
15139d67 SM |
2651 | * composite.h (Fcompose_region_internal, Fcompose_string_internal): |
2652 | Declare. | |
2653 | ||
c62c8ddb SM |
2654 | * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement. |
2655 | ||
04b65d2b JR |
2656 | 2008-02-05 Jason Rumney <jasonr@gnu.org> |
2657 | ||
2658 | * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth. | |
2659 | Set smallest_font_height and smallest_char_width in display info. | |
2660 | ||
fccaebfd KH |
2661 | 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp> |
2662 | ||
2663 | * coding.c (decode_eol): Pay attention to coding->dst_multibyte. | |
2664 | ||
e7d7fd8c MB |
2665 | 2008-02-05 Miles Bader <miles@gnu.org> |
2666 | ||
2667 | * xfaces.c (get_lface_attributes, merge_named_face) | |
2668 | (lookup_named_face, lookup_derived_face, realize_named_face): | |
2669 | Revert 2008-02-01 change by cyd@stupidchicken.com. | |
2670 | ||
3d4448a8 KH |
2671 | 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp> |
2672 | ||
2673 | * fontset.c (Ffontset_info): Handle the case of inhibitting the | |
2674 | fallback fonts. | |
15139d67 | 2675 | (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names. |
3d4448a8 | 2676 | |
5ace1ec1 JR |
2677 | 2008-02-04 Jason Rumney <jasonr@gnu.org> |
2678 | ||
2679 | * w32font.c (w32font_open_internal): Use font_unparse_fcname to | |
2680 | set full_name. | |
e3a77b22 | 2681 | (w32font_open_internal): Use xmalloc, xrealloc, xfree. |
5ace1ec1 | 2682 | |
ffe42183 JR |
2683 | 2008-02-03 Jason Rumney <jasonr@gnu.org> |
2684 | ||
2685 | * makefile.w32-in (OBJ1): Include font.o here. | |
2686 | (FONTOBJ) [USE_FONTBACKEND]: Instead of here. | |
2687 | ||
526dc3b3 JR |
2688 | 2008-02-02 Jason Rumney <jasonr@gnu.org> |
2689 | ||
a0fece35 | 2690 | * makefile.w32-in (temacs): Bump EMHEAP to 21. |
526dc3b3 | 2691 | |
af805c82 JR |
2692 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
2693 | ||
2694 | * s/cygwin.h: Define VIRT_ADDR_VARIES. | |
2695 | ||
2696 | * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition. | |
2697 | ||
7f6519c5 AS |
2698 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
2699 | ||
1f45f627 | 2700 | * Makefile.in (shortlisp, lisp): Update for rename of |
7f6519c5 | 2701 | ../lisp/language/myanmar.el. |
7f6519c5 | 2702 | |
26f8aa27 CY |
2703 | 2008-02-01 Chong Yidong <cyd@stupidchicken.com> |
2704 | ||
1f45f627 | 2705 | * xfaces.c (get_lface_attributes): Delete function. |
26f8aa27 CY |
2706 | (merge_named_face, lookup_named_face, lookup_derived_face) |
2707 | (realize_named_face): Call lface_from_face_name directly, and use | |
2708 | the fact that merge_face_vectors does not alter its FROM argument. | |
2709 | ||
73acf815 | 2710 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
2711 | |
2712 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode | |
1f45f627 | 2713 | input in the default locale. Handle non-Unicode multibyte input. |
aca7a3d2 | 2714 | |
73acf815 | 2715 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2716 | |
2717 | * fontset.c (reorder_font_vector): Exclude nil elements from the | |
2718 | font group. Don't try multiple fonts. | |
15139d67 | 2719 | (fontset_font): Adjust for the above change. |
aca7a3d2 MB |
2720 | (Finternal_char_font): Return nil if the found font doesn't |
2721 | contain the character ch. | |
2722 | ||
4c4475a8 | 2723 | * Makefile.in (lisp, shortlisp): Add cham.el. |
aca7a3d2 | 2724 | |
73acf815 | 2725 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2726 | |
2727 | * font.h (FONTP): Make it return 1 also for a font-object. | |
2728 | ||
2729 | * .gdbinit (xfontset): New function. | |
2730 | ||
2731 | * font.c (font_find_for_lface): Check if the character C is | |
2732 | supported or not only for the first font. | |
2733 | ||
2734 | * fontset.c (reorder_font_vector): Fix typo. | |
2735 | (fontset_find_font): Don't add a font-spec specifying a script. | |
2736 | Use 0 (not Qt) for the indication of empty font-group. Change the | |
2737 | format of RFONT-DEF. Return Qt if no font in the font-group | |
2738 | support the character. | |
15139d67 | 2739 | (fontset_font): Adjust for the above change. If no font was |
aca7a3d2 | 2740 | found the character, remember that. |
15139d67 | 2741 | (face_for_char): Adjust for the change of RFONT-DEF. |
aca7a3d2 MB |
2742 | (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify |
2743 | no font for the target. | |
15139d67 | 2744 | (Finternal_char_font): Adjust for the change of RFONT-DEF. |
aca7a3d2 | 2745 | |
73acf815 | 2746 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2747 | |
2748 | * font.c (font_load_for_face): Handle the case that the font in | |
2749 | face->lface is a string. | |
2750 | ||
73acf815 | 2751 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 2752 | |
1f45f627 | 2753 | * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface. |
aca7a3d2 | 2754 | |
73acf815 | 2755 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2756 | |
2757 | * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: | |
2758 | Fix previous change. If the frame is not on a window system, | |
2759 | signal an error. | |
2760 | ||
73acf815 | 2761 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 2762 | |
4c4475a8 GM |
2763 | * coding.c (decode_coding_object, encode_coding_object): Adjust |
2764 | marker positions after conversion. | |
aca7a3d2 MB |
2765 | |
2766 | * lisp.h (struct Lisp_Marker): New member need_adjustment. | |
2767 | ||
73acf815 | 2768 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2769 | |
2770 | * font.c (font_find_for_lface): Fix the handling of the return | |
2771 | value of font_has_char. | |
2772 | (Ffont_shape_text): Fix previous change. | |
2773 | ||
2774 | * fontset.c (FONTSET_REF_AND_RANGE): Delete it. | |
2775 | (fontset_ref_and_range): Delete it. | |
2776 | (fontset_find_font): Call char_table_ref_and_range instead of | |
2777 | FONTSET_REF_AND_RANGE. | |
2778 | (make_fontset): Don't setup font groups of Latin here. | |
2779 | (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII. | |
2780 | (new_fontset_from_font): Make the specified font the default for | |
2781 | all Latin characters. | |
2782 | ||
73acf815 | 2783 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2784 | |
2785 | * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame | |
2786 | is on a window system before accessing the fontset of the frame. | |
2787 | ||
73acf815 | 2788 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 2789 | |
1f45f627 | 2790 | * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el. |
aca7a3d2 MB |
2791 | |
2792 | * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only | |
2793 | when both HAVE_M17N_FLT and HAVE_LIBOTF are defined. | |
2794 | ||
2795 | * font.c (Ffont_shape_text): If the font driver doesn't have a | |
2796 | shaper function, make zero-width glyphs to have at least one-pixel | |
2797 | width. Fix setting of `to' field of glyphs. | |
2798 | ||
73acf815 | 2799 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2800 | |
2801 | * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of | |
2802 | glyphs. | |
2803 | ||
1f45f627 | 2804 | * font.h (struct font_driver): Improve docstring of member `shape'. |
aca7a3d2 | 2805 | |
73acf815 | 2806 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2807 | |
2808 | * composite.c (syms_of_composite): Fix docstring of | |
2809 | auto-composition-function. | |
2810 | ||
2811 | * font.h (LGLYPH_SIZE): New macro. | |
2812 | ||
2813 | * font.c (Ffont_fill_gstring): Stop filling when a character not | |
2814 | supported by the font is found. | |
2815 | (Ffont_shape_text): When a shape callback function returns nil, | |
2816 | try at most two more times with larger gstring. | |
15139d67 | 2817 | (Ffont_at): Fix getting of w. Call font_at with correct 5th argument. |
aca7a3d2 MB |
2818 | |
2819 | * xdisp.c (handle_auto_composed_prop): Change the argument to | |
2820 | auto-composition-function. | |
2821 | ||
2822 | * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
2823 | (ftfont_shape_by_flt): If an element of lgstring is nil, make a | |
2824 | Lispy glyph and store it in the lgstring. | |
2825 | ||
2826 | * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE. | |
2827 | ||
2828 | * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
2829 | ||
73acf815 | 2830 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2831 | |
2832 | * font.c (Ffont_shape_text): Avoid unnecessary composition. | |
2833 | ||
2834 | * fontset.c (Vfont_encoding_charset_alist): New variable. | |
2835 | (syms_of_fontset): DEFVAR it. | |
4c4475a8 GM |
2836 | (reorder_font_vector, fontset_find_font): Optimize for the case of |
2837 | no need of reordering. | |
aca7a3d2 MB |
2838 | (face_for_char): Map the charset property by |
2839 | Vfont_encoding_charset_alist. | |
2840 | ||
73acf815 | 2841 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
2842 | |
2843 | * w32font.c (logfonts_match): Don't check adstyle here. | |
2844 | (font_matches_spec): Check here against physical font instead. | |
2845 | (add_font_entity_to_list): Avoid some substitutions. | |
2846 | ||
2847 | * font.c (font_parse_fcname): Default weight and slant to normal. | |
2848 | (font_score): Prefer normal fonts if weight or slant unspecified. | |
2849 | (font_score) [WINDOWSNT]: Scale weight difference down to closer | |
2850 | match freetype scores. | |
2851 | ||
73acf815 | 2852 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
2853 | |
2854 | * w32font.c (w32font_text_extents): Don't use the frame stored in the | |
2855 | font, as it may have been deleted. | |
2856 | (w32_enumfont_pattern_entity): Map generic family to adstyle using | |
2857 | most common hyphenless variation. | |
2858 | (logfonts_match): Check generic family. | |
2859 | (font_matches_spec): Don't check generic family here. | |
2860 | (fill_in_logfont): Set generic family based on adstyle. | |
2861 | ||
2862 | * w32font.h (w32font_get_cache): Update declaration. | |
2863 | ||
73acf815 | 2864 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2865 | |
2866 | * ftfont.c (ftfont_get_cache): Adjust the argument type. | |
2867 | ||
15139d67 SM |
2868 | * frame.c (x_set_font_backend): Don't call Fclear_font_cache. |
2869 | If none of the new drivers are available, call font_update_drviers | |
aca7a3d2 MB |
2870 | with the old drivers. |
2871 | ||
2872 | * w32font.c (w32font_get_cache): Adjust the argument type. | |
2873 | ||
2874 | * xfont.c (xfont_get_cache): Adjust the argument type. | |
2875 | ||
2876 | * font.h (struct font_driver): Change argument type of get_cache. | |
2877 | ||
2878 | * xftfont.c (xftfont_start_for_frame): Delete prototype. | |
2879 | ||
2880 | * font.c (Ffont_get): Fix arguments to Fassoc. | |
15139d67 | 2881 | (font_prepare_cache, font_finish_cache, font_get_cache): New functions. |
aca7a3d2 | 2882 | (font_clear_cache): New function. |
4c4475a8 | 2883 | (font_list_entities, font_matching_entity): Use font_get_cache. |
15139d67 | 2884 | (font_update_drivers): Call font_clear_cache when finishing a driver. |
aca7a3d2 MB |
2885 | |
2886 | * fontset.c (fontset_find_font): Fix previous change. | |
2887 | ||
73acf815 | 2888 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2889 | |
2890 | * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access | |
2891 | dpyinfo->font_table. | |
2892 | (x_delete_display) [USE_FONT_BACKEND]: Likewise. | |
15139d67 | 2893 | (x_delete_terminal) [USE_FONT_BACKEND]: Likewise. |
aca7a3d2 MB |
2894 | |
2895 | * font.c (font_at): Handle the case that the arg C is negative. | |
2896 | Handle the unibyte case. | |
2897 | (Ffont_at): Call font_at with the arg C -1. | |
2898 | ||
2899 | * xdisp.c (handle_auto_composed_prop): Don't get a character at | |
15139d67 SM |
2900 | the position here, and call font_at with the arg C -1. |
2901 | Don't check the range of the existing composition at the point. | |
aca7a3d2 | 2902 | |
73acf815 | 2903 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 2904 | |
15139d67 | 2905 | * fontset.c (fontset_add): New args charset_id and family. |
1f45f627 | 2906 | Change caller. |
4c4475a8 GM |
2907 | (load_font_get_repertory, fontset_find_font): Assume that |
2908 | font_spec is always a font-spec object. | |
aca7a3d2 MB |
2909 | (Fset_fontset_font): Always store a font-spec object in a fontset. |
2910 | ||
2911 | * xdisp.c (handle_auto_composed_prop): Use Fget_text_property | |
2912 | instead of get_property_and_range. | |
2913 | ||
73acf815 | 2914 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2915 | |
2916 | * xftfont.c (struct xftfont_info): Delete the member ft_face. | |
2917 | (xftfont_open): Don't keep locking face. | |
2918 | (xftfont_close): Don't unlock face. | |
4c4475a8 | 2919 | (xftfont_anchor_point, xftfont_shape): Lock and unlock face. |
aca7a3d2 MB |
2920 | |
2921 | * fontset.c (fontset_find_font): Don't prefer a font of | |
2922 | supplementary charset. | |
2923 | ||
73acf815 | 2924 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2925 | |
1f45f627 GM |
2926 | * ftfont.c (struct OpenTypeSpec): Rename members script_tag to |
2927 | script, langsys_tag to langsys, new member script. | |
aca7a3d2 MB |
2928 | (OTF_TAG_STR): Terminate by '\0'. |
2929 | (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the | |
2930 | listing to the script specified in that property. Fix arg to | |
2931 | OTF_check_features. | |
2932 | ||
73acf815 | 2933 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
2934 | |
2935 | * w32font.h: New file. | |
2936 | ||
2937 | * w32font.c: Include it. | |
2938 | (struct w32font_info): Add owning_frame field. Move to w32font.h. | |
2939 | (w32font_open): Set owning_frame. | |
2940 | (w32font_text_extents): Use owning_frame. | |
2941 | (struct font_callback_data): Add opentype_only field. | |
2942 | (add_font_entity_to_list): Use it to filter fonts. | |
2943 | Don't check against full name. | |
2944 | (w32font_list_internal): New function. | |
2945 | (w32font_list): Use it. | |
2946 | (w32font_match_internal): New function. | |
2947 | (w32font_match): Use it. | |
2948 | (w32font_open_internal): New function. | |
2949 | (w32font_open): Use it. | |
2950 | (w32font_get_cache, w32font_close, w32font_has_char) | |
2951 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
2952 | Make non-static. | |
2953 | ||
2954 | * makefile.w32-in (w32font.o): Depend on w32font.h. | |
2955 | ||
73acf815 | 2956 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2957 | |
2958 | * charset.c (Fdefine_charset_internal): Record a supplementary | |
2959 | charset at the tail of Vcharset_order_list. | |
2960 | ||
2961 | * font.c (Ffont_shape_text): Fix the return value. | |
2962 | ||
2963 | * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names. | |
2964 | ||
2965 | * xdisp.c (handle_auto_composed_prop): Fix previous change. | |
2966 | ||
73acf815 | 2967 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
2968 | |
2969 | * ftfont.c (struct OpenTypeSpec): New struct. | |
2970 | (OTF_SYM_TAG, OTF_TAG_STR): New macros. | |
2971 | (ftfont_get_open_type_spec): New function. | |
2972 | (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property. | |
2973 | ||
15139d67 | 2974 | * lread.c (read1): Redo the previous change with checking Vpurify_flag. |
aca7a3d2 | 2975 | |
73acf815 | 2976 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
2977 | |
2978 | * w32font.c (add_font_entity_to_list): Compare only the beginning | |
2979 | of full name. | |
2980 | ||
73acf815 | 2981 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2982 | |
15139d67 SM |
2983 | * xdisp.c (handle_auto_composed_prop): Simplify the code. |
2984 | Never return HANDLED_RECOMPUTE_PROPS. | |
aca7a3d2 | 2985 | |
73acf815 | 2986 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2987 | |
2988 | * font.c (font_gstring_produce): Delete it. | |
2989 | ||
15139d67 SM |
2990 | * composite.h (COMPOSITION_METHOD): |
2991 | Handle COMPOSITION_WITH_GLYPH_STRING. | |
aca7a3d2 | 2992 | |
73acf815 | 2993 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 2994 | |
15139d67 | 2995 | * xfont.c (Qx): Delete. |
aca7a3d2 MB |
2996 | (syms_of_xfont): Don't initialize Qx. |
2997 | ||
15139d67 SM |
2998 | * composite.h (enum composition_method): |
2999 | Define COMPOSITION_WITH_GLYPH_STRING unconditionally. | |
aca7a3d2 | 3000 | |
73acf815 | 3001 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3002 | |
3003 | * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally. | |
3004 | (choose_face_font): Accept new form of font-spec. | |
3005 | ||
3006 | * frame.h (font_driver_list): Declare it unconditionally. | |
3007 | (struct frame): Define members font_driver_list and font_data_list | |
3008 | unconditionally. | |
3009 | ||
3010 | * fontset.c: Include "font.h" unconditionally. | |
15139d67 | 3011 | (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd. |
aca7a3d2 MB |
3012 | (Fset_fontset_font): Accept a font-spec object. |
3013 | ||
3014 | * font.c (font_unparse_xlfd): If pixel_size is zero, make the | |
3015 | PIXEL_SIZE part a wild card. | |
3016 | ||
3017 | * dispextern.h (struct glyph_string): Define members clip and | |
3018 | num_clips unconditionally. | |
3019 | (struct face): Define members font_info and extra unconditionally. | |
3020 | ||
3021 | * ftfont.c (ftfont_open): Set members maybe_otf and otf of | |
3022 | ftfont_info only when HAVE_LIBOTF is defined. | |
3023 | ||
73acf815 | 3024 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
3025 | |
3026 | * xdisp.c (back_to_previous_visible_line_start): Fix type of beg | |
3027 | and end. | |
3028 | ||
73acf815 | 3029 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3030 | |
3031 | * w32font.c (w32font_driver): Add new fields. | |
3032 | ||
73acf815 | 3033 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3034 | |
aca7a3d2 MB |
3035 | * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@. |
3036 | (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally. | |
3037 | (LIBES): Add @M17N_FLT_CFLAGS@. | |
3038 | ||
3039 | * composite.c (compose_text): Don't treat the new style | |
3040 | composition specially. | |
3041 | ||
3042 | * emacs.c (main): Call syms_of_font unconditionally. | |
3043 | ||
3044 | * font.h (FONT_ENTITY_NOT_LOADABLE) | |
3045 | (FONT_ENTITY_SET_NOT_LOADABLE): New macros. | |
15139d67 | 3046 | (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring. |
aca7a3d2 | 3047 | (struct font_driver): New member shape. |
1f45f627 | 3048 | (font_registry_charsets): Extern it. |
4c4475a8 | 3049 | (font_find_for_lface, font_prepare_composition): Adjust prototype. |
aca7a3d2 MB |
3050 | (font_otf_capability, font_drive_otf): Delete their externs. |
3051 | ||
3052 | * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>. | |
4c4475a8 GM |
3053 | (font_charset_alist, font_registry_charsets): Move from xfont.c |
3054 | and rename. | |
aca7a3d2 MB |
3055 | (font_prop_validate_otf): New function. |
3056 | (font_property_table): Register it for QCotf. | |
3057 | (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER) | |
15139d67 | 3058 | (font_drive_otf): Delete. |
1f45f627 | 3059 | (font_prepare_composition): New arg F. Adjust for the change of |
aca7a3d2 MB |
3060 | lispy gstring. |
3061 | (font_find_for_lface): New arg C. | |
15139d67 | 3062 | (font_load_for_face): Adjust for the change of font_find_for_lface. |
4c4475a8 GM |
3063 | (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of |
3064 | lispy gstring. | |
aca7a3d2 MB |
3065 | (Ffont_shape_text): New function. |
3066 | (Fopen_font): If the font size is not given, use 12-pixel. | |
3067 | (Ffont_at): New arg STRING. | |
15139d67 SM |
3068 | (syms_of_font): Initalize font_charset_alist. |
3069 | Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont | |
aca7a3d2 MB |
3070 | conditionally. |
3071 | ||
3072 | * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple | |
3073 | fonts of the same font-spec. Change the format of RFONT-DEF. | |
4c4475a8 GM |
3074 | (face_for_char, make_fontset_for_ascii_face, Finternal_char_font): |
3075 | Adjust for the change of RFONT-DEF. | |
15139d67 | 3076 | (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec. |
aca7a3d2 MB |
3077 | |
3078 | * ftfont.h: New file. | |
3079 | ||
3080 | * ftfont.c: Don't include Freetype headers. Include "ftfont.h". | |
3081 | (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. | |
3082 | (ftfont_open) [HAVE_LIBOTF]: Initialize the above members. | |
3083 | (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set | |
3084 | font_otf_capability and font_drive_otf, set ftfont_shape. | |
15139d67 | 3085 | (ftfont_list): Adjust for the change of :otf property value. |
aca7a3d2 MB |
3086 | (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct. |
3087 | (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf) | |
3088 | (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt) | |
3089 | (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s | |
3090 | (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro. | |
3091 | (otf_gstring, gstring, m17n_flt_initialized): New variables. | |
3092 | ||
15139d67 SM |
3093 | * w32term.c (x_draw_composite_glyph_string_foreground): |
3094 | Adjust for the change of lispy gstring. | |
aca7a3d2 | 3095 | |
15139d67 | 3096 | * xdisp.c (handle_composition_prop): Adjust for the change of |
aca7a3d2 | 3097 | lispy gstring. Call a function for auto-composition with the |
15139d67 SM |
3098 | third arg it->window. |
3099 | (fill_composite_glyph_string): Adjust for the change of lispy string. | |
3100 | (x_produce_glyphs): Adjust for the change of font_prepare_compositionl. | |
aca7a3d2 | 3101 | |
15139d67 | 3102 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
3103 | font_find_for_lface. |
3104 | ||
1f45f627 GM |
3105 | * xfont.c (x_font_charset_alist): Move to font.c and rename. |
3106 | (xfont_registry_charsets): Likewise. Change caller. | |
aca7a3d2 MB |
3107 | (syms_of_xfont): Don't handle x_font_charset_alist. |
3108 | ||
3109 | * xftfont.c: Include "ftfont.h". | |
15139d67 | 3110 | (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. |
aca7a3d2 MB |
3111 | (xftfont_open) [HAVE_LIBOTF]: Initialize the above members. |
3112 | (xftfont_close) [HAVE_LIBOTF]: Close otf. | |
3113 | (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. | |
15139d67 SM |
3114 | (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]: |
3115 | Set xftfont_driver.shape to xftfont_shape. | |
aca7a3d2 | 3116 | |
15139d67 | 3117 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
3118 | the change of lispy gstring. |
3119 | ||
73acf815 | 3120 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3121 | |
3122 | * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error. | |
3123 | ||
73acf815 | 3124 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3125 | |
3126 | * w32font.c (w32font_draw): Fill background manually. | |
3127 | ||
73acf815 | 3128 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3129 | |
3130 | * font.c (Qfontp): Remove unused symbol. | |
3131 | (QCantialias): New symbol. | |
3132 | (syms_of_font): Define it. | |
3133 | (font_property_table): Set a validator for QCantialias. | |
3134 | ||
15139d67 SM |
3135 | * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY): |
3136 | Define if not already. | |
aca7a3d2 MB |
3137 | (QCfamily): Share with xfaces.c. |
3138 | (Qstandard, Qsubpixel, Qnatural): New symbols. | |
1f45f627 | 3139 | (syms_of_w32font): Define them. Don't define QCfamily here. |
aca7a3d2 MB |
3140 | (w32_antialias_type, lispy_antialias_type): New functions. |
3141 | (w32_enumfont_pattern_entity): New arg requested_font. | |
3142 | Set antialias parameter if non-default was requested. | |
3143 | (fill_in_logfont): Fill in lfQuality if :antialias specified. | |
3144 | ||
73acf815 | 3145 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3146 | |
3147 | * lread.c (read1): Undo the previous change. | |
3148 | ||
73acf815 | 3149 | 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change) |
aca7a3d2 MB |
3150 | |
3151 | * frame.c (Fdelete_frame): Call font_update_drivers only when | |
6f69e89b | 3152 | USE_FONT_BACKEND is defined. |
aca7a3d2 | 3153 | |
73acf815 | 3154 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3155 | |
3156 | * font.h (struct font_bitmap): New member bits_per_pixel. | |
3157 | (struct font_driver): New members start_for_frame and end_for_frame. | |
3158 | (struct font_data_list): New struct. | |
3159 | (font_put_frame_data, font_get_frame_data): Extern them. | |
3160 | ||
3161 | * frame.h (struct frame): New member font_data_list. | |
3162 | ||
3163 | * font.c (font_update_drivers): Call driver->start_for_frame and | |
3164 | driver->end_for_frame at proper timings. | |
3165 | (font_put_frame_data, font_get_frame_data): New functions. | |
3166 | (Ffont_spec): Add usage in the docstring. | |
3167 | ||
3168 | * frame.c (make_frame): Initialize f->font_data_list to NULL. | |
3169 | (Fdelete_frame): Call font_update_drivers. | |
3170 | ||
3171 | * xftfont.c (struct xftface_info): Delete the member xft_draw. | |
4c4475a8 | 3172 | (xftfont_prepare_face, xftfont_done_face): Adjust for the above change. |
aca7a3d2 MB |
3173 | (xftfont_get_xft_draw): New function. |
3174 | (xftfont_draw): Get XftDraw by xftfont_get_xft_draw. | |
3175 | (xftfont_end_for_frame): New function. | |
3176 | (syms_of_xftfont): Set xftfont_driver.end_for_frame. | |
3177 | ||
15139d67 | 3178 | * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs. |
1f45f627 | 3179 | Change argument. Cache GCs in the per-frame data. |
aca7a3d2 MB |
3180 | (struct ftxfont_frame_data): New struct. |
3181 | (ftxfont_draw_bitmap): New arg gc_fore and flush. | |
3182 | (ftxfont_prepare_face, ftxfont_done_face): Delete them. | |
15139d67 | 3183 | (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs. |
aca7a3d2 MB |
3184 | (ftxfont_end_for_frame): New function. |
3185 | (syms_of_ftxfont): Set ftxfont_driver.end_for_frame. | |
3186 | ||
3187 | * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel. | |
3188 | ||
73acf815 | 3189 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3190 | |
3191 | * xselect.c (Vselection_coding_system) | |
3192 | (Vnext_selection_coding_system): Delete them. | |
3193 | (syms_of_xselect): Don't declare selection-coding-system and | |
3194 | next-selection-coding-system. They are declared in select.el. | |
3195 | ||
73acf815 | 3196 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3197 | |
3198 | * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already. | |
3199 | ||
3200 | * w32fns.c: Include imm.h. | |
3201 | (get_composition_string_fn, get_ime_context_fn): New optional | |
3202 | system functions. | |
3203 | (globals_of_w32fns): Load them from imm32.dll. | |
3204 | (ignore_ime_char): New flag. | |
3205 | (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and | |
3206 | WM_IME_ENDCOMPOSITION messages. | |
3207 | ||
3208 | * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as | |
3209 | MULTIBYTE_CHAR_KEYSTROKE_EVENT. | |
3210 | ||
73acf815 | 3211 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3212 | |
3213 | * lread.c (READCHAR): Call readchar with the 2nd arg NULL. | |
3214 | (READCHAR_REPORT_MULTIBYTE): New macro. | |
3215 | (readchar): New 2nd arg MULTIBYTE. | |
15139d67 SM |
3216 | (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. |
3217 | Make symbol's name multibyte according to the multibyteness of the | |
aca7a3d2 MB |
3218 | source. |
3219 | ||
73acf815 | 3220 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3221 | |
3222 | * xfaces.c (face_for_overlay_string): Call lookup_face with | |
3223 | correct arguments (fix of synching with the trunk). | |
3224 | ||
73acf815 | 3225 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3226 | |
4c4475a8 GM |
3227 | * font.c (font_prop_validate_symbol, font_prop_validate_style) |
3228 | (font_prop_validate_non_neg, font_prop_validate_spacing): | |
3229 | Delete argument prop_index. | |
15139d67 SM |
3230 | (font_property_table): Change arguments to validater. Change Callers. |
3231 | (font_lispy_object): Delete. | |
aca7a3d2 MB |
3232 | (font_at): Use font_find_object instead fo font_lispy_object. |
3233 | ||
73acf815 | 3234 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3235 | |
3236 | * fileio.c (Fexpand_file_name): Adjust multibyteness of directory | |
3237 | and file names. | |
3238 | ||
73acf815 | 3239 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3240 | |
3241 | * w32font.c (add_font_name_to_list): Avoid vertical fonts. | |
3242 | (font_matches_spec): Remove debug output. | |
3243 | (add_font_entity_to_list): Avoid using substituted fonts. | |
3244 | ||
73acf815 | 3245 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3246 | |
3247 | * doc.c (Fsnarf_documentation): | |
3248 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change. | |
3249 | ||
73acf815 | 3250 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 3251 | |
290afd83 | 3252 | * dispextern.h (struct glyph_row): Only define "clip" field if |
aca7a3d2 MB |
3253 | HAVE_WINDOW_SYSTEM is defined. |
3254 | ||
73acf815 | 3255 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
3256 | |
3257 | Fix up multi-tty merge. | |
3258 | ||
3259 | * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting | |
3260 | and indentation. | |
3261 | ||
3262 | * xfaces.c (free_realized_face, clear_face_gcs): | |
3263 | Include font_done_for_face in the input_blocked section, just in case. | |
3264 | ||
3265 | * xdisp.c (decode_mode_spec): Use terminal-local coding systems. | |
3266 | (get_char_face_and_encoding): Undo last change and remove the *other* | |
3267 | duplicate definition (i.e. keep the one that's better scoped and that | |
3268 | includes code for the font-backend). | |
3269 | ||
3270 | * terminal.c (create_terminal): Default keyboard_coding to | |
3271 | `no-conversion' and terminal_coding to `undecided'. | |
3272 | ||
3273 | * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag. | |
3274 | ||
3275 | * fontset.c (free_realized_fontsets): Check that the table entry does | |
3276 | contain a fontset before trying to compare it to `base'. | |
3277 | ||
3278 | * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc, | |
3279 | syms_of_charset, and syms_of_coding earlier because init_window_once | |
3280 | now needs Vcoding_system_hash_table to be setup. | |
3281 | ||
3282 | * coding.h (default_buffer_file_coding): Remove. | |
3283 | ||
3284 | * coding.c (default_buffer_file_coding): Remove. | |
3285 | (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather | |
3286 | than ->symbol, and use the terminal-local coding system. | |
3287 | (syms_of_coding): Don't setup the coding-systems that are not | |
3288 | terminal-local. | |
3289 | (Fdefine_coding_system_internal): Use XCAR/XCDR. | |
3290 | ||
3291 | * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table): | |
3292 | Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore. | |
3293 | ||
3294 | * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now | |
3295 | in chartab.c and were re-added here by mistake. | |
3296 | (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector. | |
3297 | ||
3298 | * doc.c (Fsnarf_documentation): | |
3299 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from | |
3300 | src to etc. | |
3301 | ||
3302 | * ChangeLog.10: Add mistakenly removed entry. | |
3303 | ||
73acf815 | 3304 | 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu> |
aca7a3d2 MB |
3305 | |
3306 | * Makefile.in (fringe.o, minibuf.o): Fix dependencies. | |
3307 | ||
73acf815 | 3308 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
3309 | |
3310 | * xdisp.c (get_char_face_and_encoding): Remove extraneous definition. | |
3311 | Add extra args to FACE_FOR_CHAR. | |
3312 | ||
73acf815 | 3313 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3314 | |
3315 | * keymap.c (where_is_internal_1): If key is a cons, store the copy | |
3316 | in sequence. | |
3317 | ||
4c4475a8 GM |
3318 | * chartab.c (map_sub_char_table, map_char_table): If the range |
3319 | contains just one character, call the function with that character | |
3320 | even if the depth is not 3. | |
aca7a3d2 | 3321 | |
73acf815 | 3322 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3323 | |
3324 | * w32font.c (w32font_text_extents): Calculate metrics for the | |
3325 | whole string. | |
3326 | ||
73acf815 | 3327 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3328 | |
3329 | * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages. | |
3330 | ||
73acf815 | 3331 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3332 | |
3333 | * w32term.c (x_set_glyph_string_clipping): Use | |
3334 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
3335 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
3336 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
3337 | |
3338 | * w32font.c (w32font_draw): Do clipping here. | |
3339 | ||
73acf815 | 3340 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3341 | |
1f45f627 | 3342 | * xftfont.c (xftfont_draw): Adjust for the change of struct |
aca7a3d2 MB |
3343 | glyph_string. |
3344 | ||
3345 | * xterm.c (x_set_glyph_string_clipping): Use | |
3346 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
3347 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
3348 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
3349 | |
3350 | * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to | |
3351 | the resulting clip(s}. | |
1f45f627 | 3352 | (expose_overlaps): Add arg r. Change callers. Set it to |
aca7a3d2 MB |
3353 | row->clip temporarily. |
3354 | (expose_window): Redraw rows overlapping the exposed area. | |
3355 | ||
3356 | * dispextern.h (struct glyph_row): New member clip. | |
3357 | (struct glyph_string): Delete members clip_x, clip_y, clip_width, | |
3358 | clip_height, new member clip, and num_clips. | |
3359 | ||
73acf815 | 3360 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3361 | |
3362 | * data.c (Fchar_or_string_p): Fix docstring. | |
3363 | ||
73acf815 | 3364 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3365 | |
3366 | * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info, | |
3367 | create a temporal XftDraw object. | |
3368 | ||
73acf815 | 3369 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3370 | |
3371 | * font.c (Ffontp): Fix docstring. | |
3372 | ||
3373 | * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a | |
3374 | strong evidence of ISO-2022. | |
3375 | ||
73acf815 | 3376 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3377 | |
3378 | * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not | |
3379 | SYNTAX_ENTRY_FOLLOW_PARENT. | |
3380 | ||
73acf815 | 3381 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
3382 | |
3383 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change | |
3384 | its type. | |
3385 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
3386 | Update to the new type of weak_hash_tables and next_weak. | |
3387 | ||
3388 | * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to | |
3389 | a plain C pointer to Lisp_Hash_Table. | |
3390 | ||
3391 | * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP) | |
3392 | (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP) | |
3393 | (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP) | |
3394 | (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP) | |
3395 | (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP) | |
3396 | (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP) | |
3397 | (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP) | |
3398 | (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP) | |
3399 | (GC_EQ): Remove since they've been identical to their non-GC_ | |
3400 | alter-egos ever since the markbit was eradicated. | |
3401 | ||
290afd83 JB |
3402 | * alloc.c: |
3403 | * buffer.c: | |
3404 | * buffer.h: | |
3405 | * data.c: | |
3406 | * fileio.c: | |
3407 | * filelock.c: | |
3408 | * fns.c: | |
3409 | * frame.h: | |
3410 | * lisp.h: | |
3411 | * macterm.c: | |
3412 | * print.c: | |
3413 | * process.c: | |
3414 | * w32fns.c: | |
3415 | * w32menu.c: | |
3416 | * w32term.c: | |
3417 | * xfns.c: | |
3418 | * xmenu.c: | |
3419 | * xterm.c: Replace uses of GC_* macros with the non-GC_ versions. | |
aca7a3d2 | 3420 | |
73acf815 | 3421 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3422 | |
3423 | * chartab.c (map_sub_char_table): Make it work for the top-level | |
3424 | char-table. Fix handling of parent char-table. | |
c5ad7a3d | 3425 | (map_char_table): Adjust for the above change. |
aca7a3d2 | 3426 | |
73acf815 | 3427 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3428 | |
3429 | * w32font.c (Qgdi): Rename from Qw32. | |
3430 | ||
73acf815 | 3431 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3432 | |
3433 | * w32bdf.c (get_quoted_string): Make function static. | |
3434 | ||
73acf815 | 3435 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3436 | |
3437 | * xftfont.c (xftfont_open): If one of font's ASCII glyph has | |
3438 | bigger ascent and descent than those of the font, use them as | |
3439 | font's ascent and descent. | |
3440 | ||
73acf815 | 3441 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3442 | |
3443 | * Makefile.in (${lispsource}international/charprop.el): Move this | |
3444 | target within "#ifdef HAVE_UNIDATA" and "#endif". | |
3445 | ||
73acf815 | 3446 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3447 | |
3448 | * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el. | |
3449 | (shortlisp): Add ../lisp/language/tai-viet.el. | |
3450 | ||
1f45f627 | 3451 | 2008-02-01 Ulrich Mueller <ulm@gentoo.org> |
aca7a3d2 MB |
3452 | |
3453 | * Makefile.in (${lispsource}international/charprop.el): Depend on | |
3454 | temacs${EXEEXT}. | |
3455 | ||
73acf815 | 3456 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3457 | |
3458 | * w32font.c (w32font_close): Delete the GDI font object. | |
3459 | ||
6f69e89b | 3460 | * w32menu.c: Include character.h. |
aca7a3d2 MB |
3461 | |
3462 | * w32proc.c: Likewise. | |
3463 | ||
3464 | * w32select.c: Likewise. | |
3465 | ||
6f69e89b | 3466 | * makefile.w32-in (w32proc.o): Depend on character.h. |
aca7a3d2 | 3467 | |
73acf815 | 3468 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3469 | |
3470 | * w32fns.c (syms_of_w32fns): Use DEFSYM macro. | |
3471 | ||
3472 | * w32menu.c (syms_of_w32menu): Likewise. | |
3473 | ||
3474 | * w32proc.c (syms_of_ntproc): Likewise. | |
3475 | ||
3476 | * w32select.c (syms_of_w32select): Likewise. | |
3477 | ||
3478 | * w32term.c (syms_of_w32term): Likewise. | |
3479 | ||
73acf815 | 3480 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3481 | |
3482 | * w32font.c (w32font_draw): Delete brush after using it. | |
3483 | ||
73acf815 | 3484 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3485 | |
3486 | * w32font.c (w32font_open): Don't set font_idx. | |
3487 | (w32font_text_extents): Try GetTextExtentPoint32W before defaulting | |
3488 | to font settings. | |
3489 | (w32font_draw): Fill background explicitly. | |
3490 | ||
73acf815 | 3491 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3492 | |
3493 | * w32term.c (w32_initialize): Don't call w32font_initialize. | |
3494 | ||
3495 | * w32font.c (w32font_info): Remove subranges. | |
3496 | (QCsubranges, Qmodern, Qswiss, Qroman): Remove. | |
3497 | (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif) | |
3498 | (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian) | |
3499 | (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali) | |
3500 | (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada) | |
3501 | (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian) | |
3502 | (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham) | |
3503 | (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan) | |
3504 | (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun) | |
3505 | (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical): | |
3506 | New symbols. | |
3507 | (font_callback_data): New struct. | |
3508 | (w32font_list, w32font_match): Use it. | |
3509 | (w32font_open): Don't populate subranges. | |
3510 | (w32font_has_char): Use script Lisp symbols, not subrange bitmask. | |
3511 | (w32font_encode_char): Always return unicode code-point as-is. | |
3512 | (w32font_text_extents): Supply a tranformation matrix to | |
1f45f627 GM |
3513 | GetGlyphOutline. Never look up by glyph index. Avoid looping |
3514 | twice. Use unicode version of GetTexExtentPoint32 instead of | |
aca7a3d2 MB |
3515 | glyph index version. |
3516 | (set_fonts_frame): Remove | |
3517 | (w32_enumfont_pattern_entity): Add frame parameter, use it to | |
1f45f627 GM |
3518 | set frame parameter. Use backward compatible fake foundries. |
3519 | Save generic family in extra slot under QCfamily. Make width slot | |
3520 | constant. Save QCspacing value. Save list of scripts instead of | |
aca7a3d2 MB |
3521 | binary subranges. |
3522 | (w32_generic_family, logfonts_match, font_matches_spec): New functions. | |
1f45f627 | 3523 | (add_font_entity_to_list): Use font_callback_data struct. Filter |
aca7a3d2 MB |
3524 | unwanted fonts. |
3525 | (add_one_font_entity_to_list): Use font_callback_data struct. | |
1f45f627 GM |
3526 | (w32_registry): Default to iso10646_1. |
3527 | (fill_in_logfont): Use dpi from extra slot. Don't bother with | |
3528 | string font registries. Don't fill in font name if it is a generic | |
3529 | family name, fill family instead. Use spacing, family and script | |
aca7a3d2 MB |
3530 | extra info to fill pitch, family and charset fields. |
3531 | (list_all_matching_fonts): Use font_callback_data struct. | |
3532 | (unicode_range_for_char): Remove. | |
3533 | (font_supported_scripts): New function. | |
3534 | (w32font_initialize): Remove. | |
3535 | (syms_of_w32font): Update which symbols are defined. | |
3536 | ||
73acf815 | 3537 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3538 | |
3539 | * font.c (font_pixel_size): Reverse assq_no_quit args. | |
3540 | ||
3541 | * w32term.h (FONT_WIDTH): Report max width, not average. | |
3542 | (FONT_MAX_WIDTH): Remove. | |
3543 | (FONT_AVG_WIDTH): New macro. | |
3544 | ||
3545 | * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only | |
3546 | redefinition of FONT_WIDTH. | |
3547 | ||
3548 | * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH. | |
3549 | (w32_cache_char_metrics): Use FONT_WIDTH. | |
3550 | ||
3551 | * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH. | |
3552 | ||
73acf815 | 3553 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3554 | |
3555 | * w32font.c (w32font_open): Make lfHeight negative. | |
3556 | ||
3557 | * w32fns.c (x_default_font_parameter): Use new style font name. | |
3558 | (Fx_create_frame, x_create_tip_frame): Initialize resx and resy. | |
3559 | ||
73acf815 | 3560 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3561 | |
3562 | * w32font.c (QCsubranges): New symbol. | |
3563 | (w32font_open, w32font_has_char): Get subranges from subproperty | |
3564 | of extra. | |
3565 | (w32_enumfont_pattern_entity): Set subranges as subproperty of extra. | |
3566 | (syms_of_w32font): Define :subranges symbol. | |
3567 | ||
3568 | * font.c (font_put_extra): Expose externally. | |
3569 | ||
1f45f627 | 3570 | * font.h (font_put_extra): Move declaration from font.c. |
aca7a3d2 MB |
3571 | |
3572 | * font.c (Ffont_get): Use font driver to determine otf capability. | |
3573 | (adjust_anchor): Check if driver defines anchor_point before using. | |
3574 | ||
3575 | * w32font.c (w32font_open): Handle size, height and pixel_size better. | |
3576 | (w32font_draw): Use options. | |
3577 | (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts. | |
3578 | Fix detection of truetype fonts. | |
3579 | (registry_to_w32_charset): Handle charsets other than iso8859-1 | |
3580 | expressed as lisp symbols. | |
3581 | (w32_registry): Express charset as lisp symbol. | |
3582 | (fill_in_logfont): Reverse pixel and point height logic. | |
1f45f627 | 3583 | Don't set width here. Set quality to default. |
aca7a3d2 MB |
3584 | |
3585 | * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts. | |
3586 | (x_to_w32_font): Fill in lfPitchAndFamily correctly. | |
3587 | ||
3588 | * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: | |
3589 | Remove redundant loop and allocation. | |
3590 | ||
3591 | * makefile.w32-in (font.o, w32font.o): New objects. | |
6f69e89b | 3592 | (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h. |
aca7a3d2 MB |
3593 | (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND. |
3594 | ||
3595 | * xdisp.c (fill_composite_glyph_string): Make the first arg to | |
3596 | STORE_XCHARB a valid l-value. | |
3597 | ||
3598 | * w32term.c (w32_native_per_char_metric): Swap width and rbearing | |
3599 | calculations for non-Truetype fonts. | |
3600 | (x_draw_glyph_string): Sync with xterm.c. | |
3601 | (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove | |
3602 | redundant code. | |
3603 | (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize. | |
3604 | ||
3605 | * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member. | |
3606 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h. | |
3607 | ||
3608 | * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c. | |
3609 | (x_to_w32_charset, w32_to_x_charset): Expose externally. | |
3610 | ||
3611 | * w32font.c: New file for w32 font backend. | |
3612 | ||
73acf815 | 3613 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3614 | |
3615 | * term.c: Don't include "buffer.h" twice. | |
3616 | ||
73acf815 | 3617 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3618 | |
3619 | * character.c (Funibyte_string): New function. | |
3620 | (syms_of_character): Defsubr it. | |
3621 | ||
73acf815 | 3622 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3623 | |
3624 | * w32term.c [USE_FONT_BACKEND]: | |
3625 | (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc): | |
3626 | (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly): | |
3627 | (x_draw_glyph_string, x_draw_glyph_string_foreground): | |
3628 | (x_draw_composite_glyph_string_foreground, x_new_fontset2): | |
3629 | (x_free_frame_resources): Sync with xterm.c. | |
3630 | ||
73acf815 | 3631 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
3632 | |
3633 | * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate | |
3634 | char-table size. | |
3635 | ||
73acf815 | 3636 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3637 | |
3638 | * font.c (check_otf_features): Define it regardless of | |
3639 | HAVE_LIBOTF. | |
3640 | ||
73acf815 | 3641 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3642 | |
3643 | * ftfont.c (ftfont_driver): Delete font_otf_gsub and | |
3644 | font_otf_gpos, add font_drive_otf. | |
3645 | ||
3646 | * fontset.c (fontset_find_font): Pay attention to font size | |
3647 | specified for a font. | |
3648 | (reorder_font_vector): Check contents of font_def. | |
3649 | ||
3650 | * font.c (struct otf_list): Delete it. | |
6f69e89b | 3651 | (otf_list): Make it a lisp variable. |
aca7a3d2 | 3652 | (otf_open): Use lispy otf_list. |
1f45f627 | 3653 | (generate_otf_features): Rename from parse_gsub_gpos_spec. |
aca7a3d2 MB |
3654 | (check_otf_features): New function. |
3655 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): New | |
3656 | functinos. | |
3657 | (font_drive_otf): New function merging font_otf_gsub and | |
3658 | font_otf_gpos. | |
3659 | (font_open_for_lface): New arg spec. Change argument order. | |
1f45f627 | 3660 | (font_load_for_face): Adjust for the change of font_open_for_lface. |
aca7a3d2 MB |
3661 | (Ffont_drive_otf): New function merging Ffont_otf_gsub and |
3662 | Ffont_otf_gpos. | |
3663 | (syms_of_font): Staticpro otf_list. Delete defsubr of | |
3664 | Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf. | |
3665 | ||
1f45f627 | 3666 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
3667 | font_open_for_lface. |
3668 | ||
3669 | * font.h (font_open_for_lface): Adjust prototype. | |
3670 | (struct font_driver): Delete members otf_gsub and otf_gpos, add | |
3671 | member otf_drive. | |
3672 | (font_otf_gsub, font_otf_gpos): Delete externs. | |
3673 | (font_drive_otf): Extern it. | |
3674 | ||
73acf815 | 3675 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3676 | |
3677 | * font.c (font_at): If the window W is not on a window system, | |
3678 | return Qnil. | |
3679 | ||
4c4475a8 GM |
3680 | * coding.c (produce_chars, encode_coding): Don't call |
3681 | insert_from_gap if no characters to produce. | |
aca7a3d2 | 3682 | |
73acf815 | 3683 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3684 | |
3685 | * fontset.c (free_realized_fontsets): Avoid unnecessary call of | |
3686 | Fclear_face_cache. | |
3687 | ||
3688 | * xfaces.c (face_for_font): Check also face->font==font->font.font. | |
3689 | ||
73acf815 | 3690 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
3691 | |
3692 | * emacs.c (main): Change default value of `enable_font_backend' to 1. | |
3693 | Parse "--disable-font-backend" option. | |
3694 | (standard_args): Add "--disable-font-backend" option. | |
3695 | ||
73acf815 | 3696 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3697 | |
3698 | * fontset.c (fontset_find_font): New function. | |
3699 | (fontset_font): Use fontset_find_font. | |
3700 | (make_fontset_for_ascii_face): Don't set face ID in rfont_def. | |
3701 | Register the specified font for all Latin characters. | |
3702 | (new_fontset_from_font): Register the specified font for all Latin | |
3703 | characters. | |
3704 | (dump_fontset): For a realized fontset, include the base fontset | |
3705 | name in the returned vector. | |
3706 | ||
73acf815 | 3707 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3708 | |
3709 | * character.h (CHAR_STRING): Cast C to unsigned on calling | |
3710 | char_string. | |
3711 | ||
3712 | * character.c (char_string): Type of arg C changed to unsigned. | |
3713 | Signal an error if C is an invalid character code. | |
3714 | ||
4c4475a8 GM |
3715 | * editfns.c (general_insert_function, Fchar_to_string): |
3716 | Use CHARACTERP, not INTEGERP. | |
aca7a3d2 | 3717 | |
73acf815 | 3718 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3719 | |
3720 | * character.h (MIN_MULTIBYTE_LEADING_CODE) | |
3721 | (MAX_MULTIBYTE_LEADING_CODE): New macros. | |
3722 | ||
3723 | * regex.c (analyse_first): Fix for multibyte characters in "case | |
3724 | charset:" and "case categoryspec:". | |
3725 | ||
73acf815 | 3726 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
3727 | |
3728 | * Makefile.in (LIBES): Move standard libraries to the end. | |
3729 | ||
73acf815 | 3730 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3731 | |
3732 | * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is | |
3733 | nonzero, don't shrink the buffer nextb. | |
3734 | ||
3735 | * buffer.h (struct buffer_text): New member inhibit_shrinking. | |
3736 | ||
3737 | * coding.c (coding_alloc_by_making_gap): New arg offset. | |
3738 | (alloc_destination): Call coding_alloc_by_making_gap with the arg | |
3739 | offset. | |
3740 | (decode_coding_iso_2022): Update coding->safe_charsets. | |
3741 | (decode_coding_gap): Temporarily set | |
3742 | current_buffer->text->inhibit_shrinking to 1. | |
3743 | ||
73acf815 | 3744 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3745 | |
3746 | * xterm.c (x_draw_composite_glyph_string_foreground): Fix | |
3747 | indexing into elements of s->cmp and s->char2b. | |
3748 | ||
73acf815 | 3749 | 2008-02-01 Juanma Barranquero <lekktu@gmail.com> |
aca7a3d2 MB |
3750 | |
3751 | * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'. | |
3752 | ||
73acf815 | 3753 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3754 | |
3755 | * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable | |
3756 | target_multibyte instead of multibyte. | |
3757 | (re_match_2_internal): Call bcmp_translate with target_multibyte. | |
3758 | (bcmp_translate): Change the argument name from multibyte to | |
3759 | target_multibyte. | |
3760 | ||
73acf815 | 3761 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3762 | |
3763 | These changes are to compile a regexp into a pattern that can be | |
3764 | used both for multibyte and unibyte targets. | |
3765 | ||
3766 | * Makefile.in (search.o): Depend on charset.h. | |
3767 | ||
3768 | * character.c (multibyte_char_to_unibyte_safe): New function. | |
3769 | ||
3770 | * search.c: Include "charset.h". | |
3771 | (compile_pattern_1): Delete argument multibyte. Don't set | |
3772 | cp->buf.target_multibyte here. Set cp->buf.charset_unibyte. | |
3773 | (compile_pattern): Don't compare cp->buf.target_multibyte. | |
3774 | Compare cp->buf.charset_unibyte. | |
3775 | (compile_pattern): Set cp->buf.target_multibyte. | |
3776 | ||
3777 | * lisp.h (multibyte_char_to_unibyte_safe): Extern it. | |
3778 | ||
3779 | * regex.h (struct re_pattern_buffer): New member charset_unibyte. | |
3780 | ||
3781 | * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg | |
1f45f627 | 3782 | multibyte. Change callers. |
aca7a3d2 | 3783 | (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. |
1f45f627 GM |
3784 | (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers |
3785 | to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively. | |
aca7a3d2 MB |
3786 | (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. |
3787 | (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table. | |
3788 | (regex_compile): Make the compiled pattern usable both for | |
3789 | multibyte and unibyte targets. | |
3790 | (analyse_first): Make the fastmap usable both for multibyte and | |
3791 | unibyte targets. | |
1f45f627 | 3792 | (TRANSLATE_VIA_MULTIBYTE): Delete. |
aca7a3d2 MB |
3793 | (re_match_2_internal): Pay attention to the case that the |
3794 | multibyteness of bufp and target may be different. | |
3795 | ||
73acf815 | 3796 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3797 | |
3798 | * xdisp.c (x_produce_glyphs): When a font is not found, make the | |
3799 | empty box occupy at least one column width. | |
3800 | ||
73acf815 | 3801 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
3802 | |
3803 | * Makefile.in: Remove redundant HAVE_XFT clause. | |
3804 | ||
73acf815 | 3805 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3806 | |
3807 | * xrdb.c (x_load_resources): Setup the default fontSet X reource. | |
3808 | ||
73acf815 | 3809 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3810 | |
3811 | * fontset.c (Finternal_char_font): Fix for the case of POSITION | |
3812 | being nil. | |
3813 | ||
73acf815 | 3814 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3815 | |
3816 | * xftfont.c (xftfont_open): Call FcConfigSubstitute. | |
3817 | ||
73acf815 | 3818 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3819 | |
3820 | * xftfont.c (xftfont_open): Don't enable antialias explicitly. | |
3821 | ||
73acf815 | 3822 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3823 | |
3824 | * search.c (simple_search): Fix previous change. | |
3825 | ||
73acf815 | 3826 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3827 | |
3828 | * xftfont.c (ftfont_font_format): Extern declaration. | |
3829 | ||
3830 | * frame.c (x_set_font): Fix the second arg to fs_query_fontset. | |
3831 | ||
3832 | * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0. | |
3833 | (xfont_list): Don't directly use Lisp_Object as an operand of &&. | |
3834 | ||
3835 | * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0. | |
3836 | (ftfont_font_format): Fix previous change. | |
3837 | ||
3838 | * font.h (Ffont_xlfd_name): EXFUN it. | |
3839 | ||
3840 | * font.c (font_parse_xlfd): Fix the array size of `f'. | |
3841 | (register_font_driver): Use EQ to compare driver->type. | |
3842 | ||
3843 | * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function. | |
3844 | (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2. | |
3845 | (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise. | |
3846 | ||
73acf815 | 3847 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3848 | |
4c4475a8 GM |
3849 | * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family) |
3850 | (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined. | |
aca7a3d2 | 3851 | |
73acf815 | 3852 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3853 | |
3854 | * xfont.c (xfont_open): Set font->format. | |
3855 | ||
3856 | * xftfont.c (xftfont_open): Set font->format. | |
3857 | ||
3858 | * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern. | |
3859 | (ftfont_list): Include FC_FONTFORMAT in FcObject. | |
3860 | (ftfont_open): Set font->format. | |
3861 | (ftfont_font_format): New function. | |
3862 | ||
3863 | * font.h (struct font): New memeber format. | |
3864 | ||
3865 | * font.c (Qopentype): New variable. | |
3866 | (syms_of_font): Defsym it. | |
3867 | (Fquery_font): Change the format of the last element of the return | |
3868 | value. | |
3869 | ||
73acf815 | 3870 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3871 | |
3872 | * xfns.c (xic_create_xfontset): Try the default fontset name as a | |
3873 | last resort. | |
3874 | ||
73acf815 | 3875 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3876 | |
3877 | * coding.c (detect_coding_charset): Fix detection of multi-byte | |
3878 | charset. | |
3879 | ||
73acf815 | 3880 | 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change) |
aca7a3d2 MB |
3881 | |
3882 | * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0. | |
3883 | ||
73acf815 | 3884 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3885 | |
3886 | * xdisp.c (get_next_display_element): Set it->face_id for the | |
3887 | first component of a composition. | |
1f45f627 | 3888 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 3889 | |
73acf815 | 3890 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3891 | |
3892 | (get_next_display_element): Set it->face_id for the | |
3893 | first component of a composition. | |
1f45f627 | 3894 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 3895 | |
73acf815 | 3896 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3897 | |
3898 | * fontset.c (Qlatin): New variable. | |
3899 | (syms_of_fontset): Define it as a lisp symbol. | |
1f45f627 | 3900 | (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII. |
aca7a3d2 | 3901 | |
73acf815 | 3902 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3903 | |
3904 | * font.c (font_unparse_fcname): Pay attention to the case that | |
3905 | some of font property is a null string. | |
3906 | ||
73acf815 | 3907 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3908 | |
3909 | * term.c: Include "composite.h". | |
3910 | (encode_terminal_code): Output all components of composition. | |
3911 | Check the size of encode_terminal_src. | |
424c157f | 3912 | (produce_glyphs): For composition, call produce_composite_glyph. |
aca7a3d2 MB |
3913 | (append_composite_glyph, produce_composite_glyph): New functions. |
3914 | ||
3915 | * xdisp.c (x_produce_glyphs): In handling composition, if a font | |
3916 | is not found, get font_info from the current ascii face. | |
3917 | ||
73acf815 | 3918 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3919 | |
3920 | * fileio.c (Finsert_file_contents): On replacing, temporarily bind | |
3921 | buffer-file-name to Qnil before calling insert_from_buffer. | |
3922 | ||
3923 | * font.c (font_unparse_fcname): Pay attention to the case that | |
3924 | foundry is a null string. | |
3925 | ||
73acf815 | 3926 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3927 | |
3928 | * ftfont.c (ftfont_list): Allow registry "unicode-sip". | |
3929 | ||
3930 | * font.c (Qunicode_sip): New variable. | |
3931 | (syms_of_font): Declare it as a Lisp symbol. | |
3932 | ||
3933 | * font.h (Qunicode_sip): Extern it. | |
3934 | ||
73acf815 | 3935 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3936 | |
1f45f627 | 3937 | * composite.c (get_composition_id): Pay attention to TAB component. |
aca7a3d2 MB |
3938 | |
3939 | * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw | |
1f45f627 | 3940 | TAB. Adjust for the change of s->char2b which always points to |
aca7a3d2 MB |
3941 | the first elememnt of allocated memory. |
3942 | ||
1f45f627 | 3943 | * xftfont.c (xftfont_text_extents): Fix calculation of descent value. |
aca7a3d2 MB |
3944 | |
3945 | * xdisp.c (handle_composition_prop): Set it->c to the first | |
3946 | non-TAB component. | |
1f45f627 GM |
3947 | (fill_composite_glyph_string): Change argument. |
3948 | (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change. | |
aca7a3d2 MB |
3949 | (x_produce_glyphs): Fix handling of left/right padding. |
3950 | ||
73acf815 | 3951 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3952 | |
3953 | * coding.c (detect_coding_system): Fix for handling off | |
3954 | inhibit_iso_escape_detection. Fix for the case that no coding | |
3955 | system is defined for a specific coding category. | |
3956 | ||
73acf815 | 3957 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3958 | |
1f45f627 | 3959 | * font.c (font_matching_entity): Delete unused local var. |
aca7a3d2 MB |
3960 | |
3961 | * xftfont.c (xftfont_open): Call XftDefaultSubstitute before | |
3962 | opening a font. | |
3963 | ||
3964 | * fileio.c (Finsert_file_contents): On recovering a file, assume | |
3965 | Unix-like eol. | |
3966 | (choose_write_coding_system): On auto-saving a file, force | |
3967 | Unix-like eol. | |
3968 | ||
3969 | * coding.c (setup_coding_system): Fix setting of | |
3970 | coding->common_flags based on eol_type. | |
3971 | (coding_inherit_eol_type): If PARENT is not nil, be sure to | |
3972 | inherit from it. | |
3973 | ||
73acf815 | 3974 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3975 | |
1f45f627 | 3976 | * alloc.c (NSTATICS): Increas to 0x600. |
aca7a3d2 | 3977 | |
73acf815 | 3978 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3979 | |
1f45f627 | 3980 | * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match. |
aca7a3d2 MB |
3981 | (ftfont_list): Don't check :name property. |
3982 | (ftfont_match): New function. | |
3983 | (ftfont_pattern_entity): If the pattern doesn't contain | |
3984 | FC_SPACING, don't assuce FC_MONO. | |
3985 | ||
3986 | * font.h (struct font_driver): New member `match'. | |
1f45f627 | 3987 | (font_update_drivers): Adjust prototype. |
aca7a3d2 | 3988 | |
4c4475a8 GM |
3989 | * font.c (font_parse_fcname, font_parse_name): Don't change :name |
3990 | property of FONT. | |
aca7a3d2 MB |
3991 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define |
3992 | them unconditionally. | |
3993 | (font_matching_entity): New function. | |
3994 | (font_open_by_name): Try font_matching_entity if exact match is | |
3995 | not found. | |
3996 | (font_update_drivers): Delete the arg FONT. Return a list of | |
3997 | actually used backends. Don't free faces, font caches here. | |
3998 | Don't store data in frame parameters. Don't call x_set_font. | |
3999 | (Ffont_spec): Store :name property as is. | |
4000 | (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability. | |
1f45f627 GM |
4001 | (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub. |
4002 | (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos. | |
aca7a3d2 MB |
4003 | (Ffont_otf_alternates): Check if the driver has otf_gsub function. |
4004 | Call font->driver->otf_gsub instead of font_otf_gsub. | |
4005 | ||
4006 | * frame.c (x_set_font_backend): Do more works that were done in | |
4007 | font_update_drivers before. | |
4008 | ||
4009 | * xfont.c (xfont_match): New function. | |
4010 | (xfont_driver): Set xfont_driver.match to xfont_match. | |
4011 | (xfont_draw): Set font in GC if necessary. | |
4012 | ||
4013 | * ftxfont.c (ftxfont_match): New function. | |
4014 | (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match. | |
4015 | ||
4016 | * xftfont.c (xftfont_match): New function. | |
4017 | (syms_of_xftfont): Set xftfont_driver.match to xftfont_match. | |
4018 | ||
73acf815 | 4019 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4020 | |
4021 | * font.h (struct font): New member scalable. | |
4022 | (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub. | |
1f45f627 | 4023 | (font_otf_gsub): Adjust prototype. |
aca7a3d2 | 4024 | |
1f45f627 GM |
4025 | * font.c (font_otf_capability): Fix handling of the default langsys. |
4026 | (parse_gsub_gpos_spec): Change type to void. New arg nbytes. | |
aca7a3d2 MB |
4027 | Check the contents of SPEC. |
4028 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros. | |
4029 | (check_gstring): New function. | |
4030 | (REPLACEMENT_CHARACTER): New macro. | |
4031 | (font_otf_gsub): New arg alternate_subst. Be sure to set all | |
4032 | glyph codes of GSTRING. | |
4033 | (font_otf_gpos): Be sure to set all glyph codes of GSTRING. | |
4034 | (font_prepare_composition): Set cmp->glyph_len. | |
4035 | (font_open_entity): Set font->scalable. | |
4036 | (Ffont_get): Handle :otf property. | |
4037 | (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New | |
4038 | functions. | |
4039 | (Fquery_font): Use font->font.full_name. | |
4040 | (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and | |
4041 | Sfont_otf_alternates. | |
4042 | ||
4043 | * ftfont.c (ftfont_open): Set font->font.full_name and | |
4044 | font->font.name properly. Fix calculation of font->font.height | |
4045 | and font->min_width. | |
4046 | ||
4047 | * ftxfont.c (ftxfont_create_gcs): New function. | |
4048 | (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap. | |
4049 | (ftxfont_draw_backgrond): Fix filling region. | |
4050 | (ftxfont_default_fid): New function. | |
4051 | (ftxfont_open): Set xfotn->fid to the return value of | |
4052 | ftxfont_default_fid. | |
4053 | (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs. | |
4054 | (ftxfont_done_face): Free only GCs that are created by | |
4055 | ftxfont_create_gcs. | |
4056 | (ftxfont_draw): If face->gc != s->gc, create proper GCs. | |
4057 | ||
4058 | * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]: | |
4059 | Clip to src->width, etc (not src->clip_XXX). | |
4060 | ||
4061 | * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle | |
4062 | FontBackend frame parameter. | |
4063 | ||
73acf815 | 4064 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4065 | |
4066 | * font.h (struct font_driver_list): New member `on'. | |
4067 | (Fclear_font_cache): EXFUN it. | |
4068 | (font_update_drivers): Extern it. | |
4069 | ||
4070 | * font.c (font_unparse_fcname): Fix typo (swidth->width). | |
4071 | (font_list_entities): Check driver_list->on. | |
4072 | (register_font_driver): Initalize `on' member to 0. | |
4073 | (font_update_drivers): New function. | |
4074 | (Fclear_font_cache): Check driver_list->on. | |
4075 | ||
4076 | * frame.h (Qfont_backend): Extern it. | |
4077 | (x_set_font_backend): Extern it. | |
4078 | ||
4079 | * frame.c (Qfont_backend): New variable. | |
4080 | (frame_parms): New element for font-backend. | |
4081 | (x_set_font_backend): New function. | |
4082 | ||
4083 | * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle | |
4084 | FontBackend frame parameter. | |
4085 | (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element | |
4086 | x_set_font_backend. | |
4087 | ||
4088 | * xfont.c (xfont_list): Don't try listing by :name property if the | |
4089 | name is not for XLFD. | |
4090 | ||
73acf815 | 4091 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4092 | |
4093 | * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM) | |
4094 | (LGLYPH_SET_TO): New macros. | |
4095 | (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment | |
4096 | element of G is vector or not. | |
4097 | (font_at): Extern it. | |
4098 | ||
4099 | * font.c: Include window.h. | |
4100 | (font_lispy_object): New function. | |
4101 | (font_prepare_composition): Check LGLYPH_FORM (g) to detect the | |
4102 | end of valid glyph. | |
4103 | (font_close_object): Fix getting (struct font *). | |
4104 | (font_at): New function. | |
4105 | (Ffont_get): If FONT is a font-object, get entity from it. | |
4106 | (Ffont_make_gstring): Initialize elements of glyphs with nil. | |
4107 | (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix | |
4108 | range check. | |
4109 | (Ffont_at): New function. | |
4110 | (syms_of_font): Defsubr Sfont_at. | |
4111 | ||
4112 | * xdisp.c (it_props): Move the entry for Qauto_composed to just | |
424c157f | 4113 | before the entry for Qcomposition. |
1f45f627 | 4114 | (handle_auto_composed_prop): Call auto-composition-function with 4 args. |
aca7a3d2 MB |
4115 | (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from |
4116 | the font in gstring. | |
4117 | (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check | |
4118 | LGLYPH_FORM (g) to detect the end of valid glyph. | |
4119 | (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if | |
4120 | we are composing with gstring. | |
4121 | ||
4122 | * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]: | |
4123 | Check if adjustment is vector or not. | |
4124 | ||
4125 | * Makefile.in (font.o): Make it depends on window.h. | |
4126 | ||
73acf815 | 4127 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4128 | |
4129 | * xterm.c (x_draw_composite_glyph_string_foreground): Check if | |
4130 | adjustment is vector or not. | |
4131 | ||
73acf815 | 4132 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
4133 | |
4134 | * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE. | |
4135 | ||
73acf815 | 4136 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4137 | |
4138 | * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) | |
4139 | (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. | |
4140 | (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. | |
4141 | ||
1f45f627 | 4142 | * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card. |
aca7a3d2 | 4143 | (DEVICE_DELTA): Fix typo. |
4c4475a8 GM |
4144 | (font_otf_gpos, font_prepare_compositio): Adjust for the change of |
4145 | LGLYPH format. | |
aca7a3d2 | 4146 | |
1f45f627 | 4147 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
4148 | the change of LGLYPH format. |
4149 | ||
73acf815 | 4150 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4151 | |
4152 | * ftfont.c (ftfont_list): Fix typo. | |
1f45f627 | 4153 | (ftfont_build_basic_charsets): Don't include letters with diacritics. |
aca7a3d2 | 4154 | |
880820fe | 4155 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
4156 | |
4157 | * xfaces.c (realize_non_ascii_face): Set face->extra to NULL. | |
4158 | ||
4159 | * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if | |
4160 | xftface_info is non-NULL. | |
4161 | ||
880820fe | 4162 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 | 4163 | |
1f45f627 | 4164 | * ftfont.c (ftfont_list): Move misplaced #endif. |
aca7a3d2 | 4165 | |
73acf815 | 4166 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4167 | |
4168 | * ftfont.c (ftfont_list): Pay attention to the case that | |
4169 | FC_CAPABILITY is not defined. | |
4170 | ||
73acf815 | 4171 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4172 | |
4173 | * xftfont.c (xftfont_open): Set charset related members to -1. | |
4174 | ||
1f45f627 GM |
4175 | * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of |
4176 | QCname. | |
aca7a3d2 MB |
4177 | (ftfont_open): Set charset related members to -1. |
4178 | ||
4179 | * fontset.c (Votf_script_alist): New variable. | |
4180 | (syms_of_fontset): Initialize it. | |
4181 | (fontset_font): Delete unused variable. | |
4182 | ||
4183 | * fontset.h (Votf_script_alist): Extern it. | |
4184 | ||
1f45f627 | 4185 | * font.c (font_find_for_lface): Optimize code. |
aca7a3d2 MB |
4186 | |
4187 | * font.h (font_close_object, font_merge_old_spec): Extern them. | |
4188 | ||
73acf815 | 4189 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4190 | |
4191 | * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables. | |
4192 | (syms_of_font): Initialize them. | |
4193 | (font_pixel_size): Allow float value in dpi. | |
1f45f627 GM |
4194 | (font_prop_validate_type): Delete. |
4195 | (font_prop_validate_symbol, font_prop_validate_style): Change argument. | |
4196 | Change caller. | |
4197 | (font_prop_validate_non_neg): Rename from font_prop_validate_size. | |
4198 | (font_prop_validate_extra): Delete. | |
aca7a3d2 MB |
4199 | (font_prop_validate_spacing): New function. |
4200 | (font_property_table): Add elements for all known properties. | |
1f45f627 GM |
4201 | (get_font_prop_index): Rename from check_font_prop_name. New |
4202 | argument FROM. Change caller. | |
aca7a3d2 | 4203 | (font_prop_validate): Validate all known properties. |
1f45f627 | 4204 | (font_put_extra): Delete argument force. Change caller. |
aca7a3d2 MB |
4205 | (font_expand_wildcards): Make it static. Fix the way of shrinking |
4206 | the possible range. | |
1f45f627 | 4207 | (font_parse_xlfd): Delete argument merge. Fix handling of RESX, |
aca7a3d2 | 4208 | RESY, SPACING, and AVGWIDTH. Don't validate property values here. |
1f45f627 | 4209 | Change caller. |
aca7a3d2 | 4210 | (font_unparse_xlfd): Handle dpi, spacing, and scalable properties. |
1f45f627 GM |
4211 | (font_parse_fcname): Delete argument merge. Fix parsing of point |
4212 | size. Don't validate properties values here. Change caller. | |
4213 | (font_unparse_fcname): Handle dpi, spacing, and scalable properties. | |
aca7a3d2 MB |
4214 | (font_open_by_name): Delete unused variable. |
4215 | (Ffont_spec): Likewise. Validate property values. | |
4216 | (Ffont_match_p): New function. | |
4217 | ||
4218 | * font.h (QCscalable): Extern it. | |
1f45f627 | 4219 | (font_parse_xlfd, font_parse_fcname): Adjust prototype. |
aca7a3d2 | 4220 | |
1f45f627 | 4221 | * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable. |
aca7a3d2 | 4222 | |
1f45f627 | 4223 | * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd. |
aca7a3d2 MB |
4224 | (xfont_list_pattern): New function. |
4225 | (xfont_list): Use xfont_list_pattern. | |
4226 | ||
73acf815 | 4227 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4228 | |
4229 | * font.h (Flist_fonts): EXFUN it. | |
4230 | ||
73acf815 | 4231 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
4232 | |
4233 | * w32term.c (w32_initialize): Add back smoothing_type and | |
4234 | smoothing_enabled definitions. | |
4235 | ||
73acf815 | 4236 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4237 | |
4238 | * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check | |
4239 | s->face->font on determining underline position. | |
4240 | ||
73acf815 | 4241 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4242 | |
4243 | * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field. | |
4244 | (font_has_char): Accept font-object too. | |
4245 | (font_find_for_lface): Try at first with a size specified in face. | |
4246 | ||
73acf815 | 4247 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4248 | |
4249 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to | |
4250 | font_open_by_name. | |
4251 | ||
73acf815 | 4252 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4253 | |
4254 | * font.h (QCspacing, QCdpi): Extern them. | |
4255 | (enum font_spacing): New enum. | |
4256 | (FONT_PIXEL_SIZE_QUANTUM): New macro. | |
4257 | ||
4258 | * font.c (POINT_TO_PIXEL): Don't divice POINT by 10. | |
4259 | (QCspacing, QCdpi): New variables. | |
4260 | (syms_of_font): Initialize them. | |
4261 | (font_pixel_size): New function. | |
4262 | (font_put_extra): New function. | |
4263 | (font_parse_xlfd): Fix handling of font size. Add QCdpi property | |
4264 | in FONT_EXTRA. | |
e9184ccb JB |
4265 | (font_parse_fcname): Handle enumenrated values (e.g. bold). |
4266 | Fix handling font size. Add QCname property that contains only | |
aca7a3d2 | 4267 | unknown properties. |
1f45f627 | 4268 | (font_score): Change argument. Change caller. Pay attention to |
aca7a3d2 | 4269 | FONT_PIXEL_SIZE_QUANTUM. |
4c4475a8 GM |
4270 | (font_sort_entites, font_list_entities, font_find_for_lface) |
4271 | (font_open_for_lface, font_open_by_name): Fix handling of font size. | |
1f45f627 | 4272 | (Ffont_spec): Add QCname property that contains only unknown properties. |
aca7a3d2 MB |
4273 | |
4274 | * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't | |
4275 | include weight in listing pattern, instead check weight of each | |
4276 | listed font. Don't include scalable in pattern. Pay attention to | |
4277 | FONT_PIXEL_SIZE_QUANTUM. | |
4278 | ||
73acf815 | 4279 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4280 | |
aca7a3d2 | 4281 | * font.c (font_parse_fcname): Fix parsing of point-size. |
1f45f627 | 4282 | (font_unparse_fcname): Produce symbolic names for style properties. |
aca7a3d2 MB |
4283 | (font_list_entities): Handle float size correctly. |
4284 | (font_open_by_name): Prefer `normal' property values if the name | |
4285 | doesn't specify them. | |
4286 | ||
4287 | * fontset.c (Finternal_char_font): Use font_get_name, not | |
4288 | Ffont_xlfd_name. | |
4289 | ||
4290 | * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for | |
4291 | FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing | |
4292 | pattern. Don't force scalable. | |
4293 | ||
4294 | * xftfont.c (xftfont_open): For generating a name, start from | |
4295 | 96-byte buffer. | |
4296 | ||
880820fe | 4297 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
4298 | |
4299 | * frame.h (x_new_fontset2): Fix prototype. | |
4300 | ||
73acf815 | 4301 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4302 | |
1f45f627 | 4303 | * font.h (struct font_driver): Delete member parse_name. |
aca7a3d2 MB |
4304 | (font_match_p, font_get_spec, font_parse_fcname) |
4305 | (font_unparse_fcname): Extern them. | |
1f45f627 | 4306 | (font_get_name): Adjust prototype. |
aca7a3d2 MB |
4307 | |
4308 | * font.c (XLFD_SMALLNUM_MASK): Delete this macro. | |
4309 | (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it. | |
4310 | (font_expand_wildcards): Fix handling ENCODING field. Avoid | |
4311 | unnecessary checks for weight, slant, and swidth. | |
4312 | (font_parse_fcname): New function. | |
4313 | (font_unparse_fcname): New function. | |
4314 | (font_parse_name): New function. | |
4315 | (font_match_p): New function. | |
1f45f627 | 4316 | (font_get_name): Change return value to Lisp string. |
aca7a3d2 MB |
4317 | (font_get_spec): New function. |
4318 | (Qunspecified, Qignore_defface): Don't extern them. | |
4319 | (font_find_for_lface): Assume that LFACE is fully specified. | |
4320 | (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font | |
4321 | object, use it for FACE. | |
4322 | (font_open_by_name): Call Ffont_spec with QCname prop. Don't call | |
4323 | driver->parse_name. | |
4324 | (Ffont_spec): Call font_parse_name, not font_parse_xlfd. | |
4325 | ||
1f45f627 GM |
4326 | * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust |
4327 | prototype. | |
aca7a3d2 | 4328 | |
1f45f627 GM |
4329 | * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete |
4330 | argument F. Don't call Fnew_fontset. Instead, directly call | |
aca7a3d2 MB |
4331 | make_fontset. |
4332 | ||
1f45f627 | 4333 | * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype. |
aca7a3d2 | 4334 | |
1f45f627 | 4335 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change |
aca7a3d2 MB |
4336 | of x_new_fontset2. |
4337 | ||
4338 | * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans) | |
4339 | (Qsans__serif): New variables. | |
4340 | (ftfont_generic_family_list): New variable. | |
4341 | (syms_of_ftfont): Initialize the above variables. | |
1f45f627 | 4342 | (ftfont_pattern_entity): Delete argument NAME. |
aca7a3d2 MB |
4343 | (ftfont_list_generic_family): New function. |
4344 | (ftfont_parse_name): Delete this function. | |
1f45f627 | 4345 | (ftfont_list): Try generic family only when FcFontList found no font. |
aca7a3d2 MB |
4346 | (ftfont_list_family): Fix args to FcObjectSetBuild. |
4347 | ||
4348 | * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font | |
4349 | object in attrs[LFACE_FONT_INDEX]. | |
4350 | (set_lface_from_font_name): Cancel all changes for font-backend. | |
4351 | (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New | |
4352 | function. | |
4353 | (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a | |
4354 | font object in QCfont attribute. | |
4355 | (set_font_frame_param) [USE_FONT_BACKEND]: Likewise. | |
4356 | (realize_default_face) [USE_FONT_BACKEND]: Call | |
4357 | set_lface_from_font_and_fontset. | |
4358 | ||
4359 | * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also | |
4360 | "fixed", and signal error here if no suitable font was found. | |
4361 | ||
4362 | * xfont.c (xfont_parse_name): Delete this function. | |
4363 | ||
4364 | * xftfont.c (xftfont_open): Change coding style of error | |
4365 | handling. Generate fontconfig's fontname pattern. | |
4366 | ||
4367 | * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp. | |
4368 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro. | |
4369 | ||
4370 | * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments. | |
4371 | Both args FONTSET and FONT_OBJECT must be existing ones. | |
4372 | ||
73acf815 | 4373 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4374 | |
4375 | * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR. | |
4376 | ||
73acf815 | 4377 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4378 | |
4379 | * xfont.c (xfont_open, xfont_encode_char): Fix typo. | |
4380 | ||
4381 | * font.h (struct font): Fix typo. | |
4382 | ||
4383 | * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to | |
4384 | XLFD_XXX_INDEX. | |
4385 | (enum xlfd_field_mask): New enum. | |
1f45f627 | 4386 | (intern_font_field): Changed argument. Change caller. If digits |
aca7a3d2 MB |
4387 | are followed by non-digits, return a symbol. |
4388 | (font_expand_wildcards): New function. | |
4389 | (font_parse_xlfd): Fix wildcard handling. | |
4390 | (Ffont_spec): If :name is specified, reflect the info in the other | |
4391 | properties. | |
4392 | ||
4393 | * ftfont.c (ftfont_pattern_entity): Fix typo. | |
4394 | (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of | |
4395 | locale. | |
4396 | ||
73acf815 | 4397 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4398 | |
4399 | * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them. | |
4400 | ||
1f45f627 | 4401 | * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c. |
aca7a3d2 MB |
4402 | (font_unparse_xlfd): Fix argument type declaration. Append "*" if |
4403 | registry doesn't specify encoding part. | |
4404 | (font_find_for_lface): Pay attention to LFACE_FONT_INDEX. | |
4405 | (font_open_by_name): At first try parsing the name. | |
4406 | (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp | |
4407 | as Lisp symbols. | |
4408 | ||
4409 | * fontset.c (reorder_font_vector): Pay attention to the case that | |
4410 | the 3rd element of font_def is nil. | |
4411 | (fontset_font): For the default fontset, append one more fontset | |
4412 | elements for a script-based font specification. Don't add script | |
4413 | attribute on finding a font. | |
4414 | (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the | |
4415 | font name. | |
4416 | (fontset_ascii_font): If a font can't be opened, return nil. | |
4417 | ||
1f45f627 | 4418 | * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c. |
aca7a3d2 MB |
4419 | (ftfont_pattern_entity): New function. |
4420 | (ftfont_get_cache): Assume that freetype_font_cache is already | |
4421 | initialized. | |
4422 | (ftfont_list): Handle the case that a file is specified in font | |
4423 | name. Use ftfont_pattern_entity to generate entities. | |
4424 | (ftfont_has_char): Check if the pattern contains FC_CHARSET. | |
4425 | (syms_of_ftfont): Initialize freetype_font_cache. | |
4426 | ||
4427 | * xftfont.c (xftfont_open): Make the font name fontconfig's | |
4428 | style. Add BLOCK_INPUT and UNBLOCK_INPUT. | |
4429 | (xftfont_close): Free font->font.name if not NULL. | |
4430 | ||
4431 | * xfont.c (xfont_list): If script is specified for a font, return | |
4432 | null_vector. | |
4433 | (xfont_list_family): Declare argument type. | |
4434 | ||
4435 | * xfaces.c (set_lface_from_font_name): If a font doesn't have a | |
4436 | name, set LFACE_FONT (lface) to nil. | |
4437 | ||
4438 | * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded, | |
4439 | return Qnil. | |
4440 | ||
73acf815 | 4441 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4442 | |
1f45f627 | 4443 | * emacs.c (main): Check -enable-font-backend arg after the check of -nl. |
aca7a3d2 MB |
4444 | (standard_args): Add "-enable-font-backend". |
4445 | ||
73acf815 | 4446 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4447 | |
4448 | * xftfont.c (xftfont_default_fid): Set fid_known to 1. | |
4449 | (struct xftdraw_list, xftdraw_list): Delete them. | |
4450 | (register_xftdraw, check_xftdraw): Delete them. | |
4451 | (xftfont_prepare_face): Don't call register_xftdraw. | |
4452 | (xftfont_done_face): Don't call check_xftdraw. | |
4453 | (xftfont_draw): Get backroudn color only when with_background is | |
4454 | nonzero. | |
4455 | ||
4456 | * xfont.c (xfont_encode_char): Fix calculation of char2b. | |
4457 | ||
73acf815 | 4458 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4459 | |
4460 | These changes are for the new font handling codes. | |
4461 | ||
4462 | * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@, | |
4463 | @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. | |
4464 | (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@. | |
4465 | (FONTSRC, FONTOBJ): New variables. | |
4466 | (obj): Add $(FONTOBJ). | |
4467 | (SOME_MACHINE_OBJECTS): Lib_X11_Lib. | |
4468 | (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and | |
4469 | @LIBOTF_LIBS@. | |
4470 | (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets. | |
1f45f627 | 4471 | (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC). |
aca7a3d2 | 4472 | |
1f45f627 | 4473 | * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files. |
aca7a3d2 MB |
4474 | |
4475 | * character.h (Vscript_representative_chars): Extern it. | |
4476 | ||
4477 | * character.c (Vscript_representative_chars): New variable. | |
4478 | (syms_of_character): Declare it as a Lisp variable. | |
4479 | ||
4480 | * composite.c (get_composition_id) [USE_FONT_BACKEND]: If | |
4481 | enable_font_backend is nonzero, accept the composition method | |
4482 | COMPOSITION_WITH_GLYPH_STRING. | |
4483 | ||
4484 | * composite.h (enum composition_method) [USE_FONT_BACKEND]: New | |
4485 | enumeration COMPOSITION_WITH_GLYPH_STRING. | |
4486 | ||
aca7a3d2 MB |
4487 | * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New |
4488 | members clip_x, clip_y, clip_width, and clip_height. | |
4489 | (struct face) [USE_FONT_BACKEND]: New members font_info and extra. | |
4490 | ||
4491 | * emacs.c (main) [USE_FONT_BACKEND]: Handle arg | |
4492 | --enable-font-backend. Call syms_of_font. | |
4493 | ||
4494 | * fns.c (assoc_no_quit): New function. | |
4495 | ||
4496 | * fontset.h (FONT_INFO_FROM_FACE): New macro. | |
4497 | (face_for_font, new_fontset_from_font) | |
4498 | (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them. | |
4499 | ||
4500 | * fontset.c [USE_FONT_BACKEND]: Include "font.h". | |
4501 | (fontset_font, fontset_ascii, face_for_char) | |
4502 | (make_fontset_for_ascii_face, Ffont_info) | |
4503 | (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend | |
4504 | is nonzero, use font-backend mechanism. | |
4505 | (find_font_encoding): Make it non-static. | |
4506 | (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]: | |
4507 | New functions. | |
4508 | ||
4509 | * frame.h (struct frame): New members resx and resy. | |
4510 | (struct frame) [USE_FONT_BACKEND]: New member font_driver_list. | |
4511 | (x_new_fontset2) [USE_FONT_BACKEND]: Extern it. | |
4512 | ||
4513 | * frame.c [USE_FONT_BACKEND]: Include "font.h". | |
1f45f627 | 4514 | (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism. |
aca7a3d2 MB |
4515 | |
4516 | * lisp.h (assoc_no_quit): Extern it. | |
4517 | ||
4518 | * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h". | |
4519 | Through out the file, use FONT_INFO_FROM_FACE instead of | |
4520 | FONT_INFO_FROM_ID, use get_per_char_metric instead of | |
4521 | rif->per_char_metric. | |
4522 | (handle_composition_prop) [USE_FONT_BACKEND]: If the composition | |
4523 | method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '. | |
4524 | (get_glyph_face_and_encoding, fill_composite_glyph_string) | |
4525 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
4526 | (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is | |
4527 | nonzero, use font-backend mechanism. | |
4528 | (get_per_char_metric): New function. | |
4529 | ||
4530 | * xfaces.c [USE_FONT_BACKEND]: Include "font.h". | |
4531 | (set_lface_from_font_name) | |
4532 | (set_font_frame_param, free_realized_face) | |
4533 | (prepare_face_for_display, clear_face_gcs) | |
4534 | (Finternal_set_font_selection_order, realize_x_face) | |
4535 | [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use | |
4536 | font-backend mechanism. | |
1f45f627 | 4537 | (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table. |
aca7a3d2 MB |
4538 | (load_face_font) [USE_FONT_BACKEND]: Abort. |
4539 | (face_symbolic_value, face_symbolic_weight, face_symbolic_slant) | |
1f45f627 | 4540 | (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions. |
aca7a3d2 MB |
4541 | |
4542 | * xfns.c [USE_FONT_BACKEND]: Include "font.h". | |
4543 | (x_default_font_parameter) [USE_FONT_BACKEND]: New function. | |
4544 | (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is | |
4545 | nonzero, register all available font drivers. Call | |
4546 | x_default_font_parameter for deciding a font. | |
4547 | (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise. | |
4548 | ||
4549 | * xterm.c [USE_FONT_BACKEND]: Include "font.h". | |
4550 | (x_set_mouse_face_gc, x_set_glyph_string_clipping) | |
4551 | (x_set_glyph_string_clipping_exactly) | |
4552 | (x_compute_glyph_string_overhangs) | |
4553 | (x_draw_glyph_string_foreground) | |
4554 | (x_draw_composite_glyph_string_foreground, x_draw_glyph_string) | |
4555 | (x_free_frame_resources) [USE_FONT_BACKEND]: If | |
4556 | enable_font_backend is nonzero, use font-backend mechanism. | |
4557 | (x_new_fontset2) [USE_FONT_BACKEND]: New function. | |
4558 | ||
73acf815 | 4559 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4560 | |
fcb314b2 | 4561 | * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from |
aca7a3d2 MB |
4562 | system_eol_type. |
4563 | (syms_of_coding): Initialize system_eol_type. | |
4564 | ||
fcb314b2 GM |
4565 | * process.c (Fset_process_coding_system): Inherit system's eol |
4566 | format if necessary. | |
aca7a3d2 | 4567 | |
73acf815 | 4568 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4569 | |
4570 | * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch. | |
4571 | ||
73acf815 | 4572 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4573 | |
4574 | * coding.c (decode_eol): Pay attention to buffer relocation in | |
4575 | del_range_2. | |
4576 | (decode_coding): Call decode_eol before restoring undo_list. | |
4577 | ||
73acf815 | 4578 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4579 | |
4580 | * charset.c (Fdefine_charset_internal): Fix setting of | |
4581 | emacs_mule_bytes. | |
4582 | ||
73acf815 | 4583 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4584 | |
4585 | * keyboard.c (read_char): Check if C is a character or not before | |
4586 | looking up Vkeyboard_translate_table. | |
4587 | ||
73acf815 | 4588 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4589 | |
4590 | * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix | |
4591 | condition to terminate the loop. | |
4592 | ||
73acf815 | 4593 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4594 | |
4595 | * coding.c (produce_composition): Compare charbuf[i] instead of | |
4596 | args[i] against 0. | |
4597 | (Fterminal_coding_system): Use EQ to compare Lisp objects. | |
4598 | ||
73acf815 | 4599 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4600 | |
4601 | * coding.c (DECODE_COMPOSITION_START): If the source is short, set | |
4602 | coding->result to CODING_RESULT_INSUFFICIENT_SRC. | |
4603 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of | |
4604 | detect_coding. | |
4605 | (emacs_mule_char): Handle old style (Emacs 20) component character | |
4606 | of a composition. | |
4c4475a8 GM |
4607 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20) |
4608 | (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a | |
4609 | composition rule. | |
aca7a3d2 MB |
4610 | (decode_coding_emacs_mule): Handle invalid bytes correctly. |
4611 | ||
73acf815 | 4612 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4613 | |
4614 | * coding.c (encode_coding_ccl): Allocate destination dynamically | |
4615 | when necessary. | |
4616 | ||
73acf815 | 4617 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4618 | |
4619 | * ccl.c (Fccl_execute_on_string): Fix the condition of terminating | |
4620 | the loop. When quitted, show a proper error message. | |
4621 | ||
73acf815 | 4622 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4623 | |
aca7a3d2 MB |
4624 | * xterm.c (x_set_glyph_string_clipping_exactly): Set |
4625 | src->clip_head and src->clip_tail temporarily instead of src->hl. | |
4626 | ||
4627 | * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte | |
4628 | character sequence. | |
4629 | (Fccl_execute_on_string): Use ASET, not XSET. | |
4630 | ||
73acf815 | 4631 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4632 | |
1f45f627 | 4633 | * search.c (search_buffer): Fix handling of "\\" in a trivial regexp. |
aca7a3d2 | 4634 | |
73acf815 | 4635 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4636 | |
4637 | * coding.c (decode_coding): Fix the condition of terminating the | |
4638 | decoding loop. | |
4639 | ||
73acf815 | 4640 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4641 | |
4642 | * data.c (Faset): On setting a character bigger than 255 in a | |
1f45f627 | 4643 | unibyte string, signal an error instead of make the string multibyte. |
aca7a3d2 | 4644 | |
73acf815 | 4645 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4646 | |
4647 | * charset.c (map_charset_chars): Fix for ascii-compatible charset | |
4648 | made by a mapping table. | |
4649 | ||
73acf815 | 4650 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4651 | |
4652 | * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or | |
4653 | not. | |
4654 | (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. | |
4655 | (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. | |
4656 | ||
4657 | * xterm.c (x_draw_composite_glyph_string_foreground): Check | |
4658 | s->face is NULL or not. | |
4659 | ||
73acf815 | 4660 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4661 | |
4662 | * xterm.c (x_set_glyph_string_clipping_exactly): New function. | |
4663 | (x_draw_glyph_string): Fix drawing of right_overhang and | |
4664 | left_overhang around/on cursor. | |
4665 | ||
1f45f627 | 4666 | * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs. |
aca7a3d2 | 4667 | |
73acf815 | 4668 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4669 | |
4670 | * xdisp.c (x_produce_glyphs): Handle composition with TAB. | |
4671 | ||
73acf815 | 4672 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4673 | |
4c4475a8 GM |
4674 | * coding.c (Fdefine_coding_system_internal) |
4675 | (Fdefine_coding_system_alias): Avoid a duplicated element in | |
4676 | Vcoding_system_alist. | |
aca7a3d2 | 4677 | |
73acf815 | 4678 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4679 | |
4680 | * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. | |
4681 | ||
fcb314b2 | 4682 | * coding.c (Qcoding_system_define_form): New variable. |
aca7a3d2 MB |
4683 | (syms_of_coding): Intern and staticpro it. |
4684 | (Fcoding_system_p): Check Qcoding_system_define_form. | |
1f45f627 | 4685 | (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM. |
aca7a3d2 MB |
4686 | |
4687 | * coding.h (CODING_SYSTEM_P): If ID is not available, call | |
4688 | Fcoding_system_p. | |
4689 | (CHECK_CODING_SYSTEM): If ID is not available, call | |
4690 | Fcheck_coding_system. | |
4c4475a8 GM |
4691 | (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID): |
4692 | Try also Fcheck_coding_system. | |
aca7a3d2 | 4693 | |
73acf815 | 4694 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4695 | |
aca7a3d2 MB |
4696 | * coding.c (code_conversion_restore): GCPRO arg. |
4697 | ||
73acf815 | 4698 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4699 | |
4700 | * character.c (lisp_string_width): Check multibyteness of STRING. | |
4701 | ||
73acf815 | 4702 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4703 | |
4704 | * macterm.c (mac_encode_char): Call ccl_driver with the last arg | |
4705 | Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. | |
4706 | (decode_mac_font_name): Use decode_coding_c_string instead of | |
4707 | decode_coding. | |
4708 | (x_load_font): Initialize fontp->fontset to -1. Set | |
4709 | fontp->encoding_type. | |
4710 | ||
73acf815 | 4711 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4712 | |
4713 | * search.c (search_buffer): Give up BM search on case-fold-search | |
4714 | if one of a target character has a case-equivalence of different | |
4715 | byte length even if that target charcter is an ASCII. | |
1f45f627 GM |
4716 | (simple_search): Fix calculation of byte length of matched text. |
4717 | (boyer_moore): Fix handling of case-equivalent multibyte characters. | |
aca7a3d2 | 4718 | |
73acf815 | 4719 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4720 | |
4721 | * coding.c (decode_coding): Fix handling of invalid bytes. | |
4722 | ||
73acf815 | 4723 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4724 | |
4725 | * xterm.c (handle_one_xevent): Handle keysyms directly mapped to | |
4726 | Unicode characters. | |
4727 | ||
73acf815 | 4728 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4729 | |
4730 | * coding.c (encode_coding_object): If a pre-write-conversion | |
4731 | function makes a new buffer, kill it. | |
4732 | ||
73acf815 | 4733 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4734 | |
4735 | * coding.c (QCascii_compatible_p): New variable. | |
4736 | (syms_of_coding): Initialize it. | |
4c4475a8 GM |
4737 | (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before |
4738 | calling string_char. | |
aca7a3d2 MB |
4739 | (record_conversion_result): Add `default:' case. |
4740 | (coding_charset_list): Delete unused variable `coding_type'. | |
4741 | (Fdefine_coding_system_internal): Add `ascii-compatible-p' | |
4742 | property in the plist of the coding system. | |
4743 | (Fcoding_system_put): Check QCascii_compatible_p. | |
4744 | ||
73acf815 | 4745 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
4746 | |
4747 | * xfaces.c (Finternal_lisp_face_equal_p): Restore previously | |
4748 | removed calculation of frame `f', as it's now used. | |
4749 | ||
73acf815 | 4750 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4751 | |
1f45f627 | 4752 | * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined. |
aca7a3d2 MB |
4753 | (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. |
4754 | (UNIDATA): New variable. | |
4755 | (${lispsource}international/charprop.el): Depends on ${UNIDATA}. | |
4756 | (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run | |
4757 | $(RUN_TEMACS) unconditionally. | |
4758 | ||
73acf815 | 4759 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4760 | |
1f45f627 | 4761 | * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary. |
aca7a3d2 MB |
4762 | (admindir): New variable. |
4763 | ($(lispsource)international/charprop.el): New target. | |
4764 | ||
73acf815 | 4765 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 4766 | |
1f45f627 | 4767 | * character.c (chars-in-region): Remove obsolete function. |
aca7a3d2 MB |
4768 | (syms_of_character): Remove its initialization. |
4769 | ||
73acf815 | 4770 | 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net> |
aca7a3d2 MB |
4771 | |
4772 | * w32select.c (validate_coding_system) | |
4773 | (setup_windows_coding_system): New functions. | |
4774 | (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use | |
4775 | setup_windows_coding_system. | |
4776 | (setup_config, Fw32_get_clipboard_data): Use | |
4777 | validate_coding_system. | |
4778 | (Fx_selection_exists): Move call to setup_config to a place | |
1f45f627 | 4779 | where signals are allowed. |
aca7a3d2 MB |
4780 | |
4781 | * lisp.h (Fcoding_system_base, Fcoding_system_eol_type) | |
4782 | (Fcheck_coding_system): Add declarations. | |
4783 | ||
73acf815 | 4784 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4785 | |
1f45f627 | 4786 | * charset.c (load_charset_map_from_vector): Fix for the first iteration. |
aca7a3d2 | 4787 | |
73acf815 | 4788 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4789 | |
4790 | * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp | |
4791 | string as the second argument for x_new_fontset. | |
4792 | ||
73acf815 | 4793 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4794 | |
4795 | * coding.c (decode_coding_object): Use safe_call1 instead of call1. | |
4796 | (encode_coding_object): Use safe_call instead of call2. | |
4797 | ||
73acf815 | 4798 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4799 | |
1f45f627 | 4800 | * fontset.c (Fset_fontset_font): Check family element of a given vector. |
aca7a3d2 MB |
4801 | |
4802 | * Makefile.in (lisp): Include charprop.el. | |
4803 | ||
73acf815 | 4804 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4805 | |
4806 | * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash. | |
4807 | Not sure if it's unnecessary. | |
4808 | ||
73acf815 | 4809 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
4810 | |
4811 | * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out | |
4812 | some possibly unnecessary fontset checking code that crashed | |
1f45f627 | 4813 | when creating a new frame. |
aca7a3d2 | 4814 | |
73acf815 | 4815 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4816 | |
4817 | * xfaces.c (merge_faces): Fix argument to lookup_derived_face and | |
4818 | lookup_face. | |
4819 | ||
4820 | * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face. | |
4821 | ||
1f45f627 | 4822 | * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face. |
aca7a3d2 | 4823 | |
73acf815 | 4824 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4825 | |
73acf815 | 4826 | * coding.c: Cancel the change done in HEAD on 2008-02-01. |
aca7a3d2 MB |
4827 | (coding_charset_list): New function. |
4828 | ||
4829 | * coding.h (coding_charset_list): Extern it. | |
4830 | ||
73acf815 | 4831 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4832 | |
4833 | * fontset.c (Fset_fontset_font): Call find_font_encoding with | |
4834 | concatenation of family and registry. | |
4835 | ||
73acf815 | 4836 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4837 | |
4838 | * character.h (BYTE8_STRING): Fix typo. | |
4839 | ||
4840 | * editfns.c (Ftranslate_region_internal): Don't convert unibyte | |
4841 | string to multibyte (sync to HEAD). | |
4842 | ||
4843 | * casefiddle.c (casify_region): Handle changes in byte-length | |
4844 | using replace_range_2 (sync to HEAD). | |
4845 | ||
73acf815 | 4846 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
4847 | |
4848 | * chartab.c (map_char_table): GCPRO table and arg. | |
4849 | ||
73acf815 | 4850 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4851 | |
4852 | * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is | |
4853 | already at limit. | |
4854 | ||
73acf815 | 4855 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4856 | |
4857 | * fontset.c (fs_load_font): Use fast_string_match_ignore_case | |
4858 | instead of fast_c_string_match_ignore_case. | |
1f45f627 | 4859 | (find_font_encoding): Change argument to Lisp_Object. Use |
aca7a3d2 | 4860 | fast_string_match_ignore_case instead of |
1f45f627 | 4861 | fast_c_string_match_ignore_case. Change caller. |
aca7a3d2 | 4862 | |
73acf815 | 4863 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4864 | |
4865 | * xdisp.c (get_next_display_element): In unibyte case, decide to | |
4866 | display in octal form by checking a chacter by | |
4867 | UNIBYTE_CHAR_HAS_MULTIBYTE_P. | |
4868 | ||
1f45f627 | 4869 | * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table. |
aca7a3d2 MB |
4870 | |
4871 | * character.c (unibyte_has_multibyte_table): New variable. | |
4872 | ||
4873 | * character.h (unibyte_has_multibyte_table): Extern it. | |
4874 | (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro. | |
4875 | ||
73acf815 | 4876 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4877 | |
4878 | * coding.c (encode_coding_iso_2022): Fix handling of charset | |
4879 | annotation. | |
4880 | ||
73acf815 | 4881 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4882 | |
4883 | * coding.c (setup_coding_system): If coding_system is nil, use | |
4884 | Qundecided. | |
4885 | (Fterminal_coding_system): Return nil if terminal coding system is | |
4886 | `undecided'. | |
4887 | (syms_of_coding): Define coding-system `undecided' here. Setup | |
4888 | terminal_coding as `undecided'. | |
4889 | ||
73acf815 | 4890 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4891 | |
4892 | * xdisp.c (message_dolog, set_message_1): Call | |
4893 | unibyte_char_to_multibyte with arg type int. | |
4894 | ||
aca7a3d2 MB |
4895 | * lread.c (read1): Fix reading of a char-table. |
4896 | ||
4897 | * print.c (print_object): Include sub char-table in cicularities | |
4898 | detection. | |
4899 | ||
73acf815 | 4900 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4901 | |
4902 | * keymap.c (where_is_internal_2): Fix for the case that KEY is a | |
1f45f627 | 4903 | cons. Append the found sequences in car of ARGS instead of prepending. |
aca7a3d2 | 4904 | |
73acf815 | 4905 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4906 | |
4907 | * fileio.c (report_file_error): Make a unibyte string from | |
4908 | strerror (errorno). | |
4909 | (Fsubstitute_in_file_name): Fix the arg to | |
4910 | unibyte_char_to_multibyte. It is evaluated twice. | |
4911 | ||
73acf815 | 4912 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4913 | |
4914 | * charset.h (CHAR_CHARSET): Shortcut for ASCII case. | |
4915 | ||
73acf815 | 4916 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4917 | |
4918 | * coding.c (detect_coding_utf_16): Don't set detect_info->found if | |
4919 | BOM is not found. | |
4c4475a8 GM |
4920 | (detect_coding, detect_coding_system): Optimization for ISO-2022 |
4921 | when no 8-bit data is found. | |
aca7a3d2 | 4922 | |
73acf815 | 4923 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
4924 | |
4925 | * w32fns.c (x_to_w32_font): Update to use new coding struct. | |
4926 | ||
73acf815 | 4927 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4928 | |
4c4475a8 GM |
4929 | * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of |
4930 | CHARS. | |
aca7a3d2 | 4931 | |
73acf815 | 4932 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
4933 | |
4934 | * macterm.c (mac_encode_char): Add charset argument and update | |
4935 | to use encoding_type. | |
2a2e8de7 | 4936 | (x_new_font, x_new_fontset): Merge in changes from xterm.c; |
1f45f627 GM |
4937 | switch to pure fontset. |
4938 | (decode_mac_font_name): Temporarily remove decoding. | |
4939 | (x_font_name_to_mac_font_name): Temporarily remove encoding. | |
4940 | (x_load_font): Temporarily remove encoding. | |
aca7a3d2 | 4941 | |
73acf815 | 4942 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4943 | |
4944 | * xfaces.c (Fface_font): If frame is not on a window system, | |
4945 | ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't | |
4946 | refer to face->font. | |
4947 | (split_font_name_into_vector, build_font_name_from_vector) | |
4948 | (lookup_non_ascii_face, realize_non_ascii_face): Define them only | |
4949 | whne HAVE_WINDOW_SYSTEM is defined. | |
4950 | ||
73acf815 | 4951 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4952 | |
4953 | * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. | |
4954 | (x_produce_glyphs): Fix setting of members of cmp in case | |
1f45f627 | 4955 | cmp->glyph_len is zero. |
aca7a3d2 | 4956 | |
1f45f627 | 4957 | * fontset.c (Fset_fontset_font): Fix docstring. |
aca7a3d2 MB |
4958 | (Ffontset_info): Make it backward compatible. New arg ALL. |
4959 | ||
73acf815 | 4960 | 2008-02-01 Kim F. Storm <storm@cua.dk> |
aca7a3d2 MB |
4961 | |
4962 | * process.c (read_process_output): Grow decoding_buf when needed; | |
4963 | this could cause a crash in allocate_string and compact_small_strings. | |
4964 | ||
73acf815 | 4965 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4966 | |
1f45f627 | 4967 | * fileio.c (WRITE_BUF_SIZE): Delete this macro. |
aca7a3d2 | 4968 | |
73acf815 | 4969 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4970 | |
4971 | * coding.c (setup_coding_system): Set coding->common_flags | |
4972 | correctly for raw-text. | |
4973 | (consume_chars): On encoding unibyte text by raw-text, don't check | |
4974 | multibyte form. | |
1f45f627 | 4975 | (encode_coding): On encoding by raw-text, never use translation tables. |
aca7a3d2 MB |
4976 | |
4977 | * fileio.c (e_write): Short cut for the case of no encoding. | |
4978 | ||
73acf815 | 4979 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4980 | |
4c4475a8 GM |
4981 | * coding.c (detect_coding, detect_coding_system): Delete unused |
4982 | variables. | |
aca7a3d2 | 4983 | |
73acf815 | 4984 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4985 | |
4986 | * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. | |
4987 | (consume_chars): Fix handling of 8-bit bytes in unibyte source. | |
4988 | ||
73acf815 | 4989 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4990 | |
4991 | * coding.c (Ffind_coding_systems_region_internal): Include | |
4992 | raw-text and no-conversion in the result. | |
4993 | ||
73acf815 | 4994 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4995 | |
1f45f627 | 4996 | * fontset.c (find_font_encoding): Return `ascii' for unknown encoding. |
aca7a3d2 MB |
4997 | (load_font_get_repertory): Delete unnecessary check of ENCODING of |
4998 | FONT_DEF. | |
4999 | (font_def_arg, add_arg, from_arg, to_arg): New args. | |
1f45f627 | 5000 | (set_fontset_font): Change argument. |
aca7a3d2 MB |
5001 | (Fset_fontset_font): Fix for the case that TARGET is a script |
5002 | name and charset name. | |
5003 | (new_fontset_from_font_name): Fix argument to Fnew_fontset. | |
5004 | ||
73acf815 | 5005 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5006 | |
1f45f627 GM |
5007 | * fontset.c (fontset_font): Rename from fontset_face. Change return |
5008 | value. | |
4c4475a8 GM |
5009 | (face_suitable_for_char_p, face_for_char): Adjust for the change |
5010 | of fontset_font. | |
aca7a3d2 MB |
5011 | (make_fontset_for_ascii_face): Fix setting of the fontset element |
5012 | for ASCII. | |
5013 | (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR | |
5014 | to get a font name. | |
1f45f627 | 5015 | (Ffontset_info): Adjust for the change of fontset_font. |
aca7a3d2 | 5016 | |
fcb314b2 | 5017 | * coding.c (emacs_mule_char): Check invalid code more regidly. |
aca7a3d2 MB |
5018 | |
5019 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
5020 | (LEADING_CODE_LATIN_1_MAX): Delete these macros. | |
5021 | ||
73acf815 | 5022 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5023 | |
fcb314b2 | 5024 | * editfns.c (check_translation): New function. |
aca7a3d2 MB |
5025 | (Ftranslate_region_internal): Handle M:N mapping. |
5026 | ||
73acf815 | 5027 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5028 | |
5029 | * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. | |
5030 | ||
73acf815 | 5031 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5032 | |
5033 | * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of | |
5034 | goto invalid_code. | |
5035 | (decode_coding_iso_2022): Fix handling of invalid designation. | |
5036 | ||
5037 | * fileio.c (Finsert_file_contents): Be sure to call unbind_to | |
5038 | after calling code_conversion_save. | |
5039 | ||
73acf815 | 5040 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5041 | |
5042 | * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. | |
5043 | ||
5044 | * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. | |
5045 | ||
5046 | * fontset.c: Include "intervals.h". | |
5047 | (fontset_face): Fix comparing of Lisp_Objects. | |
4c4475a8 GM |
5048 | (free_face_fontset, new_fontset_from_font_name): Fix |
5049 | Lisp_Object/int mixup. | |
aca7a3d2 MB |
5050 | |
5051 | * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. | |
5052 | ||
5053 | * coding.c: Add many prototypes for static functions. | |
5054 | (get_translation_table): Allow max_lookup to be NULL. | |
2a2e8de7 | 5055 | (decode_coding, Ffind_coding_systems_region_internal) |
4c4475a8 GM |
5056 | (Funencodable_char_position, Fcheck_coding_systems_region): Call |
5057 | get_translation_table with max_lookup NULL. | |
aca7a3d2 | 5058 | |
73acf815 | 5059 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5060 | |
5061 | * coding.c (get_translation_table): Declare it as Lisp_Object. | |
5062 | (LOOKUP_TRANSLATION_TABLE): New macro. | |
4c4475a8 GM |
5063 | (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE |
5064 | instead of CHAR_TABLE_REF. | |
aca7a3d2 | 5065 | |
73acf815 | 5066 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5067 | |
1f45f627 | 5068 | * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of |
aca7a3d2 MB |
5069 | annotation data format. |
5070 | (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): | |
1f45f627 | 5071 | Change arguments FROM and TO to single argument NCHARS. Change caller. |
4c4475a8 | 5072 | (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule) |
aca7a3d2 | 5073 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) |
4c4475a8 GM |
5074 | (decode_coding_ccl, decode_coding_charset): Pay attention to |
5075 | coding->charbuf_used. | |
aca7a3d2 MB |
5076 | (get_translation): New function. |
5077 | (produce_chars): New arguments translation_table and last_block. | |
5078 | Translate characters here. Return number of carryover chars. | |
1f45f627 GM |
5079 | Change caller. |
5080 | (produce_composition): New argument pos. Change caller. | |
5081 | Adjust for the change of annotation data format. | |
aca7a3d2 MB |
5082 | (produce_charset, produce_annotation): Likewise. |
5083 | (decode_coding, encode_coding): Don't call translate_chars. | |
1f45f627 GM |
5084 | (consume_chars): New arg translation_table. Change caller. |
5085 | (translate_chars): Delete. | |
5086 | (syms_of_coding): Make translation-table's number of extra slots 2. | |
aca7a3d2 | 5087 | |
73acf815 | 5088 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5089 | |
5090 | * search.c (simple_search): Fix setting this_pos_byte in backward | |
5091 | search. | |
5092 | ||
5093 | * coding.c (detect_coding_emacs_mule): Fix counting of encoded | |
5094 | byte sequence. | |
5095 | (detect_coding_ccl): Fix setting of the variable valids. | |
5096 | ||
73acf815 | 5097 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5098 | |
5099 | * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. | |
5100 | ||
5101 | * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. | |
5102 | ||
1f45f627 | 5103 | * editfns.c (Ftranslate_region_internal): Rename from |
aca7a3d2 MB |
5104 | Ftranslate_region. Accept a char-table in TABLE. |
5105 | (syms_of_editfns): Defsubr Stranslate_region_internal. | |
5106 | ||
5107 | * xfaces.c (set_lface_from_font_name): If a font is specified for | |
5108 | a frame, generate a fontset from the font. | |
5109 | (build_scalable_font_name): If the scalable font is requested for | |
5110 | a specific size, don't change that size. | |
5111 | (try_font_list): Try a scalable font also in the case that a | |
1f45f627 | 5112 | pattern string is specified. |
aca7a3d2 | 5113 | |
73acf815 | 5114 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5115 | |
5116 | * xfaces.c (Fface_font): New optional arg CHARACTER. | |
5117 | ||
73acf815 | 5118 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5119 | |
5120 | * charset.h (CHARSET_OFFSET): New macro. | |
5121 | ||
73acf815 | 5122 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5123 | |
5124 | * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. | |
5125 | ||
5126 | * fontset.c (fontset_face): Handle the case that repertory is a | |
5127 | char-table. | |
5128 | (find_font_encoding): Return nil for unknown encoding. | |
5129 | (Fset_fontset_font): Ignore a font of unknown encoding. | |
5130 | ||
73acf815 | 5131 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5132 | |
1f45f627 | 5133 | * keymap.c (describe_vector): Handle default value of a char table. |
aca7a3d2 MB |
5134 | |
5135 | * fontset.c (fontset_face): Handle fallback fonts correctly. | |
5136 | (Ffontset_info): Return infomation about fallback fonts. | |
5137 | ||
73acf815 | 5138 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5139 | |
5140 | * fontset.c (FONTSET_DEFAULT): New macro. | |
4c4475a8 | 5141 | (FONTSET_ADD, fontset_add): Handle the case that range is nil. |
aca7a3d2 MB |
5142 | (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle |
5143 | the case that it is nil. | |
5144 | (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK. | |
1f45f627 | 5145 | (syms_of_fontset): Set char-table-extra-slots property of fontset to 9. |
aca7a3d2 MB |
5146 | |
5147 | * charset.h (CHAR_CHARSET_P): Fix for the case that the method is | |
5148 | subset or superset. | |
5149 | ||
73acf815 | 5150 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5151 | |
5152 | * emacs.c (main): Call init_charset after syms_of_XXX. | |
5153 | ||
1f45f627 | 5154 | * charset.c (Vcharset_map_directory): Delete. |
aca7a3d2 MB |
5155 | (Vcharset_map_path): New variable |
5156 | (load_charset_map_from_file): Use Vcharset_map_path instead. | |
5157 | (init_charset): Initialize Vcharset_map_path. | |
5158 | (syms_of_charset): Delete declaration of "charset-map-directory", | |
5159 | add declaration of "charset-map-path". | |
5160 | ||
73acf815 | 5161 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5162 | |
4c4475a8 GM |
5163 | * fns.c (string_char_to_byte, string_byte_to_char): Optimize for |
5164 | ASCII only string. | |
aca7a3d2 MB |
5165 | |
5166 | * fileio.c (Finsert_file_contents): Avoid detecting a code twice. | |
5167 | ||
5168 | * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. | |
6f69e89b | 5169 | (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte. |
aca7a3d2 | 5170 | |
73acf815 | 5171 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5172 | |
5173 | * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. | |
5174 | ||
5175 | * coding.c (QCmnemonic, QCdefalut_char) | |
5176 | (QCdecode_translation_table, QCencode_translation_table) | |
5177 | (QCpost_read_conversion, QCpre_write_conversion): New variables. | |
5178 | (get_translation_table): Return a list of translation tables if | |
5179 | necessary. | |
5180 | (decode_coding): Call get_translation_table with ENCODEP 0. | |
5181 | (char_encodable_p): If translation_table is non-nil, always call | |
5182 | translate_char. | |
5183 | (Fdefine_coding_system_internal): Accept list of translation | |
5184 | tables as :encode-translation-table and :decode-translation-table. | |
5185 | (Fcoding_system_put): New function. | |
5186 | (syms_of_coding): Declare new symbols. Defsubr | |
5187 | Scoding_system_put. | |
4c4475a8 GM |
5188 | (decode_coding_sjis, encode_coding_sjis): Handle 4th charset, |
5189 | typically JISX0212. | |
aca7a3d2 MB |
5190 | |
5191 | * charset.c (map_charset_chars): Fix arg to map_charset_chars in | |
5192 | when the charset is superset type. | |
5193 | ||
5194 | * character.c (translate_char): Accept list of translation tables. | |
5195 | ||
73acf815 | 5196 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5197 | |
1f45f627 | 5198 | * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl. |
aca7a3d2 MB |
5199 | (CODING_ATTR_TRANS_TBL): New macro. |
5200 | ||
5201 | * coding.c (get_translation_table): New function. | |
5202 | (translate_chars): Fix the bug of skipping annotation data. | |
4c4475a8 GM |
5203 | (decode_coding, encode_coding): Utilize get_translation_table. |
5204 | (char_encodable_p, Funencodable_char_position): Translate char if | |
5205 | necessary. | |
5206 | (Ffind_coding_systems_region_internal) | |
5207 | (Fcheck_coding_systems_region): Setup translation table for encode | |
5208 | in a coding system attribute vector in advance. | |
aca7a3d2 MB |
5209 | (Fdefine_coding_system_internal): Allow a symbol as translation |
5210 | table. For shift-jis type coding system, allow 4th charset. | |
5211 | ||
73acf815 | 5212 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5213 | |
5214 | * coding.c (decode_coding_sjis): Check the first byte rigidly. | |
5215 | ||
5216 | * xdisp.c (get_next_display_element): Pass -1 as POS to | |
5217 | FACE_FOR_CHAR if displaying a C-string. | |
5218 | ||
73acf815 | 5219 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5220 | |
5221 | * composite.c (get_composition_id): Handle xoff and yoff in a | |
5222 | composition rule. | |
5223 | ||
5224 | * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. | |
5225 | (struct composition): New member lbearing and rbearing. | |
5226 | ||
5227 | * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y). | |
5228 | (x_get_glyph_overhangs): Handle a composition glyph. | |
1f45f627 | 5229 | (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph. |
aca7a3d2 MB |
5230 | |
5231 | * xterm.c (x_compute_glyph_string_overhangs): Handle also a | |
5232 | composition glyph. | |
5233 | ||
73acf815 | 5234 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5235 | |
5236 | * print.c: Include charset.h. | |
5237 | (Vprint_charset_text_property): New variable. | |
5238 | (Qdefault): Extern it. | |
5239 | (PRINT_STRING_NON_CHARSET_FOUND) | |
5240 | (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros. | |
5241 | (print_check_string_result): New variable. | |
5242 | (print_check_string_charset_prop): New function. | |
5243 | (print_prune_charset_plist): New variable. | |
5244 | (print_prune_string_charset): New function. | |
5245 | (print_object): Call print_prune_string_charset if | |
5246 | Vprint_charset_text_property is not t. | |
5247 | (print_interval): Print nothing if itnerval->plist is nil. | |
5248 | (syms_of_print): Declare Vprint_charset_text_property as a lisp | |
5249 | variable. Init and staticpro print_prune_charset_plist. | |
5250 | ||
73acf815 | 5251 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5252 | |
5253 | * fontset.c (new_fontset_from_font_name): Use the specified font | |
5254 | for all characters in the new fontset. | |
5255 | ||
5256 | * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
5257 | OBJECT args. | |
5258 | ||
5259 | * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and | |
5260 | OBJECT args for composition too. | |
5261 | ||
5262 | * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
5263 | OBJECT args. | |
5264 | ||
73acf815 | 5265 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5266 | |
5267 | * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. | |
5268 | ||
1f45f627 | 5269 | * fontset.c (reorder_font_vector): Adjust for the change of |
aca7a3d2 | 5270 | FONT_DEF format. |
1f45f627 | 5271 | (fontset_face): New arg id. Change caller. |
aca7a3d2 | 5272 | (face_for_char): New args pos and object. |
1f45f627 | 5273 | (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF |
aca7a3d2 MB |
5274 | format.n |
5275 | (fs_query_fontset): Check NAME by Fassoc too. | |
5276 | (Fset_fontset_font): Allow non-XLFD font name. | |
1f45f627 | 5277 | (Ffontset_info): Adjust for the change of FONT_DEF format. |
aca7a3d2 | 5278 | |
1f45f627 | 5279 | * fontset.h (face_for_char): Adjust prototype. |
aca7a3d2 | 5280 | |
4c4475a8 GM |
5281 | * xdisp.c (face_before_or_after_it_pos, get_next_display_element) |
5282 | (append_space, extend_face_to_end_of_line) | |
5283 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
5284 | (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args. | |
aca7a3d2 MB |
5285 | |
5286 | * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with | |
5287 | POS and OBJECT args. | |
5288 | ||
5289 | * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with | |
5290 | POS and OBJECT args. | |
5291 | ||
73acf815 | 5292 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5293 | |
5294 | * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc | |
5295 | of GlobalAlloc'ed memory. | |
5296 | ||
73acf815 | 5297 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5298 | |
5299 | * ccl.c (Fccl_execute_on_string): Fix the condition of loop. | |
5300 | ||
5301 | * charset.h (charset_table_used): Delete extern. | |
5302 | ||
5303 | * charset.c (charset_table_used): Make it static. | |
5304 | (map_charset_chars): Fix args to c_function with. | |
5305 | ||
5306 | * chartab.c (map_sub_char_table_for_charset): Fix args to | |
5307 | c_function with. | |
5308 | ||
5309 | * coding.h (enum coding_result_code): Delete | |
5310 | CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. | |
5311 | ||
5312 | * coding.c (Qinsufficient_source, Qinconsistent_eol) | |
1f45f627 | 5313 | (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. |
aca7a3d2 MB |
5314 | (Vlast_code_conversion_error): New variables. |
5315 | (syms_of_coding): DEFSYM or DEFVAR_LISP them. | |
5316 | (ONE_MORE_BYTE): Record error if any instead of signaling an | |
5317 | error. If non-ASCII multibyte char is found, return the negative | |
5318 | value of the code. All callers changed to check it. | |
5319 | (ONE_MORE_BYTE_NO_CHECK): Likewise. | |
1f45f627 GM |
5320 | (record_conversion_result): New function. Change all codes setting |
5321 | coding->result to call this function. | |
4c4475a8 GM |
5322 | (detect_coding_utf_8, decode_coding_utf_8) |
5323 | (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5): | |
5324 | Don't use the local variable incomplete. | |
aca7a3d2 | 5325 | (emacs_mule_char): Change the second arg to `const'. |
aca7a3d2 MB |
5326 | (decode_coding): Fix of flushing out unprocessed data. |
5327 | (make_conversion_work_buffer): Fix making of a work buffer. | |
2a2e8de7 | 5328 | (decode_coding_object): Return coding->dst_object. |
aca7a3d2 MB |
5329 | |
5330 | * fontset.c (set_fontset_font): Fix args. | |
5331 | ||
5332 | * lisp.h (CHARACTERBITS): Define as 22. | |
5333 | ||
5334 | * process.c (send_process): Be sure to set coding->src_multibyte. | |
5335 | ||
5336 | * xdisp.c (handle_auto_composed_prop): Fix setting of limit. | |
5337 | ||
73acf815 | 5338 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5339 | |
5340 | * xdisp.c (handle_auto_composed_prop): Give limit to | |
5341 | Fnext_single_char_property_change. | |
5342 | ||
73acf815 | 5343 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5344 | |
424c157f | 5345 | * composite.c (syms_of_composite): Don't make the composition hash |
1f45f627 | 5346 | table weak. |
aca7a3d2 MB |
5347 | |
5348 | * fontset.c (Fset_fontset_font): Fix docstring. | |
5349 | ||
5350 | * lisp.h (detect_coding_system): Adjust prototype. | |
5351 | ||
5352 | * fileio.c (kill_workbuf_unwind): Delete this function. | |
5353 | (Finsert_file_contents): Adjust the call of detect_coding_system. | |
5354 | Get conversion_buffer by code_conversion_save. Use the macor | |
5355 | CODING_MAY_REQUIRE_DECODING. After decoding, update | |
5356 | coding_system. | |
5357 | ||
5358 | * coding.h (make_conversion_work_buffer): Delete extern. | |
5359 | (code_conversion_save): Extern it. | |
5360 | ||
5361 | * coding.c (enum iso_code_class_type): Delete ISO_carriage_return. | |
1f45f627 | 5362 | (CODING_GET_INFO): Delete argument eol_type. Change callers. |
aca7a3d2 MB |
5363 | (decode_coding_utf_8): Don't do eol converion. |
5364 | (detect_coding_utf_16): Check coding->src_chars, not | |
1f45f627 | 5365 | coding->src_bytes. Add heuristics for those that have no signature. |
4c4475a8 GM |
5366 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
5367 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
5368 | Don't do eol converion. | |
aca7a3d2 MB |
5369 | (adjust_coding_eol_type): Return a new coding system. |
5370 | (detect_coding): Don't detect eol. Fix for utf-16 detection. | |
5371 | (decode_eol): In case of CRLF->LF conversion, use del_range_2 on | |
5372 | each change. | |
5373 | (decode_coding): Pay attention to undo_list. Do eol convesion for | |
5374 | all types of coding-systems (if necessary). | |
5375 | (Vcode_conversion_work_buf_list): Delete it. | |
1f45f627 | 5376 | (Vcode_conversion_reused_workbuf): Rename from |
aca7a3d2 MB |
5377 | Vcode_conversion_reused_work_buf. |
5378 | (Vcode_conversion_workbuf_name): New variable. | |
5379 | (reused_workbuf_in_use): New variable. | |
5380 | (make_conversion_work_buffer): Delete the arg DEPTH. | |
4c4475a8 | 5381 | (code_conversion_restore): Change argument to cons. |
1f45f627 GM |
5382 | (code_conversion_save): Delete the argument BUFFER. Change callers. |
5383 | (detect_coding_system): New argument src_chars. Change callers. | |
aca7a3d2 MB |
5384 | Fix for utf-16 detection. |
5385 | (init_coding_once): Don't use ISO_carriage_return. | |
1f45f627 | 5386 | (syms_of_coding): Initialize Vcode_conversion_workbuf_name and |
aca7a3d2 MB |
5387 | reused_workbuf_in_use. |
5388 | ||
73acf815 | 5389 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5390 | |
5391 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
5392 | is a cons specifying a character range. | |
5393 | ||
73acf815 | 5394 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5395 | |
5396 | * xdisp.c (handle_auto_composed_prop): Fix the case of returning | |
5397 | HANDLED_RECOMPUTE_PROPS. | |
5398 | ||
5399 | * coding.c (Fdefine_coding_system_internal): Fix checking of | |
5400 | ascii compatibility. | |
5401 | ||
73acf815 | 5402 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5403 | |
1f45f627 | 5404 | * charset.c (find_charsets_in_text): Delete unused locale variable. |
aca7a3d2 MB |
5405 | (Fset_charset_priority): Update Vemacs_mule_charset_list too. |
5406 | ||
5407 | * coding.c (encode_coding_emacs_mule): Emit bytes with MSB. | |
5408 | Resync charset_list to Vemacs_mule_charset_list. | |
5409 | ||
5410 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
5411 | is a cons specifying a character range. | |
5412 | ||
73acf815 | 5413 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5414 | |
5415 | * composite.c (update_compositions): Bind inhibit-read-only, etc | |
5416 | to t before calling remove-list-of-text-properties. | |
5417 | ||
5418 | * print.c (print_object): Always print ASCII chars as is. | |
5419 | ||
73acf815 | 5420 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5421 | |
1f45f627 | 5422 | * keymap.c (Fdefine_key): Fix handling of Lucid style event type list. |
aca7a3d2 | 5423 | |
4c4475a8 GM |
5424 | * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE |
5425 | is a char table. | |
aca7a3d2 | 5426 | |
73acf815 | 5427 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5428 | |
1f45f627 | 5429 | * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary. |
aca7a3d2 | 5430 | |
73acf815 | 5431 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5432 | |
5433 | * xfaces.c (set_lface_from_font_name): Fix for the case that | |
5434 | FONTNAME is not fontset name. | |
5435 | ||
73acf815 | 5436 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5437 | |
5438 | * fns.c (base64_encode_1): Fix previous change. | |
5439 | ||
73acf815 | 5440 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5441 | |
5442 | * fontset.c (set_fontset_font): New function. | |
5443 | (Fset_fontset_font): If a font is specified for a charset, use | |
5444 | map_charset_chars to store the font spec in a fontset. | |
5445 | ||
73acf815 | 5446 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5447 | |
5448 | * fontset.c (fontset_face): Create a fallback fontset on demand | |
5449 | (make_fontset): Don't create a fallback fontset here. | |
5450 | (free_face_fontset): Free a fallback fontset (if any) too. | |
5451 | (n_auto_fontsets): Delete this variable. | |
5452 | (auto_fontset_alist): New variable. | |
5453 | (new_fontset_from_font_name): Check auto_fontset_alist. | |
5454 | (dump_fontset) [FONTSET_DEBUG]: Fully re-written. | |
5455 | (Ffontset_list_all) [FONTSET_DEBUG]: New function. | |
5456 | (syms_of_fontset): Initialize and staticpro auto_fontset_alist. | |
5457 | Defsubr Sfontset_list_all. | |
5458 | ||
73acf815 | 5459 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5460 | |
5461 | * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. | |
5462 | ||
73acf815 | 5463 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5464 | |
5465 | * fontset.c (Fnew_fontset): Check NAME more rigidly. | |
5466 | ||
73acf815 | 5467 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5468 | |
5469 | * editfns.c (Fgoto_char): Fix docstring. | |
5470 | ||
73acf815 | 5471 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5472 | |
5473 | * insdel.c (insert_from_gap): Adjust intervals correctly. | |
5474 | ||
73acf815 | 5475 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5476 | |
5477 | * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. | |
5478 | (pfnGetFontUnicodeRanges): New dynamically loaded function. | |
5479 | (w32_initialize): Try to load it. | |
5480 | (x_get_font_repertory): Use it if available. | |
5481 | (w32_encode_char): Add shortcut for unicode output. | |
5482 | ||
5483 | * w32fns.c (w32_load_system_font): Default charset to -1. | |
5484 | (x_to_w32_charset): Match all fonts for unicode. | |
1f45f627 | 5485 | (w32_to_x_charset): New parameter matching. Don't return partial |
aca7a3d2 MB |
5486 | or wildcard charsets. |
5487 | (w32_to_all_x_charsets): Don't return partial or wildcard charsets. | |
5488 | (w32_codepage_for_font): Return CP_UNICODE for unicode. | |
5489 | (w32_to_x_font): Match charset to real charset. | |
5490 | (enum_font_cb2): Always list unicode versions. | |
5491 | ||
5492 | * makefile.w32-in (temacs): Increase EMHEAP. | |
5493 | ||
73acf815 | 5494 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5495 | |
5496 | * w32term.c (w32_encode_char): New charset parameter. | |
5497 | font_info.encoding becomes encoding_type. | |
1f45f627 | 5498 | (x_get_font_repertory): New function. Warning: stub only! |
aca7a3d2 MB |
5499 | (x_new_font): Return quickly if font already set. |
5500 | (x_new_fontset): fontsetname parameter is Lisp_Object. | |
2a2e8de7 JB |
5501 | Use new fs_query_fontset. Try new_fontset_from_font_name. |
5502 | Use fontset_name for return value. | |
aca7a3d2 MB |
5503 | |
5504 | * w32term.h: Declare x_get_font_repertory. | |
5505 | ||
5506 | * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in | |
1f45f627 | 5507 | place of find_charset_in_text. Use encode_coding_object in place |
aca7a3d2 MB |
5508 | of encode_coding. |
5509 | (Fw32_get_clipboard_data): Use decode_coding_c_string in place of | |
5510 | decode_coding. | |
5511 | ||
5512 | * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version | |
5513 | of x_new_fontset. | |
5514 | (w32_load_system_font): Initialize charset as unicode. | |
5515 | font_info.encoding becomes encoding_type. | |
1f45f627 GM |
5516 | (w32_to_x_font): Use decode_coding_c_string in place of decode_coding. |
5517 | (x_to_w32_font): Use encode_coding_object in place of encode_coding. | |
aca7a3d2 MB |
5518 | (syms_of_w32fns): Set get_font_repertory_func. |
5519 | ||
1f45f627 | 5520 | * w32console.c: Include character.h. Use terminal_encode_buffer |
aca7a3d2 | 5521 | from term.c. |
1f45f627 | 5522 | (write_glyphs): Use new version of encode_terminal_code. Use |
aca7a3d2 MB |
5523 | encode_coding_object in place of encode_coding. |
5524 | ||
5525 | * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. | |
5526 | encoding becomes encoding_type. | |
5527 | ||
5528 | * term.c (terminal_encode_buffer): Make externally visible. | |
5529 | ||
5530 | * makefile.w32-in: Add character.h dependancies. | |
5531 | (character.o, chartab.o): New targets. | |
5532 | ||
73acf815 | 5533 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5534 | |
5535 | * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro | |
1f45f627 | 5536 | CODING_ID_EOL_TYPE. |
aca7a3d2 | 5537 | |
73acf815 | 5538 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
5539 | |
5540 | * coding.c (produce_chars): Revert last change. | |
5541 | ||
73acf815 | 5542 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5543 | |
5544 | * charset.h (charset_unicode): Extern it. | |
5545 | ||
5546 | * charset.c (string_xstring_p): Check by (C >= 0x100). | |
1f45f627 | 5547 | (find_charsets_in_text): Change format of the arc CHARSETS. New |
aca7a3d2 | 5548 | arg MULTIBYTE. |
1f45f627 | 5549 | (Ffind_charset_region, Ffind_charset_string): Adjust for the |
aca7a3d2 MB |
5550 | change of find_charsets_in_text. |
5551 | (Fsplit_char): Fix doc. Never return unknown. | |
5552 | ||
5553 | * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP. | |
5554 | ||
5555 | * coding.c (Fdefine_coding_system_alias): Update | |
5556 | Vcoding_system_list. | |
5557 | ||
5558 | * fontset.c (load_font_get_repertory): Pay attention to the case | |
5559 | that ENCODING of a font is specified by a char-table. | |
5560 | ||
5561 | * xterm.c (x_get_font_repertory): Handle the case that the | |
5562 | encoding of font is other than Unicode. | |
5563 | ||
73acf815 | 5564 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5565 | |
5566 | * term.c (encode_terminal_code): Don't handle glyph-table. Check | |
5567 | if a character is encodable by the terminal coding system. If | |
5568 | not, produces proper number of `?'s. Update | |
5569 | terminal_encode_buffer and terminal_encode_buf_size if necessary. | |
5570 | (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. | |
5571 | ||
73acf815 | 5572 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5573 | |
5574 | * term.c (terminal_encode_buffer, terminal_encode_buf_size): New | |
5575 | variables. | |
1f45f627 | 5576 | (encode_terminal_code): Change argument. Encode multiple |
aca7a3d2 MB |
5577 | characters at once. Store the result of encoding in |
5578 | terminal_encode_buffer. | |
4c4475a8 GM |
5579 | (write_glyphs, insert_glyphs): Adjust for the change of |
5580 | encode_terminal_code. | |
aca7a3d2 MB |
5581 | (term_init): Initialize terminal_encode_buffer and |
5582 | terminal_encode_buf_size. | |
5583 | ||
5584 | * coding.c (consume_chars): If coding->src_object is nil, don't | |
5585 | check annotation. | |
5586 | ||
73acf815 | 5587 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5588 | |
5589 | * character.c (char_string): Use ASCII_CHAR_P instead of | |
5590 | SINGLE_BYTE_CHAR_P. | |
5591 | ||
73acf815 | 5592 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5593 | |
5594 | * xdisp.c (handle_auto_composed_prop): Check if the last | |
5595 | characters of auto-composed region is newly composed with the | |
5596 | following characters. | |
5597 | (handle_composition_prop): Fix checking of point being inside | |
5598 | composition. | |
5599 | ||
73acf815 | 5600 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5601 | |
5602 | * fns.c (concat): Don't change multibyteness of the result by | |
5603 | concatenating an 8-bit character. | |
5604 | ||
5605 | * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change | |
5606 | multibyteness of the result when newelt is an 8-bit character. | |
5607 | ||
73acf815 | 5608 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5609 | |
5610 | * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used | |
5611 | EMACS_INT. | |
5612 | ||
5613 | * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. | |
5614 | ||
5615 | * xfaces.c (face_numeric_value): Declare dim size_t. | |
5616 | (Finternal_lisp_face_equal_p): Remove unused f. | |
5617 | ||
5618 | * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) | |
5619 | (MATRIX_ROW): Remove unused vars. | |
5620 | (draw_glyphs, x_insert_glyphs, fast_find_position) | |
5621 | (fast_find_position, fast_find_string_pos): Use EMACS_INT for | |
5622 | byte/char counts. | |
5623 | ||
5624 | * regex.c (regex_compile): Remove unused var. | |
5625 | ||
5626 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
5627 | ||
5628 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) | |
5629 | (Faccessible_keymaps, where_is_internal): Remove unused vars. | |
5630 | ||
5631 | * keyboard.c (cancel_hourglass_unwind): Return Qnil. | |
5632 | ||
5633 | * frame.c (frame_name_fnn_p): Make len EMACS_INT. | |
5634 | ||
5635 | * fileio.c (Fwrite_region): Remove unused var. | |
5636 | ||
5637 | * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) | |
5638 | (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. | |
5639 | ||
5640 | * composite.c (Fremove_list_of_text_properties): Declare. | |
5641 | ||
1f45f627 GM |
5642 | * coding.c (inhibit_pre_post_conversion): Remove (unused). |
5643 | (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts. | |
aca7a3d2 MB |
5644 | (coding_inherit_eol_type): Remove unused attrs. |
5645 | (detect_coding): Cast arg of detect_eol. | |
5646 | ||
5647 | * charset.c (syms_of_charset): Remove unused var p. | |
5648 | (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for | |
5649 | byte/char counts. | |
5650 | ||
5651 | * casetab.c (set_case_table): Remove unused var. | |
5652 | ||
5653 | * window.c (Fdisplay_buffer, Fframe_selected_window): Remove | |
1f45f627 | 5654 | unused vars. |
aca7a3d2 | 5655 | |
73acf815 | 5656 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5657 | |
5658 | * xterm.c (x_bitmap_mask): Declare. | |
5659 | ||
73acf815 | 5660 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5661 | |
5662 | * xterm.c (x_term_init): Fix type error. | |
5663 | ||
5664 | * lisp.h: Add Funibyte_char_to_multibyte. | |
5665 | ||
5666 | * coding.c (Fread_coding_system): Fix arg of XSETSTRING. | |
5667 | (Fset_coding_system_priority): Doc fix. | |
5668 | ||
aca7a3d2 MB |
5669 | * ccl.c (ccl_driver): Fix arg of CHARACTERP. |
5670 | ||
5671 | * indent.c (check_composition): Make start and end EMACS_INT. | |
5672 | ||
5673 | * character.c (lisp_string_width): Make ignore and end EMACS_INT. | |
5674 | ||
5675 | * xdisp.c (handle_composition_prop, check_point_in_composition): | |
5676 | Make buffer positions EMACS_INT. | |
5677 | ||
5678 | * composite.c (find_composition, run_composition_function) | |
5679 | (update_compositions, Ffind_composition_internal): Make buffer | |
5680 | positions EMACS_INT. | |
5681 | ||
5682 | * composite.h (find_composition, update_compositions): Make | |
5683 | position args EMACS_INT. | |
5684 | ||
1f45f627 | 5685 | * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT. |
aca7a3d2 MB |
5686 | |
5687 | * intervals.c (get_property_and_range): | |
5688 | * intervals.h (get_property_and_range): Make start and end EMACS_INT. | |
5689 | ||
5690 | * unexalpha.c: Don't include varargs.h. | |
5691 | ||
73acf815 | 5692 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5693 | |
5694 | * coding.h (ENCODE_UTF_8): New. | |
5695 | ||
5696 | * Makefile.in (gtkutil.o): Depend on coding.h. | |
5697 | ||
5698 | * coding.c (Fset_coding_system_priority): Doc fix. | |
5699 | ||
73acf815 | 5700 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5701 | |
5702 | * fileio.c (Finsert_file_contents): Call setup_coding_system in | |
5703 | the case of auto saving. | |
5704 | ||
73acf815 | 5705 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 | 5706 | |
4c4475a8 GM |
5707 | * chartab.c (map_char_table, map_char_table_for_charset): Protect |
5708 | `range' from GC. | |
aca7a3d2 | 5709 | |
73acf815 | 5710 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5711 | |
5712 | * coding.c (decode_coding_sjis): Check bytes more rigidly. | |
5713 | ||
73acf815 | 5714 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5715 | |
1f45f627 | 5716 | * fileio.c (choose_write_coding_system): Return a decided coding system. |
aca7a3d2 MB |
5717 | (Fwrite_region): Set Vlast_coding_system_used to the return value |
5718 | of choose_write_coding_system. | |
5719 | ||
73acf815 | 5720 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5721 | |
5722 | * charset.c (Fset_charset_priority): Pay attention to duplicated | |
5723 | arguments. | |
5724 | ||
5725 | * coding.c (QCcategory): New variable. | |
5726 | (syms_of_coding): Defsym it. Set all elements of | |
5727 | Vcoding_category_table and their symbol values. | |
5728 | (Fset_coding_system_priority): Doc fix. Update symbol qvalues of | |
5729 | coding-category-XXX, and coding-category-list. | |
5730 | (Fdefine_coding_system_internal): Add category in the plist. | |
5731 | ||
73acf815 | 5732 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5733 | |
5734 | * callproc.c (Fcall_process): Handle carryover correctly. | |
5735 | ||
1f45f627 | 5736 | * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes. |
aca7a3d2 MB |
5737 | (raw_text_coding_system): Check NILP (coding_system). |
5738 | (coding_inherit_eol_type): Check NILP (coding_system) and | |
5739 | NILP (parent). | |
5740 | (consume_chars): Fix for the case of raw-text. | |
5741 | ||
5742 | * process.c (read_process_output): Handle carryover correctly. | |
5743 | ||
73acf815 | 5744 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5745 | |
5746 | * regex.c (re_search_2): Fix last change. | |
5747 | ||
73acf815 | 5748 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5749 | |
5750 | * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not | |
5751 | target_multibyte. Even in a unibyte case, return a converted | |
5752 | multibyte char. | |
5753 | (GET_CHAR_AFTER): New macro. | |
5754 | (PATFETCH): Translate via multibyte char. | |
5755 | (HANDLE_UNIBYTE_RANGE): Delete this macro. | |
5756 | (SETUP_MULTIBYTE_RANGE): New macro. | |
5757 | (regex_compile): Setup compiled code so that its multibyteness | |
5758 | matches that of a target. Fix the handling of "[X-YZ]" using | |
5759 | SETUP_MULTIBYTE_RANGE. | |
5760 | (analyse_first) <charset>: For filling fastmap for all multibyte | |
5761 | characters, don't check by BASE_LEADING_CODE_P. | |
5762 | (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is | |
5763 | the same as RE_MULTIBYTE_P (bufp) now. | |
1f45f627 | 5764 | (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)). |
aca7a3d2 MB |
5765 | (TARGET_CHAR_AND_LENGTH): Delete this macro. |
5766 | (TRANSLATE_VIA_MULTIBYTE): New macro. | |
5767 | (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). | |
5768 | It is the same as RE_MULTIBYTE_P (bufp) now. | |
5769 | <exactn>: Translate via multibyte. | |
5770 | <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't | |
5771 | translate it. | |
5772 | <charset, charset_not>: Fetch a character by | |
5773 | RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. | |
5774 | <duplicate>: Call bcmp_translate with the last arg `multibyte'. | |
5775 | <wordbound, notwordbound, wordbeg, wordend, syntaxspec, | |
5776 | notsyntaxspec, categoryspec, notcategoryspec> Fetch a character | |
5777 | by GET_CHAR_AFTER. | |
c5ad7a3d | 5778 | (bcmp_translate): Likewise. |
aca7a3d2 MB |
5779 | |
5780 | * search.c (compile_pattern): Check the member target_multibyte, | |
5781 | not the member multibyte of buf. | |
5782 | ||
5783 | * lread.c (read1): While reading a string, set force_singlebyte | |
5784 | and force_multibyte correctly. | |
5785 | ||
4c4475a8 GM |
5786 | * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting |
5787 | up of unibyte_to_multibyte_table. | |
aca7a3d2 | 5788 | |
73acf815 | 5789 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5790 | |
5791 | * coding.c (setup_coding_system): If coding has | |
5792 | post-read-conversion or pre-write-conversion, set | |
5793 | CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK | |
5794 | respectively. | |
5795 | (decode_coding_gap): Run post-read-conversion if any. | |
5796 | ||
5797 | * fileio.c (Finsert_file_contents): Even if we read into a | |
5798 | unibyte buffer, check if we must decode the result or not. | |
5799 | ||
73acf815 | 5800 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5801 | |
5802 | * coding.c (make_conversion_work_buffer): Change the work buffer | |
5803 | name to the same one as that of Emacs 21. | |
5804 | ||
73acf815 | 5805 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5806 | |
1f45f627 | 5807 | * coding.h (make_conversion_work_buffer): Adjust prototype. |
aca7a3d2 MB |
5808 | (code_conversion_restore): Don't extern it. |
5809 | ||
5810 | * coding.c (detected_mask): Delete unused variable. | |
5811 | (decode_coding_iso_2022): Pay attention to the byte sequence of | |
5812 | CTEXT extended segment, and retain those bytes as is. | |
5813 | (decode_coding_ccl): Delete unused variable `valids'. | |
5814 | (setup_coding_system): Delete unused variable `category'. | |
5815 | (consume_chars): Delete unused variable `category'. Make it work | |
5816 | for non-multibyte case. | |
1f45f627 | 5817 | (make_conversion_work_buffer): Change argument. |
aca7a3d2 MB |
5818 | (saved_coding): Delete unused variable. |
5819 | (code_conversion_restore): Don't check saved_coding->destination. | |
5820 | (code_conversion_save): New function. | |
5821 | (decode_coding_gap, encode_coding_gap): Call code_conversion_save | |
5822 | instead of record_unwind_protect. | |
1f45f627 | 5823 | (decode_coding_object, encode_coding_object): Likewise. Recover PT. |
aca7a3d2 | 5824 | (detect_coding_system): Delete unused variable `mask'. |
1f45f627 | 5825 | (Fdefine_coding_system_internal): Delete unused vaiable id. |
aca7a3d2 MB |
5826 | |
5827 | * fileio.c (kill_workbuf_unwind): New function. | |
5828 | (Finsert_file_contents): On replacing, call | |
5829 | make_conversion_work_buffer with correct args, and call | |
5830 | record_unwind_protect with the first arg kill_workbuf_unwind. | |
5831 | ||
5832 | * lisp.h (Fgenerate_new_buffer_name): EXFUN it. | |
5833 | ||
73acf815 | 5834 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5835 | |
1f45f627 | 5836 | * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME. |
aca7a3d2 MB |
5837 | (fontset_add): Fix for the case that TO is less than TO1. |
5838 | (Ffontset_info): Don't use fallback fontset on checking the | |
5839 | default fontset. | |
5840 | (dump_fontset): New function for debugging. | |
5841 | ||
5842 | * coding.c (Fdefine_coding_system_internal): Fix for the case that | |
5843 | coding_type is Qcharset. | |
5844 | ||
73acf815 | 5845 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5846 | |
5847 | * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. | |
5848 | (map_char_table): Don't inherit the value from the parent on | |
1f45f627 | 5849 | initializing VAL. Adjust for the above change. |
aca7a3d2 | 5850 | |
73acf815 | 5851 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5852 | |
5853 | * coding.c (Qsignature, Qendian): Delete these variables. | |
5854 | (syms_of_coding): Don't initialize them. | |
5855 | (CATEGORY_MASK_UTF_16_AUTO): New macro. | |
5856 | (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in | |
5857 | detect_info->found. | |
5858 | (decode_coding_utf_16): Don't detect BOM here. | |
5859 | (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) | |
5860 | is NOT utf_16_without_bom. | |
5861 | (setup_coding_system): For a coding system of type utf-16, check | |
5862 | if the attribute :endian is Qbig or not (not nil or not), and set | |
5863 | CODING_REQUIRE_DETECTION_MASK if BOM detection is required. | |
5864 | (detect_coding): If coding type is utf-16 and BOM detection is | |
5865 | required, detect it. | |
5866 | (Fdefine_coding_system_internal): For a coding system of type | |
1f45f627 | 5867 | utf-16, check if the attribute :endian is Qbig or not (not nil or not). |
aca7a3d2 | 5868 | |
73acf815 | 5869 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5870 | |
5871 | * coding.c (coding_set_source): Fix for the case that the current | |
5872 | buffer is different from coding->src_object. | |
5873 | (decode_coding_object): Don't use the conversion work buffer if | |
5874 | DST_OBJECT is a buffer. | |
5875 | ||
73acf815 | 5876 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5877 | |
5878 | * lread.c (read_emacs_mule_char) [len==2]: Index | |
5879 | emacs_mule_charset correctly. | |
5880 | ||
73acf815 | 5881 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5882 | |
5883 | * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) | |
5884 | (detect_coding_big5, decode_coding_big5, encode_coding_big5) | |
1f45f627 | 5885 | (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer |
aca7a3d2 MB |
5886 | treated specially.) |
5887 | (setup_coding_system, coding_category, CATEGORY_MASK_ANY) | |
5888 | (detected_mask): Remove Big5 bits. | |
5889 | ||
73acf815 | 5890 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5891 | |
5892 | The following changes are to make the font rescaling facility | |
5893 | compatible with Emacs 21. | |
5894 | ||
1f45f627 | 5895 | * xfaces.c (Vface_font_rescale_alist): Rename from |
aca7a3d2 MB |
5896 | Vface_resizing_fonts. |
5897 | (struct font_name): Rename member resizing_ratio to rescale_ratio. | |
1f45f627 | 5898 | (font_rescale_ratio): Rename from font_resizing_ratio. |
aca7a3d2 MB |
5899 | (split_font_name): Set font->rescale_ratio. |
5900 | (better_font_p): Pay attention to font->rescale_ratio. | |
5901 | (build_scalable_font_name): Likewise. Change RESX, and RESY | |
5902 | fields. | |
1f45f627 | 5903 | (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable. |
aca7a3d2 | 5904 | |
73acf815 | 5905 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5906 | |
5907 | * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) | |
5908 | (Qutf_16_le): Remove these variables. | |
5909 | (syms_of_coding): Don't DEFSYM them. | |
5910 | (decode_coding_utf_16): Fix handling of BOM. | |
5911 | (encode_coding_utf_16): Fix handling of BOM. | |
5912 | ||
73acf815 | 5913 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5914 | |
5915 | * fileio.c (Finsert_file_contents): On replacing, before decoding | |
1f45f627 | 5916 | the file into the work buffer, set point of the work buffer to the end. |
aca7a3d2 | 5917 | |
73acf815 | 5918 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5919 | |
5920 | * coding.c (Fcheck_coding_systems_region): Fix type errors. | |
5921 | ||
73acf815 | 5922 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5923 | |
5924 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
5925 | and fix C types. | |
5926 | ||
73acf815 | 5927 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5928 | |
5929 | * xdisp.c (SKIP_GLYPHS): New macro. | |
5930 | (set_cursor_from_row): Pay attention to string display properties. | |
5931 | ||
5932 | * category.c (copy_category_entry): Fix for the case that RANGE | |
5933 | is an integer. | |
5934 | ||
5935 | * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. | |
5936 | ||
1f45f627 | 5937 | * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil. |
aca7a3d2 | 5938 | |
73acf815 | 5939 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5940 | |
5941 | * charset.c (Fcharset_id_internal): New function. | |
5942 | (syms_of_charset): Defsubr it. | |
5943 | ||
5944 | * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver | |
5945 | with the last arg charset_list acquired from coding. | |
5946 | (Fdefine_coding_system_internal): For ccl-based coding system, fix | |
5947 | the attribute coding_attr_ccl_valids. | |
5948 | ||
5949 | * coding.h (enum define_coding_ccl_arg_index): Set the first | |
5950 | member coding_arg_ccl_decoder to coding_arg_max. | |
5951 | ||
1f45f627 | 5952 | * ccl.h (ccl_driver): Adjust prototype. |
aca7a3d2 MB |
5953 | |
5954 | * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. | |
5955 | (ccl_driver): New arg CHARSET_LIST. Use the above macros instead | |
5956 | of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. | |
4c4475a8 GM |
5957 | (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the |
5958 | last arg Qnil. | |
aca7a3d2 | 5959 | |
73acf815 | 5960 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5961 | |
5962 | * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, | |
5963 | call encode_char. | |
5964 | ||
1f45f627 | 5965 | * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET. |
aca7a3d2 | 5966 | |
73acf815 | 5967 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 5968 | |
1f45f627 | 5969 | * composite.c (syms_of_composite): Make composition_hash_table weak. |
aca7a3d2 | 5970 | |
73acf815 | 5971 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5972 | |
5973 | * dispextern.h (check_face_attributes, generate_ascii_font_name) | |
5974 | (font_name_registry): Don't extern them. | |
1f45f627 | 5975 | (split_font_name_into_vector, build_font_name_from_vector): Extern them. |
aca7a3d2 MB |
5976 | |
5977 | * fontset.h (Qfontset): Don't extern it. | |
5978 | (new_fontset_from_font_name): Extern it. | |
5979 | ||
5980 | * fontset.c: Give 8 extra slots to fontset objects. | |
5981 | (Qfontset_info): New variable. | |
5982 | (syms_of_fontset): Defsym it. | |
5983 | (FONTSET_FALLBACK): New macro. | |
5984 | (fontset_face): Try also the default fontset. | |
1f45f627 GM |
5985 | (make_fontset): Realize a fallback fontset from the default fontset. |
5986 | (generate_ascii_font_name): Move from xfaces.c. Rewritten by | |
aca7a3d2 MB |
5987 | using split_font_name_into_vector and build_font_name_from_vector. |
5988 | (Fset_fontset_font): Access the elements of font_spec by enum | |
5989 | FONT_SPEC_INDEX. If font_spec is a string, extract the registry | |
5990 | name by using split_font_name_into_vector. | |
5991 | (Fnew_fontset): If no ASCII font is specified in FONTLIST, | |
5992 | generate a proper font name from the fontset name. Update | |
5993 | Vfontset_alias_alist. | |
5994 | (n_auto_fontsets): New variable. | |
5995 | (new_fontset_from_font_name): New function. | |
5996 | (Ffont_info): Store the information about fonts generated from the | |
1f45f627 | 5997 | default fontset in the first extra slot of the returned char-table. |
aca7a3d2 | 5998 | |
1f45f627 GM |
5999 | * xfaces.c (generate_ascii_font_name): Move to fontset.c. |
6000 | (font_name_registry): Delete function. | |
aca7a3d2 MB |
6001 | (split_font_name_into_vector): New function. |
6002 | (build_font_name_from_vector): New function. | |
1f45f627 | 6003 | (font_list): The argument REGISTRY is now a list of registry names. |
aca7a3d2 MB |
6004 | (choose_face_font): If we are choosing an ASCII font, and ATTRS |
6005 | specifies an explicit font name, return the name as is. Make a | |
6006 | list of registy names. | |
6007 | ||
1f45f627 | 6008 | * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change |
aca7a3d2 MB |
6009 | of x_new_fontset. |
6010 | (Fx_create_frame): Don't call x_new_fontset here. Just use | |
6011 | x_list_fonts to check the existence of fonts. | |
6012 | ||
1f45f627 | 6013 | * xterm.h (x_new_fontset): Adjust prototype. |
aca7a3d2 MB |
6014 | |
6015 | * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp | |
6016 | string. Use new_fontset_from_font_name to create a fontset from a | |
6017 | font name. | |
6018 | ||
1c8658b9 GM |
6019 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
6020 | ||
6021 | * syntax.c (Vfind_word_boundary_function_table): New name for | |
6022 | Vnext_word_boundary_function_table. | |
6023 | (find-word-boundary-function-table): New name for | |
6024 | next-word-boundary-function-table. | |
6025 | ||
73acf815 | 6026 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6027 | |
6028 | * Makefile.in: Fix some dependencies. | |
6029 | ||
6030 | * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but | |
6031 | set it to nil before returning. | |
6032 | ||
6033 | * composite.c (update_compositions): Fix type error. | |
6034 | ||
6035 | * syntax.c (skip_chars, skip_syntaxes): Fix type errors. | |
6036 | ||
73acf815 | 6037 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6038 | |
6039 | * xterm.c (x_new_font): Optimize for the case that the font is | |
6040 | already set for the frame. | |
6041 | ||
73acf815 | 6042 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6043 | |
6044 | * chartab.c (char_table_ascii): Check if the char table contents | |
6045 | is sub-char-table or not. | |
4c4475a8 GM |
6046 | (char_table_set, char_table_set_range): Fix argument to |
6047 | char_table_ascii. | |
aca7a3d2 MB |
6048 | |
6049 | * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. | |
6050 | (detect_coding_utf_8, detect_coding_utf_16) | |
6051 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
6052 | (detect_coding_sjis, detect_coding_big5) | |
6053 | (detect_coding_ccl, detect_coding_charset): Change argument MASK | |
6054 | to DETECT_INFO. Update DETECT_INFO and return 1 if the byte | |
1f45f627 | 6055 | sequence is valid in this coding system. Change callers. |
aca7a3d2 MB |
6056 | (MAX_ANNOTATION_LENGTH): New macro. |
6057 | (ADD_ANNOTATION_DATA): New macro. | |
1f45f627 GM |
6058 | (ADD_COMPOSITION_DATA): Change argument. Change callers. Call |
6059 | ADD_ANNOTATION_DATA. Change the format of annotation data. | |
aca7a3d2 | 6060 | (ADD_CHARSET_DATA): New macro. |
1f45f627 | 6061 | (emacs_mule_char): New argument ID. Change callers. |
aca7a3d2 MB |
6062 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
6063 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
6064 | Produce charset annotation data in coding->charbuf. | |
6065 | (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention | |
6066 | to charset annotation data in coding->charbuf. | |
6067 | (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK | |
6068 | coding->common_flags if the coding system is iso-2022 based and | |
6069 | uses designation. | |
1f45f627 | 6070 | (produce_composition): Adjust for the new annotation data format. |
aca7a3d2 MB |
6071 | (produce_charset): New function. |
6072 | (produce_annotation): Handle charset annotation. | |
6073 | (handle_composition_annotation, handle_charset_annotation): New | |
6074 | functions. | |
6075 | (consume_chars): Handle charset annotation. Utilize the above two | |
6076 | functions. | |
6077 | (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same | |
6078 | buffer, get the deleted text as a string and set | |
6079 | coding->src_object to that string. | |
6080 | (detect_coding, detect_coding_system): Use the new struct | |
6081 | coding_detection_info. | |
6082 | ||
6083 | * coding.h (struct coding_detection_info): New structure. | |
1f45f627 | 6084 | (struct coding_system): Adjust prototype of the member `detector'. |
aca7a3d2 MB |
6085 | (CODING_ANNOTATE_CHARSET_MASK): New macro. |
6086 | ||
73acf815 | 6087 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6088 | |
6089 | * insdel.c (insert_from_gap): Fix argument to offset_intervals. | |
6090 | ||
73acf815 | 6091 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6092 | |
1f45f627 | 6093 | * keymap.c (apropos_predicate, apropos_accumulate): Declare static. |
aca7a3d2 MB |
6094 | (Fapropos_internal): Don't gcpro apropos_accumulate. Set result |
6095 | to new local and nullify apropos_accumulate before returning. | |
6096 | (syms_of_keymap): Staticpro and initialize apropos_accumulate. | |
6097 | ||
73acf815 | 6098 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6099 | |
6100 | * charset.c (Fdefine_charset_internal): Setup charset.fast_map | |
6101 | correctly. | |
6102 | ||
73acf815 | 6103 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6104 | |
6105 | * fns.c (Flanginfo): Call synchronize_system_time_locale. | |
6106 | ||
73acf815 | 6107 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6108 | |
6109 | The following changes are to make character composition happen | |
6110 | automatically on displaying. | |
6111 | ||
2a2e8de7 | 6112 | * Makefile.in (lisp, shortlisp): Add composite.elc. |
aca7a3d2 | 6113 | |
1f45f627 GM |
6114 | * composite.h (Qauto_composed, Vauto_composition_function) |
6115 | (Qauto_composition_function): Extern them. | |
aca7a3d2 | 6116 | |
1f45f627 GM |
6117 | * composite.c (Vcomposition_function_table) |
6118 | (Qcomposition_function_table): Delete variables. | |
6119 | (Qauto_composed, Vauto_composition_function) | |
6120 | (Qauto_composition_function): New variables. | |
aca7a3d2 MB |
6121 | (run_composition_function): Don't call |
6122 | compose-chars-after-function. | |
6123 | (update_compositions): Clear `auto-composed' text property. | |
6124 | (compose_chars_in_text): Delete this function. | |
6125 | (syms_of_composite): Staticpro Qauto_composed and | |
6126 | Qauto_composition_function. Declare Vauto_composition_function as | |
6127 | a Lisp variable. | |
6128 | ||
6129 | * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. | |
6130 | ||
6131 | * xdisp.c (it_props): Add an entry for Qauto_composed. | |
6132 | (handle_auto_composed_prop): New function. | |
6133 | ||
6134 | * xselect.c (selection_data_to_lisp_data): Don't call | |
6135 | compose_chars_in_text. | |
6136 | ||
73acf815 | 6137 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6138 | |
6139 | * keyboard.c (read_char): Modify checking around use of | |
6140 | Vkeyboard_translate_table. | |
6141 | ||
6142 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
6143 | and fix C types. | |
6144 | ||
73acf815 | 6145 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6146 | |
4c4475a8 GM |
6147 | * coding.c (decode_coding_utf_8, decode_coding_emacs_mule) |
6148 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
6149 | (decode_coding_charset, produce_chars): When eol_type is Qdos, handle | |
aca7a3d2 | 6150 | the case that the last byte is '\r' correctly. |
1f45f627 GM |
6151 | (decode_coding): Flush out the unprocessed data correctly. |
6152 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode. | |
aca7a3d2 | 6153 | |
73acf815 | 6154 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6155 | |
6156 | * xterm.c (XTread_socket): Fix changes for defined keysyms. Add | |
6157 | XK_ISO... case. | |
6158 | (xaw_scroll_callback): Revert last change. | |
6159 | ||
73acf815 | 6160 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6161 | |
1f45f627 | 6162 | * charset.c (Fset_charset_priority): Update Viso_2022_charset_list. |
aca7a3d2 | 6163 | |
73acf815 | 6164 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6165 | |
6166 | * xfaces.c (Vface_resizing_fonts): New variable. | |
6167 | (struct font_name): New member `resizing_ratio'. | |
6168 | (font_resizing_ratio): New function. | |
6169 | (split_font_name): Set font->resizing_ratio. | |
6170 | (better_font_p): Pay attention to font->resizing_ratio. | |
6171 | (build_scalable_font_name): Likewise. Don't change POINT_SIZE, | |
6172 | RESX, and RESY fields. | |
6173 | (try_alternative_families): Try scalable fonts if | |
6174 | Vscalable_fonts_allowed is not Qt. | |
6175 | (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. | |
6176 | ||
73acf815 | 6177 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6178 | |
6179 | * xterm.c (xaw_scroll_callback): Cast correctly. | |
6180 | ||
73acf815 | 6181 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6182 | |
6183 | * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. | |
6184 | (lispy_kana_keys): Comment out. | |
6185 | (make_lispy_event) [XK_kana_A]: Comment out. | |
6186 | ||
6187 | * xterm.c (xaw_scroll_callback): Cast call_data. | |
6188 | (XTread_socket): Deal with ASCII keysyms. | |
6189 | (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. | |
6190 | ||
73acf815 | 6191 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6192 | |
6193 | * xterm.c (Vx_keysym_table): New. | |
6194 | (syms_of_xterm): Initialize it. | |
6195 | (XTread_socket): Use it. | |
6196 | From head: Eliminate incorrect optimization that tried to avoid | |
6197 | decoding the output of X*LookupString. | |
6198 | (x_get_font_repertory): Delete charset declaration. | |
6199 | ||
73acf815 | 6200 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6201 | |
1f45f627 GM |
6202 | * coding.c (detect_coding_charset): If only ASCII bytes are found, |
6203 | return 0. | |
aca7a3d2 MB |
6204 | (Fdefine_coding_system_internal): Setup |
6205 | CODING_ATTR_ASCII_COMPAT (attrs) correctly. | |
6206 | ||
73acf815 | 6207 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6208 | |
6209 | * coding.c (Fcheck_coding_system): Doc fix. | |
6210 | ||
6211 | * editfns.c (Finsert_byte): Return a proper value. | |
6212 | ||
73acf815 | 6213 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6214 | |
6215 | * coding.c (decode_coding): Fix args to translate_chars. Pay | |
6216 | attention to Vstandard_translation_table_for_decode. | |
6217 | (encode_coding): Fix args to translate_chars. Pay attention to | |
6218 | Vstandard_translation_table_for_encode. | |
6219 | ||
6220 | * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by | |
6221 | SINGLE_BYTE_CHAR_P. | |
6222 | ||
6223 | * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, | |
6224 | not by SINGLE_BYTE_CHAR_P. | |
6225 | ||
6226 | * fns.c (concat): Check CH by ASCII_CHAR_P, not by | |
6227 | SINGLE_BYTE_CHAR_P. | |
6228 | ||
6229 | * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by | |
6230 | SINGLE_BYTE_CHAR_P. | |
6231 | ||
6232 | * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not | |
6233 | by SINGLE_BYTE_CHAR_P. | |
6234 | ||
6235 | * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by | |
6236 | SINGLE_BYTE_CHAR_P. | |
6237 | ||
73acf815 | 6238 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6239 | |
6240 | * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. | |
6241 | ||
73acf815 | 6242 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6243 | |
6244 | * fns.c (Flanginfo): Fix typo. | |
6245 | ||
6246 | * unexelf.c (unexec): Make last change conditional on Irix 6.5. | |
6247 | ||
73acf815 | 6248 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6249 | |
4c4475a8 GM |
6250 | * coding.c (detect_coding_utf_8, detect_coding_utf_16) |
6251 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
6252 | (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check | |
6253 | incomplete byte sequence. Don't update *mask when correctly detected. | |
aca7a3d2 | 6254 | (decode_coding_sjis): Fix decoding of katakana-jisx0201. |
1f45f627 | 6255 | (detect_eol): Delete the argument CODING, and add the argument CATEGORY. |
4c4475a8 | 6256 | (detect_coding, detect_coding_system): Adjust for the changes above. |
aca7a3d2 | 6257 | |
73acf815 | 6258 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6259 | |
1f45f627 GM |
6260 | * character.c (char_string): Rename from |
6261 | char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK. | |
6262 | (string_char): Rename from string_char. | |
aca7a3d2 | 6263 | |
4c4475a8 GM |
6264 | * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string |
6265 | if C is greater than MAX_3_BYTE_CHAR. | |
6266 | (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call | |
6267 | string_char instead of string_char_with_unification. | |
aca7a3d2 | 6268 | |
73acf815 | 6269 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6270 | |
6271 | * coding.c (decode_coding_utf_8): Treat surrogates as invalid. | |
6272 | ||
73acf815 | 6273 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6274 | |
1f45f627 | 6275 | * keymap.c (push_key_description): Pay attention to force_multibyte. |
aca7a3d2 MB |
6276 | |
6277 | * regex.c (re_search_2): Fix for the case of unibyte buffer. | |
6278 | ||
73acf815 | 6279 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6280 | |
6281 | * charset.c (define_charset_internal): Rename `supprementary'. | |
6282 | ||
6283 | * Makefile.in (lisp, shortlisp): Remove latin-N. | |
6284 | ||
73acf815 | 6285 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6286 | |
6287 | * xfns.c (x_window, x_window): Use use_xim. | |
6288 | ||
6289 | * xterm.c (use_xim): Initialize. | |
6290 | (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. | |
6291 | (x_term_init): Maybe set use_xim. | |
6292 | ||
6293 | * xterm.h (use_xim) [HAVE_X_I18N]: Declare. | |
6294 | ||
73acf815 | 6295 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6296 | |
6297 | * search.c (search_buffer): Fix case-fold-search of multibyte | |
6298 | characters. | |
6299 | (boyer_moore): Rename the last argument to char_high_bits. | |
6300 | ||
73acf815 | 6301 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6302 | |
6303 | * xdisp.c (display_string): Fix for the case of zero width glyph. | |
6304 | ||
6305 | * xfns.c (x_set_font): Change the error message of the case that | |
6306 | x_new_fontset returns Qt. | |
6307 | ||
6308 | * xfaces.c (set_lface_from_font_name): Reject the default fontset. | |
6309 | (Finternal_set_lisp_face_attribute): Use signal_error for the | |
6310 | error of invalid fontset. | |
6311 | ||
6312 | * xterm.c (x_new_fontset): If FONTSETNAME specifies the default | |
6313 | fontset, return Qt. | |
6314 | ||
73acf815 | 6315 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6316 | |
aca7a3d2 MB |
6317 | * unexelf.c (unexec): Make .got handling not SGI-specific. |
6318 | ||
6319 | * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. | |
6320 | ||
6321 | * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. | |
6322 | ||
6323 | * keyboard.c (read_key_sequence): Fix type error. | |
6324 | ||
6325 | * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix | |
6326 | type error. | |
6327 | ||
6328 | * fontset.c (fontset_add): Return Lisp_Object. | |
6329 | ||
73acf815 | 6330 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6331 | |
6332 | * charset.h (charset_ordered_list_tick): Declare extern. | |
6333 | ||
73acf815 | 6334 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6335 | |
73acf815 | 6336 | The following changes (and some of 2008-02-01 changes of mine) are |
aca7a3d2 MB |
6337 | for handling syntax, category, and case conversion for unibyte |
6338 | characters by converting them to multibyte on the fly. With these | |
6339 | changes, we don't have to setup syntax and case tables for unibyte | |
6340 | characters in each language environment. | |
6341 | ||
6342 | * abbrev.c (Fexpand_abbrev): Convert a unibyte character to | |
6343 | multibyte if necessary. | |
6344 | ||
6345 | * bytecode.c (Fbyte_code): Likewise. | |
6346 | ||
6347 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
6348 | (LEADING_CODE_LATIN_1_MAX): New macros. | |
6349 | (unibyte_to_multibyte_table): Extern it. | |
6350 | (unibyte_char_to_multibyte): New macro. | |
6351 | (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. | |
6352 | (CHAR_LEADING_CODE): New macro. | |
6353 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. | |
6354 | ||
6355 | * character.c (unibyte_to_multibyte_table): New variable. | |
1f45f627 | 6356 | (unibyte_char_to_multibyte): Move to character.h and define as macro. |
aca7a3d2 MB |
6357 | (multibyte_char_to_unibyte): If C is an eight-bit character, |
6358 | convert it to the corresponding byte value. | |
6359 | ||
6360 | * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is | |
6361 | not 1, singals an error. Update the elements of | |
6362 | unibyte_to_multibyte_table. | |
6363 | (init_charset_once): Initialize unibyte_to_multibyte_table. | |
6364 | (syms_of_charset): Define the charset `iso-8859-1'. | |
6365 | ||
aca7a3d2 MB |
6366 | * cmds.c (internal_self_insert): In a multibyte buffer, insert C |
6367 | as is without converting it to unibyte. In a unibyte buffer, | |
6368 | convert C to multibyte before checking the syntax. | |
6369 | ||
1f45f627 | 6370 | * lisp.h (unibyte_char_to_multibyte): Delete extern. |
aca7a3d2 MB |
6371 | |
6372 | * minibuf.c (Fminibuffer_complete_word): Use the macro | |
6373 | FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. | |
6374 | ||
6375 | * regex.h (struct re_pattern_buffer): New member target_multibyte. | |
6376 | ||
6377 | * regex.c (RE_TARGET_MULTIBYTE_P): New macro. | |
6378 | (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If | |
6379 | that is zero, convert an eight-bit char to multibyte. | |
6380 | (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for | |
6381 | non-emacs case. | |
6382 | (PATFETCH): Convert an eight-bit char to multibyte. | |
6383 | (HANDLE_UNIBYTE_RANGE): New macro. | |
6384 | (regex_compile): Setup the compiled pattern for multibyte chars | |
6385 | even if the given regex string is unibyte. Use PATFETCH_RAW | |
6386 | instead of PATFETCH in many places. To handle `charset' | |
c5ad7a3d | 6387 | specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap |
aca7a3d2 | 6388 | only for ASCII chars. |
1f45f627 | 6389 | (analyse_first) <exactn>: Simplify because the compiled pattern |
aca7a3d2 MB |
6390 | is multibyte. |
6391 | <charset_not>: Setup fastmap from bitmap only for ASCII chars. | |
6392 | <charset>: Use CHAR_LEADING_CODE to get leading codes. | |
1f45f627 | 6393 | <categoryspec>: If multibyte, setup fastmap only for ASCII chars here. |
aca7a3d2 MB |
6394 | (re_compile_fastmap) [emacs]: Call analyse_first with the arg |
6395 | multibyte always 1. | |
6396 | (re_search_2): In emacs, set the locale variable multibyte to 1, | |
6397 | otherwise to 0. New local variable target_multibyte. Check it | |
6398 | to decide the multibyteness of STR1 and STR2. If | |
6399 | target_multibyte is zero, convert unibyte chars to multibyte | |
6400 | before translating and checking fastmap. | |
6401 | (TARGET_CHAR_AND_LENGTH): New macro. | |
6402 | (re_match_2_internal): In emacs, set the locale variable multibyte | |
6403 | to 1, otherwise to 0. New local variable target_multibyte. Check | |
6404 | it to decide the multibyteness of STR1 and STR2. Use | |
6405 | TARGET_CHAR_AND_LENGTH to fetch a character from D. | |
6406 | <charset, charset_not>: If multibyte is nonzero, check fastmap | |
c5ad7a3d | 6407 | only for ASCII chars. Call bcmp_translate with |
aca7a3d2 MB |
6408 | target_multibyte, not with multibyte. |
6409 | <begline>: Declare the local variable C as `unsigned'. | |
6410 | (bcmp_translate): Change the last arg name to target_multibyte. | |
6411 | ||
6412 | * search.c (compile_pattern_1): Don't adjust the multibyteness of | |
6413 | the regexp pattern and the matching target. Set cp->buf.multibyte | |
6414 | to the multibyteness of the regexp pattern. Set | |
1f45f627 | 6415 | cp->but.target_multibyte to the multibyteness of the matching target. |
aca7a3d2 MB |
6416 | (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of |
6417 | FETCH_STRING_CHAR_ADVANCE. | |
6418 | (Freplace_match): Convert unibyte chars to multibyte. | |
6419 | ||
4c4475a8 GM |
6420 | * syntax.c (char_quoted, back_comment, scan_words) |
6421 | (Fforward_comment, scan_lists, Fbackward_prefix_chars) | |
6422 | (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert | |
aca7a3d2 | 6423 | unibyte chars to multibyte. |
1f45f627 GM |
6424 | (skip_chars): Delete the arg syntaxp, and move the code for |
6425 | handling syntaxes to skip_syntaxes. Change callers. | |
aca7a3d2 MB |
6426 | Fix the case that the multibyteness of STRING and the current |
6427 | buffer doesn't match. | |
6428 | (skip_syntaxes): New function. | |
6429 | (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by | |
6430 | SINGLE_BYTE_CHAR_P. | |
aca7a3d2 | 6431 | |
73acf815 | 6432 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6433 | |
6434 | * xfaces.c (QCfontset): New variable. | |
6435 | (LFACE_FONTSET): New macro. | |
6436 | (check_lface_attrs): Check also LFACE_FONTSET_INDEX. | |
6437 | (set_lface_from_font_name): Setup LFACE_FONTSET (lface). | |
4c4475a8 GM |
6438 | (Finternal_set_lisp_face_attribute) |
6439 | (Finternal_get_lisp_face_attribute): Handle QCfontset. | |
aca7a3d2 MB |
6440 | (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, |
6441 | check also LFACE_FONTSET_INDEX. | |
6442 | (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not | |
6443 | attrs[LFACE_FONT_INDEX]. | |
6444 | (syms_of_xfaces): Intern and staticpro QCfontset. | |
6445 | ||
6446 | * dispextern.h (enum lface_attribute_index): New member | |
6447 | LFACE_FONTSET_INDEX. | |
6448 | ||
6449 | * fns.c (base64_encode_1): Handle eight-bit chars correctly. | |
6450 | ||
73acf815 | 6451 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6452 | |
6453 | * coding.c (coding_set_destination): Fix coding->destination for | |
6454 | the case converting a region. | |
6455 | (encode_coding_utf_8): Encode eight-bit chars as single byte. | |
6456 | (encode_coding_object): Fix coding->dst_pos and | |
6457 | coding->dst_pos_byte for the case converting a region. | |
6458 | ||
6459 | * insdel.c (insert_from_gap): Make it work even if PT != GTP. | |
6460 | ||
6461 | * character.h (BYTE8_STRING): New macro. | |
6462 | ||
6463 | * fns.c (base64_decode_1): Insert eight-bit chars correctly. | |
6464 | ||
73acf815 | 6465 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6466 | |
6467 | * xdisp.c (get_next_display_element): Don't display unibyte 8-bit | |
6468 | characters by octal form. | |
6469 | ||
6470 | * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. | |
6471 | ||
1f45f627 | 6472 | * buffer.h (_fetch_multibyte_char_len): Delete extern. |
4c4475a8 GM |
6473 | (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use |
6474 | _fetch_multibyte_char_len. | |
aca7a3d2 MB |
6475 | (FETCH_CHAR_AS_MULTIBYTE): New macro. |
6476 | ||
1f45f627 | 6477 | * casetab.c (set_canon, set_identity, shuffle): Simplify. |
aca7a3d2 | 6478 | |
1f45f627 | 6479 | * casefiddle.c (casify_object): Simplify. Handle the case that |
aca7a3d2 | 6480 | the case conversion change the byte length. |
1f45f627 | 6481 | (casify_region): Likewise. |
aca7a3d2 | 6482 | |
1f45f627 | 6483 | * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros. |
aca7a3d2 | 6484 | |
1f45f627 | 6485 | * character.c (_fetch_multibyte_char_len): Delet this variable. |
aca7a3d2 MB |
6486 | (syms_of_character): Setup Vprintable_chars. |
6487 | ||
6488 | * editfns.c (Fchar_equal): Fix for the unibyte case. | |
6489 | (Finsert_byte): New function. | |
6490 | (syms_of_editfns): Defsubr it. | |
6491 | ||
6492 | * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead | |
6493 | of direct code 0x3ffff. | |
6494 | ||
6495 | * search.c (Freplace_match): Fix for the unibyte case. | |
6496 | ||
73acf815 | 6497 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6498 | |
6499 | * lread.c (safe_to_load_p): Fix the logic. | |
6500 | ||
6501 | * syntax.c (scan_words): Don't treat characters belonging to | |
6502 | different scripts as constituting a word. | |
6503 | ||
6504 | * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
6505 | ||
1f45f627 | 6506 | * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script. |
aca7a3d2 MB |
6507 | |
6508 | * emacs.c (main): In the case of --unibyte, instead of aborting on | |
6509 | finding non-empty buffer, make it unibyte. | |
6510 | ||
73acf815 | 6511 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6512 | |
6513 | * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' | |
6514 | to create a fontset. | |
6515 | ||
73acf815 | 6516 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6517 | |
6518 | * character.c (Funibyte_char_to_multibyte): Doc fix. | |
6519 | ||
6520 | * xfns.c [HAVE_STDLIB_H]: Fix last change. | |
6521 | ||
73acf815 | 6522 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6523 | |
6524 | * fontset.c (fontset_add): Make the type `int'. | |
6525 | (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. | |
6526 | ||
4c4475a8 GM |
6527 | * character.c (unibyte_char_to_multibyte) |
6528 | (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to | |
aca7a3d2 | 6529 | charset_unibyte, not charset_primary. |
aca7a3d2 | 6530 | |
1f45f627 | 6531 | * charset.h (charset_unibyte): Extern it instead of charset_primary. |
aca7a3d2 | 6532 | |
1f45f627 GM |
6533 | * charset.c (charset_unibyte): Rename from charset_primary. |
6534 | (Funibyte_charset): Rename from Fprimary_charset. | |
6535 | (Fset_unibyte_charset): Rename from Fset_primary_charset. | |
6536 | (syms_of_charset): Adjust for the above changes. | |
aca7a3d2 MB |
6537 | |
6538 | * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
6539 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
6540 | it->multibyte_p is zero. | |
6541 | ||
6542 | * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): | |
1f45f627 | 6543 | Delete extern. |
aca7a3d2 | 6544 | |
73acf815 | 6545 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6546 | |
6547 | * coding.c (Fdefine_coding_system_internal): Fix category setting | |
6548 | for a coding system of type iso-2022. | |
6549 | ||
73acf815 | 6550 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6551 | |
1f45f627 | 6552 | * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1. |
aca7a3d2 | 6553 | |
73acf815 | 6554 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6555 | |
6556 | * syntax.c (Vnext_word_boundary_function_table): New variable. | |
1c8658b9 GM |
6557 | (next-word-boundary-function-table): Declare it as a Lisp variable |
6558 | in syms_of_syntax. | |
aca7a3d2 MB |
6559 | (scan_words): Call functions in Vnext_word_boundary_function_table |
6560 | if any. | |
6561 | ||
6562 | * xterm.c (x_load_font): Initialize fontp->fontset to -1. | |
6563 | ||
6564 | * fontset.c (fs_load_font): If fontp->charset is not negative, | |
6565 | return fontp without setting its members. | |
6566 | ||
73acf815 | 6567 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6568 | |
aca7a3d2 MB |
6569 | * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). |
6570 | ||
6571 | * m/sparc.h (HAVE_ALLOCA): Delete. | |
6572 | ||
6573 | * s/irix6-5.h: Don't include strings.h. | |
6574 | (bcopy, bzero, bcmp): Don't undef. | |
6575 | ||
6576 | * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. | |
6577 | ||
6578 | * s/usg5-4.h (NO_SIOCTL_H): Don't define. | |
6579 | (TIOCSIGSEND): Don't test IRIX6. | |
6580 | (bcopy, bzero, bcmp): Define conditionally. | |
6581 | ||
73acf815 | 6582 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6583 | |
6584 | * buffer.c (Qas, Qmake, Qto): New variables. | |
1f45f627 | 6585 | (Fset_buffer_multibyte): New optional arg METHOD. Change caller. |
aca7a3d2 MB |
6586 | (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. |
6587 | ||
6588 | * callproc.c (Fcall_process): Don't call insert_1_both directly if | |
6589 | we are inserting a process output into a multibyte buffer. | |
6590 | ||
6591 | * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call | |
6592 | multibyte_char_to_unibyte. | |
6593 | ||
6594 | * character.c (Funibyte_char_to_multibyte): If C can't be decoded | |
6595 | by the primary charset, make it eight-bit char. | |
6596 | (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. | |
6597 | ||
1f45f627 GM |
6598 | * charset.c (charset_eight_bit, Qeight_bit_control): New variables. |
6599 | (charset_8_bit__control, charset_8_bit_graphic) | |
6600 | (Qeight_bit_control, Qeight_bit_graphic): Delete these variables. | |
aca7a3d2 MB |
6601 | (define_charset_internal): New function. |
6602 | (syms_of_charset): Call define_charset_internal for pre-defined | |
6603 | charsets. | |
6604 | ||
6605 | * charset.h (charset_8_bit): Extern it. | |
6606 | ||
1f45f627 | 6607 | * coding.c (make_conversion_work_buffer): Adjust for the change |
aca7a3d2 MB |
6608 | of Fset_buffer_multibyte. |
6609 | (encode_coding_raw_text): Increment p0 in the loop. | |
6610 | ||
1f45f627 | 6611 | * lisp.h (Fset_buffer_multibyte): Adjust prototype. |
aca7a3d2 | 6612 | |
1f45f627 | 6613 | * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust |
aca7a3d2 MB |
6614 | for the change of Fset_buffer_multibyte. |
6615 | ||
6616 | * fns.c (Fstring_to_multibyte): New function. | |
6617 | (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. | |
6618 | ||
73acf815 | 6619 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6620 | |
6621 | * xfns.c (x_put_x_image): Declare args. | |
6622 | ||
1f45f627 | 6623 | * xfaces.c (font_name_registry, choose_face_font): Delete unused vars. |
aca7a3d2 MB |
6624 | (try_font_list): Declare an arg. |
6625 | ||
6626 | * xdisp.c (message2_nolog, set_message): Declare an arg. | |
6627 | ||
6628 | * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. | |
6629 | ||
6630 | * syntax.c (scan_sexps_forward): Declare an arg. | |
6631 | ||
6632 | * scroll.c (calculate_scrolling, calculate_direct_scrolling): | |
6633 | Declare an arg. | |
6634 | ||
6635 | * lisp.h (Fnew_fontset): Declare. | |
6636 | ||
6637 | * keymap.c (push_key_description): Call CHARACTERP correctly. | |
6638 | ||
1f45f627 | 6639 | * fontset.c (fontset_add): Declare args. Call make_number correctly. |
aca7a3d2 MB |
6640 | (face_for_char): Delete unused vars. |
6641 | (Fset_fontset_font): Doc fix. Delete unused vars. | |
6642 | ||
6643 | * doc.c (Fsubstitute_command_keys): Delete unused vars. | |
6644 | ||
6645 | * composite.c (update_compositions): Declare arg. | |
6646 | ||
6647 | * cm.c (calccost, cmgoto): Declare args. | |
6648 | ||
6649 | * charset.c: Remove `emacs' conditional. Doc fixes. | |
6650 | (map_char_table_for_charset): Declare. | |
6651 | ||
1f45f627 | 6652 | * character.c (syms_of_character) <translation-table-vector>: Doc fix. |
aca7a3d2 | 6653 | |
1f45f627 | 6654 | * ccl.c: Remove `emacs' conditional. |
aca7a3d2 | 6655 | |
73acf815 | 6656 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6657 | |
6658 | The following changes are to allow specifying multiple font | |
6659 | patterns for a character range (specified by script or charset). | |
6660 | ||
6661 | * Makefile.in (abbrev.o): Depend on syntax.h. | |
6662 | (xfaces.o): Depend on charset.h. | |
6663 | ||
6664 | * alloc.c (Fmake_string): Use ASCII_CHAR_P, not | |
6665 | SINGLE_BYTE_CHAR_P. | |
6666 | ||
6667 | * ccl.c (Fccl_execute_on_string): Add `const' to local variables. | |
6668 | ||
6669 | * character.h (Vchar_script_table): Extern it. | |
6670 | ||
1f45f627 | 6671 | * character.c (Vscript_alist): Delete. |
aca7a3d2 MB |
6672 | (Vchar_script_table, Qchar_script_table): New variable. |
6673 | (syms_of_character): Declare Vchar_script_table as a lisp variable | |
6674 | and initialize it. | |
6675 | ||
1f45f627 | 6676 | * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't |
aca7a3d2 MB |
6677 | have property char-table-extra-slots, make no extra slot. |
6678 | ||
1f45f627 | 6679 | * dispextern.h (struct face): Delete member `charset'. |
4c4475a8 GM |
6680 | (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not |
6681 | SINGLE_BYTE_CHAR_P. | |
1f45f627 GM |
6682 | (choose_face_font, lookup_non_ascii_face, font_name_registry): |
6683 | Add prototypes. | |
6684 | (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype. | |
6685 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
6686 | |
6687 | * fontset.h (get_font_repertory_func): New prototype. | |
1f45f627 | 6688 | (make_fontset_for_ascii_face, fs_load_font): Fix prototypes. |
aca7a3d2 MB |
6689 | (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. |
6690 | ||
6691 | * fontset.c (Qprepend, Qappend): New variables. | |
1f45f627 | 6692 | (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete. |
aca7a3d2 MB |
6693 | (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. |
6694 | (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. | |
6695 | (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. | |
6696 | (fontset_ref_and_range, fontset_add, reorder_font_vector) | |
6697 | (load_font_get_repertory): New functions. | |
1f45f627 | 6698 | (fontset_set): Delete. |
aca7a3d2 | 6699 | (fontset_face): New arg FACE. Return face ID, not face. |
1f45f627 | 6700 | Complete re-write to handle new fontset structure. Change caller. |
aca7a3d2 MB |
6701 | (free_face_fontset): Use ASET istead of AREF (X) = Y. |
6702 | (face_for_char): Don't call lookup_face. | |
6703 | (make_fontset_for_ascii_face): New arg FACE. | |
6704 | (fs_load_font): New arg CHARSET_ID. Don't check | |
6705 | Vfont_encoding_alist here. | |
6706 | (find_font_encoding): New function. | |
6707 | (list_fontsets): Use STRINGP, not ! NILP. | |
6708 | (accumulate_script_ranges): New function. | |
6709 | (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely | |
6710 | re-written to handle new fontset structure. | |
6711 | (Ffontset_font): Return a copy of element. | |
6712 | (syms_of_fontset): Define symbols Qprepend and Qappend. Fix | |
6713 | docstring of font-encoding-alist. | |
6714 | ||
6715 | * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). | |
6716 | (Fset_fotset_font): Fix arguments to 5. | |
6717 | ||
1f45f627 | 6718 | * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face. |
aca7a3d2 MB |
6719 | |
6720 | * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): | |
6721 | Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
1f45f627 | 6722 | (highlight_trailing_whitespace): Adjust for the change of |
aca7a3d2 MB |
6723 | lookup_named_face. |
6724 | ||
6725 | * xfaces.c: Include charset.h. | |
1f45f627 GM |
6726 | (load_face_font): Delete argument C. Change caller. |
6727 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
6728 | (font_name_registry): New function. |
6729 | (cache_face): Store ascii faces before non-ascii faces in buckets. | |
1f45f627 | 6730 | (lookup_face): Delete arguments C and BASE_FACE. Change caller. |
aca7a3d2 MB |
6731 | Lookup only ascii faces. |
6732 | (lookup_non_ascii_face): New function. | |
1f45f627 GM |
6733 | (lookup_named_face): Delete argument C. Change caller. |
6734 | (lookup_derived_face): Delete argument C. Change caller. | |
6735 | (try_font_list): New arg PATTERN. Change caller. If PATTERN is | |
aca7a3d2 | 6736 | a string, just call font_list with it. |
1f45f627 GM |
6737 | (choose_face_font): Delete arguments FACE and C. New arg |
6738 | FONT_SPEC. Change caller. | |
4c4475a8 GM |
6739 | (realize_face, realize_x_face): Delete arguments C and BASE_FACE. |
6740 | Change caller. | |
aca7a3d2 MB |
6741 | (realize_non_ascii_face): New function. |
6742 | (realize_x_face): Call load_face_font here. | |
1f45f627 | 6743 | (realize_tty_face): Delete argument C. Change caller. |
aca7a3d2 MB |
6744 | (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to |
6745 | get a face ID. | |
6746 | (dump_realized_face): Don't print charset of FACE. | |
6747 | ||
6748 | * xfns.c (x_set_font): Always call x_new_fontset and | |
6749 | store_frame_parameter. | |
6750 | (Fx_create_frame): Call x_new_fontset, not x_new_font. | |
1f45f627 | 6751 | (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory. |
aca7a3d2 MB |
6752 | |
6753 | * xterm.h (x_get_font_repertory): Extern it. | |
6754 | ||
6755 | * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
6756 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
6757 | it->multibyte_p is zero. | |
6758 | (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
6759 | (x_new_fontset): If FONTSETNAME doesn't match any existing | |
6760 | fontsets, create a new one. | |
6761 | (x_get_font_repertory): New function. | |
6762 | ||
73acf815 | 6763 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6764 | |
6765 | * coding.c (Ffind_coding_systems_region_internal): Detect an | |
6766 | ASCII only string correctly. | |
6767 | ||
6768 | * lread.c (Fload): Don't load with Qload_force_doc_strings t if | |
6769 | version is 0. | |
6770 | ||
73acf815 | 6771 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6772 | |
6773 | * lread.c: Include "coding.h". | |
1f45f627 GM |
6774 | (Qget_emacs_mule_file_char, Qload_force_doc_strings) |
6775 | (load_each_byte, unread_char): New variables. | |
6776 | (readchar_backlog): Delete. | |
aca7a3d2 MB |
6777 | (readchar): Return a character unless load_each_byte is nonzero. |
6778 | Handle the case that readcharfun is Qget_emacs_mule_file_char or a | |
6779 | cons. If unread_char is not -1, simply return it. | |
6780 | (unreadchar): Handle the case that readcharfun is | |
1f45f627 GM |
6781 | Qget_emacs_mule_file_char or a cons. Set unread_char if necessary. |
6782 | (read_multibyte): Delete. | |
aca7a3d2 MB |
6783 | (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) |
6784 | (read_emacs_mule_char): New functions. | |
6785 | (Fload): Even if the file doesn't have the extention ".elc", if | |
6786 | safe_to_load_p returns a positive version number, assume that the | |
6787 | file contains bytecompiled code. If the version is less than 22, | |
6788 | load the file while decoding multibyte sequences by emacs-mule. | |
6789 | (readevalloop): Don't use readchar_backlog. | |
1f45f627 GM |
6790 | (Fread): Likewise. Pay attention to the case that STREAM is a cons. |
6791 | (Fread_from_string): Pay attention to the case that STREAM is a cons. | |
6792 | (read_escape): Delete the arg BYTEREP. | |
aca7a3d2 MB |
6793 | (read1): Set load_each_byte to 1 temporarily while handling |
6794 | #@NUMBER. Don't call read_multibyte. | |
6795 | (read_vector): Call Fread with a cons. If readcharfun is | |
6796 | Qget_emacs_mule_file_char, decode the read string by emacs-mule. | |
1f45f627 | 6797 | (read_list): If doc_reference is 2, make the cdr part string as unibyte. |
aca7a3d2 MB |
6798 | (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char |
6799 | and Qload_force_doc_strings. | |
6800 | ||
73acf815 | 6801 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6802 | |
6803 | * xdisp.c (face_before_or_after_it_pos): Call | |
6804 | FETCH_MULTIBYTE_CHAR with byte postion, not char position. | |
6805 | ||
73acf815 | 6806 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6807 | |
6808 | * character.h (TRAILING_CODE_P): New macro. | |
1f45f627 | 6809 | (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
6810 | (string_char_with_unification): Fix prototype. |
6811 | (Vscript_alist): Extern it. | |
6812 | ||
6813 | * character.c (Vscript_alist): New variable. | |
4c4475a8 GM |
6814 | (string_char_with_unification, str_as_unibyte) |
6815 | (string_escape_byte8): Add `const' to local variables. | |
aca7a3d2 MB |
6816 | (syms_of_character): Declare script-alist as a Lisp variable. |
6817 | ||
6818 | * charset.h (Vcharset_ordered_list): Extern it. | |
6819 | (charset_ordered_list_tick): Extern it. | |
6820 | (EMACS_MULE_LEADING_CODE_PRIVATE_11) | |
6821 | (EMACS_MULE_LEADING_CODE_PRIVATE_12) | |
6822 | (EMACS_MULE_LEADING_CODE_PRIVATE_21) | |
6823 | (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros | |
1f45f627 | 6824 | (Funify_charset): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
6825 | |
6826 | * charset.c (charset_ordered_list_tick): New variable. | |
6827 | (Fdefine_charset_internal): Increment charset_ordered_list_tick. | |
6828 | (Funify_charset): New optional arg DEUNIFY. If it is non-nil, | |
6829 | deunify intead of unify a charset. | |
6830 | (string_xstring_p): Add `const' to local variables. | |
1f45f627 GM |
6831 | (find_charsets_in_text): Add `const' to arguemnts and local variables. |
6832 | (encode_char): Adjust for the change of Funify_charset. Fix | |
aca7a3d2 MB |
6833 | detecting of invalid code. |
6834 | (Fset_charset_priority): Increment charset_ordered_list_tick. | |
6835 | (Fmap_charset_chars): Fix handling of default value for FROM_CODE | |
6836 | and TO_CODE. | |
6837 | ||
6838 | * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) | |
1f45f627 GM |
6839 | (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros. |
6840 | Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. | |
4c4475a8 GM |
6841 | (decode_coding_ccl, consume_chars) |
6842 | (Ffind_coding_systems_region_internal) | |
6843 | (Fcheck_coding_systems_region): Add `const' to local variables. | |
aca7a3d2 MB |
6844 | |
6845 | * print.c (print_object): Use octal form for printing the | |
6846 | contents of a bool vector. | |
6847 | ||
73acf815 | 6848 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6849 | |
6850 | * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. | |
6851 | <version == 20>: Refuse to load. | |
6852 | ||
73acf815 | 6853 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6854 | |
6855 | * fns.c: Move coding.h. | |
6856 | (Qcodeset, Qdays, Qmonths): New. | |
6857 | (concat): Use CHARACTERP instead of INTERGERP. | |
1f45f627 | 6858 | (Flocale_codeset): Delete. |
aca7a3d2 | 6859 | (Flanginfo): New function. |
1f45f627 | 6860 | (syms_of_fns): Change accordingly. |
aca7a3d2 MB |
6861 | |
6862 | * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. | |
6863 | ||
73acf815 | 6864 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6865 | |
6866 | * casetab.c (init_casetab_once, init_casetab_once): Fix | |
6867 | CHAR_TABLE_SET call. | |
6868 | ||
6869 | * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. | |
6870 | ||
6871 | * character.c (syms_of_character): Fix CHAR_TABLE_SET call. | |
6872 | ||
6873 | * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. | |
6874 | (load_charset_map, Fdeclare_equiv_charset, Fencode_char) | |
6875 | (Fset_charset_priority, syms_of_charset): Convert Lisp types. | |
6876 | ||
6877 | * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. | |
6878 | ||
6879 | * coding.c (ENCODE_DESIGNATION, decode_eol) | |
6880 | (make_conversion_work_buffer, code_conversion_restore) | |
6881 | (Fdefine_coding_system_internal): Convert Lisp types. | |
6882 | (code_conversion_restore): Use EQ, not ==. | |
6883 | (Fencode_coding_string): Fix code_convert_string call. | |
6884 | ||
6885 | * coding.h (code_convert_region): Fix prototype. | |
6886 | ||
1f45f627 | 6887 | * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove. |
aca7a3d2 MB |
6888 | |
6889 | * fontset.c (fontset_ref, fontset_set, fs_load_font) | |
6890 | (Ffontset_info): Convert Lisp types. | |
6891 | ||
6892 | * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. | |
6893 | ||
6894 | * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. | |
6895 | ||
6896 | * xdisp.c (display_mode_element): Fix call of Fset_text_properties. | |
6897 | ||
6898 | * chartab.c: Include "...h", not <...h> in some cases. | |
6899 | ||
6900 | * callproc.c (Fcall_process): Remove unused variables. | |
6901 | ||
73acf815 | 6902 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6903 | |
6904 | * coding.c (Fset_coding_system_priority): Allow null arg list. | |
6905 | ||
73acf815 | 6906 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6907 | |
6908 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
6909 | (Fself_insert_and_exit): Use CHARACTERP. | |
6910 | ||
6911 | * callproc.c (Fcall_process): Remove unused vars. | |
6912 | ||
6913 | * xterm.c (XTread_socket): Add extra dead keysyms. | |
6914 | ||
6915 | * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. | |
6916 | ||
6917 | * dispextern.h: Remove prototypes for redraw_frame, | |
6918 | redraw_garbaged_frames. | |
6919 | ||
6920 | * cmds.c (Fself_insert_command): Use CHARACTERP. | |
6921 | ||
6922 | * chartab.c (make_sub_char_table): Remove unused var. | |
6923 | (Fset_char_table_default, Fmap_char_table): Doc fix. | |
6924 | ||
6925 | * keymap.c (access_keymap): Remove generic char code. | |
6926 | (push_key_description): Use CHARACTERP. | |
6927 | ||
73acf815 | 6928 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6929 | |
6930 | * charset.c: Doc fixes. | |
6931 | (Funify_charset): Extra checking. | |
6932 | ||
73acf815 | 6933 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6934 | |
6935 | * lread.c: Remove some unused variables. | |
6936 | (safe_to_load_p): If safe, return the magic number version byte. | |
6937 | (Fload): Maybe use load-with-code-conversion. | |
6938 | ||
73acf815 | 6939 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6940 | |
6941 | * category.c (Fmodify_category_entry): Don't modify the contents | |
6942 | of category_set for characters out of the range. Avoid | |
6943 | unnecessary modification. | |
6944 | ||
1f45f627 | 6945 | * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of |
aca7a3d2 MB |
6946 | Vchar_unify_table. The default value of the table is now nil. |
6947 | ||
6948 | * character.c (syms_of_character): Setup Vchar_width_table for | |
6949 | eight-bit-control and raw-byte chars. | |
6950 | ||
6951 | * charset.h (enum define_charset_arg_index): Delete | |
6952 | charset_arg_parents and add charset_arg_subset and | |
6953 | charset_arg_superset. | |
6954 | (enum charset_attr_index): Delete charset_parents and add | |
6955 | charset_subset and charset_superset. | |
6956 | (enum charset_method): Delete CHARSET_METHOD_INHERIT and add | |
6957 | CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. | |
1f45f627 | 6958 | (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete. |
aca7a3d2 MB |
6959 | (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) |
6960 | (CHARSET_SUPERSET): New macros. | |
6961 | (charset_work): Extern it. | |
6962 | (ENCODE_CHAR): Use charset_work. | |
1f45f627 | 6963 | (CHAR_CHARSET_P): Adjust for the change of encoder format. |
aca7a3d2 MB |
6964 | (map_charset_chars): Extern it. |
6965 | ||
6966 | * charset.c (load_charset_map): Set the default value of encoder | |
6967 | and deunifier char-tables to nil. | |
1f45f627 | 6968 | (map_charset_chars): Change argument. Change callers. Use |
aca7a3d2 MB |
6969 | map_char_table_for_charset instead of map_char_table. |
6970 | (Fmap_charset_chars): New optional args from_code and to_code. | |
1f45f627 | 6971 | (Fdefine_charset_internal): Adjust for the change of |
aca7a3d2 MB |
6972 | `define-charset' (:parents -> :subset or :superset). |
6973 | (charset_work): New variable. | |
4c4475a8 GM |
6974 | (encode_char, syms_of_charset): Adjust for the change of |
6975 | Fdefine_charset_internal. | |
aca7a3d2 MB |
6976 | (Ffind_charset_string): Setup the vector `charsets' correctly. |
6977 | ||
1f45f627 | 6978 | * chartab.c (sub_char_table_ref_and_range): New arg default. Fix |
aca7a3d2 | 6979 | the previous change. |
1f45f627 | 6980 | (char_table_ref_and_range): Adjust for the above change. |
aca7a3d2 MB |
6981 | (map_sub_char_table_for_charset): New function. |
6982 | (map_char_table_for_charset): New function. | |
6983 | ||
6984 | * keymap.c (describe_vector): Handle a char-table directly here. | |
1f45f627 | 6985 | (describe_char_table): Delete. |
aca7a3d2 | 6986 | |
1f45f627 | 6987 | * lisp.h (map_charset_chars): Delete. |
aca7a3d2 | 6988 | |
73acf815 | 6989 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6990 | |
6991 | * fns.c (count_combining): Comment out (unused). | |
6992 | (Flocale_codeset): New. | |
6993 | (syms_of_fns): Defsubr it. | |
6994 | ||
6995 | * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. | |
1f45f627 | 6996 | (size_t): Remove. |
aca7a3d2 | 6997 | |
73acf815 | 6998 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6999 | |
6f69e89b | 7000 | * Makefile.in (chartab.o): Depend on charset.h. |
aca7a3d2 | 7001 | |
73acf815 | 7002 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7003 | |
7004 | * character.c (syms_of_character): Set the default value of | |
7005 | Vprintable_chars to Qnil. | |
7006 | ||
73acf815 | 7007 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7008 | |
7009 | * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. | |
7010 | ||
73acf815 | 7011 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7012 | |
7013 | * charset.c (load_charset_map): Handle the case that from < to | |
7014 | correctly. | |
7015 | ||
4c4475a8 GM |
7016 | * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022) |
7017 | (encode_coding_sjis, encode_coding_big5, encode_coding_charset): | |
7018 | Pay attention to raw-8-bit chars. | |
aca7a3d2 | 7019 | |
73acf815 | 7020 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7021 | |
4c4475a8 GM |
7022 | * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el. |
7023 | It is not bytecompiled now. | |
aca7a3d2 MB |
7024 | |
7025 | * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) | |
7026 | (charset_jisx0208): New variables. | |
7027 | (Fdefine_charset_internal): Setup them if appropriate. | |
7028 | (init_charset_once): Initialize them to -1. | |
7029 | ||
1f45f627 GM |
7030 | * charset.h (charset_jisx0201_roman, charset_jisx0208_1978) |
7031 | (charset_jisx0208): Extern them. | |
aca7a3d2 MB |
7032 | |
7033 | * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro | |
7034 | (CODING_ISO_FLAG_USE_OLDJIS): New macro. | |
1f45f627 GM |
7035 | (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition. |
7036 | (setup_iso_safe_charsets): Fix arguments to Fassq. | |
4c4475a8 GM |
7037 | (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1) |
7038 | (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to | |
7039 | CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS. | |
aca7a3d2 MB |
7040 | (encode_coding_iso_2022): Change the 1st arg to |
7041 | ENCODE_ISO_CHARACTER to a variable. | |
7042 | ||
73acf815 | 7043 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7044 | |
7045 | * charset.h (enum define_charset_arg_index): New enums | |
7046 | charset_arg_min_code and charset_arg_max_code. | |
7047 | (struct charset): New member char_index_offset. | |
7048 | ||
4c4475a8 GM |
7049 | * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT): |
7050 | Take charset->char_index_offset into account. | |
aca7a3d2 MB |
7051 | (Fdefine_charset_internal): Handle args[charset_arg_min_code] and |
7052 | args[charset_arg_max_code]. Setup charset.char_index_offset. | |
7053 | (syms_of_charset): Fix args to Fdefine_charset_internal. | |
7054 | ||
73acf815 | 7055 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7056 | |
7057 | * coding.c (decode_coding_utf_8): Reject overlong sequences. | |
7058 | ||
73acf815 | 7059 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7060 | |
7061 | * coding.c: Doc fixes. | |
7062 | (Fcoding_system_aliases): Fix return value. | |
7063 | (Qmac): Remove (duplicated) definition. | |
7064 | ||
73acf815 | 7065 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7066 | |
7067 | * charset.c (Fcharset_priority_list, Fset_charset_priority): New | |
7068 | functions. | |
7069 | ||
7070 | * character.c (Fstring): Doc fix. | |
7071 | ||
7072 | * charset.c (Fdefine_charset_alias): Update Vcharset_list. | |
7073 | ||
7074 | * fontset.c (Ffontset_info): Doc fix. Return charset names, not | |
7075 | ids. | |
7076 | (font-encoding-alist): Doc fix. | |
7077 | ||
73acf815 | 7078 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7079 | |
7080 | * term.c (costs_set): Declare static, non-initialized for pcc. | |
1f45f627 | 7081 | (encode_terminal_code): Remove unused var. |
aca7a3d2 MB |
7082 | |
7083 | * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | |
7084 | for K&R. | |
7085 | ||
7086 | * xterm.c (xlwmenu_window_p): Fix prototype for K&R. | |
7087 | ||
7088 | * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. | |
1f45f627 | 7089 | (suffixes): Move out of make_subsidiaries for K&R. |
aca7a3d2 | 7090 | |
1f45f627 | 7091 | * charset.c (map_charset_chars): Fix c_function declaration for K&R. |
aca7a3d2 MB |
7092 | |
7093 | * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. | |
7094 | ||
73acf815 | 7095 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7096 | |
7097 | * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. | |
7098 | ||
1f45f627 | 7099 | * category.c (Fmodify_category_entry): Doc fix. Remove unused vars. |
aca7a3d2 | 7100 | |
2a2e8de7 | 7101 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 MB |
7102 | |
7103 | * charset.c (Fdefine_charset_internal): Fix argument to bzero. | |
7104 | ||
1f45f627 | 7105 | * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96. |
aca7a3d2 | 7106 | |
73acf815 | 7107 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7108 | |
4c4475a8 | 7109 | * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el, |
aca7a3d2 | 7110 | vietnamese.elc to vietnamese.el. They are not bytecompiled now. |
aca7a3d2 | 7111 | |
73acf815 | 7112 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7113 | |
1f45f627 | 7114 | * coding.c (decode_coding_charset): Adjust for the change of |
aca7a3d2 MB |
7115 | Fdefine_coding_system_internal. |
7116 | (Fdefine_coding_system_internal): For a coding system of | |
7117 | `charset' type, store a list of charset IDs in | |
7118 | `charset_attr_charset_valids' element of coding attributes. | |
7119 | ||
73acf815 | 7120 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7121 | |
7122 | * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. | |
1f45f627 GM |
7123 | (emacs_mule_char): New arg src. Delete arg `composition'. Change |
7124 | caller. Handle 2-byte and 3-byte charsets correctly. | |
7125 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from | |
7126 | DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller. | |
aca7a3d2 MB |
7127 | (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. |
7128 | (DECODE_EMACS_MULE_21_COMPOSITION): Call | |
7129 | DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation | |
7130 | sequence. | |
7131 | (decode_coding_emacs_mule): Handle composition correctly. Rewind | |
1f45f627 | 7132 | `src' and `consumed_chars' correctly before calling emacs_mule_char. |
aca7a3d2 MB |
7133 | (DECODE_COMPOSITION_START): Correctly handle the case of altchar |
7134 | and alt&rule composition. | |
7135 | (decode_coding_iso_2022): Handle composition correctly. | |
7136 | (init_coding_once): Setup emacs_mule_bytes for private charsets. | |
7137 | ||
7138 | * charset.c (Fdefine_charset_internal): Fix bug for the case of | |
7139 | re-defining a charset. If the charset has :emacs-mule-id, setup | |
7140 | emacs_mule_bytes. | |
1f45f627 | 7141 | (Fmake_char): If CODE1 is nil, use the minimum code of the charset. |
aca7a3d2 | 7142 | |
73acf815 | 7143 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7144 | |
4c4475a8 GM |
7145 | * coding.c (encode_coding_iso_2022, encode_coding_sjis) |
7146 | (encode_coding_big5, encode_coding_charset): If coding requires safe | |
aca7a3d2 MB |
7147 | encoding, produce a character specified by |
7148 | CODING_INHIBIT_CHARACTER_SUBSTITUTION. | |
aca7a3d2 | 7149 | |
73acf815 | 7150 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7151 | |
7152 | * xterm.c (XSetIMValues): Declare. | |
7153 | ||
7154 | * process.c: Conditionally include sys/wait.h, pty.h. | |
7155 | ||
1f45f627 | 7156 | * print.c (print_object): Fix print format for 64-bit systems. |
aca7a3d2 | 7157 | |
1f45f627 | 7158 | * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems. |
aca7a3d2 MB |
7159 | |
7160 | * buffer.c (emacs_strerror): Declare. | |
aca7a3d2 MB |
7161 | |
7162 | * fontset.c (Fclear_face_cache): Declare. | |
1f45f627 | 7163 | (accumulate_font_info): Comment-out (unused). |
aca7a3d2 MB |
7164 | (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused |
7165 | variables. | |
7166 | ||
7167 | * character.h (string_escape_byte8): Declare. | |
7168 | ||
7169 | * charset.c (load_charset_map, load_charset_map_from_file): Remove | |
7170 | unused vars. | |
7171 | (Fdefine_charset_internal, Fsplit_char, syms_of_charset) | |
7172 | (Fmap_charset_chars): Doc fix. | |
7173 | ||
1f45f627 | 7174 | * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove. |
aca7a3d2 MB |
7175 | (Fset_coding_system_priority, Fset_coding_system_priority) |
7176 | (Fdefine_coding_system_internal): Doc fix. | |
7177 | ||
73acf815 | 7178 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7179 | |
7180 | * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. | |
7181 | ||
73acf815 | 7182 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7183 | |
7184 | * character.c (string_escape_byte8): Make multibyte string with | |
7185 | correct size. | |
7186 | ||
7187 | * charset.c (Fmake_char): Delete unnecessary code. | |
7188 | ||
73acf815 | 7189 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7190 | |
7191 | * xfns.c (x_encode_text): Allocate coding.destination here, and | |
7192 | call encode_coding_object with dst_object Qnil. | |
7193 | ||
7194 | * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | |
7195 | multibyte form correctly. | |
7196 | ||
7197 | * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | |
7198 | against Vfont_encoding_alist. | |
7199 | ||
7200 | * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | |
7201 | handling of charset list. | |
7202 | (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | |
7203 | (decode_coding_object): Move point to coding->dst_pos before | |
7204 | calling post-read-conversion function. | |
7205 | (encode_coding_object): Give correct arguments to | |
7206 | pre-write-conversion. Ignore the return value of | |
7207 | pre-write-conversion function. Pay attention to the case that | |
7208 | pre-write-conversion changes the current buffer. If dst_object is | |
7209 | Qt, even if coding->src_bytes is zero, allocate at least one byte | |
7210 | to coding->destination. | |
7211 | ||
7212 | * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | |
7213 | ||
7214 | * charset.c (Fmake_char): Make it more backward compatible. | |
7215 | (Fmap_charset_chars): Fix docstring. | |
7216 | ||
73acf815 | 7217 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7218 | |
7219 | * coding.c: Doc fixes. | |
7220 | (Fdefine_coding_system_alias): Use names, not symbols, in | |
7221 | coding-system-alist. | |
7222 | ||
73acf815 | 7223 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7224 | |
7225 | * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead | |
7226 | of calling free_realized_face. | |
7227 | ||
2a2e8de7 | 7228 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 | 7229 | |
1f45f627 GM |
7230 | * charset.c (read_hex): Don't treat SPC as a comment starter. |
7231 | (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1. | |
aca7a3d2 MB |
7232 | (Fdecode_char): Fix typo. |
7233 | ||
73acf815 | 7234 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7235 | |
7236 | * charset.h (struct charset): New member `code_space_mask'. | |
7237 | ||
1f45f627 | 7238 | * coding.c (coding_set_source): Delete the local variable beg_byte. |
4c4475a8 GM |
7239 | (encode_coding_charset, Fdefine_coding_system_internal): |
7240 | Delete the local variable charset. | |
aca7a3d2 MB |
7241 | (Fdefine_coding_system_internal): Setup |
7242 | attrs[coding_attr_charset_valids] correctly. | |
7243 | ||
7244 | * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' | |
7245 | member to check if CODE is valid or not. | |
7246 | (Fdefine_charset_internal): Initialize `code_space_mask' member. | |
7247 | (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE | |
7248 | is within the range of charset->min_code and carset->max_code. | |
7249 | ||
73acf815 | 7250 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7251 | |
7252 | * syntax.h (syntax_temp) [!__GNUC__]: Declare. | |
7253 | ||
7254 | * dispextern.h (generate_ascii_font): Fix return type. | |
7255 | ||
7256 | * xfaces.c (generate_ascii_font): Fix arg declaration. | |
7257 | ||
7258 | * coding.c (coding_inherit_eol_type) | |
7259 | (Fset_terminal_coding_system_internal) | |
7260 | (Fset_safe_terminal_coding_system_internal): Fix arg declarations. | |
7261 | ||
73acf815 | 7262 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7263 | |
7264 | * coding.c (decode_coding_charset, encode_coding_charset): Handle | |
7265 | multiple charsets correctly. | |
7266 | ||
73acf815 | 7267 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7268 | |
7269 | * search.c (boyer_moore): Fix handling of mulitbyte character | |
7270 | translation. | |
7271 | ||
7272 | * xdisp.c (display_mode_element): When the variable `elt' is | |
7273 | changed, update `this' and `lisp_string'. | |
7274 | ||
73acf815 | 7275 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7276 | |
7277 | * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. | |
7278 | ||
7279 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
1f45f627 | 7280 | to decode_coding_c_string. Update PT and PT_BYTE after the insertion. |
aca7a3d2 MB |
7281 | |
7282 | * charset.c (struct charset_map_entries): New struct. | |
1f45f627 GM |
7283 | (load_charset_map): Rename from parse_charset_map. New args |
7284 | entries and n_entries. Change caller. | |
7285 | (load_charset_map_from_file): Rename from load_charset_map. | |
7286 | Change caller. New arg control_flag. Call load_charset_map at | |
aca7a3d2 MB |
7287 | the tail. |
7288 | (load_charset_map_from_vector): New function. | |
7289 | (Fdefine_charset_internal): Setup charset.compact_codes_p. | |
7290 | (encode_char): If the charset is compact, change a character index | |
7291 | to a code point. | |
7292 | ||
7293 | * coding.c (coding_alloc_by_making_gap): Check the case that the | |
7294 | source and destination are the same correctly. | |
7295 | (decode_coding_raw_text): Set coding->consumed_char and | |
7296 | coding->consumed to 0. | |
7297 | (produce_chars): If coding->chars_at_source is nonzero, update | |
7298 | coding->consumed_char and coding->consumed before calling | |
7299 | alloc_destination. | |
7300 | (Fdefine_coding_system_alias): Register ALIAS in | |
7301 | Vcoding_system_alist. | |
7302 | (syms_of_coding): Define `no-convesion' coding system at the tail. | |
7303 | ||
7304 | * fileio.c (Finsert_file_contents): Set coding_system instead of | |
7305 | val. If the current buffer is multibyte, always call | |
7306 | decode_coding_gap. | |
7307 | ||
7308 | * xfaces.c (try_font_list): Give higher priority to fontset's | |
7309 | family than face's family. | |
7310 | ||
73acf815 | 7311 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7312 | |
7313 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
7314 | to decode_coding_c_string. | |
7315 | ||
7316 | * xfaces.c (try_font_list): Give a family specified in a fontset | |
7317 | higher priority than a family specified in a face. | |
7318 | ||
73acf815 | 7319 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7320 | |
7321 | * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. | |
7322 | Fix arguments to insert_from_buffer. | |
7323 | ||
7324 | * xdisp.c (display_mode_element): Fix calculation of `bytepos'. | |
7325 | ||
73acf815 | 7326 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7327 | |
7328 | * coding.c (produce_chars): Set the variable `multibytep' correctly. | |
7329 | (decode_coding_gap): Set coding->dst_multibyte correctly. | |
7330 | ||
73acf815 | 7331 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7332 | |
7333 | * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. | |
1f45f627 | 7334 | (decode_coding_utf_16): Fix converting high and low bytes to code-point. |
aca7a3d2 MB |
7335 | (encode_coding_utf_16): Substitute coding->default_char for |
7336 | non-Unicode characters. | |
7337 | (decode_coding): Don't call record_insert here. | |
7338 | (setup_coding_system): Initialize `surrogate' of | |
7339 | coding->spec.utf_16 to 0. | |
7340 | (EMIT_ONE_BYTE): Fix for multibyte case. | |
7341 | ||
7342 | * insdel.c (insert_from_gap): Call record_insert. | |
7343 | ||
73acf815 | 7344 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7345 | |
7346 | * casefiddle.c (casify_region): Fix multibyte case. | |
7347 | ||
7348 | * character.c (c_string_width): Add return type `int'. | |
1f45f627 | 7349 | (char_string_with_unification): Delete arg ADVANCED. |
aca7a3d2 MB |
7350 | |
7351 | * character.h (CHAR_VALID_P): Don't call CHARACTERP. | |
1f45f627 | 7352 | (CHAR_STRING): Adjust for the change of char_string_with_unification. |
aca7a3d2 MB |
7353 | (CHAR_STRING_ADVANCE): Make it do-while statement. |
7354 | ||
1f45f627 | 7355 | * chartab.c (sub_char_table_set_range): Optimize for the case |
aca7a3d2 MB |
7356 | DEPTH == 3. Add workaround code for a GCC optimization bug. |
7357 | ||
7358 | * charset.c (parse_charset_map): Remove an unused variable. | |
7359 | ||
7360 | * coding.c: Delete unused variables. | |
7361 | ||
7362 | * fileio.c (Finsert_file_contents): Set coding_system to Qnil | |
7363 | earlier. If inserted is zero and the coding system doesn't | |
7364 | require flushing, don't call decode_coding_gap. | |
7365 | ||
7366 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. | |
7367 | ||
73acf815 | 7368 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7369 | |
7370 | The following changes are for using Unicode as an internal | |
7371 | character model, and use UTF-8 format for buffer/string | |
7372 | representation. | |
7373 | ||
1f45f627 | 7374 | * .gdbinit (xchartable): Adjust for the change of char table structure. |
aca7a3d2 MB |
7375 | (xsubchartable, xcoding, xcharset, xcurbuf): New commands. |
7376 | ||
7377 | * Makefile.in (obj): Add character.o and chartab.o. | |
7378 | (lisp, shortlisp): Remove utf-8.elc: | |
7379 | (*.o): For many files, change dependency on charset.h to | |
7380 | character.h, and add dependency on character.h. | |
7381 | (character.o, chartab.o): New targets. | |
7382 | ||
1f45f627 GM |
7383 | * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c: |
7384 | * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c: | |
7385 | * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
aca7a3d2 MB |
7386 | of "charset.h". |
7387 | ||
7388 | * dired.c, filelock.c: Include "character.h". | |
7389 | ||
7390 | * alloc.c: Include "character.h" instead of "charset.h". | |
4c4475a8 | 7391 | (Fmake_char_table, make_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
7392 | (syms_of_alloc): Remove defsubr for Smake_char_table. |
7393 | ||
7394 | * buffer.c: Include "character.h" instead of "charset.h", don't | |
7395 | include "coding.h". | |
1f45f627 | 7396 | (Fset_buffer_multibyte): Adjust for UTF-8. |
aca7a3d2 MB |
7397 | |
7398 | * buffer.h: EXFUN Fbuffer_live_p. | |
7399 | ||
7400 | * callproc.c: Include "character.h" instead of "charset.h". | |
7401 | (Fcall_process): Big change for the new code-conversion APIs. | |
7402 | ||
7403 | * casetab.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7404 | (set_canon, set_identity, shuffle): Adjust for the new |
aca7a3d2 MB |
7405 | map_char_table spec. |
7406 | (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
7407 | accessing the char table structure. | |
7408 | ||
7409 | * chartab.c: New file that implements char table. | |
7410 | ||
7411 | * category.c: Include "character.h". | |
7412 | (copy_category_entry): New function. | |
7413 | (copy_category_table): Call map_char_table and copy_category_entry. | |
7414 | (Fmake_category_table): Initialize all top-vel slots. | |
7415 | (char_category_set): New function. | |
1f45f627 | 7416 | (modify_lower_category_set): Delete. |
aca7a3d2 MB |
7417 | (Fmodify_category_entry): Call char_table_ref_and_range. |
7418 | ||
7419 | * category.h (CATEGORY_SET): Just call char_category_set. | |
7420 | ||
7421 | * ccl.c: Include "character.h". | |
7422 | (Qccl, Qcclp): New variables. | |
7423 | (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
7424 | it's less than 256. | |
1f45f627 GM |
7425 | (CCL_WRITE_MULTIBYTE_CHAR): Delete. |
7426 | (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC | |
aca7a3d2 | 7427 | and DST type. |
1f45f627 GM |
7428 | (ccl_driver): Change types of argument, adjust code accordingly. |
7429 | (Fccl_execute, Fccl_execute_on_string): Adjust for the change of | |
aca7a3d2 MB |
7430 | ccl_driver. |
7431 | (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
7432 | ||
1f45f627 GM |
7433 | * ccl.h (struct ccl_program): Delete members eol_type and multibyte. |
7434 | New members src_multibyte, dst_multibyte, consumed, and produced. | |
7435 | (struct ccl_spec): Delete members decoder and encoder. New member ccl. | |
aca7a3d2 | 7436 | (CODING_SPEC_CCL_PROGRAM): New macro. |
1f45f627 | 7437 | (ccl_driver): Update prototype. |
aca7a3d2 MB |
7438 | (Qccl, Qcclp, Fccl_program_p): Extern them. |
7439 | (CHECK_CCL_PROGRAM): New macro. | |
7440 | ||
7441 | * character.c, character.h, chartab.c: New files. | |
7442 | ||
1f45f627 GM |
7443 | * charset.c: Mostly re-written. Move character and multibyte sequence |
7444 | handling codes to character.c. | |
aca7a3d2 | 7445 | |
1f45f627 GM |
7446 | * charset.h: Mostly re-written. Move character and multibyte sequence |
7447 | handling codes to character.h. | |
aca7a3d2 MB |
7448 | |
7449 | * coding.c, coding.h: Mostly re-written. | |
7450 | ||
7451 | * composite.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
7452 | (CHAR_WIDTH): Move to character.h. |
7453 | (HASH_KEY, HASH_VALUE): Delete. | |
aca7a3d2 | 7454 | |
1f45f627 GM |
7455 | * composite.h (enum composition_method): Change order of enumeration |
7456 | symbols. | |
aca7a3d2 MB |
7457 | |
7458 | * data.c: Include "character.h" instead of "charset.h". | |
7459 | (Faref): Call CHAR_TABLE_REF for a char table. | |
7460 | (Faset): Call CHAR_TABLE_SET for a char table. | |
7461 | ||
1f45f627 GM |
7462 | * dispextern.h (free_realized_face, check_face_attribytes) |
7463 | (generate_ascii_font): Extern them. | |
7464 | (free_realized_multibyte_face): Delete extern. | |
aca7a3d2 | 7465 | |
1f45f627 | 7466 | * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char |
aca7a3d2 MB |
7467 | table structure. |
7468 | ||
7469 | * editfns.c: Include "character.h" instead of "charset.h". | |
7470 | (Fchar_to_string): Always call CHAR_STRING. | |
7471 | ||
7472 | * emacs.c (main): Call init_charset_once, init_charset, | |
7473 | syms_of_chartab, and syms_of_character. | |
7474 | ||
7475 | * fileio.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7476 | (Finsert_file_contents): Big change for the new code-conversion API. |
4c4475a8 | 7477 | (choose_write_coding_system, Fwrite_region): Likewise. |
1f45f627 | 7478 | (build_annotations_2): Delete. |
aca7a3d2 MB |
7479 | (e_write): Big change for the new code-conversion API. |
7480 | ||
7481 | * fns.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7482 | (copy_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
7483 | (Fcopy_sequence): Call copy_char_table for a char table. |
7484 | (concat): Delete codes calling count_multibyte. | |
4c4475a8 GM |
7485 | (string_char_to_byte, string_byte_to_char): Adjust for the new |
7486 | multibyte form. | |
1f45f627 GM |
7487 | (internal_equal): Adjust for the change of char table structure. |
7488 | (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent) | |
7489 | (Fchar_table_extra_slot, Fset_char_table_extra_slot) | |
7490 | (Fchar_table_range, Fset_char_table_range, Fset_char_table_default) | |
7491 | (char_table_translate, optimize_sub_char_table) | |
7492 | (Foptimize_char_table, map_char_table, Fmap_char_table): Move to | |
aca7a3d2 | 7493 | chartab.c. |
1f45f627 GM |
7494 | (char_table_ref_and_index): Delete. |
7495 | (HASH_KEY, HASH_VALUE): Move to lisp.h. | |
aca7a3d2 | 7496 | (Fmd5): Call preferred_coding_system instead of accessing |
1f45f627 GM |
7497 | Vcoding_category_list. Adjust for the new code-conversion API. |
7498 | (syms_of_fns): Move defsubr for char table related functions to | |
aca7a3d2 MB |
7499 | chartab.c. |
7500 | ||
7501 | * fontset.c: Mostly re-written. | |
7502 | ||
1f45f627 | 7503 | * fontset.h (struct font_info): Change type of the member encoding_type. |
aca7a3d2 | 7504 | (enum FONT_SPEC_INDEX): New enum. |
1f45f627 GM |
7505 | (fontset_font_pattern, fs_load_font): Update prototype. |
7506 | (FS_LOAD_FONT): Adjust for the change of fs_load_font. | |
aca7a3d2 MB |
7507 | |
7508 | * indent.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7509 | (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD. |
aca7a3d2 MB |
7510 | |
7511 | * insdel.c: Include "character.h" instead of "charset.h". | |
7512 | (copy_text): Don't refer to Vnonascii_translation_table. | |
7513 | (insert_from_gap): New function. | |
7514 | ||
7515 | * keyboard.c: Include "character.h" instead of "charset.h". | |
7516 | (command_loop_1): Never call direct_output_forward_char before | |
7517 | a non-ASCII character. | |
7518 | (read_char): If Vkeyboard_translate_table is a char table, always | |
1f45f627 | 7519 | translate a character. |
aca7a3d2 MB |
7520 | |
7521 | * keymap.c: Include "character.h". | |
7522 | (store_in_keymap): Handle the case that IDX is a cons. | |
7523 | (Fdefine_key): Handle the case that KEY is a cons and the car part | |
7524 | is also a cons (range). | |
1f45f627 | 7525 | (push_key_description): Adjust for the new character code. |
aca7a3d2 MB |
7526 | (describe_vector): Call describe_char_table for a char table. |
7527 | (describe_char_table): New function. | |
7528 | ||
7529 | * keymap.h (describe_char_table): Extern it. | |
7530 | ||
7531 | * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
7532 | (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
1f45f627 GM |
7533 | (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS) |
7534 | (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
7535 | Delete. | |
7536 | (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table | |
aca7a3d2 MB |
7537 | structure. |
7538 | (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
1f45f627 GM |
7539 | (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2) |
7540 | (CHARTAB_SIZE_BITS_3): New macros. | |
aca7a3d2 | 7541 | (chartab_size): Extern it. |
1f45f627 | 7542 | (struct Lisp_Char_Table): Re-design. |
aca7a3d2 | 7543 | (struct Lisp_Sub_Char_Table): New structure. |
1f45f627 GM |
7544 | (HASH_KEY, HASH_VALUE): Move from fns.c. |
7545 | (CHARACTERBITS): Define as 22. | |
7546 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change. | |
aca7a3d2 MB |
7547 | (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. |
7548 | (GC_SUB_CHAR_TABLE_P): New macro. | |
1f45f627 GM |
7549 | (Fencode_coding_string, Fdecode_coding_string): Update EXFUN. |
7550 | (code_convert_string_norecord): Deleted extern. | |
7551 | (init_character_once, syms_of_character, init_charset) | |
7552 | (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
aca7a3d2 MB |
7553 | |
7554 | * lread.c: Include "character.h". | |
7555 | (read_multibyte): New arg NBYTES. | |
1f45f627 GM |
7556 | (read_escape): Change the meaning of returned *BYTEREP. |
7557 | (to_multibyte): Delete. | |
7558 | (read1): Adjust the handling of char table and string. | |
aca7a3d2 MB |
7559 | |
7560 | * print.c: Include "character.h" instead of "charset.h". | |
7561 | (print_string): Convert 8-bit raw bytes to octal form by | |
7562 | string_escape_byte8. | |
1f45f627 | 7563 | (print_object): Adjust for the new multibyte form. Print 8-bit |
aca7a3d2 MB |
7564 | raw bytes always in octal form. Handle sub char table correctly. |
7565 | ||
7566 | * process.c: Include "character.h" instead of "charset.h". | |
4c4475a8 GM |
7567 | (read_process_output, send_process): Adjust for the new |
7568 | code-conversion API. | |
aca7a3d2 | 7569 | |
1f45f627 | 7570 | * puresize.h (BASE_PURESIZE): Increase. |
aca7a3d2 MB |
7571 | |
7572 | * regex.c: Include "character.h" instead of "charset.h". | |
7573 | (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
7574 | (regex_compile): Accept a range whose starting and ending | |
7575 | character have different leading bytes. | |
1f45f627 | 7576 | (analyse_first): Adjust for the above change. |
aca7a3d2 MB |
7577 | |
7578 | * search.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
7579 | (search_buffer, boyer_moore): Adjust for the new multibyte form. |
7580 | (Freplace_match): Adjust for the change of multibyte_char_to_unibyte. | |
aca7a3d2 MB |
7581 | |
7582 | * syntax.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7583 | (syntax_parent_lookup): Delete. |
aca7a3d2 | 7584 | (Fmodify_syntax_entry): Accept a cons as CHAR. |
1f45f627 | 7585 | (skip_chars): Adjust for the new multibyte form. |
aca7a3d2 MB |
7586 | (init_syntax_once): Call char_table_set_range instead of directly |
7587 | accessing the structure of a char table. | |
7588 | ||
7589 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
1f45f627 | 7590 | (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro. |
aca7a3d2 MB |
7591 | (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. |
7592 | (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
7593 | ||
7594 | * term.c: Include "buffer.h" and "character.h". | |
4c4475a8 GM |
7595 | (encode_terminal_code, write_glyphs): Adjust for the new |
7596 | code-conversion API. | |
aca7a3d2 MB |
7597 | (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. |
7598 | ||
1f45f627 | 7599 | * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT. |
aca7a3d2 MB |
7600 | |
7601 | * xdisp.c: Include "character.h". | |
1f45f627 GM |
7602 | (get_next_display_element): Adjust for the new multibyte form. |
7603 | (disp_char_vector): Adjust for the new char table structure. | |
7604 | (decode_mode_spec_coding): Adjust for the new structure of | |
aca7a3d2 | 7605 | coding system. |
1f45f627 | 7606 | (decode_mode_spec): Adjust for the new code-conversion API. |
aca7a3d2 MB |
7607 | |
7608 | * xfaces.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7609 | (load_face_font): Adjust for the change of choose_face_font and |
aca7a3d2 MB |
7610 | FS_LOAD_FONT. |
7611 | (generate_ascii_font): New function. | |
1f45f627 GM |
7612 | (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT. |
7613 | (set_font_frame_param): Adjust for the change of choose_face_font. | |
aca7a3d2 | 7614 | (free_realized_face): Make it public. |
1f45f627 | 7615 | (free_realized_faces_for_fontset): Rename from |
aca7a3d2 | 7616 | free_realized_multibyte_face. Free also faces realized for ASCII. |
1f45f627 | 7617 | (choose_face_font): Change arguments. Adjust for the change of |
aca7a3d2 MB |
7618 | fontset_font_pattern and FS_LOAD_FONT. |
7619 | ||
7620 | * xfns.c: Include "character.h". | |
1f45f627 | 7621 | (x_encode_text): Adjust for the new code-conversion API. |
aca7a3d2 MB |
7622 | |
7623 | * xselect.c: Don't include "charset.h". | |
1f45f627 | 7624 | (selection_data_to_lisp_data): Adjust for the new code conversion API. |
aca7a3d2 MB |
7625 | |
7626 | * xterm.c: Include "character.h". | |
1f45f627 | 7627 | (x_encode_char): New argument CHARSET. Change caller. |
4c4475a8 GM |
7628 | (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding): |
7629 | Call ENCODE_CHAR instead of SPLIT_CHAR. | |
aca7a3d2 MB |
7630 | (x_produce_glyphs): Don't check Vnonascii_translation_table Call |
7631 | CHAR_WIDTH instead of CHARSET_WIDTH. | |
1f45f627 GM |
7632 | (XTread_socket): Adjust for the new code-conversion API. |
7633 | (x_new_font): Adjust for the change of FS_LOAD_FONT. | |
7634 | (x_load_font): Adjust for the change of struct font. | |
aca7a3d2 | 7635 | |
d6abfc14 SM |
7636 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
7637 | ||
7638 | * xfaces.c (face_at_buffer_position): Remove unused vars. | |
7639 | ||
0acdaf8d KH |
7640 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
7641 | ||
4c4475a8 GM |
7642 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR): |
7643 | Fix overflow checking. | |
0acdaf8d | 7644 | |
6c8a0ebf GM |
7645 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
7646 | ||
7647 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver): | |
7648 | Cancel previous change. | |
7649 | ||
7650 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> | |
7651 | ||
7652 | * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when | |
7653 | ccl->eight_bit_control. Fix check for buffer overflow. | |
7654 | (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow. | |
7655 | (ccl_driver): Initialize extra_bytes to 0. | |
7656 | ||
a32aad64 KH |
7657 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> |
7658 | ||
7659 | * keyboard.c (make_ctrl_char): If C is a multibyte character, just | |
7660 | return it ORed with ctrl_modifier. | |
7661 | ||
8b329dba MB |
7662 | 2008-01-29 Miles Bader <miles@gnu.org> |
7663 | ||
7664 | * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake. | |
7665 | ||
548667aa JR |
7666 | 2008-01-28 Jason Rumney <jasonr@gnu.org> |
7667 | ||
7668 | * w32.c (stat): Don't double check for networked drive. | |
7669 | ||
0975aa24 SM |
7670 | 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca> |
7671 | ||
ef264c42 SM |
7672 | * window.c (run_window_configuration_change_hook): New function. |
7673 | Code extracted from set_window_buffer. Set the selected frame. | |
7674 | (set_window_buffer): Use it. | |
7675 | * window.h (run_window_configuration_change_hook): Declare. | |
7676 | * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer. | |
7677 | ||
0975aa24 SM |
7678 | * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM). |
7679 | ||
9c28b587 DN |
7680 | 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu> |
7681 | ||
7682 | * Makefile.in: Remove references to unused macros. | |
7683 | ||
c617afce EZ |
7684 | 2008-01-26 Eli Zaretskii <eliz@gnu.org> |
7685 | ||
7686 | * w32.c (g_b_init_get_sid_sub_authority) | |
7687 | (g_b_init_get_sid_sub_authority_count): New static variables. | |
7688 | (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs. | |
7689 | (get_sid_sub_authority, get_sid_sub_authority_count): New functions. | |
0975aa24 SM |
7690 | (init_user_info): Use them to retrieve uid and gid. |
7691 | Use 500/513, the Windows defaults, as Administrator's uid/gid. | |
248c21c5 EZ |
7692 | (fstat): Use pw_uid and pw_gid from the_passwd structure for |
7693 | st_uid and st_gid of the file. | |
c617afce | 7694 | |
302d7d54 JR |
7695 | 2008-01-26 Jason Rumney <jasonr@gnu.org> |
7696 | ||
7697 | * w32.c (logon_network_drive): New function. | |
7698 | (stat): Use it. | |
7699 | ||
3ac7a21e CY |
7700 | 2008-01-26 Chong Yidong <cyd@stupidchicken.com> |
7701 | ||
7702 | * xdisp.c (pos_visible_p): Handle the case where charpos falls on | |
7703 | invisible text covered with an ellipsis. | |
7704 | ||
bbb9fc1f RS |
7705 | 2008-01-25 Richard Stallman <rms@gnu.org> |
7706 | ||
7707 | * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and | |
7708 | jump back to beginning. Move some other initializations after that. | |
7709 | (Qwindow_text_change_functions, Vwindow_text_change_functions): | |
7710 | New variables. | |
7711 | (syms_of_xdisp): Init them. | |
7712 | ||
7713 | * keyboard.c (read_char): Restore echo_message_buffer after redisplay. | |
7714 | ||
0975aa24 SM |
7715 | * buffer.c (reset_buffer_local_variables): |
7716 | Implement `permanent-local-hook'. | |
bbb9fc1f | 7717 | (Qpermanent_local_hook): New variable. |
0975aa24 | 7718 | (syms_of_buffer): Init and staticpro it. |
bbb9fc1f | 7719 | |
79235cbe MA |
7720 | 2008-01-25 Michael Albinus <michael.albinus@gmx.de> |
7721 | ||
7722 | * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux. | |
7723 | ||
ccd8f7fe TTN |
7724 | 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org> |
7725 | ||
7726 | * fns.c (Fclrhash): Return TABLE. | |
7727 | ||
dfbe40f2 | 7728 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
223b3d1d YM |
7729 | |
7730 | * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. | |
7731 | (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p | |
7732 | is set even without positional changes. | |
7733 | (x_scroll_bar_clear): Set bar->redraw_needed_p. | |
7734 | ||
7735 | * macterm.h (struct scroll_bar): New member `redraw_needed_p'. | |
7736 | ||
dfbe40f2 | 7737 | 2008-01-23 Jason Rumney <jasonr@gnu.org> |
602e142f | 7738 | |
d6169680 JR |
7739 | * xterm.c (handle_one_xevent): Revert to counting chars not bytes. |
7740 | ||
602e142f JR |
7741 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside |
7742 | the unicode range available in MULE by locale-coding-system. | |
c041e2d1 | 7743 | Improve dbcs lead byte detection. Set event timestamp and modifiers |
602e142f JR |
7744 | earlier. |
7745 | ||
dfbe40f2 | 7746 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
5ee4de53 YM |
7747 | |
7748 | * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. | |
7749 | [MAC_OSX] (init_mac_osx_environment): Initialize it. | |
6f69e89b | 7750 | [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 |
5ee4de53 YM |
7751 | when used on child processes. |
7752 | ||
8c7a4ac5 MA |
7753 | 2008-01-21 Michael Albinus <michael.albinus@gmx.de> |
7754 | ||
e0df1b73 | 7755 | * dbusbind.c (Fdbus_method_return_internal): Rename from |
8c7a4ac5 | 7756 | Fdbus_method_return. |
e0df1b73 | 7757 | (Fdbus_unregister_object): Move to dbus.el. |
8c7a4ac5 | 7758 | (Fdbus_call_method, Fdbus_method_return_internal) |
e0df1b73 | 7759 | (Fdbus_send_signal): Improve debug messages. |
8c7a4ac5 | 7760 | |
8abe0f97 MR |
7761 | 2008-01-20 Martin Rudalics <rudalics@gmx.at> |
7762 | ||
7763 | * undo.c (undo_inhibit_record_point): New variable. | |
7764 | (syms_of_undo): Initialize it. | |
7765 | (record_point): Don't record point when undo_inhibit_record_point | |
7766 | is set. | |
7767 | ||
c3b232e4 SM |
7768 | 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca> |
7769 | ||
e69c4cae SM |
7770 | * process.c (list_processes_1): Don't use SCHARS on a nil buffer name. |
7771 | ||
823e0ebb SM |
7772 | * xdisp.c (Qauto_hscroll_mode): New var. |
7773 | (syms_of_xdisp): Initialize it. | |
7774 | (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each | |
7775 | window's buffer. | |
7776 | (hscroll_windows): Don't check automatic_hscrolling_p here. | |
7777 | ||
c3b232e4 SM |
7778 | * window.c (set_window_buffer): Don't unnecessarily reset hscroll and |
7779 | vscroll if we're setting window-buffer to the value it already has. | |
7780 | ||
76ed5e01 DN |
7781 | 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu> |
7782 | ||
7783 | * m/intel386.h: Remove references to XENIX. | |
7784 | ||
55e6d9b2 AS |
7785 | 2008-01-17 Andreas Schwab <schwab@suse.de> |
7786 | ||
7787 | * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR | |
7788 | instead of HAVE_X86_64_LIB64_DIR. | |
7789 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise. | |
7790 | ||
b16ed52d GM |
7791 | 2008-01-17 Glenn Morris <rgm@gnu.org> |
7792 | ||
7793 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according | |
7794 | to HAVE_X86_64_LIB64_DIR. | |
7795 | ||
6bed5c4a DN |
7796 | 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu> |
7797 | ||
7798 | * s/irix3-3.h: | |
7799 | * s/irix4-0.h: | |
7800 | * s/386-ix.h: | |
7801 | * s/domain.h: | |
7802 | * s/hpux9-x11r4.h: | |
7803 | * s/hpux9shxr4.h: Remove files for systems no longer supported. | |
7804 | ||
7805 | * sysdep.c: Remove code containing references to symbols defined | |
7806 | by unsupported systems. | |
7807 | ||
fdecf907 GM |
7808 | 2008-01-16 Glenn Morris <rgm@gnu.org> |
7809 | ||
7810 | * coding.c (select-safe-coding-system-function): Doc fix. | |
7811 | ||
9292328f GM |
7812 | 2008-01-15 Glenn Morris <rgm@gnu.org> |
7813 | ||
7814 | * config.in: Revert 2008-01-13 change: this is a generated file. | |
7815 | ||
944df511 MO |
7816 | 2008-01-13 Tom Tromey <tromey@redhat.com> |
7817 | ||
7818 | * lisp.h: Fix typo. | |
7819 | ||
8111ec05 DN |
7820 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
7821 | ||
f40f5dc3 DN |
7822 | * m/sequent-ptx.h: |
7823 | * m/sequent.h: | |
7824 | * s/ptx.h: | |
7825 | * s/ptx4-2.h: | |
7826 | * s/ptx4.h: Remove files for systems no longer supported. | |
7827 | ||
ce20b664 | 7828 | * callproc.c (Fcall_process): Fix previous change. |
8111ec05 | 7829 | |
e39a993c DN |
7830 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
7831 | ||
052e457f | 7832 | * unexsunos4.c: Remove file, system not supported anymore. |
e39a993c | 7833 | |
290afd83 JB |
7834 | * m/mips.h: |
7835 | * m/intel386.h: | |
e39a993c DN |
7836 | * callproc.c: |
7837 | * config.in: | |
7838 | * ecrt0.c: | |
7839 | * emacs.c: | |
7840 | * fileio.c: | |
7841 | * frame.c: | |
7842 | * getpagesize.h: | |
7843 | * keyboard.c: | |
7844 | * lread.c: | |
7845 | * process.c: | |
7846 | * puresize.h: | |
7847 | * sysdep.c: | |
7848 | * systty.h: | |
7849 | * syswait.h: | |
7850 | * unexec.c: | |
7851 | * xdisp.c: | |
7852 | * alloc.c: Remove code containing references to symbols defined by | |
7853 | unsupported systems. | |
7854 | ||
81cd7687 KH |
7855 | 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp> |
7856 | ||
7857 | * coding.c (detect_coding_mask): Fix previous change. | |
7858 | ||
218b3b76 KH |
7859 | 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp> |
7860 | ||
7861 | * coding.c (detect_coding_iso2022): New arg | |
7862 | latin_extra_code_state. Allow Latin extra codes only | |
7863 | when *latin_extra_code_state is nonzero. | |
7864 | (detect_coding_mask): If there is a NULL byte, detect the encoding | |
7865 | as UTF-16 or binary. If Latin extra codes exist, detect the | |
7866 | encoding as ISO-2022 only when there's no other proper encoding is | |
7867 | found. | |
7868 | ||
59ce725a | 7869 | 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
081f2203 | 7870 | |
59ce725a MB |
7871 | * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of |
7872 | #ifdef MAC_OS. | |
048addec | 7873 | |
59ce725a | 7874 | 2008-01-08 Richard Stallman <rms@gnu.org> |
048addec | 7875 | |
59ce725a | 7876 | * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes. |
048addec | 7877 | |
8290574e NR |
7878 | 2008-01-06 Nick Roberts <nickrob@snap.net.nz> |
7879 | ||
a0a3805c | 7880 | * keyboard.c (parse_menu_item): Don't enclose key bindings on |
8290574e NR |
7881 | menu bar in parentheses. |
7882 | ||
f3041af1 DN |
7883 | 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu> |
7884 | ||
7885 | * m/7300.h: | |
7886 | * m/acorn.h: | |
7887 | * m/alliant-2800.h: | |
7888 | * m/alliant.h: | |
7889 | * m/alliant1.h: | |
7890 | * m/alliant4.h: | |
7891 | * m/altos.h: | |
7892 | * m/amdahl.h: | |
7893 | * m/apollo.h: | |
7894 | * m/att3b.h: | |
7895 | * m/aviion-intel.h: | |
7896 | * m/aviion.h: | |
7897 | * m/celerity.h: | |
7898 | * m/clipper.h: | |
7899 | * m/cnvrgnt.h: | |
7900 | * m/convex.h: | |
7901 | * m/cydra5.h: | |
7902 | * m/delta88k.h: | |
7903 | * m/dpx2.h: | |
7904 | * m/dual.h: | |
7905 | * m/elxsi.h: | |
7906 | * m/f301.h: | |
7907 | * m/gould-np1.h: | |
7908 | * m/gould.h: | |
7909 | * m/i860.h: | |
7910 | * m/ibmps2-aix.h: | |
7911 | * m/ibmrt-aix.h: | |
7912 | * m/ibmrt.h: | |
7913 | * m/irist.h: | |
7914 | * m/is386.h: | |
7915 | * m/isi-ov.h: | |
7916 | * m/mega68.h: | |
7917 | * m/mg1.h: | |
7918 | * m/news-r6.h: | |
7919 | * m/news-risc.h: | |
7920 | * m/news.h: | |
7921 | * m/nh3000.h: | |
7922 | * m/nh4000.h: | |
7923 | * m/ns16000.h: | |
7924 | * m/ns32000.h: | |
7925 | * m/nu.h: | |
7926 | * m/orion.h: | |
7927 | * m/orion105.h: | |
7928 | * m/paragon.h: | |
7929 | * m/pfa50.h: | |
7930 | * m/plexus.h: | |
7931 | * m/pyramid.h: | |
7932 | * m/pyrmips.h: | |
7933 | * m/sh3el.h: | |
7934 | * m/sps7.h: | |
7935 | * m/sr2k.h: | |
7936 | * m/stride.h: | |
7937 | * m/sun1.h: | |
7938 | * m/sun2.h: | |
7939 | * m/sun3-68881.h: | |
7940 | * m/sun3-fpa.h: | |
7941 | * m/sun3-soft.h: | |
7942 | * m/sun3.h: | |
7943 | * m/sun386.h: | |
7944 | * m/symmetry.h: | |
7945 | * m/tad68k.h: | |
7946 | * m/tahoe.h: | |
7947 | * m/targon31.h: | |
7948 | * m/tek4300.h: | |
7949 | * m/tekxd88.h: | |
7950 | * m/tower32.h: | |
7951 | * m/tower32v3.h: | |
7952 | * m/ustation.h: | |
7953 | * m/wicat.h: | |
7954 | * m/xps100.h: | |
7955 | * s/cxux.h: | |
7956 | * s/cxux7.h: | |
7957 | * s/dgux.h: | |
7958 | * s/dgux4.h: | |
7959 | * s/dgux5-4-3.h: | |
7960 | * s/dgux5-4r2.h: | |
7961 | * s/esix.h: | |
7962 | * s/esix5r4.h: | |
7963 | * s/hiuxmpp.h: | |
7964 | * s/hiuxwe2.h: | |
7965 | * s/iris3-5.h: | |
7966 | * s/iris3-6.h: | |
7967 | * s/isc2-2.h: | |
7968 | * s/isc3-0.h: | |
7969 | * s/isc4-0.h: | |
7970 | * s/isc4-1.h: | |
7971 | * s/newsos5.h: | |
7972 | * s/newsos6.h: | |
7973 | * s/osf1.h: | |
7974 | * s/osf5-0.h: | |
7975 | * s/riscix1-1.h: | |
7976 | * s/riscix12.h: | |
7977 | * s/sco4.h: | |
7978 | * s/sco5.h: | |
7979 | * s/sunos4-0.h: | |
7980 | * s/sunos4-1.h: | |
7981 | * s/sunos413.h: | |
7982 | * s/sunos4shr.h: | |
7983 | * s/umax.h: | |
7984 | * s/unipl5-2.h: | |
7985 | * s/xenix.h: | |
7986 | * cxux-crt0.s: | |
7987 | * unexapollo.c: | |
7988 | * unexconvex.c: | |
7989 | * unexenix.c: | |
7990 | * unexsni.c: Remove files for systems no longer supported. | |
7991 | ||
7992 | * m/intel386.h: Remove references to unsupported systems. | |
7993 | ||
7994 | * w32.c (get_emacs_configuration): Remove reference to i860. | |
7995 | ||
7996 | * sysdep.c: Remove dead code. | |
7997 | ||
d35e1cd7 DN |
7998 | 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu> |
7999 | ||
8000 | * s/rtu.h: | |
a0a3805c | 8001 | * m/masscomp.h: Remove files. Platform is obsolete. |
d35e1cd7 | 8002 | |
abe136ee MA |
8003 | 2008-01-04 Michael Albinus <michael.albinus@gmx.de> |
8004 | ||
8005 | * dbusbind.c (Fdbus_method_return): New function. | |
8006 | (xd_read_message): Add the serial number to the event. | |
8007 | (Fdbus_register_method): Activate the function. | |
8008 | ||
87df3c32 SM |
8009 | 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca> |
8010 | ||
8011 | * keyboard.c (read_key_sequence): Fix typo. | |
8012 | ||
5125905e MA |
8013 | 2008-01-03 Michael Albinus <michael.albinus@gmx.de> |
8014 | ||
8015 | * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE. | |
8016 | (xd_signature, xd_append_arg): Handle element type detection for | |
8017 | empty arrays. | |
8018 | (Fdbus_call_method, Fdbus_send_signal): Undo type casting for | |
8019 | SDATA () calls; this must be solved more general. | |
8020 | (Fdbus_register_signal): Use SBYTES instead of strlen. | |
8021 | ||
8bba1b5c MH |
8022 | 2008-01-03 Magnus Henoch <magnus@zemdatav> |
8023 | ||
8024 | * dbusbind.c (xd_append_arg): Use unsigned char instead of | |
8025 | unsigned int for byte values (necessary for big-endian platform). | |
2c3a8b27 | 8026 | (Fdbus_call_method): Handle the case of no returned arguments. |
8bba1b5c | 8027 | |
a0a3805c | 8028 | 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change) |
15f16c1b MA |
8029 | |
8030 | * dbusbind.c (xd_read_message): Use non-static input_event struct. | |
8031 | ||
a271e124 MH |
8032 | 2007-12-31 Magnus Henoch <mange@freemail.hu> |
8033 | ||
8034 | * dbusbind.c (xd_signature): Signature of variant is just "v". | |
8035 | ||
17bc8f94 MA |
8036 | 2007-12-30 Michael Albinus <michael.albinus@gmx.de> |
8037 | ||
87df3c32 SM |
8038 | * dbusbind.c: Fix several errors and compiler warnings. |
8039 | Reported by Tom Tromey <tromey@redhat.com> | |
17bc8f94 MA |
8040 | (XD_ERROR, XD_DEBUG_MESSAGE) |
8041 | (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)". | |
8042 | (xd_append_arg): Part for basic D-Bus types rewitten. | |
8043 | (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and | |
8044 | DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not | |
8045 | appropriate. | |
8046 | (xd_read_message): Return Qnil. Don't signal an error; it is not | |
8047 | useful during event reading. | |
8048 | (Fdbus_register_signal): Signal an error if the check for | |
8049 | FUNCTIONP fails. | |
8050 | (Fdbus_register_method): New function. The implementation is not | |
8051 | complete, the call of the function signals an error therefore. | |
8052 | (Fdbus_unregister_object): New function, renamed from | |
8053 | Fdbus_unregister_signal. The initial check signals an error, if | |
5125905e | 8054 | the object is not well formed. |
17bc8f94 | 8055 | |
dd6f2802 RS |
8056 | 2007-12-30 Richard Stallman <rms@gnu.org> |
8057 | ||
8058 | * textprop.c (get_char_property_and_overlay): | |
8059 | Signal error if POSITION is out of range in a buffer. | |
8060 | ||
1da8a031 MR |
8061 | 2007-12-29 Martin Rudalics <rudalics@gmx.at> |
8062 | ||
8063 | * w32fns.c (Fx_create_frame): Make copy of frame parameters | |
8064 | because the original parameters are in pure storage now. | |
8065 | ||
5742be86 YM |
8066 | 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8067 | ||
8068 | * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area. | |
8069 | ||
b014713c EZ |
8070 | 2007-12-22 Eli Zaretskii <eliz@gnu.org> |
8071 | ||
b17f53ab MB |
8072 | * callint.c (syms_of_callint) <command-history>: Add reference to |
8073 | history-length in the doc string. | |
048addec | 8074 | |
b17f53ab | 8075 | 2007-12-17 Jason Rumney <jasonr@gnu.org> |
048addec | 8076 | |
b17f53ab MB |
8077 | * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned |
8078 | before passing as wParam. | |
048addec | 8079 | |
9af5078b MA |
8080 | 2007-12-22 Michael Albinus <michael.albinus@gmx.de> |
8081 | ||
8082 | * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE, | |
8083 | DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64, | |
8084 | DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE. | |
8085 | Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit | |
8086 | as number. | |
8087 | (Fdbus_call_method): Fix docstring. | |
8088 | ||
87cf1a39 MA |
8089 | 2007-12-21 Michael Albinus <michael.albinus@gmx.de> |
8090 | ||
8091 | * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE): | |
8092 | New macros. | |
87df3c32 | 8093 | (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE. |
a0a3805c JB |
8094 | (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE. |
8095 | Simplify. | |
87cf1a39 MA |
8096 | (xd_signature): New function. |
8097 | (xd_append_arg): Compute also signatures. Major rewrite. | |
8098 | (xd_retrieve_arg): Make debug messages friendly. | |
87df3c32 SM |
8099 | (Fdbus_call_method, Fdbus_send_signal): Extend docstring. |
8100 | Check for signatures of arguments. | |
87cf1a39 | 8101 | |
54371585 MA |
8102 | 2007-12-19 Michael Albinus <michael.albinus@gmx.de> |
8103 | ||
8104 | * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean) | |
8105 | (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32) | |
8106 | (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64) | |
8107 | (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path) | |
8108 | (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant) | |
87df3c32 | 8109 | (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols. |
54371585 MA |
8110 | (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro. |
8111 | (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types. | |
87df3c32 | 8112 | (xd_retrieve_value): Remove. Functionality included in ... |
54371585 MA |
8113 | (xd_append_arg): New function. |
8114 | (Fdbus_call_method, Fdbus_send_signal): Apply it. | |
8115 | ||
f5306ca3 MA |
8116 | 2007-12-16 Michael Albinus <michael.albinus@gmx.de> |
8117 | ||
8118 | * dbusbind.c (top): Include <stdio.h>. | |
8119 | (Fdbus_call_method, Fdbus_send_signal): Apply type cast in | |
8120 | dbus_message_new_method_call and dbus_message_new_signal. | |
87df3c32 SM |
8121 | (Fdbus_register_signal): Rename unique_name to uname. |
8122 | Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of | |
f5306ca3 MA |
8123 | non-existing unique name. Fix typos in matching rule. Return an |
8124 | object which is useful in Fdbus_unregister_signal. | |
8125 | (Fdbus_unregister_signal): Reimplementation, in order to remove | |
8126 | only the corresponding entry. | |
8127 | (Vdbus_registered_functions_table): Change the order of entries. | |
8128 | Apply these changes in xd_read_message and Fdbus_register_signal. | |
8129 | ||
77a28bbf AS |
8130 | 2007-12-16 Andreas Schwab <schwab@suse.de> |
8131 | ||
8132 | * fileio.c (Finsert_file_contents): Fix overflow check to not | |
8133 | depend on undefined integer overflow. | |
8134 | ||
2e3566d8 JR |
8135 | 2007-12-14 Jason Rumney <jasonr@gnu.org> |
8136 | ||
8137 | * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT | |
8138 | for characters above 127. | |
8139 | ||
bf254037 JR |
8140 | 2007-12-13 Jason Rumney <jasonr@gnu.org> |
8141 | ||
8142 | * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check | |
8143 | before dereferencing array. | |
8144 | (lookup_vk_code): Remove zero comparison. | |
8145 | ||
eb7c7bf5 MA |
8146 | 2007-12-14 Michael Albinus <michael.albinus@gmx.de> |
8147 | ||
8148 | * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) | |
87df3c32 SM |
8149 | (Fdbus_call_method, Fdbus_send_signal, xd_read_message): |
8150 | Use `unsigned int' instead of `uint'. | |
eb7c7bf5 MA |
8151 | (xd_read_message, Fdbus_register_signal): Split expressions into |
8152 | multiple lines before operators "&&" and "||", according to the | |
8153 | GNU Coding Standards. | |
8154 | ||
34fb0fc9 EZ |
8155 | 2007-12-14 Eli Zaretskii <eliz@gnu.org> |
8156 | ||
8157 | * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT. | |
8158 | ||
c7d97628 JL |
8159 | 2007-12-12 Juri Linkov <juri@jurta.org> |
8160 | ||
8161 | * buffer.c (Frename_buffer): In interactive spec replace | |
8162 | `read-buffer' with `read-string' that uses `buffer-name-history' | |
8163 | as history, and the current buffer's name as default. | |
8164 | ||
3709505e SM |
8165 | 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> |
8166 | ||
8167 | * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of | |
8168 | manipulating the backtrace manually. | |
8169 | (make_lispy_event): Merge the ASCII and MULTIBYTE cases. | |
8170 | (struct backtrace, backtrace_list): Remove. | |
8171 | (command_loop_1): Remove dead var `no_direct'. | |
8172 | ||
8173 | * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also | |
8174 | preserve non-built-in buffer-local variables. | |
8175 | (Fkill_all_local_variables): Don't re-create&re-set permanent | |
8176 | buffer-local variables. | |
8177 | ||
e2bec886 JL |
8178 | 2007-12-09 Juri Linkov <juri@jurta.org> |
8179 | ||
8180 | * buffer.c (Frename_buffer): Change interactive spec from "s" to | |
8181 | Lisp code that uses `read-buffer' with current buffer as default. | |
8182 | ||
a31d47c7 MA |
8183 | 2007-12-08 Michael Albinus <michael.albinus@gmx.de> |
8184 | ||
8185 | * dbusbind.c (xd_read_message): Generate an event for every | |
8186 | registered handler. There might be several handlers registered | |
8187 | for the same signal. | |
8188 | (Fdbus_register_signal): Don't overwrite a registration for the | |
8189 | same signal. Add a new registration if handlers are different. | |
8190 | (Vdbus_registered_functions_table): Rework doc string. | |
8191 | ||
52da95fa MA |
8192 | 2007-12-07 Michael Albinus <michael.albinus@gmx.de> |
8193 | ||
8194 | * dbusbind.c (Fdbus_get_unique_name, xd_read_message) | |
8195 | (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and | |
8196 | DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths. | |
8197 | (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal): | |
8198 | Unify argument lists. | |
a0a3805c | 8199 | (xd_read_message, Fdbus_register_signal): Reorder and extend event |
52da95fa MA |
8200 | arguments and hash table keys. Use unique name for service. |
8201 | (Fdbus_unregister_signal): Remove checks. | |
8202 | (Vdbus_registered_functions_table): Fix doc string. | |
8203 | ||
e5e76c04 | 8204 | 2007-12-05 Magnus Henoch <mange@freemail.hu> |
0277bfa1 RS |
8205 | |
8206 | * process.c (make_process): Initialize pty_flag to 0. | |
8207 | ||
e5e76c04 | 8208 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
44b1dc2e JR |
8209 | |
8210 | * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly | |
8211 | specified XBMs. | |
8212 | ||
e5e76c04 | 8213 | 2007-12-05 Richard Stallman <rms@gnu.org> |
048addec | 8214 | |
e5e76c04 | 8215 | * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix. |
048addec | 8216 | |
e5e76c04 | 8217 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 8218 | |
e5e76c04 MB |
8219 | * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]: |
8220 | New variable. | |
8221 | (mac_try_close_socket) [MAC_OSX]: New function. | |
8222 | [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: | |
8223 | Update cfsockets_for_select. Replace invalid CFRunLoop source. | |
048addec | 8224 | |
e5e76c04 MB |
8225 | * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]: |
8226 | Use mac_try_close_socket. | |
048addec | 8227 | |
e5e76c04 | 8228 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 8229 | |
e5e76c04 MB |
8230 | * unexmacosx.c (unrelocate): New argument BASE. Use it instead of |
8231 | reloc_base. | |
8232 | (copy_dysymtab): Compute relocation base here. | |
8233 | (rebase_reloc_address) [__ppc64__]: New function. | |
8234 | (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be | |
8235 | changed. | |
048addec | 8236 | |
e5e76c04 | 8237 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
048addec | 8238 | |
e5e76c04 | 8239 | * w32proc.c (sys_spawnve): Quote args with wildcards. |
048addec | 8240 | |
e5e76c04 | 8241 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 8242 | |
e5e76c04 MB |
8243 | * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and |
8244 | __objc_* sections. | |
8245 | (unrelocate) [_LP64]: Set relocation base to address of data segment. | |
048addec | 8246 | |
96faeb40 MA |
8247 | 2007-12-05 Michael Albinus <michael.albinus@gmx.de> |
8248 | ||
8249 | * dbusbind.c (xd_read_message): Return value is a Lisp_Object. | |
8250 | Move check for Vdbus_registered_functions_table to | |
8251 | xd_read_queued_messages. | |
8252 | (xd_read_queued_messages): Protect xd_read_message calls by | |
8253 | internal_condition_case_1. | |
8254 | ||
39abdd4a MA |
8255 | 2007-12-04 Michael Albinus <michael.albinus@gmx.de> |
8256 | ||
87df3c32 | 8257 | * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from |
39abdd4a | 8258 | Qdbus_system_bus and Qdbus_session_bus, respectively. |
87df3c32 | 8259 | (Vdbus_intern_symbols): Remove. |
39abdd4a | 8260 | (Vdbus_registered_functions_table): New hash table. |
87df3c32 | 8261 | (XD_SYMBOL_INTERN_SYMBOL): Remove. |
39abdd4a | 8262 | (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal): |
87df3c32 | 8263 | Rewrite in order to manage registered functions by hash table |
39abdd4a MA |
8264 | Vdbus_registered_functions_table. |
8265 | ||
880820fe | 8266 | 2007-12-03 Jan Djärv <jan.h.d@swipnet.se> |
7ba30657 JD |
8267 | |
8268 | * xterm.c: Update URL to Window Manager Specification in comment. | |
8269 | ||
033b73e2 MA |
8270 | 2007-12-02 Michael Albinus <michael.albinus@gmx.de> |
8271 | ||
8272 | * config.in (HAVE_DBUS): Add. | |
8273 | ||
a0a3805c | 8274 | * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined. |
033b73e2 MA |
8275 | (ALL_CFLAGS): Add ${DBUS_CFLAGS}. |
8276 | (obj): Add $(DBUS_OBJ). | |
8277 | (LIBES): Add $(DBUS_LIBS). | |
8278 | (dbusbind.o): New target. | |
8279 | ||
8280 | * dbusbind.c: New file. | |
8281 | ||
8282 | * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined. | |
8283 | ||
8284 | * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS". | |
a0a3805c | 8285 | (Qdbus_event): New Lisp symbol. |
033b73e2 | 8286 | (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT. |
87df3c32 | 8287 | (gobble_input): Call xd_read_queued_messages, reading D-Bus messages. |
033b73e2 MA |
8288 | (keys_of_keyboard ): Define dbus-event. |
8289 | ||
8290 | * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined. | |
8291 | ||
39d0bf74 RS |
8292 | 2007-12-01 Richard Stallman <rms@gnu.org> |
8293 | ||
8294 | * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix. | |
8295 | ||
f3157c65 JR |
8296 | 2007-11-30 Jason Rumney <jasonr@gnu.org> |
8297 | ||
8298 | * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window. | |
8299 | (w32con_reset_terminal_modes): Clear screen buffer. | |
f1e8dcf1 JR |
8300 | (w32_face_attributes): Don't use color indexes that are out of range. |
8301 | Only reverse the default colors. | |
f3157c65 JR |
8302 | |
8303 | * xfaces.c (map_tty_color, tty_color_name): Remove special case for | |
8304 | WINDOWSNT. | |
8305 | ||
8306 | * w32console.c, w32term.h (vga_stdcolor_name): Remove. | |
8307 | ||
b510360c JR |
8308 | 2007-11-29 Jason Rumney <jasonr@gnu.org> |
8309 | ||
8310 | * w32console.c: Leave HAVE_WINDOW_SYSTEM defined. | |
8311 | (w32_face_attributes): Use Vtty_defined_color_alist to determine | |
8312 | if the terminal colors are initialized. | |
8313 | (unspecified_fg, unspecified_bg): Remove unused declarations. | |
8314 | ||
4b7ab1c4 AS |
8315 | 2007-11-29 Andreas Schwab <schwab@suse.de> |
8316 | ||
8317 | * keyboard.c (apply_modifiers): Fix typo. | |
8318 | ||
4bb6c266 RS |
8319 | 2007-11-29 Richard Stallman <rms@gnu.org> |
8320 | ||
8321 | * keymap.c (Fcurrent_local_map): Doc fix. | |
8322 | ||
aa44cd84 GM |
8323 | 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change) |
8324 | ||
8325 | * s/gnu-kfreebsd.h: New file. | |
8326 | ||
21ec2c43 SM |
8327 | 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca> |
8328 | ||
cc648cef SM |
8329 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): |
8330 | Don't cast redundantly. | |
8331 | ||
21ec2c43 SM |
8332 | * keyboard.c (KEY_TO_CHAR): New macro. |
8333 | (parse_modifiers, apply_modifiers): Accept integer arguments. | |
8334 | (read_key_sequence): Use them to unify the "shift->unshift" mapping | |
8335 | for chars and symbol keys. | |
8336 | After doing such remapping, apply function-key-map again. | |
8337 | ||
73e72da4 DN |
8338 | 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu> |
8339 | ||
8340 | * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not | |
8341 | compiled anymore. | |
8342 | ||
254693ff AS |
8343 | 2007-11-26 Andreas Schwab <schwab@suse.de> |
8344 | ||
8345 | * process.c (list_processes_1): Fix indentation level of the | |
8346 | command column. | |
8347 | ||
ff6e6ac8 AS |
8348 | 2007-11-23 Andreas Schwab <schwab@suse.de> |
8349 | ||
8350 | * editfns.c (Fformat): Handle %c specially since it requires the | |
8351 | argument to be of type int. | |
8352 | ||
f7cf8b20 SM |
8353 | 2007-11-23 Markus Triska <markus.triska@gmx.at> |
8354 | ||
8355 | * emacs.c (main): Call init_editfns before init_process, since | |
2a2e8de7 | 8356 | init_process sets Vprocess_connection_type depending on OS release. |
f7cf8b20 | 8357 | |
569c11e3 SM |
8358 | 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca> |
8359 | ||
8787dd73 SM |
8360 | * data.c (do_symval_forwarding): Use same code as in find_symbol_value. |
8361 | (find_symbol_value): Use do_symval_forwarding. | |
8362 | ||
569c11e3 SM |
8363 | * data.c (set_internal): Set the value in the `cons-cell' (for |
8364 | Buffer_Local_values) not only for frame-local variables. | |
8365 | ||
6af1696d AS |
8366 | 2007-11-22 Andreas Schwab <schwab@suse.de> |
8367 | ||
8368 | * data.c (Fnumber_to_string): Add cast when passing EMACS_INT | |
8369 | values to sprintf. | |
8370 | * keymap.c (Fsingle_key_description): Likewise. | |
8371 | * print.c (print_object): Likewise. | |
8372 | ||
880820fe | 8373 | 2007-11-22 Jan Djärv <jan.h.d@swipnet.se> |
d4ad8c04 JD |
8374 | |
8375 | * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if | |
8376 | file for image is nil. | |
8377 | ||
7c401d15 DN |
8378 | 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu> |
8379 | ||
8380 | * term.c: Include stdarg.h. | |
569c11e3 | 8381 | (fatal): Implement using varargs. |
a0a3805c | 8382 | * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change). |
7c401d15 | 8383 | |
64e16c3c SM |
8384 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
8385 | ||
8386 | * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field. | |
8387 | * data.c (store_symval_forwarding): Get type from buffer_objfwd. | |
8388 | Update call to buffer_slot_type_mismatch. | |
8389 | * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove. | |
8390 | (buffer_slot_type_mismatch): Update. | |
8391 | * buffer.c (buffer_local_types): Remove. | |
8392 | (buffer_slot_type_mismatch): Get the symbol and type as arguments. | |
8393 | (defvar_per_buffer): Set the type in the buffer_objfwd. | |
8394 | ||
d4aa48db | 8395 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
5f42a7eb | 8396 | |
64e16c3c SM |
8397 | * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): |
8398 | CreateFileMapping returns NULL on failure. | |
5f42a7eb | 8399 | |
d4aa48db | 8400 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
048addec | 8401 | |
d4aa48db MB |
8402 | * search.c (Fset_match_data): Remove the `evaporate' feature. |
8403 | (unwind_set_match_data): Don't use the `evaporate' feature. | |
437dfb9f | 8404 | |
bdae0540 JR |
8405 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
8406 | ||
8407 | * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type. | |
8408 | ||
8409 | * w32console.c (w32con_write_glyphs): Remove unused variables. | |
8410 | ||
202c09a8 DN |
8411 | 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu> |
8412 | ||
b951420f DN |
8413 | * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor. |
8414 | ||
202c09a8 DN |
8415 | * s/darwin.h (MULTI_KBOARD): Remove. |
8416 | ||
8417 | * macfns.c (x_create_tip_frame, Fx_create_frame) | |
8418 | (x_create_tip_frame): Don't deal with MULTI_KBOARD. | |
8419 | ||
bae72c12 SM |
8420 | 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca> |
8421 | ||
e7c10f83 SM |
8422 | * buffer.c (Fbuffer_local_value): Remove redundant test. |
8423 | (swap_out_buffer_local_variables): Swap out binding in `buffer' rather | |
8424 | than in `current-buffer' to match the comment. | |
8425 | Do the swap using swap_in_global_binding. | |
8426 | ||
136eb6ed SM |
8427 | * data.c (store_symval_forwarding, set_internal): |
8428 | * eval.c (specbind): Remove dead code. | |
8429 | ||
bae72c12 SM |
8430 | * coding.c (detect_coding, Fupdate_coding_systems_internal): |
8431 | * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE | |
8432 | Since we do not want to see internal Lisp_*fwd objects here. | |
8433 | ||
880820fe | 8434 | 2007-11-18 Jan Djärv <jan.h.d@swipnet.se> |
95fbaefc | 8435 | |
3d66b985 JD |
8436 | * sysdep.c (init_system_name): Use getaddrinfo if available. |
8437 | ||
95fbaefc JD |
8438 | * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click) |
8439 | (x_scroll_bar_note_movement): start, end, with, height in struct | |
8440 | scroll_bar are integers and not Lisp_Object, so remove XINT for them. | |
8441 | ||
6c1d8cb6 DN |
8442 | 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu> |
8443 | ||
8444 | * puresize.h (BASE_PURESIZE): Increase to 1190000. | |
8445 | ||
30f95089 SM |
8446 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
8447 | ||
66b04bd4 SM |
8448 | * buffer.h (struct buffer): Move `undo_list' back to before `name'. |
8449 | This undoes Richard's change of 14-Oct-2002. | |
8450 | ||
6d3f2bb2 SM |
8451 | * alloc.c (allocate_other_vector): |
8452 | * lisp.h (allocate_other_vector): Remove. | |
8453 | ||
b05b4e27 SM |
8454 | * window.c (struct save_window_data): Move non-lisp data to the end |
8455 | and make it `int' rather than Lisp_Object. | |
8456 | (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. | |
8457 | Done wrap/unwrap integer values. | |
8458 | (Fset_window_configuration, compare_window_configurations): | |
8459 | Update use of fields to their new types. | |
8460 | ||
056ce195 SM |
8461 | * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. |
8462 | Turn integer fields into `int'. Merge x_window_low and x_window_high. | |
8463 | (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW) | |
8464 | (SET_SCROLL_BAR_X_WINDOW): Remove. | |
8465 | (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET): | |
8466 | Access the new x_window field directly. | |
8467 | * xterm.c (x_scroll_bar_create): Use a pseudovector. | |
8468 | Don't wrap/unwrap integers into Lisp_Objects. | |
8469 | (XTset_vertical_scroll_bar, x_scroll_bar_handle_click) | |
8470 | (x_scroll_bar_report_motion): | |
8471 | Don't wrap/unwrap integers into Lisp_Objects. | |
8472 | (x_term_init): Use SDATA. | |
8473 | (x_window_to_scroll_bar, x_create_toolkit_scroll_bar) | |
8474 | (x_scroll_bar_set_handle, x_scroll_bar_remove) | |
8475 | (XTset_vertical_scroll_bar, x_scroll_bar_expose) | |
8476 | (x_scroll_bar_report_motion, x_scroll_bar_clear): | |
8477 | * xfns.c (x_set_background_color): | |
8478 | * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb): | |
8479 | Access the new x_window field directly. | |
8480 | ||
30f95089 SM |
8481 | * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. |
8482 | (allocate_pseudovector): Make non-static. | |
6d3f2bb2 | 8483 | |
30f95089 SM |
8484 | * lisp.h (enum pvec_type): New tag PVEC_OTHER. |
8485 | (allocate_pseudovector): Declare. | |
6f69e89b | 8486 | (ALLOCATE_PSEUDOVECTOR): Move from alloc.c. |
30f95089 | 8487 | |
9b6112e8 AS |
8488 | 2007-11-15 Andreas Schwab <schwab@suse.de> |
8489 | ||
30f95089 SM |
8490 | * editfns.c (Fformat): Correctly format EMACS_INT values. |
8491 | Also take precision into account when formatting an integer. | |
0f860bd7 | 8492 | |
9b6112e8 AS |
8493 | * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration. |
8494 | ||
262fcd41 SM |
8495 | 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca> |
8496 | ||
58da34c7 SM |
8497 | * keyboard.c (Fevent_symbol_parse_modifiers): New function. |
8498 | (syms_of_keyboard): Defsubr it. | |
8499 | ||
262fcd41 SM |
8500 | * data.c (swap_in_global_binding): Fix longstanding bug where |
8501 | store_symval_forwarding was not called with the right second argument, | |
8502 | thus causing objfwd-ing from being dropped. | |
8503 | ||
d29a9848 JB |
8504 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
8505 | ||
8506 | * macfns.c (Fx_create_frame, Fx_display_pixel_width) | |
8507 | (Fx_display_pixel_height, Fx_display_planes) | |
8508 | (Fx_display_color_cells, Fx_server_max_request_size) | |
8509 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
8510 | (Fx_display_visual_class, Fx_display_save_under): | |
8511 | * w32fns.c (Fx_create_frame, Fx_display_pixel_width) | |
8512 | (Fx_display_pixel_height, Fx_display_planes) | |
8513 | (Fx_display_color_cells, Fx_server_max_request_size) | |
8514 | (Fx_server_vendor, Fx_server_version, Fx_display_screens) | |
8515 | (Fx_display_mm_height, Fx_display_mm_width) | |
8516 | (Fx_display_backing_store, Fx_display_visual_class) | |
8517 | (Fw32_select_font, Fx_display_save_under): | |
8518 | * xfns.c (Fx_create_frame, Fx_display_pixel_width) | |
8519 | (Fx_display_pixel_height, Fx_display_planes) | |
8520 | (Fx_display_color_cells, Fx_server_max_request_size) | |
8521 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
8522 | (Fx_display_save_under): Fix typos in docstrings. | |
8523 | ||
74084731 JB |
8524 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
8525 | ||
8526 | * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values | |
8527 | corresponding to deleted entries; they are an implementation detail. | |
8528 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): | |
8529 | Remove variables. | |
8530 | (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames) | |
8531 | (w32_pass_multimedia_buttons_to_system, w32_strict_painting) | |
8532 | (Vw32_charset_info_alist, w32_to_x_color, w32_init_class) | |
8533 | (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers) | |
8534 | (w32_grabbed_keys, cancel_all_deferred_msgs): Make static. | |
d29a9848 | 8535 | (Fw32_define_rgb_color, Fw32_load_color_file) |
74084731 | 8536 | (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>: |
02b39a28 JB |
8537 | Fix typos in docstrings. |
8538 | (Fx_server_version): Reflow docstring. | |
8539 | (Fw32_shell_execute): Doc fixes. | |
74084731 | 8540 | |
fb053a1f JB |
8541 | 2007-11-13 Juanma Barranquero <lekktu@gmail.com> |
8542 | ||
8543 | * w32fns.c (Fw32_register_hot_key): Don't try to register hot key | |
8544 | if w32_parse_hot_key returned nil. | |
8545 | ||
a457417e | 8546 | 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9ec1bdb6 | 8547 | |
a457417e | 8548 | * xdisp.c (load_overlay_strings): Fix copy&paste typo. |
9ec1bdb6 | 8549 | |
4b219faa JR |
8550 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
8551 | ||
8552 | * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define. | |
8553 | ||
8554 | * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT. | |
8555 | ||
8556 | * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]: | |
8557 | Remove W32_SCROLL_BAR_CLICK_EVENT. | |
8558 | ||
8559 | * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise. | |
8560 | Add MULTIMEDIA_KEY_EVENT. | |
8561 | ||
8562 | * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys. | |
8563 | (lispy_multimedia_keys) [WINDOWSNT]: New array. | |
8564 | (make_lispy_event) [WINDOWSNT]: Use it to translate | |
8565 | MULTIMEDIA_KEY_EVENT. | |
8566 | ||
8567 | * w32term.h (WM_APPCOMMAND): Define if not already. | |
8568 | (GET_APPCOMMAND_LPARAM): Likewise. | |
8569 | ||
8570 | * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from | |
8571 | WM_APPCOMMAND. | |
8572 | ||
8573 | * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option. | |
8574 | (syms_of_w32fns): Export and initialize it. | |
8575 | (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket. | |
8576 | ||
c12ecb0a | 8577 | 2007-11-09 Chong Yidong <cyd@stupidchicken.com> |
d388d2ac CY |
8578 | |
8579 | * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE | |
8580 | twice. | |
8581 | ||
8582 | * xdisp.c (handle_face_prop): Fix last change. | |
8583 | ||
c12ecb0a | 8584 | 2007-11-09 Richard Stallman <rms@gnu.org> |
048addec | 8585 | |
c12ecb0a MB |
8586 | * xdisp.c (handle_face_prop): Test for strings that came from overlays, |
8587 | not just for after-strings and before-strings. | |
8588 | Call face_for_overlay_string and pass the overlay to it. | |
8589 | (handle_display_prop): Determine whether property came from an overlay. | |
8590 | Pass OVERLAY arg to handle_single_display_spec. | |
8591 | (handle_single_display_spec): New arg OVERLAY sets it->from_overlay. | |
8592 | (load_overlay_strings): Fill in it->string_overlays. | |
8593 | (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays. | |
b5cb6072 | 8594 | |
c12ecb0a MB |
8595 | * xfaces.c (face_for_overlay_string): Function renamed from |
8596 | face_at_buffer_position_no_overlays, and add arg OVERLAY. | |
b5cb6072 | 8597 | |
c12ecb0a MB |
8598 | * dispextern.h (struct it): New elt string_overlays. |
8599 | New elt from_overlay, also in stack. | |
8600 | Rearrange a few elements. | |
8601 | (face_for_overlay_string): Decl renamed from | |
8602 | face_at_buffer_position_no_overlays, and add argument. | |
15fff01d | 8603 | |
c12ecb0a | 8604 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0065bb74 | 8605 | |
c12ecb0a MB |
8606 | * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays |
8607 | to get the base face for an overlay string. | |
0d8466cc | 8608 | |
c12ecb0a | 8609 | * dispextern.h (face_at_buffer_position_no_overlays): Add decl. |
15fff01d | 8610 | |
c12ecb0a | 8611 | * xfaces.c (face_at_buffer_position_no_overlays): New function. |
2fae9111 | 8612 | |
c12ecb0a | 8613 | * xdisp.c (handle_stop): Move some code out of loop. |
2d6c1fc0 | 8614 | |
c12ecb0a | 8615 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
07025a55 | 8616 | |
c12ecb0a MB |
8617 | * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes): |
8618 | Fix conversion from Lisp object to ATSUFontID. | |
07025a55 | 8619 | |
c12ecb0a | 8620 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
07025a55 | 8621 | |
c12ecb0a | 8622 | * xdisp.c (Fformat_mode_line): Do nothing when noninteractive. |
3a232704 | 8623 | |
c12ecb0a | 8624 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
539e92ad | 8625 | |
c12ecb0a MB |
8626 | * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge): |
8627 | Don't assume regions are aligned to page boundary. | |
8628 | (print_load_command_name): Add LC_UUID if defined. | |
3a232704 | 8629 | |
c12ecb0a | 8630 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0cb8bb48 | 8631 | |
c12ecb0a | 8632 | * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring. |
539e92ad | 8633 | |
b8ddfbcc JR |
8634 | 2007-11-07 Jason Rumney <jasonr@gnu.org> |
8635 | ||
8636 | * s/windows95.h: Remove. | |
8637 | ||
880820fe | 8638 | 2007-11-06 Jan Djärv <jan.h.d@swipnet.se> |
e624c3f9 JD |
8639 | |
8640 | * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and | |
8641 | abort with a message on unhandled store_type values. | |
8642 | ||
880820fe | 8643 | 2007-11-01 Jan Djärv <jan.h.d@swipnet.se> |
ac1278c1 JD |
8644 | |
8645 | * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h: | |
8646 | Remove HAVE_X11R5 and HAVE_X11R4. | |
8647 | ||
04a697fe DN |
8648 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
8649 | ||
8650 | * Makefile.in: Remove references to sunfns.c and sunfns.o. | |
8651 | ||
880820fe | 8652 | 2007-11-01 Johan Bockgård <bojohan@gnu.org> |
56dad874 GM |
8653 | |
8654 | * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): | |
fb053a1f | 8655 | Don't set s->stippled_p here, since it has already been set by |
56dad874 GM |
8656 | x_set_glyph_string_gc from x_draw_glyph_string. |
8657 | ||
07e5c0b0 DN |
8658 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
8659 | ||
2a2e8de7 | 8660 | * sunfns.c: Remove file. |
07e5c0b0 DN |
8661 | |
8662 | * m/sun386.h: | |
8663 | * m/sun2.h: | |
8664 | * m/sparc.h: Remove Sun windows code. | |
8665 | ||
1bc973c2 SM |
8666 | 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca> |
8667 | ||
8668 | * keyboard.c (syms_of_keyboard): Initialize the initial_kboard. | |
8669 | (init_keyboard): Set current_kboard's window-system to nil. | |
8670 | (tty_read_avail_input): Typo. | |
8671 | * frame.c (make_initial_frame): Don't initialize the initial_kboard. | |
8672 | ||
c22140f6 DN |
8673 | 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu> |
8674 | ||
8675 | * s/usg5-4.h: | |
8676 | * s/usg5-3.h: | |
8677 | * s/ptx.h: | |
8678 | * m/is386.h: | |
8679 | * m/ibmps2-aix.h: | |
2a2e8de7 | 8680 | * Makefile.in: Remove all mentions of X10. |
c22140f6 DN |
8681 | |
8682 | * dispnew.c (syms_of_display): Don't mention version 10. | |
8683 | ||
660a8219 JB |
8684 | 2007-10-28 Juanma Barranquero <lekktu@gmail.com> |
8685 | ||
8686 | * makefile.w32-in (OBJ1): Remove abbrev.$(O). | |
8687 | ($(BLD)/abbrev.$(O)): Remove. | |
8688 | ||
e047f448 SM |
8689 | 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca> |
8690 | ||
8691 | Rewrite abbrev.c in Elisp. | |
8692 | * image.c (Qcount): Don't declare as extern. | |
8693 | (syms_of_image): Initialize and staticpro `Qcount'. | |
8694 | * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. | |
8695 | * emacs.c (main): Don't call syms_of_abbrev. | |
8696 | * Makefile.in (obj): Remove abbrev.o. | |
8697 | (abbrev.o): Remove. | |
8698 | * abbrev.c: Remove. | |
8699 | ||
67b73e3a MR |
8700 | 2007-10-26 Martin Rudalics <rudalics@gmx.at> |
8701 | ||
8702 | * window.c (window_min_size_2): Don't count header-line. | |
8703 | ||
e3d7bd83 DN |
8704 | 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu> |
8705 | ||
8706 | * frame.h (struct frame): Move all bit fields after the first bit | |
660a8219 | 8707 | field to take advantage of the available space. Group all the |
e3d7bd83 DN |
8708 | chars together to reduce wasted space due to padding. |
8709 | ||
a3547743 JB |
8710 | 2007-10-26 Juanma Barranquero <lekktu@gmail.com> |
8711 | ||
e298936f JB |
8712 | * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings. |
8713 | ||
d3d47262 JB |
8714 | * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings) |
8715 | (Vdead, dont_register_blocks, staticvec, staticidx, interval_block) | |
8716 | (n_interval_blocks, init_strings, check_string_bytes, check_sblock) | |
8717 | (init_float, free_float, n_cons_blocks, init_cons, all_vectors) | |
8718 | (n_vectors, symbol_block, symbol_block_index, symbol_free_list) | |
8719 | (n_symbol_blocks, init_symbol, marker_block, marker_free_list) | |
8720 | (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float) | |
8721 | (last_marked, mark_object_loop_halt): Make static. | |
8722 | ||
a3547743 JB |
8723 | * frame.c (syms_of_frame) <delete-frame-functions>: |
8724 | Fix typo in docstring. | |
8725 | ||
14c71d8b JB |
8726 | 2007-10-25 Juanma Barranquero <lekktu@gmail.com> |
8727 | ||
8728 | * w32.c (init_environment): Fix tiny memory leak. | |
66199f74 | 8729 | (w32_get_resource): Remove unused variable `ok'. |
14c71d8b | 8730 | |
70b8d0a4 SM |
8731 | 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca> |
8732 | ||
8733 | Make `window-system' into a keyboard-local variable (rather than | |
8734 | frame-local as done originally by multi-tty). | |
8735 | ||
8736 | * keyboard.h (struct kboard): Add Vwindow_system. | |
8737 | * keyboard.c (init_kboard): Set a default for Vwindow_system. | |
8738 | (mark_kboards): Mark Vwindow_system. | |
8739 | ||
8740 | * dispnew.c (syms_of_display) <window-system>: Declare terminal-local. | |
8741 | (init_display): Don't set the obsolete `window-system' frame-param. | |
8742 | ||
8743 | * xterm.c (x_term_init): | |
8744 | * w32term.c (w32_create_terminal): | |
8745 | * term.c (init_tty): Set Vwindow_system. | |
8746 | * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the | |
8747 | multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system. | |
8748 | ||
8749 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
8750 | * w32fns.c (Fx_create_frame, x_create_tip_frame): | |
8751 | * macfns.c (Fx_create_frame): | |
8752 | Don't set the obsolete `window-system' frame-param. | |
8753 | ||
8754 | * frame.h (Qwindow_system): Remove. | |
8755 | * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well. | |
8756 | (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param. | |
8757 | ||
fdc90613 | 8758 | 2007-10-24 Richard Stallman <rms@gnu.org> |
4521d1fc | 8759 | |
fdc90613 MB |
8760 | * frame.c (x_figure_window_size): For fullscreen case, |
8761 | set USPosition | PPosition without clobbering rest of window_prompting. | |
7c75be36 | 8762 | |
fdc90613 | 8763 | * keyboard.c (Fcurrent_idle_time): Doc fix. |
4521d1fc | 8764 | |
fdc90613 | 8765 | * print.c (Fwith_output_to_temp_buffer): Doc fix. |
4521d1fc | 8766 | |
7357cb04 SM |
8767 | 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
8768 | ||
98228e72 SM |
8769 | * process.c (unwind_request_sigio): Only define if __ultrix__. |
8770 | ||
1baf6db9 SM |
8771 | * callproc.c (child_setup): Remove spurious *. |
8772 | ||
4d0ac3d7 SM |
8773 | * lisp.h (Fget_text_property): Declare. |
8774 | (have_menus_p): Declare it here rather than in sys-dep header files. | |
8775 | * macterm.h (have_menus_p): | |
8776 | * msdos.h (have_menus_p): | |
8777 | * xterm.h (have_menus_p): Remove. | |
8778 | ||
7357cb04 SM |
8779 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable) |
8780 | (Fmake_variable_frame_local): Just check the variable's const-ness | |
8781 | rather than checking nil or t. | |
8782 | ||
866e6dd6 JR |
8783 | 2007-10-22 Jason Rumney <jasonr@gnu.org> |
8784 | ||
b00afeae JR |
8785 | * w32fns.c: Include math.h. |
8786 | (w32_abort): Declaration moved to nt/config.nt. | |
0f7f11b7 | 8787 | |
c8f7c76b JR |
8788 | * s/ms-w32.h (HAVE_STDLIB_H): Define. |
8789 | (abort): Redefinition moved to nt/config.nt. | |
8790 | ||
866e6dd6 JR |
8791 | * m/windowsnt.h: Remove. |
8792 | ||
e79beb56 JB |
8793 | 2007-10-22 Juanma Barranquero <lekktu@gmail.com> |
8794 | ||
8795 | * emacs.c (Fdump_emacs): Fix typo in message. | |
8796 | (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring. | |
8797 | <installation-directory>: Reflow docstring. | |
8798 | ||
fb30dfd2 JL |
8799 | 2007-10-22 Juri Linkov <juri@jurta.org> |
8800 | ||
8801 | * minibuf.c: Allow minibuffer default to be a list of default values. | |
8802 | With empty input use the first element of this list as returned default. | |
e79beb56 | 8803 | (string_to_object) |
0f7f11b7 | 8804 | (read_minibuf_noninteractive): If defalt is cons, set val to its car. |
fb30dfd2 JL |
8805 | (read_minibuf): If defalt is cons, set histstring to its car. |
8806 | (Fread_string): If default_value is cons, set val to its car. | |
8807 | (Fread_buffer): If def is cons, use its car. | |
8808 | (Fcompleting_read): If defalt is cons, set val to its car. | |
8809 | ||
1f163f28 MA |
8810 | 2007-10-21 Michael Albinus <michael.albinus@gmx.de> |
8811 | ||
8812 | * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. | |
8813 | ||
db3534c3 JB |
8814 | 2007-10-20 Juanma Barranquero <lekktu@gmail.com> |
8815 | ||
8816 | * doc.c (Fdocumentation): Check for advice in all cases. | |
8817 | ||
c6f18a07 CY |
8818 | 2007-10-19 Chong Yidong <cyd@stupidchicken.com> |
8819 | ||
8820 | * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags. | |
8821 | ||
2a1534d3 RS |
8822 | 2007-10-19 Richard Stallman <rms@gnu.org> |
8823 | ||
8824 | * doc.c (Fdocumentation): Check for and handle an advised function. | |
8825 | ||
7b82c3b6 JB |
8826 | 2007-10-19 Juanma Barranquero <lekktu@gmail.com> |
8827 | ||
8828 | * process.c (Fset_process_filter): Doc fix. | |
8829 | ||
3278f20e SM |
8830 | 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> |
8831 | ||
8832 | * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty | |
8833 | which caused key-translation-map to applied repeatedly (thus breaking | |
8834 | double-mode). | |
8835 | ||
99784d63 SM |
8836 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
8837 | ||
8838 | * xselect.c (x_own_selection, x_handle_selection_clear) | |
8839 | (x_clear_frame_selections): | |
8840 | * w32menu.c (list_of_panes, list_of_items): | |
8841 | * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): | |
8842 | * textprop.c (validate_plist, interval_has_all_properties) | |
8843 | (interval_has_some_properties, interval_has_some_properties_list) | |
8844 | (add_properties, text_property_list): | |
8845 | * process.c (Fget_buffer_process, list_processes_1, status_notify): | |
8846 | * minibuf.c (Fassoc_string): | |
8847 | * macselect.c (x_own_selection, x_clear_frame_selections) | |
8848 | (Fx_disown_selection_internal): | |
8849 | * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): | |
8850 | Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r. | |
8851 | ||
44bb704d CY |
8852 | 2007-10-17 Chong Yidong <cyd@stupidchicken.com> |
8853 | ||
8854 | * process.c: Link to libs for calling res_init() if available. | |
8855 | (Fmake_network_process): Call res_init() before getaddrinfo or | |
8856 | gethostbyname, if possible. | |
8857 | ||
d314756e SM |
8858 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
8859 | ||
2504022a SM |
8860 | * lread.c (read1): Set pvectype for char_tables. |
8861 | ||
19fa82b9 SM |
8862 | * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY) |
8863 | (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE): | |
8864 | Add type checks. | |
8865 | (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove. | |
8866 | ||
d314756e SM |
8867 | * alloc.c (free_misc): Use XMISCTYPE. |
8868 | (live_misc_p, gc_sweep): Use Lisp_Misc_Any. | |
8869 | ||
94b9aaa2 GM |
8870 | 2007-10-17 Glenn Morris <rgm@gnu.org> |
8871 | ||
8872 | * minibuf.c (Qcompletion_ignore_case): New Lisp_Object. | |
8873 | (syms_of_minibuf): Add Qcompletion_ignore_case. | |
8874 | * dired.c (Qcompletion_ignore_case): Change to external. | |
8875 | (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case. | |
8876 | * fileio.c (Qcompletion_ignore_case): New external Lisp_Object. | |
8877 | (Fread_file_name): Use it rather than intern'ing. | |
8878 | ||
8879 | * coding.c (Qcompletion_ignore_case): New external Lisp_Object. | |
8880 | (Fread_coding_system): Ignore case of user input. | |
8881 | ||
da6658e8 YM |
8882 | 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8883 | ||
8884 | * xdisp.c (handle_display_prop): Ignore display specs after | |
8885 | replacing one when string text is being replaced. | |
8886 | (handle_single_display_spec): Pretend as if characters with display | |
8887 | property haven't been consumed only when buffer text is being replaced. | |
8888 | ||
11fb4bdb SM |
8889 | 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> |
8890 | ||
9beb8baa SM |
8891 | * xfns.c (Fx_create_frame, Fx_display_list): |
8892 | * window.c (window_fixed_size_p, enlarge_window) | |
8893 | (shrink_window_lowest_first): | |
8894 | * macterm.c (init_font_name_table): | |
8895 | * macfns.c (Fx_create_frame, Fx_display_list): | |
8896 | * lread.c (close_load_descs): | |
8897 | * keyboard.c (read_char_x_menu_prompt): | |
8898 | * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent): | |
8899 | * coding.c (code_convert_region_unwind): Test the type of an object | |
8900 | rather than just !NILP before extracting data from it. | |
8901 | ||
d3f41ff5 SM |
8902 | * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors. |
8903 | ||
67ee9f6e SM |
8904 | * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. |
8905 | (XMISCANY): New macro. | |
8906 | (XMISCTYPE): Use it. | |
8907 | (struct Lisp_Misc_Any): New type. | |
8908 | (union Lisp_Misc): Use it. | |
8909 | (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit. | |
8910 | * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding) | |
8911 | (find_symbol_value, set_internal, default_value, Fset_default) | |
8912 | (Fmake_variable_buffer_local, Fmake_local_variable) | |
8913 | (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p) | |
8914 | (Flocal_variable_if_set_p, Fvariable_binding_locus): | |
8915 | The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set. | |
8916 | * alloc.c (allocate_buffer): Set the size and tag. | |
8917 | (allocate_misc, mark_maybe_object, mark_object, survives_gc_p): | |
8918 | Use XMISCANY. | |
8919 | (die): Follow the GNU convention for error messages. | |
8920 | * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set. | |
8921 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the | |
8922 | tag any more. | |
8923 | (set_buffer_internal_1): | |
8924 | * frame.c (store_frame_param): | |
8925 | * eval.c (specbind): | |
8926 | * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP. | |
8927 | ||
11fb4bdb SM |
8928 | * doc.c (Fsnarf_documentation): Simplify. |
8929 | ||
decb374a JB |
8930 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
8931 | ||
8932 | * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static. | |
8933 | (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring. | |
8934 | ||
b5a40ee7 SM |
8935 | 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca> |
8936 | ||
8937 | * buffer.c (Fmake_indirect_buffer): Set the buffer's tag. | |
8938 | ||
35277b03 JB |
8939 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
8940 | ||
8941 | * eval.c (do_autoload): Don't save autoloads. | |
8942 | ||
8943 | * data.c (Ffset): Save autoload of the function being set. | |
8944 | ||
35fdaa62 GM |
8945 | 2007-10-07 John Paul Wallington <jpw@pobox.com> |
8946 | ||
8947 | * xfns.c (x_create_tip_frame): Set the `display-type' frame | |
8948 | parameter before setting up faces. | |
8949 | ||
1ea40aa2 EZ |
8950 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
8951 | ||
35fdaa62 | 8952 | * ccl.c (Fregister_code_conversion_map): |
96a5affb EZ |
8953 | * keyboard.c (append_tool_bar_item): Reformat last change. |
8954 | ||
1ea40aa2 EZ |
8955 | * lisp.h (eabs): Rename from `abs'. All callers changed. |
8956 | ||
35277b03 | 8957 | 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru> |
71d00ce4 EZ |
8958 | |
8959 | * buffer.c (add_overlay_mod_hooklist): | |
8960 | * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map): | |
8961 | * fontset.c (make_fontset): | |
8962 | * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item) | |
8963 | (append_tool_bar_item): | |
8964 | * macmenu.c (grow_menu_items): | |
35fdaa62 | 8965 | * w32menu.c (grow_menu_items): |
71d00ce4 | 8966 | * xmenu.c (grow_menu_items): Use larger_vector. |
35fdaa62 | 8967 | |
bc82f120 EZ |
8968 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
8969 | ||
8970 | * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving | |
8971 | selected frame'' on MSDOS). | |
8972 | ||
d57d5a78 MR |
8973 | 2007-10-12 Martin Rudalics <rudalics@gmx.at> |
8974 | ||
8975 | * frame.c (Qexplicit_name): New variable. | |
8976 | (x_report_frame_params): Report it in parameter alist. | |
8977 | (syms_of_frame): Intern and staticpro it. | |
8978 | ||
35277b03 | 8979 | 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change) |
04710ebd JR |
8980 | |
8981 | * macfns.c (x_create_tip_frame): Set terminal for frame. | |
8982 | ||
c7a4b95b SM |
8983 | 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca> |
8984 | ||
26f9c7b7 SM |
8985 | * frame.c (Qenvironment): Remove. |
8986 | (syms_of_frame) <Qenvironment>: Don't initialize. | |
8987 | (Fdelete_frame): Don't treat the `environment' param specially. | |
8988 | * frame.h (Qenvironment): Don't declare. | |
8989 | * callproc.c (set_initial_environment): Don't set unused frame param. | |
8990 | ||
c7a4b95b SM |
8991 | * frame.c (Fframe_with_environment): Remove. |
8992 | (syms_of_frame) <Sframe_with_environment>: Don't declare. | |
26f9c7b7 | 8993 | |
c7a4b95b SM |
8994 | * lisp.h (Fframe_with_environment): Don't declare. |
8995 | ||
c86f7377 JB |
8996 | 2007-10-10 Juanma Barranquero <lekktu@gmail.com> |
8997 | ||
8998 | * indent.c (indent_tabs_mode, last_known_column) | |
8999 | (last_known_column_modified): Make static. | |
9000 | (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring. | |
9001 | ||
d1b3a122 KY |
9002 | 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org> |
9003 | ||
9004 | * puresize.h (BASE_PURESIZE): Increase to 1170000. | |
9005 | ||
d57d5a78 MR |
9006 | 2007-10-09 Jason Rumney <jasonr@gnu.org> |
9007 | ||
9008 | * w32term.c (x_set_window_size): Disable code that attempts to tell | |
9009 | Lisp code about a size change before it actually happens. | |
9010 | ||
81d3d428 | 9011 | 2007-10-09 Richard Stallman <rms@gnu.org> |
91175673 | 9012 | |
81d3d428 MB |
9013 | * xdisp.c (handle_invisible_prop): After setting up an ellipsis, |
9014 | return HANDLED_RETURN. | |
91175673 | 9015 | |
1af74d06 | 9016 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
4f1b1854 | 9017 | |
1af74d06 MB |
9018 | * keyboard.c (kbd_buffer_get_event): Break loop waiting for input |
9019 | when there's an unread command event. | |
e0fead5d | 9020 | |
c7a4b95b | 9021 | * frame.c (focus_follows_mouse): Move here from frame.el to allow |
1af74d06 MB |
9022 | window autoselection act appropriately when leaving selected frame. |
9023 | (syms_of_frame): Initialize focus_follows_mouse. | |
9024 | * frame.h (focus_follows_mouse): Extern it. | |
9025 | * macterm.c (XTread_socket): When focus_follows_mouse is nil | |
c7a4b95b | 9026 | make SELECT_WINDOW_EVENT only if we don't leave the selected frame. |
1af74d06 MB |
9027 | * msdos.c (dos_rawgetc): Likewise. |
9028 | * w32term.c (w32_read_socket): Likewise. | |
9029 | * xterm.c (handle_one_xevent): Likewise. | |
9030 | * xdisp.c (syms_of_xdisp): In doc-string of | |
9031 | mouse-autoselect-window mention focus-follows-mouse. | |
e0fead5d | 9032 | |
1af74d06 | 9033 | 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
e0fead5d | 9034 | |
1af74d06 MB |
9035 | * macterm.c (mac_load_query_font): Fix missing return value. |
9036 | [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): | |
9037 | Add BLOCK_INPUT. | |
c186cdb3 | 9038 | |
1af74d06 | 9039 | 2007-10-08 Richard Stallman <rms@gnu.org> |
c186cdb3 | 9040 | |
1af74d06 MB |
9041 | * xdisp.c (get_window_cursor_type): Implement documented behavior |
9042 | for cursor-in-non-selected-windows = t. | |
c186cdb3 | 9043 | |
1af74d06 | 9044 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
c186cdb3 | 9045 | |
1af74d06 | 9046 | * w32.c (w32_get_resource): Always close registry keys. |
58cfce98 | 9047 | |
1af74d06 | 9048 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
58cfce98 | 9049 | |
1af74d06 | 9050 | * makefile.w32-in (LIBS): Add COMCTL32. |
62854fe2 | 9051 | |
1af74d06 | 9052 | * w32fns.c (globals_of_w32fns): Init common controls. |
62854fe2 | 9053 | |
1af74d06 | 9054 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 9055 | |
c7a4b95b | 9056 | * image.c (our_memory_buffer): Rename from omfib_buffer. |
656f46bb | 9057 | |
1af74d06 | 9058 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 9059 | |
1af74d06 | 9060 | * buffer.c (Foverlays_at): Doc fix. |
036e218d | 9061 | |
1af74d06 | 9062 | 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca> |
036e218d | 9063 | |
1af74d06 | 9064 | * fns.c (Fplist_put): Preserve uneven tail data. |
7ddb2c16 | 9065 | |
1af74d06 | 9066 | 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) |
7ddb2c16 | 9067 | |
1af74d06 | 9068 | * termhooks.h (enum event_kind): Remove trailing comma. |
ace9b298 | 9069 | |
1af74d06 | 9070 | * frame.h (enum): Remove trailing comma. |
90647b07 | 9071 | |
1af74d06 | 9072 | 2007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change) |
90647b07 | 9073 | |
1af74d06 | 9074 | * w32proc.c (delete_child): Don't terminate threads of zombies. |
ace9b298 | 9075 | |
1af74d06 | 9076 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
ace9b298 | 9077 | |
1af74d06 | 9078 | * keyboard.h (struct kboard): New elt Vlast_repeatable_command. |
ace9b298 | 9079 | |
1af74d06 MB |
9080 | * keyboard.c (syms_of_keyboard): Set up new Lisp variable |
9081 | last-repeatable-command. | |
9082 | (init_kboard): Initialize Vlast_repeatable_command. | |
9083 | (command_loop_1): Set it to real_this_command unless that was | |
9084 | bound to an input event. | |
9085 | (mark_kboards): Mark it. | |
9fbc32aa | 9086 | |
1af74d06 | 9087 | 2007-10-08 Richard Stallman <rms@gnu.org> |
036e218d | 9088 | |
1af74d06 | 9089 | * eval.c (condition-case): Doc fix. |
9fbc32aa | 9090 | |
1af74d06 | 9091 | 2007-10-08 Masatake YAMATO <jet@gyve.org> |
9fbc32aa | 9092 | |
1af74d06 MB |
9093 | * xfaces.c (tty_supports_face_attributes_p): Fix code |
9094 | for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code | |
9095 | was copied and not edited. | |
9fbc32aa | 9096 | |
beb9f745 SM |
9097 | 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca> |
9098 | ||
c86f7377 | 9099 | Add new `input-decode-map' keymap and use it for terminal |
4f4a84ec SM |
9100 | escape sequences. |
9101 | * keyboard.h (struct kboard): Add Vinput_decode_map. | |
9102 | Remove Vlocal_key_translation_map. | |
9103 | * keyboard.c (read_key_sequence): Add support for input-decode-map. | |
9104 | (init_kboard): Init input-decode-map. | |
9105 | Replace local-key-translation-map back with key-translation-map. | |
9106 | (syms_of_keyboard): Declare input-decode-map. | |
9107 | Remove local-key-translation-map. Update docstrings. | |
9108 | (mark_kboards): Mark Vinput_decode_map. | |
9109 | Don't mark Vlocal_key_translation_map. | |
9110 | * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map. | |
9111 | Replace local-key-translation-map back with key-translation-map. | |
9112 | * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN): | |
9113 | Bind in input-decode-map rather than function-key-map. | |
9114 | ||
beb9f745 SM |
9115 | * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore. |
9116 | This was made redundant by the previous introduction of XSETPVECTYPE. | |
9117 | ||
65342ae3 RS |
9118 | 2007-10-09 Richard Stallman <rms@gnu.org> |
9119 | ||
beb9f745 | 9120 | * image.c (free_bitmap_record): Rename from Free_Bitmap_Record. |
65342ae3 RS |
9121 | |
9122 | 2007-09-29 Richard Stallman <rms@gnu.org> | |
9123 | ||
9124 | * eval.c (internal_condition_case_2, internal_condition_case_1) | |
9125 | (internal_condition_case): Reenable abort if x_catching_errors () | |
9126 | to see if that really happens and why. | |
9127 | ||
6cff77fd AS |
9128 | 2007-10-06 Andreas Schwab <schwab@suse.de> |
9129 | ||
9130 | * fileio.c (Fwrite_region): Ignore EINVAL error from fsync. | |
9131 | ||
bbe6f2aa JB |
9132 | 2007-10-04 Juanma Barranquero <lekktu@gmail.com> |
9133 | ||
9134 | * image.c (syms_of_image) <image-types>: Fix typo in docstring. | |
9135 | ||
a390930c SM |
9136 | 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca> |
9137 | ||
9138 | * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used. | |
9139 | ||
d6aa1876 SM |
9140 | 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca> |
9141 | ||
d0fdb6da SM |
9142 | * window.h (struct window): |
9143 | * window.c (struct save_window_data, struct saved_window): | |
9144 | * termhooks.h (struct terminal): | |
9145 | * process.h (struct Lisp_Process): | |
9146 | * frame.h (struct frame): | |
9147 | * buffer.h (struct buffer): | |
9148 | * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table) | |
9149 | (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table): | |
9150 | The size field of (pseudo)vectors is now unsigned. | |
9151 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly. | |
9152 | ||
878f97ff SM |
9153 | * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end. |
9154 | Turn `count' into an integer. | |
d0fdb6da | 9155 | |
878f97ff SM |
9156 | * fns.c (make_hash_table, hash_put, hash_remove, hash_clear) |
9157 | (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count): | |
9158 | * print.c (print_object) <HASH_TABLE_P>: `count' is an int. | |
9159 | * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR. | |
9160 | (mark_object) <HASH_TABLE_P>: Use mark_vectorlike. | |
9161 | ||
d2029e5b SM |
9162 | * alloc.c (allocate_pseudovector): New fun. |
9163 | (ALLOCATE_PSEUDOVECTOR): New macro. | |
9164 | (allocate_window, allocate_terminal, allocate_frame) | |
9165 | (allocate_process): Use it. | |
9166 | (mark_vectorlike): New function. | |
9167 | (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it. | |
9168 | (mark_terminals): Use it. | |
9169 | (Fmake_bool_vector, Fmake_char_table, make_sub_char_table) | |
9170 | (Fmake_byte_code): Use XSETPVECTYPE. | |
9171 | ||
9172 | * frame.c (Fframe_parameters): Minor simplification. | |
9173 | ||
9174 | * insdel.c (adjust_markers_for_insert): Generalize assertion checks. | |
9175 | ||
9176 | * marker.c (Fmarker_buffer): Make test for odd case into a failure. | |
9177 | ||
9178 | * buffer.c (Fget_buffer_create, init_buffer_once): | |
9179 | * lread.c (defsubr): | |
9180 | * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE. | |
9181 | ||
9182 | * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be | |
9183 | defined differently in the m/*.h files. | |
9184 | (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking. | |
9185 | (XSETPVECTYPE): New macro. | |
9186 | (XSETPSEUDOVECTOR): Use it. | |
9187 | ||
d6aa1876 SM |
9188 | * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c. |
9189 | (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. | |
d2029e5b | 9190 | |
d6aa1876 SM |
9191 | * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): |
9192 | * lread.c (defvar_per_buffer): | |
9193 | * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c. | |
9194 | ||
9195 | * window.c (candidate_window_p): Only consider as visible frames that | |
9196 | are on the same terminal. | |
9197 | ||
9198 | * m/ibms390x.h (MARKBIT): Remove unused macro. | |
9199 | ||
88852d45 JB |
9200 | 2007-10-01 Juanma Barranquero <lekktu@gmail.com> |
9201 | ||
9202 | * lread.c (Fload): Fix typo in docstring. | |
9203 | ||
880820fe | 9204 | 2007-10-01 Michaël Cadilhac <michael@cadilhac.name> |
2742fe30 MC |
9205 | |
9206 | * floatfns.c (Fexpt): Manually check for overflows, so that a power | |
9207 | of a non-zero value can't yield zero. | |
9208 | ||
ed0c79c6 SM |
9209 | 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca> |
9210 | ||
b870aa61 SM |
9211 | * term.c (term_clear_mouse_face, term_mouse_highlight) |
9212 | (tty_write_glyphs_with_face): Only define is HAVE_GPM. | |
9213 | ||
4c37a414 SM |
9214 | * print.c (safe_debug_print): Use XHASH. |
9215 | ||
b9466edb SM |
9216 | * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of |
9217 | Lisp elements such as tags. | |
9218 | (XHASH): New macro. | |
9219 | (EQ): Use it. | |
9220 | (SREF, SSET, STRING_COPYIN): Use SDATA. | |
9221 | (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove. | |
9222 | ||
9c545a55 SM |
9223 | * alloc.c (mark_terminal): Remove left-over declaration. |
9224 | (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE. | |
9225 | (allocate_vectorlike): Remove type argument. Adjust callers. | |
9226 | (live_vector_p, mark_maybe_pointer, valid_lisp_object_p): | |
9227 | Only handle the one remaining MEM_TYPE_VECTORLIKE. | |
9228 | ||
dafc79fa SM |
9229 | * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros |
9230 | to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used. | |
9231 | (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc) | |
9232 | (lisp_align_free, make_interval, allocate_string, allocate_string_data) | |
9233 | (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc): | |
9234 | Use them. | |
9235 | ||
ed0c79c6 SM |
9236 | * xfaces.c (load_face_font, free_realized_face, clear_face_gcs): |
9237 | Don't let signal handlers run when a GC is freed but not yet NULL'ed. | |
9238 | (x_free_gc): Remove BLOCK_INPUT since it's now redundant. | |
9239 | ||
3c81afd4 DN |
9240 | 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu> |
9241 | ||
9242 | * Makefile.in (lisp, shortlisp): Delete server.elc, it is not | |
9243 | loaded by default. | |
9244 | ||
6178ce5e SM |
9245 | 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca> |
9246 | ||
4ce5ab77 SM |
9247 | * term.c (Fgpm_mouse_start): Don't signal an error if already activated |
9248 | on this tty. | |
9249 | (Fgpm_mouse_stop): Only deactivate if it was activated on this tty. | |
9250 | ||
6178ce5e SM |
9251 | * term.c (mouse_face_window): Rename from Qmouse_face_window. |
9252 | Update all users. | |
9253 | (handle_one_term_event): Use Gpm_DrawPointer. | |
9254 | (Fgpm_mouse_start): Rename from Fterm_open_connection. | |
9255 | Signal errors instead of returning nil. Always return nil. | |
9256 | (Fgpm_mouse_stop): Rename from Fterm_close_connection. | |
9257 | Make it a noop if gpm-mouse was not activated. | |
9258 | (syms_of_term): Update names. | |
9259 | ||
bdf5f8ef SM |
9260 | 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca> |
9261 | ||
75a8734b SM |
9262 | * sysdep.c (narrow_foreground_group, widen_foreground_group): Static. |
9263 | (init_sys_modes): Check that gpm_tty is the current tty. | |
9264 | ||
13559ee0 SM |
9265 | * alloc.c (allocate_terminal): Set the vector size to only count the |
9266 | lisp fields. Initialize those to nil. | |
9267 | (mark_object): Don't treat terminals specially. | |
9268 | (mark_terminal): Remove. | |
9269 | (mark_terminals): Use mark_object instead. | |
9270 | ||
ff16b875 SM |
9271 | * termhooks.h (struct terminal): Move all Lisp_Object fields traced by |
9272 | the GC to the beginning. | |
9273 | ||
83155776 SM |
9274 | * indent.h: |
9275 | * indent.c: Use EMACS_INT for ints coming from Elisp data. | |
9276 | ||
bdf5f8ef SM |
9277 | * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions. |
9278 | ||
ec8705b6 JR |
9279 | 2007-09-25 Jason Rumney <jasonr@gnu.org> |
9280 | ||
9281 | * frame.c (make_terminal_frame): Remove special case for WINDOWSNT. | |
9282 | ||
9283 | * w32console.c (create_w32cons_output): Remove. | |
9284 | ||
9285 | * term.c (init_tty): Call init_sys_modes on WINDOWSNT also. | |
9286 | ||
9287 | * sysdep.c (init_sys_modes): Use set_terminal_modes_hook. | |
9288 | (reset_sys_modes): Use reset_terminal_modes_hook. | |
9289 | ||
7351b242 SM |
9290 | 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca> |
9291 | ||
9292 | * eval.c (do_autoload): Don't output any message. | |
9293 | ||
16706228 JL |
9294 | 2007-09-24 Juri Linkov <juri@jurta.org> |
9295 | ||
9296 | * emacs.c (standard_args): Change priority of "--no-splash" | |
9297 | from 40 to 3. Add "--no-desktop" with the same priority. | |
9298 | ||
3ae2e3a3 RS |
9299 | 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru> |
9300 | ||
9301 | * alloc.c (gc_sweep): Check cons cell mark bits word by word | |
9302 | and optimize the case where they are all 1. | |
9303 | ||
7a58fb43 GM |
9304 | 2007-09-23 Johannes Weiner <hannes@saeurebad.de> |
9305 | ||
3ae2e3a3 RS |
9306 | * lisp.h (abs): Define if not defined. |
9307 | * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c: | |
9308 | Don't define `abs', since it's defined in lisp.h. | |
7a58fb43 | 9309 | |
78048085 EZ |
9310 | 2007-09-22 Eli Zaretskii <eliz@gnu.org> |
9311 | ||
c7a4b95b | 9312 | * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows. |
78048085 EZ |
9313 | (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero. |
9314 | (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty) | |
9315 | (init_tty): Use DEV_TTY instead of "/dev/tty". | |
9316 | [WINDOWSNT]: No need to protect from NAME arg being null. | |
9317 | ||
23d4cba5 DN |
9318 | 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu> |
9319 | ||
9320 | * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning | |
9321 | up the tty state. | |
9322 | ||
71f44e7a SM |
9323 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
9324 | ||
9325 | * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
9326 | (gpm_tty): Change its type. | |
9327 | * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
9328 | (gpm_tty): Change its type and initialize it. | |
9329 | (Fterm_open_connection): Check the frame is indeed a tty. | |
9330 | Use the new gpm_tty. | |
9331 | (Fterm_close_connection): Use the new gpm_tty. | |
9332 | * keyboard.c (tty_read_avail_input): Use the new gpm_tty. | |
9333 | * sysdep.c (init_sys_modes): term_gpm -> gpm_tty. | |
9334 | ||
def7fa34 JB |
9335 | 2007-09-21 Juanma Barranquero <lekktu@gmail.com> |
9336 | ||
9337 | * w32term.c (x_draw_glyph_string): Use strike_through_color, not | |
9338 | underline_color, to draw strike-through. | |
9339 | ||
d2bb6598 SM |
9340 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
9341 | ||
273f164c SM |
9342 | * lisp.h (allocate_terminal): Declare. |
9343 | ||
ca2d5566 SM |
9344 | * window.c (candidate_window_p): Consider frames that are being placed |
9345 | by the user as somewhere between visible and iconified. | |
9346 | (window_loop): Prefer windows on the current frame. | |
9347 | (Fselect_window): Move the use of select-frame to the beginning so we | |
9348 | can just delegate all the work (it'll call us back anyway). | |
9349 | ||
6168122d SM |
9350 | * frame.c (Qdisplay_environment_variable): |
9351 | * frame.h (Qdisplay_environment_variable): Delete. | |
9352 | ||
c51842ec SM |
9353 | * .gdbinit (xbacktrace): Print the arg's address rather than the value |
9354 | of the first arg, since that value may be a union. | |
9355 | ||
d2bb6598 SM |
9356 | * callproc.c (child_setup, getenv_internal): Use the frame's `display' |
9357 | parameter rather than Qdisplay_environment_variable. If all else | |
9358 | fails, look for DISPLAY in initial-environment. | |
9359 | ||
6f022c19 GM |
9360 | 2007-09-21 Glenn Morris <rgm@gnu.org> |
9361 | ||
9362 | * Makefile.in (emacstool): Remove target. | |
f466320b | 9363 | (lisp, shortlisp): Remove termdev.elc. |
6f022c19 | 9364 | |
ea1bf8c7 GM |
9365 | 2007-09-21 Markus Triska <markus.triska@gmx.at> |
9366 | ||
d2bb6598 | 9367 | * xterm.c (x_delete_display): Compile session management conditionally. |
ea1bf8c7 | 9368 | |
d30a25b3 SM |
9369 | 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
9370 | ||
db699fc6 SM |
9371 | * callproc.c (getenv_internal_1): New function. |
9372 | (getenv_internal): Use it. | |
9373 | (Fgetenv_internal): Use it. Accept an env-list as optional arg. | |
9374 | ||
d2bb6598 | 9375 | * terminal.c (get_terminal): Don't accept ints to represent terminals. |
c5911e55 SM |
9376 | (Fterminal_name, Fterminal_parameters, Fterminal_parameter) |
9377 | (Fset_terminal_parameter): Work with dead terminals as well. | |
9378 | (Fmodify_terminal_parameters): Remove. | |
9379 | ||
d30a25b3 SM |
9380 | * terminal.c (get_terminal): Handle terminals. |
9381 | Make sure the terminal returned is live. | |
9382 | (create_terminal): Use allocate_terminal. | |
9383 | (mark_terminals): Move to alloc.c. | |
9384 | (delete_terminal): Use terminal->name as liveness status. | |
9385 | NULL out fields after freeing their contents. | |
9386 | Don't deallocate the object. | |
9387 | (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object | |
9388 | rather than an int. | |
9389 | (Fterminal_live_p): Accept non-integer arguments. | |
9390 | (Fterminal_list): Return terminal objects rather than an ints. | |
9391 | ||
9392 | * alloc.c (enum mem_type): New member for `terminal' objects. | |
9393 | (allocate_terminal): New function. | |
d2bb6598 SM |
9394 | (mark_maybe_pointer, valid_lisp_object_p, mark_object): |
9395 | Handle terminals. | |
d30a25b3 SM |
9396 | (mark_terminal): New fun. |
9397 | (mark_terminals): Move from terminal.c. | |
9398 | ||
9399 | * term.c (get_tty_terminal): Don't treat output_initial specially. | |
9400 | (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints. | |
9401 | (delete_tty): Use terminal->name as liveness status. | |
9402 | ||
9403 | * termhooks.h (struct terminal): Make it into a pseudovector. | |
9404 | Remove `deleted' replaced by checking `name's nullness. | |
9405 | ||
9406 | * print.c (print_object): Handle terminals. | |
9407 | ||
9408 | * lisp.h (enum pvec_type): New `terminal' pseudovector. | |
9409 | (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros. | |
9410 | ||
9411 | * frame.c (make_terminal_frame): | |
9412 | * keyboard.c (tty_read_avail_input): | |
9413 | * w32term.c (x_delete_terminal): | |
9414 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
9415 | * xterm.c (x_delete_terminal): Use terminal->name as liveness status. | |
9416 | ||
eba25e7c GM |
9417 | 2007-09-20 Glenn Morris <rgm@gnu.org> |
9418 | ||
9419 | * process.c (Fmake_network_process): Doc fix. | |
9420 | ||
2a29c3c1 JR |
9421 | 2007-09-19 Jason Rumney <jasonr@gnu.org> |
9422 | ||
9423 | * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument. | |
9424 | ||
880820fe | 9425 | 2007-09-19 Michaël Cadilhac <michael@cadilhac.name> |
ba1cbad7 MC |
9426 | |
9427 | * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): | |
9428 | Fix a C warning regarding variable constness. | |
9429 | ||
9430 | * xterm.c (handle_one_xevent): Fix a C warning. | |
9431 | ||
334a1195 JR |
9432 | 2007-09-18 Jason Rumney <jasonr@gnu.org> |
9433 | ||
9434 | * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. | |
9435 | ||
880820fe | 9436 | 2007-09-17 Jan Djärv <jan.h.d@swipnet.se> |
879ffad9 JD |
9437 | |
9438 | * gtkutil.c (gdpy_def): New variable. | |
9439 | (xg_initialize): Initialize gdpy_def. | |
9440 | (xg_display_close): If no other display exists, set gdpy_def to a | |
9441 | new connection. | |
9442 | ||
880820fe | 9443 | 2007-09-16 Jan Djärv <jan.h.d@swipnet.se> |
45c94881 JD |
9444 | |
9445 | * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf | |
9446 | when we have no file name for the icon. | |
9447 | (xg_tool_bar_expose_callback): Remove. | |
9448 | (xg_create_tool_bar): Don't connect expose signal to | |
9449 | xg_tool_bar_expose_callback. | |
9450 | (xg_get_file_with_chooser): Move GCPRO1 after declarations. | |
9451 | ||
4d580af2 AS |
9452 | 2007-09-16 Andreas Schwab <schwab@suse.de> |
9453 | ||
9454 | * alloc.c (reset_malloc_hooks): Set the hooks to the previous | |
9455 | values instead of zapping them. | |
9456 | ||
aca946f3 GM |
9457 | 2007-09-14 Glenn Morris <rgm@gnu.org> |
9458 | ||
9459 | * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope. | |
9460 | * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. | |
9461 | * image.c (our_memory_fill_input_buffer) <buffer>: Move to file | |
9462 | scope and rename to omfib_buffer for clarity. | |
9463 | (gif_load) <interlace_start, interlace_increment>: Move to file scope. | |
9464 | ||
25c460e5 KH |
9465 | 2007-09-14 Kenichi Handa <handa@m17n.org> |
9466 | ||
9467 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. | |
9468 | ||
09b69f01 JR |
9469 | 2007-09-13 Jason Rumney <jasonr@gnu.org> |
9470 | ||
9471 | * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument. | |
9472 | ||
9473 | * w32term.c (w32_term_init): Pass rif to w32_init_fringe. | |
9474 | ||
9475 | * macterm.c (mac_initialize): Don't call mac_init_fringe here. | |
9476 | (mac_term_init): Call here instead, passing rif. | |
9477 | ||
442218db GM |
9478 | 2007-09-13 Glenn Morris <rgm@gnu.org> |
9479 | ||
9480 | * s/hpux.h: No longer define `static' as nothing. | |
9481 | ||
880820fe | 9482 | 2007-09-13 Johan Bockgård <bojohan@gnu.org> |
4795c40f GM |
9483 | |
9484 | * callint.c (Fcall_interactively): Remove unused var `fun'. | |
9485 | ||
1971a872 RF |
9486 | 2007-09-12 Romain Francoise <romain@orebokech.com> |
9487 | ||
9488 | * window.c (prefer_window_split_horizontally, display_buffer): | |
9489 | Revert 2007-09-08 change. | |
9490 | ||
2d33f506 GM |
9491 | 2007-09-12 Glenn Morris <rgm@gnu.org> |
9492 | ||
585474ae | 9493 | * alloca.c: Remove file. |
ca7af97a GM |
9494 | * Makefile.in (alloca): Do not undef. |
9495 | (allocaobj, alloca.o): Remove. | |
9496 | (otherobj): Remove allocaobj. | |
9497 | * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block. | |
9498 | * regex.c (C_ALLOCA): Remove all references and code that was only | |
9499 | used when this was defined. | |
9500 | * search.c (boyer_moore): Remove #ifdef C_ALLOCA block. | |
9501 | * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block. | |
99dfbaf1 GM |
9502 | * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this. |
9503 | ||
2d33f506 | 9504 | * Makefile.in (SOURCES, unlock, relock): Delete. |
ca7af97a GM |
9505 | |
9506 | * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. | |
9507 | (menu_grab_callback): All uses changed. | |
9508 | ||
9509 | * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. | |
9510 | (x_reply_selection_request): All uses changed. | |
2d33f506 | 9511 | |
18a4a65e SM |
9512 | 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca> |
9513 | ||
9514 | * lread.c (load_warn_old_style_backquotes): Change message to look | |
9515 | better when it appears in the middle of byte-compiler messages. | |
9516 | ||
47cc8819 DN |
9517 | 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu> |
9518 | ||
b7ea0894 DN |
9519 | * s/darwin.h (MULTI_KBOARD): Only define for Carbon. |
9520 | ||
47cc8819 DN |
9521 | * xterm.c (x_create_terminal): Add comment. |
9522 | ||
9523 | * term.c (clear_tty_hooks, set_tty_hooks): Add comments. | |
9524 | ||
5632bd0f RS |
9525 | 2007-09-10 Richard Stallman <rms@gnu.org> |
9526 | ||
9527 | * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME. | |
9528 | ||
880820fe | 9529 | 2007-09-10 Michaël Cadilhac <michael@cadilhac.name> |
ccb5c14f | 9530 | |
4bca9161 MC |
9531 | * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. |
9532 | (DEFUN): Document `intspec', use it instead of `prompt'. | |
9533 | ||
04724b69 MC |
9534 | * eval.c (Fcommandp): Change `->prompt' to `->intspec'. |
9535 | ||
8a6d230a MC |
9536 | * data.c (Finteractive_form): If the interactive specification starts |
9537 | with a `(', use it as a Lisp form. | |
9538 | ||
09fbdf6c MC |
9539 | * fileio.c (Fset_file_modes): Add an interactive spec that reads a file |
9540 | name and file modes. | |
9541 | ||
ccb5c14f MC |
9542 | * callint.c (Fcall_interactively): Comment fixes. |
9543 | ||
023accd6 SM |
9544 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9545 | ||
9546 | * callint.c (Fcall_interactively): Use Finteractive_form also for subrs | |
9547 | and compiled functions. | |
9548 | ||
f26b9544 EZ |
9549 | 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com> |
9550 | ||
9551 | * window.c (prefer_window_split_horizontally): New variable. | |
9552 | (display_buffer): Consider splitting window horizontally depending | |
9553 | on prefer_window_split_horizontally. | |
9554 | ||
4d395425 EZ |
9555 | 2007-09-08 Eli Zaretskii <eliz@gnu.org> |
9556 | ||
97ddc760 | 9557 | * sysdep.c [WINDOWSNT]: Don't include sysselect.h. |
4d395425 | 9558 | |
08c1d235 SM |
9559 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
9560 | ||
179cef48 SM |
9561 | * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking. |
9562 | ||
08c1d235 SM |
9563 | * frame.c (x_set_frame_parameters): Check number is positive before |
9564 | using XFASTINT. | |
9565 | ||
9566 | * window.c (freeze_window_start): Don't presume selected_window holds | |
9567 | a window object. | |
92f94a12 | 9568 | (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd. |
08c1d235 | 9569 | |
97ddc760 | 9570 | 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change) |
de52dcbb DN |
9571 | |
9572 | * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. | |
9573 | ||
90ab5c62 SM |
9574 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
9575 | ||
9576 | * window.c (Vsplit_window_preferred_function): New var. | |
9577 | (Fdisplay_buffer): Use it. | |
9578 | (syms_of_window): Export, and initialize it. | |
9579 | ||
1ab2cd43 TTN |
9580 | 2007-09-06 Pixel <pixel@mandriva.com> (tiny change) |
9581 | ||
9582 | * image.c (gif_load): Fix bug: Handle nonexistent colormap. | |
9583 | ||
0b0515bc GM |
9584 | 2007-09-06 Glenn Morris <rgm@gnu.org> |
9585 | ||
57fd5c55 | 9586 | * gtkutil.c (menu_grab_callback) <cnt>: |
0b0515bc GM |
9587 | * xselect.c (x_reply_selection_request) <cnt>: Move static |
9588 | variable to file scope. | |
9589 | ||
98594580 SM |
9590 | 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca> |
9591 | ||
9592 | * xdisp.c (redisplay_internal): Make sure Elisp code always sees | |
9593 | consistent values of selected_frame and selected_window. | |
9594 | ||
0f4c7aef JR |
9595 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
9596 | ||
9597 | * w32console.c (initialize_w32_display): Zero unused hooks. | |
9598 | ||
e4019195 DN |
9599 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
9600 | ||
9601 | * term.c (Vsuspend_tty_functions, Vresume_tty_functions) | |
9602 | (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change. | |
9603 | ||
bce179b5 JR |
9604 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
9605 | ||
a0236551 JR |
9606 | * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible |
9607 | in w32console.c. Set up input. Remove XXX comments that have been | |
9608 | confirmed as correct. | |
9609 | ||
a4926668 JR |
9610 | * s/ms-w32.h (MULTI_KBOARD): Define. |
9611 | ||
953bf0dc JR |
9612 | * w32console.c (one_and_only_w32cons): Remove. |
9613 | (initialize_w32_display): Take terminal argument. | |
9614 | ||
9615 | * term.c (init_tty) [WINDOWSNT]: Pass terminal to | |
9616 | initialize_w32_display. | |
9617 | (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. | |
9618 | ||
bce179b5 JR |
9619 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. |
9620 | ||
9621 | * keyboard.c (discard_mouse_events): Discard it. | |
9622 | (make_lispy_event): Translate it to a lisp event. | |
9623 | (lispy_wheel_names): Add wheel-left and right events. | |
9624 | (syms_of_keyboard): Enlarge wheel_syms. | |
9625 | ||
9626 | * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. | |
9627 | <WM_MOUSEHWHEEL>: Pass new system message to lisp. | |
9628 | ||
9629 | * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't. | |
9630 | ||
9631 | * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT | |
9632 | from WM_MOUSEHWHEEL. | |
9633 | (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL. | |
9634 | ||
9635 | * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from | |
9636 | terminal. | |
9637 | ||
9638 | * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new | |
9639 | keyboard for the terminal. | |
9640 | ||
92cd6a7c DN |
9641 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
9642 | ||
9643 | * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. | |
9644 | (Vresume_tty_hook): Rename from Vresume_tty_functions. | |
9645 | (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook | |
9646 | and resume-tty-function to resume-tty-hook. | |
9647 | (Fsuspend_tty, Fresume_tty): Use new names. | |
9648 | ||
880820fe | 9649 | 2007-09-02 Jan Djärv <jan.h.d@swipnet.se> |
2154c964 JD |
9650 | |
9651 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon | |
9652 | if it starts with "n:". | |
9653 | ||
880820fe | 9654 | 2007-08-31 Jan Djärv <jan.h.d@swipnet.se> |
b42ff099 JD |
9655 | |
9656 | * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL. | |
9657 | ||
6b8e474c SM |
9658 | 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> |
9659 | ||
92d9c1d4 SM |
9660 | * frame.h: |
9661 | * frame.c (Qterm_environment_variable): Remove. | |
9662 | (syms_of_frame): Don't init and staticpro it. | |
9663 | ||
92d9c1d4 SM |
9664 | * callproc.c (getenv_internal): Remove special case for $TERM. |
9665 | ||
6b8e474c SM |
9666 | * callproc.c (Vinitial_environment): New variable. |
9667 | (set_initial_environment): Initialize it. | |
9668 | (syms_of_callproc): Declare it. | |
9669 | (child_setup): Don't mess with TERM via Qterm_environment_variable; the | |
9670 | TERM under which a process runs is never related to the TERM in which | |
9671 | Emacs is running. | |
9672 | ||
0f1444e1 DN |
9673 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
9674 | ||
9675 | * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here... | |
9676 | * s/darwin.h: ... do it here. | |
9677 | ||
b8866860 SM |
9678 | 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
9679 | ||
9680 | * lisp.h (set_initial_environment): Rename from set_global_environment. | |
9681 | ||
9682 | * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been | |
9683 | removed by mistake on the multi-tty branch. | |
9684 | ||
9685 | * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. | |
9686 | (Fmodify_frame_parameters): Return a value. | |
9687 | ||
9688 | * image.c (png_load): Comment-out var only used in commented-out code. | |
9689 | ||
9690 | * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) | |
9691 | before passing it to mark_object. | |
9692 | ||
9693 | * xfaces.c (internal_resolve_face_name): Return a value. | |
9694 | (internal_resolve_face_name, resolve_face_name_error): Comment out. | |
9695 | ||
9696 | * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. | |
9697 | (x_icon): Comment-out var only used in commented-out code. | |
9698 | ||
0a42be6d RF |
9699 | 2007-08-29 Romain Francoise <romain@orebokech.com> |
9700 | ||
9701 | * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if | |
9702 | QUIT hasn't been provided. | |
9703 | ||
8d9cc0b7 MB |
9704 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
9705 | ||
9706 | * callproc.c (child_setup, getenv_internal): Use the | |
ce20b664 | 9707 | display-environment-variable and term-environment-variable frame params. |
8d9cc0b7 MB |
9708 | (set_initial_environment): Initialise Vprocess_environment. |
9709 | ||
9710 | * config.in: Disable multi-keyboard support on a mac. | |
9711 | ||
9712 | * frame.c (Qterm_environment_variable) | |
9713 | (Qdisplay_environment_variable): New variables. | |
9714 | (syms_of_frame): Intern and staticpro them. | |
9715 | (Fmake_terminal_frame): Disable output method test. | |
9716 | ||
9717 | * frame.h: Declare them here. | |
9718 | ||
9719 | * macfns.c (x_set_mouse_color): Get rif from the frame. | |
9720 | (x_set_tool_bar_lines): Don't use updating_frame. | |
9721 | (mac_window): Add 2 new parameters for consistency with other systems. | |
9722 | (Fx_create_frame): Fix doc string. Rename the parameter. Set the | |
9723 | frame parameters following what is done in X11 and w32. Don't use | |
9724 | FRAME_MAC_DISPLAY_INFO. | |
9725 | (Fx_open_connection, start_hourglass): Remove window-system check. | |
9726 | (x_create_tip_frame): Get the keyboard from the terminal. | |
9727 | ||
9728 | * macmenu.c: Reorder includes. | |
9729 | (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
9730 | ||
9731 | * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a | |
9732 | terminal parameter. | |
9733 | (x_clear_frame): Add a frame parameter. | |
9734 | (note_mouse_movement): Get rif from the frame. | |
9735 | (mac_term_init): Initialize the terminal. | |
9736 | (mac_initialize): Make static and move terminal initialization ... | |
9737 | (mac_create_terminal): ... to this new function. | |
9738 | ||
9739 | * macterm.h (struct mac_display_info): Add terminal. | |
7196c970 | 9740 | (mac_initialize): Delete declaration. |
8d9cc0b7 | 9741 | |
381864b2 | 9742 | * puresize.h (BASE_PURESIZE): Increase base value to 1164000. |
8d9cc0b7 MB |
9743 | |
9744 | * sysdep.c: Comment out text after #endif. | |
9745 | ||
9746 | * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD | |
9747 | is defined. Better initialize ttys in windows. Use terminal | |
9748 | specific mouse_position_hook. | |
9749 | ||
9750 | * termhooks.h (union display_info): Add mac_display_info. | |
9751 | ||
b8866860 SM |
9752 | * w32fns.c (Fx_create_frame): Use kboard from the terminal. |
9753 | Set the default minibuffer frame, window_system and the rest of the | |
8d9cc0b7 MB |
9754 | frame parameters following what is done in X11. |
9755 | ||
9756 | * w32term.c (w32_initialize): Make static. | |
9757 | ||
9758 | * xselect.c (x_handle_selection_clear): Only access | |
9759 | terminal->kboard when MULTI_KBOARD is defined. | |
9760 | ||
9761 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. | |
9762 | (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. | |
9763 | ||
9764 | 2007-08-29 Jason Rumney <jasonr@gnu.org> | |
9765 | ||
9766 | * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. | |
9767 | (make_terminal_frame) [WINDOWSNT]: Initialize terminal. | |
9768 | ||
9769 | * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]: | |
9770 | (mac_init_fringe) [MAC_OS]: Get rif from selected_frame. | |
9771 | ||
9772 | * keyboard.c (restore_kboard_configuration): Only define when | |
9773 | MULTI_KBOARD defined. | |
9774 | ||
35277b03 | 9775 | * makefile.w32-in: Update dependancies from Makefile.in. |
8d9cc0b7 MB |
9776 | (OBJ1): Add terminal.$(O) |
9777 | ||
b8866860 SM |
9778 | * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: |
9779 | Don't define function body. | |
8d9cc0b7 MB |
9780 | (init_tty) [WINDOWSNT]: Use selected_frame for initializing. |
9781 | ||
9782 | * termhooks.h (display_info) [WINDOWSNT]: Add w32. | |
9783 | ||
9784 | * w32.c (request_sigio, unrequest_sigio): Remove. | |
9785 | ||
9786 | * w32console.c (w32con_move_cursor, w32con_clear_to_end) | |
9787 | (w32con_clear_frame, w32con_clear_end_of_line) | |
9788 | (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) | |
9789 | (w32con_delete_glyphs, w32con_set_terminal_window) | |
9790 | (scroll_line, w32_sys_ring_bell): Add frame arg. | |
b8866860 SM |
9791 | (w32con_set_terminal_modes, w32con_reset_terminal_modes): |
9792 | Add terminal arg. | |
8d9cc0b7 MB |
9793 | (PICK_FRAME): Remove. |
9794 | (w32con_write_glyphs): Use frame specific terminal coding. | |
9795 | (one_and_only_w32cons): New global variable. | |
9796 | (initialize_w32_display): Use it for storing hooks. | |
9797 | (create_w32cons_output): New function. | |
9798 | ||
9799 | * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first | |
9800 | arg a frame. | |
9801 | ||
b8866860 SM |
9802 | * w32fns.c (x_create_tip_frame): Set terminal and ref count. |
9803 | Set window_system. | |
8d9cc0b7 MB |
9804 | (x_set_tool_bar_lines): Don't use updating_frame. |
9805 | (Fx_create_frame): Set terminal and ref count. | |
9806 | (Fx_open_connection): Remove window-system check. | |
9807 | ||
9808 | * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
9809 | ||
9810 | * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor. | |
9811 | (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg. | |
9812 | (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines): | |
9813 | Add frame arg. | |
9814 | (x_delete_terminal, w32_create_terminal): New functions. | |
9815 | (w32_term_init): Create a terminal. | |
9816 | (w32_initialize): Move terminal specific initialization to | |
9817 | w32_create_terminal. | |
9818 | ||
b8866860 | 9819 | * w32term.h (x_output): Remove foreground_pixel and background_pixel. |
8d9cc0b7 MB |
9820 | (w32_clear_rect, w32_clear_area): Use background from frame. |
9821 | (w32_display_info): Add terminal. | |
9822 | (w32_sys_ring_bell, x_delete_display): Declare here. | |
9823 | ||
9824 | * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. | |
9825 | ||
9826 | * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. | |
9827 | ||
9828 | 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change) | |
9829 | ||
9830 | * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): | |
9831 | Fix get_named_tty calls for the controlling tty. | |
9832 | ||
9833 | 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) | |
9834 | ||
9835 | * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. | |
9836 | ||
9837 | 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) | |
9838 | ||
9839 | * term.c (tty_insert_glyphs): Add missing first parameter. | |
9840 | ||
880820fe | 9841 | 2007-08-29 Károly Lőrentey <karoly@lorentey.hu> |
8d9cc0b7 | 9842 | |
b8866860 SM |
9843 | * buffer.c (Fbuffer_list, Fbury_buffer): |
9844 | Take frame->buried_buffer_list into account. | |
8d9cc0b7 MB |
9845 | |
9846 | * cm.c (current_tty): New variable, for cmputc(). | |
9847 | (cmputc): Use it. | |
9848 | (cmcheckmagic): Add tty parameter, look up terminal streams there. | |
9849 | (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). | |
b8866860 SM |
9850 | (cmgoto): Add tty parameter. Pass it on to calccost(). |
9851 | Use emacs_tputs() instead of tputs(). | |
8d9cc0b7 MB |
9852 | |
9853 | * cm.h (emacs_tputs): New macro to set current_tty, and then call | |
9854 | tputs(). | |
9855 | (current_tty): New variable, for cmputc(). | |
9856 | (cmcheckmagic, cmputc, cmgoto): Add prototypes. | |
9857 | ||
9858 | * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. | |
9859 | (internal_condition_case, internal_condition_case_1) | |
9860 | (internal_condition_case_2): Don't abort when x_catching_errors. | |
9861 | ||
9862 | * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals. | |
9863 | (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to | |
9864 | prevent crashes caused by bogus longjmps in read_char. | |
9865 | ||
9866 | * keymap.h (Fset_keymap_parent): Add EXFUN. | |
9867 | ||
9868 | * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
9869 | * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): | |
9870 | Remove redundant definition. | |
9871 | ||
b8866860 SM |
9872 | * macfns.c (x_set_mouse_color, x_make_gc): |
9873 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 | 9874 | |
b8866860 SM |
9875 | * w32term.c (x_free_frame_resources): |
9876 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
9877 | (w32_initialize): Use the accessor macros for terminal characteristics. |
9878 | ||
9879 | * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. | |
9880 | Use the accessor macros for terminal characteristics. | |
9881 | * msdos.c (internal_terminal_init): Use the accessor macros for | |
9882 | terminal characteristics. | |
b8866860 SM |
9883 | (ScreenVisualBell, internal_terminal_init): |
9884 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
9885 | |
9886 | * termopts.h (no_redraw_on_reenter): Declare. | |
9887 | ||
9888 | * alloc.c (emacs_blocked_malloc): Disable mallopt call. | |
03f06e5c | 9889 | (mark_terminals, mark_ttys): Declare. |
8d9cc0b7 | 9890 | (Fgarbage_collect): Call them. |
03f06e5c | 9891 | (mark_object): Mark buried_buffer_list. |
8d9cc0b7 MB |
9892 | |
9893 | * prefix-args.c: Include stdlib.h for exit. | |
9894 | ||
9895 | * syssignal.h: Add comment. | |
9896 | ||
9897 | * indent.c: Include stdio.h. | |
9898 | ||
9899 | * window.h (Vinitial_window_system): Declare. | |
9900 | (Vwindow_system): Delete declaration. | |
9901 | ||
9902 | * fontset.c (Finternal_char_font): Use FRAME_RIF. | |
9903 | ||
9904 | * image.c (lookup_image): Don't initialize `c' until the xasserts | |
9905 | have been run. | |
9906 | ||
9907 | * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and | |
9908 | FRAME_FOREGROUND_PIXEL. | |
9909 | ||
9910 | * print.c (print_preprocess): Don't lose print_depth levels while | |
9911 | iterating. | |
9912 | ||
b8866860 SM |
9913 | * widget.c (update_from_various_frame_slots): |
9914 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
9915 | |
9916 | * window.c (set_window_buffer): Don't call clear_mouse_face on tty | |
9917 | frames. | |
9918 | (window_internal_height): Remove bogus make_number call. | |
b8866860 | 9919 | (init_window_once): Call make_terminal_frame with two zero parameters. |
8d9cc0b7 MB |
9920 | |
9921 | * fileio.c (Fread_file_name): Update comment. | |
9922 | ||
b8866860 SM |
9923 | * callint.c (Fcall_interactively): |
9924 | Use temporarily_switch_to_single_kboard instead of single_kboard_state. | |
8d9cc0b7 MB |
9925 | Make sure it is correctly unwound. |
9926 | ||
9927 | * xsmfns.c (x_session_close): New function. | |
9928 | ||
03f06e5c | 9929 | * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): |
8d9cc0b7 MB |
9930 | Delete declarations. |
9931 | ||
9932 | * xterm.h: Remove declaration for x_fully_uncatch_errors. | |
9933 | (x_output): Remove background_pixel and foreground_pixel fields. | |
03f06e5c | 9934 | (x_display_info): Add new field TERMINAL. Remove KBOARD field. |
8d9cc0b7 MB |
9935 | (x_delete_device): |
9936 | (x_session_close): Declare. | |
9937 | ||
9938 | * lread.c: Include setjmp.h. Update declaration of `read_char'. | |
9939 | (read_filtered_event): Call `read_char' with a local | |
9940 | `wrong_kboard_jmpbuf'. | |
9941 | ||
b8866860 SM |
9942 | * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. |
9943 | Don't call single_kboard_state. Use FRAME_RIF. | |
8d9cc0b7 MB |
9944 | |
9945 | * process.c (Fmake_network_process): Don't unrequest_sigio on modern | |
9946 | systems. | |
9947 | ||
b8866860 | 9948 | * lisp.h (set_process_environment): Rename to `set_global_environment'. |
03f06e5c | 9949 | (Fframe_with_environment, Fset_input_meta_mode) |
8d9cc0b7 | 9950 | (Fset_quit_char): EXFUN. |
03f06e5c | 9951 | (x_create_device, tty_output, terminal, tty_display_info): Declare. |
8d9cc0b7 MB |
9952 | (init_sys_modes, reset_sys_modes): Update prototypes. |
9953 | (init_all_sys_modes, reset_all_sys_modes): New prototypes. | |
9954 | ||
b8866860 SM |
9955 | * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, |
9956 | Vlocal_key_translation_map, and Vkeyboard_translate_table. | |
03f06e5c | 9957 | (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): |
8d9cc0b7 | 9958 | Delete declarations. |
03f06e5c JB |
9959 | (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) |
9960 | (temporarily_switch_to_single_kboard, tty_read_avail_input): | |
8d9cc0b7 MB |
9961 | New declarations. |
9962 | ||
9963 | * emacs.c (main): Don't call init_sys_modes(), the new term_init() | |
9964 | already does that during init_display(). Call syms_of_keymap | |
b8866860 SM |
9965 | before syms_of_keyboard. Call `syms_of_terminal'. |
9966 | Call set_initial_environment, not set_process_environment. | |
8d9cc0b7 MB |
9967 | (shut_down_emacs): Call reset_all_sys_modes() instead of |
9968 | reset_sys_modes(). | |
9969 | ||
9970 | * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. | |
03f06e5c JB |
9971 | (internal_resolve_face_name, resolve_face_name_error): New functions. |
9972 | (resolve_face_name): Protect against loops and errors thrown by Fget. | |
9973 | (realize_default_face): Don't use FRAME_FONT unless frame is an X frame. | |
8d9cc0b7 MB |
9974 | (Ftty_supports_face_attributes_p): Update tty_capable_p call. |
9975 | ||
9976 | * scroll.c: Replace CURTTY() with local variables throughout the | |
9977 | file (where applicable). | |
9978 | (calculate_scrolling, calculate_direct_scrolling) | |
9979 | (scrolling_1, scroll_cost): Use the accessor macros for terminal | |
9980 | characteristics. | |
9981 | ||
9982 | * keymap.c (Vfunction_key_map): Remove. | |
b8866860 | 9983 | (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. |
8d9cc0b7 MB |
9984 | (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. |
9985 | (Vkey_translation_map): Remove. | |
9986 | (syms_of_keymap): Remove DEFVAR for key-translation-map. | |
9987 | (Fdescribe_buffer_bindings): | |
9988 | (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): | |
9989 | Update for terminal-local key-translation-map. | |
9990 | ||
9991 | * Makefile.in (callproc.o): Update dependencies. | |
9992 | (lisp, shortlisp): Add termdev.elc. | |
9993 | (obj): Add terminal.o. | |
9994 | (terminal.o): Add dependencies. | |
9995 | [HAVE_CARBON]: Make terminal.o depend on macgui.h. | |
9996 | (data.o, fns.o): Add termhooks.h dependency. | |
9997 | (SOME_MACHINE_LISP): Add dnd.elc. | |
9998 | (minibuf.o): Fix typo. | |
9999 | Update dependencies. | |
10000 | ||
10001 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
10002 | (find_symbol_value): Use the selected frame's keyboard, not | |
10003 | current_kboard. | |
10004 | ||
10005 | * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of | |
10006 | Vwindow_system. | |
10007 | ||
10008 | * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from | |
10009 | Fmenu_bar_open. | |
10010 | (syms_of_xmenu): Update defsubr. | |
10011 | (mouse_position_for_popup, Fx_popup_menu) | |
10012 | (Fx_popup_dialog, x_activate_menubar, update_frame_menubar) | |
10013 | (set_frame_menubar, free_frame_menubar) | |
10014 | (create_and_show_popup_menu, xmenu_show, ) | |
10015 | (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not | |
10016 | an X frame. | |
10017 | ||
10018 | * xselect.c (x_own_selection): Abort if not an X frame. | |
10019 | (some_frame_on_display): Check if it is an X frame. | |
10020 | (x_handle_selection_clear): Deal with MULTI_KBOARD. | |
10021 | ||
10022 | * coding.c: Include frame.h and termhooks.h. | |
03f06e5c | 10023 | (terminal_coding, keyboard_coding): Delete. |
8d9cc0b7 MB |
10024 | (Fset_terminal_coding_system_internal): |
10025 | (Fset_keyboard_coding_system_internal): | |
10026 | (Fkeyboard_coding_system): | |
03f06e5c JB |
10027 | (Fterminal_coding_system): Add a terminal parameter. |
10028 | Get terminal_coding from the terminal. | |
8d9cc0b7 MB |
10029 | (init_coding_once): Don't call setup_coding_system here. |
10030 | ||
10031 | * dispextern.h (set_scroll_region, turn_off_insert) | |
10032 | (turn_off_highlight, background_highlight, clear_end_of_line_raw) | |
10033 | (tty_clear_end_of_line, tty_setup_colors) | |
03f06e5c | 10034 | (delete_tty, updating_frame) |
8d9cc0b7 MB |
10035 | (produce_special_glyphs, produce_glyphs, write_glyphs) |
10036 | (insert_glyphs): Remove. | |
10037 | (raw_cursor_to, clear_to_end, tty_turn_off_insert) | |
03f06e5c | 10038 | (tty_turn_off_highlight, get_tty_size): Add declaration. |
b8866860 | 10039 | (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. |
8d9cc0b7 MB |
10040 | |
10041 | * frame.h (enum output_method): Add output_initial. | |
10042 | (struct x_output): Delete. | |
b8866860 SM |
10043 | (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
10044 | Access foreground_pixel and background_pixel directly from the frame. | |
8d9cc0b7 MB |
10045 | (tty_display): Delete. |
10046 | (struct frame): Add buried_buffer_list, foreground_pixel, | |
03f06e5c | 10047 | background_pixel and terminal. Delete kboard |
8d9cc0b7 MB |
10048 | (union output_data): Add tty. |
10049 | (FRAME_KBOARD): Get the kboard from the terminal. | |
10050 | (FRAME_INITIAL_P): New macro. | |
10051 | (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) | |
10052 | (Qterm_environment_variable, Qdisplay_environment_variable) | |
b8866860 SM |
10053 | (make_terminal_frame, Qburied_buffer_list, Qwindow_system): |
10054 | New declarations. | |
8d9cc0b7 MB |
10055 | |
10056 | * termchar.h (tty_output, tty_display_info): New structures. | |
10057 | (tty_list): Declare. | |
10058 | (FRAME_TTY, CURTTY): New macros. | |
10059 | (must_write_spaces, min_padding_speed, fast_clear_end_of_line) | |
10060 | (line_ins_del_ok, char_ins_del_ok, scroll_region_ok) | |
10061 | (scroll_region_cost, memory_below_frame, fast_clear_end_of_line) | |
10062 | (dont_calculate_costs, no_redraw_on_reenter): Remove declarations. | |
10063 | ||
10064 | * callproc.c: Include frame.h and termhooks.h, for terminal | |
10065 | parameters. | |
10066 | (add_env): New function. | |
10067 | (child_setup): Use it. | |
b8866860 | 10068 | (child_setup, getenv_internal): Handle the new Vprocess_environment. |
8d9cc0b7 MB |
10069 | (getenv_internal): Fix get_terminal_param call. |
10070 | (Fgetenv_internal, egetenv): Update doc. | |
10071 | (syms_of_callproc): Initialize Vprocess_environment to nil. | |
03f06e5c | 10072 | Register and initialize them. Remove obsolete defvars. Update doc |
8d9cc0b7 MB |
10073 | strings. |
10074 | (child_setup): Handle Vlocal_environment_variables. | |
b8866860 SM |
10075 | (getenv_internal): Add terminal parameter. |
10076 | Handle Vlocal_environment_variables. | |
8d9cc0b7 MB |
10077 | (Fgetenv_internal): Add terminal parameter. |
10078 | (child_setup, getenv_internal, Fgetenv_internal): Store the local | |
b8866860 | 10079 | environment in a frame (not terminal) parameter. Update doc strings. |
8d9cc0b7 MB |
10080 | (set_initial_environment): Rename from set_global_environment. |
10081 | Store Emacs environment in initial frame parameter. | |
10082 | ||
10083 | * xdisp.c (redisplay_internal): Update references to | |
10084 | `previous_terminal_frame'. | |
10085 | (display_mode_line, Fformat_mode_line): Replace calls to | |
10086 | `push_frame_kboard' with `push_kboard'. | |
10087 | (get_glyph_string_clip_rects): Add extra parentheses and | |
10088 | braces to prevent compiler warnings. | |
10089 | (calc_pixel_width_or_height): Add xassert to check that the | |
10090 | frame is alive. Don't call `lookup_image' on a termcap frame. | |
10091 | (message2_nolog, message3_nolog, redisplay_internal) | |
10092 | (set_vertical_scroll_bar, redisplay_window, check_x_display_info) | |
10093 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background) | |
10094 | (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) | |
10095 | (Fx_display_pixel_width, Fx_display_pixel_height) | |
10096 | (Fx_display_planes, Fx_display_color_cells) | |
10097 | (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) | |
10098 | (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) | |
10099 | (Fx_display_backing_store, Fx_display_visual_class) | |
10100 | (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): | |
97ddc760 | 10101 | Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. |
8d9cc0b7 MB |
10102 | |
10103 | * xfns.c (x_set_foreground_color x_set_background_color) | |
b8866860 SM |
10104 | (x_set_mouse_color, x_set_cursor_color, x_make_gc): |
10105 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
10106 | (Fx_create_frame, x_create_tip_frame, build_string, x_window) |
10107 | (Fx_create_frame, x_create_tip_frame): Don't create frames on a | |
10108 | terminal that is being deleted. | |
10109 | (Fx_create_frame): Use `store_frame_param' to set `window-system' | |
b8866860 | 10110 | frame parameter, and make sure it overrides any user-supplied setting. |
8d9cc0b7 MB |
10111 | (Fx_close_connection, Fx_synchronize): Unify argument names with |
10112 | the rest of the DEFUNs. | |
10113 | ||
10114 | * dispnew.c (Fsend_string_to_terminal): Update call to | |
10115 | `get_tty_terminal'. | |
10116 | (Fredraw_frame, Fsend_string_to_terminal) | |
2d33f506 | 10117 | (Fsend_string_to_terminal, init_display): Use FRAME_RIF, |
8d9cc0b7 MB |
10118 | FRAME_TERMCAP_P and FRAME_TTY. |
10119 | (window_change_signal): Don't believe width/height values that are | |
10120 | impossibly small. | |
10121 | (Vinitial_window_system): Rename from Vwindow_system. | |
10122 | (termscript, Wcm, rif): Delete. | |
10123 | ||
10124 | * termhooks.h (struct terminal): New struct containing the | |
10125 | previously global text display hooks and new members NAME, | |
10126 | DELETED and PARAM_ALIST. | |
10127 | (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING) | |
10128 | (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P) | |
10129 | (FRAME_RIF): New macros. | |
10130 | (get_terminal_param, get_device): New declarations. | |
10131 | (termscript): Delete declaration. | |
10132 | ||
10133 | * xterm.c (x_initialize): Use Fset_input_interrupt_mode. | |
10134 | (XTflash, x_free_frame_resources, x_scroll_bar_create) | |
10135 | (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and | |
10136 | FRAME_FOREGROUND_PIXEL. | |
10137 | (x_fully_uncatch_errors): Disable definition. | |
10138 | (x_scroll_bar_expose): Fix reference to foreground pixel. | |
10139 | (XTread_socket): Disable loop on all X displays. | |
10140 | (x_delete_terminal): Don't set terminal->deleted and let | |
10141 | delete_terminal delete the frames on the terminal. | |
10142 | (x_delete_display): Doc update to reflect changes in | |
10143 | delete_terminal. | |
10144 | (x_display_info) <terminal>: Move member earlier in the struct. | |
8d9cc0b7 MB |
10145 | (deleting_tty): Remove old variable. |
10146 | (Fsuspend_tty): Call clear_tty_hooks. | |
10147 | (Fresume_tty, init_tty): Call set_tty_hooks. | |
8d9cc0b7 MB |
10148 | (Ftty_display_color_p, Ftty_display_color_cells): Don't throw |
10149 | errors on X frames. | |
10150 | (x_catch_errors_unwind): Abort if x_error_message is NULL. | |
10151 | (handle_one_xevent): Initialize `f' to NULL. | |
9cab96b0 | 10152 | (x_delete_terminal, x_create_terminal): New functions. |
8d9cc0b7 MB |
10153 | (XTset_terminal_modes, XTreset_terminal_modes) |
10154 | (XTread_socket, x_connection_closed, x_term_init) | |
10155 | (x_term_init, x_delete_display): Add terminal parameter. | |
10156 | (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary | |
10157 | X connections. | |
10158 | ||
bf380f53 GM |
10159 | * frame.c: Include termchar.h. |
10160 | (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type) | |
10161 | (Qwindow_system, Qenvironment, Qterm_environment_variable) | |
10162 | (Qdisplay_environment_variable): New vars. | |
10163 | (Fframep): Deal with output_initial. | |
10164 | (Fframe-live-p): Doc fix. | |
10165 | (Fwindow-system): New function. | |
8d9cc0b7 MB |
10166 | (x_set_screen_gamma, store_frame_param): Fix compilation errors. |
10167 | (make_terminal_frame): Don't create frames on a terminal that is | |
bf380f53 | 10168 | being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
b8866860 | 10169 | (store_frame_param): Check for found_for_frame before calling XFRAME. |
8d9cc0b7 MB |
10170 | (Fmake_terminal_frame): Handle NULL tty names correctly. |
10171 | (syms_of_frame): Enhance doc string of `default-frame-alist'. | |
bf380f53 GM |
10172 | (Fdelete_frame): Remove unused variable `count'. Don't allow other |
10173 | frames to refer to a deleted frame in their 'environment parameter. | |
8d9cc0b7 | 10174 | (Fframe_with_environment): New function. |
b8866860 | 10175 | (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. |
8d9cc0b7 MB |
10176 | (get_future_frame_param): New function. |
10177 | (Fmake_terminal_frame): Use it. | |
2d33f506 | 10178 | (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF. |
8d9cc0b7 MB |
10179 | |
10180 | * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. | |
10181 | * sysdep.c (reset_sys_modes): Update for renames. | |
10182 | ||
10183 | * keyboard.c (tty_read_avail_input): New function. | |
03f06e5c | 10184 | (Fset_input_interrupt_mode, Fset_output_flow_control): New functions. |
8d9cc0b7 MB |
10185 | (syms_of_keyboard): Defsubr them. |
10186 | (Fset_input_meta_mode, Fset_quit_char): New functions. | |
10187 | (Fset_input_mode): Split to above functions. | |
10188 | ||
10189 | (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf | |
10190 | parameter. Use it in call to `read_char'. | |
b8866860 SM |
10191 | (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. |
10192 | Set wrong_kboard_jmpbuf correctly in recursive calls. | |
10193 | Use current_kboard to access Vkeyboard_translate_table. | |
10194 | Enhance comment before extra longjmp to wrong_kboard_jmpbuf. | |
10195 | Add wrong_kboard_jmpbuf parameter to allow for recursive calls. | |
10196 | Update longjmp invocations. Remember the original current_kboard, | |
10197 | and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel | |
10198 | changes it. Comment out unnecessary calls to | |
10199 | `record_single_kboard_state' and `any_kboard_state'. | |
10200 | Update recursive calls. | |
8d9cc0b7 MB |
10201 | (wrong_kboard_jmpbuf): Remove global variable. |
10202 | (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. | |
10203 | Handle deleted interrupted_kboards correctly; that is a legal | |
10204 | case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp | |
b8866860 | 10205 | and read_char calls. Abort if interrupted_kboard died in read_char. |
8d9cc0b7 MB |
10206 | (any_kboard_state, single_kboard_state) |
10207 | (push_frame_kboard): Remove function. | |
10208 | (pop_kboard): Switch out of single_kboard mode if the kboard has | |
03f06e5c JB |
10209 | been deleted. Remove unused variable. Help debugging by not |
10210 | changing current_kboard unnecessarily. Set current_kboard to the | |
8d9cc0b7 MB |
10211 | kboard of the selected frame when the stored kboard object has |
10212 | been deleted before pop_kboard. | |
10213 | (temporarily_switch_to_single_kboard): Change first parameter to a | |
10214 | frame pointer. Throw an error when caller wants to change kboards | |
10215 | while in single_kboard mode. Don't push_kboard if we weren't in | |
10216 | single kboard state. Don't pop_kboard if we popped into any | |
10217 | kboard state. | |
10218 | (restore_kboard_configuration): Abort if pop_kboard changed the | |
03f06e5c | 10219 | kboard in single_kboard mode. Call pop_kboard only after setting |
8d9cc0b7 MB |
10220 | up single_kboard mode. |
10221 | (Frecursive_edit): Switch to single_kboard mode only in nested | |
10222 | command loops. | |
b8866860 SM |
10223 | (cmd_error, command_loop, command_loop_1, timer_check): |
10224 | Comment out unnecessary call to `any_kboard_state' and | |
8d9cc0b7 MB |
10225 | `record_single_kboard_state'. |
10226 | (delete_kboard): Exit single_kboard mode if we have just deleted | |
03f06e5c | 10227 | that kboard. Use FRAME_KBOARD. |
8d9cc0b7 MB |
10228 | (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not |
10229 | `fatal_error_signal'. | |
10230 | (record_single_kboard_state): Don't push_kboard if we weren't in | |
10231 | single kboard state. Don't pop_kboard if we popped into any | |
10232 | kboard state. | |
10233 | (push_frame_kboard): Rename to push_kboard. | |
10234 | (kbd_buffer_get_event): Use FRAME_TERMINAL. | |
10235 | (read_avail_input): Read input from all terminals. | |
10236 | (mark_kboards): Also mark Vkeyboard_translate_table. | |
10237 | (kbd_buffer_store_event_hold): Simplify condition. | |
10238 | (read_key_sequence): Reinitialize fkey and keytran at each replay. | |
10239 | (Vkeyboard_translate_table): Move to struct kboard. | |
10240 | (init_kboard): Initialize Vkeyboard_translate_table. | |
10241 | (syms_of_keyboard): Use DEFVAR_KBOARD to define | |
10242 | Vkeyboard_translate_table. Update doc strings. Update docs of | |
10243 | local-function-key-map and function-key-map. | |
10244 | ||
10245 | * terminal.c: New file. | |
10246 | ||
10247 | * term.c: Include errno.h. | |
10248 | (Vring_bell_function, device_list, initial_device) | |
10249 | (next_device_id, ring_bell, update_begin, update_end) | |
10250 | (set_terminal_window, cursor_to, raw_cursor_to) | |
10251 | (clear_to_end, clear_frame, clear_end_of_line) | |
10252 | (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) | |
10253 | (Fdisplay_name, create_device, delete_device): Move to terminal.c. | |
10254 | (syms_of_term): Move their initialization to terminal.c. | |
10255 | (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p) | |
10256 | (Ftty_display_color_cells) | |
10257 | (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) | |
9cab96b0 | 10258 | (clear_tty_hooks, set_tty_hooks) |
8d9cc0b7 MB |
10259 | (init_tty, maybe_fatal): New functions. |
10260 | (Ftty_type): Return nil if terminal is not on a tty instead of | |
10261 | throwing an error. Doc update. | |
10262 | (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>: | |
03f06e5c | 10263 | Doc update. Initialize new subrs and variables. |
8d9cc0b7 MB |
10264 | (delete_tty): Use terminal->deleted. |
10265 | (tty_set_terminal_modes): Rename from set_terminal_modes. | |
10266 | (tty_reset_terminal_modes): Rename from reset_terminal_modes. | |
10267 | (set_scroll_region): Rename to `tty_set_scroll_region'. | |
10268 | (turn_on_insert): Rename to `tty_turn_on_insert'. | |
10269 | (turn_off_insert): Rename to `tty_turn_off_insert'. | |
10270 | (turn_off_highlight): Rename to `tty_turn_off_highlight'. | |
10271 | (turn_on_highlight): Rename to `tty_turn_on_highlight'. | |
10272 | (toggle_highligh): Rename to `tty_toggle_highlight'. | |
10273 | (background_highlight): Rename to `tty_background_highlight'. | |
10274 | (highlight_if_desired): Rename to `tty_highlight_if_desired'. | |
10275 | (tty_ring_bell, tty_update_end, tty_set_terminal_window) | |
10276 | (tty_set_scroll_region, tty_background_highlight) | |
10277 | (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) | |
10278 | (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) | |
10279 | (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) | |
10280 | (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty): | |
10281 | Add static modifier. | |
10282 | (tty_reset_terminal_modes, tty_set_terminal_window) | |
10283 | (tty_set_scroll_region, tty_background_highlight) | |
10284 | (tty_highlight_if_desired, tty_cursor_to) | |
10285 | (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) | |
10286 | (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) | |
10287 | (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for | |
10288 | renames. | |
10289 | ||
880820fe | 10290 | 2007-08-28 Jan Djärv <jan.h.d@swipnet.se> |
cf0590c4 JD |
10291 | |
10292 | * keyboard.c: Qrtl is new. | |
10293 | (parse_tool_bar_item): Handle :rtl keyword. | |
10294 | (syms_of_keyboard): Intern :rtl keyword. | |
10295 | ||
10296 | * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. | |
10297 | ||
10298 | * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED | |
10299 | so no Lisp code is executed. | |
10300 | (file_for_image, find_rtl_image): New functions. | |
10301 | (xg_get_image_for_pixmap): Use file_for_image | |
10302 | (update_frame_tool_bar): If direction is RTL, use RTL image if | |
10303 | defined. Use Gtk stock images if defined. | |
10304 | ||
83cc8d35 YM |
10305 | 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10306 | ||
10307 | * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle | |
10308 | for nonexistent or zero-width glyph in composition glyph. | |
10309 | ||
e60c4e15 SM |
10310 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> |
10311 | ||
d7e2a28f SM |
10312 | * m/amdx86-64.h: Redirect to intel386.h if compiling for i386. |
10313 | ||
e60c4e15 SM |
10314 | * xdisp.c (Finvisible_p): New function. |
10315 | (syms_of_xdisp): defsubr it. | |
10316 | ||
ee163e6d JB |
10317 | 2007-08-24 Juanma Barranquero <lekktu@gmail.com> |
10318 | ||
10319 | * image.c (syms_of_image) <image-library-alist, cross-disabled-images>: | |
10320 | Doc fixes. | |
10321 | ||
90fa408d YM |
10322 | 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10323 | ||
35277b03 | 10324 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. |
90fa408d | 10325 | |
cac4219c MR |
10326 | 2007-08-24 Martin Rudalics <rudalics@gmx.at> |
10327 | ||
10328 | * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell | |
10329 | whether decoding has modified buffer contents. | |
10330 | ||
5fc9fdeb JR |
10331 | 2007-08-24 Jason Rumney <jasonr@gnu.org> |
10332 | ||
10333 | * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG. | |
10334 | (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols. | |
10335 | (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them. | |
10336 | (init_svg_functions) [HAVE_NTGUI]: New function. | |
10337 | (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines. | |
10338 | (svg_load_image): Use them. | |
10339 | (svg_load_image) [HAVE_NTGUI]: Implement background. | |
10340 | ||
93b23406 YM |
10341 | 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10342 | ||
10343 | * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables. | |
10344 | (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@. | |
10345 | (LIBX): Remove @RSVG_LIBS@. | |
10346 | (LIBES): Add $(RSVG_LIBS). | |
10347 | ||
10348 | * image.c (svg_load_image): Blend with specified background if exists. | |
10349 | Use IMAGE_BACKGROUND. Add Mac OS Support. | |
10350 | ||
10351 | * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. | |
10352 | (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: | |
10353 | Remove macros. | |
10354 | [MAC_OSX] (socket_callback): Do nothing. | |
10355 | [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of | |
10356 | ReceiveNextEvent. | |
10357 | [MAC_OSX] (sys_select): Likewise. Don't set context as argument to | |
10358 | socket_callback. | |
10359 | (mac_wakeup_from_rne) [MAC_OSX]: Do nothing. | |
10360 | ||
2467875c GM |
10361 | 2007-08-22 Glenn Morris <rgm@gnu.org> |
10362 | ||
ff8da443 | 10363 | * image.c (x_find_image_file): Search in etc/images/ rather than etc/. |
2467875c | 10364 | |
4ab27a43 GM |
10365 | 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net> |
10366 | ||
10367 | * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS. | |
ff8da443 | 10368 | |
666e0eda GM |
10369 | * image.c: Add support for SVG images. Some additional comments |
10370 | by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined: | |
10371 | (svg_image_p): New function to test for SVG image. | |
10372 | (svg_load): New function to load SVG image. | |
10373 | (svg_load_image): New function, helper for svg_load. | |
10374 | (Qsvg): New Lisp_object. | |
10375 | (svg_keyword_index): New enum. | |
10376 | (svg_format): New static `image_keyword' struct. | |
10377 | (svg_type): New static `image_type' struct. | |
10378 | (librsvg/rsvg.h): Include it. | |
4ab27a43 | 10379 | |
b636b4c1 SM |
10380 | 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> |
10381 | ||
10382 | * lread.c (load_warn_old_style_backquotes): Fix up array size typo. | |
10383 | ||
9ecb827b SM |
10384 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
10385 | ||
1d064697 SM |
10386 | * lread.c (Qold_style_backquotes): New var. |
10387 | (syms_of_lread): Init and staticpro it. | |
10388 | (load_warn_old_style_backquotes): New fun. | |
10389 | (Fload): Use them to warn about old style backquotes. | |
10390 | (end_of_file_error, Fload): Remove unused vars. | |
10391 | ||
5772ed4b SM |
10392 | * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. |
10393 | ||
9ecb827b | 10394 | * lread.c (Vold_style_backquotes): New var. |
5aa273b0 | 10395 | (syms_of_lread): Init and export it to Elisp. |
9ecb827b SM |
10396 | (read1): Set it when we find an old-style (back)quote. |
10397 | ||
32e1c7b1 JR |
10398 | 2007-08-22 Jason Rumney <jasonr@gnu.org> |
10399 | ||
10400 | * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. | |
10401 | ||
b8fa755b KY |
10402 | 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org> |
10403 | ||
10404 | * puresize.h (BASE_PURESIZE): Increase to 1140000. | |
10405 | ||
1283140e RS |
10406 | 2007-08-19 Richard Stallman <rms@gnu.org> |
10407 | ||
10408 | * eval.c (Ffunction, Fquote): Signal error if not 1 argument. | |
10409 | ||
2c4685ee AS |
10410 | 2007-08-19 Andreas Schwab <schwab@suse.de> |
10411 | ||
10412 | * alloc.c (pure): Round PURESIZE up. | |
10413 | ||
880820fe | 10414 | 2007-08-17 Jan Djärv <jan.h.d@swipnet.se> |
e8953ebf JD |
10415 | |
10416 | * xterm.c (handle_one_xevent): Remove check that mouse click is in | |
10417 | active frame. | |
10418 | ||
6e33efc4 RS |
10419 | 2007-08-16 Richard Stallman <rms@gnu.org> |
10420 | ||
10421 | * eval.c (Fcommandp): Add parens to clarify. | |
10422 | ||
10423 | * minibuf.c (Fall_completions): Use enum for type of table. | |
10424 | ||
10425 | * emacs.c (USAGE2): Improve text. | |
10426 | ||
fcf8ff2e GM |
10427 | 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> |
10428 | ||
5205ee62 GM |
10429 | * term.c (tty_default_color_capabilities): Declare static |
10430 | variables in file scope, to avoid HPUX compiler problem. | |
fcf8ff2e | 10431 | |
880820fe | 10432 | 2007-08-13 Jan Djärv <jan.h.d@swipnet.se> |
81d13a51 JD |
10433 | |
10434 | * gtkutil.c (update_frame_tool_bar): Use -1 as index | |
10435 | to gtk_toolbar_insert. | |
10436 | ||
4a181359 SM |
10437 | 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca> |
10438 | ||
1bc99c9c SM |
10439 | * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. |
10440 | ||
4a181359 SM |
10441 | * insdel.c (reset_var_on_error): New fun. |
10442 | (signal_before_change, signal_after_change): | |
10443 | Use it to reset (after|before)-change-functions to nil in case of error. | |
10444 | Bind inhibit-modification-hooks to t. | |
10445 | Don't bind (after|before)-change-functions to nil while they run. | |
10446 | ||
6c28435c YM |
10447 | 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10448 | ||
10449 | * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when | |
10450 | filling pixmap with stippled background. | |
10451 | ||
ad3b3e02 YM |
10452 | 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10453 | ||
10454 | * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): | |
10455 | Don't use invisible frame as parent window for repositioning. | |
10456 | ||
a22dec27 SM |
10457 | 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> |
10458 | ||
10459 | * print.c (new_backquote_output): Rename from old_backquote_output. | |
10460 | (print): Inverse its logic (according to its name) so as to match the | |
10461 | behavior of new_backquote_flag in lread.c. | |
10462 | ||
7b7d07bb YM |
10463 | 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10464 | ||
10465 | * gmalloc.c (posix_memalign): New function. | |
10466 | ||
10467 | * macterm.c (frame_highlight, frame_unhighlight): Don't call | |
10468 | ActivateControl/DeactivateControl here. | |
10469 | [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when | |
10470 | frame-notice-user-settings is non-nil. | |
10471 | [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter | |
10472 | for kEventParamFMFontStyle. | |
10473 | [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check | |
10474 | mac_pass_command_to_system and mac_pass_control_to_system here. | |
10475 | (XTread_socket): Call ActivateControl/DeactivateControl here. | |
10476 | (XTread_socket) [TARGET_API_MAC_CARBON]: | |
10477 | Check mac_pass_command_to_system and mac_pass_control_to_system here. | |
f9426479 YM |
10478 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround |
10479 | for window repositioning. | |
7b7d07bb | 10480 | |
22e9fe24 GM |
10481 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
10482 | ||
10483 | * Replace `iff' in doc-strings and comments. | |
10484 | ||
ae494350 CY |
10485 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> |
10486 | ||
10487 | * xdisp.c (move_it_by_lines): Remove incorrect optimization. | |
10488 | ||
6f2528d8 MR |
10489 | 2007-08-07 Martin Rudalics <rudalics@gmx.at> |
10490 | ||
10491 | * fileio.c (Finsert_file_contents): Run format-decode and | |
10492 | after_insert_file_functions on entire buffer when REPLACE is | |
10493 | non-nil and inhibit modification_hooks and point_motion_hooks. | |
10494 | For consistency, run after_insert_file_functions iff something | |
10495 | got inserted. Move signal_after_change and update_compositions | |
10496 | after code running after_insert_file_functions. Make sure that | |
6b8e474c | 10497 | undo_list doesn't record intermediate steps of the decoding process. |
6f2528d8 | 10498 | |
3ceeb306 YM |
10499 | 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10500 | ||
10501 | * emacs.c (main) | |
10502 | [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | |
10503 | Call malloc_enable_thread on interactive startup. | |
10504 | ||
10505 | * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. | |
7b7d07bb YM |
10506 | (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) |
10507 | [USE_PTHREAD]: Conditionalize with it. | |
3ceeb306 YM |
10508 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) |
10509 | (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: | |
10510 | New functions. | |
10511 | ||
ca5e6fd5 CY |
10512 | 2007-08-06 Chong Yidong <cyd@stupidchicken.com> |
10513 | ||
32bfce5d CY |
10514 | * xdisp.c (redisplay_window): When restoring original buffer |
10515 | position, make sure it is still valid. | |
10516 | ||
ca5e6fd5 CY |
10517 | * image.c (png_load): Ignore png-supplied background color. |
10518 | ||
a5b11587 YM |
10519 | 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10520 | ||
10521 | * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. | |
10522 | Use kCFAbsoluteTimeIntervalSince1970. | |
10523 | ||
10524 | * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: | |
10525 | New variable. | |
10526 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog | |
10527 | event loop should be quit. | |
10528 | [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: | |
10529 | Quit dialog event loop if quit_dialog_event_loop is set. | |
10530 | ||
10531 | * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h. | |
10532 | (Selection): New typedef. Use instead of ScrapRef. | |
10533 | (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol. | |
10534 | (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p. | |
10535 | (mac_clear_selection): Rename from clear_scrap. | |
10536 | (get_flavor_type_from_symbol): New argument SEL and subsume function of | |
ff8da443 | 10537 | scrap_has_target_type. All uses changed. |
a5b11587 YM |
10538 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) |
10539 | (mac_selection_has_target_p): New functions. | |
10540 | (mac_put_selection_value): Rename from put_scrap_string. | |
10541 | (mac_get_selection_value): Rename from get_scrap_string. | |
10542 | (mac_get_selection_target_list): Rename from get_scrap_target_type_list. | |
10543 | (put_scrap_private_timestamp, scrap_has_target_type) | |
10544 | (get_scrap_private_timestamp): Remove functions. | |
10545 | (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define. | |
10546 | (x_own_selection, x_get_local_selection): | |
10547 | Use mac_valid_selection_value_p. | |
10548 | (x_own_selection): Don't use put_scrap_private_timestamp. | |
10549 | Record OWNERSHIP-INFO into Vselection_alist instead. | |
10550 | (x_get_local_selection): Don't check type if request is local. | |
10551 | (Fx_selection_owner_p): Don't use get_scrap_private_timestamp. | |
10552 | Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead. | |
10553 | ||
880820fe | 10554 | 2007-08-04 Jan Djärv <jan.h.d@swipnet.se> |
991bde0d JD |
10555 | |
10556 | * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s, | |
10557 | add comment explaining why. | |
10558 | ||
73ff9d42 RS |
10559 | 2007-08-03 Richard Stallman <rms@gnu.org> |
10560 | ||
10561 | * fileio.c (Fvisited_file_modtime): Use make_time. | |
10562 | ||
54ed9a2d | 10563 | 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) |
cdf5c17a VJL |
10564 | |
10565 | * mac.c (init_mac_osx_environment): Adjust load-path on self-contained | |
10566 | build. | |
10567 | ||
65a9c8e2 SM |
10568 | 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> |
10569 | ||
10570 | * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT. | |
10571 | ||
c5925799 KY |
10572 | 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org> |
10573 | ||
10574 | * puresize.h (BASE_PURESIZE): Increase to 1130000. | |
10575 | ||
adef3de7 RS |
10576 | 2007-07-30 Richard Stallman <rms@gnu.org> |
10577 | ||
10578 | * lread.c (readevalloop, read1): Treat NBSP as whitespace. | |
10579 | ||
880820fe | 10580 | 2007-07-29 Jan Djärv <jan.h.d@swipnet.se> |
784c1472 JD |
10581 | |
10582 | * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. | |
10583 | ||
a10421a1 NR |
10584 | 2007-07-28 Nick Roberts <nickrob@snap.net.nz> |
10585 | ||
10586 | * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for | |
10587 | remote default-directory. | |
10588 | ||
10589 | * buffer.c (mode-line-format): Update doc string. | |
10590 | ||
0cb1ae20 YM |
10591 | 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10592 | ||
10593 | * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to | |
10594 | scroll bar gap. | |
10595 | (x_scroll_bar_create): Set bar->fringe_extended_p. | |
10596 | (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars | |
10597 | on frame edge. Check fringe background extension. Don't clear | |
10598 | extended fringe background area. | |
10599 | ||
10600 | * w32term.h (struct scroll_bar): New member fringe_extended_p. | |
10601 | (w32_fill_area): Enclose multiple statements with do ... while (0). | |
10602 | ||
10603 | * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: | |
10604 | Extend fringe background to scroll bar gap. | |
10605 | (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: | |
10606 | Set bar->fringe_extended_p. | |
10607 | (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
10608 | Put leftmost/rightmost scroll bars on frame edge. Check fringe | |
10609 | background extension. Don't clear extended fringe background area. | |
10610 | ||
10611 | * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
10612 | New member fringe_extended_p. | |
10613 | ||
cacc7b51 GM |
10614 | 2007-07-25 Glenn Morris <rgm@gnu.org> |
10615 | ||
10616 | * Relicense all FSF files to GPLv3 or later. | |
10617 | ||
10618 | * COPYING: Switch to GPLv3. | |
10619 | ||
89835619 SM |
10620 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> |
10621 | ||
c4f46926 SM |
10622 | * eval.c (Fcommandp): Pay attention to the `interactive-form' property. |
10623 | ||
10624 | * data.c (Finteractive_form): Check for the presence of an | |
10625 | `interactive-form' symbol property more thoroughly. | |
10626 | ||
10627 | * data.c (Finteractive_form): Use an `interactive-form' property if | |
89835619 SM |
10628 | present, analogous to the function-documentation property. |
10629 | ||
ee04257d JR |
10630 | 2007-07-24 Jason Rumney <jasonr@gnu.org> |
10631 | ||
10632 | * w32fns.c (x_real_positions): Get real position from OS instead of | |
10633 | calculating it. | |
10634 | ||
50624218 JR |
10635 | 2007-07-23 Jason Rumney <jasonr@gnu.org> |
10636 | ||
10637 | * filelock.c (current_lock_owner): Allow for @ sign in username. | |
10638 | ||
3650f60e NR |
10639 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> |
10640 | ||
10641 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for | |
10642 | remote default-directory. | |
10643 | ||
10644 | * buffer.c (mode-line-format): Describe above case in doc string. | |
10645 | ||
1e899515 | 10646 | 2007-07-20 Eli Zaretskii <eliz@gnu.org> |
b395d6e1 | 10647 | |
75be5258 EZ |
10648 | * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): |
10649 | Define if not defined. | |
10650 | ||
2b6e2f4d JR |
10651 | 2007-07-18 Jason Rumney <jasonr@gnu.org> |
10652 | ||
10653 | * w32proc.c (w32_executable_type): Handle 64 bit executables. | |
10654 | ||
23dacf80 JB |
10655 | 2007-07-18 Richard Stallman <rms@gnu.org> |
10656 | ||
10657 | * data.c (Fsetq_default): Doc fix. | |
10658 | ||
10659 | * eval.c (Fsetq): Doc fix. | |
10660 | ||
10661 | 2007-07-18 Juanma Barranquero <lekktu@gmail.com> | |
10662 | ||
10663 | * coding.c (Ffind_operation_coding_system): | |
10664 | * eval.c (For, Fand): Doc fixes. | |
880820fe | 10665 | Reported by Johan Bockgård. |
23dacf80 | 10666 | |
880820fe | 10667 | 2007-07-18 Jan Djärv <jan.h.d@swipnet.se> |
656de71a | 10668 | |
23dacf80 | 10669 | * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame. |
656de71a | 10670 | |
23dacf80 | 10671 | * xterm.h: Declare x_ewmh_activate_frame. |
656de71a JD |
10672 | |
10673 | * xterm.c (x_ewmh_activate_frame): New function. | |
10674 | (XTframe_raise_lower): Move code to x_ewmh_activate_frame. | |
10675 | ||
71ec17e6 MR |
10676 | 2007-07-17 Martin Rudalics <rudalics@gmx.at> |
10677 | ||
10678 | * window.c (Fdisplay_buffer): If largest or LRU window is the | |
10679 | only window, split it even if it is not eligible for splitting. | |
10680 | This restores the original behavior broken by the 2007-07-15 | |
10681 | change. | |
10682 | ||
e9818042 GM |
10683 | 2007-07-17 Glenn Morris <rgm@gnu.org> |
10684 | ||
10685 | * abbrev.c (abbrev_check_chars): New function. | |
6b8e474c SM |
10686 | (Fdefine_global_abbrev, Fdefine_mode_abbrev): |
10687 | Call abbrev_check_chars to check abbrev characters are word | |
e9818042 GM |
10688 | constituents. Doc fix. |
10689 | ||
e6fca843 SM |
10690 | 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca> |
10691 | ||
10692 | * process.c (Fstart_process, Fmake_network_process) | |
10693 | (read_process_output): Fix up last changes. | |
10694 | ||
b5d2b4ab EZ |
10695 | 2007-07-16 Eli Zaretskii <eliz@gnu.org> |
10696 | ||
10697 | * makefile.w32-in (clean): Don't delete *~. | |
10698 | ||
413a79ad AS |
10699 | 2007-07-16 Andreas Schwab <schwab@suse.de> |
10700 | ||
10701 | * window.c (Fdisplay_buffer): Use NILP. | |
10702 | (Fset_window_scroll_bars): Likewise. | |
10703 | ||
f1de8c77 MR |
10704 | 2007-07-15 Martin Rudalics <rudalics@gmx.at> |
10705 | ||
10706 | * window.c (window_min_size_2): New function. | |
10707 | (window_min_size_1, size_window, Fdisplay_buffer) | |
10708 | (Fsplit_window, adjust_window_trailing_edge): Use it to avoid | |
10709 | windows without mode- or header-lines when window-min-height is | |
10710 | too small. | |
10711 | (size_window): Reset nodelete_p after testing it, following an | |
10712 | earlier note by Kim F. Storm. | |
10713 | (display_buffer): Do not set split_height_threshold to twice the | |
10714 | value of window_min_height to avoid changing the value of a | |
10715 | customizable variable. Rather explicitly check whether the | |
10716 | height of the window that shall be splitted is at least as large | |
10717 | as split_height_threshold. | |
1af74d06 MB |
10718 | (Fwindow_full_width_p): New defun. |
10719 | (syms_of_window): Defsubr it. | |
d31053f9 | 10720 | |
1af74d06 | 10721 | * window.h: Add EXFUN for Fwindow_full_width_p. |
f1de8c77 | 10722 | |
5e1ab613 JR |
10723 | 2007-07-14 Jason Rumney <jasonr@gnu.org> |
10724 | ||
10725 | * process.c [WINDOWSNT]: Don't undefine AF_INET6. | |
10726 | ||
f01cbfdd RS |
10727 | 2007-07-14 Richard Stallman <rms@gnu.org> |
10728 | ||
10729 | * eval.c (maybe_call_debugger): New function. | |
10730 | (find_handler_clause): Use maybe_call_debugger. | |
10731 | Call it when the handler says `debug'. | |
10732 | Eliminate DEBUGGER_VALUE_PTR. | |
10733 | (Fsignal): Eliminate debugger_value. | |
10734 | (Qdebug): New variable. | |
10735 | (syms_of_eval): Initialize it. | |
10736 | ||
1bab435a JB |
10737 | 2007-07-14 Juanma Barranquero <lekktu@gmail.com> |
10738 | ||
10739 | * eval.c (Fprogn): | |
10740 | * keyboard.c (Ftrack_mouse): | |
10741 | * print.c (Fwith_output_to_temp_buffer): | |
10742 | * window.c (Fsave_window_excursion): Doc fix. | |
10743 | ||
be436d23 SM |
10744 | 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca> |
10745 | ||
10746 | * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. | |
10747 | ||
60f0fb11 SM |
10748 | 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca> |
10749 | ||
10750 | * process.h (struct Lisp_Process): Turn slots infd, outfd, | |
10751 | kill_without_query, pty_flag, tick, update_tick, decoding_carryover, | |
10752 | inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering, | |
10753 | read_output_delay, and read_output_skip from Lisp_Objects to ints. | |
10754 | Remove unused encoding_carryover. | |
10755 | * process.c: Adjust all functions accordingly. | |
10756 | ||
d8b18043 RS |
10757 | 2007-07-12 Richard Stallman <rms@gnu.org> |
10758 | ||
10759 | * term.c: Include unistd.h only if HAVE_UNISTD_H. | |
10760 | ||
d5781bb6 JR |
10761 | 2007-07-11 Jason Rumney <jasonr@gnu.org> |
10762 | ||
10763 | * makefile.w32-in (LIBS): Include OLE32. | |
10764 | ||
10765 | * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM. | |
10766 | (w32_msg_pump) <WM_DESTROY>: Uninitialize COM. | |
10767 | ||
5bb7dfee SM |
10768 | 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca> |
10769 | ||
10770 | * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer. | |
10771 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned | |
10772 | from a Lisp_Object into a bare pointer. | |
10773 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
10774 | Adjust the code correspondingly. | |
10775 | ||
10776 | * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'. | |
10777 | ||
10778 | * term.c: Include unistd.h for ttyname, used in handle_one_term_event. | |
10779 | (term_show_mouse_face): Remove unused var `j'. | |
10780 | (handle_one_term_event): Remove unused vars `i' and `j'. | |
10781 | Don't cast return value of ttyname since it's not necessary. | |
10782 | ||
a1be1ce8 SM |
10783 | 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca> |
10784 | ||
5045e68e SM |
10785 | * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using |
10786 | USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. | |
10787 | ||
8071c00f SM |
10788 | * fns.c (map_char_table): Use an array of int for `indices' rather than |
10789 | an array of Lisp_Objects (which are only ever integers anyway). | |
10790 | (Fmap_char_table): Update caller. | |
10791 | * lisp.h: Update prototype. | |
10792 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap): | |
10793 | * fontset.c (Ffontset_info): | |
10794 | * casetab.c (set_case_table): Update callers. | |
10795 | ||
10796 | * editfns.c (Ftranspose_regions): Use EMACS_INT for positions. | |
10797 | ||
fab84e3c SM |
10798 | * keymap.c (struct accessible_keymaps_data) |
10799 | (struct where_is_internal_data): New structures. | |
10800 | (accessible_keymaps_1, where_is_internal_1): Use them to change | |
10801 | interface to adhere to the one used by map_keymap. | |
10802 | (Faccessible_keymaps, where_is_internal): Use map_keymap. | |
10803 | (accessible_keymaps_char_table, where_is_internal_2): Remove. | |
10804 | ||
a1be1ce8 SM |
10805 | * keymap.h (map_keymap_function_t): More informative prototype. |
10806 | ||
ef887810 RS |
10807 | 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com> |
10808 | ||
10809 | * search.c (Vinhibit_changing_match_data, search_regs_1): New vars. | |
10810 | (looking_at_1): Don't change search_regs and last_thing_searched | |
10811 | if `inhibit-changing-match-data' is non-nil. | |
10812 | (string_match_1, search_buffer, set_search_regs): Likewise. | |
10813 | (syms_of_search): Add Lisp level definition for | |
10814 | `inhibit-changing-match-data' and set it to nil. | |
8071c00f SM |
10815 | (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute |
10816 | start and end of the match, instead of using values in search_regs. | |
ef887810 | 10817 | |
4d02fc25 SM |
10818 | 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca> |
10819 | ||
10820 | * minibuf.c (Fcompleting_read): New value `confirm-only' | |
10821 | for `require-match'. | |
10822 | ||
fe45b81f SM |
10823 | 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca> |
10824 | ||
10825 | * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as | |
10826 | part of the 2007-06-27 change to syms_of_fileio. | |
10827 | ||
a56dd283 YM |
10828 | 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10829 | ||
10830 | * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): | |
10831 | Check WINDOWP before using XWINDOW. Consolidate return statements. | |
10832 | ||
0cf9f5b5 RS |
10833 | 2007-06-27 Richard Stallman <rms@gnu.org> |
10834 | ||
10835 | * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix. | |
10836 | ||
a66f285a JB |
10837 | 2007-06-27 Juanma Barranquero <lekktu@gmail.com> |
10838 | ||
10839 | * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring. | |
10840 | ||
8d0d84d2 YM |
10841 | 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10842 | ||
10843 | * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. | |
10844 | (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. | |
10845 | (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. | |
10846 | (_free_internal, memalign): Use them. | |
10847 | (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: | |
10848 | Initialize to PTHREAD_MUTEX_INITIALIZER. | |
10849 | (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. | |
10850 | (morecore_nolock): Rename from morecore. All uses changed. | |
10851 | Use only nolock versions of internal allocation functions. | |
10852 | (_malloc_internal_nolock, _realloc_internal_nolock) | |
10853 | (_free_internal_nolock): New functions created from | |
10854 | _malloc_internal, _realloc_internal, and _free_internal. | |
10855 | (_malloc_internal, _realloc_internal, _free_internal): Use them. | |
10856 | Copy hook value to automatic variable before its use. | |
10857 | (memalign): Copy hook value to automatic variable before its use. | |
10858 | ||
5a0bbd9a KH |
10859 | 2007-06-26 Kenichi Handa <handa@m17n.org> |
10860 | ||
10861 | * coding.c (Ffind_operation_coding_system): Docstring improved. | |
10862 | (syms_of_coding): Docstring of `file-coding-system-alist' improved. | |
10863 | ||
9a51747b DK |
10864 | 2007-06-25 David Kastrup <dak@gnu.org> |
10865 | ||
10866 | * keymap.c (Fcurrent_active_maps): Add `position' argument. | |
10867 | (Fwhere_is_internal): Adjust call to `current-active-maps' to | |
10868 | cater for additional parameter. | |
10869 | ||
10870 | * keymap.h: Adjust number of parameters to `current-active-maps'. | |
10871 | ||
10872 | * doc.c (Fsubstitute_command_keys): Adjust call of | |
10873 | `current-active-maps'. | |
10874 | ||
e4305426 DK |
10875 | 2007-06-25 David Kastrup <dak@gnu.org> |
10876 | ||
10877 | * callint.c (Fcall_interactively): Make the parsing of interactive | |
10878 | specs somewhat more readable. | |
10879 | ||
511a18d9 YM |
10880 | 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10881 | ||
10882 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background | |
10883 | to scroll bar gap also when bitmap fills fringe. Draw only foreground | |
10884 | if extended background has already been filled. | |
10885 | ||
512eb161 YM |
10886 | 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10887 | ||
10888 | * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI. | |
10889 | (USE_MAC_TOOLBAR): Require USE_CG_DRAWING. | |
10890 | ||
10891 | * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: | |
10892 | Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p | |
10893 | in #if 0 as it is not compatible with y-or-n-p-with-timeout. | |
10894 | (timer_check) [TARGET_API_MAC_CARBON]: Add extern. | |
10895 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop | |
10896 | instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls. | |
10897 | (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function. | |
10898 | [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind. | |
10899 | Run timers during dialog popup. | |
10900 | (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated. | |
10901 | ||
2386b1f1 JR |
10902 | 2007-06-21 Jason Rumney <jasonr@gnu.org> |
10903 | ||
10904 | * image.c (convert_mono_to_color_image): Swap fore and background. | |
10905 | ||
fab8b787 JR |
10906 | 2007-06-20 Jason Rumney <jasonr@gnu.org> |
10907 | ||
10908 | * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. | |
10909 | (w32_free_bdf_font): Unmap memory not handle. | |
10910 | ||
15bdd7a0 | 10911 | 2007-06-20 Sam Steingold <sds@gnu.org> |
3cacba85 SS |
10912 | |
10913 | * gmalloc.c (__morecore): Fix the declaration to comply with the | |
10914 | definition. | |
10915 | ||
1bb8a291 JB |
10916 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
10917 | ||
10918 | * w32term.c (w32_delete_display): Remove leftover declaration. | |
10919 | (w32_define_cursor, w32_initialize): Make static. | |
10920 | ||
10921 | * w32.c (_wsa_errlist): Fix typo in error message. | |
10922 | (init_environment): Ignore any environment variable from the | |
10923 | registry having a null value. | |
10924 | ||
92648dea GM |
10925 | 2007-06-20 Glenn Morris <rgm@gnu.org> |
10926 | ||
10927 | * Makefile.in (LIBGIF): Default to -lgif. | |
10928 | ||
ff25d115 JR |
10929 | 2007-06-17 Jason Rumney <jasonr@gnu.org> |
10930 | ||
10931 | * w32menu.c (add_menu_item): Don't use multibyte string functions on | |
10932 | unicode strings. | |
10933 | ||
a1a578a5 JB |
10934 | 2007-06-16 Juanma Barranquero <lekktu@gmail.com> |
10935 | ||
10936 | * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>: | |
10937 | Fix typo in docstring. | |
10938 | ||
af41f8a8 EZ |
10939 | 2007-06-16 Eli Zaretskii <eliz@gnu.org> |
10940 | ||
10941 | * w32menu.c (add_menu_item): Escape `&' characters in menu items | |
10942 | and their keybindings. | |
10943 | ||
8b29cab9 CY |
10944 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> |
10945 | ||
10946 | * composite.c (update_compositions): Fix last fix. | |
10947 | ||
c433c134 JR |
10948 | 2007-06-14 Jason Rumney <jasonr@gnu.org> |
10949 | ||
10950 | * w32.c (get_process_times_fn): New function pointer. | |
10951 | (globals_of_w32): Intialize it if present in kernel32.dll. | |
10952 | (w32_get_internal_run_time): New function. | |
10953 | ||
10954 | * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. | |
10955 | ||
553d3164 KH |
10956 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> |
10957 | ||
10958 | * composite.c (update_compositions): Check the validness of | |
10959 | compositions. | |
10960 | ||
446ba96f YM |
10961 | 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10962 | ||
10963 | * frame.h (struct frame) [MAC_OS]: New member external_tool_bar. | |
10964 | (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it. | |
10965 | ||
10966 | * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity. | |
10967 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR. | |
10968 | ||
10969 | * macgui.h (USE_MAC_TOOLBAR): New define. | |
10970 | ||
10971 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
10972 | Return immediately unless popup is activated. | |
10973 | ||
10974 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe | |
10975 | background to scroll bar gap. | |
10976 | (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p. | |
10977 | (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost | |
10978 | scroll bars on frame edge. Check fringe background extension. | |
10979 | Don't clear extended fringe background area. | |
10980 | (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) | |
10981 | (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) | |
10982 | (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID): | |
10983 | [USE_MAC_TOOLBAR]: New macros. | |
10984 | (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) | |
10985 | (mac_handle_toolbar_event, mac_image_spec_to_cg_image) | |
10986 | (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar) | |
10987 | (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) | |
10988 | [USE_MAC_TOOLBAR]: New functions. | |
10989 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window | |
10990 | manually if previous repositioning has failed. | |
10991 | (mac_handle_keyboard_event): Use precomputed event kind. | |
10992 | (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region | |
10993 | as tool bar item click. Handle mouse movement over tool bar items. | |
10994 | ||
10995 | * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member | |
10996 | toolbar_win_gravity. | |
10997 | (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. | |
10998 | (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: | |
10999 | Add externs. | |
11000 | ||
11001 | * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window) | |
11002 | [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display. | |
11003 | ||
9720173f CY |
11004 | 2007-06-14 Chong Yidong <cyd@stupidchicken.com> |
11005 | ||
11006 | * image.c (search_image_cache): Remove unused variable. | |
11007 | ||
1217dd00 CY |
11008 | 2007-06-13 Chong Yidong <cyd@stupidchicken.com> |
11009 | ||
11010 | * xfns.c, xmenu.c: Link to xaw3d if available. | |
11011 | ||
c5b8e0ea YM |
11012 | 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11013 | ||
11014 | * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members | |
11015 | frame_foreground and frame_background. | |
11016 | ||
11017 | * image.c (lookup_image): Save frame foreground and background colors. | |
11018 | (search_image_cache): Check if saved and current frame colors match. | |
11019 | ||
c69b0314 SM |
11020 | 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca> |
11021 | ||
11022 | * regex.c (regex_compile): Remove the `regnum' counter. | |
11023 | Use bufp->re_nsub instead. Add support for \(?N:RE\). | |
11024 | ||
c9612b8e SM |
11025 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
11026 | ||
11027 | * term.c: Include intervals.h to declare Fget_text_property. | |
11028 | ||
843d2458 JR |
11029 | 2007-06-10 Jason Rumney <jasonr@gnu.org> |
11030 | ||
11031 | * w32fns.c (Fx_file_dialog): Take size from struct not pointer. | |
11032 | ||
1e0d2d60 | 11033 | 2007-06-08 Juanma Barranquero <lekktu@gmail.com> |
977f6cfb JB |
11034 | |
11035 | * callint.c (Fcall_interactively): | |
11036 | * editfns.c (Fdelete_and_extract_region): | |
11037 | * fileio.c (Fread_file_name): | |
11038 | * fns.c (Fmapconcat): | |
11039 | * keyboard.c (cmd_error_internal): | |
11040 | * keymap.c (Fkey_description): | |
11041 | * lread.c (openp): | |
11042 | * minibuf.c (read_minibuf): | |
11043 | * search.c (wordify): | |
11044 | * sunfns.c (sel_read): | |
11045 | * xdisp.c (Fformat_mode_line, syms_of_xdisp): | |
11046 | * xfns.c (x_default_scroll_bar_color_parameter): | |
11047 | * xmenu.c (menu_help_callback): | |
11048 | * xselect.c (Fx_get_atom_name): | |
11049 | * xterm.c (x_term_init): Use empty_unibyte_string. | |
11050 | ||
15bdd7a0 | 11051 | 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change) |
977f6cfb JB |
11052 | |
11053 | * alloc.c (init_strings): Initialize canonical empty strings. | |
11054 | (make_uninit_string, make_uninit_multibyte_string): Return appropriate | |
11055 | canonical empty string when the requested size is 0. | |
11056 | ||
11057 | * emacs.c (empty_unibyte_string): Rename from empty_string. | |
11058 | (empty_multibyte_string): New canonical empty string. | |
11059 | (syms_of_emacs): Don't initialize empty_string. | |
11060 | ||
11061 | * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte | |
11062 | string, if appropriate. | |
11063 | (empty_unibyte_string, empty_multibyte_string): New externs. | |
11064 | (empty_string): Remove extern. | |
11065 | ||
11066 | * lread.c (syms_of_lread): Use empty_unibyte_string. | |
11067 | ||
42c4c67a JR |
11068 | 2007-06-07 Jason Rumney <jasonr@gnu.org> |
11069 | ||
11070 | * s/ms-w32.h: Don't define HAVE_TZNAME. | |
11071 | ||
11072 | * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows. | |
11073 | ||
aa8280d3 YM |
11074 | 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11075 | ||
11076 | * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. | |
11077 | ||
11078 | * macfns.c (mac_get_window_bounds): Move extern to macterm.h. | |
11079 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. | |
11080 | ||
11081 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
11082 | Don't call next handler. | |
11083 | [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): | |
11084 | Remove argument. Install handler to application. | |
11085 | (set_frame_menubar): Don't change deep_p. | |
1e0d2d60 | 11086 | (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and |
aa8280d3 YM |
11087 | FRAME_OUTER_TO_INNER_DIFF_Y. |
11088 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
11089 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
11090 | [HAVE_DIALOGS]: New macros. | |
11091 | [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): | |
11092 | Use them. | |
11093 | (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. | |
11094 | ||
11095 | * macselect.c [MAC_OSX] (install_service_handler): Rename from | |
11096 | init_service_handler. All callers changed. Return OSStatus value. | |
11097 | ||
11098 | * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. | |
11099 | All callers changed so as not to call SetPortWindowPort. | |
11100 | (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. | |
11101 | (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from | |
11102 | mac_draw_string_common. | |
11103 | (mac_draw_image_string_qd): Likewise. | |
11104 | (mac_draw_string_common): Use them. Add INLINE. | |
11105 | (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: | |
11106 | Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and | |
11107 | GetGlobalMouse. | |
11108 | (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X | |
11109 | and FRAME_OUTER_TO_INNER_DIFF_Y. | |
11110 | [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. | |
11111 | [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. | |
11112 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for | |
11113 | repositioning window to mac_handle_window_event. | |
11114 | (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for | |
11115 | saving window location to mac_handle_window_event | |
11116 | [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. | |
11117 | (install_menu_target_item_handler): Remove argument in extern. | |
11118 | [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): | |
11119 | Also accept command events. | |
11120 | (do_keystroke): New function created from XTread_socket. | |
11121 | (init_command_handler): Remove functions. | |
11122 | [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window | |
11123 | and save window location by kEventWindowShowing and kEventWindowHiding | |
11124 | handlers here. Don't call next handler for window state change and | |
11125 | focus events. | |
11126 | (mac_handle_application_event, mac_handle_keyboard_event) | |
11127 | [TARGET_API_MAC_CARBON]: New functions. | |
11128 | (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for | |
11129 | kEventWindowShowing and kEventWindowHiding events. Move installation | |
11130 | of mouse, font, text input and menu target item handlers to | |
11131 | install_application_handler. | |
11132 | (install_application_handler) [TARGET_API_MAC_CARBON]: New function. | |
11133 | (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
11134 | New function. | |
11135 | (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
11136 | Register it. | |
c9612b8e SM |
11137 | (XTread_socket) [TARGET_API_MAC_CARBON]: |
11138 | Consolidate SendEventToEventTarget calls. | |
11139 | Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y. | |
11140 | Move application activation handler to mac_handle_application_event. | |
11141 | Move keyboard handler to mac_handle_keyboard_event. | |
aa8280d3 YM |
11142 | (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. |
11143 | (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call | |
11144 | init_command_handler. Call install_application_handler. | |
11145 | ||
11146 | * macterm.h (mac_get_window_bounds): Move extern from macfns.c. | |
11147 | (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. | |
11148 | ||
6926c954 GM |
11149 | 2007-06-07 Glenn Morris <rgm@gnu.org> |
11150 | ||
11151 | * emacs.c (main): Use `emacs-copyright' in --version output. | |
11152 | ||
6fe04c89 CY |
11153 | 2007-06-06 Chong Yidong <cyd@stupidchicken.com> |
11154 | ||
c9612b8e | 11155 | * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. |
6fe04c89 | 11156 | |
7eb0d727 YM |
11157 | 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11158 | ||
11159 | * macfns.c (mac_window): Replace WindowPtr with WindowRef. | |
11160 | ||
11161 | * macgui.h: Replace WindowPtr with WindowRef. | |
11162 | ||
11163 | * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
11164 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
11165 | Replace ControlHandle with ControlRef. | |
11166 | (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. | |
11167 | ||
11168 | * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
11169 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
11170 | Replace ControlHandle with ControlRef. | |
11171 | (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. | |
11172 | [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. | |
11173 | ||
11174 | * macterm.h (struct scroll_bar): Rename member control_handle_low | |
11175 | and control_handle_high to control_ref_low and control_ref_high. | |
11176 | All uses changed. | |
11177 | (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from | |
11178 | SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, | |
11179 | respectively. All uses changed. | |
11180 | (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) | |
11181 | (install_window_handler, remove_window_handler): Replace WindowPtr | |
11182 | with WindowRef in externs. | |
11183 | ||
65fddb74 JB |
11184 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> |
11185 | ||
11186 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. | |
11187 | ||
db1213a9 NR |
11188 | 2007-06-03 Nick Roberts <nickrob@snap.net.nz> |
11189 | ||
11190 | * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case. | |
11191 | ||
65fddb74 | 11192 | * frame.c (Fmouse_position, Fmouse_pixel_position): |
db1213a9 NR |
11193 | Condition on HAVE_GPM too. |
11194 | ||
11195 | * term.c (term_mouse_highlight): Remove unused variables. | |
11196 | (Fterm_open_connection): Set gpm_zerobased to 1. | |
11197 | (term_mouse_movement, term_mouse_click, handle_one_term_event): | |
11198 | Use zero based co-ordinates. | |
11199 | (handle_one_term_event): Report a drag as mouse movement too. | |
11200 | ||
11201 | * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM. | |
11202 | ||
d94df25b CY |
11203 | 2007-06-03 Chong Yidong <cyd@stupidchicken.com> |
11204 | ||
11205 | * image.c (search_image_cache): New function. Require background | |
11206 | color match if background color is unspecified in the image spec. | |
11207 | (uncache_image, lookup_image): Use it. | |
11208 | ||
4797b6d9 JB |
11209 | 2007-06-01 Juanma Barranquero <lekktu@gmail.com> |
11210 | ||
11211 | * window.c (Fshrink_window): Reflow docstring. | |
11212 | ||
1ffe7343 NR |
11213 | 2007-06-02 Chong Yidong <cyd@stupidchicken.com> |
11214 | ||
11215 | * Version 22.1 released. | |
11216 | ||
11217 | 2007-06-01 Richard Stallman <rms@gnu.org> | |
11218 | ||
11219 | * xfns.c (x_encode_text): Add GCPRO. | |
11220 | ||
11221 | 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11222 | ||
11223 | * xfns.c (x_set_name_internal): Save encoded name before | |
11224 | x_encode_text in case string data is relocated. | |
11225 | ||
11226 | 2007-05-31 Richard Stallman <rms@gnu.org> | |
11227 | ||
11228 | * buffer.c (syms_of_buffer): Doc fix. | |
11229 | ||
11230 | 2007-05-30 Nick Roberts <nickrob@snap.net.nz> | |
11231 | ||
11232 | * sysdep.c (init_sys_modes): Add rather than replace with | |
11233 | O_NONBLOCK. | |
11234 | ||
11235 | * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to | |
11236 | term_mouse_moveto. | |
11237 | ||
11238 | * termhooks.h (term_mouse_moveto): New extern. | |
11239 | ||
11240 | * term.c (mouse_face_window): Rename... | |
11241 | (Qmouse_face_window): ...to this. | |
11242 | (term_show_mouse_face, term_clear_mouse_face) | |
11243 | (term_mouse_highlight): Use Qmouse_face_window. | |
11244 | (term_mouse_moveto): New function. | |
11245 | (term_mouse_position): Make it work. | |
11246 | (syms_of_term): Uncomment assignment to mouse_position_hook. | |
11247 | Staticpro Qmouse_face_window. | |
11248 | ||
11249 | 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11250 | ||
11251 | * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t | |
11252 | around current_column call. | |
11253 | ||
11254 | 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu> | |
11255 | ||
11256 | * xfaces.c (syms_of_xfaces): Delete stray semicolon. | |
11257 | * xdisp.c (next_element_from_buffer): | |
11258 | * window.c (delete_window): | |
11259 | * term.c (term_mouse_highlight): | |
11260 | * msdos.c (getdefdir): | |
11261 | * macterm.c (mac_create_bitmap_from_bitmap_data) | |
11262 | (init_font_name_table): | |
11263 | * fns.c (Fsxhash): | |
11264 | * data.c (Fmake_local_variable): | |
11265 | * ccl.c (ccl_driver): Likewise. | |
11266 | ||
11267 | 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11268 | ||
11269 | * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event): | |
11270 | Call mac_wakeup_from_rne on window size change. | |
11271 | ||
11272 | 2007-05-25 Chong Yidong <cyd@stupidchicken.com> | |
11273 | ||
11274 | * image.c (uncache_image): Fix typo. | |
11275 | ||
11276 | 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change) | |
11277 | ||
11278 | * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too. | |
11279 | ||
11280 | 2007-05-22 Richard Stallman <rms@gnu.org> | |
11281 | ||
11282 | * xterm.c (x_connection_closed): Remove NO_RETURN. | |
11283 | ||
11284 | 2007-05-22 Martin Rudalics <rudalics@gmx.at> | |
11285 | ||
11286 | * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. | |
11287 | ||
11288 | 2007-05-21 Chong Yidong <cyd@stupidchicken.com> | |
11289 | ||
11290 | * image.c (uncache_image): New function. | |
11291 | (Fimage_refresh): New function. | |
11292 | ||
880820fe | 11293 | 2007-05-20 Jan Djärv <jan.h.d@swipnet.se> |
1ffe7343 NR |
11294 | |
11295 | * Makefile.in: Move GPM check outside HAVE_X_WINDOWS. | |
11296 | ||
11297 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
11298 | ||
11299 | * config.in, keyboard.c, Makefile.in, sysdep.c, term.c, | |
11300 | * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H. | |
11301 | ||
11302 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
11303 | ||
11304 | * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT | |
11305 | conditional on [HAVE_GPM_H]. | |
11306 | ||
11307 | 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca> | |
11308 | ||
11309 | * syntax.c (skip_chars): Update syntax-table only after we checked that | |
11310 | the new location is valid. | |
11311 | ||
11312 | 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11313 | ||
11314 | * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around | |
11315 | mac_get_window_bounds. | |
11316 | ||
11317 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
11318 | ||
11319 | * Makefile.in (LIBGPM): Allow it to be set from configure. | |
11320 | If set then link Emacs with it. | |
11321 | ||
11322 | * config.in: Regenerate. | |
11323 | ||
11324 | * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): | |
11325 | New externs. | |
11326 | ||
11327 | * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT. | |
11328 | Include gpm.h. | |
11329 | (handle_one_term_event, term_gpm): New externs. | |
11330 | ||
11331 | * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking | |
11332 | and allow it to be interrupted by SIGIO. | |
11333 | ||
11334 | * process.c (gpm_wait_mask, max_gpm_desc): New variables. | |
11335 | (wait_reading_process_output): Wait on gpm_fd too. | |
11336 | (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions. | |
11337 | (add_gpm_wait_descriptor_called_flag): New variable. | |
11338 | (delete_keyboard_wait_descriptor): Check gpm_wait_mask. | |
11339 | ||
11340 | * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message) | |
11341 | (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved) | |
11342 | (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard): | |
11343 | Extend HAVE_MOUSE ifdefs to HAVE_GPM_H. | |
11344 | (make_lispy_event): Add case GPM_CLICK_EVENT. | |
11345 | (read_avail_input): Handle mouse input. | |
11346 | ||
11347 | * term.c (write_glyphs_with_face): New function. | |
11348 | [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h. | |
11349 | (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row) | |
11350 | (mouse_face_end_col, mouse_face_past_end, mouse_face_window) | |
11351 | (mouse_face_face_id, term_gpm, pos_x, pos_y) | |
11352 | (last_mouse_x, last_mouse_y): New variables. | |
11353 | (term_show_mouse_face, term_clear_mouse_face, fast_find_position) | |
11354 | (term_mouse_highlight, term_mouse_movement, term_mouse_position) | |
11355 | (term_mouse_click, handle_one_term_event, Fterm_open_connection) | |
11356 | (Fterm_close_connection): New functions. | |
11357 | (term_init): Initialise mouse_face_window. | |
11358 | ||
11359 | 2007-05-19 Chong Yidong <cyd@stupidchicken.com> | |
11360 | ||
11361 | * xdisp.c (redisplay_window): If first window line is a | |
11362 | continuation line, recompute the new window start instead of | |
11363 | recentering. | |
11364 | ||
11365 | 2007-05-18 Glenn Morris <rgm@gnu.org> | |
11366 | ||
11367 | * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD. | |
11368 | Suggested by Alfred M. Szmidt <ams@gnu.org>. | |
11369 | ||
11370 | 2007-05-17 Glenn Morris <rgm@gnu.org> | |
11371 | ||
11372 | * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. | |
11373 | ||
11374 | 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11375 | ||
11376 | * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert | |
11377 | dead key repeat and up events. | |
11378 | ||
11379 | 2007-05-14 Chong Yidong <cyd@stupidchicken.com> | |
11380 | ||
11381 | * image.c (pbm_load): Check image size for monochrome pbm. | |
11382 | ||
11383 | 2007-05-13 Chong Yidong <cyd@stupidchicken.com> | |
11384 | ||
11385 | * xterm.c (XTread_socket): Revert last change. | |
11386 | ||
11387 | 2007-05-12 Chong Yidong <cyd@stupidchicken.com> | |
11388 | ||
11389 | * image.c (pbm_load): Correctly check image size for greyscale pbm. | |
11390 | ||
11391 | * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). | |
11392 | ||
11393 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
11394 | ||
11395 | * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object | |
11396 | mixup (YAILOM). | |
11397 | ||
11398 | 2007-05-07 Andreas Schwab <schwab@suse.de> | |
11399 | ||
11400 | * keymap.c (Flookup_key): Fix typo in last change. | |
11401 | ||
11402 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
11403 | ||
11404 | * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier | |
11405 | mapping for unibyte strings. | |
11406 | ||
11407 | 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11408 | ||
11409 | * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. | |
11410 | (Fx_popup_dialog) [MAC_OSX]: Likewise. | |
11411 | ||
11412 | 2007-04-29 Richard Stallman <rms@gnu.org> | |
11413 | ||
11414 | * insdel.c (replace_range): For undo, record insertion first. | |
11415 | ||
11416 | 2007-04-29 Andreas Schwab <schwab@suse.de> | |
11417 | ||
11418 | * lisp.h (VECSIZE): Use OFFSETOF. | |
11419 | ||
11420 | 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11421 | ||
11422 | * xdisp.c (try_window_reusing_current_matrix): Fix number of | |
11423 | disabled lines. | |
11424 | ||
11425 | 2007-04-28 Richard Stallman <rms@gnu.org> | |
11426 | ||
11427 | * lread.c (read_escape): In a string, \s is always space. | |
11428 | ||
880820fe | 11429 | 2007-04-27 Jan Djärv <jan.h.d@swipnet.se> |
1ffe7343 NR |
11430 | |
11431 | * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. | |
11432 | ||
11433 | * gtkutil.c (xg_update_menubar, create_menus): Create empty | |
11434 | submenu for menu bar items. | |
11435 | ||
382c648d | 11436 | See ChangeLog.10 for earlier changes. |
6922b018 KH |
11437 | |
11438 | ;; Local Variables: | |
880820fe | 11439 | ;; coding: utf-8 |
33462dfa | 11440 | ;; add-log-time-zone-rule: t |
6922b018 | 11441 | ;; End: |
2a34a036 | 11442 | |
59ce725a | 11443 | Copyright (C) 2007, 2008 Free Software Foundation, Inc. |
7f6d64f8 GM |
11444 | |
11445 | This file is part of GNU Emacs. | |
11446 | ||
5a1dde61 | 11447 | GNU Emacs is free software: you can redistribute it and/or modify |
7f6d64f8 | 11448 | it under the terms of the GNU General Public License as published by |
5a1dde61 GM |
11449 | the Free Software Foundation, either version 3 of the License, or |
11450 | (at your option) any later version. | |
7f6d64f8 GM |
11451 | |
11452 | GNU Emacs is distributed in the hope that it will be useful, | |
11453 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11454 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11455 | GNU General Public License for more details. | |
11456 | ||
11457 | You should have received a copy of the GNU General Public License | |
5a1dde61 | 11458 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
ab5796a9 | 11459 | |
28f60c3d | 11460 | ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40 |