Commit | Line | Data |
---|---|---|
d0827857 SM |
1 | 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> |
2 | ||
3 | * chartab.c (Foptimize_char_table, optimize_sub_char_table): | |
4 | Add a `test' argument so another predicate than `equal' can be used. | |
5 | (map_sub_char_table): Use `eq' rather than `equal' to merge ranges. | |
6 | (map_char_table): Remove unused vars `c' and `i'. | |
7 | * lisp.h (Foptimize_char_table): Adjust declaration. | |
8 | * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table. | |
9 | ||
a266686a KH |
10 | 2008-05-30 Kenichi Handa <handa@m17n.org> |
11 | ||
d0827857 | 12 | * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined. |
a266686a KH |
13 | (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is |
14 | defined. | |
15 | ||
fd9440c5 SM |
16 | 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> |
17 | ||
18 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable) | |
19 | (Fmake_variable_frame_local): Disallow mixing buffer-local and | |
20 | frame-local settings for the same variable. | |
21 | ||
eaf11618 KH |
22 | 2008-05-29 Kenichi Handa <handa@m17n.org> |
23 | ||
24 | * coding.h (enum define_coding_utf8_arg_index): New enum. | |
25 | (enum coding_attr_index): Change coding_attr_utf_16_bom to | |
26 | coding_attr_utf_bom. | |
fd9440c5 SM |
27 | (enum utf_bom_type): Rename from utf_16_bom_type. |
28 | (struct utf_16_spec): Adjust for the above change. | |
eaf11618 KH |
29 | (struct coding_system): Add utf_8_bom in `spec' union. |
30 | ||
31 | * coding.c (CODING_UTF_8_BOM): New macro. | |
32 | (enum coding_category): Delete coding_category_utf_8, add | |
33 | coding_category_utf_8_auto, coding_category_utf_8_nosig, and | |
34 | coding_category_utf_8_sig. | |
35 | (CATEGORY_MASK_UTF_8): Delete it. | |
36 | (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG) | |
37 | (CATEGORY_MASK_UTF_8_SIG): New macros. | |
38 | (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add | |
39 | CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and | |
40 | CATEGORY_MASK_UTF_8_SIG. | |
41 | (CATEGORY_MASK_UTF_8): New macro. | |
42 | (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros. | |
43 | (detect_coding_utf_8): Check BOM. | |
44 | (decode_coding_utf_8, encode_coding_utf_8): Handle BOM. | |
fd9440c5 | 45 | (decode_coding_utf_16): Adjust for the change of enum utf_bom_type. |
eaf11618 KH |
46 | (encode_coding_utf_16): Likewise. |
47 | (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding). | |
48 | (detect_coding, detect_coding_system): Handle utf-8-auto. | |
49 | (Fdefine_coding_system_internal): Handle `bom' property for utf-8. | |
50 | (syms_of_coding): Fix setting up of Vcoding_category_table. | |
51 | ||
891bd142 SM |
52 | 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca> |
53 | ||
54 | * process.c (Faccept_process_output): If `millisec' is non-nil, | |
55 | `seconds' default to 0. | |
56 | (wait_reading_process_output): Also return non-nil if we read output | |
57 | from a non-running process. | |
58 | ||
1519d52e JR |
59 | 2008-05-29 Jason Rumney <jasonr@gnu.org> |
60 | ||
fd9440c5 SM |
61 | * w32font.c (w32font_open_internal): Prefer truetype fonts unless |
62 | `raster' specified. | |
63 | (add_font_entity_to_list): Allow non-opentype truetype fonts back | |
64 | in the uniscribe backend, but disallow any font that has no | |
65 | unicode subrange support. | |
1519d52e | 66 | |
d5ab09cd JB |
67 | 2008-05-29 Juanma Barranquero <lekktu@gmail.com> |
68 | ||
69 | * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face): | |
70 | Fix typos in docstrings. | |
71 | ||
a4eec626 KH |
72 | 2008-05-29 Kenichi Handa <handa@m17n.org> |
73 | ||
74 | * xfaces.c (Fx_list_fonts): Make it return a list of font names. | |
e887f2ac | 75 | (Fx_family_fonts): Set frame correctly. |
a4eec626 | 76 | |
a6e0b7e5 JR |
77 | 2008-05-28 Jason Rumney <jasonr@gnu.org> |
78 | ||
d5ab09cd | 79 | * w32term.c (x_draw_glyph_string): Use clipmask if specified. |
a6e0b7e5 | 80 | |
6b3d752c SM |
81 | 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca> |
82 | ||
83 | * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after | |
84 | calling build_annotations. | |
85 | ||
c3f9fba8 JB |
86 | 2008-05-28 Juanma Barranquero <lekktu@gmail.com> |
87 | ||
88 | * coding.c (Fdecode_coding_region, Fencode_coding_region) | |
89 | (Fencode_coding_string): | |
90 | (syms_of_coding) <coding-system-for-read, coding-system-for-write>: | |
91 | <latin-extra-code-table>: Fix typos in docstrings. | |
92 | (syms_of_coding) <coding-system-alist>: Doc fix. | |
93 | (syms_of_coding) <translation-table-for-input>: Reflow docstring. | |
94 | ||
00c670e1 KH |
95 | 2008-05-28 Kenichi Handa <handa@m17n.org> |
96 | ||
b75d7f28 KH |
97 | * fontset.c (Ffont_info): Don't call font_close_object. |
98 | ||
99 | * font.c (font_parse_family_registry): Use Ffont_put to validate | |
100 | foundry and family. | |
101 | (font_delete_unmatched): Don't check spacing. | |
102 | (font_list_entities): Add spacing to the spec to list fonts. | |
103 | ||
104 | * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern. | |
d5ab09cd | 105 | (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset. |
b75d7f28 | 106 | |
00c670e1 KH |
107 | * coding.c (encode_coding_raw_text): Fix previous change. |
108 | (encode_coding_object): When the dst_object is a buffer and is | |
109 | different from src_object, move gap to PT. | |
110 | ||
45feca91 CY |
111 | 2008-05-27 Chong Yidong <cyd@stupidchicken.com> |
112 | ||
c3f9fba8 | 113 | * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it. |
45feca91 | 114 | |
5dd5d9eb SM |
115 | 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> |
116 | ||
01d45367 SM |
117 | * coding.c (encode_coding_raw_text): Set coding->produced_char for |
118 | all branches. Compute it differently. | |
119 | ||
5dd5d9eb SM |
120 | * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x. |
121 | ||
9c623c85 JB |
122 | 2008-05-27 Juanma Barranquero <lekktu@gmail.com> |
123 | ||
124 | * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }" | |
125 | into "else if () ... else ...". | |
126 | ||
943f2093 JR |
127 | 2008-05-27 Jason Rumney <jasonr@gnu.org> |
128 | ||
5dd5d9eb SM |
129 | * w32font.c (w32font_open_internal): Determine if glyph indices |
130 | are likely to work here. | |
943f2093 | 131 | |
7385fe74 CY |
132 | 2008-05-27 Chong Yidong <cyd@stupidchicken.com> |
133 | ||
134 | * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to | |
135 | draw overlap glyphs with appropriate highlighting. | |
136 | ||
4f64a164 KH |
137 | 2008-05-27 Kenichi Handa <handa@m17n.org> |
138 | ||
139 | * xfont.c (xfont_open): Fix calculation of font->average_width. | |
140 | ||
1fb5aad7 SM |
141 | 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> |
142 | ||
143 | * casefiddle.c (casify_object): Try to guess better whether the | |
144 | argument is a byte or a char. | |
145 | ||
f8eb1603 AS |
146 | 2008-05-26 Andreas Schwab <schwab@suse.de> |
147 | ||
1fb5aad7 SM |
148 | * xselect.c (x_reply_selection_request): Properly handle format == 32. |
149 | Always send multiples of format size. | |
5a9c35e5 | 150 | |
f8eb1603 AS |
151 | * xterm.c (x_set_frame_alpha): Fix type mismatch. |
152 | ||
ba93d684 JR |
153 | 2008-05-26 Jason Rumney <jasonr@gnu.org> |
154 | ||
1fb5aad7 SM |
155 | * w32font.c (w32font_text_extents): Zero whole metrics struct first. |
156 | (compute_metrics): Don't set failure if we just cleared the cache. | |
157 | (w32_weight_table): Remove unused variable. | |
158 | (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for | |
159 | backwards compatibility. | |
ba93d684 | 160 | |
505ecc49 KH |
161 | 2008-05-25 Kenichi Handa <handa@m17n.org> |
162 | ||
1fb5aad7 SM |
163 | * w32term.c (x_draw_glyph_string): |
164 | * xterm.c (x_draw_glyph_string): Fix calculation of underline position. | |
505ecc49 KH |
165 | |
166 | * xfaces.c: Delete unused function prototypes. | |
167 | (xstrlwr, font_frame): Delete them. | |
168 | (clear_face_cache): Delete unused variable. | |
169 | ||
1fb5aad7 SM |
170 | * xftfont.c (xftfont_open): Delete unused variable. |
171 | If underline_thickness is not 1, adjust underline_position. | |
505ecc49 KH |
172 | |
173 | * ftxfont.c (ftxfont_open): Delete unused variable. | |
174 | ||
175 | * fontset.c (face_for_char): Optimize for the case of no charset | |
176 | property. | |
177 | ||
178 | * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE) | |
179 | (check_gstring, check_otf_features, otf_list, otf_tag_symbol) | |
180 | (otf_open, font_otf_capability, generate_otf_features) | |
181 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): | |
1fb5aad7 | 182 | Comment out by surrounding "#if 0" and "#endif" for the moment. |
505ecc49 KH |
183 | (Ffont_drive_otf, Ffont_otf_alternates): Likewise. |
184 | (syms_of_font): Codes for accessing above commented out. | |
185 | ||
f481eb31 EZ |
186 | 2008-05-24 Eli Zaretskii <eliz@gnu.org> |
187 | ||
188 | * w32proc.c: Include dispextern.h. | |
189 | ||
190 | * w32.c: Include dispextern.h. | |
191 | ||
20746fe4 JB |
192 | 2008-05-23 Juanma Barranquero <lekktu@gmail.com> |
193 | ||
194 | * charset.c (Fencode_char, Fsplit_char): Doc fixes. | |
195 | (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset): | |
196 | Fix typos in docstrings. | |
197 | ||
e7150846 JR |
198 | 2008-05-23 Jason Rumney <jasonr@gnu.org> |
199 | ||
20746fe4 | 200 | * xsmfns.c: Remove includes that are already included by config.h. |
e7150846 | 201 | |
dbf46ba6 KH |
202 | 2008-05-23 Kenichi Handa <handa@m17n.org> |
203 | ||
6c652beb KH |
204 | * charset.c (Qemacs, charset_emacs): New variables. |
205 | (char_charset): Fix for non-Unicode characters. | |
206 | (syms_of_charset): Define charset_emacs. | |
207 | ||
baf4d3b3 | 208 | * w32term.c (x_draw_glyph_string): Be sure to update |
328fab2a KH |
209 | s->underline_thickness and s->underline_position. Be sure to draw |
210 | underline within the current line area. | |
baf4d3b3 KH |
211 | |
212 | * xterm.c (x_draw_glyph_string): Be sure to update | |
328fab2a | 213 | s->underline_thickness and s->underline_position. Be sure to draw |
90dc78a3 | 214 | underline within the current line area. |
baf4d3b3 | 215 | |
dbf46ba6 KH |
216 | * fontset.c: Delete unused variables and add casting for char * |
217 | throughout the file. | |
218 | (fontset_font): Try the fallback fonts of the current fontset | |
219 | before consulting the default fontset. | |
220 | ||
221 | * ftfont.c (ftfont_spec_pattern): Free charset if necessary. | |
222 | ||
223 | * xfont.c (xfont_list_pattern): Free names returned from | |
224 | XListFonts. | |
225 | ||
3b780338 JR |
226 | 2008-05-22 Jason Rumney <jasonr@gnu.org> |
227 | ||
20746fe4 | 228 | * font.c: Don't include strings.h. |
577eba22 | 229 | |
20746fe4 | 230 | * dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp. |
05131107 | 231 | |
20746fe4 JB |
232 | * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: |
233 | * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: | |
b1722a46 EZ |
234 | * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed |
235 | to call xstrcasecmp. | |
05131107 | 236 | |
b1722a46 | 237 | * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp. |
3b780338 | 238 | |
b1722a46 | 239 | * fontset.c (fs_query_fontset): Use xstrcasecmp. |
3b780338 | 240 | |
b1722a46 | 241 | * font.c (font_style_to_value, font_score): Use xstrcasecmp. |
3b780338 | 242 | |
b1722a46 | 243 | * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp. |
3b780338 | 244 | |
a30e1957 KH |
245 | 2008-05-22 Kenichi Handa <handa@m17n.org> |
246 | ||
20746fe4 | 247 | * puresize.h (BASE_PURESIZE): Increase to 1220000. |
955b979c | 248 | |
20746fe4 | 249 | * font.c (font_prop_validate_style): Adjust for the format |
64b900e3 KH |
250 | change of font_style_table. |
251 | ||
a30e1957 KH |
252 | * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with |
253 | two args. | |
254 | ||
255 | * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with | |
256 | two args. | |
257 | ||
631248e5 SM |
258 | 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca> |
259 | ||
260 | * minibuf.c (keys_of_minibuf): Delete. | |
261 | * lisp.h (keys_of_minibuf): Delete. | |
262 | * emacs.c (main): Don't call keys_of_minibuf. | |
263 | ||
318548be KH |
264 | 2008-05-22 Kenichi Handa <handa@m17n.org> |
265 | ||
631248e5 | 266 | * ftfont.c (ftfont_resolve_generic_family): Rename from |
318548be KH |
267 | ftfont_list_generic_family. Return a single family for each |
268 | generic family. | |
269 | (ftfont_spec_pattern): Add FC_FAMILY to pattern. | |
20746fe4 JB |
270 | (ftfont_list): Adjust for the change of ftfont_resolve_generic_family. |
271 | Call font_add_log. | |
318548be KH |
272 | (ftfont_match): Call font_add_log. |
273 | ||
274 | * font.h (Ffont_xlfd_name): EXFUN adjusted. | |
275 | (FONT_DEBUG): Define it. | |
276 | (font_add_log): Extern it. | |
631248e5 | 277 | (font_assert): Rename from xassert. |
318548be KH |
278 | |
279 | * xfont.c (xfont_get_pcm): Change xassert to font_assert. | |
280 | (xfont_list_family): Call font_add_log. | |
281 | (xfont_match): Likewise. | |
631248e5 | 282 | (memq_no_quit): Delete. |
318548be KH |
283 | |
284 | * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in | |
285 | call of Ffont_xlfd_name. | |
286 | ||
287 | * xfaces.c (struct table_entry, slant_table, weight_table) | |
631248e5 | 288 | (swidth_table): Move to font.c. |
318548be KH |
289 | |
290 | * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of | |
631248e5 | 291 | xassert are changed to font_assert. Delete many unused variables. |
20746fe4 JB |
292 | (Vfont_weight_table, Vfont_slant_table, Vfont_width_table): |
293 | New variables. | |
631248e5 SM |
294 | (struct table_entry): Move from xfaces.c and modified. |
295 | (weight_table, slant_table, width_table): Move from xfaces.c and | |
318548be | 296 | contents adjusted for the change of struct table_entry. |
20746fe4 | 297 | (font_style_to_value, font_style_symbolic): Adjust for the |
64b900e3 | 298 | format change of font_style_table. |
318548be KH |
299 | (font_parse_family_registry): Don't overwrite existing foundry and |
300 | family of font_spec. | |
301 | (font_score): Fix calculation of diff for sizes. | |
302 | (font_sort_entites): Call font_add_log. | |
303 | (font_delete_unmatched): Return a newly created list. | |
304 | (font_list_entities): Fix previous change. Call font_add_log. | |
20746fe4 JB |
305 | (font_matching_entity, font_open_entity, font_close_entity): |
306 | Call font_add_log. | |
318548be | 307 | (Ffont_xlfd_name): New arg FOLD-WILDCARDS. |
631248e5 | 308 | (Finternal_set_font_style_table): Delete. |
318548be KH |
309 | (BUILD_STYLE_TABLE): New macro. |
310 | (build_style_table): New function. | |
311 | (Vfont_log, font_log_env_checked): New variables. | |
312 | (font_add_log): New function. | |
313 | (syms_of_font): Delete defsubr Sinternal_set_font_style_table. | |
314 | Declare Lisp variables "font-weight-table", "font-slant-table", | |
315 | "font-width-table", and "font-log". Initialize font_style_table. | |
316 | ||
6aac1c03 DN |
317 | 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu> |
318 | ||
bcc850aa | 319 | * xterm.c (x_set_frame_alpha): Move declarations before statements. |
6aac1c03 | 320 | |
7950790f GM |
321 | 2008-05-21 Seiji Zenitani <zenitani@mac.com> |
322 | Ryo Yoshitake <ryo@shiftmode.net> | |
a2979e8e | 323 | |
7950790f | 324 | * frame.c (Qalpha): Add a new frame parameter `alpha'. |
bcc850aa | 325 | (Vframe_alpha_lower_limit): New variable. |
b9fb2c45 | 326 | (x_set_alpha): New function. |
a2979e8e | 327 | |
7950790f | 328 | * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them. |
a2979e8e | 329 | |
7950790f GM |
330 | * xfns.c (x-create-frame, Qalpha): |
331 | Initialize the frame parameter `alpha'. | |
b9fb2c45 GM |
332 | * xterm.c (OPAQUE, OPACITY): New. |
333 | (x_set_frame_alpha): New function. | |
334 | (frame_highlight, frame_unhighlight): Call x_set_frame_alpha. | |
a2979e8e | 335 | |
7950790f GM |
336 | * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha. |
337 | * w32fns.c (w32_frame_parm_handlers): Likewise. | |
a2979e8e | 338 | |
5c2a72d9 JR |
339 | 2008-05-20 Jason Rumney <jasonr@gnu.org> |
340 | ||
20746fe4 JB |
341 | * w32font.c (add_font_entity_to_list): Don't add non-opentype |
342 | truetype fonts to opentype list. | |
5c2a72d9 | 343 | |
eb152aa9 JB |
344 | 2008-05-20 Juanma Barranquero <lekktu@gmail.com> |
345 | ||
346 | * fontset.c (Ffontset_info): Doc fix. | |
347 | (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>: | |
348 | <ignore-relative-composition>: Fix typos in docstrings. | |
349 | ||
350 | * font.c (syms-of-font) <font-encoding-alist>: | |
351 | (Ffontp, Ffont_make_gstring): Fix typos in docstrings. | |
352 | (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font) | |
353 | (Ffont_otf_alternates): Doc fixes. | |
354 | ||
ad00e1a3 KH |
355 | 2008-05-20 Kenichi Handa <handa@m17n.org> |
356 | ||
357 | * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to | |
358 | font.h through out the file. | |
359 | (FONT_DRIVERS): Renamed from FONTOBJ. | |
12855572 | 360 | (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o. |
ad00e1a3 KH |
361 | (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS). |
362 | ||
363 | * emacs.c (main): Call syms_of_font unconditionally. | |
364 | ||
365 | * font.h (find_font_encoding): Extern it. | |
366 | ||
367 | * font.c (Vfont_encoding_alist, find_font_encoding): Moved from | |
368 | fontset.c. | |
369 | (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1. | |
370 | (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts, | |
371 | FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f) | |
372 | only when HAVE_WINDOW_SYSTEM is defined. | |
373 | (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only | |
374 | when HAVE_WINDOW_SYSTEM is defined. | |
375 | ||
376 | * fontset.c (Vfont_encoding_alist, find_font_encoding): Moved to | |
377 | font.c. | |
378 | (syms_of_fontset): Declaration of font-encoding-alist moved to | |
379 | font.c. | |
380 | ||
381 | * xfaces.c: Include font.h unconditionally. | |
382 | (merge_face_ref, merge_face_vectors) | |
383 | (Finternal_set_lisp_face_attribute): Cancel the previous change. | |
384 | ||
40a69fac SM |
385 | 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca> |
386 | ||
387 | * xdisp.c (select_frame_for_redisplay): Adjust for last change to | |
388 | indirect_variable. | |
389 | * eval.c (lisp_indirect_variable): New fun. | |
390 | (Fuser_variable_p): Use it. | |
391 | ||
8c2dccbf SM |
392 | 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca> |
393 | ||
ad97b375 SM |
394 | * lisp.h (indirect_variable): |
395 | * data.c (indirect_variable, let_shadows_buffer_binding_p): | |
396 | Use Lisp_Symbol pointers rather than Lisp_Object. | |
397 | Adjust callers. | |
398 | * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument. | |
399 | To this end, change calling-convention. | |
400 | ||
8c2dccbf SM |
401 | * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers |
402 | if some non-hidden buffers are selected by string&pred. | |
403 | ||
ad97b375 SM |
404 | 2008-05-19 Chong Yidong <cyd@stupidchicken.com> |
405 | ||
406 | * process.c (wait_reading_process_output): Always check status | |
407 | when in batch mode. | |
408 | ||
25b81df4 KH |
409 | 2008-05-19 Kenichi Handa <handa@m17n.org> |
410 | ||
411 | * font.c (font_list_entities): Fix handling of cache. | |
412 | (font_matching_entity): Likewise. | |
413 | ||
8c2dccbf | 414 | * ftfont.c (cs_iso8859_1): Delete. |
25b81df4 KH |
415 | (ft_face_cache): New variable. |
416 | (struct ftfont_info): New member fc_charset_idx; | |
8c2dccbf | 417 | (ftfont_build_basic_charsets): Delete. |
25b81df4 KH |
418 | (fc_charset_table): New variable. |
419 | (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME | |
420 | . FC_CHARSET_IDX) as :font-entity property in the font entity. | |
421 | Callers changed. | |
dde8403f | 422 | (ftfont_lookup_cache, ftfont_get_charset): New functions. |
8c2dccbf SM |
423 | (ftfont_spec_pattern): New argument fc_charset_idx. |
424 | Check registry more rigidly. Change callers. | |
a2979e8e | 425 | (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the |
25b81df4 KH |
426 | change of :font-entity property of the font. |
427 | ||
a2979e8e | 428 | * xftfont.c (xftfont_open): Adjust for the change of :font-entity |
25b81df4 KH |
429 | property of the font. |
430 | ||
d4a1d553 JB |
431 | 2008-05-18 Juanma Barranquero <lekktu@gmail.com> |
432 | ||
433 | * coding.c (Fcoding_system_p): Rename argument to match docstring. | |
434 | (Funencodable_char_position, Fcheck_coding_systems_region) | |
435 | (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings. | |
436 | (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region) | |
437 | (Ffind_operation_coding_system, Fset_coding_system_priority) | |
438 | (Fcoding_system_eol_type): Doc fixes. | |
439 | ||
07cfc4e7 GM |
440 | 2008-05-17 Glenn Morris <rgm@gnu.org> |
441 | ||
442 | * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY. | |
443 | ||
1cab27d2 EZ |
444 | 2008-05-16 Eli Zaretskii <eliz@gnu.org> |
445 | ||
446 | * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid | |
447 | and st_gid. | |
448 | ||
dde8403f | 449 | * frame.c (Fdelete_frame): Don't call font_update_drivers if |
1cab27d2 EZ |
450 | HAVE_WINDOW_SYSTEM is not defined. |
451 | ||
452 | * xfaces.c (merge_face_ref, merge_face_vectors) | |
453 | (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when | |
454 | HAVE_WINDOW_SYSTEM is defined. | |
455 | (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case. | |
456 | ||
86b89713 SM |
457 | 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca> |
458 | ||
459 | * keyboard.c (parse_menu_item): Do not cache key shortcut any more. | |
460 | ||
6750bd93 YM |
461 | 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
462 | ||
62867b11 | 463 | * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'. |
6750bd93 | 464 | |
79f105c9 KH |
465 | 2008-05-15 Kenichi Handa <handa@m17n.org> |
466 | ||
467 | * font.c (font_find_for_lface): Reflect LFACE_FONT in the font | |
468 | preference. | |
469 | ||
6b33da9f GM |
470 | 2008-05-15 Glenn Morris <rgm@gnu.org> |
471 | ||
472 | * emacs.c (USAGE1, standard_args): Remove -disable-font-backend. | |
473 | ||
d0e4433b CY |
474 | 2008-05-15 Chong Yidong <cyd@stupidchicken.com> |
475 | ||
476 | * fns.c (init_fns): Don't initialize weak_hash_tables here. | |
477 | (init_weak_hash_tables): New fun. Initialize weak_hash_tables. | |
478 | ||
479 | * alloc.c (init_alloc_once): Call init_weak_hash_tables. | |
480 | ||
5f2d79e0 KH |
481 | 2008-05-15 Kenichi Handa <handa@m17n.org> |
482 | ||
fd8a1cae KH |
483 | * ftfont.c (ftfont_list): Downcase family name to check generic |
484 | families. | |
485 | ||
486 | * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a | |
487 | font-spec for QCfont value. | |
488 | ||
5f2d79e0 KH |
489 | * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte |
490 | buffer. Check the return value of it. | |
491 | ||
e5e29349 JR |
492 | 2008-05-14 Jason Rumney <jasonr@gnu.org> |
493 | ||
494 | * w32term.c (w32_get_glyph_overhangs): Remove. | |
495 | (w32_redisplay_interface): Use x_get_glyph_overhangs instead. | |
496 | ||
1f09f444 KH |
497 | 2008-05-14 Kenichi Handa <handa@m17n.org> |
498 | ||
499 | * font.c (font_prop_validate): Make nil a valid value. | |
be9442ad KH |
500 | (font_clear_cache): Check if the cached vector of entities is nil |
501 | or not. | |
1f09f444 | 502 | |
ecae6af9 | 503 | 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
f8240abd YM |
504 | |
505 | * emacs.c (main_thread): Conditionalize on | |
506 | FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. | |
507 | (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it. | |
508 | ||
509 | * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define. | |
510 | (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on | |
511 | FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. | |
512 | ||
c6b278e7 KH |
513 | 2008-05-14 Kenichi Handa <handa@m17n.org> |
514 | ||
515 | * coding.c (detect_coding_iso_2022): Ignore a coding category that | |
516 | has no corresponding coding system. | |
517 | ||
518 | 2008-05-14 Jason Rumney <jasonr@gnu.org> | |
519 | ||
520 | * font.h (struct font) [WINDOWSNT]: Remove codepage member. | |
521 | ||
522 | * w32font.h (w32font_open_internal): Update declaration. | |
523 | ||
524 | * w32font.c (w32font_open_internal): Change last argument from | |
525 | w32font_info struct to font object. Fill in font object from | |
526 | font_entity. Get Outline metrics if possible. Use them to | |
527 | calculate underline position and thickness. Use xlfd name as name | |
528 | property. Don't set codepage. | |
529 | (w32font_open): Pass font_object to w32font_open_internal. Don't | |
530 | update dpyinfo->smallest_font_height and | |
531 | dpyinfo->smallest_char_width. | |
532 | (w32font_draw): Use s->font. | |
533 | (clear_cached_metrics): Don't clear non-existent blocks. | |
534 | ||
535 | * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if | |
536 | font was not found. | |
537 | (x_draw_glyph_string): Use underline position and thickness from | |
538 | font. | |
539 | ||
540 | * w32uniscribe.c (uniscribe_open): Pass font_object to | |
541 | w32font_open_internal. | |
542 | ||
543 | 2008-05-14 Kenichi Handa <handa@m17n.org> | |
544 | ||
545 | These changes are to delete all legacy font-handling codes, and | |
546 | make Emacs use only font-backends. | |
547 | ||
548 | * Makefile.in: Delete USE_FONT_BACKEND conditionals. | |
549 | (frame.o, image.o, print.o): Depend on $(FONTSRC). | |
550 | ||
551 | * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O). | |
552 | ||
553 | * charset.h (Vcharset_non_preferred_head) | |
554 | (Vcurrent_iso639_language): Extern them. | |
555 | ||
556 | * charset.c (Vcharset_non_preferred_head): New variable. | |
557 | (Vcurrent_iso639_language): New variable. | |
558 | (syms_of_charset): Declare it as a Lisp variable. | |
559 | (char_charset): Don't check non preferred charsets. As a last | |
560 | resort, return charset_unicode. | |
561 | (Fset_charset_priority): Update Vcharset_non_preferred_head. | |
562 | ||
563 | * composite.c: Throughout the file, delete all USE_FONT_BACKEND | |
564 | conditionals. Don't check enable_font_backend. Delete all codes | |
565 | used only when USE_FONT_BACKEND is not defined. | |
566 | ||
567 | * dispextern.h (struct glyph_string): Change type of `font' to | |
568 | `struct font *'. | |
569 | (struct glyph_string): New member underline_position and | |
570 | underline_thickness. | |
571 | (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX. | |
572 | (struct face): Change type of `font' to `struct font *'. Remove | |
573 | members `font_name', `font_info_id'. | |
574 | (per_char_metric, encode_char): Delete externs. | |
575 | (calc_pixel_width_or_height): Adjust the prototype. | |
576 | ||
577 | * emacs.c (enable_font_backend): Delete extern. | |
578 | (main): Don't set enable_font_backend. Don't check the command | |
579 | line argument "-disable-font-backend". | |
580 | ||
581 | * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them. | |
582 | (enum font_property_index): New members FONT_DPI_INDEX, | |
583 | FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX, | |
584 | FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX, | |
585 | FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX. | |
586 | (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC) | |
587 | (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC) | |
588 | (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE) | |
589 | (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC) | |
590 | (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros. | |
591 | (struct font_spec, struct font_entity): New structs. | |
592 | (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h. | |
593 | (struct font): Many members from old "struct font_info" moved to | |
594 | here. Members font and entity deleted. | |
595 | (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for | |
596 | the new font-related objects. | |
597 | (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT) | |
598 | (CHECK_FONT_GET_OBJECT): Likewise. | |
599 | (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros. | |
600 | (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h. | |
601 | (struct font_driver): New members case_sensitive anc check. Type | |
602 | of the member list and open changed. | |
603 | (enable_font_backend, font_symbolic_weight, font_symbolic_slant) | |
604 | (font_symbolic_width, font_find_object, font_get_spec) | |
605 | (font_set_lface_from_name): Delete extern. | |
20746fe4 | 606 | (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs. |
c6b278e7 KH |
607 | |
608 | * font.c: Include <strings.h>. | |
609 | (enable_font_backend): Delete it. | |
610 | (Qfont_spec, Qfont_entity, Qfont_object): New variables. | |
611 | (CHECK_VALIDATE_FONT_SPEC): Delete it. | |
612 | (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h. | |
613 | (null_string): Delete it. | |
614 | (null_vector): Make it static. | |
615 | (font_family_alist): Delete it. | |
616 | (Qnormal): Extern it. | |
617 | (QCextra, QClanguage): Delete it. | |
20746fe4 | 618 | (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables. |
c6b278e7 KH |
619 | (font_make_spec, font_make_entity, font_make_object) |
620 | (font_intern_prop): Renamed from intern_downcase. Don't downcase | |
621 | the string. Callers changed. | |
622 | (font_pixel_size): Adjusted for the format change of font-related | |
623 | objects. | |
624 | (prop_name_to_numeric, prop_numeric_to_name): Delete them. | |
625 | (font_style_to_value, font_style_symbolic): New function. | |
626 | (build_font_family_alist): Delete it. | |
627 | (font_registry_charsets): Use Fassoc_string instead of | |
628 | assq_no_quit. | |
629 | (font_prop_validate_symbol): Don't return null_string. | |
630 | (font_prop_validate_style): Adjusted for the change of | |
631 | style-related values in a font vector. | |
20746fe4 | 632 | (font_property_table): Delete entries for QClanguage and |
c6b278e7 KH |
633 | QCantialias, add entries for QCavgwidth. |
634 | (get_font_prop_index): Delete the 2nd argument FROM. | |
635 | (font_prop_validate): Arguments changed. | |
636 | (font_put_extra): Adjusted for the change of font-related objects. | |
637 | (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd) | |
638 | (font_parse_fcname, font_unparse_fcname) | |
639 | (font_prepare_composition): Likewise. | |
640 | (font_parse_family_registry): Renamed from font_merge_old_spec. | |
641 | (otf_open): Delete the 1st arg entity. | |
642 | (font_otf_capability): Adjusted for the above change. | |
643 | (font_score): New arg alternate_families. Adjusted for the change | |
644 | of font-related objects. | |
645 | (font_sort_entites): New arg best_only. | |
646 | (font_symbolic_weight, font_symbolic_slant, font_symbolic_width): | |
647 | Delete them. | |
648 | (font_match_p): Check alternate families. | |
649 | (font_find_object): Delete it. | |
650 | (font_check_object): New function. | |
c3f9fba8 | 651 | (font_clear_cache): Adjusted for the change of font-related objects. |
c6b278e7 KH |
652 | (font_delete_unmatched): New arg. |
653 | (font_list_entities): Call font_driver->list with a spec that | |
654 | doesn't specify style-related properties. | |
655 | (font_matching_entity): Arguments changed. Caller changed. | |
c3f9fba8 | 656 | (font_open_entity): Adjusted for the change of font-related objects. |
c6b278e7 KH |
657 | (font_close_object, font_has_char, font_encode_char) |
658 | (font_get_name, font_get_spec): Likewise. | |
c3f9fba8 JB |
659 | (font_spec_from_name, font_clear_prop, font_update_lface): |
660 | New functions. | |
661 | (font_find_for_lface, font_open_for_lface, font_load_for_lface) | |
c6b278e7 KH |
662 | (font_prepare_for_face, font_done_for_face, font_open_by_name) |
663 | (font_at): Adjusted for the change of font-related objects. | |
664 | (font_range): New function. | |
665 | (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts) | |
c3f9fba8 | 666 | (Ffont_xlfd_name): Adjusted for the change of font-related objects. |
c6b278e7 KH |
667 | (Fcopy_font_spec, Fmerge_font_spec): New function. |
668 | (Ffont_family_list): Renamed from list-families. | |
669 | (Finternal_set_font_style_table): Arguments changed. | |
670 | (Ffont_fill_gstring, Ffont_shape_text, Fopen_font) | |
671 | (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the | |
672 | change of font-related objects. | |
c3f9fba8 | 673 | (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols. |
c6b278e7 KH |
674 | |
675 | * fontset.h (struct font_info): Delete it. Most memnbers go to | |
676 | struct font. | |
677 | (FONT_ENCODING_NOT_DECIDED): Moved to font.h. | |
678 | (enum FONT_SPEC_INDEX): Delete it. | |
679 | (font_info, list_fonts_func, load_font_func, query_font_func) | |
680 | (set_frame_fontset_func, find_ccl_program_func) | |
681 | (get_font_repertory_func, new_fontset_from_font_name): Delete | |
682 | externs. | |
683 | (fontset_from_font_name): Extern it. | |
684 | (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID) | |
685 | (FONT_INFO_FROM_FACE): Deleted. | |
686 | (face_for_font): Adjust prototype. | |
687 | ||
688 | * fontset.c: Throughout the file, delete all USE_FONT_BACKEND | |
689 | conditionals. Don't check enable_font_backend. Delete all codes | |
690 | used only when USE_FONT_BACKEND is not defined. | |
691 | (get_font_info_func, list_font_func, load_font_func) | |
692 | (query_font_func, set_frame_fontset_func, find_ccl_program_func) | |
693 | (get_font_repertory_func): Delete them. | |
694 | (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING) | |
695 | (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE) | |
696 | (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY) | |
697 | (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE) | |
698 | (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros. | |
699 | (fontset_compare_rfontdef): New function. | |
700 | (reorder_font_vector): Remove the argument CHARSET-ID. Sort | |
701 | ront-defs by qsort. Adjusted for the change of font-group vector. | |
702 | (load_font_get_repertory): Deleted. | |
703 | (fontset_find_font): Use new macros to ref/set elements of | |
704 | font-def and rfont-def. | |
705 | (fontset_font): Fix the timing of remembering that no font for C. | |
706 | (free_face_fontset): Do nothing if the face has no fontset. | |
707 | (face_suitable_for_char_p): Use new macros to ref/set elements of | |
708 | rfont-def. | |
709 | (face_for_char): Likewise. Call face_for_char with font_object. | |
710 | (fs_load_font): Delete. Delete #pragma surrounding it. | |
711 | (fs_query_fontset): Use strcasecmp instead of strcmp. | |
712 | (generate_ascii_font_name): Adjusted for the format change of | |
713 | font-spec. | |
714 | (Fset_fontset_font): Likewise. Use new macros to set elements of | |
715 | font-def. | |
716 | (Fnew_fontset): Use font_unparse_xlfd to generate | |
717 | FONTSET_ASCII (fontset). | |
718 | (new_fontset_from_font_name): Deleted. | |
719 | (fontset_from_font): Renamed from new_fontset_from_font. Check if | |
720 | a fontset is already created for the font. FIx updating of | |
721 | Vfontset_alias_alist. | |
722 | (fontset_ascii_font): Deleted. | |
723 | (Ffont_info): Adjusted for the format change of font-spec. | |
724 | (Finternal_char_font): Likewise. | |
725 | (Ffontset_info): Likewise. | |
726 | (syms_of_fontset): Don't check load_font_func. | |
727 | ||
728 | * fns.c (internal_equal): Handle PREV_FONT. | |
729 | ||
730 | * frame.h: Delete USE_FONT_BACKEND conditional. | |
731 | ||
732 | * frame.c: Throughout the file, delete all USE_FONT_BACKEND | |
733 | conditionals. Don't check enable_font_backend. Delete all codes | |
734 | used only when USE_FONT_BACKEND is not defined. | |
735 | (x_set_font): Call x_new_font, not x_new_fontset2. | |
736 | (x_set_font_backend): Use FRAME_FONT macro to check if a font is | |
737 | already set for the frame. | |
738 | ||
739 | * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make | |
740 | a font-entity by font_make_entity. Use font_intern_prop instead | |
741 | of intern_downcase. Use FONT_SET_STYLE to set a style-related | |
742 | font property. If a font is scalable, set avgwidth property to 0. | |
743 | Set font-entity property by font_put_extra. | |
744 | (ftfont_list_generic_family): Argument SPEC and REGISTRY removed. | |
745 | (ffont_driver): Adjusted for the change of struct font_driver. | |
746 | (ftfont_spec_pattern): New function. | |
747 | (ftfont_list): Return a list, not vector. | |
748 | (ftfont_match): Use ftfont_spec_pattern to get a pattern. | |
749 | (ftfont_list_family): Don't downcase names. | |
750 | (ftfont_free_entity): Deleted. | |
751 | (ftfont_open): Return a font-ojbect. Adjusted for the change of | |
752 | struct font. Get underline_thickness and underline_position from | |
753 | font property. Don't update dpyinfo->smallest_font_height and | |
754 | dpyinfo->smallest_char_width. | |
755 | (ftfont_close): Don't free `struct font'. | |
756 | (ftfont_has_char): Adjusted for the format change of font-entity. | |
757 | (ftfont_encode_char, ftfont_text_extents): Likewise. | |
758 | ||
759 | * ftxfont.c (ftxfont_list): Return a list, not vector. | |
760 | (ftxfont_open): Return a font-ojbect. Adjusted for the change of | |
761 | struct font. Get underline_thickness and underline_position from | |
762 | font property. Don't update dpyinfo->smallest_font_height and | |
763 | dpyinfo->smallest_char_width. | |
764 | (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts. | |
765 | (ftxfont_draw): Adjusted for the change of struct font. | |
766 | ||
767 | * image.c (image_ascent): Don't include "charset.h". Include | |
768 | "character.h" and "font.h". | |
769 | ||
770 | * lisp.h (enum pvec_type): New member PREV_FONT. | |
771 | (Fassoc_string): EXFUN it. | |
772 | ||
773 | * print.c: Include font.h. | |
774 | (print_object): Handle font-related objects. | |
775 | ||
776 | * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND | |
777 | conditionals. Don't check enable_font_backend. Delete all codes | |
778 | used only when USE_FONT_BACKEND is not defined. | |
779 | (handle_auto_composed_prop): Do nothing if it->f is not on a | |
780 | window system. Check how many following characters can be | |
781 | displayed by the same font. | |
782 | (calc_pixel_width_or_height): Type of the 4th arg is changed to | |
783 | 'struct font *'. | |
784 | (get_char_face_and_encoding): Assign the whole encoding task to | |
785 | the `encode-char' method of a font driver. | |
786 | (fill_composite_glyph_string): Adjusted for the change of `struct | |
787 | face' and `struct glyph_string'. | |
788 | (fill_glyph_string): Likewise. | |
789 | (get_per_char_metric): Arguments changed. | |
790 | (x_get_glyph_overhangs): Adjusted for the change of `struct face' | |
791 | and `struct glyph_string'. | |
792 | (produce_stretch_glyph, calc_line_height_property) | |
793 | (x_produce_glyphs): Likewise. | |
794 | ||
795 | * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND | |
796 | conditionals. Don't check enable_font_backend. Delete all codes | |
797 | used only when USE_FONT_BACKEND is not defined. Use | |
798 | FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx. | |
799 | (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) | |
800 | (Qp): Extern them. | |
801 | (clear_font_table, load_face_font, xlfd_lookup_field_contents): | |
802 | Deleted. | |
803 | (struct font_name): Deleted. | |
804 | (xlfd_numeric_value, xlfd_symbolic_value): Deleted. | |
805 | (compare_fonts_by_sort_order): New function. | |
806 | (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight) | |
807 | (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth): | |
808 | Deleted. | |
809 | (Fx_family_fonts): Use font_list_entities, and sort fonts by | |
810 | compare_fonts_by_sort_order. | |
811 | (Fx_font_family_list): Call Ffont_family_list. | |
812 | (face_numeric_value, face_numeric_weight, face_numeric_slant) | |
813 | (face_numeric_swidth, face_symbolic_value, face_symbolic_weight) | |
814 | (face_symbolic_slant, face_symbolic_swidth) | |
815 | (split_font_name_into_vector, build_font_name_from_vector) | |
816 | (xlfd_fixed_p, xlfd_point_size, pixel_point_size) | |
817 | (font_rescale_ratio, split_font_name, build_font_name) | |
818 | (free_font_names, sort_fonts, x_face_list_fonts) | |
819 | (face_font_available_p, sorted_font_list, cmp_font_names) | |
820 | (font_list_1, concat_font_list, font_list, remove_duplicates): | |
821 | Deleted. | |
822 | (Fx_list_fonts): Use Ffont_list. | |
823 | (LFACE_AVGWIDTH): Deleted. | |
824 | (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT | |
825 | by FONTP. | |
826 | (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. | |
827 | (set_lface_from_font_name): Delete it. | |
828 | (set_lface_from_font): Renamed from | |
829 | set_lface_from_font_and_fontset. Caller changed. Don't set | |
830 | LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable | |
831 | for face. | |
c3f9fba8 JB |
832 | (merge_face_vectors): Copy font-spec if necessary. |
833 | Clear properties of the font-spec if necessary. | |
c6b278e7 KH |
834 | (merge_face_ref): Clear properties of the font-spec if necessary. |
835 | (Finternal_set_lisp_face_attribute): Likewise. | |
836 | (set_font_frame_param): Use font_load_for_lface to load a | |
837 | font-object, and call Fmodify_frame_parameters with it. | |
838 | (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD | |
839 | font name by Ffont_xlfd_name. | |
840 | (Finternal_lisp_face_attribute_values): Don't check QCweight, | |
841 | QCslant, and QCwidth. | |
842 | (Fface_font): Get a font name from font->props[FONT_NAME_INDEX]. | |
843 | (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH. | |
844 | Compare fonts by EQ. | |
845 | (lookup_non_ascii_face): Deleted. | |
846 | (face_for_font): The 2nd argument changed. | |
c3f9fba8 JB |
847 | (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. |
848 | Check atomic font properties by case insensitive. | |
c6b278e7 KH |
849 | (realize_non_ascii_face): Set face->overstrike correctly. |
850 | (realize_x_face): Likewise. Check if LFACE_FONT is a font_object. | |
851 | (dump_realized_face): Get font name from | |
852 | font->props[FONT_NAME_INDEX]. Don't print font_info_id. | |
853 | ||
854 | * xfns.c: Throughout the file, delete all USE_FONT_BACKEND | |
855 | conditionals. Don't check enable_font_backend. Delete all codes | |
856 | used only when USE_FONT_BACKEND is not defined. | |
857 | (xic_create_xfontset): Original code deleted and renamed from | |
858 | xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT. | |
859 | (x_make_gc): Don't set GCFont in GCs. | |
860 | (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font | |
861 | opened by "fixed". | |
862 | (syms_of_xfns): Don't set get_font_info_func, load_font_func, | |
863 | find_ccl_program_func, query_font_func, set_frame_fontset_func, | |
864 | get_font_repertory_func. | |
865 | ||
866 | * xfont.c: Include <stdlib.h> and "ccl.h". | |
867 | (struct xfont_info): New structure. | |
868 | (xfont_query_font): Deleted. | |
869 | (xfont_find_ccl_program): Renamed from x_find_ccl_program and | |
870 | moved from xterm.c. | |
871 | (xfont_driver): Adjusted for the change of struct font_driver. | |
872 | (compare_font_names): New function. | |
873 | (xfont_list_pattern): Sort font names case insensitively. Make | |
874 | font_entity by calling font_make_entity. Avoid auto-scaled fonts. | |
875 | (xfont_list): Return a list, not vector. | |
876 | (xfont_match): If the font doesn't have QCname property, generate | |
877 | a name from the other font properties. | |
878 | (xfont_open): Return a font-ojbect. Adjusted for the change of | |
879 | struct font. Get underline_thickness and underline_position from | |
880 | font property. Don't update dpyinfo->smallest_font_height and | |
881 | dpyinfo->smallest_char_width. | |
882 | (xfont_close): Don't free struct font. | |
883 | (xfont_prepare_face): Adjusted for the change of struct font. | |
884 | (xfont_done_face): Deleted. | |
885 | (xfont_has_char): Adjusted for the change of struct font. | |
886 | (xfont_encode_char, xfont_draw): Likewise. | |
887 | (xfont_check): New function. | |
888 | ||
889 | * xftfont.c (xftfont_list): Adjusted for the change of `list' | |
890 | callback function. | |
891 | (xftfont_match): Adjusted for the fontmat change of font-entity. | |
892 | (xftfont_open): Adjusted for the format change of font-entity and | |
893 | font-object. Adjusted for the change of struct font. Return a | |
894 | font-object. Don't update dpyinfo->smallest_font_height and | |
895 | dpyinfo->smallest_char_width. | |
896 | (xftfont_close): Block input while calling XftFontClose. | |
897 | (xftfont_prepare_face): Don't block input while calling | |
898 | xftfont_get_colors. Adjusted for the change of struct font. | |
899 | (xftfont_shape): Return value of error case fixed. | |
900 | ||
901 | * xrdb.c (x_load_resources): Don't setup a fontset resource. | |
902 | ||
903 | * xterm.h: Throughout the file, delete all USE_FONT_BACKEND | |
904 | conditionals. | |
905 | (FONT_WIDTH): Return (f)->max_width. | |
906 | (struct x_display_info): Delete member `font'. | |
907 | (x_list_fonts, x_get_font_info, x_load_font, x_query_font) | |
908 | (x_find_ccl_program, x_get_font_repertory): Delete externs. | |
909 | (struct x_output): Change type of `font' to `struct font *'. | |
910 | ||
911 | * xterm.c: Throughout the file, delete all USE_FONT_BACKEND | |
912 | conditionals. Don't check enable_font_backend. Delete all codes | |
c3f9fba8 | 913 | used only when USE_FONT_BACKEND is not defined. Don't include ccl.h. |
c6b278e7 KH |
914 | (x_per_char_metric, x_encode_char): Deleted. |
915 | (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. | |
916 | (x_compute_glyph_string_overhangs): Adjusted for the change of | |
c3f9fba8 | 917 | `struct face'. |
c6b278e7 KH |
918 | (x_draw_glyph_string_foreground) |
919 | (x_draw_composite_glyph_string_foreground): Likewise. | |
920 | (x_draw_glyph_string): Likewise. Use font->underline_position and | |
921 | font->underline_thickness. | |
922 | (x_new_font): Renamed from x_new_fontset2. | |
923 | (x_new_fontset, x_get_font_info, x_list_fonts): Deleted. | |
924 | (x_check_font): Call `check' method of a font driver. | |
925 | (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) | |
926 | (x_query_font, x_get_font_repertory): Deleted. | |
927 | (x_find_ccl_program): Renamed and moved to xfont.c. | |
928 | (x_redisplay_interface): Adjusted for the change of `struct | |
929 | redisplay_interface'. | |
930 | ||
931 | * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND | |
932 | conditionals. Don't check enable_font_backend. Delete all codes | |
933 | used only when USE_FONT_BACKEND is not defined. Surround non-used | |
934 | code by "#ifdef OLD_FONT" and "endif". | |
935 | (Fw32_select_font): Use FONT_COMPAT to get old font structure. | |
936 | ||
937 | * w32font.h (struct w32font_info): New member. | |
938 | (FONT_COMPAT): New macro. | |
939 | (w32font_open_internal): Prototype adjusted. | |
940 | ||
941 | * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if | |
942 | OLD_FONT" and "endif". | |
943 | ||
944 | * w32font.c: Throughout the file, delete all USE_FONT_BACKEND | |
945 | conditionals. Don't check enable_font_backend. Delete all codes | |
946 | used only when USE_FONT_BACKEND is not defined. | |
947 | (w32font_open): Return a font-object. Make a font-object by | |
948 | font_make_object. Adjusted for the change of struct w32font_info. | |
949 | (w32font_close): Don't free struct font. Adjusted for the change | |
950 | of struct w32font_info. | |
951 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
952 | Adjusted for the change of struct w32font_info. | |
953 | (w32font_draw): Likewise. | |
954 | (w32font_list_internal): Return a list, not vector. | |
955 | (w32font_open_internal): Change the 4th arg to font-object. | |
c3f9fba8 | 956 | Adjusted for the change of struct w32font_info and font-object format. |
c6b278e7 KH |
957 | (add_font_name_to_list): Don't downcase names. |
958 | (w32_enumfont_pattern_entity): Make a font-entity by | |
959 | font_make_entity. Adjusted for the format change of font-entity. | |
960 | Use FONT_SET_STYLE to set a style-related font property. If a | |
961 | font is scalable, set avgwidth property to 0. Set font-entity | |
962 | property by font_put_extra. | |
c3f9fba8 | 963 | (font_matches_spec): Adjusted for the format change of font-entity. |
c6b278e7 KH |
964 | (w32_weight_table, w32_decode_weight): New variables. |
965 | (w32_encode_weight): New function. | |
966 | (fill_in_logfont): Adjusted for the format change of font-spec. | |
967 | (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol | |
968 | weight value. | |
969 | (w32font_driver): Adjusted for the change of struct font_driver. | |
970 | ||
971 | * w32term.h: Throughout the file, delete all USE_FONT_BACKEND | |
972 | conditionals. Don't check enable_font_backend. Surround non-used | |
973 | code by "#ifdef OLD_FONT" and "endif". | |
974 | (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT) | |
975 | (FONT_AVG_WIDTH): Adjusted for the change of struct font. | |
976 | ||
977 | * w32term.c: Throughout the file, delete all USE_FONT_BACKEND | |
978 | conditionals. Don't check enable_font_backend. Delete all codes | |
979 | used only when USE_FONT_BACKEND is not defined. Surround non-used | |
980 | code by "#ifdef OLD_FONT" and "endif". | |
981 | ||
982 | * w32uniscribe.c: Delete USE_FONT_BACKEND conditional. | |
c3f9fba8 JB |
983 | (uniscribe_open): Return value changed to font-object. |
984 | Adjusted for the format change of font-object. | |
985 | (uniscribe_otf_capability): Adjusted for the change of struct font. | |
c6b278e7 KH |
986 | (add_opentype_font_name_to_list): Don't downcase names. |
987 | (uniscribe_font_driver): Adjusted for the change of struct | |
988 | font_driver. | |
989 | ||
f9d4c199 CY |
990 | 2008-05-13 Chong Yidong <cyd@stupidchicken.com> |
991 | ||
992 | * dispnew.c (update_frame_1): Check if tty output is still valid | |
993 | before flushing it. | |
994 | ||
44f249c0 JD |
995 | 2008-05-13 Jan Djärv <jan.h.d@swipnet.se> |
996 | ||
997 | * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 | |
998 | to Gtk+ menus. | |
999 | ||
01bb4018 SM |
1000 | 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca> |
1001 | ||
3271a8f5 SM |
1002 | * dired.c (file_name_completion): Tweak the code so as to always do it |
1003 | in a single pass. Tighten the scope of some variables. | |
1004 | ||
01bb4018 SM |
1005 | * dired.c (Qdefault_directory): New var. |
1006 | (file_name_completion): Use it instead of Fexpand_file_name. | |
1007 | (syms_of_dired): Initialize it. | |
1008 | ||
728bb8e0 SM |
1009 | 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca> |
1010 | ||
1011 | * fileio.c (double_dollars): Remove dead code. | |
1012 | ||
ed4c17bb EZ |
1013 | 2008-05-10 Eli Zaretskii <eliz@gnu.org> |
1014 | ||
6c5665e9 EZ |
1015 | * dired.c (Ffile_attributes, Fdirectory_files_and_attributes): |
1016 | Mention w32-get-true-file-attributes in doc string. | |
1017 | ||
ed4c17bb EZ |
1018 | * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix. |
1019 | ||
71e1f69d GM |
1020 | 2008-05-09 Glenn Morris <rgm@gnu.org> |
1021 | ||
1022 | * fileio.c (Fread_file_name): Remove reference to insdef, deleted | |
1023 | 2008-04-23. | |
1024 | ||
ee7a2e7a EZ |
1025 | 2008-05-09 Eli Zaretskii <eliz@gnu.org> |
1026 | ||
8aaaec6b EZ |
1027 | Support for reporting owner and group of each file on MS-Windows: |
1028 | * dired.c (stat_uname, stat_gname): New functions, with special | |
1029 | implementation for w32. | |
1030 | (Ffile_attributes): Use them instead of getpwuid and getgrgid. | |
1031 | ||
ee7a2e7a EZ |
1032 | * w32.c: Rename the_passwd_* to dflt_passwd_*. |
1033 | (dflt_group_name): New static variable. | |
728bb8e0 | 1034 | (dflt_group): Rename from the_group. |
ee7a2e7a EZ |
1035 | (init_user_info): Init dflt_group fields. Get user's group name |
1036 | from LookupAccountSid. | |
8aaaec6b EZ |
1037 | (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner) |
1038 | (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid): | |
1039 | New initialization states. | |
1040 | (globals_of_w32): Initialize them to zero. Initialize the default | |
1041 | group name to "None". | |
1042 | (GetFileSecurity_Name): New global var, the name of the function | |
1043 | to call for GetFileSecurity. | |
1044 | (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc) | |
1045 | (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs. | |
1046 | (get_file_security, get_security_descriptor_owner) | |
1047 | (get_security_descriptor_group, is_valid_sid) | |
1048 | (get_file_security_desc, get_rid, get_name_and_id) | |
1049 | (get_file_owner_and_group): New functions. | |
1050 | (stat): Use get_file_security_desc and get_file_owner_and_group to | |
1051 | report the owner and primary group of each file. Don't ignore the | |
728bb8e0 SM |
1052 | high 32 bits of file's size, now that st_size is 64-bit wide. |
1053 | Fix test when to get true file attributes. | |
8aaaec6b EZ |
1054 | (init_user_info): Use get_rid instead of equivalent inline code. |
1055 | (fstat): Don't ignore the high 32 bits of file's size. | |
ee7a2e7a | 1056 | |
b199c436 CY |
1057 | 2008-05-09 Chong Yidong <cyd@stupidchicken.com> |
1058 | ||
1059 | * image.c (png_load): Use correct bit-depth for setting background | |
1060 | color. | |
1061 | ||
86914123 EZ |
1062 | 2008-05-08 Eli Zaretskii <eliz@gnu.org> |
1063 | ||
1064 | * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to | |
1065 | epa-hook.elc. | |
1066 | ||
67b5d7de JB |
1067 | 2008-05-08 Juanma Barranquero <lekktu@gmail.com> |
1068 | ||
1069 | * font.c (Ffont_match_p): Don't use `iff' in docstring. | |
1070 | ||
1a111394 DN |
1071 | 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu> |
1072 | ||
1073 | * macfns.c (Fx_create_frame): Make a copy of frame parameters | |
1074 | because the original parameters are in pure storage now. | |
1075 | (mac_window): Remove unused params. Update callers. | |
1076 | ||
6d77fa95 SM |
1077 | 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca> |
1078 | ||
7a3d90dc SM |
1079 | * lread.c (substitute_object_recurse): Use lower-level primitives. |
1080 | Don't signal errors when traversing sub-char-tables. | |
1081 | Don't loop over all the possible characters when traversing char-tables. | |
1082 | ||
6d77fa95 SM |
1083 | * print.c (print_preprocess): Add sub-char-tables to the print-table, |
1084 | just like we do in print.c. | |
1085 | ||
140eb764 SM |
1086 | 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca> |
1087 | ||
1088 | * minibuf.c (Ftry_completion): Remove code left over from when we used | |
1089 | scmp instead of Fcompare_strings. | |
1090 | ||
e9184ccb JB |
1091 | 2008-05-04 Juanma Barranquero <lekktu@gmail.com> |
1092 | ||
1093 | * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format. | |
1094 | ||
0e9378b3 YM |
1095 | 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1096 | ||
1097 | * image.c [USE_MAC_IMAGE_IO] (image_load_image_io): | |
1098 | Create bitmap context in native byte order. | |
1099 | ||
f67e15be MB |
1100 | * macterm.c (XDrawLine) |
1101 | (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap | |
1102 | context in native byte order. | |
064032d0 | 1103 | |
f67e15be | 1104 | 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
50eff40f YM |
1105 | |
1106 | * config.in: Regenerate. | |
1107 | ||
1108 | * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]: | |
1109 | New definitions for Image I/O support. | |
1110 | (XGetImage, XPutPixel, XGetPixel, XDestroyImage) | |
1111 | (mac_create_cg_image_from_image, x_create_x_image_and_pixmap) | |
1112 | [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. | |
1113 | (mac_data_provider_release_data, image_load_image_io) | |
1114 | [USE_MAC_IMAGE_IO]: New functions. | |
1115 | (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef. | |
1116 | (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable. | |
1117 | (init_image_func_pointer) [MAC_OSX]: Remove function. | |
1118 | (image_load_quartz2d) [MAC_OSX]: Check availability of | |
1119 | CGImageCreateWithPNGDataProvider at compile time. | |
1120 | Use lowercase `false' for boolean constant. | |
1121 | (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]: | |
1122 | Use image_load_image_io. | |
1123 | (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]: | |
1124 | Don't check MyCGImageCreateWithPNGDataProvider. | |
1125 | (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]: | |
1126 | Don't call init_image_func_pointer. | |
1127 | ||
1128 | * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O. | |
1129 | ||
1130 | * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]: | |
1131 | Make variable non-static. | |
1132 | (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap) | |
1133 | [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. | |
1134 | ||
1135 | * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros. | |
1136 | (RED_FROM_ULONG): Mask off higher bits. | |
1137 | (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern. | |
1138 | ||
1139 | * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]: | |
1140 | Include AvailabilityMacros.h. | |
1141 | (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines. | |
1142 | (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE. | |
1143 | ||
c6bff69e SM |
1144 | 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca> |
1145 | ||
1146 | * chartab.c (Fset_char_table_range): If range is t, really set all | |
1147 | chars to that value. | |
1148 | ||
7412d429 EZ |
1149 | 2008-05-03 Eli Zaretskii <eliz@gnu.org> |
1150 | ||
1151 | * dired.c (Ffile_attributes): Don't allow the device number become | |
1152 | negative. | |
1153 | ||
f83bbfac DU |
1154 | 2008-05-02 Daiki Ueno <ueno@unixuser.org> |
1155 | ||
5a81d3d7 | 1156 | * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc. |
f83bbfac | 1157 | |
2e3148e2 JL |
1158 | 2008-05-02 Juri Linkov <juri@jurta.org> |
1159 | ||
1160 | * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command) | |
728bb8e0 SM |
1161 | (Fread_variable, Fread_buffer, Fcompleting_read): Document the |
1162 | DEFAULT argument as a list of default values in docstrings. | |
2e3148e2 | 1163 | |
923fb88c CY |
1164 | 2008-05-01 Chong Yidong <cyd@stupidchicken.com> |
1165 | ||
1166 | * puresize.h (BASE_PURESIZE): Increase to 1210000. | |
1167 | ||
047aaeb9 MR |
1168 | 2008-05-01 Martin Rudalics <rudalics@gmx.at> |
1169 | ||
1170 | * dispnew.c (change_frame_size_1): Preserve small windows when | |
1171 | shrinking frames by calling set_window_height|width with third | |
1172 | arg 2. | |
1173 | ||
1174 | * window.h (struct window): Replace field too_small_ok by field | |
1175 | resize_proportionally. | |
1176 | ||
1177 | * window.c (make_window): Initialize resize_proportionally. | |
1178 | (enlarge_window): Temporarily set resize_proportionally to make | |
1179 | sure that shrink_windows does scale the window proportionally. | |
1180 | (shrink_windows): When window has resize_proportionally set try | |
1181 | to shrink it proportionally by stealing from other windows. | |
1182 | (struct saved_window, Fset_window_configuration) | |
1183 | (compare_window_configurations): Handle resize_proportionally. | |
1184 | (WINDOW_TOTAL_SIZE): New macro. | |
1185 | (window_min_size, shrink_windows, size_window): Use it. | |
c6bff69e | 1186 | (check_min_window_sizes): Remove. Invalid values of |
047aaeb9 MR |
1187 | window-min-height|width are handled by window_min_size_2 now. |
1188 | (size_window, Fsplit_window, enlarge_window) | |
1189 | (adjust_window_trailing_edge, grow_mini_window): Don't call | |
1190 | check_min_window_sizes. | |
c6bff69e SM |
1191 | (window_min_size_2, window_min_size_1, window_min_size): |
1192 | New argument safe_p for retrieving "safe" minimum sizes. | |
c3f9fba8 | 1193 | (Fdisplay_buffer, Fsplit_window, enlarge_window) |
c6bff69e SM |
1194 | (adjust_window_trailing_edge, grow_mini_window): |
1195 | Adjust arguments of window_min_size... functions. | |
047aaeb9 MR |
1196 | (shrink_windows): Argument min_size removed. New argument |
1197 | safe_p allows shrinking windows to their safe minimum sizes. | |
1198 | Calculate minimum size and decide whether a window shall be | |
1199 | deleted for each window individually. | |
1200 | (size_window): When nodelete_p equals 2, tell shrink_windows to | |
1201 | delete windows only if their new minimum size is no more safe. | |
1202 | (shrink_window_lowest_first): Call window_min_size_1 to make | |
1203 | sure to preserve modeline of bottom-most window when resizing | |
1204 | the minibuffer. | |
1205 | (Fset_window_configuration, Fcurrent_window_configuration) | |
1206 | (compare_window_configurations): Do not handle | |
1207 | window-min-height|width any more. | |
1208 | (syms_of_window): Clarify window-min-height|width doc-strings. | |
1209 | ||
2a54a229 SM |
1210 | 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca> |
1211 | ||
1212 | * dired.c (file_name_completion): Fix up the encoding/decoding issue | |
1213 | some more. Copy some of the code from Ftry_completions. | |
1214 | Remove special case code that dates back to initial revision when the | |
1215 | slash was only added when necessary and that can't trigger nowadays. | |
1216 | ||
384bc634 KH |
1217 | 2008-04-27 Kenichi Handa <handa@m17n.org> |
1218 | ||
1219 | * font.c (font_prop_validate): Signal `error' instead of `font'. | |
1220 | ||
2c2279c6 JR |
1221 | 2008-04-29 Jason Rumney <jasonr@gnu.org> |
1222 | ||
1223 | * w32fns.c (Fw32_battery_status): New defun. | |
1224 | (syms_of_w32fns): Defsubr it. | |
1225 | ||
fb4a622a AS |
1226 | 2008-04-28 Andreas Schwab <schwab@suse.de> |
1227 | ||
1228 | * dired.c (file_name_completion): Fix another mixing of encoded | |
1229 | and decoded names. | |
1230 | ||
23f250f4 JB |
1231 | 2008-04-28 Juanma Barranquero <lekktu@gmail.com> |
1232 | ||
1233 | * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring. | |
1234 | ||
d8d30dff JB |
1235 | 2008-04-27 Juanma Barranquero <lekktu@gmail.com> |
1236 | ||
1237 | * fringe.c (Fdefine_fringe_bitmap): Doc fix. | |
1238 | ||
ea6104a8 AS |
1239 | 2008-04-27 Andreas Schwab <schwab@suse.de> |
1240 | ||
9c691c00 AS |
1241 | * dired.c (file_name_completion): Fix inappropriate mixing of |
1242 | encoded and decoded names. | |
1243 | ||
ec1bf773 AS |
1244 | * xterm.c (XTread_socket): Fix use of uninitialized variable. |
1245 | ||
ea6104a8 AS |
1246 | * puresize.h (BASE_PURESIZE): Increase to 1200000. |
1247 | ||
01388a3d EZ |
1248 | 2008-04-26 Eli Zaretskii <eliz@gnu.org> |
1249 | ||
1250 | * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from | |
1251 | 2008-03-31, it's not needed anymore with `struct stat' definition | |
1252 | on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13 | |
1253 | for the same reasons. | |
1254 | ||
175aea10 | 1255 | 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change) |
27af566c CY |
1256 | |
1257 | * m/sparc.h: Additional redefinitions for GNU/Linux. | |
1258 | ||
1289aeb8 YM |
1259 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1260 | ||
1261 | * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable. | |
1262 | (syms_of_macterm) [USE_MAC_TSM]: Defvar it. | |
1263 | (Qmouse_drag_overlay) [MAC_OSX]: New variable. | |
1264 | (syms_of_macterm) [MAC_OSX]: Intern and staticpro it. | |
1265 | (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) | |
1266 | (mac_ax_selected_text_range) [MAC_OSX]: New functions. | |
1267 | (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
1268 | Likewise. | |
1269 | ||
1270 | * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern. | |
c3f9fba8 | 1271 | (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range) |
1289aeb8 YM |
1272 | (mac_ax_number_of_characters): Add externs. |
1273 | (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) | |
1274 | [USE_MAC_TSM]: Likewise. | |
1275 | (mac_handle_text_input_event) [MAC_OSX]: | |
1276 | Handle kEventTextInputOffsetToPos for no active input area case. | |
1277 | Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText. | |
1278 | (mac_handle_document_access_event) | |
1279 | [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function. | |
1280 | (install_application_handler) [MAC_OSX]: Register handlers for | |
1281 | kEventTextInputPosToOffset and kEventTextInputGetSelectedText. | |
1282 | (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
1283 | Register mac_handle_document_access_event. | |
1284 | ||
1285 | * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]: | |
1286 | Make functions non-static. | |
1287 | ||
dbd50d4b SM |
1288 | 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca> |
1289 | ||
1290 | * fileio.c (Vread_file_name_function, Vread_file_name_predicate) | |
1291 | (read_file_name_completion_ignore_case, insert_default_directory) | |
1292 | (Qdefault_directory): Move to minibuffer.el. | |
1293 | (Fread_file_name): Call the new `read-file-name' instead. | |
1294 | ||
9ea37b9d | 1295 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
81fe843b YM |
1296 | |
1297 | * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]: | |
1298 | Make function non-static. | |
1299 | (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: | |
1300 | Remove function. | |
1301 | (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: | |
1302 | Move to mactoolbox.c. | |
1303 | (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function. | |
1304 | ||
1305 | * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef. | |
1306 | (mac_rect_make): New macro. | |
1307 | ||
1308 | * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat | |
1309 | instead of float. | |
1310 | (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. | |
1311 | (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground) | |
1312 | (XSetBackground) [USE_CG_DRAWING]: Likewise. | |
1313 | (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of | |
1314 | CGRectMake. | |
1315 | (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. | |
1316 | (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle) | |
1317 | (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise. | |
1318 | (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window | |
1319 | instead of WindowRef in argument type. | |
1320 | (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort. | |
1321 | (mac_invert_rectangle): Use CGContextSetBlendMode if available. | |
1322 | (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F | |
1323 | instead of DISPLAY. All uses changed. | |
1324 | (mac_handle_size_change): Don't call SET_FRAME_GARBAGED. | |
1325 | (x_calc_absolute_position): Simplify so as not to use | |
1326 | FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT. | |
81fe843b YM |
1327 | |
1328 | * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window | |
1329 | instead of WindowRef in argument type. | |
1330 | (create_apple_event_from_event_ref, create_apple_event_from_drag_ref) | |
1331 | [TARGET_API_MAC_CARBON]: Remove externs. | |
1332 | (create_apple_event, mac_event_parameters_to_lisp) | |
1333 | [TARGET_API_MAC_CARBON]: Add externs. | |
1334 | ||
d8d30dff | 1335 | * mactoolbox.c (Vmac_ts_script_language_on_focus) |
81fe843b YM |
1336 | (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs. |
1337 | (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part | |
1338 | is clicked. | |
1339 | (x_activate_menubar): Remove extern for saved_menu_event_location. | |
1340 | (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: | |
1341 | Move from mac.c. | |
1342 | ||
9ea37b9d | 1343 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
a1b41389 YM |
1344 | |
1345 | * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc) | |
1346 | [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex. | |
1347 | ||
9ea37b9d | 1348 | 2008-04-23 Jason Rumney <jasonr@gnu.org> |
bd735631 JR |
1349 | |
1350 | * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get | |
1351 | attributes only for local files. | |
1352 | ||
1353 | * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes | |
e9184ccb | 1354 | default to Qlocal. |
bd735631 | 1355 | |
88970542 JL |
1356 | 2008-04-22 Juri Linkov <juri@jurta.org> |
1357 | ||
1358 | * buffer.c (Fswitch_to_buffer): Change interactive spec to call | |
1359 | read-buffer-to-switch instead of using the letter "B". | |
1360 | ||
92ec67e3 SM |
1361 | 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca> |
1362 | ||
1363 | * fileio.c (Qdefault_directory): New variable. | |
1364 | (Fread_file_name): Use it to pass `dir' to the completion functions. | |
1365 | ||
a32b2382 CY |
1366 | 2008-04-20 Chong Yidong <cyd@stupidchicken.com> |
1367 | ||
2a2e8de7 | 1368 | * xdisp.c (pos_visible_p): Check if iterator stops on a display string. |
a32b2382 | 1369 | |
6c8b4f07 SM |
1370 | 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca> |
1371 | ||
ece5f847 SM |
1372 | * keyboard.c (Vpre_help_message): Remove. |
1373 | (show_help_echo): Remove default C code. | |
1374 | ||
6c8b4f07 SM |
1375 | * dired.c (directory_files_internal, file_name_completion): |
1376 | Only call ENCODE_FILE if the string is indeed decoded. | |
1377 | ||
73d798d5 SM |
1378 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
1379 | ||
1380 | * Makefile.in (TOOLKIT_DEFINES): Remove. | |
1381 | (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff. | |
1382 | ||
d8d30dff | 1383 | 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9e13f0c3 YM |
1384 | |
1385 | * Makefile.in (MAC_OBJ): Add mactoolbox.o. | |
1386 | (mactoolbox.o): New target. | |
1387 | ||
1388 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): | |
1389 | Use mac_run_loop_run_once instead of CFRunLoopRunInMode. | |
1390 | ||
1391 | * macfns.c (x_set_background_color, mac_window, x_create_tip_frame): | |
1392 | Use mac_set_frame_window_background instead of XSetWindowBackground. | |
1393 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: | |
1394 | Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible. | |
1395 | (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title | |
1396 | instead of SetWindowTitleWithCFString. | |
1397 | (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT. | |
1398 | Move function to mactoolbox.c. | |
1399 | (mac_update_title_bar) [TARGET_API_MAC_CARBON]: | |
1400 | Use mac_set_window_modified instead of SetWindowModified. | |
1401 | Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon. | |
1402 | (mac_window, x_create_tip_frame): Use mac_create_frame_window. | |
1403 | (Fx_focus_frame): Use mac_front_non_floating_window instead of | |
1404 | FrontNonFloatingWindow. Use mac_activate_window instead of | |
1405 | ActivateWindow. Use mac_active_non_floating_window instead of | |
1406 | ActiveNonFloatingWindow. | |
1407 | (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]: | |
1408 | Use mac_show_hourglass and mac_hide_hourglass. | |
1409 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse | |
1410 | instead of GetGlobalMouse. | |
1411 | (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window | |
1412 | instead of MoveWindow/SizeWindow/ShowWindow, respectively. | |
1413 | Use mac_bring_window_to_front instead of BringToFront. | |
1414 | (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to | |
1415 | mactoolbox.c. | |
1416 | (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to | |
1417 | mac_file_dialog in mactoolbox.c. Use mac_file_dialog. | |
1418 | (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to | |
1419 | mactoolbox.c. | |
1420 | ||
1421 | * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h. | |
1422 | (XtPointer): Move typedef from macmenu.c. | |
1423 | (enum button_type): Move enum from macmenu.c. | |
1424 | (widget_value): Move typedef from macmenu.c. | |
1425 | (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID) | |
1426 | (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) | |
1427 | (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) | |
1428 | (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) | |
1429 | (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) | |
1430 | (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) | |
1431 | (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) | |
1432 | (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c. | |
1433 | (Selection): Move typedef from macselect.c. | |
1434 | (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from | |
1435 | macterm.c. | |
1436 | (mac_set_window_title, mac_set_window_modified, mac_is_window_visible) | |
1437 | (mac_is_window_collapsed, mac_bring_window_to_front) | |
1438 | (mac_send_window_behind, mac_hide_window, mac_show_window) | |
1439 | (mac_collapse_window, mac_front_non_floating_window) | |
1440 | (mac_active_non_floating_window, mac_activate_window) | |
1441 | (mac_move_window_structure, mac_move_window, mac_size_window) | |
1442 | (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines. | |
1443 | ||
1444 | * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c. | |
1445 | (enum mac_menu_kind): Move enum to mactoolbox.c. | |
1446 | (min_menu_id): Move variable to mactoolbox.c. | |
1447 | (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise. | |
1448 | (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c. | |
1449 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
1450 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
1451 | [TARGET_API_MAC_CARBON]: Likewise. | |
1452 | (XtPointer): Move typedef to macgui.h. | |
1453 | (enum button_type): Move enum to macgui.h. | |
d02fe47d MB |
1454 | (widget_value): Move typedef to macgui.h. |
1455 | (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) | |
1456 | (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) | |
1457 | (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) | |
1458 | (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) | |
1459 | (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) | |
1460 | (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) | |
1461 | (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h. | |
1462 | (popup_activated_flag): Make variable non-static. | |
1463 | (x_activate_menubar, install_menu_quit_handler, pop_down_menu) | |
1464 | (add_menu_item, fill_menu, dispose_menus): | |
1465 | Move functions to mactoolbox.c. | |
1466 | (restore_show_help_function, menu_target_item_handler) | |
1467 | (install_menu_target_item_handler, mac_handle_dialog_event) | |
1468 | (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog) | |
1469 | [TARGET_API_MAC_CARBON]: Likewise. | |
1470 | (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise. | |
1471 | (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. | |
1472 | (find_and_call_menu_selection, name_is_separator): Make function | |
1473 | non-static. | |
1474 | (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern | |
1475 | to mactoolbox.c. | |
1476 | (set_frame_menubar): Don't call install_menu_quit_handler. | |
1477 | (menu_item_selection): New variable. | |
1478 | (mac_menu_show): Use create_and_show_popup_menu. | |
1479 | (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return | |
1480 | selection but set variable menu_item_selection. All uses changed. | |
1481 | (mac_fill_menubar): Rename from fill_menubar. All uses changed. | |
1482 | Call install_menu_quit_handler. Move to mactoolbox.c. | |
edd3ff1d | 1483 | |
d02fe47d MB |
1484 | * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h. |
1485 | (Selection): Move typedef to macgui.h. | |
1486 | (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype) | |
1487 | (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id): | |
1488 | Make variables non-static. | |
1489 | (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise. | |
1490 | (mac_handle_apple_event, cleanup_all_suspended_apple_events): | |
1491 | Make functions non-static. | |
1492 | (Vmac_service_selection) [MAC_OSX]: Likewise. | |
1493 | (mac_get_selection_from_symbol, get_flavor_type_from_symbol) | |
1494 | (mac_valid_selection_target_p, mac_clear_selection) | |
1495 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) | |
1496 | (mac_put_selection_value, mac_selection_has_target_p) | |
1497 | (mac_get_selection_value, mac_get_selection_target_list) | |
1498 | (init_apple_event_handler, install_drag_handler, remove_drag_handler): | |
1499 | Move functions to mactoolbox.c. | |
1500 | (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]: | |
1501 | Likewise. | |
1502 | (copy_scrap_flavor_data, mac_handle_service_event) | |
1503 | (install_service_handler) [MAC_OSX]: Likewise. | |
1504 | (syms_of_macselect) <Vmac_dnd_known_types>: | |
1505 | Use mac_dnd_default_known_types. | |
463f55ee | 1506 | |
d02fe47d MB |
1507 | * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): |
1508 | Move to mactoolbox.c. | |
1509 | (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15. | |
1510 | (Fx_selection_owner_p): Add EXFUN. | |
1511 | (install_window_handler, remove_window_handler, XSetWindowBackground): | |
1512 | Remove externs. | |
1513 | (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise. | |
1514 | (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise. | |
1515 | (x_raise_frame, x_lower_frame, mac_alert_sound_play) | |
1516 | (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse) | |
1517 | (mac_convert_frame_point_to_global, mac_set_frame_window_background) | |
1518 | (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush) | |
1519 | (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip) | |
1520 | (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar) | |
1521 | (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar) | |
1522 | (create_and_show_popup_menu, mac_get_selection_from_symbol) | |
1523 | (mac_valid_selection_target_p, mac_clear_selection) | |
1524 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) | |
1525 | (mac_put_selection_value, mac_selection_has_target_p) | |
1526 | (mac_get_selection_value, mac_get_selection_target_list): Add externs. | |
1527 | (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass) | |
1528 | (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog) | |
1529 | (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise. | |
1530 | (mac_run_loop_run_once) [MAC_OSX]: Likewise. | |
1531 | (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. | |
1532 | (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise. | |
1533 | (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. | |
1534 | (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. | |
463f55ee | 1535 | |
d02fe47d | 1536 | * mactoolbox.c: New file. |
af253914 | 1537 | |
d8d30dff | 1538 | 2008-04-18 Jason Rumney <jasonr@gnu.org> |
af253914 | 1539 | |
d02fe47d | 1540 | * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned. |
af253914 | 1541 | |
8ee085a4 SM |
1542 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
1543 | ||
73d798d5 SM |
1544 | * character.c (Fmultibyte_char_to_unibyte): |
1545 | Return latin1 chars unchanged. | |
5556875b | 1546 | |
8ee085a4 SM |
1547 | * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only |
1548 | relocated if it points to `name'. | |
1549 | ||
5dff5999 KH |
1550 | 2008-04-17 Kenichi Handa <handa@m17n.org> |
1551 | ||
1552 | * data.c (Faset): Allow setting a multibyte character in an | |
1553 | ASCII-only unibyte string. | |
1554 | ||
1555 | * lisp.h (STRING_SET_MULTIBYTE): New macro. | |
1556 | ||
a51f4969 SM |
1557 | 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca> |
1558 | ||
1559 | * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now | |
1560 | done in config.h. | |
1561 | ||
add553ac JB |
1562 | 2008-04-16 Juanma Barranquero <lekktu@gmail.com> |
1563 | ||
1564 | * character.c (Fchar_bytes, Fchar_width, Fstring_width) | |
1565 | (Fchar_direction): Add usage in the docstring. | |
1566 | ||
8ad7b280 CY |
1567 | 2008-04-15 Chong Yidong <cyd@stupidchicken.com> |
1568 | ||
1569 | * keyboard.c (read_key_sequence): Remove always-true checks. | |
1570 | ||
e157d7ba JR |
1571 | 2008-04-14 Jason Rumney <jasonr@gnu.org> |
1572 | ||
1573 | * w32font.c (w32font_open_internal): Set max_bounds.descent in | |
1574 | compatibility struct, for better underline positioning. | |
1575 | ||
9ec3aaef | 1576 | 2008-04-13 David Hansen <david.hansen@gmx.net> |
48f7d213 MA |
1577 | |
1578 | * dbusbind.c (dbus-get-unique-name): Remove extra copying of name | |
1579 | string. | |
1580 | ||
36c08864 DN |
1581 | 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu> |
1582 | ||
1583 | * m/hp800.h (XUINT, XSET): Remove. | |
1584 | ||
f5acc071 JB |
1585 | 2008-04-12 Juanma Barranquero <lekktu@gmail.com> |
1586 | ||
1587 | * fileio.c (Fexpand_file_name): Add declaration for `p' missing in | |
1588 | previous change. | |
1589 | ||
5b5a2ea1 SM |
1590 | 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca> |
1591 | ||
1592 | * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars. | |
1593 | Relocate `nm' after calling DECODE_FILE, in case the GC was run. | |
1594 | ||
492d9fd6 SM |
1595 | 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> |
1596 | ||
1597 | * keymap.h (map_keymap_canonical): Declare. | |
1598 | * xmenu.c (single_keymap_panes): Use it. | |
1599 | ||
dd60787c GM |
1600 | 2008-04-11 Glenn Morris <rgm@gnu.org> |
1601 | ||
1602 | * eval.c (Fdefvaralias): If the alias is bound and the target is not, | |
1603 | set the target's value to that of the alias. | |
1604 | ||
c23b5410 SM |
1605 | 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> |
1606 | ||
1607 | * term.c (set_tty_color_mode): Left over typo. | |
1608 | ||
e89b536d MA |
1609 | 2008-04-10 Michael Albinus <michael.albinus@gmx.de> |
1610 | ||
1611 | * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK | |
f5acc071 | 1612 | only after check for file name handler functions. Signal, when |
e89b536d MA |
1613 | native functionality is not supported. |
1614 | (syms_of_fileio): Declare it unconditionally. | |
1615 | ||
40a339c8 JR |
1616 | 2008-04-10 Jason Rumney <jasonr@gnu.org> |
1617 | ||
31403b24 JR |
1618 | * w32menu.c (is_simple_dialog, simple_dialog_show): New functions. |
1619 | (Fx_popup_dialog): Handle simple yes/no questions as dialogs. | |
1620 | ||
40a339c8 JR |
1621 | * w32.c (logon_network_drive): Also logon to remote drives that |
1622 | are mapped to drive letters. | |
1623 | ||
96a7394f GM |
1624 | 2008-04-10 Glenn Morris <rgm@gnu.org> |
1625 | ||
1626 | * xdisp.c (truncate-partial-width-windows): Doc fix. | |
1627 | ||
34b67b0f SM |
1628 | 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca> |
1629 | ||
1630 | * fileio.c (read_file_name_cleanup, Fread_file_name_internal): | |
1631 | Move functions to minibuffer.el. | |
1632 | (syms_of_fileio): Don't declare them. | |
1633 | ||
c025fb0a SM |
1634 | 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
1635 | ||
ba5ff07b SM |
1636 | * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el. |
1637 | (syms_of_minibuf): Remove its initialization. | |
1638 | ||
c025fb0a SM |
1639 | * minibuf.c (temp_echo_area_glyphs): Remove unused function. |
1640 | ||
7a6a86ad JB |
1641 | 2008-04-09 Juanma Barranquero <lekktu@gmail.com> |
1642 | ||
1643 | * editfns.c (Ffield_string_no_properties): Fix typo in docstring. | |
1644 | ||
cf907d69 JR |
1645 | 2008-04-09 Jason Rumney <jasonr@gnu.org> |
1646 | ||
3dc94c30 JR |
1647 | * makefile.w32-in (distclean): Delete makefile too. |
1648 | (maintainer-clean): New target. | |
1649 | ||
8d28646b JR |
1650 | * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change. |
1651 | ||
cf907d69 JR |
1652 | * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs |
1653 | for new font backend and composite cases. | |
1654 | ||
ef5eb925 JD |
1655 | 2008-04-09 Jan Djärv <jan.h.d@swipnet.se> |
1656 | ||
1657 | * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT. | |
1658 | Most of the code moved to run_timers. | |
1659 | (do_pending_atimers): Call run_timers. | |
1660 | (run_timers): New function. | |
1661 | ||
cf907d69 JR |
1662 | * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers, |
1663 | run atimers. | |
ef5eb925 JD |
1664 | |
1665 | * process.c (wait_reading_process_output): The same as above. | |
1666 | ||
9b2cd403 SM |
1667 | 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
1668 | ||
32bae13c SM |
1669 | * minibuf.c (last_exact_completion): Remove variable. |
1670 | (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete) | |
1671 | (complete_and_exit_1, complete_and_exit_2) | |
1672 | (Fminibuffer_complete_and_exit, Fminibuffer_complete_word) | |
1673 | (Fdisplay_completion_list, display_completion_list_1) | |
1674 | (Fminibuffer_completion_help, Fself_insert_and_exit) | |
8d28646b JR |
1675 | (Fexit_minibuffer, Fminibuffer_message): Move functions to |
1676 | minibuffer.el. | |
32bae13c SM |
1677 | (syms_of_minibuf): Remove corresponding initializations. |
1678 | ||
5c4cc82a SM |
1679 | * keyboard.c (Qdeactivate_mark): New var. |
1680 | (command_loop_1): Use it to call `deactivate-mark'. | |
1681 | (syms_of_keyboard): Initialize it. | |
1682 | ||
9b2cd403 SM |
1683 | * xdisp.c (redisplay_internal): Reset tty's color_mode when switching |
1684 | to another frame. | |
1685 | * frame.c (do_switch_frame): Refine the top_frame/async_visible code. | |
1686 | Don't call set_tty_color_mode. | |
1687 | (store_frame_param): Reset previous_frame rather than call | |
1688 | set_tty_color_mode. | |
1689 | * term.c (set_tty_color_mode): Rewrite. | |
1690 | * dispextern.h (set_tty_color_mode): New type. | |
1691 | * termchar.h (struct tty_display_info): Add `previous_color_mode'. | |
1692 | ||
84cb7b45 SM |
1693 | 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca> |
1694 | ||
1695 | * keymap.c (access_keymap): Remove the value 2 for t_ok which was used | |
1696 | for generic chars, which do not exist any more in emacs-unicode. | |
1697 | ||
3ed051d4 MA |
1698 | 2008-04-08 Michael Albinus <michael.albinus@gmx.de> |
1699 | ||
1700 | * coding.c (detect_coding_emacs_mule) | |
1701 | (Ffind_operation_coding_system): Fix typo. | |
1702 | ||
58c3ea42 JR |
1703 | 2008-04-08 Jason Rumney <jasonr@gnu.org> |
1704 | ||
3bf8d230 JR |
1705 | * w32uniscribe.c (SNAME): Extract only symbol name. |
1706 | ||
56a70cca JR |
1707 | * w32font.h (struct w32_metric_cache): New struct. |
1708 | (w32font_info): Use it. | |
1709 | (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL) | |
1710 | (CACHE_BLOCKSIZE): New constants. | |
3ed051d4 | 1711 | |
58c3ea42 JR |
1712 | * w32font.c (Qja, Qko, Qzh): New symbols. |
1713 | (syms_of_w32font): Initialise them. | |
1714 | (font_matches_spec): Use them to filter by language. | |
1715 | (recompute_cached_metrics): Remove function. | |
1716 | (compute_metrics, clear_cached_metrics): New functions. | |
1717 | (w32font_encode_char): Use them to manage metric cache. | |
1718 | (w32font_text_extents): Cache metrics for all glyphs on demand. | |
1719 | Delay converting glyph indices to WORD until needed. | |
1720 | (w32font_open_internal): Initialize metric cache to empty. | |
1721 | (registry_to_w32_charset): Charset should always be a symbol. | |
1722 | (fill_in_logfont, list_all_matching_fonts): Family should | |
1723 | always be a symbol. | |
1724 | ||
0ce24b2d JR |
1725 | 2008-04-06 Jason Rumney <jasonr@gnu.org> |
1726 | ||
1727 | * w32uniscribe.c (uniscribe_shape): Increase items buffer size. | |
1728 | Give up if glyph indices not supported. Use uniscribe obtained | |
1729 | ABC widths for individual metrics. Map glyph clusters back to | |
1730 | characters using fClusterStart flag. Return number of glyphs | |
1731 | produced, not chars processed. | |
b7655e0c | 1732 | (uniscribe_shape): Map char at FROM to current glyph. |
0ce24b2d | 1733 | |
5bc6ddff | 1734 | 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
56613f06 | 1735 | |
fbf57abb JB |
1736 | * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]: |
1737 | Use SetMenuItemHierarchicalMenu. | |
56613f06 | 1738 | |
5bc6ddff | 1739 | 2008-04-05 Jason Rumney <jasonr@gnu.org> |
93421a1f | 1740 | |
5bc6ddff MB |
1741 | * image.c (pbm_load): Allow color values up to 65535. |
1742 | Throw an error if max_color_idx is outside the supported range. | |
1743 | Report an error when image size is invalid. | |
1744 | Read two bytes at a time when raw images have max_color_idx above 255. | |
1f816871 | 1745 | |
5bc6ddff | 1746 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> |
5ed6ba5b | 1747 | |
5bc6ddff MB |
1748 | * w32.c (readdir): If FindFirstFile/FindNextFile return in |
1749 | cFileName a file name that includes `?' characters, use the 8+3 | |
1750 | alias in cAlternateFileName instead. | |
5ed6ba5b | 1751 | |
5bc6ddff | 1752 | 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp> |
32c06229 | 1753 | |
5bc6ddff MB |
1754 | * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't |
1755 | append "CCL: Quitted" when the CCL program is quitted. | |
1756 | (setup_ccl_program): Initialize ccl->quit_silently to zero. | |
32c06229 | 1757 | |
5bc6ddff | 1758 | * ccl.h (struct ccl_program): New member quit_silently. |
32c06229 | 1759 | |
c36e15db CY |
1760 | 2008-04-05 Chong Yidong <cyd@stupidchicken.com> |
1761 | ||
9605d567 CY |
1762 | * search.c (compile_pattern_1): Treat non-nil and non-string of |
1763 | search-spaces-regexp as nil. | |
1764 | ||
c36e15db CY |
1765 | * minibuf.c (Fassoc_string): Tweak docstring. |
1766 | ||
40beb147 EZ |
1767 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> |
1768 | ||
1769 | * dired.c (Ffile_attributes): Support inode numbers wider than 32 | |
1770 | bits. Remove ugly WINDOWSNT-specific kludge introduced on | |
1771 | 2008-03-14 to force inode be positive. | |
1772 | ||
1773 | * w32.c (sys_chown, stat, fstat): Use S_* constants instead of | |
1774 | _S_* ones, since we now use our own sys/stat.h. | |
1775 | (stat, fstat): Don't mangle the inode number. | |
aa08d1ff | 1776 | (init_user_info): Don't restrict UID and GID to 0-60000 range. |
40beb147 | 1777 | |
4591d6cb SM |
1778 | 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca> |
1779 | ||
d4417eb0 SM |
1780 | * frame.h (struct frame): Give one more bit to `visible' since we use |
1781 | values larger than 1 to indicate obscured frames on ttys. | |
1782 | ||
00f7c5ed SM |
1783 | * keymap.c (Qkeymap_canonicalize): New var. |
1784 | (Fmap_keymap_internal): New fun. | |
1785 | (describe_map): Use keymap-canonicalize. | |
1786 | ||
4591d6cb SM |
1787 | * undo.c (last_boundary_buffer, last_boundary_position): New vars. |
1788 | (Fundo_boundary): Set them. | |
1789 | (syms_of_undo): Initialize them. | |
1790 | (record_point): Use them instead of last_point_position*. | |
1791 | (last_undo_buffer): Change type. | |
1792 | ||
3187540e JR |
1793 | 2008-04-04 Jason Rumney <jasonr@gnu.org> |
1794 | ||
0ce24b2d JR |
1795 | * w32font.c (w32font_text_extents): Use font's ascent and descent. |
1796 | (recompute_cached_metrics): Don't set ascent and descent per char. | |
1797 | ||
3187540e | 1798 | * w32uniscribe.c (uniscribe_check_otf): Fix last change. |
4591d6cb | 1799 | (uniscribe_check_otf): Add GC protection before consing. |
d0bfec76 | 1800 | Rearrange loop for counting features. |
3187540e | 1801 | |
f1a6b216 SM |
1802 | 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca> |
1803 | ||
1804 | * insdel.c (insert_from_buffer_1): Don't compare bytes in destination | |
1805 | buffer with byte-size of source buffer. | |
1806 | ||
1d8dcf63 CY |
1807 | 2008-04-03 Chong Yidong <cyd@stupidchicken.com> |
1808 | ||
1809 | * callint.c (Fcall_interactively): Handle temporary region even | |
1810 | when shift-select-mode is off. | |
1811 | ||
6b8aa22a JR |
1812 | 2008-04-03 Jason Rumney <jasonr@gnu.org> |
1813 | ||
1814 | * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec. | |
1815 | ||
2f3cbb32 KH |
1816 | 2008-04-03 Kenichi Handa <handa@m17n.org> |
1817 | ||
1818 | * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO. | |
1819 | (CATEGORY_MASK_UTF_16): Likewise. | |
1820 | (detect_coding_utf_16): Add heuristics to reject utf-16 for a | |
1821 | binary file. | |
1822 | (detect_coding): Add null-byte detection for a binary file. | |
1823 | (detect_coding_system): Likewise. | |
1824 | ||
43f4f91c JR |
1825 | 2008-04-03 Jason Rumney <jasonr@gnu.org> |
1826 | ||
0c1b4ae2 JR |
1827 | * w32uniscribe.c: New file. |
1828 | ||
1829 | * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c. | |
1830 | ||
1831 | * w32font.h (uniscribe_check_otf): Declare for w32font.c. | |
1832 | ||
1833 | * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot) | |
1834 | (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi) | |
1835 | (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya) | |
1836 | (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri) | |
1837 | (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic) | |
1838 | (Qphonetic): New symbols. | |
1839 | (syms_of_w32font): Initialize them. | |
1840 | (font_supported_scripts): Use them. | |
1841 | (w32font_list_family): List all charsets. | |
1842 | (w32font_text_extents, recompute_cached_metrics): Fix metric | |
1843 | calculations. | |
1844 | (w32_enumfont_pattern_entity): Make full_type a DWORD. | |
1845 | Give opentype fonts their own format. | |
1846 | (font_matches_spec): New arguments backend and logfont. | |
1847 | Handle :otf spec for uniscribe backend. | |
1848 | (add_font_entity_to_list): Match truetype fonts in uniscribe backend. | |
1849 | (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied. | |
4591d6cb | 1850 | |
0c1b4ae2 JR |
1851 | * w32fns.c (Fx_create_frame): Conditionally register uniscribe |
1852 | font backend. | |
1853 | (globals_of_w32fns): Initialize uniscribe font backend. | |
1854 | ||
fbf57abb | 1855 | * makefile.w32-in (CONFIG_H): New variable. Use it to clean up |
0c1b4ae2 JR |
1856 | dependencies. |
1857 | (w32uniscribe.$(O)): New file to build. | |
1858 | (FONT_OBJ): Include w32uniscribe.$(O). | |
1859 | (LIBS): Add uniscribe libraries. | |
1860 | ||
43f4f91c JR |
1861 | * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val. |
1862 | ||
75043a7d CY |
1863 | 2008-04-02 Chong Yidong <cyd@stupidchicken.com> |
1864 | ||
1865 | * callint.c (Vshift_select_mode): New var. | |
1866 | (Finteractive): Document new ^ spec. | |
1867 | (Fcall_interactively): Call handle-shift-selection if the ^ spec | |
1868 | is present. | |
1869 | ||
1870 | * keyboard.c (Vthis_command_keys_shift_translated): New var. | |
1871 | (command_loop_1): Avoid running the direct display versions of | |
1872 | forward-char and backward-char if shift-selection may occur. | |
75043a7d CY |
1873 | (read_key_sequence): Set Vthis_command_keys_shift_translated if |
1874 | shift-translation takes place. | |
1875 | ||
1876 | * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to | |
1877 | avoid clobbering by define-minor-mode. | |
1878 | ||
1879 | * cmds.c (Fforward_char, Fbackward_char, Fforward_line) | |
1880 | (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec. | |
1881 | ||
1882 | * syntax.c (Fforward_word): Add ^ interactive spec. | |
1883 | ||
1884 | * window.c (Fscroll_up, Fscroll_down, Fscroll_left) | |
1885 | (Fscroll_right): Add ^ interactive spec. | |
1886 | ||
b2b7f29e SM |
1887 | 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca> |
1888 | ||
a432c0a6 SM |
1889 | * xdisp.c (try_window_id): Don't forget to reset delta_bytes. |
1890 | ||
994b75e0 SM |
1891 | * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup. |
1892 | ||
b2b7f29e SM |
1893 | * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove. |
1894 | ||
e99c7806 JL |
1895 | 2008-03-31 Juri Linkov <juri@jurta.org> |
1896 | ||
1897 | * window.c (Fdisplay_buffer): Reinitialize `tem' to nil. | |
1898 | ||
1c9c1270 JD |
1899 | 2008-03-30 Jan Djärv <jan.h.d@swipnet.se> |
1900 | ||
1901 | * gtkutil.c (xg_set_geometry): Fix indentation. | |
994b75e0 | 1902 | (xg_resize_outer_widget): Remove. |
1c9c1270 JD |
1903 | (x_wm_size_hint_off): Fix indentation. |
1904 | (xg_frame_set_char_size): Call flush_and_sync after | |
1905 | gtk_window_resize. | |
1906 | (x_wm_set_size_hint): Pass NULL as geometry window to | |
1907 | gtk_window_set_geometry_hints due to Gtk+ bug nr 68668. | |
1908 | Add menu bar and tool bar height to base height. | |
1909 | (xg_update_frame_menubar, free_frame_menubar) | |
1910 | (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) | |
994b75e0 SM |
1911 | (update_frame_tool_bar, free_frame_tool_bar): |
1912 | Change xg_resize_outer_widget to xg_frame_set_char_size. | |
1c9c1270 | 1913 | |
90b3fc84 MA |
1914 | 2008-03-30 Michael Albinus <michael.albinus@gmx.de> |
1915 | ||
1916 | * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol. | |
1917 | (Fdbus_call_method): New parameter TIMEOUT. | |
1918 | (dbus-send-signal): Optimize UNGCPRO call. | |
1919 | ||
7ae6d1d1 JL |
1920 | 2008-03-29 Juri Linkov <juri@jurta.org> |
1921 | ||
1922 | * window.c (Fdisplay_buffer): Move call to | |
1923 | Vsplit_window_preferred_function out of conditions that check | |
1924 | if window is eligible for vertical splitting. | |
1925 | When Vsplit_window_preferred_function is non-nil, call it and use | |
1926 | its non-nil return value as window. Otherwise, continue doing | |
1927 | vertical splitting using Fsplit_window with arg horflag=nil. | |
1928 | (syms_of_window) <Vsplit_window_preferred_function>: Change the | |
1929 | default value from `split-window' to nil. | |
1930 | ||
f03f8f2c JL |
1931 | 2008-03-29 Juri Linkov <juri@jurta.org> |
1932 | ||
1933 | * callint.c (Fcall_interactively): Revert 2008-03-16 change | |
1934 | for interactive code letters 'b' and 'B'. | |
1935 | ||
6d557778 EZ |
1936 | 2008-03-29 Eli Zaretskii <eliz@gnu.org> |
1937 | ||
1938 | * fileio.c (Fexpand_file_name): Convert the value of $HOME to a | |
1939 | multibyte string. | |
1940 | ||
58555d81 SM |
1941 | 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca> |
1942 | ||
1943 | * keyboard.c (pending_funcalls): New var. | |
1944 | (timer_check): Run it. | |
1945 | (syms_of_keyboard): Initialize it. | |
1946 | * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions) | |
1947 | (Vdelete_terminal_functions): New vars. | |
1948 | (syms_of_terminal): Initialize them. | |
1949 | (Fdelete_terminal): Run delete-terminal-functions. | |
1950 | * xdisp.c (safe_eval): Rewrite. | |
1951 | (safe_call2): New fun. | |
1952 | * frame.c (Qdelete_frame_functions): New var. | |
1953 | (syms_of_frame): Initialize it. | |
1954 | (Fdelete_frame): Use it and use safe_call2 and pending_funcalls. | |
1955 | * lisp.h (safe_call2, pending_funcalls): Declare. | |
1956 | ||
4c92f429 AS |
1957 | 2008-03-28 Andreas Schwab <schwab@suse.de> |
1958 | ||
1959 | * indent.c (Fmove_to_column): Move declaration before statements. | |
1960 | ||
a1567c45 SM |
1961 | 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca> |
1962 | ||
2806a183 SM |
1963 | * frame.h (enum fullscreen_type): Give it a name. Move it before use. |
1964 | (struct frame): Use bit fields for boolean vars. | |
1965 | ||
eef60308 SM |
1966 | * process.c (server_accept_connection): Simplify naming. |
1967 | (emacs_get_tty_pgrp): Use SDATA. | |
1968 | ||
a1567c45 SM |
1969 | * coding.c (decode_coding_object): Fix last change. |
1970 | ||
30076589 JR |
1971 | 2008-03-27 Jason Rumney <jasonr@gnu.org> |
1972 | ||
1973 | * w32fns.c (start_hourglass): Suppress hourglass on tty frames. | |
1974 | ||
880820fe KH |
1975 | 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp> |
1976 | ||
1977 | * charset.c (Fdefine_charset_internal): Change the way of | |
1978 | registering charsets in Vcharset_order_list. | |
1979 | (syms_of_charset): Make the charset `eight-bit' supplementary. | |
1980 | ||
3cf8cdfb CY |
1981 | 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change) |
1982 | ||
1983 | * regex.c (EXTEND_BUFFER): Change order of pointer addition | |
1984 | operations, to avoid having the difference between pointers | |
1985 | overflow. | |
1986 | ||
ef6f5c0e SM |
1987 | 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> |
1988 | ||
80e3db56 SM |
1989 | * indent.c (check_display_width): New fun. |
1990 | (scan_for_column): Use it. | |
1991 | ||
c397dc7a SM |
1992 | * data.c (syms_of_data): Mark most-positive-fixnum and |
1993 | most-negative-fixnum as constants. | |
1994 | ||
bf6b4d58 SM |
1995 | * xdisp.c (redisplay_internal): Reset selected_frame earlier. |
1996 | ||
ef6f5c0e SM |
1997 | * indent.c (scan_for_column): Extract from current_column_1. |
1998 | Merge with the same code from Fmove_to_column. | |
1999 | (current_column_1, Fmove_to_column): Use it. | |
2000 | ||
72d5003d SM |
2001 | 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca> |
2002 | ||
12270607 SM |
2003 | * keymap.c (map_keymap_internal): New fun. |
2004 | (map_keymap): Use it. | |
2005 | (Fmap_keymap_internal): New fun. | |
2006 | (Fmap_keymap): Remove left-out test from before make_save_value. | |
2007 | ||
a10cca6c SM |
2008 | * keymap.c (Fmap_keymap): Use `map-keymap-sorted. |
2009 | ||
d7b10f4c SM |
2010 | * frame.c (Fmodify_frame_parameters, x_set_frame_parameters): |
2011 | Use XCAR/XCDR. | |
2012 | ||
5431bd6a SM |
2013 | * process.h (struct Lisp_Process): Remove filter_multibyte. |
2014 | * process.c (QCfilter_multibyte): Remove. | |
2015 | (setup_process_coding_systems): Don't use filter_multibyte. | |
2016 | (Fstart_process, Fmake_network_process): Don't set filter_multibyte. | |
2017 | (read_process_output): Don't adjust multibyteness to filter_multibyte. | |
2018 | (Fset_process_filter_multibyte): Change the coding-system to | |
2019 | approximate the previous behavior. | |
2020 | (Fprocess_filter_multibyte_p): Get the multibyteness straight from the | |
2021 | coding-system. | |
2022 | ||
72d5003d SM |
2023 | * coding.c (decode_coding_object): When not decoding into a buffer, |
2024 | obey the coding system's preference of (uni|multi)byte. | |
2025 | ||
438eba3c SM |
2026 | 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca> |
2027 | ||
2028 | * casefiddle.c (casify_object): Avoid pathological N^2 worst case if | |
2029 | every char is changed and has a different byte-length. | |
2030 | (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word): | |
2031 | Fix int -> EMACS_INT. | |
2032 | ||
9ec3aaef | 2033 | 2008-03-23 David Hansen <david.hansen@gmx.net> |
a8e72f4f | 2034 | |
438eba3c | 2035 | * dbusbind.c (xd_read_message): Remove extra copying of message |
a8e72f4f MA |
2036 | strings. Check for NULL `interface' or `member'. |
2037 | ||
b07103dc EZ |
2038 | 2008-03-22 Eli Zaretskii <eliz@gnu.org> |
2039 | ||
2040 | * w32.c (readdir): If FindFirstFile/FindNextFile return in | |
2041 | cFileName a file name that includes `?' characters, use the 8+3 | |
2042 | alias in cAlternateFileName instead. | |
2043 | ||
5371d722 SM |
2044 | 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca> |
2045 | ||
2046 | * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT. | |
2047 | ||
6ba7f443 SM |
2048 | 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
2049 | ||
2050 | * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT. | |
2051 | (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg, | |
2052 | work on current_buffer only instead (that was already the case | |
2053 | for some of the code anyway). | |
2054 | * buffer.h (set_point, set_point_both): Remove buffer arg, use long int. | |
2055 | (temp_set_point, temp_set_point_both): Use EMACS_INT. | |
2056 | (SET_PT, SET_PT_BOTH): Adjust. | |
2057 | * intervals.h (set_point, temp_set_point, set_point_both) | |
2058 | (temp_set_point_both): Remove redundant declarations. | |
2059 | ||
bf1c0f27 SM |
2060 | 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
2061 | ||
2062 | * fileio.c (Finsert_file_contents): | |
2063 | * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT. | |
2064 | * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right | |
2065 | when buffer != current_buffer anyway. | |
2066 | ||
acab783e AS |
2067 | 2008-03-20 Andreas Schwab <schwab@suse.de> |
2068 | ||
2069 | * callint.c (Fcall_interactively) [case 'B']: Use other-buffer | |
2070 | as default. | |
2071 | ||
d148e14d JR |
2072 | 2008-03-19 Jason Rumney <jasonr@gnu.org> |
2073 | ||
2074 | * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. | |
2075 | (syms_of_w32fns): Initialize them. | |
2076 | (HOURGLASS_ID): New constant. | |
2077 | (x_window_to_frame): Don't check hourglass_window. | |
2078 | (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer. | |
2079 | (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor. | |
2080 | (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor. | |
2081 | (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor. | |
2082 | Only change the cursor if hourglass is not active. | |
2083 | (Fx_create_frame): Initialize frame's current_cursor. | |
2084 | (hourglass_atimer): Remove. | |
2085 | (hourglass_started): New function. | |
2086 | (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. | |
2087 | (show_hourglass): Adapt to w32, changing argument to frame. | |
2088 | ||
2089 | * w32term.h (struct w32_output): Remove hourglass_window. | |
2090 | Add current_cursor. | |
2091 | ||
2092 | * eval.c (call_debugger, Fsignal): | |
2093 | * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) | |
2094 | (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) | |
2095 | (Fexecute_extended_command, cancel_hourglass_unwind): | |
2096 | * minibuf.c (read_minibuf): | |
2097 | * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM. | |
63558020 | 2098 | |
a5c54077 JB |
2099 | 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca> |
2100 | ||
2101 | * window.c (run_funs): New fun. | |
2102 | (run_window_configuration_change_hook): Use it to run the buffer-local | |
2103 | and the global part of the hook. | |
2104 | ||
2105 | * xdisp.c (format_mode_line_unwind_data): Add window argument. | |
2106 | (unwind_format_mode_line): Restore selected window. | |
2107 | (x_consider_frame_title, Fformat_mode_line): Set selected window. | |
2108 | ||
f9f3238f SM |
2109 | 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca> |
2110 | ||
253c3c82 SM |
2111 | * editfns.c (Fchar_equal): Check they are valid characters. |
2112 | ||
f9f3238f SM |
2113 | * buffer.h (Fbuffer_list): Declare (for use in callint.c). |
2114 | ||
065a118d AS |
2115 | 2008-03-17 Andreas Schwab <schwab@suse.de> |
2116 | ||
0b8be006 AS |
2117 | * regex.c (re_match_2_internal): Properly match raw 8-bit bytes |
2118 | against a charset. | |
2119 | ||
065a118d AS |
2120 | * lisp.h (Fbuffer_list): Declare. |
2121 | ||
880820fe | 2122 | 2008-03-17 Jan Djärv <jan.h.d@swipnet.se> |
d3b2a6da JD |
2123 | |
2124 | * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if | |
2125 | handlebox_widget is != 0. | |
2126 | ||
6206d6c2 JL |
2127 | 2008-03-16 Juri Linkov <juri@jurta.org> |
2128 | ||
2129 | * callint.c (Fcall_interactively): For interactive code letters | |
2130 | 'b' and 'B' put the buffer list into the list of default "future" | |
2131 | values of the minibuffer. | |
2132 | ||
f5020181 AS |
2133 | 2008-03-16 Andreas Schwab <schwab@suse.de> |
2134 | ||
a864f6d6 AS |
2135 | * keyboard.c (read_key_sequence): Fix downcasing of letters with |
2136 | modifiers. | |
2137 | ||
f5020181 AS |
2138 | * regex.c (re_match_2_internal): Correct matching of a charset |
2139 | against latin-1 characters. | |
2140 | ||
03f244e2 KH |
2141 | 2008-03-16 Kenichi Handa <handa@m17n.org> |
2142 | ||
2143 | * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY) | |
2144 | (STRING_CHAR_ADVANCE_NO_UNIFY): New macros. | |
f9f3238f SM |
2145 | (coding_alloc_by_making_gap): Fix the way to preserve data in the gap. |
2146 | (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap. | |
03f244e2 KH |
2147 | (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of |
2148 | CHAR_STRING_ADVANCE. | |
2149 | (produce_chars): Fix for the case that the source and the | |
2150 | destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY | |
2151 | instead of CHAR_STRING_ADVANCE. | |
2152 | (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of | |
2153 | STRING_CHAR_ADVANCE. | |
2154 | ||
0e2501ed AS |
2155 | 2008-03-15 Andreas Schwab <schwab@suse.de> |
2156 | ||
2157 | * regex.c (re_match_2_internal): Correct matching of eight bit | |
2158 | characters in unibyte strings. | |
2159 | ||
7723e095 MR |
2160 | 2008-03-15 Martin Rudalics <rudalics@gmx.at> |
2161 | ||
2162 | * buffer.c (overlays_in, Foverlays_in): Include empty overlays | |
2163 | at end of range when it coincides with the end of the buffer. | |
2164 | ||
f507f365 EZ |
2165 | 2008-03-14 Eli Zaretskii <eliz@gnu.org> |
2166 | ||
294f1153 EZ |
2167 | * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive. |
2168 | ||
f507f365 EZ |
2169 | * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change. |
2170 | ||
64f0809d JR |
2171 | 2008-03-14 Jason Rumney <jasonr@gnu.org> |
2172 | ||
956ae531 JR |
2173 | * editfns.c (initial_tz): New variable. |
2174 | (syms_of_editfns): Initialize it. | |
2175 | (Fset_time_zone_rule): Set it when first called. | |
2176 | Use it when TZSTRING is nil. | |
2177 | ||
64f0809d JR |
2178 | * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO) |
2179 | (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions. | |
2180 | (monitor_from_point_fn, get_monitor_info_fn): New globals. | |
2181 | (globals_of_w32fns): Initialize them. | |
2182 | (compute_tip_xy): Use them to position tooltips. | |
2183 | ||
21a4ff8e GM |
2184 | 2008-03-14 Glenn Morris <rgm@gnu.org> |
2185 | ||
2186 | * emacs.c (main): Revert previous change. | |
2187 | (standard_args): Revert -internal-script back to -scriptload, | |
2188 | and remove the long-option form. | |
2189 | ||
a09a5b5b GM |
2190 | 2008-03-13 Glenn Morris <rgm@gnu.org> |
2191 | ||
2192 | * emacs.c (main, standard_args): Rename -scriptload to -internal-script. | |
2193 | Remove option -enable-font-backend. | |
2194 | ||
1c55ebd1 SM |
2195 | 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> |
2196 | ||
2197 | * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. | |
2198 | ||
880820fe | 2199 | 2008-03-11 Jan Djärv <jan.h.d@swipnet.se> |
c523e161 JD |
2200 | |
2201 | * xterm.c (x_connection_closed): For GTK: If this is the last | |
2202 | terminal just exit without closing the display. | |
2203 | ||
7145be81 JR |
2204 | 2008-03-11 Jason Rumney <jasonr@gnu.org> |
2205 | ||
2206 | * w32font.c (w32font_full_name): Use floor to round. | |
2207 | ||
e6201af3 | 2208 | 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change) |
ce9033f8 JD |
2209 | |
2210 | * sound.c (alsa_configure): Declare vol at beginning of block. | |
2211 | ||
e6201af3 | 2212 | * fontset.c (Ffontset_info): Remove extra semicolon. |
ce9033f8 | 2213 | |
390b81fa | 2214 | 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca> |
acd37560 | 2215 | |
56388398 MB |
2216 | * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum |
2217 | size of resulting string. | |
af0ad939 | 2218 | |
390b81fa | 2219 | 2008-03-10 Jason Rumney <jasonr@gnu.org> |
acd37560 | 2220 | |
56388398 | 2221 | * dispnew.c (adjust_glyph_matrix): Initialize window_height. |
acd37560 | 2222 | |
390b81fa | 2223 | 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
acd37560 | 2224 | |
56388398 MB |
2225 | * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. |
2226 | Don't pretend as if characters with display property haven't been | |
2227 | consumed for string-replacing-string case. | |
acd37560 | 2228 | |
223ed6db KS |
2229 | 2008-03-08 Kim F. Storm <storm@cua.dk> |
2230 | ||
2231 | * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. | |
2232 | (get_next_display_element, next_element_from_string) | |
2233 | (next_element_from_ellipsis, next_element_from_buffer): Use it. | |
2234 | ||
28545f7c AS |
2235 | 2008-03-08 Andreas Schwab <schwab@suse.de> |
2236 | ||
2237 | * process.h (struct Lisp_Process): Declare bit fields as unsigned. | |
2238 | ||
c960bff8 JR |
2239 | 2008-03-06 Jason Rumney <jasonr@gnu.org> |
2240 | ||
290afd83 JB |
2241 | * w32font.c (w32_registry): Take font_type argument. Use ANSI |
2242 | when charset not specified. Only translate ANSI to unicode when | |
c960bff8 JR |
2243 | font_type is truetype. |
2244 | (w32font_coverage_ok): New function. | |
2245 | (add_font_entity_to_list): Use it to filter unsuitable fonts. | |
2246 | ||
87b8ce92 KH |
2247 | 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp> |
2248 | ||
2249 | * lread.c (Fread_char): Resolve modifiers. | |
2250 | (Fread_char_exclusive): Likewise. | |
2251 | ||
2252 | * character.c (char_resolve_modifier_mask): New function. | |
2253 | (char_string): Use char_resolve_modifier_mask. | |
2254 | (Fchar_resolve_modifiers): New function. | |
2255 | (syms_of_character): Declare Fchar_resolve_modifiers as Lisp | |
2256 | function. | |
2257 | ||
cefd56f6 JR |
2258 | 2008-03-04 Jason Rumney <jasonr@gnu.org> |
2259 | ||
2260 | * makefile.w32-in: Always include w32font.c in the build. | |
2261 | * w32font.c: Wrap in USE_FONT_BACKEND conditional. | |
2262 | ||
03bd3c1f AS |
2263 | 2008-03-04 Andreas Schwab <schwab@suse.de> |
2264 | ||
2265 | * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*. | |
2266 | (versionclean): Likewise. | |
2267 | ||
6f69e89b JB |
2268 | 2008-03-04 Juanma Barranquero <lekktu@gmail.com> |
2269 | ||
2270 | * .cvsignore: Add oo. | |
2271 | ||
f4a3cc44 AS |
2272 | 2008-03-03 Andreas Schwab <schwab@suse.de> |
2273 | ||
2274 | * coding.c (decode_coding_object): Inhibit gap shrinking while | |
2275 | decoding in place. | |
2276 | ||
73f838ad DN |
2277 | 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu> |
2278 | ||
2279 | * w32term.c: Remove unused include "gnu.h". | |
6f69e89b | 2280 | * makefile.w32-in (w32term.o): Don't depend on gnu.h. |
73f838ad DN |
2281 | |
2282 | * gnu.h: Rename to ... | |
2283 | * emacs-icon.h: ... this. | |
2284 | * xterm.c: Use emacs-icon.h instead of gnu.h. | |
2285 | * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h. | |
2286 | ||
ce9c1f06 JB |
2287 | 2008-03-03 Juanma Barranquero <lekktu@gmail.com> |
2288 | ||
2289 | * w32font.c: Include math.h. | |
2290 | ||
34fd2d28 JR |
2291 | 2008-03-03 Jason Rumney <jasonr@gnu.org> |
2292 | ||
54efdcd1 JR |
2293 | * w32font.c (recompute_cached_metrics): Change font arg to w32font_info. |
2294 | Compute options separately. | |
2295 | (w32font_open_internal): Set glyph_idx before caching metrics. | |
2296 | ||
ce9c1f06 JB |
2297 | * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1): |
2298 | Define if system headers don't. | |
2299 | (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx. | |
34fd2d28 JR |
2300 | (w32font_encode_char): Don't declare here. |
2301 | ||
2302 | * w32font.c (Quniscribe, QCformat): New symbols. | |
2303 | (syms_of_w32font): Define them. | |
2304 | (w32font_has_char): Indicate uncertainty. | |
ce9c1f06 | 2305 | (w32font_encode_char): Encode as glyph point. Make static. |
34fd2d28 | 2306 | (recompute_cached_metrics): New function. |
ce9c1f06 JB |
2307 | (w32font_open_internal): Use it. Set font to use glyph points |
2308 | initially. Set format based on type of font. | |
34fd2d28 | 2309 | (w32font_text_extents, w32font_draw): Optionally use glyph points. |
ce9c1f06 JB |
2310 | (w32_enumfont_pattern_entity): Accept backend arg. Set type based |
2311 | on it. Set format based on information available here. | |
34fd2d28 JR |
2312 | (add_font_entity_to_list): Identify backend based on opentype_only. |
2313 | ||
14daee73 AS |
2314 | 2008-03-02 Andreas Schwab <schwab@suse.de> |
2315 | ||
f907fb2e AS |
2316 | * ftfont.c (ftfont_pattern_entity): Fix aliasing violations. |
2317 | ||
ce9c1f06 JB |
2318 | * coding.c (decode_coding_big5, produce_chars): |
2319 | Fix typos in last change. | |
14daee73 | 2320 | |
c9cc6462 DN |
2321 | 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp> |
2322 | ||
2323 | * gnu.h: New icon. | |
2324 | ||
119852e7 KH |
2325 | 2008-03-02 Kenichi Handa <handa@m17n.org> |
2326 | ||
2327 | * coding.c (decode_coding_utf_8): When eol-type of CODING is | |
2328 | `dos', don't decode '\r' if that is the last in the source. | |
2329 | (decode_coding_utf_16, decode_coding_emacs_mule) | |
2330 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
2331 | (decode_coding_raw_text, decode_coding_charset): Likewise. | |
2332 | (produce_chars): Don't decode EOL here. Use EMACS_INT. | |
2333 | ||
a823468b JR |
2334 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
2335 | ||
2336 | * w32font.c (w32font_full_name): Report point size for scalable fonts. | |
2337 | ||
4ddc7e30 KS |
2338 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
2339 | ||
2340 | * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face. | |
2341 | ||
67997c79 JR |
2342 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
2343 | ||
2344 | * w32font.c (w32font_full_name): New function. | |
2345 | (w32font_open_internal): Use it. | |
2346 | ||
3f4e9c35 KS |
2347 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
2348 | ||
2349 | * dispnew.c (line_draw_cost): Fix invalid glyph check. | |
2350 | ||
f3b9e479 JR |
2351 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
2352 | ||
2353 | * font.c (font_unparse_fcname): Increase len when style is a symbol. | |
2354 | ||
880820fe | 2355 | 2008-03-01 Jan Djärv <jan.h.d@swipnet.se> |
7ee480ce JD |
2356 | |
2357 | * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call | |
2358 | xg_frame_resized when the event is for the edit widget. | |
2359 | ||
2360 | * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets. | |
2361 | ||
2362 | * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or | |
2363 | set_char_size. | |
2364 | (xg_frame_resized): Renamed from xg_resize_widgets. Remove all | |
2365 | operations on widgets here. Just set frame size if needed. | |
2366 | (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions. | |
2367 | (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing. | |
2368 | (x_wm_set_size_hint): Set size hints on the edit widget only, not | |
2369 | the whole frame. | |
2370 | (xg_create_tool_bar): Move attachement of the tool bar to | |
2371 | xg_pack_tool_bar. Do not attach the tool bar if there are no items. | |
2372 | (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED. | |
2373 | ||
6c8acaa1 JR |
2374 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
2375 | ||
2376 | * w32fns.c (w32_msg_pump): Disable debug code. | |
2377 | ||
51fb064b | 2378 | 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
03eb5fab | 2379 | |
51fb064b | 2380 | * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. |
cb681b34 | 2381 | |
60221a33 CY |
2382 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
2383 | ||
2384 | * xdisp.c (next_overlay_string): Don't set | |
2385 | overlay_strings_at_end_processed_p if we're currently reading from | |
2386 | a display string. | |
2387 | ||
10cbc34f SM |
2388 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> |
2389 | ||
2390 | * xdisp.c (get_overlay_strings_1): Fix typo. | |
2391 | ||
73c0054e CY |
2392 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
2393 | ||
2394 | * xdisp.c (get_overlay_strings_1): Add missing argument type. | |
2395 | ||
ec1c4354 KH |
2396 | 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp> |
2397 | ||
55082642 KH |
2398 | * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern. |
2399 | ||
ec1c4354 KH |
2400 | * xdisp.c (display_mode_element): Cancel the previous change. |
2401 | (decode_mode_spec): Likewise. | |
ee548a94 KH |
2402 | (handle_auto_composed_prop): Don't make composition if it->string |
2403 | is a string. | |
ec1c4354 | 2404 | |
b6d898a2 KS |
2405 | 2008-02-27 Kim F. Storm <storm@cua.dk> |
2406 | ||
2407 | * lisp.h (GLYPH): Change type from int to struct with separate char | |
2408 | and face_id members. | |
2409 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros. | |
2410 | (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg. | |
2411 | (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ... | |
2412 | (GLYPH_CHAR, GLYPH_FACE): ... these. Change users. | |
2413 | (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ... | |
2414 | (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead. | |
2415 | (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P) | |
2416 | (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to | |
2417 | handle new Lisp glyph code encoding, either an integer or a cons. | |
2418 | ||
2419 | * disptab.h (GLYPH_SIMPLE_P): Rewrite. | |
2420 | (GLYPH_ALIAS): Delete. | |
2421 | (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite. | |
2422 | (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR. | |
2423 | (GLYPH_FROM_CHAR): Replace macro by ... | |
2424 | (SET_GLYPH_FROM_CHAR): ... this macro. Change users. | |
2425 | ||
2426 | * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify. | |
2427 | (GLYPH_FROM_CHAR_GLYPH): Replace macro by ... | |
2428 | (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users. | |
2429 | (GLYPH_INVALID_P): New macro. | |
2430 | (spec_glyph_lookup_face): Update prototype. | |
2431 | ||
2432 | * dispnew.c (line_draw_cost): Adapt to new glyph type. | |
2433 | (build_frame_matrix_from_leaf_window): Adapt to new glyph type and | |
2434 | new glyph code encoding. | |
2435 | (spec_glyph_lookup_face): No return value; update passed glyph instead. | |
2436 | (init_display): Use SET_CHAR_GLYPH to initialize space_glyph. | |
2437 | ||
2438 | * xdisp.c (get_next_display_element, next_element_from_display_vector): | |
2439 | Adapt to new glyph type and new glyph code encoding. | |
2440 | ||
2441 | * term.c (encode_terminal_code, produce_special_glyphs): Likewise. | |
2442 | ||
2443 | * indent.c (current_column, current_column_1, Fmove_to_column) | |
2444 | (compute_motion): Adapt to new glyph code encoding. | |
2445 | ||
2446 | * msdos.c (IT_write_glyphs): Adapt to new glyph type. | |
2447 | ||
af2080a2 CY |
2448 | 2008-02-27 Chong Yidong <cyd@stupidchicken.com> |
2449 | ||
2450 | * process.c (wait_reading_process_output): Check for window | |
2451 | changes caused by timers. | |
880820fe | 2452 | Suggested by Johan Bockgård. |
af2080a2 | 2453 | |
253ed25e GM |
2454 | 2008-02-27 Glenn Morris <rgm@gnu.org> |
2455 | ||
2456 | * emacs.c (USAGE1): Add `--disable-font-backend'. | |
2457 | ||
18a9f8d9 SM |
2458 | 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca> |
2459 | ||
2460 | * fileio.c (Finsert_file_contents): Don't reset undo_list if no change | |
2461 | is made to the buffer. | |
2462 | ||
0f8b27ea SM |
2463 | 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca> |
2464 | ||
2465 | * dispextern.h (face_at_buffer_position, face_for_overlay_string) | |
2466 | (face_at_string_position): | |
2467 | * xfaces.c (face_at_buffer_position, face_for_overlay_string) | |
2468 | (face_at_string_position): | |
2469 | * xdisp.c (display_string, next_overlay_change): | |
2470 | * buffer.h (overlays_at): | |
2471 | * buffer.c (overlays_at): Use EMACS_INT for buffer positions. | |
2472 | Update callers. | |
2473 | ||
4e7c53ca CY |
2474 | 2008-02-26 Chong Yidong <cyd@stupidchicken.com> |
2475 | ||
2476 | * editfns.c (Fformat): Doc fix. | |
2477 | ||
51c01100 JB |
2478 | 2008-02-26 Juanma Barranquero <lekktu@gmail.com> |
2479 | ||
2480 | * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings. | |
2481 | (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf) | |
2482 | (Ffont_otf_alternates, Fquery_font): Doc fixes. | |
2483 | ||
13cda5f9 SM |
2484 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
2485 | ||
2486 | * buffer.c (Fbuffer_swap_text): New function. | |
2487 | (syms_of_buffer): Defsubr it. | |
2488 | ||
8018d430 CY |
2489 | 2008-02-25 Chong Yidong <cyd@stupidchicken.com> |
2490 | ||
2491 | * keyboard.c (command_loop_1): Revert 2006-10-09 change. | |
2492 | ||
9bde1a21 JR |
2493 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
2494 | ||
2495 | * w32font.c (w32font_draw): Draw one character at a time when padding. | |
2496 | ||
eeca6f6f SM |
2497 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
2498 | ||
2499 | * window.c (Fdelete_window, Fadjust_window_trailing_edge): | |
2500 | Handle a nil arg. Use run_window_configuration_change_hook. | |
2501 | (delete_window, adjust_window_trailing_edge): Don't handle nil any more. | |
2502 | (Fenlarge_window, Fshrink_window, Fset_window_configuration): | |
2503 | Use run_window_configuration_change_hook. | |
2504 | ||
ec1c4354 KH |
2505 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
2506 | ||
2507 | * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least | |
2508 | 1-pixel width. | |
2509 | ||
ae185452 KH |
2510 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
2511 | ||
2512 | * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p. | |
2513 | (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1 | |
2514 | if the glyph in the font is zero pixel with. | |
2515 | ||
2516 | * dispextern.h (struct glyph_string): New member padding_p. | |
2517 | ||
2518 | * w32font.c (w32font_draw): Pay attention to s->padding_p. | |
2519 | ||
2520 | * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p. | |
2521 | ||
2522 | * xfont.c (xfont_draw): Pay attention to s->padding_p. | |
2523 | ||
2524 | * xftfont.c (xftfont_draw): Pay attention to s->padding_p. | |
2525 | ||
eeca6f6f | 2526 | * font.c: If the font driver doesn't have `shape' function, return Qnil. |
ae185452 | 2527 | |
ffe832ea | 2528 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
c9029fe5 | 2529 | |
ffe832ea | 2530 | * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. |
16782258 | 2531 | |
06045130 SM |
2532 | 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca> |
2533 | ||
2534 | Allow fine-grained image-cache flushing. | |
2535 | * dispextern.h (struct image): Add `dependencies' field. | |
2536 | (clear_image_caches): Change arg to Lisp_Object. | |
2537 | * image.c (make_image): Initialize `dependencies' field. | |
2538 | (clear_image_cache): Change arg to allow fine-grained flushing. | |
2539 | Perform the flush even if image-cache-eviction-delay is nil. | |
2540 | (clear_image_caches): Change arg to Lisp_Object. | |
2541 | (Fclear_image_cache): Expand meaning of the argument. | |
2542 | (mark_image): Mark `dependencies' field. | |
2543 | * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches. | |
2544 | (lface_hash): Use XHASH rather than XFASTINT. | |
2545 | (face_at_buffer_position): Fix int -> EMACS_INT position. | |
2546 | * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position. | |
2547 | (select_frame_for_redisplay): Remove code duplication. | |
2548 | (redisplay_internal): Adapt arg to call to clear_image_caches. | |
2549 | ||
9d2818d6 DN |
2550 | 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu> |
2551 | ||
2552 | * s/vms4-0.h: | |
2553 | * s/vms4-2.h: | |
2554 | * s/vms4-4.h: | |
2555 | * s/vms5-5.h: Remove, unused. | |
2556 | ||
2557 | * s/irix5-2.h: | |
2558 | * s/irix6-0.h: | |
2559 | * s/riscos5.h: | |
2560 | * s/mach-bsd4-3.h: | |
2a2e8de7 | 2561 | * m/mips4.h: Remove files for obsolete systems. |
9d2818d6 DN |
2562 | |
2563 | * Makefile.in: | |
2564 | * filelock.c: | |
2565 | * unexmips.c: | |
2566 | * m/hp9000s300.h: | |
2567 | * m/iris4d.h: | |
2568 | * s/aix3-1.h: | |
2569 | * s/hpux.h: | |
2570 | * s/msdos.h: | |
2571 | * s/usg5-0.h: | |
2572 | * s/usg5-2-2.h: | |
2573 | * s/usg5-2.h: | |
2574 | * s/usg5-3.h: Remove references to obsolete variables. | |
2575 | ||
2576 | * s/irix5-0.h: Remove, move all the contents ... | |
2577 | * s/irix6-5.h: ... here. Simplify. | |
2578 | * config.in: Regenerate. | |
2579 | ||
2a36efcf JR |
2580 | 2008-02-24 Jason Rumney <jasonr@gnu.org> |
2581 | ||
c5ad7a3d | 2582 | * w32term.c (x_draw_glyph_string_background): Clear the background |
2face669 JR |
2583 | manually when cleartype is in use. |
2584 | (x_draw_glyph_string_foreground): Draw text transparently when | |
2585 | cleartype is in use. | |
2586 | ||
2a36efcf JR |
2587 | * w32font.c (w32font_text_extents): Avoid getting HDC and selecting |
2588 | a font into it unless we have to. | |
2589 | ||
b03f96dc | 2590 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
92a8ce63 | 2591 | |
b03f96dc MB |
2592 | * intervals.h (INT_LISPLIKE): Remove. It may misfire. |
2593 | (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it. | |
92a8ce63 | 2594 | |
b03f96dc | 2595 | 2008-02-18 Jason Rumney <jasonr@gnu.org> |
92a8ce63 | 2596 | |
b03f96dc | 2597 | * w32fns.c (Fw32_shell_execute): Encode parameters. |
92a8ce63 | 2598 | |
b03f96dc | 2599 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
20f1ef2e | 2600 | |
b03f96dc | 2601 | * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix. |
32d0a9dc | 2602 | |
b03f96dc | 2603 | 2008-02-05 Juanma Barranquero <lekktu@gmail.com> |
20f1ef2e | 2604 | |
b03f96dc | 2605 | * unexhp9k800.c (read_header): Replace `legal' with `valid'. |
77d1daf2 | 2606 | |
d5958163 CY |
2607 | 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) |
2608 | ||
2609 | * xterm.c (x_set_offset): Don't change the gravity if | |
2610 | CHANGE_GRAVITY is -1. | |
2611 | ||
9997701e CY |
2612 | 2008-02-23 Chong Yidong <cyd@stupidchicken.com> |
2613 | ||
2614 | * fileio.c (auto_save_error_occurred): New var. | |
2615 | (auto_save_error): Set it. | |
2616 | (Fdo_auto_save): Don't overwrite the error message if an auto-save | |
2617 | error occurred. | |
2618 | ||
9d95a291 EZ |
2619 | 2008-02-23 Eli Zaretskii <eliz@gnu.org> |
2620 | ||
2621 | * w32.c (globals_of_w32): Add initializations for | |
2622 | g_b_init_get_sid_sub_authority and | |
2623 | g_b_init_get_sid_sub_authority_count. | |
2624 | ||
43d1af23 SM |
2625 | 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca> |
2626 | ||
43a1d19b SM |
2627 | * font.c (font_match_xlfd, font_check_xlfd_parse): New funs. |
2628 | (font_parse_xlfd): Use them for sanity check. | |
608c3307 | 2629 | (Finternal_set_font_style_table): Make sure the table is bijective. |
43a1d19b | 2630 | |
354884c4 SM |
2631 | Consolidate the image_cache to the terminal struct. |
2632 | * termhooks.h (P_): Remove redundant def. | |
2633 | (struct terminal): New field `image_cache'. | |
2634 | * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place | |
2635 | of FRAME_X_IMAGE_CACHE. | |
2636 | * xterm.h (struct x_display_info): Remove image_cache field. | |
2637 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
2638 | * w32term.h (struct w32_display_info): Remove image_cache field. | |
2639 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
2640 | * macterm.h (struct mac_display_info): Remove image_cache field. | |
2641 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
2642 | * xterm.c (x_term_init): | |
2643 | * w32term.c (w32_term_init): | |
2644 | * macterm.c (mac_term_init): Set the image_cache in the terminal. | |
2645 | * dispextern.h (clear_image_cache, forall_images_in_image_cache): | |
2646 | Remove declarations. | |
2647 | (clear_image_caches, mark_image_cache): New declarations. | |
2648 | * xfaces.c (clear_face_cache): | |
2649 | * xdisp.c (redisplay_internal): Use clear_image_caches. | |
2650 | * image.c (clear_image_cache): Don't check that a frame is on | |
2651 | a window-system before checking if it shares the same cache. | |
2652 | (clear_image_caches): New function. | |
2653 | (Fclear_image_cache): Use it. | |
2654 | (mark_image): Move from allo.c. | |
2655 | (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. | |
2656 | * alloc.c (mark_image, mark_image_cache): Move to image.c. | |
2657 | (mark_object): Don't call mark_image_cache for frames. | |
2658 | (mark_terminals): Call mark_image_cache. | |
2659 | ||
c2e42690 SM |
2660 | * lisp.h (Fdelete_terminal): Declare. |
2661 | ||
43d1af23 SM |
2662 | * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID) |
2663 | (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of | |
2664 | wrong_type_argument. | |
2665 | ||
cc8d1311 KH |
2666 | 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp> |
2667 | ||
2668 | * Makefile.in (lisp): Remove devanagari.el, kannada.el, | |
4a4bdfc7 | 2669 | malayalam.el, and tamil.el. Add sinhala.el. |
cc8d1311 | 2670 | |
6bd92640 SM |
2671 | 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca> |
2672 | ||
2673 | * xterm.c (x_connection_closed): Consolidate identical tests. | |
2674 | (x_delete_terminal): Don't crash if called via x_connection_closed. | |
2675 | ||
a73b5627 KH |
2676 | 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp> |
2677 | ||
2678 | * xdisp.c (decode_mode_spec): New arg string. | |
6bd92640 | 2679 | (display_mode_element): Adjust for the above change. |
a73b5627 | 2680 | |
1b511542 SM |
2681 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
2682 | ||
2683 | * callint.c (Fcall_interactively): Use AREF. | |
2684 | ||
81aefea4 SM |
2685 | 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca> |
2686 | ||
2687 | * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs. | |
2688 | ||
880820fe | 2689 | 2008-02-18 Jan Djärv <jan.h.d@swipnet.se> |
2d7117fe JD |
2690 | |
2691 | * xfns.c (Fx_show_tip): Set string to " " if empty. | |
2692 | ||
a2b84f35 DN |
2693 | 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu> |
2694 | ||
2695 | * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive | |
2696 | with Qt. | |
2697 | ||
43c0454d KH |
2698 | 2008-02-17 Kenichi Handa <handa@m17n.org> |
2699 | ||
2700 | * ftfont.c (ftfont_shape): Return Lispy number. | |
2701 | ||
2702 | * xfaces.c (prepare_face_for_display): Use display_info->font->fid | |
2703 | for GCs. | |
2704 | (Finternal_set_font_selection_order): Call font_update_sort_order | |
2705 | only when enable_font_backend is set. | |
2706 | (realize_x_face): Set face->font_info to that of default face only | |
2707 | when enable_font_backend is set. | |
2708 | ||
2709 | * xdisp.c (handle_composition_prop): Set it->c to the fist | |
2710 | characte of the composed region. | |
2711 | (fill_composite_glyph_string): Set base_face->font_info to | |
2712 | s->font_info. Get a face for ascii from base_face->ascii_face. | |
2713 | (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string | |
2714 | with a face already decided. | |
2715 | (x_produce_glyphs): Be sure to set it->ascent and it->descent to | |
2716 | non-negative. | |
978bef9a JB |
2717 | (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING, |
2718 | call font_prepare_composition unconditionally. | |
43c0454d | 2719 | |
978bef9a | 2720 | * xfns.c (x_make_gc): Use the default font id of the frame for GCs. |
43c0454d KH |
2721 | |
2722 | * xterm.h (struct x_display_info): New member font. | |
2723 | ||
2724 | * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs. | |
2725 | (x_set_mouse_face_gc, x_new_font): Likewise. | |
2726 | (x_term_init): Setup display_info->font. | |
2727 | (x_delete_terminal): Free display_info->font. | |
2728 | ||
2729 | * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT. | |
2730 | ||
2731 | * ftxfont.c (ftxfont_default_fid): Delete it. | |
2732 | (ftxfont_open): Set xfont->fid to 0. | |
978bef9a | 2733 | (ftxfont_end_for_frame): Clear data specific to the frame and the |
43c0454d KH |
2734 | font-driver. |
2735 | ||
2736 | * xftfont.c (xftfont_default_fid): Delete it. | |
2737 | (xftfont_open): Set xfont->fid to 0. | |
2738 | ||
2739 | * fontset.c (FONTSET_OBJLIST): New macro. | |
2740 | (fontset_find_font): Update font-object list of the fontset. | |
2741 | (free_realized_fontset): New function. | |
2742 | (free_face_fontset): Call free_realized_fontset. | |
2743 | (Ffont_info): Call font_close_object only when enable_font_backend | |
2744 | is set. | |
2745 | ||
2746 | * font.c [HAVE_X_WINDOWS]: Include xterm.h. | |
2747 | [HAVE_NTGUI]: Include w32term.h. | |
2748 | [MAC_OS]: Include macterm.ch. | |
2749 | (font_otf_ValueRecord): Use make_number. | |
2750 | (font_finish_cache): Fix handling of reference count. | |
2751 | (font_clear_cache): Update num_fonts. | |
2752 | (font_open_entity): Update smallest_char_width and | |
2753 | smallest_font_height of the frame. | |
2754 | (font_close_object): Update num_fonts. | |
2755 | (Fclear_font_cache): Fix finding the target cache data. | |
2756 | ||
be617367 GM |
2757 | 2008-02-16 Glenn Morris <rgm@gnu.org> |
2758 | ||
2759 | * fontset.c (Finternal_char_font): Fix compilation warning. | |
2760 | ||
2930d117 EZ |
2761 | 2008-02-16 Eli Zaretskii <eliz@gnu.org> |
2762 | ||
634d3003 EZ |
2763 | * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP |
2764 | instead of char arrays. Enlarge the size of array passed to | |
2765 | get_token_information. | |
2766 | ||
2930d117 EZ |
2767 | * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation |
2768 | warnings. | |
2769 | ||
79214046 DN |
2770 | 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu> |
2771 | ||
2772 | * .gdbinit: Don't set `args', it breaks gdb --args. | |
2773 | ||
7f5d2c72 SM |
2774 | 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca> |
2775 | ||
2776 | * fileio.c (Finsert_file_contents): Adjust offsets when replacing | |
2777 | within a narrowed buffer. | |
2778 | ||
6edacc43 KH |
2779 | 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp> |
2780 | ||
b270d6af JB |
2781 | * coding.c (decode_coding_object, encode_coding_object): |
2782 | Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer. | |
6edacc43 | 2783 | |
174105f7 SM |
2784 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
2785 | ||
b270d6af JB |
2786 | * coding.c (coding_set_destination): Use BEG_BYTE rather than |
2787 | hardcoding 1. | |
13818c30 SM |
2788 | (detect_coding_system): |
2789 | * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text) | |
2790 | (string_char_to_byte, string_byte_to_char, insert_from_gap): | |
2791 | * insdel.c (insert_from_gap): | |
2792 | * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos) | |
2793 | (string_char_to_byte, string_byte_to_char, string_make_multibyte) | |
2794 | (string_to_multibyte): | |
2795 | * character.c (chars_in_text, multibyte_chars_in_text): | |
2796 | * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions. | |
2797 | ||
f1c99628 SM |
2798 | * character.h (FETCH_STRING_CHAR_ADVANCE) |
2799 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE) | |
2800 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF. | |
2801 | (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1. | |
2802 | ||
7927d8e3 SM |
2803 | * casefiddle.c (casify_region): Only call after-change and composition |
2804 | functions on the part of the region that was changed. | |
2805 | ||
adf6a429 | 2806 | * keyboard.c (read_avail_input): |
174105f7 SM |
2807 | * frame.c (Fdelete_frame): Call Fdelete_terminal. |
2808 | ||
3ee24aec SM |
2809 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
2810 | ||
2811 | * buffer.c (clone_per_buffer_values, reset_buffer_local_variables) | |
2812 | (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list. | |
2813 | ||
4ed4b975 JB |
2814 | 2008-02-11 Juanma Barranquero <lekktu@gmail.com> |
2815 | ||
2816 | * w32menu.c (push_submenu_start, push_submenu_end) | |
2817 | (push_left_right_boundary, push_menu_pane, push_menu_item): | |
2818 | * keyboard.c (read_key_sequence): Don't pass args with side effects | |
2819 | to AREF, it fails when compiling with -DENABLE_CHECKING. | |
2820 | ||
79e3bfb8 KH |
2821 | 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp> |
2822 | ||
4ed4b975 JB |
2823 | * Makefile.in (${lispsource}international/charprop.el): |
2824 | Delete this target. | |
6e76043f | 2825 | |
79e3bfb8 KH |
2826 | * search.c (boyer_moore): Fix incorrect synching of the trunk and |
2827 | emacs-unicode-2. | |
2828 | ||
5b8de9c5 SM |
2829 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
2830 | ||
2831 | * terminal.c (Fdelete_terminal): Clean up the `force' path. | |
2832 | ||
eac1939a SM |
2833 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
2834 | ||
c53956fe SM |
2835 | * frame.c (Qnoelisp): New symbol. |
2836 | (syms_of_frame): Initialize it. | |
2837 | (Fdelete_frame): Use it to distinguish a mere `force' passed from | |
2838 | someharmles Elisp code, from a strong `force' from x_connection_closed. | |
2839 | * frame.h (Qnoelisp): Declare. | |
2840 | * xterm.c (x_connection_closed): Pass `noelisp'. | |
2841 | ||
eac1939a SM |
2842 | * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker) |
2843 | (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd) | |
2844 | (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type | |
2845 | rather than `int' for the type of `type'. | |
2846 | ||
13f6772b DN |
2847 | 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu> |
2848 | ||
2849 | * s/gnu-linux.h: Remove support for non-ELF and linux-1.x. | |
2850 | ||
2851 | * Makefile.in (GNUC): Remove support for gcc-1.x. | |
2852 | ||
e8455367 RS |
2853 | 2008-02-10 Richard Stallman <rms@gnu.org> |
2854 | ||
2855 | * lisp.h (ASET): Use AREF, not ASLOT. | |
2856 | ||
4b75ffab SM |
2857 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
2858 | ||
2859 | * lisp.h (ASET): Check bounds. | |
2860 | ||
d224e8c2 GM |
2861 | 2008-02-10 Glenn Morris <rgm@gnu.org> |
2862 | ||
2863 | * buffer.c (mode-name): Doc fix. | |
2864 | ||
4624371d DN |
2865 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
2866 | ||
290afd83 JB |
2867 | * Makefile.in: |
2868 | * emacs.c: | |
2869 | * gmalloc.c: | |
2870 | * keyboard.c: | |
2871 | * lisp.h: | |
2872 | * m/ibm370aix.h: | |
2873 | * process.c: | |
2874 | * regex.c: | |
2875 | * s/hpux.h: | |
2876 | * sysdep.c: | |
2877 | * sysselect.h: | |
2878 | * systty.h: | |
2879 | * unexec.c: | |
2880 | * w32term.c: | |
2881 | * xsmfns.c: | |
2882 | * xterm.c: Remove code that deals with obsolete variables. | |
4624371d DN |
2883 | |
2884 | * s/msdos.h (DONT_NEED_ENVIRON): Don't define. | |
2885 | ||
2886 | * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, | |
2887 | nothing else needs it anymore. | |
2888 | ||
274ec34b EZ |
2889 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
2890 | ||
2891 | * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table | |
2892 | instead of unibyte_char_to_multibyte. | |
2893 | ||
deeaffe1 DN |
2894 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
2895 | ||
2896 | * s/gnu-linux.h: Remove commented out code. | |
2897 | ||
4ed4b975 | 2898 | * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. |
deeaffe1 DN |
2899 | |
2900 | * Makefile.in: Update what RMS says about using autoconf. | |
4ed4b975 | 2901 | (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable. |
c3f9fba8 | 2902 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1) |
deeaffe1 DN |
2903 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) |
2904 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. | |
2905 | ||
68b587a6 SM |
2906 | 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> |
2907 | ||
9141ca5e SM |
2908 | * keymap.c (Fkey_description): Move side effect outside of macro call. |
2909 | ||
dfae5f9a | 2910 | * xfaces.c (Finternal_make_lisp_face): |
b1ebcadb SM |
2911 | * keyboard.c (add_command_key, parse_menu_item): Use ASET. |
2912 | ||
ff7a2223 SM |
2913 | * fontset.c (free_face_fontset): Use FONTSET_FROM_ID. |
2914 | (syms_of_fontset): Use ASET. | |
2915 | ||
68b587a6 SM |
2916 | * fns.c (concat): Move side effect outside of macro call. |
2917 | (hash_clear): Use ASET. | |
2918 | ||
a31787b1 RS |
2919 | 2008-02-08 Richard Stallman <rms@gnu.org> |
2920 | ||
2921 | * frame.c (Fdelete_frame): If FORCE, don't call hooks. | |
2922 | If FORCE, and frame has a surrogate minibuffer for another frame, | |
2923 | delete the other frame first. | |
2924 | ||
987be29b | 2925 | 2008-02-07 Timo Savola <timo.savola@iki.fi> |
1540a61a JD |
2926 | |
2927 | * xterm.c (x_detect_focus_change): Handle embed client message. | |
2928 | (handle_one_xevent): Ditto. | |
2929 | (handle_one_xevent): If embedded and we get a button press/release, | |
2930 | request focus. | |
2931 | (xembed_set_info, xembed_send_message): New functions. | |
2932 | (x_make_frame_visible): Call xembed_set_info if embedded. | |
2933 | (x_make_frame_invisible): Call xembed_set_info if embedded. | |
2934 | (x_term_init): Initialize Xatom_XEMBED. | |
2935 | (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also. | |
2936 | (x_iconify_frame): Ditto. | |
2937 | ||
2938 | * xterm.h (struct x_display_info): Add AtomXatom_XEMBED. | |
2939 | (enum xembed_info, enum xerm srmbed_message, enum xembed_focus) | |
2940 | (enum xembed_modifier, enum xembed_accelerator): New. | |
2941 | (xembed_set_info, xembed_send_message): Declare. | |
2942 | (FRAME_X_EMBEDDED_P): New. | |
2943 | ||
2944 | * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call | |
2945 | gtk_plug_new. | |
2946 | ||
2947 | * xfns.c (Fx_create_frame): Do not override the explicitly set parent | |
2948 | window ID of a frame. | |
2949 | (x_window): Reparent frame if embedded. | |
2950 | (Fx_create_frame): Don't set border width if embedded. | |
2951 | ||
2952 | * emacs.c (USAGE3): Add --parent-id | |
2953 | (standard_args): Ditto. | |
2954 | ||
880820fe | 2955 | 2008-02-07 Jan Djärv <jan.h.d@swipnet.se> |
f937a7db JD |
2956 | |
2957 | * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". | |
2958 | ||
92413ef3 JD |
2959 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
2960 | ||
6f69e89b | 2961 | Use "do...while (0)", not "if (1)...else" in macro definitions. |
987be29b RF |
2962 | The latter provokes a warning from gcc about the empty else, when |
2963 | followed by ";". Also, without that trailing semicolon, it would | |
2964 | silently swallow up any following statement. | |
c3f9fba8 | 2965 | * syntax.h (SETUP_SYNTAX_TABLE) |
987be29b RF |
2966 | (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise. |
2967 | * buffer.h (DECODE_POSITION): Likewise. | |
2968 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. | |
2969 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise. | |
2970 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise. | |
2971 | (FETCH_CHAR_ADVANCE): Likewise. | |
2972 | (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise. | |
92413ef3 | 2973 | |
03fa5713 GM |
2974 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
2975 | ||
2976 | * lread.c [lint]: Don't include <sys/inode.h>. | |
2977 | ||
3ae565b3 SM |
2978 | 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca> |
2979 | ||
2980 | * xselect.c (x_handle_dnd_message): | |
2981 | * xmenu.c (digest_single_submenu, xmenu_show): | |
2982 | * xdisp.c (with_echo_area_buffer_unwind_data) | |
2983 | (format_mode_line_unwind_data, unwind_format_mode_line) | |
2984 | (display_menu_bar): | |
2985 | * eval.c (Ffetch_bytecode): | |
2986 | * doc.c (store_function_docstring): | |
2987 | * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code) | |
2988 | (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map): | |
2989 | * buffer.c (add_overlay_mod_hooklist): Use ASET. | |
2990 | ||
146b6e55 KH |
2991 | 2008-02-07 Kenichi Handa <handa@m17n.org> |
2992 | ||
2993 | * ftxfont.c (ftxfont_open): Don't set | |
2994 | dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. | |
2995 | ||
2996 | * ftfont.c (ftfont_open): Fix previous change. | |
2997 | ||
46a923ac JR |
2998 | 2008-02-06 Jason Rumney <jasonr@gnu.org> |
2999 | ||
3000 | * w32font.c (w32font_text_extents): Fill in lbearing metric. | |
3001 | Use cached metrics for ASCII characters. | |
3ae565b3 SM |
3002 | (w32font_open_internal): Don't set font's owning_frame. |
3003 | Cache metrics for ASCII characters. | |
46a923ac JR |
3004 | |
3005 | * w32font.h (struct w32font_info): Add ascii_metrics. | |
3006 | Remove owning_frame. | |
3007 | ||
da7d7c21 KH |
3008 | 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp> |
3009 | ||
3010 | * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent | |
3011 | to negative value. | |
3012 | ||
3013 | * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info. | |
3014 | ||
3ae565b3 | 3015 | * ftfont.c (ftfont_open): Fix calculation of font->font.average_width. |
da7d7c21 KH |
3016 | |
3017 | * charset.c (syms_of_charset): Set QCtest and Qeq. | |
3018 | ||
c62c8ddb SM |
3019 | 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> |
3020 | ||
ca319910 SM |
3021 | * process.c (Fstart_process): |
3022 | * callproc.c (Fcall_process): Handle the case where | |
3023 | Funhandled_file_name_directory returns nil. | |
3024 | ||
76860cbb SM |
3025 | * font.h (enum lgstring_indices, enum lglyph_indices): New enums. |
3026 | (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros. | |
f9ffa1ea SM |
3027 | * font.c (check_gstring): Use them and AREF to access the vector before |
3028 | we know it's really a gstring. | |
3029 | (Ffont_shape_text): Fix typo. | |
3030 | (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups. | |
76860cbb | 3031 | |
15139d67 SM |
3032 | * composite.h (Fcompose_region_internal, Fcompose_string_internal): |
3033 | Declare. | |
3034 | ||
c62c8ddb SM |
3035 | * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement. |
3036 | ||
04b65d2b JR |
3037 | 2008-02-05 Jason Rumney <jasonr@gnu.org> |
3038 | ||
3039 | * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth. | |
3040 | Set smallest_font_height and smallest_char_width in display info. | |
3041 | ||
fccaebfd KH |
3042 | 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp> |
3043 | ||
3044 | * coding.c (decode_eol): Pay attention to coding->dst_multibyte. | |
3045 | ||
e7d7fd8c MB |
3046 | 2008-02-05 Miles Bader <miles@gnu.org> |
3047 | ||
3048 | * xfaces.c (get_lface_attributes, merge_named_face) | |
3049 | (lookup_named_face, lookup_derived_face, realize_named_face): | |
3050 | Revert 2008-02-01 change by cyd@stupidchicken.com. | |
3051 | ||
3d4448a8 KH |
3052 | 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp> |
3053 | ||
3054 | * fontset.c (Ffontset_info): Handle the case of inhibitting the | |
3055 | fallback fonts. | |
15139d67 | 3056 | (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names. |
3d4448a8 | 3057 | |
5ace1ec1 JR |
3058 | 2008-02-04 Jason Rumney <jasonr@gnu.org> |
3059 | ||
3060 | * w32font.c (w32font_open_internal): Use font_unparse_fcname to | |
3061 | set full_name. | |
e3a77b22 | 3062 | (w32font_open_internal): Use xmalloc, xrealloc, xfree. |
5ace1ec1 | 3063 | |
ffe42183 JR |
3064 | 2008-02-03 Jason Rumney <jasonr@gnu.org> |
3065 | ||
3066 | * makefile.w32-in (OBJ1): Include font.o here. | |
3067 | (FONTOBJ) [USE_FONTBACKEND]: Instead of here. | |
3068 | ||
526dc3b3 JR |
3069 | 2008-02-02 Jason Rumney <jasonr@gnu.org> |
3070 | ||
a0fece35 | 3071 | * makefile.w32-in (temacs): Bump EMHEAP to 21. |
526dc3b3 | 3072 | |
af805c82 JR |
3073 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
3074 | ||
3075 | * s/cygwin.h: Define VIRT_ADDR_VARIES. | |
3076 | ||
3077 | * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition. | |
3078 | ||
7f6519c5 AS |
3079 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
3080 | ||
1f45f627 | 3081 | * Makefile.in (shortlisp, lisp): Update for rename of |
7f6519c5 | 3082 | ../lisp/language/myanmar.el. |
7f6519c5 | 3083 | |
26f8aa27 CY |
3084 | 2008-02-01 Chong Yidong <cyd@stupidchicken.com> |
3085 | ||
1f45f627 | 3086 | * xfaces.c (get_lface_attributes): Delete function. |
26f8aa27 CY |
3087 | (merge_named_face, lookup_named_face, lookup_derived_face) |
3088 | (realize_named_face): Call lface_from_face_name directly, and use | |
3089 | the fact that merge_face_vectors does not alter its FROM argument. | |
3090 | ||
73acf815 | 3091 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3092 | |
3093 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode | |
1f45f627 | 3094 | input in the default locale. Handle non-Unicode multibyte input. |
aca7a3d2 | 3095 | |
73acf815 | 3096 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3097 | |
3098 | * fontset.c (reorder_font_vector): Exclude nil elements from the | |
3099 | font group. Don't try multiple fonts. | |
15139d67 | 3100 | (fontset_font): Adjust for the above change. |
aca7a3d2 MB |
3101 | (Finternal_char_font): Return nil if the found font doesn't |
3102 | contain the character ch. | |
3103 | ||
4c4475a8 | 3104 | * Makefile.in (lisp, shortlisp): Add cham.el. |
aca7a3d2 | 3105 | |
73acf815 | 3106 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3107 | |
3108 | * font.h (FONTP): Make it return 1 also for a font-object. | |
3109 | ||
3110 | * .gdbinit (xfontset): New function. | |
3111 | ||
3112 | * font.c (font_find_for_lface): Check if the character C is | |
3113 | supported or not only for the first font. | |
3114 | ||
3115 | * fontset.c (reorder_font_vector): Fix typo. | |
3116 | (fontset_find_font): Don't add a font-spec specifying a script. | |
3117 | Use 0 (not Qt) for the indication of empty font-group. Change the | |
3118 | format of RFONT-DEF. Return Qt if no font in the font-group | |
3119 | support the character. | |
15139d67 | 3120 | (fontset_font): Adjust for the above change. If no font was |
aca7a3d2 | 3121 | found the character, remember that. |
15139d67 | 3122 | (face_for_char): Adjust for the change of RFONT-DEF. |
aca7a3d2 MB |
3123 | (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify |
3124 | no font for the target. | |
15139d67 | 3125 | (Finternal_char_font): Adjust for the change of RFONT-DEF. |
aca7a3d2 | 3126 | |
73acf815 | 3127 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3128 | |
3129 | * font.c (font_load_for_face): Handle the case that the font in | |
3130 | face->lface is a string. | |
3131 | ||
73acf815 | 3132 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3133 | |
1f45f627 | 3134 | * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface. |
aca7a3d2 | 3135 | |
73acf815 | 3136 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3137 | |
3138 | * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: | |
3139 | Fix previous change. If the frame is not on a window system, | |
3140 | signal an error. | |
3141 | ||
73acf815 | 3142 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3143 | |
4c4475a8 GM |
3144 | * coding.c (decode_coding_object, encode_coding_object): Adjust |
3145 | marker positions after conversion. | |
aca7a3d2 MB |
3146 | |
3147 | * lisp.h (struct Lisp_Marker): New member need_adjustment. | |
3148 | ||
73acf815 | 3149 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3150 | |
3151 | * font.c (font_find_for_lface): Fix the handling of the return | |
3152 | value of font_has_char. | |
3153 | (Ffont_shape_text): Fix previous change. | |
3154 | ||
3155 | * fontset.c (FONTSET_REF_AND_RANGE): Delete it. | |
3156 | (fontset_ref_and_range): Delete it. | |
3157 | (fontset_find_font): Call char_table_ref_and_range instead of | |
3158 | FONTSET_REF_AND_RANGE. | |
3159 | (make_fontset): Don't setup font groups of Latin here. | |
3160 | (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII. | |
3161 | (new_fontset_from_font): Make the specified font the default for | |
3162 | all Latin characters. | |
3163 | ||
73acf815 | 3164 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3165 | |
3166 | * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame | |
3167 | is on a window system before accessing the fontset of the frame. | |
3168 | ||
73acf815 | 3169 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3170 | |
1f45f627 | 3171 | * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el. |
aca7a3d2 MB |
3172 | |
3173 | * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only | |
3174 | when both HAVE_M17N_FLT and HAVE_LIBOTF are defined. | |
3175 | ||
3176 | * font.c (Ffont_shape_text): If the font driver doesn't have a | |
3177 | shaper function, make zero-width glyphs to have at least one-pixel | |
3178 | width. Fix setting of `to' field of glyphs. | |
3179 | ||
73acf815 | 3180 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3181 | |
3182 | * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of | |
3183 | glyphs. | |
3184 | ||
1f45f627 | 3185 | * font.h (struct font_driver): Improve docstring of member `shape'. |
aca7a3d2 | 3186 | |
73acf815 | 3187 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3188 | |
3189 | * composite.c (syms_of_composite): Fix docstring of | |
3190 | auto-composition-function. | |
3191 | ||
3192 | * font.h (LGLYPH_SIZE): New macro. | |
3193 | ||
3194 | * font.c (Ffont_fill_gstring): Stop filling when a character not | |
3195 | supported by the font is found. | |
3196 | (Ffont_shape_text): When a shape callback function returns nil, | |
3197 | try at most two more times with larger gstring. | |
15139d67 | 3198 | (Ffont_at): Fix getting of w. Call font_at with correct 5th argument. |
aca7a3d2 MB |
3199 | |
3200 | * xdisp.c (handle_auto_composed_prop): Change the argument to | |
3201 | auto-composition-function. | |
3202 | ||
3203 | * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
3204 | (ftfont_shape_by_flt): If an element of lgstring is nil, make a | |
3205 | Lispy glyph and store it in the lgstring. | |
3206 | ||
3207 | * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE. | |
3208 | ||
3209 | * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
3210 | ||
73acf815 | 3211 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3212 | |
3213 | * font.c (Ffont_shape_text): Avoid unnecessary composition. | |
3214 | ||
3215 | * fontset.c (Vfont_encoding_charset_alist): New variable. | |
3216 | (syms_of_fontset): DEFVAR it. | |
4c4475a8 GM |
3217 | (reorder_font_vector, fontset_find_font): Optimize for the case of |
3218 | no need of reordering. | |
aca7a3d2 MB |
3219 | (face_for_char): Map the charset property by |
3220 | Vfont_encoding_charset_alist. | |
3221 | ||
73acf815 | 3222 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3223 | |
3224 | * w32font.c (logfonts_match): Don't check adstyle here. | |
3225 | (font_matches_spec): Check here against physical font instead. | |
3226 | (add_font_entity_to_list): Avoid some substitutions. | |
3227 | ||
3228 | * font.c (font_parse_fcname): Default weight and slant to normal. | |
3229 | (font_score): Prefer normal fonts if weight or slant unspecified. | |
3230 | (font_score) [WINDOWSNT]: Scale weight difference down to closer | |
3231 | match freetype scores. | |
3232 | ||
73acf815 | 3233 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3234 | |
3235 | * w32font.c (w32font_text_extents): Don't use the frame stored in the | |
3236 | font, as it may have been deleted. | |
3237 | (w32_enumfont_pattern_entity): Map generic family to adstyle using | |
3238 | most common hyphenless variation. | |
3239 | (logfonts_match): Check generic family. | |
3240 | (font_matches_spec): Don't check generic family here. | |
3241 | (fill_in_logfont): Set generic family based on adstyle. | |
3242 | ||
3243 | * w32font.h (w32font_get_cache): Update declaration. | |
3244 | ||
73acf815 | 3245 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3246 | |
3247 | * ftfont.c (ftfont_get_cache): Adjust the argument type. | |
3248 | ||
15139d67 | 3249 | * frame.c (x_set_font_backend): Don't call Fclear_font_cache. |
dde8403f | 3250 | If none of the new drivers are available, call font_update_drivers |
aca7a3d2 MB |
3251 | with the old drivers. |
3252 | ||
3253 | * w32font.c (w32font_get_cache): Adjust the argument type. | |
3254 | ||
3255 | * xfont.c (xfont_get_cache): Adjust the argument type. | |
3256 | ||
3257 | * font.h (struct font_driver): Change argument type of get_cache. | |
3258 | ||
3259 | * xftfont.c (xftfont_start_for_frame): Delete prototype. | |
3260 | ||
3261 | * font.c (Ffont_get): Fix arguments to Fassoc. | |
15139d67 | 3262 | (font_prepare_cache, font_finish_cache, font_get_cache): New functions. |
aca7a3d2 | 3263 | (font_clear_cache): New function. |
4c4475a8 | 3264 | (font_list_entities, font_matching_entity): Use font_get_cache. |
15139d67 | 3265 | (font_update_drivers): Call font_clear_cache when finishing a driver. |
aca7a3d2 MB |
3266 | |
3267 | * fontset.c (fontset_find_font): Fix previous change. | |
3268 | ||
73acf815 | 3269 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3270 | |
3271 | * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access | |
3272 | dpyinfo->font_table. | |
3273 | (x_delete_display) [USE_FONT_BACKEND]: Likewise. | |
15139d67 | 3274 | (x_delete_terminal) [USE_FONT_BACKEND]: Likewise. |
aca7a3d2 MB |
3275 | |
3276 | * font.c (font_at): Handle the case that the arg C is negative. | |
3277 | Handle the unibyte case. | |
3278 | (Ffont_at): Call font_at with the arg C -1. | |
3279 | ||
3280 | * xdisp.c (handle_auto_composed_prop): Don't get a character at | |
15139d67 SM |
3281 | the position here, and call font_at with the arg C -1. |
3282 | Don't check the range of the existing composition at the point. | |
aca7a3d2 | 3283 | |
73acf815 | 3284 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3285 | |
15139d67 | 3286 | * fontset.c (fontset_add): New args charset_id and family. |
1f45f627 | 3287 | Change caller. |
4c4475a8 GM |
3288 | (load_font_get_repertory, fontset_find_font): Assume that |
3289 | font_spec is always a font-spec object. | |
aca7a3d2 MB |
3290 | (Fset_fontset_font): Always store a font-spec object in a fontset. |
3291 | ||
3292 | * xdisp.c (handle_auto_composed_prop): Use Fget_text_property | |
3293 | instead of get_property_and_range. | |
3294 | ||
73acf815 | 3295 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3296 | |
3297 | * xftfont.c (struct xftfont_info): Delete the member ft_face. | |
3298 | (xftfont_open): Don't keep locking face. | |
3299 | (xftfont_close): Don't unlock face. | |
4c4475a8 | 3300 | (xftfont_anchor_point, xftfont_shape): Lock and unlock face. |
aca7a3d2 MB |
3301 | |
3302 | * fontset.c (fontset_find_font): Don't prefer a font of | |
3303 | supplementary charset. | |
3304 | ||
73acf815 | 3305 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3306 | |
1f45f627 GM |
3307 | * ftfont.c (struct OpenTypeSpec): Rename members script_tag to |
3308 | script, langsys_tag to langsys, new member script. | |
aca7a3d2 MB |
3309 | (OTF_TAG_STR): Terminate by '\0'. |
3310 | (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the | |
3311 | listing to the script specified in that property. Fix arg to | |
3312 | OTF_check_features. | |
3313 | ||
73acf815 | 3314 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3315 | |
3316 | * w32font.h: New file. | |
3317 | ||
3318 | * w32font.c: Include it. | |
3319 | (struct w32font_info): Add owning_frame field. Move to w32font.h. | |
3320 | (w32font_open): Set owning_frame. | |
3321 | (w32font_text_extents): Use owning_frame. | |
3322 | (struct font_callback_data): Add opentype_only field. | |
3323 | (add_font_entity_to_list): Use it to filter fonts. | |
3324 | Don't check against full name. | |
3325 | (w32font_list_internal): New function. | |
3326 | (w32font_list): Use it. | |
3327 | (w32font_match_internal): New function. | |
3328 | (w32font_match): Use it. | |
3329 | (w32font_open_internal): New function. | |
3330 | (w32font_open): Use it. | |
3331 | (w32font_get_cache, w32font_close, w32font_has_char) | |
3332 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
3333 | Make non-static. | |
3334 | ||
3335 | * makefile.w32-in (w32font.o): Depend on w32font.h. | |
3336 | ||
73acf815 | 3337 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3338 | |
3339 | * charset.c (Fdefine_charset_internal): Record a supplementary | |
3340 | charset at the tail of Vcharset_order_list. | |
3341 | ||
3342 | * font.c (Ffont_shape_text): Fix the return value. | |
3343 | ||
3344 | * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names. | |
3345 | ||
3346 | * xdisp.c (handle_auto_composed_prop): Fix previous change. | |
3347 | ||
73acf815 | 3348 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3349 | |
3350 | * ftfont.c (struct OpenTypeSpec): New struct. | |
3351 | (OTF_SYM_TAG, OTF_TAG_STR): New macros. | |
3352 | (ftfont_get_open_type_spec): New function. | |
3353 | (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property. | |
3354 | ||
15139d67 | 3355 | * lread.c (read1): Redo the previous change with checking Vpurify_flag. |
aca7a3d2 | 3356 | |
73acf815 | 3357 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3358 | |
3359 | * w32font.c (add_font_entity_to_list): Compare only the beginning | |
3360 | of full name. | |
3361 | ||
73acf815 | 3362 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3363 | |
15139d67 SM |
3364 | * xdisp.c (handle_auto_composed_prop): Simplify the code. |
3365 | Never return HANDLED_RECOMPUTE_PROPS. | |
aca7a3d2 | 3366 | |
73acf815 | 3367 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3368 | |
3369 | * font.c (font_gstring_produce): Delete it. | |
3370 | ||
15139d67 SM |
3371 | * composite.h (COMPOSITION_METHOD): |
3372 | Handle COMPOSITION_WITH_GLYPH_STRING. | |
aca7a3d2 | 3373 | |
73acf815 | 3374 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3375 | |
15139d67 | 3376 | * xfont.c (Qx): Delete. |
aca7a3d2 MB |
3377 | (syms_of_xfont): Don't initialize Qx. |
3378 | ||
15139d67 SM |
3379 | * composite.h (enum composition_method): |
3380 | Define COMPOSITION_WITH_GLYPH_STRING unconditionally. | |
aca7a3d2 | 3381 | |
73acf815 | 3382 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3383 | |
3384 | * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally. | |
3385 | (choose_face_font): Accept new form of font-spec. | |
3386 | ||
3387 | * frame.h (font_driver_list): Declare it unconditionally. | |
3388 | (struct frame): Define members font_driver_list and font_data_list | |
3389 | unconditionally. | |
3390 | ||
3391 | * fontset.c: Include "font.h" unconditionally. | |
15139d67 | 3392 | (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd. |
aca7a3d2 MB |
3393 | (Fset_fontset_font): Accept a font-spec object. |
3394 | ||
3395 | * font.c (font_unparse_xlfd): If pixel_size is zero, make the | |
3396 | PIXEL_SIZE part a wild card. | |
3397 | ||
3398 | * dispextern.h (struct glyph_string): Define members clip and | |
3399 | num_clips unconditionally. | |
3400 | (struct face): Define members font_info and extra unconditionally. | |
3401 | ||
3402 | * ftfont.c (ftfont_open): Set members maybe_otf and otf of | |
3403 | ftfont_info only when HAVE_LIBOTF is defined. | |
3404 | ||
73acf815 | 3405 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
3406 | |
3407 | * xdisp.c (back_to_previous_visible_line_start): Fix type of beg | |
3408 | and end. | |
3409 | ||
73acf815 | 3410 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3411 | |
3412 | * w32font.c (w32font_driver): Add new fields. | |
3413 | ||
73acf815 | 3414 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 3415 | |
aca7a3d2 MB |
3416 | * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@. |
3417 | (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally. | |
3418 | (LIBES): Add @M17N_FLT_CFLAGS@. | |
3419 | ||
3420 | * composite.c (compose_text): Don't treat the new style | |
3421 | composition specially. | |
3422 | ||
3423 | * emacs.c (main): Call syms_of_font unconditionally. | |
3424 | ||
3425 | * font.h (FONT_ENTITY_NOT_LOADABLE) | |
3426 | (FONT_ENTITY_SET_NOT_LOADABLE): New macros. | |
15139d67 | 3427 | (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring. |
aca7a3d2 | 3428 | (struct font_driver): New member shape. |
1f45f627 | 3429 | (font_registry_charsets): Extern it. |
4c4475a8 | 3430 | (font_find_for_lface, font_prepare_composition): Adjust prototype. |
aca7a3d2 MB |
3431 | (font_otf_capability, font_drive_otf): Delete their externs. |
3432 | ||
3433 | * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>. | |
4c4475a8 GM |
3434 | (font_charset_alist, font_registry_charsets): Move from xfont.c |
3435 | and rename. | |
aca7a3d2 MB |
3436 | (font_prop_validate_otf): New function. |
3437 | (font_property_table): Register it for QCotf. | |
3438 | (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER) | |
15139d67 | 3439 | (font_drive_otf): Delete. |
1f45f627 | 3440 | (font_prepare_composition): New arg F. Adjust for the change of |
aca7a3d2 MB |
3441 | lispy gstring. |
3442 | (font_find_for_lface): New arg C. | |
15139d67 | 3443 | (font_load_for_face): Adjust for the change of font_find_for_lface. |
4c4475a8 GM |
3444 | (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of |
3445 | lispy gstring. | |
aca7a3d2 MB |
3446 | (Ffont_shape_text): New function. |
3447 | (Fopen_font): If the font size is not given, use 12-pixel. | |
3448 | (Ffont_at): New arg STRING. | |
15139d67 SM |
3449 | (syms_of_font): Initalize font_charset_alist. |
3450 | Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont | |
aca7a3d2 MB |
3451 | conditionally. |
3452 | ||
3453 | * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple | |
3454 | fonts of the same font-spec. Change the format of RFONT-DEF. | |
4c4475a8 GM |
3455 | (face_for_char, make_fontset_for_ascii_face, Finternal_char_font): |
3456 | Adjust for the change of RFONT-DEF. | |
15139d67 | 3457 | (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec. |
aca7a3d2 MB |
3458 | |
3459 | * ftfont.h: New file. | |
3460 | ||
3461 | * ftfont.c: Don't include Freetype headers. Include "ftfont.h". | |
3462 | (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. | |
3463 | (ftfont_open) [HAVE_LIBOTF]: Initialize the above members. | |
3464 | (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set | |
3465 | font_otf_capability and font_drive_otf, set ftfont_shape. | |
15139d67 | 3466 | (ftfont_list): Adjust for the change of :otf property value. |
aca7a3d2 MB |
3467 | (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct. |
3468 | (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf) | |
3469 | (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt) | |
3470 | (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s | |
3471 | (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro. | |
3472 | (otf_gstring, gstring, m17n_flt_initialized): New variables. | |
3473 | ||
15139d67 SM |
3474 | * w32term.c (x_draw_composite_glyph_string_foreground): |
3475 | Adjust for the change of lispy gstring. | |
aca7a3d2 | 3476 | |
15139d67 | 3477 | * xdisp.c (handle_composition_prop): Adjust for the change of |
aca7a3d2 | 3478 | lispy gstring. Call a function for auto-composition with the |
15139d67 SM |
3479 | third arg it->window. |
3480 | (fill_composite_glyph_string): Adjust for the change of lispy string. | |
3481 | (x_produce_glyphs): Adjust for the change of font_prepare_compositionl. | |
aca7a3d2 | 3482 | |
15139d67 | 3483 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
3484 | font_find_for_lface. |
3485 | ||
1f45f627 GM |
3486 | * xfont.c (x_font_charset_alist): Move to font.c and rename. |
3487 | (xfont_registry_charsets): Likewise. Change caller. | |
aca7a3d2 MB |
3488 | (syms_of_xfont): Don't handle x_font_charset_alist. |
3489 | ||
3490 | * xftfont.c: Include "ftfont.h". | |
15139d67 | 3491 | (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. |
aca7a3d2 MB |
3492 | (xftfont_open) [HAVE_LIBOTF]: Initialize the above members. |
3493 | (xftfont_close) [HAVE_LIBOTF]: Close otf. | |
3494 | (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. | |
15139d67 SM |
3495 | (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]: |
3496 | Set xftfont_driver.shape to xftfont_shape. | |
aca7a3d2 | 3497 | |
15139d67 | 3498 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
3499 | the change of lispy gstring. |
3500 | ||
73acf815 | 3501 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3502 | |
3503 | * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error. | |
3504 | ||
73acf815 | 3505 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3506 | |
3507 | * w32font.c (w32font_draw): Fill background manually. | |
3508 | ||
73acf815 | 3509 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3510 | |
3511 | * font.c (Qfontp): Remove unused symbol. | |
3512 | (QCantialias): New symbol. | |
3513 | (syms_of_font): Define it. | |
3514 | (font_property_table): Set a validator for QCantialias. | |
3515 | ||
15139d67 SM |
3516 | * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY): |
3517 | Define if not already. | |
aca7a3d2 MB |
3518 | (QCfamily): Share with xfaces.c. |
3519 | (Qstandard, Qsubpixel, Qnatural): New symbols. | |
1f45f627 | 3520 | (syms_of_w32font): Define them. Don't define QCfamily here. |
aca7a3d2 MB |
3521 | (w32_antialias_type, lispy_antialias_type): New functions. |
3522 | (w32_enumfont_pattern_entity): New arg requested_font. | |
3523 | Set antialias parameter if non-default was requested. | |
3524 | (fill_in_logfont): Fill in lfQuality if :antialias specified. | |
3525 | ||
73acf815 | 3526 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3527 | |
3528 | * lread.c (read1): Undo the previous change. | |
3529 | ||
73acf815 | 3530 | 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change) |
aca7a3d2 MB |
3531 | |
3532 | * frame.c (Fdelete_frame): Call font_update_drivers only when | |
6f69e89b | 3533 | USE_FONT_BACKEND is defined. |
aca7a3d2 | 3534 | |
73acf815 | 3535 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3536 | |
3537 | * font.h (struct font_bitmap): New member bits_per_pixel. | |
3538 | (struct font_driver): New members start_for_frame and end_for_frame. | |
3539 | (struct font_data_list): New struct. | |
3540 | (font_put_frame_data, font_get_frame_data): Extern them. | |
3541 | ||
3542 | * frame.h (struct frame): New member font_data_list. | |
3543 | ||
3544 | * font.c (font_update_drivers): Call driver->start_for_frame and | |
3545 | driver->end_for_frame at proper timings. | |
3546 | (font_put_frame_data, font_get_frame_data): New functions. | |
3547 | (Ffont_spec): Add usage in the docstring. | |
3548 | ||
3549 | * frame.c (make_frame): Initialize f->font_data_list to NULL. | |
3550 | (Fdelete_frame): Call font_update_drivers. | |
3551 | ||
3552 | * xftfont.c (struct xftface_info): Delete the member xft_draw. | |
4c4475a8 | 3553 | (xftfont_prepare_face, xftfont_done_face): Adjust for the above change. |
aca7a3d2 MB |
3554 | (xftfont_get_xft_draw): New function. |
3555 | (xftfont_draw): Get XftDraw by xftfont_get_xft_draw. | |
3556 | (xftfont_end_for_frame): New function. | |
3557 | (syms_of_xftfont): Set xftfont_driver.end_for_frame. | |
3558 | ||
15139d67 | 3559 | * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs. |
1f45f627 | 3560 | Change argument. Cache GCs in the per-frame data. |
aca7a3d2 MB |
3561 | (struct ftxfont_frame_data): New struct. |
3562 | (ftxfont_draw_bitmap): New arg gc_fore and flush. | |
3563 | (ftxfont_prepare_face, ftxfont_done_face): Delete them. | |
15139d67 | 3564 | (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs. |
aca7a3d2 MB |
3565 | (ftxfont_end_for_frame): New function. |
3566 | (syms_of_ftxfont): Set ftxfont_driver.end_for_frame. | |
3567 | ||
3568 | * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel. | |
3569 | ||
73acf815 | 3570 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3571 | |
3572 | * xselect.c (Vselection_coding_system) | |
3573 | (Vnext_selection_coding_system): Delete them. | |
3574 | (syms_of_xselect): Don't declare selection-coding-system and | |
3575 | next-selection-coding-system. They are declared in select.el. | |
3576 | ||
73acf815 | 3577 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3578 | |
3579 | * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already. | |
3580 | ||
3581 | * w32fns.c: Include imm.h. | |
3582 | (get_composition_string_fn, get_ime_context_fn): New optional | |
3583 | system functions. | |
3584 | (globals_of_w32fns): Load them from imm32.dll. | |
3585 | (ignore_ime_char): New flag. | |
3586 | (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and | |
3587 | WM_IME_ENDCOMPOSITION messages. | |
3588 | ||
3589 | * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as | |
3590 | MULTIBYTE_CHAR_KEYSTROKE_EVENT. | |
3591 | ||
73acf815 | 3592 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3593 | |
3594 | * lread.c (READCHAR): Call readchar with the 2nd arg NULL. | |
3595 | (READCHAR_REPORT_MULTIBYTE): New macro. | |
3596 | (readchar): New 2nd arg MULTIBYTE. | |
15139d67 SM |
3597 | (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. |
3598 | Make symbol's name multibyte according to the multibyteness of the | |
aca7a3d2 MB |
3599 | source. |
3600 | ||
73acf815 | 3601 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3602 | |
3603 | * xfaces.c (face_for_overlay_string): Call lookup_face with | |
3604 | correct arguments (fix of synching with the trunk). | |
3605 | ||
73acf815 | 3606 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3607 | |
4c4475a8 GM |
3608 | * font.c (font_prop_validate_symbol, font_prop_validate_style) |
3609 | (font_prop_validate_non_neg, font_prop_validate_spacing): | |
3610 | Delete argument prop_index. | |
15139d67 SM |
3611 | (font_property_table): Change arguments to validater. Change Callers. |
3612 | (font_lispy_object): Delete. | |
aca7a3d2 MB |
3613 | (font_at): Use font_find_object instead fo font_lispy_object. |
3614 | ||
73acf815 | 3615 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
3616 | |
3617 | * fileio.c (Fexpand_file_name): Adjust multibyteness of directory | |
3618 | and file names. | |
3619 | ||
73acf815 | 3620 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3621 | |
3622 | * w32font.c (add_font_name_to_list): Avoid vertical fonts. | |
3623 | (font_matches_spec): Remove debug output. | |
3624 | (add_font_entity_to_list): Avoid using substituted fonts. | |
3625 | ||
73acf815 | 3626 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3627 | |
3628 | * doc.c (Fsnarf_documentation): | |
3629 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change. | |
3630 | ||
73acf815 | 3631 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 3632 | |
290afd83 | 3633 | * dispextern.h (struct glyph_row): Only define "clip" field if |
aca7a3d2 MB |
3634 | HAVE_WINDOW_SYSTEM is defined. |
3635 | ||
73acf815 | 3636 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
3637 | |
3638 | Fix up multi-tty merge. | |
3639 | ||
3640 | * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting | |
3641 | and indentation. | |
3642 | ||
3643 | * xfaces.c (free_realized_face, clear_face_gcs): | |
3644 | Include font_done_for_face in the input_blocked section, just in case. | |
3645 | ||
3646 | * xdisp.c (decode_mode_spec): Use terminal-local coding systems. | |
3647 | (get_char_face_and_encoding): Undo last change and remove the *other* | |
3648 | duplicate definition (i.e. keep the one that's better scoped and that | |
3649 | includes code for the font-backend). | |
3650 | ||
3651 | * terminal.c (create_terminal): Default keyboard_coding to | |
3652 | `no-conversion' and terminal_coding to `undecided'. | |
3653 | ||
3654 | * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag. | |
3655 | ||
3656 | * fontset.c (free_realized_fontsets): Check that the table entry does | |
3657 | contain a fontset before trying to compare it to `base'. | |
3658 | ||
3659 | * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc, | |
3660 | syms_of_charset, and syms_of_coding earlier because init_window_once | |
3661 | now needs Vcoding_system_hash_table to be setup. | |
3662 | ||
3663 | * coding.h (default_buffer_file_coding): Remove. | |
3664 | ||
3665 | * coding.c (default_buffer_file_coding): Remove. | |
3666 | (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather | |
3667 | than ->symbol, and use the terminal-local coding system. | |
3668 | (syms_of_coding): Don't setup the coding-systems that are not | |
3669 | terminal-local. | |
3670 | (Fdefine_coding_system_internal): Use XCAR/XCDR. | |
3671 | ||
3672 | * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table): | |
3673 | Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore. | |
3674 | ||
3675 | * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now | |
3676 | in chartab.c and were re-added here by mistake. | |
3677 | (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector. | |
3678 | ||
3679 | * doc.c (Fsnarf_documentation): | |
3680 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from | |
3681 | src to etc. | |
3682 | ||
3683 | * ChangeLog.10: Add mistakenly removed entry. | |
3684 | ||
73acf815 | 3685 | 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu> |
aca7a3d2 MB |
3686 | |
3687 | * Makefile.in (fringe.o, minibuf.o): Fix dependencies. | |
3688 | ||
73acf815 | 3689 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
3690 | |
3691 | * xdisp.c (get_char_face_and_encoding): Remove extraneous definition. | |
3692 | Add extra args to FACE_FOR_CHAR. | |
3693 | ||
73acf815 | 3694 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3695 | |
3696 | * keymap.c (where_is_internal_1): If key is a cons, store the copy | |
3697 | in sequence. | |
3698 | ||
4c4475a8 GM |
3699 | * chartab.c (map_sub_char_table, map_char_table): If the range |
3700 | contains just one character, call the function with that character | |
3701 | even if the depth is not 3. | |
aca7a3d2 | 3702 | |
73acf815 | 3703 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3704 | |
3705 | * w32font.c (w32font_text_extents): Calculate metrics for the | |
3706 | whole string. | |
3707 | ||
73acf815 | 3708 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3709 | |
3710 | * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages. | |
3711 | ||
73acf815 | 3712 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3713 | |
3714 | * w32term.c (x_set_glyph_string_clipping): Use | |
3715 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
3716 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
3717 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
3718 | |
3719 | * w32font.c (w32font_draw): Do clipping here. | |
3720 | ||
73acf815 | 3721 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3722 | |
1f45f627 | 3723 | * xftfont.c (xftfont_draw): Adjust for the change of struct |
aca7a3d2 MB |
3724 | glyph_string. |
3725 | ||
3726 | * xterm.c (x_set_glyph_string_clipping): Use | |
3727 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
3728 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
3729 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
3730 | |
3731 | * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to | |
3732 | the resulting clip(s}. | |
1f45f627 | 3733 | (expose_overlaps): Add arg r. Change callers. Set it to |
aca7a3d2 MB |
3734 | row->clip temporarily. |
3735 | (expose_window): Redraw rows overlapping the exposed area. | |
3736 | ||
3737 | * dispextern.h (struct glyph_row): New member clip. | |
3738 | (struct glyph_string): Delete members clip_x, clip_y, clip_width, | |
3739 | clip_height, new member clip, and num_clips. | |
3740 | ||
73acf815 | 3741 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3742 | |
3743 | * data.c (Fchar_or_string_p): Fix docstring. | |
3744 | ||
73acf815 | 3745 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3746 | |
3747 | * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info, | |
3748 | create a temporal XftDraw object. | |
3749 | ||
73acf815 | 3750 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3751 | |
3752 | * font.c (Ffontp): Fix docstring. | |
3753 | ||
3754 | * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a | |
3755 | strong evidence of ISO-2022. | |
3756 | ||
73acf815 | 3757 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3758 | |
3759 | * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not | |
3760 | SYNTAX_ENTRY_FOLLOW_PARENT. | |
3761 | ||
73acf815 | 3762 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
3763 | |
3764 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change | |
3765 | its type. | |
3766 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
3767 | Update to the new type of weak_hash_tables and next_weak. | |
3768 | ||
3769 | * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to | |
3770 | a plain C pointer to Lisp_Hash_Table. | |
3771 | ||
3772 | * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP) | |
3773 | (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP) | |
3774 | (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP) | |
3775 | (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP) | |
3776 | (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP) | |
3777 | (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP) | |
3778 | (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP) | |
3779 | (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP) | |
3780 | (GC_EQ): Remove since they've been identical to their non-GC_ | |
3781 | alter-egos ever since the markbit was eradicated. | |
3782 | ||
290afd83 JB |
3783 | * alloc.c: |
3784 | * buffer.c: | |
3785 | * buffer.h: | |
3786 | * data.c: | |
3787 | * fileio.c: | |
3788 | * filelock.c: | |
3789 | * fns.c: | |
3790 | * frame.h: | |
3791 | * lisp.h: | |
3792 | * macterm.c: | |
3793 | * print.c: | |
3794 | * process.c: | |
3795 | * w32fns.c: | |
3796 | * w32menu.c: | |
3797 | * w32term.c: | |
3798 | * xfns.c: | |
3799 | * xmenu.c: | |
3800 | * xterm.c: Replace uses of GC_* macros with the non-GC_ versions. | |
aca7a3d2 | 3801 | |
73acf815 | 3802 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3803 | |
3804 | * chartab.c (map_sub_char_table): Make it work for the top-level | |
3805 | char-table. Fix handling of parent char-table. | |
c5ad7a3d | 3806 | (map_char_table): Adjust for the above change. |
aca7a3d2 | 3807 | |
73acf815 | 3808 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3809 | |
3810 | * w32font.c (Qgdi): Rename from Qw32. | |
3811 | ||
73acf815 | 3812 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3813 | |
3814 | * w32bdf.c (get_quoted_string): Make function static. | |
3815 | ||
73acf815 | 3816 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3817 | |
3818 | * xftfont.c (xftfont_open): If one of font's ASCII glyph has | |
3819 | bigger ascent and descent than those of the font, use them as | |
3820 | font's ascent and descent. | |
3821 | ||
73acf815 | 3822 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3823 | |
3824 | * Makefile.in (${lispsource}international/charprop.el): Move this | |
3825 | target within "#ifdef HAVE_UNIDATA" and "#endif". | |
3826 | ||
73acf815 | 3827 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3828 | |
3829 | * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el. | |
3830 | (shortlisp): Add ../lisp/language/tai-viet.el. | |
3831 | ||
1f45f627 | 3832 | 2008-02-01 Ulrich Mueller <ulm@gentoo.org> |
aca7a3d2 MB |
3833 | |
3834 | * Makefile.in (${lispsource}international/charprop.el): Depend on | |
3835 | temacs${EXEEXT}. | |
3836 | ||
73acf815 | 3837 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3838 | |
3839 | * w32font.c (w32font_close): Delete the GDI font object. | |
3840 | ||
6f69e89b | 3841 | * w32menu.c: Include character.h. |
aca7a3d2 MB |
3842 | |
3843 | * w32proc.c: Likewise. | |
3844 | ||
3845 | * w32select.c: Likewise. | |
3846 | ||
6f69e89b | 3847 | * makefile.w32-in (w32proc.o): Depend on character.h. |
aca7a3d2 | 3848 | |
73acf815 | 3849 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3850 | |
3851 | * w32fns.c (syms_of_w32fns): Use DEFSYM macro. | |
3852 | ||
3853 | * w32menu.c (syms_of_w32menu): Likewise. | |
3854 | ||
3855 | * w32proc.c (syms_of_ntproc): Likewise. | |
3856 | ||
3857 | * w32select.c (syms_of_w32select): Likewise. | |
3858 | ||
3859 | * w32term.c (syms_of_w32term): Likewise. | |
3860 | ||
73acf815 | 3861 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3862 | |
3863 | * w32font.c (w32font_draw): Delete brush after using it. | |
3864 | ||
73acf815 | 3865 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3866 | |
3867 | * w32font.c (w32font_open): Don't set font_idx. | |
3868 | (w32font_text_extents): Try GetTextExtentPoint32W before defaulting | |
3869 | to font settings. | |
3870 | (w32font_draw): Fill background explicitly. | |
3871 | ||
73acf815 | 3872 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3873 | |
3874 | * w32term.c (w32_initialize): Don't call w32font_initialize. | |
3875 | ||
3876 | * w32font.c (w32font_info): Remove subranges. | |
3877 | (QCsubranges, Qmodern, Qswiss, Qroman): Remove. | |
3878 | (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif) | |
3879 | (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian) | |
3880 | (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali) | |
3881 | (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada) | |
3882 | (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian) | |
3883 | (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham) | |
3884 | (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan) | |
3885 | (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun) | |
3886 | (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical): | |
3887 | New symbols. | |
3888 | (font_callback_data): New struct. | |
3889 | (w32font_list, w32font_match): Use it. | |
3890 | (w32font_open): Don't populate subranges. | |
3891 | (w32font_has_char): Use script Lisp symbols, not subrange bitmask. | |
3892 | (w32font_encode_char): Always return unicode code-point as-is. | |
3893 | (w32font_text_extents): Supply a tranformation matrix to | |
1f45f627 GM |
3894 | GetGlyphOutline. Never look up by glyph index. Avoid looping |
3895 | twice. Use unicode version of GetTexExtentPoint32 instead of | |
aca7a3d2 MB |
3896 | glyph index version. |
3897 | (set_fonts_frame): Remove | |
3898 | (w32_enumfont_pattern_entity): Add frame parameter, use it to | |
1f45f627 GM |
3899 | set frame parameter. Use backward compatible fake foundries. |
3900 | Save generic family in extra slot under QCfamily. Make width slot | |
3901 | constant. Save QCspacing value. Save list of scripts instead of | |
aca7a3d2 MB |
3902 | binary subranges. |
3903 | (w32_generic_family, logfonts_match, font_matches_spec): New functions. | |
1f45f627 | 3904 | (add_font_entity_to_list): Use font_callback_data struct. Filter |
aca7a3d2 MB |
3905 | unwanted fonts. |
3906 | (add_one_font_entity_to_list): Use font_callback_data struct. | |
1f45f627 GM |
3907 | (w32_registry): Default to iso10646_1. |
3908 | (fill_in_logfont): Use dpi from extra slot. Don't bother with | |
3909 | string font registries. Don't fill in font name if it is a generic | |
3910 | family name, fill family instead. Use spacing, family and script | |
aca7a3d2 MB |
3911 | extra info to fill pitch, family and charset fields. |
3912 | (list_all_matching_fonts): Use font_callback_data struct. | |
3913 | (unicode_range_for_char): Remove. | |
3914 | (font_supported_scripts): New function. | |
3915 | (w32font_initialize): Remove. | |
3916 | (syms_of_w32font): Update which symbols are defined. | |
3917 | ||
73acf815 | 3918 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3919 | |
3920 | * font.c (font_pixel_size): Reverse assq_no_quit args. | |
3921 | ||
3922 | * w32term.h (FONT_WIDTH): Report max width, not average. | |
3923 | (FONT_MAX_WIDTH): Remove. | |
3924 | (FONT_AVG_WIDTH): New macro. | |
3925 | ||
3926 | * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only | |
3927 | redefinition of FONT_WIDTH. | |
3928 | ||
3929 | * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH. | |
3930 | (w32_cache_char_metrics): Use FONT_WIDTH. | |
3931 | ||
3932 | * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH. | |
3933 | ||
73acf815 | 3934 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3935 | |
3936 | * w32font.c (w32font_open): Make lfHeight negative. | |
3937 | ||
3938 | * w32fns.c (x_default_font_parameter): Use new style font name. | |
3939 | (Fx_create_frame, x_create_tip_frame): Initialize resx and resy. | |
3940 | ||
73acf815 | 3941 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3942 | |
3943 | * w32font.c (QCsubranges): New symbol. | |
3944 | (w32font_open, w32font_has_char): Get subranges from subproperty | |
3945 | of extra. | |
3946 | (w32_enumfont_pattern_entity): Set subranges as subproperty of extra. | |
3947 | (syms_of_w32font): Define :subranges symbol. | |
3948 | ||
3949 | * font.c (font_put_extra): Expose externally. | |
3950 | ||
1f45f627 | 3951 | * font.h (font_put_extra): Move declaration from font.c. |
aca7a3d2 MB |
3952 | |
3953 | * font.c (Ffont_get): Use font driver to determine otf capability. | |
3954 | (adjust_anchor): Check if driver defines anchor_point before using. | |
3955 | ||
3956 | * w32font.c (w32font_open): Handle size, height and pixel_size better. | |
3957 | (w32font_draw): Use options. | |
3958 | (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts. | |
3959 | Fix detection of truetype fonts. | |
3960 | (registry_to_w32_charset): Handle charsets other than iso8859-1 | |
3961 | expressed as lisp symbols. | |
3962 | (w32_registry): Express charset as lisp symbol. | |
3963 | (fill_in_logfont): Reverse pixel and point height logic. | |
1f45f627 | 3964 | Don't set width here. Set quality to default. |
aca7a3d2 MB |
3965 | |
3966 | * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts. | |
3967 | (x_to_w32_font): Fill in lfPitchAndFamily correctly. | |
3968 | ||
3969 | * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: | |
3970 | Remove redundant loop and allocation. | |
3971 | ||
3972 | * makefile.w32-in (font.o, w32font.o): New objects. | |
6f69e89b | 3973 | (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h. |
aca7a3d2 MB |
3974 | (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND. |
3975 | ||
3976 | * xdisp.c (fill_composite_glyph_string): Make the first arg to | |
3977 | STORE_XCHARB a valid l-value. | |
3978 | ||
3979 | * w32term.c (w32_native_per_char_metric): Swap width and rbearing | |
3980 | calculations for non-Truetype fonts. | |
3981 | (x_draw_glyph_string): Sync with xterm.c. | |
c3f9fba8 JB |
3982 | (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: |
3983 | Remove redundant code. | |
aca7a3d2 MB |
3984 | (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize. |
3985 | ||
3986 | * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member. | |
3987 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h. | |
3988 | ||
3989 | * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c. | |
3990 | (x_to_w32_charset, w32_to_x_charset): Expose externally. | |
3991 | ||
3992 | * w32font.c: New file for w32 font backend. | |
3993 | ||
73acf815 | 3994 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3995 | |
3996 | * term.c: Don't include "buffer.h" twice. | |
3997 | ||
73acf815 | 3998 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3999 | |
4000 | * character.c (Funibyte_string): New function. | |
4001 | (syms_of_character): Defsubr it. | |
4002 | ||
73acf815 | 4003 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
4004 | |
4005 | * w32term.c [USE_FONT_BACKEND]: | |
c3f9fba8 JB |
4006 | (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc) |
4007 | (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly) | |
4008 | (x_draw_glyph_string, x_draw_glyph_string_foreground) | |
4009 | (x_draw_composite_glyph_string_foreground, x_new_fontset2) | |
aca7a3d2 MB |
4010 | (x_free_frame_resources): Sync with xterm.c. |
4011 | ||
73acf815 | 4012 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
4013 | |
4014 | * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate | |
4015 | char-table size. | |
4016 | ||
73acf815 | 4017 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4018 | |
c3f9fba8 | 4019 | * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF. |
aca7a3d2 | 4020 | |
73acf815 | 4021 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4022 | |
4023 | * ftfont.c (ftfont_driver): Delete font_otf_gsub and | |
4024 | font_otf_gpos, add font_drive_otf. | |
4025 | ||
4026 | * fontset.c (fontset_find_font): Pay attention to font size | |
4027 | specified for a font. | |
4028 | (reorder_font_vector): Check contents of font_def. | |
4029 | ||
4030 | * font.c (struct otf_list): Delete it. | |
6f69e89b | 4031 | (otf_list): Make it a lisp variable. |
aca7a3d2 | 4032 | (otf_open): Use lispy otf_list. |
1f45f627 | 4033 | (generate_otf_features): Rename from parse_gsub_gpos_spec. |
aca7a3d2 | 4034 | (check_otf_features): New function. |
c3f9fba8 JB |
4035 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): |
4036 | New functions. | |
aca7a3d2 MB |
4037 | (font_drive_otf): New function merging font_otf_gsub and |
4038 | font_otf_gpos. | |
4039 | (font_open_for_lface): New arg spec. Change argument order. | |
1f45f627 | 4040 | (font_load_for_face): Adjust for the change of font_open_for_lface. |
aca7a3d2 MB |
4041 | (Ffont_drive_otf): New function merging Ffont_otf_gsub and |
4042 | Ffont_otf_gpos. | |
4043 | (syms_of_font): Staticpro otf_list. Delete defsubr of | |
4044 | Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf. | |
4045 | ||
1f45f627 | 4046 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
4047 | font_open_for_lface. |
4048 | ||
4049 | * font.h (font_open_for_lface): Adjust prototype. | |
4050 | (struct font_driver): Delete members otf_gsub and otf_gpos, add | |
4051 | member otf_drive. | |
4052 | (font_otf_gsub, font_otf_gpos): Delete externs. | |
4053 | (font_drive_otf): Extern it. | |
4054 | ||
73acf815 | 4055 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4056 | |
4057 | * font.c (font_at): If the window W is not on a window system, | |
4058 | return Qnil. | |
4059 | ||
4c4475a8 GM |
4060 | * coding.c (produce_chars, encode_coding): Don't call |
4061 | insert_from_gap if no characters to produce. | |
aca7a3d2 | 4062 | |
73acf815 | 4063 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4064 | |
4065 | * fontset.c (free_realized_fontsets): Avoid unnecessary call of | |
4066 | Fclear_face_cache. | |
4067 | ||
4068 | * xfaces.c (face_for_font): Check also face->font==font->font.font. | |
4069 | ||
73acf815 | 4070 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
4071 | |
4072 | * emacs.c (main): Change default value of `enable_font_backend' to 1. | |
4073 | Parse "--disable-font-backend" option. | |
4074 | (standard_args): Add "--disable-font-backend" option. | |
4075 | ||
73acf815 | 4076 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4077 | |
4078 | * fontset.c (fontset_find_font): New function. | |
4079 | (fontset_font): Use fontset_find_font. | |
4080 | (make_fontset_for_ascii_face): Don't set face ID in rfont_def. | |
4081 | Register the specified font for all Latin characters. | |
4082 | (new_fontset_from_font): Register the specified font for all Latin | |
4083 | characters. | |
4084 | (dump_fontset): For a realized fontset, include the base fontset | |
4085 | name in the returned vector. | |
4086 | ||
73acf815 | 4087 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4088 | |
4089 | * character.h (CHAR_STRING): Cast C to unsigned on calling | |
4090 | char_string. | |
4091 | ||
4092 | * character.c (char_string): Type of arg C changed to unsigned. | |
4093 | Signal an error if C is an invalid character code. | |
4094 | ||
4c4475a8 GM |
4095 | * editfns.c (general_insert_function, Fchar_to_string): |
4096 | Use CHARACTERP, not INTEGERP. | |
aca7a3d2 | 4097 | |
73acf815 | 4098 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4099 | |
4100 | * character.h (MIN_MULTIBYTE_LEADING_CODE) | |
4101 | (MAX_MULTIBYTE_LEADING_CODE): New macros. | |
4102 | ||
4103 | * regex.c (analyse_first): Fix for multibyte characters in "case | |
4104 | charset:" and "case categoryspec:". | |
4105 | ||
73acf815 | 4106 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
4107 | |
4108 | * Makefile.in (LIBES): Move standard libraries to the end. | |
4109 | ||
73acf815 | 4110 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4111 | |
4112 | * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is | |
4113 | nonzero, don't shrink the buffer nextb. | |
4114 | ||
4115 | * buffer.h (struct buffer_text): New member inhibit_shrinking. | |
4116 | ||
4117 | * coding.c (coding_alloc_by_making_gap): New arg offset. | |
4118 | (alloc_destination): Call coding_alloc_by_making_gap with the arg | |
4119 | offset. | |
4120 | (decode_coding_iso_2022): Update coding->safe_charsets. | |
4121 | (decode_coding_gap): Temporarily set | |
4122 | current_buffer->text->inhibit_shrinking to 1. | |
4123 | ||
73acf815 | 4124 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4125 | |
4126 | * xterm.c (x_draw_composite_glyph_string_foreground): Fix | |
4127 | indexing into elements of s->cmp and s->char2b. | |
4128 | ||
73acf815 | 4129 | 2008-02-01 Juanma Barranquero <lekktu@gmail.com> |
aca7a3d2 MB |
4130 | |
4131 | * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'. | |
4132 | ||
73acf815 | 4133 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4134 | |
4135 | * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable | |
4136 | target_multibyte instead of multibyte. | |
4137 | (re_match_2_internal): Call bcmp_translate with target_multibyte. | |
4138 | (bcmp_translate): Change the argument name from multibyte to | |
4139 | target_multibyte. | |
4140 | ||
73acf815 | 4141 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4142 | |
4143 | These changes are to compile a regexp into a pattern that can be | |
4144 | used both for multibyte and unibyte targets. | |
4145 | ||
4146 | * Makefile.in (search.o): Depend on charset.h. | |
4147 | ||
4148 | * character.c (multibyte_char_to_unibyte_safe): New function. | |
4149 | ||
4150 | * search.c: Include "charset.h". | |
4151 | (compile_pattern_1): Delete argument multibyte. Don't set | |
4152 | cp->buf.target_multibyte here. Set cp->buf.charset_unibyte. | |
4153 | (compile_pattern): Don't compare cp->buf.target_multibyte. | |
4154 | Compare cp->buf.charset_unibyte. | |
4155 | (compile_pattern): Set cp->buf.target_multibyte. | |
4156 | ||
4157 | * lisp.h (multibyte_char_to_unibyte_safe): Extern it. | |
4158 | ||
4159 | * regex.h (struct re_pattern_buffer): New member charset_unibyte. | |
4160 | ||
4161 | * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg | |
1f45f627 | 4162 | multibyte. Change callers. |
aca7a3d2 | 4163 | (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. |
1f45f627 GM |
4164 | (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers |
4165 | to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively. | |
aca7a3d2 MB |
4166 | (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. |
4167 | (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table. | |
4168 | (regex_compile): Make the compiled pattern usable both for | |
4169 | multibyte and unibyte targets. | |
4170 | (analyse_first): Make the fastmap usable both for multibyte and | |
4171 | unibyte targets. | |
1f45f627 | 4172 | (TRANSLATE_VIA_MULTIBYTE): Delete. |
aca7a3d2 MB |
4173 | (re_match_2_internal): Pay attention to the case that the |
4174 | multibyteness of bufp and target may be different. | |
4175 | ||
73acf815 | 4176 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4177 | |
4178 | * xdisp.c (x_produce_glyphs): When a font is not found, make the | |
4179 | empty box occupy at least one column width. | |
4180 | ||
73acf815 | 4181 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
4182 | |
4183 | * Makefile.in: Remove redundant HAVE_XFT clause. | |
4184 | ||
73acf815 | 4185 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4186 | |
4187 | * xrdb.c (x_load_resources): Setup the default fontSet X reource. | |
4188 | ||
73acf815 | 4189 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4190 | |
4191 | * fontset.c (Finternal_char_font): Fix for the case of POSITION | |
4192 | being nil. | |
4193 | ||
73acf815 | 4194 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4195 | |
4196 | * xftfont.c (xftfont_open): Call FcConfigSubstitute. | |
4197 | ||
73acf815 | 4198 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4199 | |
4200 | * xftfont.c (xftfont_open): Don't enable antialias explicitly. | |
4201 | ||
73acf815 | 4202 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4203 | |
4204 | * search.c (simple_search): Fix previous change. | |
4205 | ||
73acf815 | 4206 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4207 | |
4208 | * xftfont.c (ftfont_font_format): Extern declaration. | |
4209 | ||
4210 | * frame.c (x_set_font): Fix the second arg to fs_query_fontset. | |
4211 | ||
4212 | * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0. | |
4213 | (xfont_list): Don't directly use Lisp_Object as an operand of &&. | |
4214 | ||
4215 | * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0. | |
4216 | (ftfont_font_format): Fix previous change. | |
4217 | ||
4218 | * font.h (Ffont_xlfd_name): EXFUN it. | |
4219 | ||
4220 | * font.c (font_parse_xlfd): Fix the array size of `f'. | |
4221 | (register_font_driver): Use EQ to compare driver->type. | |
4222 | ||
4223 | * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function. | |
4224 | (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2. | |
4225 | (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise. | |
4226 | ||
73acf815 | 4227 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4228 | |
4c4475a8 GM |
4229 | * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family) |
4230 | (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined. | |
aca7a3d2 | 4231 | |
73acf815 | 4232 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4233 | |
4234 | * xfont.c (xfont_open): Set font->format. | |
4235 | ||
4236 | * xftfont.c (xftfont_open): Set font->format. | |
4237 | ||
4238 | * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern. | |
4239 | (ftfont_list): Include FC_FONTFORMAT in FcObject. | |
4240 | (ftfont_open): Set font->format. | |
4241 | (ftfont_font_format): New function. | |
4242 | ||
4243 | * font.h (struct font): New memeber format. | |
4244 | ||
4245 | * font.c (Qopentype): New variable. | |
4246 | (syms_of_font): Defsym it. | |
4247 | (Fquery_font): Change the format of the last element of the return | |
4248 | value. | |
4249 | ||
73acf815 | 4250 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4251 | |
4252 | * xfns.c (xic_create_xfontset): Try the default fontset name as a | |
4253 | last resort. | |
4254 | ||
73acf815 | 4255 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4256 | |
4257 | * coding.c (detect_coding_charset): Fix detection of multi-byte | |
4258 | charset. | |
4259 | ||
73acf815 | 4260 | 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change) |
aca7a3d2 MB |
4261 | |
4262 | * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0. | |
4263 | ||
73acf815 | 4264 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4265 | |
4266 | * xdisp.c (get_next_display_element): Set it->face_id for the | |
4267 | first component of a composition. | |
1f45f627 | 4268 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 4269 | |
73acf815 | 4270 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4271 | |
4272 | (get_next_display_element): Set it->face_id for the | |
4273 | first component of a composition. | |
1f45f627 | 4274 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 4275 | |
73acf815 | 4276 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4277 | |
4278 | * fontset.c (Qlatin): New variable. | |
4279 | (syms_of_fontset): Define it as a lisp symbol. | |
1f45f627 | 4280 | (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII. |
aca7a3d2 | 4281 | |
73acf815 | 4282 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4283 | |
4284 | * font.c (font_unparse_fcname): Pay attention to the case that | |
4285 | some of font property is a null string. | |
4286 | ||
73acf815 | 4287 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4288 | |
4289 | * term.c: Include "composite.h". | |
4290 | (encode_terminal_code): Output all components of composition. | |
4291 | Check the size of encode_terminal_src. | |
424c157f | 4292 | (produce_glyphs): For composition, call produce_composite_glyph. |
aca7a3d2 MB |
4293 | (append_composite_glyph, produce_composite_glyph): New functions. |
4294 | ||
4295 | * xdisp.c (x_produce_glyphs): In handling composition, if a font | |
4296 | is not found, get font_info from the current ascii face. | |
4297 | ||
73acf815 | 4298 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4299 | |
4300 | * fileio.c (Finsert_file_contents): On replacing, temporarily bind | |
4301 | buffer-file-name to Qnil before calling insert_from_buffer. | |
4302 | ||
4303 | * font.c (font_unparse_fcname): Pay attention to the case that | |
4304 | foundry is a null string. | |
4305 | ||
73acf815 | 4306 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4307 | |
4308 | * ftfont.c (ftfont_list): Allow registry "unicode-sip". | |
4309 | ||
4310 | * font.c (Qunicode_sip): New variable. | |
4311 | (syms_of_font): Declare it as a Lisp symbol. | |
4312 | ||
4313 | * font.h (Qunicode_sip): Extern it. | |
4314 | ||
73acf815 | 4315 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4316 | |
1f45f627 | 4317 | * composite.c (get_composition_id): Pay attention to TAB component. |
aca7a3d2 MB |
4318 | |
4319 | * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw | |
1f45f627 | 4320 | TAB. Adjust for the change of s->char2b which always points to |
aca7a3d2 MB |
4321 | the first elememnt of allocated memory. |
4322 | ||
1f45f627 | 4323 | * xftfont.c (xftfont_text_extents): Fix calculation of descent value. |
aca7a3d2 MB |
4324 | |
4325 | * xdisp.c (handle_composition_prop): Set it->c to the first | |
4326 | non-TAB component. | |
1f45f627 GM |
4327 | (fill_composite_glyph_string): Change argument. |
4328 | (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change. | |
aca7a3d2 MB |
4329 | (x_produce_glyphs): Fix handling of left/right padding. |
4330 | ||
73acf815 | 4331 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4332 | |
4333 | * coding.c (detect_coding_system): Fix for handling off | |
4334 | inhibit_iso_escape_detection. Fix for the case that no coding | |
4335 | system is defined for a specific coding category. | |
4336 | ||
73acf815 | 4337 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4338 | |
1f45f627 | 4339 | * font.c (font_matching_entity): Delete unused local var. |
aca7a3d2 MB |
4340 | |
4341 | * xftfont.c (xftfont_open): Call XftDefaultSubstitute before | |
4342 | opening a font. | |
4343 | ||
4344 | * fileio.c (Finsert_file_contents): On recovering a file, assume | |
4345 | Unix-like eol. | |
4346 | (choose_write_coding_system): On auto-saving a file, force | |
4347 | Unix-like eol. | |
4348 | ||
4349 | * coding.c (setup_coding_system): Fix setting of | |
4350 | coding->common_flags based on eol_type. | |
4351 | (coding_inherit_eol_type): If PARENT is not nil, be sure to | |
4352 | inherit from it. | |
4353 | ||
73acf815 | 4354 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4355 | |
1f45f627 | 4356 | * alloc.c (NSTATICS): Increas to 0x600. |
aca7a3d2 | 4357 | |
73acf815 | 4358 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4359 | |
1f45f627 | 4360 | * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match. |
aca7a3d2 MB |
4361 | (ftfont_list): Don't check :name property. |
4362 | (ftfont_match): New function. | |
4363 | (ftfont_pattern_entity): If the pattern doesn't contain | |
4364 | FC_SPACING, don't assuce FC_MONO. | |
4365 | ||
4366 | * font.h (struct font_driver): New member `match'. | |
1f45f627 | 4367 | (font_update_drivers): Adjust prototype. |
aca7a3d2 | 4368 | |
4c4475a8 GM |
4369 | * font.c (font_parse_fcname, font_parse_name): Don't change :name |
4370 | property of FONT. | |
aca7a3d2 MB |
4371 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define |
4372 | them unconditionally. | |
4373 | (font_matching_entity): New function. | |
4374 | (font_open_by_name): Try font_matching_entity if exact match is | |
4375 | not found. | |
4376 | (font_update_drivers): Delete the arg FONT. Return a list of | |
4377 | actually used backends. Don't free faces, font caches here. | |
4378 | Don't store data in frame parameters. Don't call x_set_font. | |
4379 | (Ffont_spec): Store :name property as is. | |
4380 | (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability. | |
1f45f627 GM |
4381 | (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub. |
4382 | (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos. | |
aca7a3d2 MB |
4383 | (Ffont_otf_alternates): Check if the driver has otf_gsub function. |
4384 | Call font->driver->otf_gsub instead of font_otf_gsub. | |
4385 | ||
4386 | * frame.c (x_set_font_backend): Do more works that were done in | |
4387 | font_update_drivers before. | |
4388 | ||
4389 | * xfont.c (xfont_match): New function. | |
4390 | (xfont_driver): Set xfont_driver.match to xfont_match. | |
4391 | (xfont_draw): Set font in GC if necessary. | |
4392 | ||
4393 | * ftxfont.c (ftxfont_match): New function. | |
4394 | (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match. | |
4395 | ||
4396 | * xftfont.c (xftfont_match): New function. | |
4397 | (syms_of_xftfont): Set xftfont_driver.match to xftfont_match. | |
4398 | ||
73acf815 | 4399 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4400 | |
4401 | * font.h (struct font): New member scalable. | |
4402 | (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub. | |
1f45f627 | 4403 | (font_otf_gsub): Adjust prototype. |
aca7a3d2 | 4404 | |
1f45f627 GM |
4405 | * font.c (font_otf_capability): Fix handling of the default langsys. |
4406 | (parse_gsub_gpos_spec): Change type to void. New arg nbytes. | |
aca7a3d2 MB |
4407 | Check the contents of SPEC. |
4408 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros. | |
4409 | (check_gstring): New function. | |
4410 | (REPLACEMENT_CHARACTER): New macro. | |
4411 | (font_otf_gsub): New arg alternate_subst. Be sure to set all | |
4412 | glyph codes of GSTRING. | |
4413 | (font_otf_gpos): Be sure to set all glyph codes of GSTRING. | |
4414 | (font_prepare_composition): Set cmp->glyph_len. | |
4415 | (font_open_entity): Set font->scalable. | |
4416 | (Ffont_get): Handle :otf property. | |
4417 | (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New | |
4418 | functions. | |
4419 | (Fquery_font): Use font->font.full_name. | |
4420 | (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and | |
4421 | Sfont_otf_alternates. | |
4422 | ||
4423 | * ftfont.c (ftfont_open): Set font->font.full_name and | |
4424 | font->font.name properly. Fix calculation of font->font.height | |
4425 | and font->min_width. | |
4426 | ||
4427 | * ftxfont.c (ftxfont_create_gcs): New function. | |
4428 | (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap. | |
4429 | (ftxfont_draw_backgrond): Fix filling region. | |
4430 | (ftxfont_default_fid): New function. | |
4431 | (ftxfont_open): Set xfotn->fid to the return value of | |
4432 | ftxfont_default_fid. | |
4433 | (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs. | |
4434 | (ftxfont_done_face): Free only GCs that are created by | |
4435 | ftxfont_create_gcs. | |
4436 | (ftxfont_draw): If face->gc != s->gc, create proper GCs. | |
4437 | ||
4438 | * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]: | |
4439 | Clip to src->width, etc (not src->clip_XXX). | |
4440 | ||
4441 | * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle | |
4442 | FontBackend frame parameter. | |
4443 | ||
73acf815 | 4444 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4445 | |
4446 | * font.h (struct font_driver_list): New member `on'. | |
4447 | (Fclear_font_cache): EXFUN it. | |
4448 | (font_update_drivers): Extern it. | |
4449 | ||
4450 | * font.c (font_unparse_fcname): Fix typo (swidth->width). | |
4451 | (font_list_entities): Check driver_list->on. | |
4452 | (register_font_driver): Initalize `on' member to 0. | |
4453 | (font_update_drivers): New function. | |
4454 | (Fclear_font_cache): Check driver_list->on. | |
4455 | ||
4456 | * frame.h (Qfont_backend): Extern it. | |
4457 | (x_set_font_backend): Extern it. | |
4458 | ||
4459 | * frame.c (Qfont_backend): New variable. | |
4460 | (frame_parms): New element for font-backend. | |
4461 | (x_set_font_backend): New function. | |
4462 | ||
4463 | * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle | |
4464 | FontBackend frame parameter. | |
4465 | (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element | |
4466 | x_set_font_backend. | |
4467 | ||
4468 | * xfont.c (xfont_list): Don't try listing by :name property if the | |
4469 | name is not for XLFD. | |
4470 | ||
73acf815 | 4471 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4472 | |
4473 | * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM) | |
4474 | (LGLYPH_SET_TO): New macros. | |
4475 | (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment | |
4476 | element of G is vector or not. | |
4477 | (font_at): Extern it. | |
4478 | ||
4479 | * font.c: Include window.h. | |
4480 | (font_lispy_object): New function. | |
4481 | (font_prepare_composition): Check LGLYPH_FORM (g) to detect the | |
4482 | end of valid glyph. | |
4483 | (font_close_object): Fix getting (struct font *). | |
4484 | (font_at): New function. | |
4485 | (Ffont_get): If FONT is a font-object, get entity from it. | |
4486 | (Ffont_make_gstring): Initialize elements of glyphs with nil. | |
4487 | (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix | |
4488 | range check. | |
4489 | (Ffont_at): New function. | |
4490 | (syms_of_font): Defsubr Sfont_at. | |
4491 | ||
4492 | * xdisp.c (it_props): Move the entry for Qauto_composed to just | |
424c157f | 4493 | before the entry for Qcomposition. |
1f45f627 | 4494 | (handle_auto_composed_prop): Call auto-composition-function with 4 args. |
aca7a3d2 MB |
4495 | (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from |
4496 | the font in gstring. | |
4497 | (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check | |
4498 | LGLYPH_FORM (g) to detect the end of valid glyph. | |
4499 | (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if | |
4500 | we are composing with gstring. | |
4501 | ||
4502 | * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]: | |
4503 | Check if adjustment is vector or not. | |
4504 | ||
4505 | * Makefile.in (font.o): Make it depends on window.h. | |
4506 | ||
73acf815 | 4507 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4508 | |
4509 | * xterm.c (x_draw_composite_glyph_string_foreground): Check if | |
4510 | adjustment is vector or not. | |
4511 | ||
73acf815 | 4512 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
4513 | |
4514 | * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE. | |
4515 | ||
73acf815 | 4516 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4517 | |
4518 | * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) | |
4519 | (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. | |
4520 | (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. | |
4521 | ||
1f45f627 | 4522 | * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card. |
aca7a3d2 | 4523 | (DEVICE_DELTA): Fix typo. |
4c4475a8 GM |
4524 | (font_otf_gpos, font_prepare_compositio): Adjust for the change of |
4525 | LGLYPH format. | |
aca7a3d2 | 4526 | |
1f45f627 | 4527 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
4528 | the change of LGLYPH format. |
4529 | ||
73acf815 | 4530 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4531 | |
4532 | * ftfont.c (ftfont_list): Fix typo. | |
1f45f627 | 4533 | (ftfont_build_basic_charsets): Don't include letters with diacritics. |
aca7a3d2 | 4534 | |
880820fe | 4535 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
4536 | |
4537 | * xfaces.c (realize_non_ascii_face): Set face->extra to NULL. | |
4538 | ||
4539 | * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if | |
4540 | xftface_info is non-NULL. | |
4541 | ||
880820fe | 4542 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 | 4543 | |
1f45f627 | 4544 | * ftfont.c (ftfont_list): Move misplaced #endif. |
aca7a3d2 | 4545 | |
73acf815 | 4546 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4547 | |
4548 | * ftfont.c (ftfont_list): Pay attention to the case that | |
4549 | FC_CAPABILITY is not defined. | |
4550 | ||
73acf815 | 4551 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4552 | |
4553 | * xftfont.c (xftfont_open): Set charset related members to -1. | |
4554 | ||
1f45f627 GM |
4555 | * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of |
4556 | QCname. | |
aca7a3d2 MB |
4557 | (ftfont_open): Set charset related members to -1. |
4558 | ||
4559 | * fontset.c (Votf_script_alist): New variable. | |
4560 | (syms_of_fontset): Initialize it. | |
4561 | (fontset_font): Delete unused variable. | |
4562 | ||
4563 | * fontset.h (Votf_script_alist): Extern it. | |
4564 | ||
1f45f627 | 4565 | * font.c (font_find_for_lface): Optimize code. |
aca7a3d2 MB |
4566 | |
4567 | * font.h (font_close_object, font_merge_old_spec): Extern them. | |
4568 | ||
73acf815 | 4569 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4570 | |
4571 | * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables. | |
4572 | (syms_of_font): Initialize them. | |
4573 | (font_pixel_size): Allow float value in dpi. | |
1f45f627 GM |
4574 | (font_prop_validate_type): Delete. |
4575 | (font_prop_validate_symbol, font_prop_validate_style): Change argument. | |
4576 | Change caller. | |
4577 | (font_prop_validate_non_neg): Rename from font_prop_validate_size. | |
4578 | (font_prop_validate_extra): Delete. | |
aca7a3d2 MB |
4579 | (font_prop_validate_spacing): New function. |
4580 | (font_property_table): Add elements for all known properties. | |
1f45f627 GM |
4581 | (get_font_prop_index): Rename from check_font_prop_name. New |
4582 | argument FROM. Change caller. | |
aca7a3d2 | 4583 | (font_prop_validate): Validate all known properties. |
1f45f627 | 4584 | (font_put_extra): Delete argument force. Change caller. |
aca7a3d2 MB |
4585 | (font_expand_wildcards): Make it static. Fix the way of shrinking |
4586 | the possible range. | |
1f45f627 | 4587 | (font_parse_xlfd): Delete argument merge. Fix handling of RESX, |
aca7a3d2 | 4588 | RESY, SPACING, and AVGWIDTH. Don't validate property values here. |
1f45f627 | 4589 | Change caller. |
aca7a3d2 | 4590 | (font_unparse_xlfd): Handle dpi, spacing, and scalable properties. |
1f45f627 GM |
4591 | (font_parse_fcname): Delete argument merge. Fix parsing of point |
4592 | size. Don't validate properties values here. Change caller. | |
4593 | (font_unparse_fcname): Handle dpi, spacing, and scalable properties. | |
aca7a3d2 MB |
4594 | (font_open_by_name): Delete unused variable. |
4595 | (Ffont_spec): Likewise. Validate property values. | |
4596 | (Ffont_match_p): New function. | |
4597 | ||
4598 | * font.h (QCscalable): Extern it. | |
1f45f627 | 4599 | (font_parse_xlfd, font_parse_fcname): Adjust prototype. |
aca7a3d2 | 4600 | |
1f45f627 | 4601 | * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable. |
aca7a3d2 | 4602 | |
1f45f627 | 4603 | * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd. |
aca7a3d2 MB |
4604 | (xfont_list_pattern): New function. |
4605 | (xfont_list): Use xfont_list_pattern. | |
4606 | ||
73acf815 | 4607 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4608 | |
4609 | * font.h (Flist_fonts): EXFUN it. | |
4610 | ||
73acf815 | 4611 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
4612 | |
4613 | * w32term.c (w32_initialize): Add back smoothing_type and | |
4614 | smoothing_enabled definitions. | |
4615 | ||
73acf815 | 4616 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4617 | |
4618 | * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check | |
4619 | s->face->font on determining underline position. | |
4620 | ||
73acf815 | 4621 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4622 | |
4623 | * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field. | |
4624 | (font_has_char): Accept font-object too. | |
4625 | (font_find_for_lface): Try at first with a size specified in face. | |
4626 | ||
73acf815 | 4627 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4628 | |
4629 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to | |
4630 | font_open_by_name. | |
4631 | ||
73acf815 | 4632 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4633 | |
4634 | * font.h (QCspacing, QCdpi): Extern them. | |
4635 | (enum font_spacing): New enum. | |
4636 | (FONT_PIXEL_SIZE_QUANTUM): New macro. | |
4637 | ||
4638 | * font.c (POINT_TO_PIXEL): Don't divice POINT by 10. | |
4639 | (QCspacing, QCdpi): New variables. | |
4640 | (syms_of_font): Initialize them. | |
4641 | (font_pixel_size): New function. | |
4642 | (font_put_extra): New function. | |
4643 | (font_parse_xlfd): Fix handling of font size. Add QCdpi property | |
4644 | in FONT_EXTRA. | |
e9184ccb JB |
4645 | (font_parse_fcname): Handle enumenrated values (e.g. bold). |
4646 | Fix handling font size. Add QCname property that contains only | |
aca7a3d2 | 4647 | unknown properties. |
1f45f627 | 4648 | (font_score): Change argument. Change caller. Pay attention to |
aca7a3d2 | 4649 | FONT_PIXEL_SIZE_QUANTUM. |
4c4475a8 GM |
4650 | (font_sort_entites, font_list_entities, font_find_for_lface) |
4651 | (font_open_for_lface, font_open_by_name): Fix handling of font size. | |
1f45f627 | 4652 | (Ffont_spec): Add QCname property that contains only unknown properties. |
aca7a3d2 MB |
4653 | |
4654 | * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't | |
4655 | include weight in listing pattern, instead check weight of each | |
4656 | listed font. Don't include scalable in pattern. Pay attention to | |
4657 | FONT_PIXEL_SIZE_QUANTUM. | |
4658 | ||
73acf815 | 4659 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4660 | |
aca7a3d2 | 4661 | * font.c (font_parse_fcname): Fix parsing of point-size. |
1f45f627 | 4662 | (font_unparse_fcname): Produce symbolic names for style properties. |
aca7a3d2 MB |
4663 | (font_list_entities): Handle float size correctly. |
4664 | (font_open_by_name): Prefer `normal' property values if the name | |
4665 | doesn't specify them. | |
4666 | ||
4667 | * fontset.c (Finternal_char_font): Use font_get_name, not | |
4668 | Ffont_xlfd_name. | |
4669 | ||
4670 | * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for | |
4671 | FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing | |
4672 | pattern. Don't force scalable. | |
4673 | ||
4674 | * xftfont.c (xftfont_open): For generating a name, start from | |
4675 | 96-byte buffer. | |
4676 | ||
880820fe | 4677 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
4678 | |
4679 | * frame.h (x_new_fontset2): Fix prototype. | |
4680 | ||
73acf815 | 4681 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4682 | |
1f45f627 | 4683 | * font.h (struct font_driver): Delete member parse_name. |
aca7a3d2 MB |
4684 | (font_match_p, font_get_spec, font_parse_fcname) |
4685 | (font_unparse_fcname): Extern them. | |
1f45f627 | 4686 | (font_get_name): Adjust prototype. |
aca7a3d2 MB |
4687 | |
4688 | * font.c (XLFD_SMALLNUM_MASK): Delete this macro. | |
4689 | (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it. | |
4690 | (font_expand_wildcards): Fix handling ENCODING field. Avoid | |
4691 | unnecessary checks for weight, slant, and swidth. | |
4692 | (font_parse_fcname): New function. | |
4693 | (font_unparse_fcname): New function. | |
4694 | (font_parse_name): New function. | |
4695 | (font_match_p): New function. | |
1f45f627 | 4696 | (font_get_name): Change return value to Lisp string. |
aca7a3d2 MB |
4697 | (font_get_spec): New function. |
4698 | (Qunspecified, Qignore_defface): Don't extern them. | |
4699 | (font_find_for_lface): Assume that LFACE is fully specified. | |
4700 | (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font | |
4701 | object, use it for FACE. | |
4702 | (font_open_by_name): Call Ffont_spec with QCname prop. Don't call | |
4703 | driver->parse_name. | |
4704 | (Ffont_spec): Call font_parse_name, not font_parse_xlfd. | |
4705 | ||
1f45f627 GM |
4706 | * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust |
4707 | prototype. | |
aca7a3d2 | 4708 | |
1f45f627 GM |
4709 | * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete |
4710 | argument F. Don't call Fnew_fontset. Instead, directly call | |
aca7a3d2 MB |
4711 | make_fontset. |
4712 | ||
1f45f627 | 4713 | * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype. |
aca7a3d2 | 4714 | |
1f45f627 | 4715 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change |
aca7a3d2 MB |
4716 | of x_new_fontset2. |
4717 | ||
4718 | * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans) | |
4719 | (Qsans__serif): New variables. | |
4720 | (ftfont_generic_family_list): New variable. | |
4721 | (syms_of_ftfont): Initialize the above variables. | |
1f45f627 | 4722 | (ftfont_pattern_entity): Delete argument NAME. |
aca7a3d2 MB |
4723 | (ftfont_list_generic_family): New function. |
4724 | (ftfont_parse_name): Delete this function. | |
1f45f627 | 4725 | (ftfont_list): Try generic family only when FcFontList found no font. |
aca7a3d2 MB |
4726 | (ftfont_list_family): Fix args to FcObjectSetBuild. |
4727 | ||
4728 | * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font | |
4729 | object in attrs[LFACE_FONT_INDEX]. | |
4730 | (set_lface_from_font_name): Cancel all changes for font-backend. | |
4731 | (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New | |
4732 | function. | |
4733 | (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a | |
4734 | font object in QCfont attribute. | |
4735 | (set_font_frame_param) [USE_FONT_BACKEND]: Likewise. | |
4736 | (realize_default_face) [USE_FONT_BACKEND]: Call | |
4737 | set_lface_from_font_and_fontset. | |
4738 | ||
4739 | * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also | |
4740 | "fixed", and signal error here if no suitable font was found. | |
4741 | ||
4742 | * xfont.c (xfont_parse_name): Delete this function. | |
4743 | ||
4744 | * xftfont.c (xftfont_open): Change coding style of error | |
4745 | handling. Generate fontconfig's fontname pattern. | |
4746 | ||
4747 | * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp. | |
4748 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro. | |
4749 | ||
4750 | * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments. | |
4751 | Both args FONTSET and FONT_OBJECT must be existing ones. | |
4752 | ||
73acf815 | 4753 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4754 | |
4755 | * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR. | |
4756 | ||
73acf815 | 4757 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4758 | |
4759 | * xfont.c (xfont_open, xfont_encode_char): Fix typo. | |
4760 | ||
4761 | * font.h (struct font): Fix typo. | |
4762 | ||
4763 | * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to | |
4764 | XLFD_XXX_INDEX. | |
4765 | (enum xlfd_field_mask): New enum. | |
1f45f627 | 4766 | (intern_font_field): Changed argument. Change caller. If digits |
aca7a3d2 MB |
4767 | are followed by non-digits, return a symbol. |
4768 | (font_expand_wildcards): New function. | |
4769 | (font_parse_xlfd): Fix wildcard handling. | |
4770 | (Ffont_spec): If :name is specified, reflect the info in the other | |
4771 | properties. | |
4772 | ||
4773 | * ftfont.c (ftfont_pattern_entity): Fix typo. | |
4774 | (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of | |
4775 | locale. | |
4776 | ||
73acf815 | 4777 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4778 | |
4779 | * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them. | |
4780 | ||
1f45f627 | 4781 | * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c. |
aca7a3d2 MB |
4782 | (font_unparse_xlfd): Fix argument type declaration. Append "*" if |
4783 | registry doesn't specify encoding part. | |
4784 | (font_find_for_lface): Pay attention to LFACE_FONT_INDEX. | |
4785 | (font_open_by_name): At first try parsing the name. | |
4786 | (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp | |
4787 | as Lisp symbols. | |
4788 | ||
4789 | * fontset.c (reorder_font_vector): Pay attention to the case that | |
4790 | the 3rd element of font_def is nil. | |
4791 | (fontset_font): For the default fontset, append one more fontset | |
4792 | elements for a script-based font specification. Don't add script | |
4793 | attribute on finding a font. | |
4794 | (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the | |
4795 | font name. | |
4796 | (fontset_ascii_font): If a font can't be opened, return nil. | |
4797 | ||
1f45f627 | 4798 | * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c. |
aca7a3d2 MB |
4799 | (ftfont_pattern_entity): New function. |
4800 | (ftfont_get_cache): Assume that freetype_font_cache is already | |
4801 | initialized. | |
4802 | (ftfont_list): Handle the case that a file is specified in font | |
4803 | name. Use ftfont_pattern_entity to generate entities. | |
4804 | (ftfont_has_char): Check if the pattern contains FC_CHARSET. | |
4805 | (syms_of_ftfont): Initialize freetype_font_cache. | |
4806 | ||
4807 | * xftfont.c (xftfont_open): Make the font name fontconfig's | |
4808 | style. Add BLOCK_INPUT and UNBLOCK_INPUT. | |
4809 | (xftfont_close): Free font->font.name if not NULL. | |
4810 | ||
4811 | * xfont.c (xfont_list): If script is specified for a font, return | |
4812 | null_vector. | |
4813 | (xfont_list_family): Declare argument type. | |
4814 | ||
4815 | * xfaces.c (set_lface_from_font_name): If a font doesn't have a | |
4816 | name, set LFACE_FONT (lface) to nil. | |
4817 | ||
4818 | * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded, | |
4819 | return Qnil. | |
4820 | ||
73acf815 | 4821 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4822 | |
1f45f627 | 4823 | * emacs.c (main): Check -enable-font-backend arg after the check of -nl. |
aca7a3d2 MB |
4824 | (standard_args): Add "-enable-font-backend". |
4825 | ||
73acf815 | 4826 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4827 | |
4828 | * xftfont.c (xftfont_default_fid): Set fid_known to 1. | |
4829 | (struct xftdraw_list, xftdraw_list): Delete them. | |
4830 | (register_xftdraw, check_xftdraw): Delete them. | |
4831 | (xftfont_prepare_face): Don't call register_xftdraw. | |
4832 | (xftfont_done_face): Don't call check_xftdraw. | |
4833 | (xftfont_draw): Get backroudn color only when with_background is | |
4834 | nonzero. | |
4835 | ||
4836 | * xfont.c (xfont_encode_char): Fix calculation of char2b. | |
4837 | ||
73acf815 | 4838 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4839 | |
4840 | These changes are for the new font handling codes. | |
4841 | ||
4842 | * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@, | |
4843 | @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. | |
4844 | (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@. | |
4845 | (FONTSRC, FONTOBJ): New variables. | |
4846 | (obj): Add $(FONTOBJ). | |
4847 | (SOME_MACHINE_OBJECTS): Lib_X11_Lib. | |
4848 | (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and | |
4849 | @LIBOTF_LIBS@. | |
4850 | (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets. | |
1f45f627 | 4851 | (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC). |
aca7a3d2 | 4852 | |
1f45f627 | 4853 | * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files. |
aca7a3d2 MB |
4854 | |
4855 | * character.h (Vscript_representative_chars): Extern it. | |
4856 | ||
4857 | * character.c (Vscript_representative_chars): New variable. | |
4858 | (syms_of_character): Declare it as a Lisp variable. | |
4859 | ||
4860 | * composite.c (get_composition_id) [USE_FONT_BACKEND]: If | |
4861 | enable_font_backend is nonzero, accept the composition method | |
4862 | COMPOSITION_WITH_GLYPH_STRING. | |
4863 | ||
4864 | * composite.h (enum composition_method) [USE_FONT_BACKEND]: New | |
4865 | enumeration COMPOSITION_WITH_GLYPH_STRING. | |
4866 | ||
aca7a3d2 MB |
4867 | * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New |
4868 | members clip_x, clip_y, clip_width, and clip_height. | |
4869 | (struct face) [USE_FONT_BACKEND]: New members font_info and extra. | |
4870 | ||
4871 | * emacs.c (main) [USE_FONT_BACKEND]: Handle arg | |
4872 | --enable-font-backend. Call syms_of_font. | |
4873 | ||
4874 | * fns.c (assoc_no_quit): New function. | |
4875 | ||
4876 | * fontset.h (FONT_INFO_FROM_FACE): New macro. | |
4877 | (face_for_font, new_fontset_from_font) | |
4878 | (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them. | |
4879 | ||
4880 | * fontset.c [USE_FONT_BACKEND]: Include "font.h". | |
4881 | (fontset_font, fontset_ascii, face_for_char) | |
4882 | (make_fontset_for_ascii_face, Ffont_info) | |
4883 | (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend | |
4884 | is nonzero, use font-backend mechanism. | |
4885 | (find_font_encoding): Make it non-static. | |
4886 | (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]: | |
4887 | New functions. | |
4888 | ||
4889 | * frame.h (struct frame): New members resx and resy. | |
4890 | (struct frame) [USE_FONT_BACKEND]: New member font_driver_list. | |
4891 | (x_new_fontset2) [USE_FONT_BACKEND]: Extern it. | |
4892 | ||
4893 | * frame.c [USE_FONT_BACKEND]: Include "font.h". | |
1f45f627 | 4894 | (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism. |
aca7a3d2 MB |
4895 | |
4896 | * lisp.h (assoc_no_quit): Extern it. | |
4897 | ||
4898 | * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h". | |
4899 | Through out the file, use FONT_INFO_FROM_FACE instead of | |
4900 | FONT_INFO_FROM_ID, use get_per_char_metric instead of | |
4901 | rif->per_char_metric. | |
4902 | (handle_composition_prop) [USE_FONT_BACKEND]: If the composition | |
4903 | method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '. | |
4904 | (get_glyph_face_and_encoding, fill_composite_glyph_string) | |
4905 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
4906 | (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is | |
4907 | nonzero, use font-backend mechanism. | |
4908 | (get_per_char_metric): New function. | |
4909 | ||
4910 | * xfaces.c [USE_FONT_BACKEND]: Include "font.h". | |
4911 | (set_lface_from_font_name) | |
4912 | (set_font_frame_param, free_realized_face) | |
4913 | (prepare_face_for_display, clear_face_gcs) | |
4914 | (Finternal_set_font_selection_order, realize_x_face) | |
4915 | [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use | |
4916 | font-backend mechanism. | |
1f45f627 | 4917 | (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table. |
aca7a3d2 MB |
4918 | (load_face_font) [USE_FONT_BACKEND]: Abort. |
4919 | (face_symbolic_value, face_symbolic_weight, face_symbolic_slant) | |
1f45f627 | 4920 | (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions. |
aca7a3d2 MB |
4921 | |
4922 | * xfns.c [USE_FONT_BACKEND]: Include "font.h". | |
4923 | (x_default_font_parameter) [USE_FONT_BACKEND]: New function. | |
4924 | (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is | |
4925 | nonzero, register all available font drivers. Call | |
4926 | x_default_font_parameter for deciding a font. | |
4927 | (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise. | |
4928 | ||
4929 | * xterm.c [USE_FONT_BACKEND]: Include "font.h". | |
4930 | (x_set_mouse_face_gc, x_set_glyph_string_clipping) | |
4931 | (x_set_glyph_string_clipping_exactly) | |
4932 | (x_compute_glyph_string_overhangs) | |
4933 | (x_draw_glyph_string_foreground) | |
4934 | (x_draw_composite_glyph_string_foreground, x_draw_glyph_string) | |
4935 | (x_free_frame_resources) [USE_FONT_BACKEND]: If | |
4936 | enable_font_backend is nonzero, use font-backend mechanism. | |
4937 | (x_new_fontset2) [USE_FONT_BACKEND]: New function. | |
4938 | ||
73acf815 | 4939 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4940 | |
fcb314b2 | 4941 | * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from |
aca7a3d2 MB |
4942 | system_eol_type. |
4943 | (syms_of_coding): Initialize system_eol_type. | |
4944 | ||
fcb314b2 GM |
4945 | * process.c (Fset_process_coding_system): Inherit system's eol |
4946 | format if necessary. | |
aca7a3d2 | 4947 | |
73acf815 | 4948 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
4949 | |
4950 | * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch. | |
4951 | ||
73acf815 | 4952 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4953 | |
4954 | * coding.c (decode_eol): Pay attention to buffer relocation in | |
4955 | del_range_2. | |
4956 | (decode_coding): Call decode_eol before restoring undo_list. | |
4957 | ||
73acf815 | 4958 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4959 | |
4960 | * charset.c (Fdefine_charset_internal): Fix setting of | |
4961 | emacs_mule_bytes. | |
4962 | ||
73acf815 | 4963 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4964 | |
4965 | * keyboard.c (read_char): Check if C is a character or not before | |
4966 | looking up Vkeyboard_translate_table. | |
4967 | ||
73acf815 | 4968 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4969 | |
4970 | * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix | |
4971 | condition to terminate the loop. | |
4972 | ||
73acf815 | 4973 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4974 | |
4975 | * coding.c (produce_composition): Compare charbuf[i] instead of | |
4976 | args[i] against 0. | |
4977 | (Fterminal_coding_system): Use EQ to compare Lisp objects. | |
4978 | ||
73acf815 | 4979 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4980 | |
4981 | * coding.c (DECODE_COMPOSITION_START): If the source is short, set | |
4982 | coding->result to CODING_RESULT_INSUFFICIENT_SRC. | |
4983 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of | |
4984 | detect_coding. | |
4985 | (emacs_mule_char): Handle old style (Emacs 20) component character | |
4986 | of a composition. | |
4c4475a8 GM |
4987 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20) |
4988 | (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a | |
4989 | composition rule. | |
aca7a3d2 MB |
4990 | (decode_coding_emacs_mule): Handle invalid bytes correctly. |
4991 | ||
73acf815 | 4992 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4993 | |
4994 | * coding.c (encode_coding_ccl): Allocate destination dynamically | |
4995 | when necessary. | |
4996 | ||
73acf815 | 4997 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4998 | |
4999 | * ccl.c (Fccl_execute_on_string): Fix the condition of terminating | |
5000 | the loop. When quitted, show a proper error message. | |
5001 | ||
73acf815 | 5002 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5003 | |
aca7a3d2 MB |
5004 | * xterm.c (x_set_glyph_string_clipping_exactly): Set |
5005 | src->clip_head and src->clip_tail temporarily instead of src->hl. | |
5006 | ||
5007 | * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte | |
5008 | character sequence. | |
5009 | (Fccl_execute_on_string): Use ASET, not XSET. | |
5010 | ||
73acf815 | 5011 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5012 | |
1f45f627 | 5013 | * search.c (search_buffer): Fix handling of "\\" in a trivial regexp. |
aca7a3d2 | 5014 | |
73acf815 | 5015 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5016 | |
5017 | * coding.c (decode_coding): Fix the condition of terminating the | |
5018 | decoding loop. | |
5019 | ||
73acf815 | 5020 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5021 | |
5022 | * data.c (Faset): On setting a character bigger than 255 in a | |
1f45f627 | 5023 | unibyte string, signal an error instead of make the string multibyte. |
aca7a3d2 | 5024 | |
73acf815 | 5025 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5026 | |
5027 | * charset.c (map_charset_chars): Fix for ascii-compatible charset | |
5028 | made by a mapping table. | |
5029 | ||
73acf815 | 5030 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5031 | |
5032 | * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or | |
5033 | not. | |
5034 | (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. | |
5035 | (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. | |
5036 | ||
5037 | * xterm.c (x_draw_composite_glyph_string_foreground): Check | |
5038 | s->face is NULL or not. | |
5039 | ||
73acf815 | 5040 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5041 | |
5042 | * xterm.c (x_set_glyph_string_clipping_exactly): New function. | |
5043 | (x_draw_glyph_string): Fix drawing of right_overhang and | |
5044 | left_overhang around/on cursor. | |
5045 | ||
1f45f627 | 5046 | * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs. |
aca7a3d2 | 5047 | |
73acf815 | 5048 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5049 | |
5050 | * xdisp.c (x_produce_glyphs): Handle composition with TAB. | |
5051 | ||
73acf815 | 5052 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5053 | |
4c4475a8 GM |
5054 | * coding.c (Fdefine_coding_system_internal) |
5055 | (Fdefine_coding_system_alias): Avoid a duplicated element in | |
5056 | Vcoding_system_alist. | |
aca7a3d2 | 5057 | |
73acf815 | 5058 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5059 | |
5060 | * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. | |
5061 | ||
fcb314b2 | 5062 | * coding.c (Qcoding_system_define_form): New variable. |
aca7a3d2 MB |
5063 | (syms_of_coding): Intern and staticpro it. |
5064 | (Fcoding_system_p): Check Qcoding_system_define_form. | |
1f45f627 | 5065 | (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM. |
aca7a3d2 MB |
5066 | |
5067 | * coding.h (CODING_SYSTEM_P): If ID is not available, call | |
5068 | Fcoding_system_p. | |
5069 | (CHECK_CODING_SYSTEM): If ID is not available, call | |
5070 | Fcheck_coding_system. | |
4c4475a8 GM |
5071 | (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID): |
5072 | Try also Fcheck_coding_system. | |
aca7a3d2 | 5073 | |
73acf815 | 5074 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5075 | |
aca7a3d2 MB |
5076 | * coding.c (code_conversion_restore): GCPRO arg. |
5077 | ||
73acf815 | 5078 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5079 | |
5080 | * character.c (lisp_string_width): Check multibyteness of STRING. | |
5081 | ||
73acf815 | 5082 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
5083 | |
5084 | * macterm.c (mac_encode_char): Call ccl_driver with the last arg | |
5085 | Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. | |
5086 | (decode_mac_font_name): Use decode_coding_c_string instead of | |
5087 | decode_coding. | |
5088 | (x_load_font): Initialize fontp->fontset to -1. Set | |
5089 | fontp->encoding_type. | |
5090 | ||
73acf815 | 5091 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5092 | |
5093 | * search.c (search_buffer): Give up BM search on case-fold-search | |
5094 | if one of a target character has a case-equivalence of different | |
5095 | byte length even if that target charcter is an ASCII. | |
1f45f627 GM |
5096 | (simple_search): Fix calculation of byte length of matched text. |
5097 | (boyer_moore): Fix handling of case-equivalent multibyte characters. | |
aca7a3d2 | 5098 | |
73acf815 | 5099 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5100 | |
5101 | * coding.c (decode_coding): Fix handling of invalid bytes. | |
5102 | ||
73acf815 | 5103 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5104 | |
5105 | * xterm.c (handle_one_xevent): Handle keysyms directly mapped to | |
5106 | Unicode characters. | |
5107 | ||
73acf815 | 5108 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5109 | |
5110 | * coding.c (encode_coding_object): If a pre-write-conversion | |
5111 | function makes a new buffer, kill it. | |
5112 | ||
73acf815 | 5113 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5114 | |
5115 | * coding.c (QCascii_compatible_p): New variable. | |
5116 | (syms_of_coding): Initialize it. | |
4c4475a8 GM |
5117 | (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before |
5118 | calling string_char. | |
aca7a3d2 MB |
5119 | (record_conversion_result): Add `default:' case. |
5120 | (coding_charset_list): Delete unused variable `coding_type'. | |
5121 | (Fdefine_coding_system_internal): Add `ascii-compatible-p' | |
5122 | property in the plist of the coding system. | |
5123 | (Fcoding_system_put): Check QCascii_compatible_p. | |
5124 | ||
73acf815 | 5125 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
5126 | |
5127 | * xfaces.c (Finternal_lisp_face_equal_p): Restore previously | |
5128 | removed calculation of frame `f', as it's now used. | |
5129 | ||
73acf815 | 5130 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5131 | |
1f45f627 | 5132 | * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined. |
aca7a3d2 MB |
5133 | (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. |
5134 | (UNIDATA): New variable. | |
5135 | (${lispsource}international/charprop.el): Depends on ${UNIDATA}. | |
5136 | (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run | |
5137 | $(RUN_TEMACS) unconditionally. | |
5138 | ||
73acf815 | 5139 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5140 | |
1f45f627 | 5141 | * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary. |
aca7a3d2 MB |
5142 | (admindir): New variable. |
5143 | ($(lispsource)international/charprop.el): New target. | |
5144 | ||
73acf815 | 5145 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 5146 | |
1f45f627 | 5147 | * character.c (chars-in-region): Remove obsolete function. |
aca7a3d2 MB |
5148 | (syms_of_character): Remove its initialization. |
5149 | ||
73acf815 | 5150 | 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net> |
aca7a3d2 MB |
5151 | |
5152 | * w32select.c (validate_coding_system) | |
5153 | (setup_windows_coding_system): New functions. | |
5154 | (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use | |
5155 | setup_windows_coding_system. | |
5156 | (setup_config, Fw32_get_clipboard_data): Use | |
5157 | validate_coding_system. | |
5158 | (Fx_selection_exists): Move call to setup_config to a place | |
1f45f627 | 5159 | where signals are allowed. |
aca7a3d2 MB |
5160 | |
5161 | * lisp.h (Fcoding_system_base, Fcoding_system_eol_type) | |
5162 | (Fcheck_coding_system): Add declarations. | |
5163 | ||
73acf815 | 5164 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5165 | |
1f45f627 | 5166 | * charset.c (load_charset_map_from_vector): Fix for the first iteration. |
aca7a3d2 | 5167 | |
73acf815 | 5168 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
5169 | |
5170 | * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp | |
5171 | string as the second argument for x_new_fontset. | |
5172 | ||
73acf815 | 5173 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5174 | |
5175 | * coding.c (decode_coding_object): Use safe_call1 instead of call1. | |
5176 | (encode_coding_object): Use safe_call instead of call2. | |
5177 | ||
73acf815 | 5178 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5179 | |
1f45f627 | 5180 | * fontset.c (Fset_fontset_font): Check family element of a given vector. |
aca7a3d2 MB |
5181 | |
5182 | * Makefile.in (lisp): Include charprop.el. | |
5183 | ||
73acf815 | 5184 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
5185 | |
5186 | * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash. | |
5187 | Not sure if it's unnecessary. | |
5188 | ||
73acf815 | 5189 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
5190 | |
5191 | * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out | |
5192 | some possibly unnecessary fontset checking code that crashed | |
1f45f627 | 5193 | when creating a new frame. |
aca7a3d2 | 5194 | |
73acf815 | 5195 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5196 | |
5197 | * xfaces.c (merge_faces): Fix argument to lookup_derived_face and | |
5198 | lookup_face. | |
5199 | ||
5200 | * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face. | |
5201 | ||
1f45f627 | 5202 | * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face. |
aca7a3d2 | 5203 | |
73acf815 | 5204 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5205 | |
73acf815 | 5206 | * coding.c: Cancel the change done in HEAD on 2008-02-01. |
aca7a3d2 MB |
5207 | (coding_charset_list): New function. |
5208 | ||
5209 | * coding.h (coding_charset_list): Extern it. | |
5210 | ||
73acf815 | 5211 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5212 | |
5213 | * fontset.c (Fset_fontset_font): Call find_font_encoding with | |
5214 | concatenation of family and registry. | |
5215 | ||
73acf815 | 5216 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5217 | |
5218 | * character.h (BYTE8_STRING): Fix typo. | |
5219 | ||
5220 | * editfns.c (Ftranslate_region_internal): Don't convert unibyte | |
5221 | string to multibyte (sync to HEAD). | |
5222 | ||
5223 | * casefiddle.c (casify_region): Handle changes in byte-length | |
5224 | using replace_range_2 (sync to HEAD). | |
5225 | ||
73acf815 | 5226 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
5227 | |
5228 | * chartab.c (map_char_table): GCPRO table and arg. | |
5229 | ||
73acf815 | 5230 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5231 | |
5232 | * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is | |
5233 | already at limit. | |
5234 | ||
73acf815 | 5235 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5236 | |
5237 | * fontset.c (fs_load_font): Use fast_string_match_ignore_case | |
5238 | instead of fast_c_string_match_ignore_case. | |
1f45f627 | 5239 | (find_font_encoding): Change argument to Lisp_Object. Use |
aca7a3d2 | 5240 | fast_string_match_ignore_case instead of |
1f45f627 | 5241 | fast_c_string_match_ignore_case. Change caller. |
aca7a3d2 | 5242 | |
73acf815 | 5243 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5244 | |
5245 | * xdisp.c (get_next_display_element): In unibyte case, decide to | |
5246 | display in octal form by checking a chacter by | |
5247 | UNIBYTE_CHAR_HAS_MULTIBYTE_P. | |
5248 | ||
1f45f627 | 5249 | * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table. |
aca7a3d2 MB |
5250 | |
5251 | * character.c (unibyte_has_multibyte_table): New variable. | |
5252 | ||
5253 | * character.h (unibyte_has_multibyte_table): Extern it. | |
5254 | (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro. | |
5255 | ||
73acf815 | 5256 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5257 | |
5258 | * coding.c (encode_coding_iso_2022): Fix handling of charset | |
5259 | annotation. | |
5260 | ||
73acf815 | 5261 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5262 | |
5263 | * coding.c (setup_coding_system): If coding_system is nil, use | |
5264 | Qundecided. | |
5265 | (Fterminal_coding_system): Return nil if terminal coding system is | |
5266 | `undecided'. | |
5267 | (syms_of_coding): Define coding-system `undecided' here. Setup | |
5268 | terminal_coding as `undecided'. | |
5269 | ||
73acf815 | 5270 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5271 | |
5272 | * xdisp.c (message_dolog, set_message_1): Call | |
5273 | unibyte_char_to_multibyte with arg type int. | |
5274 | ||
aca7a3d2 MB |
5275 | * lread.c (read1): Fix reading of a char-table. |
5276 | ||
5277 | * print.c (print_object): Include sub char-table in cicularities | |
5278 | detection. | |
5279 | ||
73acf815 | 5280 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5281 | |
5282 | * keymap.c (where_is_internal_2): Fix for the case that KEY is a | |
1f45f627 | 5283 | cons. Append the found sequences in car of ARGS instead of prepending. |
aca7a3d2 | 5284 | |
73acf815 | 5285 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5286 | |
5287 | * fileio.c (report_file_error): Make a unibyte string from | |
5288 | strerror (errorno). | |
5289 | (Fsubstitute_in_file_name): Fix the arg to | |
5290 | unibyte_char_to_multibyte. It is evaluated twice. | |
5291 | ||
73acf815 | 5292 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5293 | |
5294 | * charset.h (CHAR_CHARSET): Shortcut for ASCII case. | |
5295 | ||
73acf815 | 5296 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5297 | |
5298 | * coding.c (detect_coding_utf_16): Don't set detect_info->found if | |
5299 | BOM is not found. | |
4c4475a8 GM |
5300 | (detect_coding, detect_coding_system): Optimization for ISO-2022 |
5301 | when no 8-bit data is found. | |
aca7a3d2 | 5302 | |
73acf815 | 5303 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5304 | |
5305 | * w32fns.c (x_to_w32_font): Update to use new coding struct. | |
5306 | ||
73acf815 | 5307 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5308 | |
4c4475a8 GM |
5309 | * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of |
5310 | CHARS. | |
aca7a3d2 | 5311 | |
73acf815 | 5312 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
5313 | |
5314 | * macterm.c (mac_encode_char): Add charset argument and update | |
5315 | to use encoding_type. | |
2a2e8de7 | 5316 | (x_new_font, x_new_fontset): Merge in changes from xterm.c; |
1f45f627 GM |
5317 | switch to pure fontset. |
5318 | (decode_mac_font_name): Temporarily remove decoding. | |
5319 | (x_font_name_to_mac_font_name): Temporarily remove encoding. | |
5320 | (x_load_font): Temporarily remove encoding. | |
aca7a3d2 | 5321 | |
73acf815 | 5322 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5323 | |
5324 | * xfaces.c (Fface_font): If frame is not on a window system, | |
5325 | ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't | |
5326 | refer to face->font. | |
5327 | (split_font_name_into_vector, build_font_name_from_vector) | |
5328 | (lookup_non_ascii_face, realize_non_ascii_face): Define them only | |
5329 | whne HAVE_WINDOW_SYSTEM is defined. | |
5330 | ||
73acf815 | 5331 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5332 | |
5333 | * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. | |
5334 | (x_produce_glyphs): Fix setting of members of cmp in case | |
1f45f627 | 5335 | cmp->glyph_len is zero. |
aca7a3d2 | 5336 | |
1f45f627 | 5337 | * fontset.c (Fset_fontset_font): Fix docstring. |
aca7a3d2 MB |
5338 | (Ffontset_info): Make it backward compatible. New arg ALL. |
5339 | ||
73acf815 | 5340 | 2008-02-01 Kim F. Storm <storm@cua.dk> |
aca7a3d2 MB |
5341 | |
5342 | * process.c (read_process_output): Grow decoding_buf when needed; | |
5343 | this could cause a crash in allocate_string and compact_small_strings. | |
5344 | ||
73acf815 | 5345 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5346 | |
1f45f627 | 5347 | * fileio.c (WRITE_BUF_SIZE): Delete this macro. |
aca7a3d2 | 5348 | |
73acf815 | 5349 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5350 | |
5351 | * coding.c (setup_coding_system): Set coding->common_flags | |
5352 | correctly for raw-text. | |
5353 | (consume_chars): On encoding unibyte text by raw-text, don't check | |
5354 | multibyte form. | |
1f45f627 | 5355 | (encode_coding): On encoding by raw-text, never use translation tables. |
aca7a3d2 MB |
5356 | |
5357 | * fileio.c (e_write): Short cut for the case of no encoding. | |
5358 | ||
73acf815 | 5359 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5360 | |
4c4475a8 GM |
5361 | * coding.c (detect_coding, detect_coding_system): Delete unused |
5362 | variables. | |
aca7a3d2 | 5363 | |
73acf815 | 5364 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5365 | |
5366 | * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. | |
5367 | (consume_chars): Fix handling of 8-bit bytes in unibyte source. | |
5368 | ||
73acf815 | 5369 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5370 | |
5371 | * coding.c (Ffind_coding_systems_region_internal): Include | |
5372 | raw-text and no-conversion in the result. | |
5373 | ||
73acf815 | 5374 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5375 | |
1f45f627 | 5376 | * fontset.c (find_font_encoding): Return `ascii' for unknown encoding. |
aca7a3d2 MB |
5377 | (load_font_get_repertory): Delete unnecessary check of ENCODING of |
5378 | FONT_DEF. | |
5379 | (font_def_arg, add_arg, from_arg, to_arg): New args. | |
1f45f627 | 5380 | (set_fontset_font): Change argument. |
aca7a3d2 MB |
5381 | (Fset_fontset_font): Fix for the case that TARGET is a script |
5382 | name and charset name. | |
5383 | (new_fontset_from_font_name): Fix argument to Fnew_fontset. | |
5384 | ||
73acf815 | 5385 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5386 | |
1f45f627 GM |
5387 | * fontset.c (fontset_font): Rename from fontset_face. Change return |
5388 | value. | |
4c4475a8 GM |
5389 | (face_suitable_for_char_p, face_for_char): Adjust for the change |
5390 | of fontset_font. | |
aca7a3d2 MB |
5391 | (make_fontset_for_ascii_face): Fix setting of the fontset element |
5392 | for ASCII. | |
5393 | (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR | |
5394 | to get a font name. | |
1f45f627 | 5395 | (Ffontset_info): Adjust for the change of fontset_font. |
aca7a3d2 | 5396 | |
fcb314b2 | 5397 | * coding.c (emacs_mule_char): Check invalid code more regidly. |
aca7a3d2 MB |
5398 | |
5399 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
5400 | (LEADING_CODE_LATIN_1_MAX): Delete these macros. | |
5401 | ||
73acf815 | 5402 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5403 | |
fcb314b2 | 5404 | * editfns.c (check_translation): New function. |
aca7a3d2 MB |
5405 | (Ftranslate_region_internal): Handle M:N mapping. |
5406 | ||
73acf815 | 5407 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5408 | |
5409 | * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. | |
5410 | ||
73acf815 | 5411 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5412 | |
5413 | * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of | |
5414 | goto invalid_code. | |
5415 | (decode_coding_iso_2022): Fix handling of invalid designation. | |
5416 | ||
5417 | * fileio.c (Finsert_file_contents): Be sure to call unbind_to | |
5418 | after calling code_conversion_save. | |
5419 | ||
73acf815 | 5420 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5421 | |
5422 | * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. | |
5423 | ||
5424 | * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. | |
5425 | ||
5426 | * fontset.c: Include "intervals.h". | |
5427 | (fontset_face): Fix comparing of Lisp_Objects. | |
4c4475a8 GM |
5428 | (free_face_fontset, new_fontset_from_font_name): Fix |
5429 | Lisp_Object/int mixup. | |
aca7a3d2 MB |
5430 | |
5431 | * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. | |
5432 | ||
5433 | * coding.c: Add many prototypes for static functions. | |
5434 | (get_translation_table): Allow max_lookup to be NULL. | |
2a2e8de7 | 5435 | (decode_coding, Ffind_coding_systems_region_internal) |
4c4475a8 GM |
5436 | (Funencodable_char_position, Fcheck_coding_systems_region): Call |
5437 | get_translation_table with max_lookup NULL. | |
aca7a3d2 | 5438 | |
73acf815 | 5439 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5440 | |
5441 | * coding.c (get_translation_table): Declare it as Lisp_Object. | |
5442 | (LOOKUP_TRANSLATION_TABLE): New macro. | |
4c4475a8 GM |
5443 | (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE |
5444 | instead of CHAR_TABLE_REF. | |
aca7a3d2 | 5445 | |
73acf815 | 5446 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5447 | |
1f45f627 | 5448 | * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of |
aca7a3d2 MB |
5449 | annotation data format. |
5450 | (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): | |
1f45f627 | 5451 | Change arguments FROM and TO to single argument NCHARS. Change caller. |
4c4475a8 | 5452 | (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule) |
aca7a3d2 | 5453 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) |
4c4475a8 GM |
5454 | (decode_coding_ccl, decode_coding_charset): Pay attention to |
5455 | coding->charbuf_used. | |
aca7a3d2 MB |
5456 | (get_translation): New function. |
5457 | (produce_chars): New arguments translation_table and last_block. | |
5458 | Translate characters here. Return number of carryover chars. | |
1f45f627 GM |
5459 | Change caller. |
5460 | (produce_composition): New argument pos. Change caller. | |
5461 | Adjust for the change of annotation data format. | |
aca7a3d2 MB |
5462 | (produce_charset, produce_annotation): Likewise. |
5463 | (decode_coding, encode_coding): Don't call translate_chars. | |
1f45f627 GM |
5464 | (consume_chars): New arg translation_table. Change caller. |
5465 | (translate_chars): Delete. | |
5466 | (syms_of_coding): Make translation-table's number of extra slots 2. | |
aca7a3d2 | 5467 | |
73acf815 | 5468 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5469 | |
5470 | * search.c (simple_search): Fix setting this_pos_byte in backward | |
5471 | search. | |
5472 | ||
5473 | * coding.c (detect_coding_emacs_mule): Fix counting of encoded | |
5474 | byte sequence. | |
5475 | (detect_coding_ccl): Fix setting of the variable valids. | |
5476 | ||
73acf815 | 5477 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5478 | |
5479 | * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. | |
5480 | ||
5481 | * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. | |
5482 | ||
1f45f627 | 5483 | * editfns.c (Ftranslate_region_internal): Rename from |
aca7a3d2 MB |
5484 | Ftranslate_region. Accept a char-table in TABLE. |
5485 | (syms_of_editfns): Defsubr Stranslate_region_internal. | |
5486 | ||
5487 | * xfaces.c (set_lface_from_font_name): If a font is specified for | |
5488 | a frame, generate a fontset from the font. | |
5489 | (build_scalable_font_name): If the scalable font is requested for | |
5490 | a specific size, don't change that size. | |
5491 | (try_font_list): Try a scalable font also in the case that a | |
1f45f627 | 5492 | pattern string is specified. |
aca7a3d2 | 5493 | |
73acf815 | 5494 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5495 | |
5496 | * xfaces.c (Fface_font): New optional arg CHARACTER. | |
5497 | ||
73acf815 | 5498 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5499 | |
5500 | * charset.h (CHARSET_OFFSET): New macro. | |
5501 | ||
73acf815 | 5502 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5503 | |
5504 | * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. | |
5505 | ||
5506 | * fontset.c (fontset_face): Handle the case that repertory is a | |
5507 | char-table. | |
5508 | (find_font_encoding): Return nil for unknown encoding. | |
5509 | (Fset_fontset_font): Ignore a font of unknown encoding. | |
5510 | ||
73acf815 | 5511 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5512 | |
1f45f627 | 5513 | * keymap.c (describe_vector): Handle default value of a char table. |
aca7a3d2 MB |
5514 | |
5515 | * fontset.c (fontset_face): Handle fallback fonts correctly. | |
5516 | (Ffontset_info): Return infomation about fallback fonts. | |
5517 | ||
73acf815 | 5518 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5519 | |
5520 | * fontset.c (FONTSET_DEFAULT): New macro. | |
4c4475a8 | 5521 | (FONTSET_ADD, fontset_add): Handle the case that range is nil. |
aca7a3d2 MB |
5522 | (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle |
5523 | the case that it is nil. | |
5524 | (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK. | |
1f45f627 | 5525 | (syms_of_fontset): Set char-table-extra-slots property of fontset to 9. |
aca7a3d2 MB |
5526 | |
5527 | * charset.h (CHAR_CHARSET_P): Fix for the case that the method is | |
5528 | subset or superset. | |
5529 | ||
73acf815 | 5530 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5531 | |
5532 | * emacs.c (main): Call init_charset after syms_of_XXX. | |
5533 | ||
1f45f627 | 5534 | * charset.c (Vcharset_map_directory): Delete. |
aca7a3d2 MB |
5535 | (Vcharset_map_path): New variable |
5536 | (load_charset_map_from_file): Use Vcharset_map_path instead. | |
5537 | (init_charset): Initialize Vcharset_map_path. | |
5538 | (syms_of_charset): Delete declaration of "charset-map-directory", | |
5539 | add declaration of "charset-map-path". | |
5540 | ||
73acf815 | 5541 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5542 | |
4c4475a8 GM |
5543 | * fns.c (string_char_to_byte, string_byte_to_char): Optimize for |
5544 | ASCII only string. | |
aca7a3d2 MB |
5545 | |
5546 | * fileio.c (Finsert_file_contents): Avoid detecting a code twice. | |
5547 | ||
5548 | * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. | |
6f69e89b | 5549 | (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte. |
aca7a3d2 | 5550 | |
73acf815 | 5551 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5552 | |
5553 | * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. | |
5554 | ||
5555 | * coding.c (QCmnemonic, QCdefalut_char) | |
5556 | (QCdecode_translation_table, QCencode_translation_table) | |
5557 | (QCpost_read_conversion, QCpre_write_conversion): New variables. | |
5558 | (get_translation_table): Return a list of translation tables if | |
5559 | necessary. | |
5560 | (decode_coding): Call get_translation_table with ENCODEP 0. | |
5561 | (char_encodable_p): If translation_table is non-nil, always call | |
5562 | translate_char. | |
5563 | (Fdefine_coding_system_internal): Accept list of translation | |
5564 | tables as :encode-translation-table and :decode-translation-table. | |
5565 | (Fcoding_system_put): New function. | |
5566 | (syms_of_coding): Declare new symbols. Defsubr | |
5567 | Scoding_system_put. | |
4c4475a8 GM |
5568 | (decode_coding_sjis, encode_coding_sjis): Handle 4th charset, |
5569 | typically JISX0212. | |
aca7a3d2 MB |
5570 | |
5571 | * charset.c (map_charset_chars): Fix arg to map_charset_chars in | |
5572 | when the charset is superset type. | |
5573 | ||
5574 | * character.c (translate_char): Accept list of translation tables. | |
5575 | ||
73acf815 | 5576 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5577 | |
1f45f627 | 5578 | * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl. |
aca7a3d2 MB |
5579 | (CODING_ATTR_TRANS_TBL): New macro. |
5580 | ||
5581 | * coding.c (get_translation_table): New function. | |
5582 | (translate_chars): Fix the bug of skipping annotation data. | |
4c4475a8 GM |
5583 | (decode_coding, encode_coding): Utilize get_translation_table. |
5584 | (char_encodable_p, Funencodable_char_position): Translate char if | |
5585 | necessary. | |
5586 | (Ffind_coding_systems_region_internal) | |
5587 | (Fcheck_coding_systems_region): Setup translation table for encode | |
5588 | in a coding system attribute vector in advance. | |
aca7a3d2 MB |
5589 | (Fdefine_coding_system_internal): Allow a symbol as translation |
5590 | table. For shift-jis type coding system, allow 4th charset. | |
5591 | ||
73acf815 | 5592 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5593 | |
5594 | * coding.c (decode_coding_sjis): Check the first byte rigidly. | |
5595 | ||
5596 | * xdisp.c (get_next_display_element): Pass -1 as POS to | |
5597 | FACE_FOR_CHAR if displaying a C-string. | |
5598 | ||
73acf815 | 5599 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5600 | |
5601 | * composite.c (get_composition_id): Handle xoff and yoff in a | |
5602 | composition rule. | |
5603 | ||
5604 | * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. | |
5605 | (struct composition): New member lbearing and rbearing. | |
5606 | ||
5607 | * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y). | |
5608 | (x_get_glyph_overhangs): Handle a composition glyph. | |
1f45f627 | 5609 | (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph. |
aca7a3d2 MB |
5610 | |
5611 | * xterm.c (x_compute_glyph_string_overhangs): Handle also a | |
5612 | composition glyph. | |
5613 | ||
73acf815 | 5614 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5615 | |
5616 | * print.c: Include charset.h. | |
5617 | (Vprint_charset_text_property): New variable. | |
5618 | (Qdefault): Extern it. | |
5619 | (PRINT_STRING_NON_CHARSET_FOUND) | |
5620 | (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros. | |
5621 | (print_check_string_result): New variable. | |
5622 | (print_check_string_charset_prop): New function. | |
5623 | (print_prune_charset_plist): New variable. | |
5624 | (print_prune_string_charset): New function. | |
5625 | (print_object): Call print_prune_string_charset if | |
5626 | Vprint_charset_text_property is not t. | |
5627 | (print_interval): Print nothing if itnerval->plist is nil. | |
5628 | (syms_of_print): Declare Vprint_charset_text_property as a lisp | |
5629 | variable. Init and staticpro print_prune_charset_plist. | |
5630 | ||
73acf815 | 5631 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5632 | |
5633 | * fontset.c (new_fontset_from_font_name): Use the specified font | |
5634 | for all characters in the new fontset. | |
5635 | ||
5636 | * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
5637 | OBJECT args. | |
5638 | ||
5639 | * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and | |
5640 | OBJECT args for composition too. | |
5641 | ||
5642 | * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
5643 | OBJECT args. | |
5644 | ||
73acf815 | 5645 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5646 | |
5647 | * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. | |
5648 | ||
1f45f627 | 5649 | * fontset.c (reorder_font_vector): Adjust for the change of |
aca7a3d2 | 5650 | FONT_DEF format. |
1f45f627 | 5651 | (fontset_face): New arg id. Change caller. |
aca7a3d2 | 5652 | (face_for_char): New args pos and object. |
1f45f627 | 5653 | (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF |
aca7a3d2 MB |
5654 | format.n |
5655 | (fs_query_fontset): Check NAME by Fassoc too. | |
5656 | (Fset_fontset_font): Allow non-XLFD font name. | |
1f45f627 | 5657 | (Ffontset_info): Adjust for the change of FONT_DEF format. |
aca7a3d2 | 5658 | |
1f45f627 | 5659 | * fontset.h (face_for_char): Adjust prototype. |
aca7a3d2 | 5660 | |
4c4475a8 GM |
5661 | * xdisp.c (face_before_or_after_it_pos, get_next_display_element) |
5662 | (append_space, extend_face_to_end_of_line) | |
5663 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
5664 | (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args. | |
aca7a3d2 MB |
5665 | |
5666 | * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with | |
5667 | POS and OBJECT args. | |
5668 | ||
5669 | * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with | |
5670 | POS and OBJECT args. | |
5671 | ||
73acf815 | 5672 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5673 | |
5674 | * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc | |
5675 | of GlobalAlloc'ed memory. | |
5676 | ||
73acf815 | 5677 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5678 | |
5679 | * ccl.c (Fccl_execute_on_string): Fix the condition of loop. | |
5680 | ||
5681 | * charset.h (charset_table_used): Delete extern. | |
5682 | ||
5683 | * charset.c (charset_table_used): Make it static. | |
5684 | (map_charset_chars): Fix args to c_function with. | |
5685 | ||
5686 | * chartab.c (map_sub_char_table_for_charset): Fix args to | |
5687 | c_function with. | |
5688 | ||
5689 | * coding.h (enum coding_result_code): Delete | |
5690 | CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. | |
5691 | ||
5692 | * coding.c (Qinsufficient_source, Qinconsistent_eol) | |
1f45f627 | 5693 | (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. |
aca7a3d2 MB |
5694 | (Vlast_code_conversion_error): New variables. |
5695 | (syms_of_coding): DEFSYM or DEFVAR_LISP them. | |
5696 | (ONE_MORE_BYTE): Record error if any instead of signaling an | |
5697 | error. If non-ASCII multibyte char is found, return the negative | |
5698 | value of the code. All callers changed to check it. | |
5699 | (ONE_MORE_BYTE_NO_CHECK): Likewise. | |
1f45f627 GM |
5700 | (record_conversion_result): New function. Change all codes setting |
5701 | coding->result to call this function. | |
4c4475a8 GM |
5702 | (detect_coding_utf_8, decode_coding_utf_8) |
5703 | (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5): | |
5704 | Don't use the local variable incomplete. | |
aca7a3d2 | 5705 | (emacs_mule_char): Change the second arg to `const'. |
aca7a3d2 MB |
5706 | (decode_coding): Fix of flushing out unprocessed data. |
5707 | (make_conversion_work_buffer): Fix making of a work buffer. | |
2a2e8de7 | 5708 | (decode_coding_object): Return coding->dst_object. |
aca7a3d2 MB |
5709 | |
5710 | * fontset.c (set_fontset_font): Fix args. | |
5711 | ||
5712 | * lisp.h (CHARACTERBITS): Define as 22. | |
5713 | ||
5714 | * process.c (send_process): Be sure to set coding->src_multibyte. | |
5715 | ||
5716 | * xdisp.c (handle_auto_composed_prop): Fix setting of limit. | |
5717 | ||
73acf815 | 5718 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5719 | |
5720 | * xdisp.c (handle_auto_composed_prop): Give limit to | |
5721 | Fnext_single_char_property_change. | |
5722 | ||
73acf815 | 5723 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5724 | |
424c157f | 5725 | * composite.c (syms_of_composite): Don't make the composition hash |
1f45f627 | 5726 | table weak. |
aca7a3d2 MB |
5727 | |
5728 | * fontset.c (Fset_fontset_font): Fix docstring. | |
5729 | ||
5730 | * lisp.h (detect_coding_system): Adjust prototype. | |
5731 | ||
5732 | * fileio.c (kill_workbuf_unwind): Delete this function. | |
5733 | (Finsert_file_contents): Adjust the call of detect_coding_system. | |
5734 | Get conversion_buffer by code_conversion_save. Use the macor | |
5735 | CODING_MAY_REQUIRE_DECODING. After decoding, update | |
5736 | coding_system. | |
5737 | ||
5738 | * coding.h (make_conversion_work_buffer): Delete extern. | |
5739 | (code_conversion_save): Extern it. | |
5740 | ||
5741 | * coding.c (enum iso_code_class_type): Delete ISO_carriage_return. | |
1f45f627 | 5742 | (CODING_GET_INFO): Delete argument eol_type. Change callers. |
aca7a3d2 MB |
5743 | (decode_coding_utf_8): Don't do eol converion. |
5744 | (detect_coding_utf_16): Check coding->src_chars, not | |
1f45f627 | 5745 | coding->src_bytes. Add heuristics for those that have no signature. |
4c4475a8 GM |
5746 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
5747 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
5748 | Don't do eol converion. | |
aca7a3d2 MB |
5749 | (adjust_coding_eol_type): Return a new coding system. |
5750 | (detect_coding): Don't detect eol. Fix for utf-16 detection. | |
5751 | (decode_eol): In case of CRLF->LF conversion, use del_range_2 on | |
5752 | each change. | |
5753 | (decode_coding): Pay attention to undo_list. Do eol convesion for | |
5754 | all types of coding-systems (if necessary). | |
5755 | (Vcode_conversion_work_buf_list): Delete it. | |
1f45f627 | 5756 | (Vcode_conversion_reused_workbuf): Rename from |
aca7a3d2 MB |
5757 | Vcode_conversion_reused_work_buf. |
5758 | (Vcode_conversion_workbuf_name): New variable. | |
5759 | (reused_workbuf_in_use): New variable. | |
5760 | (make_conversion_work_buffer): Delete the arg DEPTH. | |
4c4475a8 | 5761 | (code_conversion_restore): Change argument to cons. |
1f45f627 GM |
5762 | (code_conversion_save): Delete the argument BUFFER. Change callers. |
5763 | (detect_coding_system): New argument src_chars. Change callers. | |
aca7a3d2 MB |
5764 | Fix for utf-16 detection. |
5765 | (init_coding_once): Don't use ISO_carriage_return. | |
1f45f627 | 5766 | (syms_of_coding): Initialize Vcode_conversion_workbuf_name and |
aca7a3d2 MB |
5767 | reused_workbuf_in_use. |
5768 | ||
73acf815 | 5769 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5770 | |
5771 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
5772 | is a cons specifying a character range. | |
5773 | ||
73acf815 | 5774 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5775 | |
5776 | * xdisp.c (handle_auto_composed_prop): Fix the case of returning | |
5777 | HANDLED_RECOMPUTE_PROPS. | |
5778 | ||
5779 | * coding.c (Fdefine_coding_system_internal): Fix checking of | |
5780 | ascii compatibility. | |
5781 | ||
73acf815 | 5782 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5783 | |
1f45f627 | 5784 | * charset.c (find_charsets_in_text): Delete unused locale variable. |
aca7a3d2 MB |
5785 | (Fset_charset_priority): Update Vemacs_mule_charset_list too. |
5786 | ||
5787 | * coding.c (encode_coding_emacs_mule): Emit bytes with MSB. | |
5788 | Resync charset_list to Vemacs_mule_charset_list. | |
5789 | ||
5790 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
5791 | is a cons specifying a character range. | |
5792 | ||
73acf815 | 5793 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5794 | |
5795 | * composite.c (update_compositions): Bind inhibit-read-only, etc | |
5796 | to t before calling remove-list-of-text-properties. | |
5797 | ||
5798 | * print.c (print_object): Always print ASCII chars as is. | |
5799 | ||
73acf815 | 5800 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5801 | |
1f45f627 | 5802 | * keymap.c (Fdefine_key): Fix handling of Lucid style event type list. |
aca7a3d2 | 5803 | |
4c4475a8 GM |
5804 | * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE |
5805 | is a char table. | |
aca7a3d2 | 5806 | |
73acf815 | 5807 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5808 | |
1f45f627 | 5809 | * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary. |
aca7a3d2 | 5810 | |
73acf815 | 5811 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5812 | |
5813 | * xfaces.c (set_lface_from_font_name): Fix for the case that | |
5814 | FONTNAME is not fontset name. | |
5815 | ||
73acf815 | 5816 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5817 | |
5818 | * fns.c (base64_encode_1): Fix previous change. | |
5819 | ||
73acf815 | 5820 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5821 | |
5822 | * fontset.c (set_fontset_font): New function. | |
5823 | (Fset_fontset_font): If a font is specified for a charset, use | |
5824 | map_charset_chars to store the font spec in a fontset. | |
5825 | ||
73acf815 | 5826 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5827 | |
5828 | * fontset.c (fontset_face): Create a fallback fontset on demand | |
5829 | (make_fontset): Don't create a fallback fontset here. | |
5830 | (free_face_fontset): Free a fallback fontset (if any) too. | |
5831 | (n_auto_fontsets): Delete this variable. | |
5832 | (auto_fontset_alist): New variable. | |
5833 | (new_fontset_from_font_name): Check auto_fontset_alist. | |
5834 | (dump_fontset) [FONTSET_DEBUG]: Fully re-written. | |
5835 | (Ffontset_list_all) [FONTSET_DEBUG]: New function. | |
5836 | (syms_of_fontset): Initialize and staticpro auto_fontset_alist. | |
5837 | Defsubr Sfontset_list_all. | |
5838 | ||
73acf815 | 5839 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5840 | |
5841 | * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. | |
5842 | ||
73acf815 | 5843 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5844 | |
5845 | * fontset.c (Fnew_fontset): Check NAME more rigidly. | |
5846 | ||
73acf815 | 5847 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5848 | |
5849 | * editfns.c (Fgoto_char): Fix docstring. | |
5850 | ||
73acf815 | 5851 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5852 | |
5853 | * insdel.c (insert_from_gap): Adjust intervals correctly. | |
5854 | ||
73acf815 | 5855 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5856 | |
5857 | * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. | |
5858 | (pfnGetFontUnicodeRanges): New dynamically loaded function. | |
5859 | (w32_initialize): Try to load it. | |
5860 | (x_get_font_repertory): Use it if available. | |
5861 | (w32_encode_char): Add shortcut for unicode output. | |
5862 | ||
5863 | * w32fns.c (w32_load_system_font): Default charset to -1. | |
5864 | (x_to_w32_charset): Match all fonts for unicode. | |
1f45f627 | 5865 | (w32_to_x_charset): New parameter matching. Don't return partial |
aca7a3d2 MB |
5866 | or wildcard charsets. |
5867 | (w32_to_all_x_charsets): Don't return partial or wildcard charsets. | |
5868 | (w32_codepage_for_font): Return CP_UNICODE for unicode. | |
5869 | (w32_to_x_font): Match charset to real charset. | |
5870 | (enum_font_cb2): Always list unicode versions. | |
5871 | ||
5872 | * makefile.w32-in (temacs): Increase EMHEAP. | |
5873 | ||
73acf815 | 5874 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5875 | |
5876 | * w32term.c (w32_encode_char): New charset parameter. | |
5877 | font_info.encoding becomes encoding_type. | |
1f45f627 | 5878 | (x_get_font_repertory): New function. Warning: stub only! |
aca7a3d2 MB |
5879 | (x_new_font): Return quickly if font already set. |
5880 | (x_new_fontset): fontsetname parameter is Lisp_Object. | |
2a2e8de7 JB |
5881 | Use new fs_query_fontset. Try new_fontset_from_font_name. |
5882 | Use fontset_name for return value. | |
aca7a3d2 MB |
5883 | |
5884 | * w32term.h: Declare x_get_font_repertory. | |
5885 | ||
5886 | * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in | |
1f45f627 | 5887 | place of find_charset_in_text. Use encode_coding_object in place |
aca7a3d2 MB |
5888 | of encode_coding. |
5889 | (Fw32_get_clipboard_data): Use decode_coding_c_string in place of | |
5890 | decode_coding. | |
5891 | ||
5892 | * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version | |
5893 | of x_new_fontset. | |
5894 | (w32_load_system_font): Initialize charset as unicode. | |
5895 | font_info.encoding becomes encoding_type. | |
1f45f627 GM |
5896 | (w32_to_x_font): Use decode_coding_c_string in place of decode_coding. |
5897 | (x_to_w32_font): Use encode_coding_object in place of encode_coding. | |
aca7a3d2 MB |
5898 | (syms_of_w32fns): Set get_font_repertory_func. |
5899 | ||
1f45f627 | 5900 | * w32console.c: Include character.h. Use terminal_encode_buffer |
aca7a3d2 | 5901 | from term.c. |
1f45f627 | 5902 | (write_glyphs): Use new version of encode_terminal_code. Use |
aca7a3d2 MB |
5903 | encode_coding_object in place of encode_coding. |
5904 | ||
5905 | * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. | |
5906 | encoding becomes encoding_type. | |
5907 | ||
5908 | * term.c (terminal_encode_buffer): Make externally visible. | |
5909 | ||
5910 | * makefile.w32-in: Add character.h dependancies. | |
5911 | (character.o, chartab.o): New targets. | |
5912 | ||
73acf815 | 5913 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5914 | |
5915 | * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro | |
1f45f627 | 5916 | CODING_ID_EOL_TYPE. |
aca7a3d2 | 5917 | |
73acf815 | 5918 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
5919 | |
5920 | * coding.c (produce_chars): Revert last change. | |
5921 | ||
73acf815 | 5922 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5923 | |
5924 | * charset.h (charset_unicode): Extern it. | |
5925 | ||
5926 | * charset.c (string_xstring_p): Check by (C >= 0x100). | |
1f45f627 | 5927 | (find_charsets_in_text): Change format of the arc CHARSETS. New |
aca7a3d2 | 5928 | arg MULTIBYTE. |
1f45f627 | 5929 | (Ffind_charset_region, Ffind_charset_string): Adjust for the |
aca7a3d2 MB |
5930 | change of find_charsets_in_text. |
5931 | (Fsplit_char): Fix doc. Never return unknown. | |
5932 | ||
5933 | * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP. | |
5934 | ||
5935 | * coding.c (Fdefine_coding_system_alias): Update | |
5936 | Vcoding_system_list. | |
5937 | ||
5938 | * fontset.c (load_font_get_repertory): Pay attention to the case | |
5939 | that ENCODING of a font is specified by a char-table. | |
5940 | ||
5941 | * xterm.c (x_get_font_repertory): Handle the case that the | |
5942 | encoding of font is other than Unicode. | |
5943 | ||
73acf815 | 5944 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5945 | |
5946 | * term.c (encode_terminal_code): Don't handle glyph-table. Check | |
5947 | if a character is encodable by the terminal coding system. If | |
5948 | not, produces proper number of `?'s. Update | |
5949 | terminal_encode_buffer and terminal_encode_buf_size if necessary. | |
5950 | (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. | |
5951 | ||
73acf815 | 5952 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5953 | |
5954 | * term.c (terminal_encode_buffer, terminal_encode_buf_size): New | |
5955 | variables. | |
1f45f627 | 5956 | (encode_terminal_code): Change argument. Encode multiple |
aca7a3d2 MB |
5957 | characters at once. Store the result of encoding in |
5958 | terminal_encode_buffer. | |
4c4475a8 GM |
5959 | (write_glyphs, insert_glyphs): Adjust for the change of |
5960 | encode_terminal_code. | |
aca7a3d2 MB |
5961 | (term_init): Initialize terminal_encode_buffer and |
5962 | terminal_encode_buf_size. | |
5963 | ||
5964 | * coding.c (consume_chars): If coding->src_object is nil, don't | |
5965 | check annotation. | |
5966 | ||
73acf815 | 5967 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5968 | |
5969 | * character.c (char_string): Use ASCII_CHAR_P instead of | |
5970 | SINGLE_BYTE_CHAR_P. | |
5971 | ||
73acf815 | 5972 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5973 | |
5974 | * xdisp.c (handle_auto_composed_prop): Check if the last | |
5975 | characters of auto-composed region is newly composed with the | |
5976 | following characters. | |
5977 | (handle_composition_prop): Fix checking of point being inside | |
5978 | composition. | |
5979 | ||
73acf815 | 5980 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5981 | |
5982 | * fns.c (concat): Don't change multibyteness of the result by | |
5983 | concatenating an 8-bit character. | |
5984 | ||
5985 | * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change | |
5986 | multibyteness of the result when newelt is an 8-bit character. | |
5987 | ||
73acf815 | 5988 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5989 | |
5990 | * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used | |
5991 | EMACS_INT. | |
5992 | ||
5993 | * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. | |
5994 | ||
5995 | * xfaces.c (face_numeric_value): Declare dim size_t. | |
5996 | (Finternal_lisp_face_equal_p): Remove unused f. | |
5997 | ||
5998 | * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) | |
5999 | (MATRIX_ROW): Remove unused vars. | |
6000 | (draw_glyphs, x_insert_glyphs, fast_find_position) | |
6001 | (fast_find_position, fast_find_string_pos): Use EMACS_INT for | |
6002 | byte/char counts. | |
6003 | ||
6004 | * regex.c (regex_compile): Remove unused var. | |
6005 | ||
6006 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
6007 | ||
6008 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) | |
6009 | (Faccessible_keymaps, where_is_internal): Remove unused vars. | |
6010 | ||
6011 | * keyboard.c (cancel_hourglass_unwind): Return Qnil. | |
6012 | ||
6013 | * frame.c (frame_name_fnn_p): Make len EMACS_INT. | |
6014 | ||
6015 | * fileio.c (Fwrite_region): Remove unused var. | |
6016 | ||
6017 | * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) | |
6018 | (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. | |
6019 | ||
6020 | * composite.c (Fremove_list_of_text_properties): Declare. | |
6021 | ||
1f45f627 GM |
6022 | * coding.c (inhibit_pre_post_conversion): Remove (unused). |
6023 | (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts. | |
aca7a3d2 MB |
6024 | (coding_inherit_eol_type): Remove unused attrs. |
6025 | (detect_coding): Cast arg of detect_eol. | |
6026 | ||
6027 | * charset.c (syms_of_charset): Remove unused var p. | |
6028 | (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for | |
6029 | byte/char counts. | |
6030 | ||
6031 | * casetab.c (set_case_table): Remove unused var. | |
6032 | ||
6033 | * window.c (Fdisplay_buffer, Fframe_selected_window): Remove | |
1f45f627 | 6034 | unused vars. |
aca7a3d2 | 6035 | |
73acf815 | 6036 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6037 | |
6038 | * xterm.c (x_bitmap_mask): Declare. | |
6039 | ||
73acf815 | 6040 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6041 | |
6042 | * xterm.c (x_term_init): Fix type error. | |
6043 | ||
6044 | * lisp.h: Add Funibyte_char_to_multibyte. | |
6045 | ||
6046 | * coding.c (Fread_coding_system): Fix arg of XSETSTRING. | |
6047 | (Fset_coding_system_priority): Doc fix. | |
6048 | ||
aca7a3d2 MB |
6049 | * ccl.c (ccl_driver): Fix arg of CHARACTERP. |
6050 | ||
6051 | * indent.c (check_composition): Make start and end EMACS_INT. | |
6052 | ||
6053 | * character.c (lisp_string_width): Make ignore and end EMACS_INT. | |
6054 | ||
6055 | * xdisp.c (handle_composition_prop, check_point_in_composition): | |
6056 | Make buffer positions EMACS_INT. | |
6057 | ||
6058 | * composite.c (find_composition, run_composition_function) | |
6059 | (update_compositions, Ffind_composition_internal): Make buffer | |
6060 | positions EMACS_INT. | |
6061 | ||
6062 | * composite.h (find_composition, update_compositions): Make | |
6063 | position args EMACS_INT. | |
6064 | ||
1f45f627 | 6065 | * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT. |
aca7a3d2 MB |
6066 | |
6067 | * intervals.c (get_property_and_range): | |
6068 | * intervals.h (get_property_and_range): Make start and end EMACS_INT. | |
6069 | ||
6070 | * unexalpha.c: Don't include varargs.h. | |
6071 | ||
73acf815 | 6072 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6073 | |
6074 | * coding.h (ENCODE_UTF_8): New. | |
6075 | ||
6076 | * Makefile.in (gtkutil.o): Depend on coding.h. | |
6077 | ||
6078 | * coding.c (Fset_coding_system_priority): Doc fix. | |
6079 | ||
73acf815 | 6080 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6081 | |
6082 | * fileio.c (Finsert_file_contents): Call setup_coding_system in | |
6083 | the case of auto saving. | |
6084 | ||
73acf815 | 6085 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 | 6086 | |
4c4475a8 GM |
6087 | * chartab.c (map_char_table, map_char_table_for_charset): Protect |
6088 | `range' from GC. | |
aca7a3d2 | 6089 | |
73acf815 | 6090 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6091 | |
6092 | * coding.c (decode_coding_sjis): Check bytes more rigidly. | |
6093 | ||
73acf815 | 6094 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6095 | |
1f45f627 | 6096 | * fileio.c (choose_write_coding_system): Return a decided coding system. |
aca7a3d2 MB |
6097 | (Fwrite_region): Set Vlast_coding_system_used to the return value |
6098 | of choose_write_coding_system. | |
6099 | ||
73acf815 | 6100 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6101 | |
6102 | * charset.c (Fset_charset_priority): Pay attention to duplicated | |
6103 | arguments. | |
6104 | ||
6105 | * coding.c (QCcategory): New variable. | |
6106 | (syms_of_coding): Defsym it. Set all elements of | |
6107 | Vcoding_category_table and their symbol values. | |
6108 | (Fset_coding_system_priority): Doc fix. Update symbol qvalues of | |
6109 | coding-category-XXX, and coding-category-list. | |
6110 | (Fdefine_coding_system_internal): Add category in the plist. | |
6111 | ||
73acf815 | 6112 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6113 | |
6114 | * callproc.c (Fcall_process): Handle carryover correctly. | |
6115 | ||
1f45f627 | 6116 | * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes. |
aca7a3d2 MB |
6117 | (raw_text_coding_system): Check NILP (coding_system). |
6118 | (coding_inherit_eol_type): Check NILP (coding_system) and | |
6119 | NILP (parent). | |
6120 | (consume_chars): Fix for the case of raw-text. | |
6121 | ||
6122 | * process.c (read_process_output): Handle carryover correctly. | |
6123 | ||
73acf815 | 6124 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6125 | |
6126 | * regex.c (re_search_2): Fix last change. | |
6127 | ||
73acf815 | 6128 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6129 | |
6130 | * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not | |
6131 | target_multibyte. Even in a unibyte case, return a converted | |
6132 | multibyte char. | |
6133 | (GET_CHAR_AFTER): New macro. | |
6134 | (PATFETCH): Translate via multibyte char. | |
6135 | (HANDLE_UNIBYTE_RANGE): Delete this macro. | |
6136 | (SETUP_MULTIBYTE_RANGE): New macro. | |
6137 | (regex_compile): Setup compiled code so that its multibyteness | |
6138 | matches that of a target. Fix the handling of "[X-YZ]" using | |
6139 | SETUP_MULTIBYTE_RANGE. | |
6140 | (analyse_first) <charset>: For filling fastmap for all multibyte | |
6141 | characters, don't check by BASE_LEADING_CODE_P. | |
6142 | (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is | |
6143 | the same as RE_MULTIBYTE_P (bufp) now. | |
1f45f627 | 6144 | (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)). |
aca7a3d2 MB |
6145 | (TARGET_CHAR_AND_LENGTH): Delete this macro. |
6146 | (TRANSLATE_VIA_MULTIBYTE): New macro. | |
6147 | (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). | |
6148 | It is the same as RE_MULTIBYTE_P (bufp) now. | |
6149 | <exactn>: Translate via multibyte. | |
6150 | <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't | |
6151 | translate it. | |
6152 | <charset, charset_not>: Fetch a character by | |
6153 | RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. | |
6154 | <duplicate>: Call bcmp_translate with the last arg `multibyte'. | |
6155 | <wordbound, notwordbound, wordbeg, wordend, syntaxspec, | |
6156 | notsyntaxspec, categoryspec, notcategoryspec> Fetch a character | |
6157 | by GET_CHAR_AFTER. | |
c5ad7a3d | 6158 | (bcmp_translate): Likewise. |
aca7a3d2 MB |
6159 | |
6160 | * search.c (compile_pattern): Check the member target_multibyte, | |
6161 | not the member multibyte of buf. | |
6162 | ||
6163 | * lread.c (read1): While reading a string, set force_singlebyte | |
6164 | and force_multibyte correctly. | |
6165 | ||
4c4475a8 GM |
6166 | * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting |
6167 | up of unibyte_to_multibyte_table. | |
aca7a3d2 | 6168 | |
73acf815 | 6169 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6170 | |
6171 | * coding.c (setup_coding_system): If coding has | |
6172 | post-read-conversion or pre-write-conversion, set | |
6173 | CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK | |
6174 | respectively. | |
6175 | (decode_coding_gap): Run post-read-conversion if any. | |
6176 | ||
6177 | * fileio.c (Finsert_file_contents): Even if we read into a | |
6178 | unibyte buffer, check if we must decode the result or not. | |
6179 | ||
73acf815 | 6180 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6181 | |
6182 | * coding.c (make_conversion_work_buffer): Change the work buffer | |
6183 | name to the same one as that of Emacs 21. | |
6184 | ||
73acf815 | 6185 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6186 | |
1f45f627 | 6187 | * coding.h (make_conversion_work_buffer): Adjust prototype. |
aca7a3d2 MB |
6188 | (code_conversion_restore): Don't extern it. |
6189 | ||
6190 | * coding.c (detected_mask): Delete unused variable. | |
6191 | (decode_coding_iso_2022): Pay attention to the byte sequence of | |
6192 | CTEXT extended segment, and retain those bytes as is. | |
6193 | (decode_coding_ccl): Delete unused variable `valids'. | |
6194 | (setup_coding_system): Delete unused variable `category'. | |
6195 | (consume_chars): Delete unused variable `category'. Make it work | |
6196 | for non-multibyte case. | |
1f45f627 | 6197 | (make_conversion_work_buffer): Change argument. |
aca7a3d2 MB |
6198 | (saved_coding): Delete unused variable. |
6199 | (code_conversion_restore): Don't check saved_coding->destination. | |
6200 | (code_conversion_save): New function. | |
6201 | (decode_coding_gap, encode_coding_gap): Call code_conversion_save | |
6202 | instead of record_unwind_protect. | |
1f45f627 | 6203 | (decode_coding_object, encode_coding_object): Likewise. Recover PT. |
aca7a3d2 | 6204 | (detect_coding_system): Delete unused variable `mask'. |
1f45f627 | 6205 | (Fdefine_coding_system_internal): Delete unused vaiable id. |
aca7a3d2 MB |
6206 | |
6207 | * fileio.c (kill_workbuf_unwind): New function. | |
6208 | (Finsert_file_contents): On replacing, call | |
6209 | make_conversion_work_buffer with correct args, and call | |
6210 | record_unwind_protect with the first arg kill_workbuf_unwind. | |
6211 | ||
6212 | * lisp.h (Fgenerate_new_buffer_name): EXFUN it. | |
6213 | ||
73acf815 | 6214 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6215 | |
1f45f627 | 6216 | * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME. |
aca7a3d2 MB |
6217 | (fontset_add): Fix for the case that TO is less than TO1. |
6218 | (Ffontset_info): Don't use fallback fontset on checking the | |
6219 | default fontset. | |
6220 | (dump_fontset): New function for debugging. | |
6221 | ||
6222 | * coding.c (Fdefine_coding_system_internal): Fix for the case that | |
6223 | coding_type is Qcharset. | |
6224 | ||
73acf815 | 6225 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6226 | |
6227 | * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. | |
6228 | (map_char_table): Don't inherit the value from the parent on | |
1f45f627 | 6229 | initializing VAL. Adjust for the above change. |
aca7a3d2 | 6230 | |
73acf815 | 6231 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6232 | |
6233 | * coding.c (Qsignature, Qendian): Delete these variables. | |
6234 | (syms_of_coding): Don't initialize them. | |
6235 | (CATEGORY_MASK_UTF_16_AUTO): New macro. | |
6236 | (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in | |
6237 | detect_info->found. | |
6238 | (decode_coding_utf_16): Don't detect BOM here. | |
6239 | (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) | |
6240 | is NOT utf_16_without_bom. | |
6241 | (setup_coding_system): For a coding system of type utf-16, check | |
6242 | if the attribute :endian is Qbig or not (not nil or not), and set | |
6243 | CODING_REQUIRE_DETECTION_MASK if BOM detection is required. | |
6244 | (detect_coding): If coding type is utf-16 and BOM detection is | |
6245 | required, detect it. | |
6246 | (Fdefine_coding_system_internal): For a coding system of type | |
1f45f627 | 6247 | utf-16, check if the attribute :endian is Qbig or not (not nil or not). |
aca7a3d2 | 6248 | |
73acf815 | 6249 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6250 | |
6251 | * coding.c (coding_set_source): Fix for the case that the current | |
6252 | buffer is different from coding->src_object. | |
6253 | (decode_coding_object): Don't use the conversion work buffer if | |
6254 | DST_OBJECT is a buffer. | |
6255 | ||
73acf815 | 6256 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6257 | |
6258 | * lread.c (read_emacs_mule_char) [len==2]: Index | |
6259 | emacs_mule_charset correctly. | |
6260 | ||
73acf815 | 6261 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6262 | |
6263 | * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) | |
6264 | (detect_coding_big5, decode_coding_big5, encode_coding_big5) | |
1f45f627 | 6265 | (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer |
aca7a3d2 MB |
6266 | treated specially.) |
6267 | (setup_coding_system, coding_category, CATEGORY_MASK_ANY) | |
6268 | (detected_mask): Remove Big5 bits. | |
6269 | ||
73acf815 | 6270 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6271 | |
6272 | The following changes are to make the font rescaling facility | |
6273 | compatible with Emacs 21. | |
6274 | ||
1f45f627 | 6275 | * xfaces.c (Vface_font_rescale_alist): Rename from |
aca7a3d2 MB |
6276 | Vface_resizing_fonts. |
6277 | (struct font_name): Rename member resizing_ratio to rescale_ratio. | |
1f45f627 | 6278 | (font_rescale_ratio): Rename from font_resizing_ratio. |
aca7a3d2 MB |
6279 | (split_font_name): Set font->rescale_ratio. |
6280 | (better_font_p): Pay attention to font->rescale_ratio. | |
6281 | (build_scalable_font_name): Likewise. Change RESX, and RESY | |
6282 | fields. | |
1f45f627 | 6283 | (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable. |
aca7a3d2 | 6284 | |
73acf815 | 6285 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6286 | |
6287 | * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) | |
6288 | (Qutf_16_le): Remove these variables. | |
6289 | (syms_of_coding): Don't DEFSYM them. | |
6290 | (decode_coding_utf_16): Fix handling of BOM. | |
6291 | (encode_coding_utf_16): Fix handling of BOM. | |
6292 | ||
73acf815 | 6293 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6294 | |
6295 | * fileio.c (Finsert_file_contents): On replacing, before decoding | |
1f45f627 | 6296 | the file into the work buffer, set point of the work buffer to the end. |
aca7a3d2 | 6297 | |
73acf815 | 6298 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6299 | |
6300 | * coding.c (Fcheck_coding_systems_region): Fix type errors. | |
6301 | ||
73acf815 | 6302 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6303 | |
6304 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
6305 | and fix C types. | |
6306 | ||
73acf815 | 6307 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6308 | |
6309 | * xdisp.c (SKIP_GLYPHS): New macro. | |
6310 | (set_cursor_from_row): Pay attention to string display properties. | |
6311 | ||
6312 | * category.c (copy_category_entry): Fix for the case that RANGE | |
6313 | is an integer. | |
6314 | ||
6315 | * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. | |
6316 | ||
1f45f627 | 6317 | * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil. |
aca7a3d2 | 6318 | |
73acf815 | 6319 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6320 | |
6321 | * charset.c (Fcharset_id_internal): New function. | |
6322 | (syms_of_charset): Defsubr it. | |
6323 | ||
6324 | * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver | |
6325 | with the last arg charset_list acquired from coding. | |
6326 | (Fdefine_coding_system_internal): For ccl-based coding system, fix | |
6327 | the attribute coding_attr_ccl_valids. | |
6328 | ||
6329 | * coding.h (enum define_coding_ccl_arg_index): Set the first | |
6330 | member coding_arg_ccl_decoder to coding_arg_max. | |
6331 | ||
1f45f627 | 6332 | * ccl.h (ccl_driver): Adjust prototype. |
aca7a3d2 MB |
6333 | |
6334 | * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. | |
6335 | (ccl_driver): New arg CHARSET_LIST. Use the above macros instead | |
6336 | of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. | |
4c4475a8 GM |
6337 | (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the |
6338 | last arg Qnil. | |
aca7a3d2 | 6339 | |
73acf815 | 6340 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6341 | |
6342 | * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, | |
6343 | call encode_char. | |
6344 | ||
1f45f627 | 6345 | * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET. |
aca7a3d2 | 6346 | |
73acf815 | 6347 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6348 | |
1f45f627 | 6349 | * composite.c (syms_of_composite): Make composition_hash_table weak. |
aca7a3d2 | 6350 | |
73acf815 | 6351 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6352 | |
6353 | * dispextern.h (check_face_attributes, generate_ascii_font_name) | |
6354 | (font_name_registry): Don't extern them. | |
1f45f627 | 6355 | (split_font_name_into_vector, build_font_name_from_vector): Extern them. |
aca7a3d2 MB |
6356 | |
6357 | * fontset.h (Qfontset): Don't extern it. | |
6358 | (new_fontset_from_font_name): Extern it. | |
6359 | ||
6360 | * fontset.c: Give 8 extra slots to fontset objects. | |
6361 | (Qfontset_info): New variable. | |
6362 | (syms_of_fontset): Defsym it. | |
6363 | (FONTSET_FALLBACK): New macro. | |
6364 | (fontset_face): Try also the default fontset. | |
1f45f627 GM |
6365 | (make_fontset): Realize a fallback fontset from the default fontset. |
6366 | (generate_ascii_font_name): Move from xfaces.c. Rewritten by | |
aca7a3d2 MB |
6367 | using split_font_name_into_vector and build_font_name_from_vector. |
6368 | (Fset_fontset_font): Access the elements of font_spec by enum | |
6369 | FONT_SPEC_INDEX. If font_spec is a string, extract the registry | |
6370 | name by using split_font_name_into_vector. | |
6371 | (Fnew_fontset): If no ASCII font is specified in FONTLIST, | |
6372 | generate a proper font name from the fontset name. Update | |
6373 | Vfontset_alias_alist. | |
6374 | (n_auto_fontsets): New variable. | |
6375 | (new_fontset_from_font_name): New function. | |
6376 | (Ffont_info): Store the information about fonts generated from the | |
1f45f627 | 6377 | default fontset in the first extra slot of the returned char-table. |
aca7a3d2 | 6378 | |
1f45f627 GM |
6379 | * xfaces.c (generate_ascii_font_name): Move to fontset.c. |
6380 | (font_name_registry): Delete function. | |
aca7a3d2 MB |
6381 | (split_font_name_into_vector): New function. |
6382 | (build_font_name_from_vector): New function. | |
1f45f627 | 6383 | (font_list): The argument REGISTRY is now a list of registry names. |
aca7a3d2 MB |
6384 | (choose_face_font): If we are choosing an ASCII font, and ATTRS |
6385 | specifies an explicit font name, return the name as is. Make a | |
6386 | list of registy names. | |
6387 | ||
1f45f627 | 6388 | * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change |
aca7a3d2 MB |
6389 | of x_new_fontset. |
6390 | (Fx_create_frame): Don't call x_new_fontset here. Just use | |
6391 | x_list_fonts to check the existence of fonts. | |
6392 | ||
1f45f627 | 6393 | * xterm.h (x_new_fontset): Adjust prototype. |
aca7a3d2 MB |
6394 | |
6395 | * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp | |
6396 | string. Use new_fontset_from_font_name to create a fontset from a | |
6397 | font name. | |
6398 | ||
1c8658b9 GM |
6399 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
6400 | ||
6401 | * syntax.c (Vfind_word_boundary_function_table): New name for | |
6402 | Vnext_word_boundary_function_table. | |
6403 | (find-word-boundary-function-table): New name for | |
6404 | next-word-boundary-function-table. | |
6405 | ||
73acf815 | 6406 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6407 | |
6408 | * Makefile.in: Fix some dependencies. | |
6409 | ||
6410 | * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but | |
6411 | set it to nil before returning. | |
6412 | ||
6413 | * composite.c (update_compositions): Fix type error. | |
6414 | ||
6415 | * syntax.c (skip_chars, skip_syntaxes): Fix type errors. | |
6416 | ||
73acf815 | 6417 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6418 | |
6419 | * xterm.c (x_new_font): Optimize for the case that the font is | |
6420 | already set for the frame. | |
6421 | ||
73acf815 | 6422 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6423 | |
6424 | * chartab.c (char_table_ascii): Check if the char table contents | |
6425 | is sub-char-table or not. | |
4c4475a8 GM |
6426 | (char_table_set, char_table_set_range): Fix argument to |
6427 | char_table_ascii. | |
aca7a3d2 MB |
6428 | |
6429 | * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. | |
6430 | (detect_coding_utf_8, detect_coding_utf_16) | |
6431 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
6432 | (detect_coding_sjis, detect_coding_big5) | |
6433 | (detect_coding_ccl, detect_coding_charset): Change argument MASK | |
6434 | to DETECT_INFO. Update DETECT_INFO and return 1 if the byte | |
1f45f627 | 6435 | sequence is valid in this coding system. Change callers. |
aca7a3d2 MB |
6436 | (MAX_ANNOTATION_LENGTH): New macro. |
6437 | (ADD_ANNOTATION_DATA): New macro. | |
1f45f627 GM |
6438 | (ADD_COMPOSITION_DATA): Change argument. Change callers. Call |
6439 | ADD_ANNOTATION_DATA. Change the format of annotation data. | |
aca7a3d2 | 6440 | (ADD_CHARSET_DATA): New macro. |
1f45f627 | 6441 | (emacs_mule_char): New argument ID. Change callers. |
aca7a3d2 MB |
6442 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
6443 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
6444 | Produce charset annotation data in coding->charbuf. | |
6445 | (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention | |
6446 | to charset annotation data in coding->charbuf. | |
6447 | (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK | |
6448 | coding->common_flags if the coding system is iso-2022 based and | |
6449 | uses designation. | |
1f45f627 | 6450 | (produce_composition): Adjust for the new annotation data format. |
aca7a3d2 MB |
6451 | (produce_charset): New function. |
6452 | (produce_annotation): Handle charset annotation. | |
6453 | (handle_composition_annotation, handle_charset_annotation): New | |
6454 | functions. | |
6455 | (consume_chars): Handle charset annotation. Utilize the above two | |
6456 | functions. | |
6457 | (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same | |
6458 | buffer, get the deleted text as a string and set | |
6459 | coding->src_object to that string. | |
6460 | (detect_coding, detect_coding_system): Use the new struct | |
6461 | coding_detection_info. | |
6462 | ||
6463 | * coding.h (struct coding_detection_info): New structure. | |
1f45f627 | 6464 | (struct coding_system): Adjust prototype of the member `detector'. |
aca7a3d2 MB |
6465 | (CODING_ANNOTATE_CHARSET_MASK): New macro. |
6466 | ||
73acf815 | 6467 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6468 | |
6469 | * insdel.c (insert_from_gap): Fix argument to offset_intervals. | |
6470 | ||
73acf815 | 6471 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6472 | |
1f45f627 | 6473 | * keymap.c (apropos_predicate, apropos_accumulate): Declare static. |
aca7a3d2 MB |
6474 | (Fapropos_internal): Don't gcpro apropos_accumulate. Set result |
6475 | to new local and nullify apropos_accumulate before returning. | |
6476 | (syms_of_keymap): Staticpro and initialize apropos_accumulate. | |
6477 | ||
73acf815 | 6478 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6479 | |
6480 | * charset.c (Fdefine_charset_internal): Setup charset.fast_map | |
6481 | correctly. | |
6482 | ||
73acf815 | 6483 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6484 | |
6485 | * fns.c (Flanginfo): Call synchronize_system_time_locale. | |
6486 | ||
73acf815 | 6487 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6488 | |
6489 | The following changes are to make character composition happen | |
6490 | automatically on displaying. | |
6491 | ||
2a2e8de7 | 6492 | * Makefile.in (lisp, shortlisp): Add composite.elc. |
aca7a3d2 | 6493 | |
1f45f627 GM |
6494 | * composite.h (Qauto_composed, Vauto_composition_function) |
6495 | (Qauto_composition_function): Extern them. | |
aca7a3d2 | 6496 | |
1f45f627 GM |
6497 | * composite.c (Vcomposition_function_table) |
6498 | (Qcomposition_function_table): Delete variables. | |
6499 | (Qauto_composed, Vauto_composition_function) | |
6500 | (Qauto_composition_function): New variables. | |
aca7a3d2 MB |
6501 | (run_composition_function): Don't call |
6502 | compose-chars-after-function. | |
6503 | (update_compositions): Clear `auto-composed' text property. | |
6504 | (compose_chars_in_text): Delete this function. | |
6505 | (syms_of_composite): Staticpro Qauto_composed and | |
6506 | Qauto_composition_function. Declare Vauto_composition_function as | |
6507 | a Lisp variable. | |
6508 | ||
6509 | * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. | |
6510 | ||
6511 | * xdisp.c (it_props): Add an entry for Qauto_composed. | |
6512 | (handle_auto_composed_prop): New function. | |
6513 | ||
6514 | * xselect.c (selection_data_to_lisp_data): Don't call | |
6515 | compose_chars_in_text. | |
6516 | ||
73acf815 | 6517 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6518 | |
6519 | * keyboard.c (read_char): Modify checking around use of | |
6520 | Vkeyboard_translate_table. | |
6521 | ||
6522 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
6523 | and fix C types. | |
6524 | ||
73acf815 | 6525 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6526 | |
4c4475a8 GM |
6527 | * coding.c (decode_coding_utf_8, decode_coding_emacs_mule) |
6528 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
6529 | (decode_coding_charset, produce_chars): When eol_type is Qdos, handle | |
aca7a3d2 | 6530 | the case that the last byte is '\r' correctly. |
1f45f627 GM |
6531 | (decode_coding): Flush out the unprocessed data correctly. |
6532 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode. | |
aca7a3d2 | 6533 | |
73acf815 | 6534 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6535 | |
6536 | * xterm.c (XTread_socket): Fix changes for defined keysyms. Add | |
6537 | XK_ISO... case. | |
6538 | (xaw_scroll_callback): Revert last change. | |
6539 | ||
73acf815 | 6540 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6541 | |
1f45f627 | 6542 | * charset.c (Fset_charset_priority): Update Viso_2022_charset_list. |
aca7a3d2 | 6543 | |
73acf815 | 6544 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6545 | |
6546 | * xfaces.c (Vface_resizing_fonts): New variable. | |
6547 | (struct font_name): New member `resizing_ratio'. | |
6548 | (font_resizing_ratio): New function. | |
6549 | (split_font_name): Set font->resizing_ratio. | |
6550 | (better_font_p): Pay attention to font->resizing_ratio. | |
6551 | (build_scalable_font_name): Likewise. Don't change POINT_SIZE, | |
6552 | RESX, and RESY fields. | |
6553 | (try_alternative_families): Try scalable fonts if | |
6554 | Vscalable_fonts_allowed is not Qt. | |
6555 | (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. | |
6556 | ||
73acf815 | 6557 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6558 | |
6559 | * xterm.c (xaw_scroll_callback): Cast correctly. | |
6560 | ||
73acf815 | 6561 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6562 | |
6563 | * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. | |
6564 | (lispy_kana_keys): Comment out. | |
6565 | (make_lispy_event) [XK_kana_A]: Comment out. | |
6566 | ||
6567 | * xterm.c (xaw_scroll_callback): Cast call_data. | |
6568 | (XTread_socket): Deal with ASCII keysyms. | |
6569 | (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. | |
6570 | ||
73acf815 | 6571 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6572 | |
6573 | * xterm.c (Vx_keysym_table): New. | |
6574 | (syms_of_xterm): Initialize it. | |
6575 | (XTread_socket): Use it. | |
6576 | From head: Eliminate incorrect optimization that tried to avoid | |
6577 | decoding the output of X*LookupString. | |
6578 | (x_get_font_repertory): Delete charset declaration. | |
6579 | ||
73acf815 | 6580 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6581 | |
1f45f627 GM |
6582 | * coding.c (detect_coding_charset): If only ASCII bytes are found, |
6583 | return 0. | |
aca7a3d2 MB |
6584 | (Fdefine_coding_system_internal): Setup |
6585 | CODING_ATTR_ASCII_COMPAT (attrs) correctly. | |
6586 | ||
73acf815 | 6587 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6588 | |
6589 | * coding.c (Fcheck_coding_system): Doc fix. | |
6590 | ||
6591 | * editfns.c (Finsert_byte): Return a proper value. | |
6592 | ||
73acf815 | 6593 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6594 | |
6595 | * coding.c (decode_coding): Fix args to translate_chars. Pay | |
6596 | attention to Vstandard_translation_table_for_decode. | |
6597 | (encode_coding): Fix args to translate_chars. Pay attention to | |
6598 | Vstandard_translation_table_for_encode. | |
6599 | ||
6600 | * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by | |
6601 | SINGLE_BYTE_CHAR_P. | |
6602 | ||
6603 | * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, | |
6604 | not by SINGLE_BYTE_CHAR_P. | |
6605 | ||
6606 | * fns.c (concat): Check CH by ASCII_CHAR_P, not by | |
6607 | SINGLE_BYTE_CHAR_P. | |
6608 | ||
6609 | * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by | |
6610 | SINGLE_BYTE_CHAR_P. | |
6611 | ||
6612 | * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not | |
6613 | by SINGLE_BYTE_CHAR_P. | |
6614 | ||
6615 | * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by | |
6616 | SINGLE_BYTE_CHAR_P. | |
6617 | ||
73acf815 | 6618 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6619 | |
6620 | * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. | |
6621 | ||
73acf815 | 6622 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6623 | |
6624 | * fns.c (Flanginfo): Fix typo. | |
6625 | ||
6626 | * unexelf.c (unexec): Make last change conditional on Irix 6.5. | |
6627 | ||
73acf815 | 6628 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6629 | |
4c4475a8 GM |
6630 | * coding.c (detect_coding_utf_8, detect_coding_utf_16) |
6631 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
6632 | (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check | |
6633 | incomplete byte sequence. Don't update *mask when correctly detected. | |
aca7a3d2 | 6634 | (decode_coding_sjis): Fix decoding of katakana-jisx0201. |
1f45f627 | 6635 | (detect_eol): Delete the argument CODING, and add the argument CATEGORY. |
4c4475a8 | 6636 | (detect_coding, detect_coding_system): Adjust for the changes above. |
aca7a3d2 | 6637 | |
73acf815 | 6638 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6639 | |
1f45f627 GM |
6640 | * character.c (char_string): Rename from |
6641 | char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK. | |
6642 | (string_char): Rename from string_char. | |
aca7a3d2 | 6643 | |
4c4475a8 GM |
6644 | * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string |
6645 | if C is greater than MAX_3_BYTE_CHAR. | |
6646 | (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call | |
6647 | string_char instead of string_char_with_unification. | |
aca7a3d2 | 6648 | |
73acf815 | 6649 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6650 | |
6651 | * coding.c (decode_coding_utf_8): Treat surrogates as invalid. | |
6652 | ||
73acf815 | 6653 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6654 | |
1f45f627 | 6655 | * keymap.c (push_key_description): Pay attention to force_multibyte. |
aca7a3d2 MB |
6656 | |
6657 | * regex.c (re_search_2): Fix for the case of unibyte buffer. | |
6658 | ||
73acf815 | 6659 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6660 | |
6661 | * charset.c (define_charset_internal): Rename `supprementary'. | |
6662 | ||
6663 | * Makefile.in (lisp, shortlisp): Remove latin-N. | |
6664 | ||
73acf815 | 6665 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6666 | |
6667 | * xfns.c (x_window, x_window): Use use_xim. | |
6668 | ||
6669 | * xterm.c (use_xim): Initialize. | |
6670 | (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. | |
6671 | (x_term_init): Maybe set use_xim. | |
6672 | ||
6673 | * xterm.h (use_xim) [HAVE_X_I18N]: Declare. | |
6674 | ||
73acf815 | 6675 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6676 | |
6677 | * search.c (search_buffer): Fix case-fold-search of multibyte | |
6678 | characters. | |
6679 | (boyer_moore): Rename the last argument to char_high_bits. | |
6680 | ||
73acf815 | 6681 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6682 | |
6683 | * xdisp.c (display_string): Fix for the case of zero width glyph. | |
6684 | ||
6685 | * xfns.c (x_set_font): Change the error message of the case that | |
6686 | x_new_fontset returns Qt. | |
6687 | ||
6688 | * xfaces.c (set_lface_from_font_name): Reject the default fontset. | |
6689 | (Finternal_set_lisp_face_attribute): Use signal_error for the | |
6690 | error of invalid fontset. | |
6691 | ||
6692 | * xterm.c (x_new_fontset): If FONTSETNAME specifies the default | |
6693 | fontset, return Qt. | |
6694 | ||
73acf815 | 6695 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6696 | |
aca7a3d2 MB |
6697 | * unexelf.c (unexec): Make .got handling not SGI-specific. |
6698 | ||
6699 | * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. | |
6700 | ||
6701 | * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. | |
6702 | ||
6703 | * keyboard.c (read_key_sequence): Fix type error. | |
6704 | ||
6705 | * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix | |
6706 | type error. | |
6707 | ||
6708 | * fontset.c (fontset_add): Return Lisp_Object. | |
6709 | ||
73acf815 | 6710 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6711 | |
6712 | * charset.h (charset_ordered_list_tick): Declare extern. | |
6713 | ||
73acf815 | 6714 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6715 | |
73acf815 | 6716 | The following changes (and some of 2008-02-01 changes of mine) are |
aca7a3d2 MB |
6717 | for handling syntax, category, and case conversion for unibyte |
6718 | characters by converting them to multibyte on the fly. With these | |
6719 | changes, we don't have to setup syntax and case tables for unibyte | |
6720 | characters in each language environment. | |
6721 | ||
6722 | * abbrev.c (Fexpand_abbrev): Convert a unibyte character to | |
6723 | multibyte if necessary. | |
6724 | ||
6725 | * bytecode.c (Fbyte_code): Likewise. | |
6726 | ||
6727 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
6728 | (LEADING_CODE_LATIN_1_MAX): New macros. | |
6729 | (unibyte_to_multibyte_table): Extern it. | |
6730 | (unibyte_char_to_multibyte): New macro. | |
6731 | (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. | |
6732 | (CHAR_LEADING_CODE): New macro. | |
6733 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. | |
6734 | ||
6735 | * character.c (unibyte_to_multibyte_table): New variable. | |
1f45f627 | 6736 | (unibyte_char_to_multibyte): Move to character.h and define as macro. |
aca7a3d2 MB |
6737 | (multibyte_char_to_unibyte): If C is an eight-bit character, |
6738 | convert it to the corresponding byte value. | |
6739 | ||
6740 | * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is | |
6741 | not 1, singals an error. Update the elements of | |
6742 | unibyte_to_multibyte_table. | |
6743 | (init_charset_once): Initialize unibyte_to_multibyte_table. | |
6744 | (syms_of_charset): Define the charset `iso-8859-1'. | |
6745 | ||
aca7a3d2 MB |
6746 | * cmds.c (internal_self_insert): In a multibyte buffer, insert C |
6747 | as is without converting it to unibyte. In a unibyte buffer, | |
6748 | convert C to multibyte before checking the syntax. | |
6749 | ||
1f45f627 | 6750 | * lisp.h (unibyte_char_to_multibyte): Delete extern. |
aca7a3d2 MB |
6751 | |
6752 | * minibuf.c (Fminibuffer_complete_word): Use the macro | |
6753 | FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. | |
6754 | ||
6755 | * regex.h (struct re_pattern_buffer): New member target_multibyte. | |
6756 | ||
6757 | * regex.c (RE_TARGET_MULTIBYTE_P): New macro. | |
6758 | (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If | |
6759 | that is zero, convert an eight-bit char to multibyte. | |
6760 | (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for | |
6761 | non-emacs case. | |
6762 | (PATFETCH): Convert an eight-bit char to multibyte. | |
6763 | (HANDLE_UNIBYTE_RANGE): New macro. | |
6764 | (regex_compile): Setup the compiled pattern for multibyte chars | |
6765 | even if the given regex string is unibyte. Use PATFETCH_RAW | |
6766 | instead of PATFETCH in many places. To handle `charset' | |
c5ad7a3d | 6767 | specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap |
aca7a3d2 | 6768 | only for ASCII chars. |
1f45f627 | 6769 | (analyse_first) <exactn>: Simplify because the compiled pattern |
aca7a3d2 MB |
6770 | is multibyte. |
6771 | <charset_not>: Setup fastmap from bitmap only for ASCII chars. | |
6772 | <charset>: Use CHAR_LEADING_CODE to get leading codes. | |
1f45f627 | 6773 | <categoryspec>: If multibyte, setup fastmap only for ASCII chars here. |
aca7a3d2 MB |
6774 | (re_compile_fastmap) [emacs]: Call analyse_first with the arg |
6775 | multibyte always 1. | |
6776 | (re_search_2): In emacs, set the locale variable multibyte to 1, | |
6777 | otherwise to 0. New local variable target_multibyte. Check it | |
6778 | to decide the multibyteness of STR1 and STR2. If | |
6779 | target_multibyte is zero, convert unibyte chars to multibyte | |
6780 | before translating and checking fastmap. | |
6781 | (TARGET_CHAR_AND_LENGTH): New macro. | |
6782 | (re_match_2_internal): In emacs, set the locale variable multibyte | |
6783 | to 1, otherwise to 0. New local variable target_multibyte. Check | |
6784 | it to decide the multibyteness of STR1 and STR2. Use | |
6785 | TARGET_CHAR_AND_LENGTH to fetch a character from D. | |
6786 | <charset, charset_not>: If multibyte is nonzero, check fastmap | |
c5ad7a3d | 6787 | only for ASCII chars. Call bcmp_translate with |
aca7a3d2 MB |
6788 | target_multibyte, not with multibyte. |
6789 | <begline>: Declare the local variable C as `unsigned'. | |
6790 | (bcmp_translate): Change the last arg name to target_multibyte. | |
6791 | ||
6792 | * search.c (compile_pattern_1): Don't adjust the multibyteness of | |
6793 | the regexp pattern and the matching target. Set cp->buf.multibyte | |
6794 | to the multibyteness of the regexp pattern. Set | |
1f45f627 | 6795 | cp->but.target_multibyte to the multibyteness of the matching target. |
aca7a3d2 MB |
6796 | (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of |
6797 | FETCH_STRING_CHAR_ADVANCE. | |
6798 | (Freplace_match): Convert unibyte chars to multibyte. | |
6799 | ||
4c4475a8 GM |
6800 | * syntax.c (char_quoted, back_comment, scan_words) |
6801 | (Fforward_comment, scan_lists, Fbackward_prefix_chars) | |
6802 | (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert | |
aca7a3d2 | 6803 | unibyte chars to multibyte. |
1f45f627 GM |
6804 | (skip_chars): Delete the arg syntaxp, and move the code for |
6805 | handling syntaxes to skip_syntaxes. Change callers. | |
aca7a3d2 MB |
6806 | Fix the case that the multibyteness of STRING and the current |
6807 | buffer doesn't match. | |
6808 | (skip_syntaxes): New function. | |
6809 | (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by | |
6810 | SINGLE_BYTE_CHAR_P. | |
aca7a3d2 | 6811 | |
73acf815 | 6812 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6813 | |
6814 | * xfaces.c (QCfontset): New variable. | |
6815 | (LFACE_FONTSET): New macro. | |
6816 | (check_lface_attrs): Check also LFACE_FONTSET_INDEX. | |
6817 | (set_lface_from_font_name): Setup LFACE_FONTSET (lface). | |
4c4475a8 GM |
6818 | (Finternal_set_lisp_face_attribute) |
6819 | (Finternal_get_lisp_face_attribute): Handle QCfontset. | |
aca7a3d2 MB |
6820 | (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, |
6821 | check also LFACE_FONTSET_INDEX. | |
6822 | (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not | |
6823 | attrs[LFACE_FONT_INDEX]. | |
6824 | (syms_of_xfaces): Intern and staticpro QCfontset. | |
6825 | ||
6826 | * dispextern.h (enum lface_attribute_index): New member | |
6827 | LFACE_FONTSET_INDEX. | |
6828 | ||
6829 | * fns.c (base64_encode_1): Handle eight-bit chars correctly. | |
6830 | ||
73acf815 | 6831 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6832 | |
6833 | * coding.c (coding_set_destination): Fix coding->destination for | |
6834 | the case converting a region. | |
6835 | (encode_coding_utf_8): Encode eight-bit chars as single byte. | |
6836 | (encode_coding_object): Fix coding->dst_pos and | |
6837 | coding->dst_pos_byte for the case converting a region. | |
6838 | ||
6839 | * insdel.c (insert_from_gap): Make it work even if PT != GTP. | |
6840 | ||
6841 | * character.h (BYTE8_STRING): New macro. | |
6842 | ||
6843 | * fns.c (base64_decode_1): Insert eight-bit chars correctly. | |
6844 | ||
73acf815 | 6845 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6846 | |
6847 | * xdisp.c (get_next_display_element): Don't display unibyte 8-bit | |
6848 | characters by octal form. | |
6849 | ||
6850 | * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. | |
6851 | ||
1f45f627 | 6852 | * buffer.h (_fetch_multibyte_char_len): Delete extern. |
4c4475a8 GM |
6853 | (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use |
6854 | _fetch_multibyte_char_len. | |
aca7a3d2 MB |
6855 | (FETCH_CHAR_AS_MULTIBYTE): New macro. |
6856 | ||
1f45f627 | 6857 | * casetab.c (set_canon, set_identity, shuffle): Simplify. |
aca7a3d2 | 6858 | |
1f45f627 | 6859 | * casefiddle.c (casify_object): Simplify. Handle the case that |
aca7a3d2 | 6860 | the case conversion change the byte length. |
1f45f627 | 6861 | (casify_region): Likewise. |
aca7a3d2 | 6862 | |
1f45f627 | 6863 | * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros. |
aca7a3d2 | 6864 | |
1f45f627 | 6865 | * character.c (_fetch_multibyte_char_len): Delet this variable. |
aca7a3d2 MB |
6866 | (syms_of_character): Setup Vprintable_chars. |
6867 | ||
6868 | * editfns.c (Fchar_equal): Fix for the unibyte case. | |
6869 | (Finsert_byte): New function. | |
6870 | (syms_of_editfns): Defsubr it. | |
6871 | ||
6872 | * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead | |
6873 | of direct code 0x3ffff. | |
6874 | ||
6875 | * search.c (Freplace_match): Fix for the unibyte case. | |
6876 | ||
73acf815 | 6877 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6878 | |
6879 | * lread.c (safe_to_load_p): Fix the logic. | |
6880 | ||
6881 | * syntax.c (scan_words): Don't treat characters belonging to | |
6882 | different scripts as constituting a word. | |
6883 | ||
6884 | * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
6885 | ||
1f45f627 | 6886 | * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script. |
aca7a3d2 MB |
6887 | |
6888 | * emacs.c (main): In the case of --unibyte, instead of aborting on | |
6889 | finding non-empty buffer, make it unibyte. | |
6890 | ||
73acf815 | 6891 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6892 | |
6893 | * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' | |
6894 | to create a fontset. | |
6895 | ||
73acf815 | 6896 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
6897 | |
6898 | * character.c (Funibyte_char_to_multibyte): Doc fix. | |
6899 | ||
6900 | * xfns.c [HAVE_STDLIB_H]: Fix last change. | |
6901 | ||
73acf815 | 6902 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6903 | |
6904 | * fontset.c (fontset_add): Make the type `int'. | |
6905 | (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. | |
6906 | ||
4c4475a8 GM |
6907 | * character.c (unibyte_char_to_multibyte) |
6908 | (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to | |
aca7a3d2 | 6909 | charset_unibyte, not charset_primary. |
aca7a3d2 | 6910 | |
1f45f627 | 6911 | * charset.h (charset_unibyte): Extern it instead of charset_primary. |
aca7a3d2 | 6912 | |
1f45f627 GM |
6913 | * charset.c (charset_unibyte): Rename from charset_primary. |
6914 | (Funibyte_charset): Rename from Fprimary_charset. | |
6915 | (Fset_unibyte_charset): Rename from Fset_primary_charset. | |
6916 | (syms_of_charset): Adjust for the above changes. | |
aca7a3d2 MB |
6917 | |
6918 | * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
6919 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
6920 | it->multibyte_p is zero. | |
6921 | ||
6922 | * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): | |
1f45f627 | 6923 | Delete extern. |
aca7a3d2 | 6924 | |
73acf815 | 6925 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6926 | |
6927 | * coding.c (Fdefine_coding_system_internal): Fix category setting | |
6928 | for a coding system of type iso-2022. | |
6929 | ||
73acf815 | 6930 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6931 | |
1f45f627 | 6932 | * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1. |
aca7a3d2 | 6933 | |
73acf815 | 6934 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6935 | |
6936 | * syntax.c (Vnext_word_boundary_function_table): New variable. | |
1c8658b9 GM |
6937 | (next-word-boundary-function-table): Declare it as a Lisp variable |
6938 | in syms_of_syntax. | |
aca7a3d2 MB |
6939 | (scan_words): Call functions in Vnext_word_boundary_function_table |
6940 | if any. | |
6941 | ||
6942 | * xterm.c (x_load_font): Initialize fontp->fontset to -1. | |
6943 | ||
6944 | * fontset.c (fs_load_font): If fontp->charset is not negative, | |
6945 | return fontp without setting its members. | |
6946 | ||
73acf815 | 6947 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 6948 | |
aca7a3d2 MB |
6949 | * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). |
6950 | ||
6951 | * m/sparc.h (HAVE_ALLOCA): Delete. | |
6952 | ||
6953 | * s/irix6-5.h: Don't include strings.h. | |
6954 | (bcopy, bzero, bcmp): Don't undef. | |
6955 | ||
6956 | * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. | |
6957 | ||
6958 | * s/usg5-4.h (NO_SIOCTL_H): Don't define. | |
6959 | (TIOCSIGSEND): Don't test IRIX6. | |
6960 | (bcopy, bzero, bcmp): Define conditionally. | |
6961 | ||
73acf815 | 6962 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6963 | |
6964 | * buffer.c (Qas, Qmake, Qto): New variables. | |
1f45f627 | 6965 | (Fset_buffer_multibyte): New optional arg METHOD. Change caller. |
aca7a3d2 MB |
6966 | (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. |
6967 | ||
6968 | * callproc.c (Fcall_process): Don't call insert_1_both directly if | |
6969 | we are inserting a process output into a multibyte buffer. | |
6970 | ||
6971 | * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call | |
6972 | multibyte_char_to_unibyte. | |
6973 | ||
6974 | * character.c (Funibyte_char_to_multibyte): If C can't be decoded | |
6975 | by the primary charset, make it eight-bit char. | |
6976 | (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. | |
6977 | ||
1f45f627 GM |
6978 | * charset.c (charset_eight_bit, Qeight_bit_control): New variables. |
6979 | (charset_8_bit__control, charset_8_bit_graphic) | |
6980 | (Qeight_bit_control, Qeight_bit_graphic): Delete these variables. | |
aca7a3d2 MB |
6981 | (define_charset_internal): New function. |
6982 | (syms_of_charset): Call define_charset_internal for pre-defined | |
6983 | charsets. | |
6984 | ||
6985 | * charset.h (charset_8_bit): Extern it. | |
6986 | ||
1f45f627 | 6987 | * coding.c (make_conversion_work_buffer): Adjust for the change |
aca7a3d2 MB |
6988 | of Fset_buffer_multibyte. |
6989 | (encode_coding_raw_text): Increment p0 in the loop. | |
6990 | ||
1f45f627 | 6991 | * lisp.h (Fset_buffer_multibyte): Adjust prototype. |
aca7a3d2 | 6992 | |
1f45f627 | 6993 | * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust |
aca7a3d2 MB |
6994 | for the change of Fset_buffer_multibyte. |
6995 | ||
6996 | * fns.c (Fstring_to_multibyte): New function. | |
6997 | (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. | |
6998 | ||
73acf815 | 6999 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7000 | |
7001 | * xfns.c (x_put_x_image): Declare args. | |
7002 | ||
1f45f627 | 7003 | * xfaces.c (font_name_registry, choose_face_font): Delete unused vars. |
aca7a3d2 MB |
7004 | (try_font_list): Declare an arg. |
7005 | ||
7006 | * xdisp.c (message2_nolog, set_message): Declare an arg. | |
7007 | ||
7008 | * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. | |
7009 | ||
7010 | * syntax.c (scan_sexps_forward): Declare an arg. | |
7011 | ||
7012 | * scroll.c (calculate_scrolling, calculate_direct_scrolling): | |
7013 | Declare an arg. | |
7014 | ||
7015 | * lisp.h (Fnew_fontset): Declare. | |
7016 | ||
7017 | * keymap.c (push_key_description): Call CHARACTERP correctly. | |
7018 | ||
1f45f627 | 7019 | * fontset.c (fontset_add): Declare args. Call make_number correctly. |
aca7a3d2 MB |
7020 | (face_for_char): Delete unused vars. |
7021 | (Fset_fontset_font): Doc fix. Delete unused vars. | |
7022 | ||
7023 | * doc.c (Fsubstitute_command_keys): Delete unused vars. | |
7024 | ||
7025 | * composite.c (update_compositions): Declare arg. | |
7026 | ||
7027 | * cm.c (calccost, cmgoto): Declare args. | |
7028 | ||
7029 | * charset.c: Remove `emacs' conditional. Doc fixes. | |
7030 | (map_char_table_for_charset): Declare. | |
7031 | ||
1f45f627 | 7032 | * character.c (syms_of_character) <translation-table-vector>: Doc fix. |
aca7a3d2 | 7033 | |
1f45f627 | 7034 | * ccl.c: Remove `emacs' conditional. |
aca7a3d2 | 7035 | |
73acf815 | 7036 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7037 | |
7038 | The following changes are to allow specifying multiple font | |
7039 | patterns for a character range (specified by script or charset). | |
7040 | ||
7041 | * Makefile.in (abbrev.o): Depend on syntax.h. | |
7042 | (xfaces.o): Depend on charset.h. | |
7043 | ||
7044 | * alloc.c (Fmake_string): Use ASCII_CHAR_P, not | |
7045 | SINGLE_BYTE_CHAR_P. | |
7046 | ||
7047 | * ccl.c (Fccl_execute_on_string): Add `const' to local variables. | |
7048 | ||
7049 | * character.h (Vchar_script_table): Extern it. | |
7050 | ||
1f45f627 | 7051 | * character.c (Vscript_alist): Delete. |
aca7a3d2 MB |
7052 | (Vchar_script_table, Qchar_script_table): New variable. |
7053 | (syms_of_character): Declare Vchar_script_table as a lisp variable | |
7054 | and initialize it. | |
7055 | ||
1f45f627 | 7056 | * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't |
aca7a3d2 MB |
7057 | have property char-table-extra-slots, make no extra slot. |
7058 | ||
1f45f627 | 7059 | * dispextern.h (struct face): Delete member `charset'. |
4c4475a8 GM |
7060 | (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not |
7061 | SINGLE_BYTE_CHAR_P. | |
1f45f627 GM |
7062 | (choose_face_font, lookup_non_ascii_face, font_name_registry): |
7063 | Add prototypes. | |
7064 | (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype. | |
7065 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
7066 | |
7067 | * fontset.h (get_font_repertory_func): New prototype. | |
1f45f627 | 7068 | (make_fontset_for_ascii_face, fs_load_font): Fix prototypes. |
aca7a3d2 MB |
7069 | (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. |
7070 | ||
7071 | * fontset.c (Qprepend, Qappend): New variables. | |
1f45f627 | 7072 | (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete. |
aca7a3d2 MB |
7073 | (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. |
7074 | (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. | |
7075 | (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. | |
7076 | (fontset_ref_and_range, fontset_add, reorder_font_vector) | |
7077 | (load_font_get_repertory): New functions. | |
1f45f627 | 7078 | (fontset_set): Delete. |
aca7a3d2 | 7079 | (fontset_face): New arg FACE. Return face ID, not face. |
1f45f627 | 7080 | Complete re-write to handle new fontset structure. Change caller. |
aca7a3d2 MB |
7081 | (free_face_fontset): Use ASET istead of AREF (X) = Y. |
7082 | (face_for_char): Don't call lookup_face. | |
7083 | (make_fontset_for_ascii_face): New arg FACE. | |
7084 | (fs_load_font): New arg CHARSET_ID. Don't check | |
7085 | Vfont_encoding_alist here. | |
7086 | (find_font_encoding): New function. | |
7087 | (list_fontsets): Use STRINGP, not ! NILP. | |
7088 | (accumulate_script_ranges): New function. | |
7089 | (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely | |
7090 | re-written to handle new fontset structure. | |
7091 | (Ffontset_font): Return a copy of element. | |
7092 | (syms_of_fontset): Define symbols Qprepend and Qappend. Fix | |
7093 | docstring of font-encoding-alist. | |
7094 | ||
7095 | * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). | |
7096 | (Fset_fotset_font): Fix arguments to 5. | |
7097 | ||
1f45f627 | 7098 | * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face. |
aca7a3d2 MB |
7099 | |
7100 | * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): | |
7101 | Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
1f45f627 | 7102 | (highlight_trailing_whitespace): Adjust for the change of |
aca7a3d2 MB |
7103 | lookup_named_face. |
7104 | ||
7105 | * xfaces.c: Include charset.h. | |
1f45f627 GM |
7106 | (load_face_font): Delete argument C. Change caller. |
7107 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
7108 | (font_name_registry): New function. |
7109 | (cache_face): Store ascii faces before non-ascii faces in buckets. | |
1f45f627 | 7110 | (lookup_face): Delete arguments C and BASE_FACE. Change caller. |
aca7a3d2 MB |
7111 | Lookup only ascii faces. |
7112 | (lookup_non_ascii_face): New function. | |
1f45f627 GM |
7113 | (lookup_named_face): Delete argument C. Change caller. |
7114 | (lookup_derived_face): Delete argument C. Change caller. | |
7115 | (try_font_list): New arg PATTERN. Change caller. If PATTERN is | |
aca7a3d2 | 7116 | a string, just call font_list with it. |
1f45f627 GM |
7117 | (choose_face_font): Delete arguments FACE and C. New arg |
7118 | FONT_SPEC. Change caller. | |
4c4475a8 GM |
7119 | (realize_face, realize_x_face): Delete arguments C and BASE_FACE. |
7120 | Change caller. | |
aca7a3d2 MB |
7121 | (realize_non_ascii_face): New function. |
7122 | (realize_x_face): Call load_face_font here. | |
1f45f627 | 7123 | (realize_tty_face): Delete argument C. Change caller. |
aca7a3d2 MB |
7124 | (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to |
7125 | get a face ID. | |
7126 | (dump_realized_face): Don't print charset of FACE. | |
7127 | ||
7128 | * xfns.c (x_set_font): Always call x_new_fontset and | |
7129 | store_frame_parameter. | |
7130 | (Fx_create_frame): Call x_new_fontset, not x_new_font. | |
1f45f627 | 7131 | (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory. |
aca7a3d2 MB |
7132 | |
7133 | * xterm.h (x_get_font_repertory): Extern it. | |
7134 | ||
7135 | * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
7136 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
7137 | it->multibyte_p is zero. | |
7138 | (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
7139 | (x_new_fontset): If FONTSETNAME doesn't match any existing | |
7140 | fontsets, create a new one. | |
7141 | (x_get_font_repertory): New function. | |
7142 | ||
73acf815 | 7143 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7144 | |
7145 | * coding.c (Ffind_coding_systems_region_internal): Detect an | |
7146 | ASCII only string correctly. | |
7147 | ||
7148 | * lread.c (Fload): Don't load with Qload_force_doc_strings t if | |
7149 | version is 0. | |
7150 | ||
73acf815 | 7151 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7152 | |
7153 | * lread.c: Include "coding.h". | |
1f45f627 GM |
7154 | (Qget_emacs_mule_file_char, Qload_force_doc_strings) |
7155 | (load_each_byte, unread_char): New variables. | |
7156 | (readchar_backlog): Delete. | |
aca7a3d2 MB |
7157 | (readchar): Return a character unless load_each_byte is nonzero. |
7158 | Handle the case that readcharfun is Qget_emacs_mule_file_char or a | |
7159 | cons. If unread_char is not -1, simply return it. | |
7160 | (unreadchar): Handle the case that readcharfun is | |
1f45f627 GM |
7161 | Qget_emacs_mule_file_char or a cons. Set unread_char if necessary. |
7162 | (read_multibyte): Delete. | |
aca7a3d2 MB |
7163 | (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) |
7164 | (read_emacs_mule_char): New functions. | |
7165 | (Fload): Even if the file doesn't have the extention ".elc", if | |
7166 | safe_to_load_p returns a positive version number, assume that the | |
7167 | file contains bytecompiled code. If the version is less than 22, | |
7168 | load the file while decoding multibyte sequences by emacs-mule. | |
7169 | (readevalloop): Don't use readchar_backlog. | |
1f45f627 GM |
7170 | (Fread): Likewise. Pay attention to the case that STREAM is a cons. |
7171 | (Fread_from_string): Pay attention to the case that STREAM is a cons. | |
7172 | (read_escape): Delete the arg BYTEREP. | |
aca7a3d2 MB |
7173 | (read1): Set load_each_byte to 1 temporarily while handling |
7174 | #@NUMBER. Don't call read_multibyte. | |
7175 | (read_vector): Call Fread with a cons. If readcharfun is | |
7176 | Qget_emacs_mule_file_char, decode the read string by emacs-mule. | |
1f45f627 | 7177 | (read_list): If doc_reference is 2, make the cdr part string as unibyte. |
aca7a3d2 MB |
7178 | (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char |
7179 | and Qload_force_doc_strings. | |
7180 | ||
73acf815 | 7181 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7182 | |
7183 | * xdisp.c (face_before_or_after_it_pos): Call | |
7184 | FETCH_MULTIBYTE_CHAR with byte postion, not char position. | |
7185 | ||
73acf815 | 7186 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7187 | |
7188 | * character.h (TRAILING_CODE_P): New macro. | |
1f45f627 | 7189 | (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
7190 | (string_char_with_unification): Fix prototype. |
7191 | (Vscript_alist): Extern it. | |
7192 | ||
7193 | * character.c (Vscript_alist): New variable. | |
4c4475a8 GM |
7194 | (string_char_with_unification, str_as_unibyte) |
7195 | (string_escape_byte8): Add `const' to local variables. | |
aca7a3d2 MB |
7196 | (syms_of_character): Declare script-alist as a Lisp variable. |
7197 | ||
7198 | * charset.h (Vcharset_ordered_list): Extern it. | |
7199 | (charset_ordered_list_tick): Extern it. | |
7200 | (EMACS_MULE_LEADING_CODE_PRIVATE_11) | |
7201 | (EMACS_MULE_LEADING_CODE_PRIVATE_12) | |
7202 | (EMACS_MULE_LEADING_CODE_PRIVATE_21) | |
7203 | (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros | |
1f45f627 | 7204 | (Funify_charset): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
7205 | |
7206 | * charset.c (charset_ordered_list_tick): New variable. | |
7207 | (Fdefine_charset_internal): Increment charset_ordered_list_tick. | |
7208 | (Funify_charset): New optional arg DEUNIFY. If it is non-nil, | |
7209 | deunify intead of unify a charset. | |
7210 | (string_xstring_p): Add `const' to local variables. | |
1f45f627 GM |
7211 | (find_charsets_in_text): Add `const' to arguemnts and local variables. |
7212 | (encode_char): Adjust for the change of Funify_charset. Fix | |
aca7a3d2 MB |
7213 | detecting of invalid code. |
7214 | (Fset_charset_priority): Increment charset_ordered_list_tick. | |
7215 | (Fmap_charset_chars): Fix handling of default value for FROM_CODE | |
7216 | and TO_CODE. | |
7217 | ||
7218 | * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) | |
1f45f627 GM |
7219 | (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros. |
7220 | Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. | |
4c4475a8 GM |
7221 | (decode_coding_ccl, consume_chars) |
7222 | (Ffind_coding_systems_region_internal) | |
7223 | (Fcheck_coding_systems_region): Add `const' to local variables. | |
aca7a3d2 MB |
7224 | |
7225 | * print.c (print_object): Use octal form for printing the | |
7226 | contents of a bool vector. | |
7227 | ||
73acf815 | 7228 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7229 | |
7230 | * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. | |
7231 | <version == 20>: Refuse to load. | |
7232 | ||
73acf815 | 7233 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7234 | |
7235 | * fns.c: Move coding.h. | |
7236 | (Qcodeset, Qdays, Qmonths): New. | |
7237 | (concat): Use CHARACTERP instead of INTERGERP. | |
1f45f627 | 7238 | (Flocale_codeset): Delete. |
aca7a3d2 | 7239 | (Flanginfo): New function. |
1f45f627 | 7240 | (syms_of_fns): Change accordingly. |
aca7a3d2 MB |
7241 | |
7242 | * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. | |
7243 | ||
73acf815 | 7244 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7245 | |
7246 | * casetab.c (init_casetab_once, init_casetab_once): Fix | |
7247 | CHAR_TABLE_SET call. | |
7248 | ||
7249 | * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. | |
7250 | ||
7251 | * character.c (syms_of_character): Fix CHAR_TABLE_SET call. | |
7252 | ||
7253 | * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. | |
7254 | (load_charset_map, Fdeclare_equiv_charset, Fencode_char) | |
7255 | (Fset_charset_priority, syms_of_charset): Convert Lisp types. | |
7256 | ||
7257 | * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. | |
7258 | ||
7259 | * coding.c (ENCODE_DESIGNATION, decode_eol) | |
7260 | (make_conversion_work_buffer, code_conversion_restore) | |
7261 | (Fdefine_coding_system_internal): Convert Lisp types. | |
7262 | (code_conversion_restore): Use EQ, not ==. | |
7263 | (Fencode_coding_string): Fix code_convert_string call. | |
7264 | ||
7265 | * coding.h (code_convert_region): Fix prototype. | |
7266 | ||
1f45f627 | 7267 | * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove. |
aca7a3d2 MB |
7268 | |
7269 | * fontset.c (fontset_ref, fontset_set, fs_load_font) | |
7270 | (Ffontset_info): Convert Lisp types. | |
7271 | ||
7272 | * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. | |
7273 | ||
7274 | * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. | |
7275 | ||
7276 | * xdisp.c (display_mode_element): Fix call of Fset_text_properties. | |
7277 | ||
7278 | * chartab.c: Include "...h", not <...h> in some cases. | |
7279 | ||
7280 | * callproc.c (Fcall_process): Remove unused variables. | |
7281 | ||
73acf815 | 7282 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7283 | |
7284 | * coding.c (Fset_coding_system_priority): Allow null arg list. | |
7285 | ||
73acf815 | 7286 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7287 | |
7288 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
7289 | (Fself_insert_and_exit): Use CHARACTERP. | |
7290 | ||
7291 | * callproc.c (Fcall_process): Remove unused vars. | |
7292 | ||
7293 | * xterm.c (XTread_socket): Add extra dead keysyms. | |
7294 | ||
7295 | * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. | |
7296 | ||
7297 | * dispextern.h: Remove prototypes for redraw_frame, | |
7298 | redraw_garbaged_frames. | |
7299 | ||
7300 | * cmds.c (Fself_insert_command): Use CHARACTERP. | |
7301 | ||
7302 | * chartab.c (make_sub_char_table): Remove unused var. | |
7303 | (Fset_char_table_default, Fmap_char_table): Doc fix. | |
7304 | ||
7305 | * keymap.c (access_keymap): Remove generic char code. | |
7306 | (push_key_description): Use CHARACTERP. | |
7307 | ||
73acf815 | 7308 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7309 | |
7310 | * charset.c: Doc fixes. | |
7311 | (Funify_charset): Extra checking. | |
7312 | ||
73acf815 | 7313 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7314 | |
7315 | * lread.c: Remove some unused variables. | |
7316 | (safe_to_load_p): If safe, return the magic number version byte. | |
7317 | (Fload): Maybe use load-with-code-conversion. | |
7318 | ||
73acf815 | 7319 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7320 | |
7321 | * category.c (Fmodify_category_entry): Don't modify the contents | |
7322 | of category_set for characters out of the range. Avoid | |
7323 | unnecessary modification. | |
7324 | ||
1f45f627 | 7325 | * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of |
aca7a3d2 MB |
7326 | Vchar_unify_table. The default value of the table is now nil. |
7327 | ||
7328 | * character.c (syms_of_character): Setup Vchar_width_table for | |
7329 | eight-bit-control and raw-byte chars. | |
7330 | ||
7331 | * charset.h (enum define_charset_arg_index): Delete | |
7332 | charset_arg_parents and add charset_arg_subset and | |
7333 | charset_arg_superset. | |
7334 | (enum charset_attr_index): Delete charset_parents and add | |
7335 | charset_subset and charset_superset. | |
7336 | (enum charset_method): Delete CHARSET_METHOD_INHERIT and add | |
7337 | CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. | |
1f45f627 | 7338 | (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete. |
aca7a3d2 MB |
7339 | (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) |
7340 | (CHARSET_SUPERSET): New macros. | |
7341 | (charset_work): Extern it. | |
7342 | (ENCODE_CHAR): Use charset_work. | |
1f45f627 | 7343 | (CHAR_CHARSET_P): Adjust for the change of encoder format. |
aca7a3d2 MB |
7344 | (map_charset_chars): Extern it. |
7345 | ||
7346 | * charset.c (load_charset_map): Set the default value of encoder | |
7347 | and deunifier char-tables to nil. | |
1f45f627 | 7348 | (map_charset_chars): Change argument. Change callers. Use |
aca7a3d2 MB |
7349 | map_char_table_for_charset instead of map_char_table. |
7350 | (Fmap_charset_chars): New optional args from_code and to_code. | |
1f45f627 | 7351 | (Fdefine_charset_internal): Adjust for the change of |
aca7a3d2 MB |
7352 | `define-charset' (:parents -> :subset or :superset). |
7353 | (charset_work): New variable. | |
4c4475a8 GM |
7354 | (encode_char, syms_of_charset): Adjust for the change of |
7355 | Fdefine_charset_internal. | |
aca7a3d2 MB |
7356 | (Ffind_charset_string): Setup the vector `charsets' correctly. |
7357 | ||
1f45f627 | 7358 | * chartab.c (sub_char_table_ref_and_range): New arg default. Fix |
aca7a3d2 | 7359 | the previous change. |
1f45f627 | 7360 | (char_table_ref_and_range): Adjust for the above change. |
aca7a3d2 MB |
7361 | (map_sub_char_table_for_charset): New function. |
7362 | (map_char_table_for_charset): New function. | |
7363 | ||
7364 | * keymap.c (describe_vector): Handle a char-table directly here. | |
1f45f627 | 7365 | (describe_char_table): Delete. |
aca7a3d2 | 7366 | |
1f45f627 | 7367 | * lisp.h (map_charset_chars): Delete. |
aca7a3d2 | 7368 | |
73acf815 | 7369 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7370 | |
7371 | * fns.c (count_combining): Comment out (unused). | |
7372 | (Flocale_codeset): New. | |
7373 | (syms_of_fns): Defsubr it. | |
7374 | ||
7375 | * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. | |
1f45f627 | 7376 | (size_t): Remove. |
aca7a3d2 | 7377 | |
73acf815 | 7378 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 7379 | |
6f69e89b | 7380 | * Makefile.in (chartab.o): Depend on charset.h. |
aca7a3d2 | 7381 | |
73acf815 | 7382 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7383 | |
7384 | * character.c (syms_of_character): Set the default value of | |
7385 | Vprintable_chars to Qnil. | |
7386 | ||
73acf815 | 7387 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7388 | |
7389 | * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. | |
7390 | ||
73acf815 | 7391 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7392 | |
7393 | * charset.c (load_charset_map): Handle the case that from < to | |
7394 | correctly. | |
7395 | ||
4c4475a8 GM |
7396 | * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022) |
7397 | (encode_coding_sjis, encode_coding_big5, encode_coding_charset): | |
7398 | Pay attention to raw-8-bit chars. | |
aca7a3d2 | 7399 | |
73acf815 | 7400 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7401 | |
4c4475a8 GM |
7402 | * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el. |
7403 | It is not bytecompiled now. | |
aca7a3d2 MB |
7404 | |
7405 | * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) | |
7406 | (charset_jisx0208): New variables. | |
7407 | (Fdefine_charset_internal): Setup them if appropriate. | |
7408 | (init_charset_once): Initialize them to -1. | |
7409 | ||
1f45f627 GM |
7410 | * charset.h (charset_jisx0201_roman, charset_jisx0208_1978) |
7411 | (charset_jisx0208): Extern them. | |
aca7a3d2 MB |
7412 | |
7413 | * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro | |
7414 | (CODING_ISO_FLAG_USE_OLDJIS): New macro. | |
1f45f627 GM |
7415 | (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition. |
7416 | (setup_iso_safe_charsets): Fix arguments to Fassq. | |
4c4475a8 GM |
7417 | (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1) |
7418 | (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to | |
7419 | CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS. | |
aca7a3d2 MB |
7420 | (encode_coding_iso_2022): Change the 1st arg to |
7421 | ENCODE_ISO_CHARACTER to a variable. | |
7422 | ||
73acf815 | 7423 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7424 | |
7425 | * charset.h (enum define_charset_arg_index): New enums | |
7426 | charset_arg_min_code and charset_arg_max_code. | |
7427 | (struct charset): New member char_index_offset. | |
7428 | ||
4c4475a8 GM |
7429 | * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT): |
7430 | Take charset->char_index_offset into account. | |
aca7a3d2 MB |
7431 | (Fdefine_charset_internal): Handle args[charset_arg_min_code] and |
7432 | args[charset_arg_max_code]. Setup charset.char_index_offset. | |
7433 | (syms_of_charset): Fix args to Fdefine_charset_internal. | |
7434 | ||
73acf815 | 7435 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7436 | |
7437 | * coding.c (decode_coding_utf_8): Reject overlong sequences. | |
7438 | ||
73acf815 | 7439 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7440 | |
7441 | * coding.c: Doc fixes. | |
7442 | (Fcoding_system_aliases): Fix return value. | |
7443 | (Qmac): Remove (duplicated) definition. | |
7444 | ||
73acf815 | 7445 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7446 | |
7447 | * charset.c (Fcharset_priority_list, Fset_charset_priority): New | |
7448 | functions. | |
7449 | ||
7450 | * character.c (Fstring): Doc fix. | |
7451 | ||
7452 | * charset.c (Fdefine_charset_alias): Update Vcharset_list. | |
7453 | ||
7454 | * fontset.c (Ffontset_info): Doc fix. Return charset names, not | |
7455 | ids. | |
7456 | (font-encoding-alist): Doc fix. | |
7457 | ||
73acf815 | 7458 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7459 | |
7460 | * term.c (costs_set): Declare static, non-initialized for pcc. | |
1f45f627 | 7461 | (encode_terminal_code): Remove unused var. |
aca7a3d2 MB |
7462 | |
7463 | * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | |
7464 | for K&R. | |
7465 | ||
7466 | * xterm.c (xlwmenu_window_p): Fix prototype for K&R. | |
7467 | ||
7468 | * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. | |
1f45f627 | 7469 | (suffixes): Move out of make_subsidiaries for K&R. |
aca7a3d2 | 7470 | |
1f45f627 | 7471 | * charset.c (map_charset_chars): Fix c_function declaration for K&R. |
aca7a3d2 MB |
7472 | |
7473 | * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. | |
7474 | ||
73acf815 | 7475 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7476 | |
7477 | * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. | |
7478 | ||
1f45f627 | 7479 | * category.c (Fmodify_category_entry): Doc fix. Remove unused vars. |
aca7a3d2 | 7480 | |
2a2e8de7 | 7481 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 MB |
7482 | |
7483 | * charset.c (Fdefine_charset_internal): Fix argument to bzero. | |
7484 | ||
1f45f627 | 7485 | * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96. |
aca7a3d2 | 7486 | |
73acf815 | 7487 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7488 | |
4c4475a8 | 7489 | * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el, |
aca7a3d2 | 7490 | vietnamese.elc to vietnamese.el. They are not bytecompiled now. |
aca7a3d2 | 7491 | |
73acf815 | 7492 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7493 | |
1f45f627 | 7494 | * coding.c (decode_coding_charset): Adjust for the change of |
aca7a3d2 MB |
7495 | Fdefine_coding_system_internal. |
7496 | (Fdefine_coding_system_internal): For a coding system of | |
7497 | `charset' type, store a list of charset IDs in | |
7498 | `charset_attr_charset_valids' element of coding attributes. | |
7499 | ||
73acf815 | 7500 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7501 | |
7502 | * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. | |
1f45f627 GM |
7503 | (emacs_mule_char): New arg src. Delete arg `composition'. Change |
7504 | caller. Handle 2-byte and 3-byte charsets correctly. | |
7505 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from | |
7506 | DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller. | |
aca7a3d2 MB |
7507 | (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. |
7508 | (DECODE_EMACS_MULE_21_COMPOSITION): Call | |
7509 | DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation | |
7510 | sequence. | |
7511 | (decode_coding_emacs_mule): Handle composition correctly. Rewind | |
1f45f627 | 7512 | `src' and `consumed_chars' correctly before calling emacs_mule_char. |
aca7a3d2 MB |
7513 | (DECODE_COMPOSITION_START): Correctly handle the case of altchar |
7514 | and alt&rule composition. | |
7515 | (decode_coding_iso_2022): Handle composition correctly. | |
7516 | (init_coding_once): Setup emacs_mule_bytes for private charsets. | |
7517 | ||
7518 | * charset.c (Fdefine_charset_internal): Fix bug for the case of | |
7519 | re-defining a charset. If the charset has :emacs-mule-id, setup | |
7520 | emacs_mule_bytes. | |
1f45f627 | 7521 | (Fmake_char): If CODE1 is nil, use the minimum code of the charset. |
aca7a3d2 | 7522 | |
73acf815 | 7523 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7524 | |
4c4475a8 GM |
7525 | * coding.c (encode_coding_iso_2022, encode_coding_sjis) |
7526 | (encode_coding_big5, encode_coding_charset): If coding requires safe | |
aca7a3d2 MB |
7527 | encoding, produce a character specified by |
7528 | CODING_INHIBIT_CHARACTER_SUBSTITUTION. | |
aca7a3d2 | 7529 | |
73acf815 | 7530 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7531 | |
7532 | * xterm.c (XSetIMValues): Declare. | |
7533 | ||
7534 | * process.c: Conditionally include sys/wait.h, pty.h. | |
7535 | ||
1f45f627 | 7536 | * print.c (print_object): Fix print format for 64-bit systems. |
aca7a3d2 | 7537 | |
1f45f627 | 7538 | * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems. |
aca7a3d2 MB |
7539 | |
7540 | * buffer.c (emacs_strerror): Declare. | |
aca7a3d2 MB |
7541 | |
7542 | * fontset.c (Fclear_face_cache): Declare. | |
1f45f627 | 7543 | (accumulate_font_info): Comment-out (unused). |
aca7a3d2 MB |
7544 | (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused |
7545 | variables. | |
7546 | ||
7547 | * character.h (string_escape_byte8): Declare. | |
7548 | ||
7549 | * charset.c (load_charset_map, load_charset_map_from_file): Remove | |
7550 | unused vars. | |
7551 | (Fdefine_charset_internal, Fsplit_char, syms_of_charset) | |
7552 | (Fmap_charset_chars): Doc fix. | |
7553 | ||
1f45f627 | 7554 | * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove. |
aca7a3d2 MB |
7555 | (Fset_coding_system_priority, Fset_coding_system_priority) |
7556 | (Fdefine_coding_system_internal): Doc fix. | |
7557 | ||
73acf815 | 7558 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7559 | |
7560 | * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. | |
7561 | ||
73acf815 | 7562 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7563 | |
7564 | * character.c (string_escape_byte8): Make multibyte string with | |
7565 | correct size. | |
7566 | ||
7567 | * charset.c (Fmake_char): Delete unnecessary code. | |
7568 | ||
73acf815 | 7569 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7570 | |
7571 | * xfns.c (x_encode_text): Allocate coding.destination here, and | |
7572 | call encode_coding_object with dst_object Qnil. | |
7573 | ||
7574 | * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | |
7575 | multibyte form correctly. | |
7576 | ||
7577 | * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | |
7578 | against Vfont_encoding_alist. | |
7579 | ||
7580 | * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | |
7581 | handling of charset list. | |
7582 | (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | |
7583 | (decode_coding_object): Move point to coding->dst_pos before | |
7584 | calling post-read-conversion function. | |
7585 | (encode_coding_object): Give correct arguments to | |
7586 | pre-write-conversion. Ignore the return value of | |
7587 | pre-write-conversion function. Pay attention to the case that | |
7588 | pre-write-conversion changes the current buffer. If dst_object is | |
7589 | Qt, even if coding->src_bytes is zero, allocate at least one byte | |
7590 | to coding->destination. | |
7591 | ||
7592 | * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | |
7593 | ||
7594 | * charset.c (Fmake_char): Make it more backward compatible. | |
7595 | (Fmap_charset_chars): Fix docstring. | |
7596 | ||
73acf815 | 7597 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7598 | |
7599 | * coding.c: Doc fixes. | |
7600 | (Fdefine_coding_system_alias): Use names, not symbols, in | |
7601 | coding-system-alist. | |
7602 | ||
73acf815 | 7603 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7604 | |
7605 | * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead | |
7606 | of calling free_realized_face. | |
7607 | ||
2a2e8de7 | 7608 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 | 7609 | |
1f45f627 GM |
7610 | * charset.c (read_hex): Don't treat SPC as a comment starter. |
7611 | (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1. | |
aca7a3d2 MB |
7612 | (Fdecode_char): Fix typo. |
7613 | ||
73acf815 | 7614 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7615 | |
7616 | * charset.h (struct charset): New member `code_space_mask'. | |
7617 | ||
1f45f627 | 7618 | * coding.c (coding_set_source): Delete the local variable beg_byte. |
4c4475a8 GM |
7619 | (encode_coding_charset, Fdefine_coding_system_internal): |
7620 | Delete the local variable charset. | |
aca7a3d2 MB |
7621 | (Fdefine_coding_system_internal): Setup |
7622 | attrs[coding_attr_charset_valids] correctly. | |
7623 | ||
7624 | * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' | |
7625 | member to check if CODE is valid or not. | |
7626 | (Fdefine_charset_internal): Initialize `code_space_mask' member. | |
7627 | (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE | |
7628 | is within the range of charset->min_code and carset->max_code. | |
7629 | ||
73acf815 | 7630 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
7631 | |
7632 | * syntax.h (syntax_temp) [!__GNUC__]: Declare. | |
7633 | ||
7634 | * dispextern.h (generate_ascii_font): Fix return type. | |
7635 | ||
7636 | * xfaces.c (generate_ascii_font): Fix arg declaration. | |
7637 | ||
7638 | * coding.c (coding_inherit_eol_type) | |
7639 | (Fset_terminal_coding_system_internal) | |
7640 | (Fset_safe_terminal_coding_system_internal): Fix arg declarations. | |
7641 | ||
73acf815 | 7642 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7643 | |
7644 | * coding.c (decode_coding_charset, encode_coding_charset): Handle | |
7645 | multiple charsets correctly. | |
7646 | ||
73acf815 | 7647 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7648 | |
7649 | * search.c (boyer_moore): Fix handling of mulitbyte character | |
7650 | translation. | |
7651 | ||
7652 | * xdisp.c (display_mode_element): When the variable `elt' is | |
7653 | changed, update `this' and `lisp_string'. | |
7654 | ||
73acf815 | 7655 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7656 | |
7657 | * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. | |
7658 | ||
7659 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
1f45f627 | 7660 | to decode_coding_c_string. Update PT and PT_BYTE after the insertion. |
aca7a3d2 MB |
7661 | |
7662 | * charset.c (struct charset_map_entries): New struct. | |
1f45f627 GM |
7663 | (load_charset_map): Rename from parse_charset_map. New args |
7664 | entries and n_entries. Change caller. | |
7665 | (load_charset_map_from_file): Rename from load_charset_map. | |
7666 | Change caller. New arg control_flag. Call load_charset_map at | |
aca7a3d2 MB |
7667 | the tail. |
7668 | (load_charset_map_from_vector): New function. | |
7669 | (Fdefine_charset_internal): Setup charset.compact_codes_p. | |
7670 | (encode_char): If the charset is compact, change a character index | |
7671 | to a code point. | |
7672 | ||
7673 | * coding.c (coding_alloc_by_making_gap): Check the case that the | |
7674 | source and destination are the same correctly. | |
7675 | (decode_coding_raw_text): Set coding->consumed_char and | |
7676 | coding->consumed to 0. | |
7677 | (produce_chars): If coding->chars_at_source is nonzero, update | |
7678 | coding->consumed_char and coding->consumed before calling | |
7679 | alloc_destination. | |
7680 | (Fdefine_coding_system_alias): Register ALIAS in | |
7681 | Vcoding_system_alist. | |
7682 | (syms_of_coding): Define `no-convesion' coding system at the tail. | |
7683 | ||
7684 | * fileio.c (Finsert_file_contents): Set coding_system instead of | |
7685 | val. If the current buffer is multibyte, always call | |
7686 | decode_coding_gap. | |
7687 | ||
7688 | * xfaces.c (try_font_list): Give higher priority to fontset's | |
7689 | family than face's family. | |
7690 | ||
73acf815 | 7691 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7692 | |
7693 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
7694 | to decode_coding_c_string. | |
7695 | ||
7696 | * xfaces.c (try_font_list): Give a family specified in a fontset | |
7697 | higher priority than a family specified in a face. | |
7698 | ||
73acf815 | 7699 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7700 | |
7701 | * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. | |
7702 | Fix arguments to insert_from_buffer. | |
7703 | ||
7704 | * xdisp.c (display_mode_element): Fix calculation of `bytepos'. | |
7705 | ||
73acf815 | 7706 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7707 | |
7708 | * coding.c (produce_chars): Set the variable `multibytep' correctly. | |
7709 | (decode_coding_gap): Set coding->dst_multibyte correctly. | |
7710 | ||
73acf815 | 7711 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7712 | |
7713 | * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. | |
1f45f627 | 7714 | (decode_coding_utf_16): Fix converting high and low bytes to code-point. |
aca7a3d2 MB |
7715 | (encode_coding_utf_16): Substitute coding->default_char for |
7716 | non-Unicode characters. | |
7717 | (decode_coding): Don't call record_insert here. | |
7718 | (setup_coding_system): Initialize `surrogate' of | |
7719 | coding->spec.utf_16 to 0. | |
7720 | (EMIT_ONE_BYTE): Fix for multibyte case. | |
7721 | ||
7722 | * insdel.c (insert_from_gap): Call record_insert. | |
7723 | ||
73acf815 | 7724 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7725 | |
7726 | * casefiddle.c (casify_region): Fix multibyte case. | |
7727 | ||
7728 | * character.c (c_string_width): Add return type `int'. | |
1f45f627 | 7729 | (char_string_with_unification): Delete arg ADVANCED. |
aca7a3d2 MB |
7730 | |
7731 | * character.h (CHAR_VALID_P): Don't call CHARACTERP. | |
1f45f627 | 7732 | (CHAR_STRING): Adjust for the change of char_string_with_unification. |
aca7a3d2 MB |
7733 | (CHAR_STRING_ADVANCE): Make it do-while statement. |
7734 | ||
1f45f627 | 7735 | * chartab.c (sub_char_table_set_range): Optimize for the case |
aca7a3d2 MB |
7736 | DEPTH == 3. Add workaround code for a GCC optimization bug. |
7737 | ||
7738 | * charset.c (parse_charset_map): Remove an unused variable. | |
7739 | ||
7740 | * coding.c: Delete unused variables. | |
7741 | ||
7742 | * fileio.c (Finsert_file_contents): Set coding_system to Qnil | |
7743 | earlier. If inserted is zero and the coding system doesn't | |
7744 | require flushing, don't call decode_coding_gap. | |
7745 | ||
7746 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. | |
7747 | ||
73acf815 | 7748 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7749 | |
7750 | The following changes are for using Unicode as an internal | |
7751 | character model, and use UTF-8 format for buffer/string | |
7752 | representation. | |
7753 | ||
1f45f627 | 7754 | * .gdbinit (xchartable): Adjust for the change of char table structure. |
aca7a3d2 MB |
7755 | (xsubchartable, xcoding, xcharset, xcurbuf): New commands. |
7756 | ||
7757 | * Makefile.in (obj): Add character.o and chartab.o. | |
c3f9fba8 | 7758 | (lisp, shortlisp): Remove utf-8.elc. |
aca7a3d2 MB |
7759 | (*.o): For many files, change dependency on charset.h to |
7760 | character.h, and add dependency on character.h. | |
7761 | (character.o, chartab.o): New targets. | |
7762 | ||
1f45f627 GM |
7763 | * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c: |
7764 | * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c: | |
7765 | * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
aca7a3d2 MB |
7766 | of "charset.h". |
7767 | ||
7768 | * dired.c, filelock.c: Include "character.h". | |
7769 | ||
7770 | * alloc.c: Include "character.h" instead of "charset.h". | |
4c4475a8 | 7771 | (Fmake_char_table, make_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
7772 | (syms_of_alloc): Remove defsubr for Smake_char_table. |
7773 | ||
7774 | * buffer.c: Include "character.h" instead of "charset.h", don't | |
7775 | include "coding.h". | |
1f45f627 | 7776 | (Fset_buffer_multibyte): Adjust for UTF-8. |
aca7a3d2 MB |
7777 | |
7778 | * buffer.h: EXFUN Fbuffer_live_p. | |
7779 | ||
7780 | * callproc.c: Include "character.h" instead of "charset.h". | |
7781 | (Fcall_process): Big change for the new code-conversion APIs. | |
7782 | ||
7783 | * casetab.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7784 | (set_canon, set_identity, shuffle): Adjust for the new |
aca7a3d2 MB |
7785 | map_char_table spec. |
7786 | (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
7787 | accessing the char table structure. | |
7788 | ||
7789 | * chartab.c: New file that implements char table. | |
7790 | ||
7791 | * category.c: Include "character.h". | |
7792 | (copy_category_entry): New function. | |
7793 | (copy_category_table): Call map_char_table and copy_category_entry. | |
7794 | (Fmake_category_table): Initialize all top-vel slots. | |
7795 | (char_category_set): New function. | |
1f45f627 | 7796 | (modify_lower_category_set): Delete. |
aca7a3d2 MB |
7797 | (Fmodify_category_entry): Call char_table_ref_and_range. |
7798 | ||
7799 | * category.h (CATEGORY_SET): Just call char_category_set. | |
7800 | ||
7801 | * ccl.c: Include "character.h". | |
7802 | (Qccl, Qcclp): New variables. | |
7803 | (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
7804 | it's less than 256. | |
1f45f627 GM |
7805 | (CCL_WRITE_MULTIBYTE_CHAR): Delete. |
7806 | (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC | |
aca7a3d2 | 7807 | and DST type. |
1f45f627 GM |
7808 | (ccl_driver): Change types of argument, adjust code accordingly. |
7809 | (Fccl_execute, Fccl_execute_on_string): Adjust for the change of | |
aca7a3d2 MB |
7810 | ccl_driver. |
7811 | (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
7812 | ||
1f45f627 GM |
7813 | * ccl.h (struct ccl_program): Delete members eol_type and multibyte. |
7814 | New members src_multibyte, dst_multibyte, consumed, and produced. | |
7815 | (struct ccl_spec): Delete members decoder and encoder. New member ccl. | |
aca7a3d2 | 7816 | (CODING_SPEC_CCL_PROGRAM): New macro. |
1f45f627 | 7817 | (ccl_driver): Update prototype. |
aca7a3d2 MB |
7818 | (Qccl, Qcclp, Fccl_program_p): Extern them. |
7819 | (CHECK_CCL_PROGRAM): New macro. | |
7820 | ||
7821 | * character.c, character.h, chartab.c: New files. | |
7822 | ||
1f45f627 GM |
7823 | * charset.c: Mostly re-written. Move character and multibyte sequence |
7824 | handling codes to character.c. | |
aca7a3d2 | 7825 | |
1f45f627 GM |
7826 | * charset.h: Mostly re-written. Move character and multibyte sequence |
7827 | handling codes to character.h. | |
aca7a3d2 MB |
7828 | |
7829 | * coding.c, coding.h: Mostly re-written. | |
7830 | ||
7831 | * composite.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
7832 | (CHAR_WIDTH): Move to character.h. |
7833 | (HASH_KEY, HASH_VALUE): Delete. | |
aca7a3d2 | 7834 | |
1f45f627 GM |
7835 | * composite.h (enum composition_method): Change order of enumeration |
7836 | symbols. | |
aca7a3d2 MB |
7837 | |
7838 | * data.c: Include "character.h" instead of "charset.h". | |
7839 | (Faref): Call CHAR_TABLE_REF for a char table. | |
7840 | (Faset): Call CHAR_TABLE_SET for a char table. | |
7841 | ||
1f45f627 GM |
7842 | * dispextern.h (free_realized_face, check_face_attribytes) |
7843 | (generate_ascii_font): Extern them. | |
7844 | (free_realized_multibyte_face): Delete extern. | |
aca7a3d2 | 7845 | |
1f45f627 | 7846 | * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char |
aca7a3d2 MB |
7847 | table structure. |
7848 | ||
7849 | * editfns.c: Include "character.h" instead of "charset.h". | |
7850 | (Fchar_to_string): Always call CHAR_STRING. | |
7851 | ||
7852 | * emacs.c (main): Call init_charset_once, init_charset, | |
7853 | syms_of_chartab, and syms_of_character. | |
7854 | ||
7855 | * fileio.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7856 | (Finsert_file_contents): Big change for the new code-conversion API. |
4c4475a8 | 7857 | (choose_write_coding_system, Fwrite_region): Likewise. |
1f45f627 | 7858 | (build_annotations_2): Delete. |
aca7a3d2 MB |
7859 | (e_write): Big change for the new code-conversion API. |
7860 | ||
7861 | * fns.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7862 | (copy_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
7863 | (Fcopy_sequence): Call copy_char_table for a char table. |
7864 | (concat): Delete codes calling count_multibyte. | |
4c4475a8 GM |
7865 | (string_char_to_byte, string_byte_to_char): Adjust for the new |
7866 | multibyte form. | |
1f45f627 GM |
7867 | (internal_equal): Adjust for the change of char table structure. |
7868 | (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent) | |
7869 | (Fchar_table_extra_slot, Fset_char_table_extra_slot) | |
7870 | (Fchar_table_range, Fset_char_table_range, Fset_char_table_default) | |
7871 | (char_table_translate, optimize_sub_char_table) | |
7872 | (Foptimize_char_table, map_char_table, Fmap_char_table): Move to | |
aca7a3d2 | 7873 | chartab.c. |
1f45f627 GM |
7874 | (char_table_ref_and_index): Delete. |
7875 | (HASH_KEY, HASH_VALUE): Move to lisp.h. | |
aca7a3d2 | 7876 | (Fmd5): Call preferred_coding_system instead of accessing |
1f45f627 GM |
7877 | Vcoding_category_list. Adjust for the new code-conversion API. |
7878 | (syms_of_fns): Move defsubr for char table related functions to | |
aca7a3d2 MB |
7879 | chartab.c. |
7880 | ||
7881 | * fontset.c: Mostly re-written. | |
7882 | ||
1f45f627 | 7883 | * fontset.h (struct font_info): Change type of the member encoding_type. |
aca7a3d2 | 7884 | (enum FONT_SPEC_INDEX): New enum. |
1f45f627 GM |
7885 | (fontset_font_pattern, fs_load_font): Update prototype. |
7886 | (FS_LOAD_FONT): Adjust for the change of fs_load_font. | |
aca7a3d2 MB |
7887 | |
7888 | * indent.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7889 | (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD. |
aca7a3d2 MB |
7890 | |
7891 | * insdel.c: Include "character.h" instead of "charset.h". | |
7892 | (copy_text): Don't refer to Vnonascii_translation_table. | |
7893 | (insert_from_gap): New function. | |
7894 | ||
7895 | * keyboard.c: Include "character.h" instead of "charset.h". | |
7896 | (command_loop_1): Never call direct_output_forward_char before | |
7897 | a non-ASCII character. | |
7898 | (read_char): If Vkeyboard_translate_table is a char table, always | |
1f45f627 | 7899 | translate a character. |
aca7a3d2 MB |
7900 | |
7901 | * keymap.c: Include "character.h". | |
7902 | (store_in_keymap): Handle the case that IDX is a cons. | |
7903 | (Fdefine_key): Handle the case that KEY is a cons and the car part | |
7904 | is also a cons (range). | |
1f45f627 | 7905 | (push_key_description): Adjust for the new character code. |
aca7a3d2 MB |
7906 | (describe_vector): Call describe_char_table for a char table. |
7907 | (describe_char_table): New function. | |
7908 | ||
7909 | * keymap.h (describe_char_table): Extern it. | |
7910 | ||
7911 | * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
7912 | (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
1f45f627 GM |
7913 | (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS) |
7914 | (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
7915 | Delete. | |
7916 | (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table | |
aca7a3d2 MB |
7917 | structure. |
7918 | (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
1f45f627 GM |
7919 | (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2) |
7920 | (CHARTAB_SIZE_BITS_3): New macros. | |
aca7a3d2 | 7921 | (chartab_size): Extern it. |
1f45f627 | 7922 | (struct Lisp_Char_Table): Re-design. |
aca7a3d2 | 7923 | (struct Lisp_Sub_Char_Table): New structure. |
1f45f627 GM |
7924 | (HASH_KEY, HASH_VALUE): Move from fns.c. |
7925 | (CHARACTERBITS): Define as 22. | |
7926 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change. | |
aca7a3d2 MB |
7927 | (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. |
7928 | (GC_SUB_CHAR_TABLE_P): New macro. | |
1f45f627 GM |
7929 | (Fencode_coding_string, Fdecode_coding_string): Update EXFUN. |
7930 | (code_convert_string_norecord): Deleted extern. | |
7931 | (init_character_once, syms_of_character, init_charset) | |
7932 | (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
aca7a3d2 MB |
7933 | |
7934 | * lread.c: Include "character.h". | |
7935 | (read_multibyte): New arg NBYTES. | |
1f45f627 GM |
7936 | (read_escape): Change the meaning of returned *BYTEREP. |
7937 | (to_multibyte): Delete. | |
7938 | (read1): Adjust the handling of char table and string. | |
aca7a3d2 MB |
7939 | |
7940 | * print.c: Include "character.h" instead of "charset.h". | |
7941 | (print_string): Convert 8-bit raw bytes to octal form by | |
7942 | string_escape_byte8. | |
1f45f627 | 7943 | (print_object): Adjust for the new multibyte form. Print 8-bit |
aca7a3d2 MB |
7944 | raw bytes always in octal form. Handle sub char table correctly. |
7945 | ||
7946 | * process.c: Include "character.h" instead of "charset.h". | |
4c4475a8 GM |
7947 | (read_process_output, send_process): Adjust for the new |
7948 | code-conversion API. | |
aca7a3d2 | 7949 | |
1f45f627 | 7950 | * puresize.h (BASE_PURESIZE): Increase. |
aca7a3d2 MB |
7951 | |
7952 | * regex.c: Include "character.h" instead of "charset.h". | |
7953 | (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
7954 | (regex_compile): Accept a range whose starting and ending | |
7955 | character have different leading bytes. | |
1f45f627 | 7956 | (analyse_first): Adjust for the above change. |
aca7a3d2 MB |
7957 | |
7958 | * search.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
7959 | (search_buffer, boyer_moore): Adjust for the new multibyte form. |
7960 | (Freplace_match): Adjust for the change of multibyte_char_to_unibyte. | |
aca7a3d2 MB |
7961 | |
7962 | * syntax.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7963 | (syntax_parent_lookup): Delete. |
aca7a3d2 | 7964 | (Fmodify_syntax_entry): Accept a cons as CHAR. |
1f45f627 | 7965 | (skip_chars): Adjust for the new multibyte form. |
aca7a3d2 MB |
7966 | (init_syntax_once): Call char_table_set_range instead of directly |
7967 | accessing the structure of a char table. | |
7968 | ||
7969 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
1f45f627 | 7970 | (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro. |
aca7a3d2 MB |
7971 | (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. |
7972 | (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
7973 | ||
7974 | * term.c: Include "buffer.h" and "character.h". | |
4c4475a8 GM |
7975 | (encode_terminal_code, write_glyphs): Adjust for the new |
7976 | code-conversion API. | |
aca7a3d2 MB |
7977 | (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. |
7978 | ||
1f45f627 | 7979 | * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT. |
aca7a3d2 MB |
7980 | |
7981 | * xdisp.c: Include "character.h". | |
1f45f627 GM |
7982 | (get_next_display_element): Adjust for the new multibyte form. |
7983 | (disp_char_vector): Adjust for the new char table structure. | |
7984 | (decode_mode_spec_coding): Adjust for the new structure of | |
aca7a3d2 | 7985 | coding system. |
1f45f627 | 7986 | (decode_mode_spec): Adjust for the new code-conversion API. |
aca7a3d2 MB |
7987 | |
7988 | * xfaces.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 7989 | (load_face_font): Adjust for the change of choose_face_font and |
aca7a3d2 MB |
7990 | FS_LOAD_FONT. |
7991 | (generate_ascii_font): New function. | |
1f45f627 GM |
7992 | (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT. |
7993 | (set_font_frame_param): Adjust for the change of choose_face_font. | |
aca7a3d2 | 7994 | (free_realized_face): Make it public. |
1f45f627 | 7995 | (free_realized_faces_for_fontset): Rename from |
aca7a3d2 | 7996 | free_realized_multibyte_face. Free also faces realized for ASCII. |
1f45f627 | 7997 | (choose_face_font): Change arguments. Adjust for the change of |
aca7a3d2 MB |
7998 | fontset_font_pattern and FS_LOAD_FONT. |
7999 | ||
8000 | * xfns.c: Include "character.h". | |
1f45f627 | 8001 | (x_encode_text): Adjust for the new code-conversion API. |
aca7a3d2 MB |
8002 | |
8003 | * xselect.c: Don't include "charset.h". | |
1f45f627 | 8004 | (selection_data_to_lisp_data): Adjust for the new code conversion API. |
aca7a3d2 MB |
8005 | |
8006 | * xterm.c: Include "character.h". | |
1f45f627 | 8007 | (x_encode_char): New argument CHARSET. Change caller. |
4c4475a8 GM |
8008 | (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding): |
8009 | Call ENCODE_CHAR instead of SPLIT_CHAR. | |
aca7a3d2 MB |
8010 | (x_produce_glyphs): Don't check Vnonascii_translation_table Call |
8011 | CHAR_WIDTH instead of CHARSET_WIDTH. | |
1f45f627 GM |
8012 | (XTread_socket): Adjust for the new code-conversion API. |
8013 | (x_new_font): Adjust for the change of FS_LOAD_FONT. | |
8014 | (x_load_font): Adjust for the change of struct font. | |
aca7a3d2 | 8015 | |
d6abfc14 SM |
8016 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
8017 | ||
8018 | * xfaces.c (face_at_buffer_position): Remove unused vars. | |
8019 | ||
0acdaf8d KH |
8020 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
8021 | ||
4c4475a8 GM |
8022 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR): |
8023 | Fix overflow checking. | |
0acdaf8d | 8024 | |
6c8a0ebf GM |
8025 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
8026 | ||
8027 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver): | |
8028 | Cancel previous change. | |
8029 | ||
8030 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> | |
8031 | ||
8032 | * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when | |
8033 | ccl->eight_bit_control. Fix check for buffer overflow. | |
8034 | (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow. | |
8035 | (ccl_driver): Initialize extra_bytes to 0. | |
8036 | ||
a32aad64 KH |
8037 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> |
8038 | ||
8039 | * keyboard.c (make_ctrl_char): If C is a multibyte character, just | |
8040 | return it ORed with ctrl_modifier. | |
8041 | ||
8b329dba MB |
8042 | 2008-01-29 Miles Bader <miles@gnu.org> |
8043 | ||
8044 | * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake. | |
8045 | ||
548667aa JR |
8046 | 2008-01-28 Jason Rumney <jasonr@gnu.org> |
8047 | ||
8048 | * w32.c (stat): Don't double check for networked drive. | |
8049 | ||
0975aa24 SM |
8050 | 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca> |
8051 | ||
ef264c42 SM |
8052 | * window.c (run_window_configuration_change_hook): New function. |
8053 | Code extracted from set_window_buffer. Set the selected frame. | |
8054 | (set_window_buffer): Use it. | |
8055 | * window.h (run_window_configuration_change_hook): Declare. | |
8056 | * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer. | |
8057 | ||
0975aa24 SM |
8058 | * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM). |
8059 | ||
9c28b587 DN |
8060 | 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu> |
8061 | ||
8062 | * Makefile.in: Remove references to unused macros. | |
8063 | ||
c617afce EZ |
8064 | 2008-01-26 Eli Zaretskii <eliz@gnu.org> |
8065 | ||
8066 | * w32.c (g_b_init_get_sid_sub_authority) | |
8067 | (g_b_init_get_sid_sub_authority_count): New static variables. | |
8068 | (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs. | |
8069 | (get_sid_sub_authority, get_sid_sub_authority_count): New functions. | |
0975aa24 SM |
8070 | (init_user_info): Use them to retrieve uid and gid. |
8071 | Use 500/513, the Windows defaults, as Administrator's uid/gid. | |
248c21c5 EZ |
8072 | (fstat): Use pw_uid and pw_gid from the_passwd structure for |
8073 | st_uid and st_gid of the file. | |
c617afce | 8074 | |
302d7d54 JR |
8075 | 2008-01-26 Jason Rumney <jasonr@gnu.org> |
8076 | ||
8077 | * w32.c (logon_network_drive): New function. | |
8078 | (stat): Use it. | |
8079 | ||
3ac7a21e CY |
8080 | 2008-01-26 Chong Yidong <cyd@stupidchicken.com> |
8081 | ||
8082 | * xdisp.c (pos_visible_p): Handle the case where charpos falls on | |
8083 | invisible text covered with an ellipsis. | |
8084 | ||
bbb9fc1f RS |
8085 | 2008-01-25 Richard Stallman <rms@gnu.org> |
8086 | ||
8087 | * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and | |
8088 | jump back to beginning. Move some other initializations after that. | |
8089 | (Qwindow_text_change_functions, Vwindow_text_change_functions): | |
8090 | New variables. | |
8091 | (syms_of_xdisp): Init them. | |
8092 | ||
8093 | * keyboard.c (read_char): Restore echo_message_buffer after redisplay. | |
8094 | ||
0975aa24 SM |
8095 | * buffer.c (reset_buffer_local_variables): |
8096 | Implement `permanent-local-hook'. | |
bbb9fc1f | 8097 | (Qpermanent_local_hook): New variable. |
0975aa24 | 8098 | (syms_of_buffer): Init and staticpro it. |
bbb9fc1f | 8099 | |
79235cbe MA |
8100 | 2008-01-25 Michael Albinus <michael.albinus@gmx.de> |
8101 | ||
8102 | * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux. | |
8103 | ||
ccd8f7fe TTN |
8104 | 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org> |
8105 | ||
8106 | * fns.c (Fclrhash): Return TABLE. | |
8107 | ||
dfbe40f2 | 8108 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
223b3d1d YM |
8109 | |
8110 | * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. | |
8111 | (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p | |
8112 | is set even without positional changes. | |
8113 | (x_scroll_bar_clear): Set bar->redraw_needed_p. | |
8114 | ||
8115 | * macterm.h (struct scroll_bar): New member `redraw_needed_p'. | |
8116 | ||
dfbe40f2 | 8117 | 2008-01-23 Jason Rumney <jasonr@gnu.org> |
602e142f | 8118 | |
d6169680 JR |
8119 | * xterm.c (handle_one_xevent): Revert to counting chars not bytes. |
8120 | ||
602e142f JR |
8121 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside |
8122 | the unicode range available in MULE by locale-coding-system. | |
c041e2d1 | 8123 | Improve dbcs lead byte detection. Set event timestamp and modifiers |
602e142f JR |
8124 | earlier. |
8125 | ||
dfbe40f2 | 8126 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
5ee4de53 YM |
8127 | |
8128 | * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. | |
8129 | [MAC_OSX] (init_mac_osx_environment): Initialize it. | |
6f69e89b | 8130 | [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 |
5ee4de53 YM |
8131 | when used on child processes. |
8132 | ||
8c7a4ac5 MA |
8133 | 2008-01-21 Michael Albinus <michael.albinus@gmx.de> |
8134 | ||
e0df1b73 | 8135 | * dbusbind.c (Fdbus_method_return_internal): Rename from |
8c7a4ac5 | 8136 | Fdbus_method_return. |
e0df1b73 | 8137 | (Fdbus_unregister_object): Move to dbus.el. |
8c7a4ac5 | 8138 | (Fdbus_call_method, Fdbus_method_return_internal) |
e0df1b73 | 8139 | (Fdbus_send_signal): Improve debug messages. |
8c7a4ac5 | 8140 | |
8abe0f97 MR |
8141 | 2008-01-20 Martin Rudalics <rudalics@gmx.at> |
8142 | ||
8143 | * undo.c (undo_inhibit_record_point): New variable. | |
8144 | (syms_of_undo): Initialize it. | |
8145 | (record_point): Don't record point when undo_inhibit_record_point | |
8146 | is set. | |
8147 | ||
c3b232e4 SM |
8148 | 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca> |
8149 | ||
e69c4cae SM |
8150 | * process.c (list_processes_1): Don't use SCHARS on a nil buffer name. |
8151 | ||
823e0ebb SM |
8152 | * xdisp.c (Qauto_hscroll_mode): New var. |
8153 | (syms_of_xdisp): Initialize it. | |
8154 | (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each | |
8155 | window's buffer. | |
8156 | (hscroll_windows): Don't check automatic_hscrolling_p here. | |
8157 | ||
c3b232e4 SM |
8158 | * window.c (set_window_buffer): Don't unnecessarily reset hscroll and |
8159 | vscroll if we're setting window-buffer to the value it already has. | |
8160 | ||
76ed5e01 DN |
8161 | 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu> |
8162 | ||
8163 | * m/intel386.h: Remove references to XENIX. | |
8164 | ||
55e6d9b2 AS |
8165 | 2008-01-17 Andreas Schwab <schwab@suse.de> |
8166 | ||
8167 | * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR | |
8168 | instead of HAVE_X86_64_LIB64_DIR. | |
8169 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise. | |
8170 | ||
b16ed52d GM |
8171 | 2008-01-17 Glenn Morris <rgm@gnu.org> |
8172 | ||
8173 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according | |
8174 | to HAVE_X86_64_LIB64_DIR. | |
8175 | ||
6bed5c4a DN |
8176 | 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu> |
8177 | ||
8178 | * s/irix3-3.h: | |
8179 | * s/irix4-0.h: | |
8180 | * s/386-ix.h: | |
8181 | * s/domain.h: | |
8182 | * s/hpux9-x11r4.h: | |
8183 | * s/hpux9shxr4.h: Remove files for systems no longer supported. | |
8184 | ||
8185 | * sysdep.c: Remove code containing references to symbols defined | |
8186 | by unsupported systems. | |
8187 | ||
fdecf907 GM |
8188 | 2008-01-16 Glenn Morris <rgm@gnu.org> |
8189 | ||
8190 | * coding.c (select-safe-coding-system-function): Doc fix. | |
8191 | ||
9292328f GM |
8192 | 2008-01-15 Glenn Morris <rgm@gnu.org> |
8193 | ||
8194 | * config.in: Revert 2008-01-13 change: this is a generated file. | |
8195 | ||
944df511 MO |
8196 | 2008-01-13 Tom Tromey <tromey@redhat.com> |
8197 | ||
8198 | * lisp.h: Fix typo. | |
8199 | ||
8111ec05 DN |
8200 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
8201 | ||
f40f5dc3 DN |
8202 | * m/sequent-ptx.h: |
8203 | * m/sequent.h: | |
8204 | * s/ptx.h: | |
8205 | * s/ptx4-2.h: | |
8206 | * s/ptx4.h: Remove files for systems no longer supported. | |
8207 | ||
ce20b664 | 8208 | * callproc.c (Fcall_process): Fix previous change. |
8111ec05 | 8209 | |
e39a993c DN |
8210 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
8211 | ||
052e457f | 8212 | * unexsunos4.c: Remove file, system not supported anymore. |
e39a993c | 8213 | |
290afd83 JB |
8214 | * m/mips.h: |
8215 | * m/intel386.h: | |
e39a993c DN |
8216 | * callproc.c: |
8217 | * config.in: | |
8218 | * ecrt0.c: | |
8219 | * emacs.c: | |
8220 | * fileio.c: | |
8221 | * frame.c: | |
8222 | * getpagesize.h: | |
8223 | * keyboard.c: | |
8224 | * lread.c: | |
8225 | * process.c: | |
8226 | * puresize.h: | |
8227 | * sysdep.c: | |
8228 | * systty.h: | |
8229 | * syswait.h: | |
8230 | * unexec.c: | |
8231 | * xdisp.c: | |
8232 | * alloc.c: Remove code containing references to symbols defined by | |
8233 | unsupported systems. | |
8234 | ||
81cd7687 KH |
8235 | 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp> |
8236 | ||
8237 | * coding.c (detect_coding_mask): Fix previous change. | |
8238 | ||
218b3b76 KH |
8239 | 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp> |
8240 | ||
8241 | * coding.c (detect_coding_iso2022): New arg | |
8242 | latin_extra_code_state. Allow Latin extra codes only | |
8243 | when *latin_extra_code_state is nonzero. | |
8244 | (detect_coding_mask): If there is a NULL byte, detect the encoding | |
8245 | as UTF-16 or binary. If Latin extra codes exist, detect the | |
8246 | encoding as ISO-2022 only when there's no other proper encoding is | |
8247 | found. | |
8248 | ||
59ce725a | 8249 | 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
081f2203 | 8250 | |
59ce725a MB |
8251 | * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of |
8252 | #ifdef MAC_OS. | |
048addec | 8253 | |
59ce725a | 8254 | 2008-01-08 Richard Stallman <rms@gnu.org> |
048addec | 8255 | |
59ce725a | 8256 | * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes. |
048addec | 8257 | |
8290574e NR |
8258 | 2008-01-06 Nick Roberts <nickrob@snap.net.nz> |
8259 | ||
a0a3805c | 8260 | * keyboard.c (parse_menu_item): Don't enclose key bindings on |
8290574e NR |
8261 | menu bar in parentheses. |
8262 | ||
f3041af1 DN |
8263 | 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu> |
8264 | ||
8265 | * m/7300.h: | |
8266 | * m/acorn.h: | |
8267 | * m/alliant-2800.h: | |
8268 | * m/alliant.h: | |
8269 | * m/alliant1.h: | |
8270 | * m/alliant4.h: | |
8271 | * m/altos.h: | |
8272 | * m/amdahl.h: | |
8273 | * m/apollo.h: | |
8274 | * m/att3b.h: | |
8275 | * m/aviion-intel.h: | |
8276 | * m/aviion.h: | |
8277 | * m/celerity.h: | |
8278 | * m/clipper.h: | |
8279 | * m/cnvrgnt.h: | |
8280 | * m/convex.h: | |
8281 | * m/cydra5.h: | |
8282 | * m/delta88k.h: | |
8283 | * m/dpx2.h: | |
8284 | * m/dual.h: | |
8285 | * m/elxsi.h: | |
8286 | * m/f301.h: | |
8287 | * m/gould-np1.h: | |
8288 | * m/gould.h: | |
8289 | * m/i860.h: | |
8290 | * m/ibmps2-aix.h: | |
8291 | * m/ibmrt-aix.h: | |
8292 | * m/ibmrt.h: | |
8293 | * m/irist.h: | |
8294 | * m/is386.h: | |
8295 | * m/isi-ov.h: | |
8296 | * m/mega68.h: | |
8297 | * m/mg1.h: | |
8298 | * m/news-r6.h: | |
8299 | * m/news-risc.h: | |
8300 | * m/news.h: | |
8301 | * m/nh3000.h: | |
8302 | * m/nh4000.h: | |
8303 | * m/ns16000.h: | |
8304 | * m/ns32000.h: | |
8305 | * m/nu.h: | |
8306 | * m/orion.h: | |
8307 | * m/orion105.h: | |
8308 | * m/paragon.h: | |
8309 | * m/pfa50.h: | |
8310 | * m/plexus.h: | |
8311 | * m/pyramid.h: | |
8312 | * m/pyrmips.h: | |
8313 | * m/sh3el.h: | |
8314 | * m/sps7.h: | |
8315 | * m/sr2k.h: | |
8316 | * m/stride.h: | |
8317 | * m/sun1.h: | |
8318 | * m/sun2.h: | |
8319 | * m/sun3-68881.h: | |
8320 | * m/sun3-fpa.h: | |
8321 | * m/sun3-soft.h: | |
8322 | * m/sun3.h: | |
8323 | * m/sun386.h: | |
8324 | * m/symmetry.h: | |
8325 | * m/tad68k.h: | |
8326 | * m/tahoe.h: | |
8327 | * m/targon31.h: | |
8328 | * m/tek4300.h: | |
8329 | * m/tekxd88.h: | |
8330 | * m/tower32.h: | |
8331 | * m/tower32v3.h: | |
8332 | * m/ustation.h: | |
8333 | * m/wicat.h: | |
8334 | * m/xps100.h: | |
8335 | * s/cxux.h: | |
8336 | * s/cxux7.h: | |
8337 | * s/dgux.h: | |
8338 | * s/dgux4.h: | |
8339 | * s/dgux5-4-3.h: | |
8340 | * s/dgux5-4r2.h: | |
8341 | * s/esix.h: | |
8342 | * s/esix5r4.h: | |
8343 | * s/hiuxmpp.h: | |
8344 | * s/hiuxwe2.h: | |
8345 | * s/iris3-5.h: | |
8346 | * s/iris3-6.h: | |
8347 | * s/isc2-2.h: | |
8348 | * s/isc3-0.h: | |
8349 | * s/isc4-0.h: | |
8350 | * s/isc4-1.h: | |
8351 | * s/newsos5.h: | |
8352 | * s/newsos6.h: | |
8353 | * s/osf1.h: | |
8354 | * s/osf5-0.h: | |
8355 | * s/riscix1-1.h: | |
8356 | * s/riscix12.h: | |
8357 | * s/sco4.h: | |
8358 | * s/sco5.h: | |
8359 | * s/sunos4-0.h: | |
8360 | * s/sunos4-1.h: | |
8361 | * s/sunos413.h: | |
8362 | * s/sunos4shr.h: | |
8363 | * s/umax.h: | |
8364 | * s/unipl5-2.h: | |
8365 | * s/xenix.h: | |
8366 | * cxux-crt0.s: | |
8367 | * unexapollo.c: | |
8368 | * unexconvex.c: | |
8369 | * unexenix.c: | |
8370 | * unexsni.c: Remove files for systems no longer supported. | |
8371 | ||
8372 | * m/intel386.h: Remove references to unsupported systems. | |
8373 | ||
8374 | * w32.c (get_emacs_configuration): Remove reference to i860. | |
8375 | ||
8376 | * sysdep.c: Remove dead code. | |
8377 | ||
d35e1cd7 DN |
8378 | 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu> |
8379 | ||
8380 | * s/rtu.h: | |
a0a3805c | 8381 | * m/masscomp.h: Remove files. Platform is obsolete. |
d35e1cd7 | 8382 | |
abe136ee MA |
8383 | 2008-01-04 Michael Albinus <michael.albinus@gmx.de> |
8384 | ||
8385 | * dbusbind.c (Fdbus_method_return): New function. | |
8386 | (xd_read_message): Add the serial number to the event. | |
8387 | (Fdbus_register_method): Activate the function. | |
8388 | ||
87df3c32 SM |
8389 | 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca> |
8390 | ||
8391 | * keyboard.c (read_key_sequence): Fix typo. | |
8392 | ||
5125905e MA |
8393 | 2008-01-03 Michael Albinus <michael.albinus@gmx.de> |
8394 | ||
8395 | * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE. | |
8396 | (xd_signature, xd_append_arg): Handle element type detection for | |
8397 | empty arrays. | |
8398 | (Fdbus_call_method, Fdbus_send_signal): Undo type casting for | |
8399 | SDATA () calls; this must be solved more general. | |
8400 | (Fdbus_register_signal): Use SBYTES instead of strlen. | |
8401 | ||
8bba1b5c MH |
8402 | 2008-01-03 Magnus Henoch <magnus@zemdatav> |
8403 | ||
8404 | * dbusbind.c (xd_append_arg): Use unsigned char instead of | |
8405 | unsigned int for byte values (necessary for big-endian platform). | |
2c3a8b27 | 8406 | (Fdbus_call_method): Handle the case of no returned arguments. |
8bba1b5c | 8407 | |
a0a3805c | 8408 | 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change) |
15f16c1b MA |
8409 | |
8410 | * dbusbind.c (xd_read_message): Use non-static input_event struct. | |
8411 | ||
a271e124 MH |
8412 | 2007-12-31 Magnus Henoch <mange@freemail.hu> |
8413 | ||
8414 | * dbusbind.c (xd_signature): Signature of variant is just "v". | |
8415 | ||
17bc8f94 MA |
8416 | 2007-12-30 Michael Albinus <michael.albinus@gmx.de> |
8417 | ||
87df3c32 SM |
8418 | * dbusbind.c: Fix several errors and compiler warnings. |
8419 | Reported by Tom Tromey <tromey@redhat.com> | |
17bc8f94 MA |
8420 | (XD_ERROR, XD_DEBUG_MESSAGE) |
8421 | (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)". | |
8422 | (xd_append_arg): Part for basic D-Bus types rewitten. | |
8423 | (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and | |
8424 | DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not | |
8425 | appropriate. | |
8426 | (xd_read_message): Return Qnil. Don't signal an error; it is not | |
8427 | useful during event reading. | |
8428 | (Fdbus_register_signal): Signal an error if the check for | |
8429 | FUNCTIONP fails. | |
8430 | (Fdbus_register_method): New function. The implementation is not | |
8431 | complete, the call of the function signals an error therefore. | |
8432 | (Fdbus_unregister_object): New function, renamed from | |
8433 | Fdbus_unregister_signal. The initial check signals an error, if | |
5125905e | 8434 | the object is not well formed. |
17bc8f94 | 8435 | |
dd6f2802 RS |
8436 | 2007-12-30 Richard Stallman <rms@gnu.org> |
8437 | ||
8438 | * textprop.c (get_char_property_and_overlay): | |
8439 | Signal error if POSITION is out of range in a buffer. | |
8440 | ||
1da8a031 MR |
8441 | 2007-12-29 Martin Rudalics <rudalics@gmx.at> |
8442 | ||
8443 | * w32fns.c (Fx_create_frame): Make copy of frame parameters | |
8444 | because the original parameters are in pure storage now. | |
8445 | ||
5742be86 YM |
8446 | 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8447 | ||
8448 | * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area. | |
8449 | ||
b014713c EZ |
8450 | 2007-12-22 Eli Zaretskii <eliz@gnu.org> |
8451 | ||
b17f53ab MB |
8452 | * callint.c (syms_of_callint) <command-history>: Add reference to |
8453 | history-length in the doc string. | |
048addec | 8454 | |
b17f53ab | 8455 | 2007-12-17 Jason Rumney <jasonr@gnu.org> |
048addec | 8456 | |
b17f53ab MB |
8457 | * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned |
8458 | before passing as wParam. | |
048addec | 8459 | |
9af5078b MA |
8460 | 2007-12-22 Michael Albinus <michael.albinus@gmx.de> |
8461 | ||
8462 | * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE, | |
8463 | DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64, | |
8464 | DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE. | |
8465 | Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit | |
8466 | as number. | |
8467 | (Fdbus_call_method): Fix docstring. | |
8468 | ||
87cf1a39 MA |
8469 | 2007-12-21 Michael Albinus <michael.albinus@gmx.de> |
8470 | ||
8471 | * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE): | |
8472 | New macros. | |
87df3c32 | 8473 | (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE. |
a0a3805c JB |
8474 | (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE. |
8475 | Simplify. | |
87cf1a39 MA |
8476 | (xd_signature): New function. |
8477 | (xd_append_arg): Compute also signatures. Major rewrite. | |
8478 | (xd_retrieve_arg): Make debug messages friendly. | |
87df3c32 SM |
8479 | (Fdbus_call_method, Fdbus_send_signal): Extend docstring. |
8480 | Check for signatures of arguments. | |
87cf1a39 | 8481 | |
54371585 MA |
8482 | 2007-12-19 Michael Albinus <michael.albinus@gmx.de> |
8483 | ||
8484 | * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean) | |
8485 | (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32) | |
8486 | (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64) | |
8487 | (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path) | |
8488 | (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant) | |
87df3c32 | 8489 | (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols. |
54371585 MA |
8490 | (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro. |
8491 | (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types. | |
87df3c32 | 8492 | (xd_retrieve_value): Remove. Functionality included in ... |
54371585 MA |
8493 | (xd_append_arg): New function. |
8494 | (Fdbus_call_method, Fdbus_send_signal): Apply it. | |
8495 | ||
f5306ca3 MA |
8496 | 2007-12-16 Michael Albinus <michael.albinus@gmx.de> |
8497 | ||
8498 | * dbusbind.c (top): Include <stdio.h>. | |
8499 | (Fdbus_call_method, Fdbus_send_signal): Apply type cast in | |
8500 | dbus_message_new_method_call and dbus_message_new_signal. | |
87df3c32 SM |
8501 | (Fdbus_register_signal): Rename unique_name to uname. |
8502 | Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of | |
f5306ca3 MA |
8503 | non-existing unique name. Fix typos in matching rule. Return an |
8504 | object which is useful in Fdbus_unregister_signal. | |
8505 | (Fdbus_unregister_signal): Reimplementation, in order to remove | |
8506 | only the corresponding entry. | |
8507 | (Vdbus_registered_functions_table): Change the order of entries. | |
8508 | Apply these changes in xd_read_message and Fdbus_register_signal. | |
8509 | ||
77a28bbf AS |
8510 | 2007-12-16 Andreas Schwab <schwab@suse.de> |
8511 | ||
8512 | * fileio.c (Finsert_file_contents): Fix overflow check to not | |
8513 | depend on undefined integer overflow. | |
8514 | ||
2e3566d8 JR |
8515 | 2007-12-14 Jason Rumney <jasonr@gnu.org> |
8516 | ||
8517 | * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT | |
8518 | for characters above 127. | |
8519 | ||
bf254037 JR |
8520 | 2007-12-13 Jason Rumney <jasonr@gnu.org> |
8521 | ||
8522 | * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check | |
8523 | before dereferencing array. | |
8524 | (lookup_vk_code): Remove zero comparison. | |
8525 | ||
eb7c7bf5 MA |
8526 | 2007-12-14 Michael Albinus <michael.albinus@gmx.de> |
8527 | ||
8528 | * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) | |
87df3c32 SM |
8529 | (Fdbus_call_method, Fdbus_send_signal, xd_read_message): |
8530 | Use `unsigned int' instead of `uint'. | |
eb7c7bf5 MA |
8531 | (xd_read_message, Fdbus_register_signal): Split expressions into |
8532 | multiple lines before operators "&&" and "||", according to the | |
8533 | GNU Coding Standards. | |
8534 | ||
34fb0fc9 EZ |
8535 | 2007-12-14 Eli Zaretskii <eliz@gnu.org> |
8536 | ||
8537 | * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT. | |
8538 | ||
c7d97628 JL |
8539 | 2007-12-12 Juri Linkov <juri@jurta.org> |
8540 | ||
8541 | * buffer.c (Frename_buffer): In interactive spec replace | |
8542 | `read-buffer' with `read-string' that uses `buffer-name-history' | |
8543 | as history, and the current buffer's name as default. | |
8544 | ||
3709505e SM |
8545 | 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> |
8546 | ||
8547 | * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of | |
8548 | manipulating the backtrace manually. | |
8549 | (make_lispy_event): Merge the ASCII and MULTIBYTE cases. | |
8550 | (struct backtrace, backtrace_list): Remove. | |
8551 | (command_loop_1): Remove dead var `no_direct'. | |
8552 | ||
8553 | * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also | |
8554 | preserve non-built-in buffer-local variables. | |
8555 | (Fkill_all_local_variables): Don't re-create&re-set permanent | |
8556 | buffer-local variables. | |
8557 | ||
e2bec886 JL |
8558 | 2007-12-09 Juri Linkov <juri@jurta.org> |
8559 | ||
8560 | * buffer.c (Frename_buffer): Change interactive spec from "s" to | |
8561 | Lisp code that uses `read-buffer' with current buffer as default. | |
8562 | ||
a31d47c7 MA |
8563 | 2007-12-08 Michael Albinus <michael.albinus@gmx.de> |
8564 | ||
8565 | * dbusbind.c (xd_read_message): Generate an event for every | |
8566 | registered handler. There might be several handlers registered | |
8567 | for the same signal. | |
8568 | (Fdbus_register_signal): Don't overwrite a registration for the | |
8569 | same signal. Add a new registration if handlers are different. | |
8570 | (Vdbus_registered_functions_table): Rework doc string. | |
8571 | ||
52da95fa MA |
8572 | 2007-12-07 Michael Albinus <michael.albinus@gmx.de> |
8573 | ||
8574 | * dbusbind.c (Fdbus_get_unique_name, xd_read_message) | |
8575 | (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and | |
8576 | DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths. | |
8577 | (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal): | |
8578 | Unify argument lists. | |
a0a3805c | 8579 | (xd_read_message, Fdbus_register_signal): Reorder and extend event |
52da95fa MA |
8580 | arguments and hash table keys. Use unique name for service. |
8581 | (Fdbus_unregister_signal): Remove checks. | |
8582 | (Vdbus_registered_functions_table): Fix doc string. | |
8583 | ||
e5e76c04 | 8584 | 2007-12-05 Magnus Henoch <mange@freemail.hu> |
0277bfa1 RS |
8585 | |
8586 | * process.c (make_process): Initialize pty_flag to 0. | |
8587 | ||
e5e76c04 | 8588 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
44b1dc2e JR |
8589 | |
8590 | * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly | |
8591 | specified XBMs. | |
8592 | ||
e5e76c04 | 8593 | 2007-12-05 Richard Stallman <rms@gnu.org> |
048addec | 8594 | |
e5e76c04 | 8595 | * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix. |
048addec | 8596 | |
e5e76c04 | 8597 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 8598 | |
e5e76c04 MB |
8599 | * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]: |
8600 | New variable. | |
8601 | (mac_try_close_socket) [MAC_OSX]: New function. | |
8602 | [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: | |
8603 | Update cfsockets_for_select. Replace invalid CFRunLoop source. | |
048addec | 8604 | |
e5e76c04 MB |
8605 | * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]: |
8606 | Use mac_try_close_socket. | |
048addec | 8607 | |
e5e76c04 | 8608 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 8609 | |
e5e76c04 MB |
8610 | * unexmacosx.c (unrelocate): New argument BASE. Use it instead of |
8611 | reloc_base. | |
8612 | (copy_dysymtab): Compute relocation base here. | |
8613 | (rebase_reloc_address) [__ppc64__]: New function. | |
8614 | (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be | |
8615 | changed. | |
048addec | 8616 | |
e5e76c04 | 8617 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
048addec | 8618 | |
e5e76c04 | 8619 | * w32proc.c (sys_spawnve): Quote args with wildcards. |
048addec | 8620 | |
e5e76c04 | 8621 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 8622 | |
e5e76c04 MB |
8623 | * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and |
8624 | __objc_* sections. | |
8625 | (unrelocate) [_LP64]: Set relocation base to address of data segment. | |
048addec | 8626 | |
96faeb40 MA |
8627 | 2007-12-05 Michael Albinus <michael.albinus@gmx.de> |
8628 | ||
8629 | * dbusbind.c (xd_read_message): Return value is a Lisp_Object. | |
8630 | Move check for Vdbus_registered_functions_table to | |
8631 | xd_read_queued_messages. | |
8632 | (xd_read_queued_messages): Protect xd_read_message calls by | |
8633 | internal_condition_case_1. | |
8634 | ||
39abdd4a MA |
8635 | 2007-12-04 Michael Albinus <michael.albinus@gmx.de> |
8636 | ||
87df3c32 | 8637 | * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from |
39abdd4a | 8638 | Qdbus_system_bus and Qdbus_session_bus, respectively. |
87df3c32 | 8639 | (Vdbus_intern_symbols): Remove. |
39abdd4a | 8640 | (Vdbus_registered_functions_table): New hash table. |
87df3c32 | 8641 | (XD_SYMBOL_INTERN_SYMBOL): Remove. |
39abdd4a | 8642 | (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal): |
87df3c32 | 8643 | Rewrite in order to manage registered functions by hash table |
39abdd4a MA |
8644 | Vdbus_registered_functions_table. |
8645 | ||
880820fe | 8646 | 2007-12-03 Jan Djärv <jan.h.d@swipnet.se> |
7ba30657 JD |
8647 | |
8648 | * xterm.c: Update URL to Window Manager Specification in comment. | |
8649 | ||
033b73e2 MA |
8650 | 2007-12-02 Michael Albinus <michael.albinus@gmx.de> |
8651 | ||
8652 | * config.in (HAVE_DBUS): Add. | |
8653 | ||
a0a3805c | 8654 | * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined. |
033b73e2 MA |
8655 | (ALL_CFLAGS): Add ${DBUS_CFLAGS}. |
8656 | (obj): Add $(DBUS_OBJ). | |
8657 | (LIBES): Add $(DBUS_LIBS). | |
8658 | (dbusbind.o): New target. | |
8659 | ||
8660 | * dbusbind.c: New file. | |
8661 | ||
8662 | * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined. | |
8663 | ||
8664 | * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS". | |
a0a3805c | 8665 | (Qdbus_event): New Lisp symbol. |
033b73e2 | 8666 | (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT. |
87df3c32 | 8667 | (gobble_input): Call xd_read_queued_messages, reading D-Bus messages. |
033b73e2 MA |
8668 | (keys_of_keyboard ): Define dbus-event. |
8669 | ||
8670 | * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined. | |
8671 | ||
39d0bf74 RS |
8672 | 2007-12-01 Richard Stallman <rms@gnu.org> |
8673 | ||
8674 | * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix. | |
8675 | ||
f3157c65 JR |
8676 | 2007-11-30 Jason Rumney <jasonr@gnu.org> |
8677 | ||
8678 | * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window. | |
8679 | (w32con_reset_terminal_modes): Clear screen buffer. | |
f1e8dcf1 JR |
8680 | (w32_face_attributes): Don't use color indexes that are out of range. |
8681 | Only reverse the default colors. | |
f3157c65 JR |
8682 | |
8683 | * xfaces.c (map_tty_color, tty_color_name): Remove special case for | |
8684 | WINDOWSNT. | |
8685 | ||
8686 | * w32console.c, w32term.h (vga_stdcolor_name): Remove. | |
8687 | ||
b510360c JR |
8688 | 2007-11-29 Jason Rumney <jasonr@gnu.org> |
8689 | ||
8690 | * w32console.c: Leave HAVE_WINDOW_SYSTEM defined. | |
8691 | (w32_face_attributes): Use Vtty_defined_color_alist to determine | |
8692 | if the terminal colors are initialized. | |
8693 | (unspecified_fg, unspecified_bg): Remove unused declarations. | |
8694 | ||
4b7ab1c4 AS |
8695 | 2007-11-29 Andreas Schwab <schwab@suse.de> |
8696 | ||
8697 | * keyboard.c (apply_modifiers): Fix typo. | |
8698 | ||
4bb6c266 RS |
8699 | 2007-11-29 Richard Stallman <rms@gnu.org> |
8700 | ||
8701 | * keymap.c (Fcurrent_local_map): Doc fix. | |
8702 | ||
aa44cd84 GM |
8703 | 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change) |
8704 | ||
8705 | * s/gnu-kfreebsd.h: New file. | |
8706 | ||
21ec2c43 SM |
8707 | 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca> |
8708 | ||
cc648cef SM |
8709 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): |
8710 | Don't cast redundantly. | |
8711 | ||
21ec2c43 SM |
8712 | * keyboard.c (KEY_TO_CHAR): New macro. |
8713 | (parse_modifiers, apply_modifiers): Accept integer arguments. | |
8714 | (read_key_sequence): Use them to unify the "shift->unshift" mapping | |
8715 | for chars and symbol keys. | |
8716 | After doing such remapping, apply function-key-map again. | |
8717 | ||
73e72da4 DN |
8718 | 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu> |
8719 | ||
8720 | * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not | |
8721 | compiled anymore. | |
8722 | ||
254693ff AS |
8723 | 2007-11-26 Andreas Schwab <schwab@suse.de> |
8724 | ||
8725 | * process.c (list_processes_1): Fix indentation level of the | |
8726 | command column. | |
8727 | ||
ff6e6ac8 AS |
8728 | 2007-11-23 Andreas Schwab <schwab@suse.de> |
8729 | ||
8730 | * editfns.c (Fformat): Handle %c specially since it requires the | |
8731 | argument to be of type int. | |
8732 | ||
f7cf8b20 SM |
8733 | 2007-11-23 Markus Triska <markus.triska@gmx.at> |
8734 | ||
8735 | * emacs.c (main): Call init_editfns before init_process, since | |
2a2e8de7 | 8736 | init_process sets Vprocess_connection_type depending on OS release. |
f7cf8b20 | 8737 | |
569c11e3 SM |
8738 | 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca> |
8739 | ||
8787dd73 SM |
8740 | * data.c (do_symval_forwarding): Use same code as in find_symbol_value. |
8741 | (find_symbol_value): Use do_symval_forwarding. | |
8742 | ||
569c11e3 SM |
8743 | * data.c (set_internal): Set the value in the `cons-cell' (for |
8744 | Buffer_Local_values) not only for frame-local variables. | |
8745 | ||
6af1696d AS |
8746 | 2007-11-22 Andreas Schwab <schwab@suse.de> |
8747 | ||
8748 | * data.c (Fnumber_to_string): Add cast when passing EMACS_INT | |
8749 | values to sprintf. | |
8750 | * keymap.c (Fsingle_key_description): Likewise. | |
8751 | * print.c (print_object): Likewise. | |
8752 | ||
880820fe | 8753 | 2007-11-22 Jan Djärv <jan.h.d@swipnet.se> |
d4ad8c04 JD |
8754 | |
8755 | * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if | |
8756 | file for image is nil. | |
8757 | ||
7c401d15 DN |
8758 | 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu> |
8759 | ||
8760 | * term.c: Include stdarg.h. | |
569c11e3 | 8761 | (fatal): Implement using varargs. |
a0a3805c | 8762 | * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change). |
7c401d15 | 8763 | |
64e16c3c SM |
8764 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
8765 | ||
8766 | * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field. | |
8767 | * data.c (store_symval_forwarding): Get type from buffer_objfwd. | |
8768 | Update call to buffer_slot_type_mismatch. | |
8769 | * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove. | |
8770 | (buffer_slot_type_mismatch): Update. | |
8771 | * buffer.c (buffer_local_types): Remove. | |
8772 | (buffer_slot_type_mismatch): Get the symbol and type as arguments. | |
8773 | (defvar_per_buffer): Set the type in the buffer_objfwd. | |
8774 | ||
d4aa48db | 8775 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
5f42a7eb | 8776 | |
64e16c3c SM |
8777 | * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): |
8778 | CreateFileMapping returns NULL on failure. | |
5f42a7eb | 8779 | |
d4aa48db | 8780 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
048addec | 8781 | |
d4aa48db MB |
8782 | * search.c (Fset_match_data): Remove the `evaporate' feature. |
8783 | (unwind_set_match_data): Don't use the `evaporate' feature. | |
437dfb9f | 8784 | |
bdae0540 JR |
8785 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
8786 | ||
8787 | * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type. | |
8788 | ||
8789 | * w32console.c (w32con_write_glyphs): Remove unused variables. | |
8790 | ||
202c09a8 DN |
8791 | 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu> |
8792 | ||
b951420f DN |
8793 | * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor. |
8794 | ||
202c09a8 DN |
8795 | * s/darwin.h (MULTI_KBOARD): Remove. |
8796 | ||
8797 | * macfns.c (x_create_tip_frame, Fx_create_frame) | |
8798 | (x_create_tip_frame): Don't deal with MULTI_KBOARD. | |
8799 | ||
bae72c12 SM |
8800 | 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca> |
8801 | ||
e7c10f83 SM |
8802 | * buffer.c (Fbuffer_local_value): Remove redundant test. |
8803 | (swap_out_buffer_local_variables): Swap out binding in `buffer' rather | |
8804 | than in `current-buffer' to match the comment. | |
8805 | Do the swap using swap_in_global_binding. | |
8806 | ||
136eb6ed SM |
8807 | * data.c (store_symval_forwarding, set_internal): |
8808 | * eval.c (specbind): Remove dead code. | |
8809 | ||
bae72c12 SM |
8810 | * coding.c (detect_coding, Fupdate_coding_systems_internal): |
8811 | * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE | |
8812 | Since we do not want to see internal Lisp_*fwd objects here. | |
8813 | ||
880820fe | 8814 | 2007-11-18 Jan Djärv <jan.h.d@swipnet.se> |
95fbaefc | 8815 | |
3d66b985 JD |
8816 | * sysdep.c (init_system_name): Use getaddrinfo if available. |
8817 | ||
95fbaefc JD |
8818 | * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click) |
8819 | (x_scroll_bar_note_movement): start, end, with, height in struct | |
8820 | scroll_bar are integers and not Lisp_Object, so remove XINT for them. | |
8821 | ||
6c1d8cb6 DN |
8822 | 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu> |
8823 | ||
8824 | * puresize.h (BASE_PURESIZE): Increase to 1190000. | |
8825 | ||
30f95089 SM |
8826 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
8827 | ||
66b04bd4 SM |
8828 | * buffer.h (struct buffer): Move `undo_list' back to before `name'. |
8829 | This undoes Richard's change of 14-Oct-2002. | |
8830 | ||
6d3f2bb2 SM |
8831 | * alloc.c (allocate_other_vector): |
8832 | * lisp.h (allocate_other_vector): Remove. | |
8833 | ||
b05b4e27 SM |
8834 | * window.c (struct save_window_data): Move non-lisp data to the end |
8835 | and make it `int' rather than Lisp_Object. | |
8836 | (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. | |
8837 | Done wrap/unwrap integer values. | |
8838 | (Fset_window_configuration, compare_window_configurations): | |
8839 | Update use of fields to their new types. | |
8840 | ||
056ce195 SM |
8841 | * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. |
8842 | Turn integer fields into `int'. Merge x_window_low and x_window_high. | |
8843 | (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW) | |
8844 | (SET_SCROLL_BAR_X_WINDOW): Remove. | |
8845 | (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET): | |
8846 | Access the new x_window field directly. | |
8847 | * xterm.c (x_scroll_bar_create): Use a pseudovector. | |
8848 | Don't wrap/unwrap integers into Lisp_Objects. | |
8849 | (XTset_vertical_scroll_bar, x_scroll_bar_handle_click) | |
8850 | (x_scroll_bar_report_motion): | |
8851 | Don't wrap/unwrap integers into Lisp_Objects. | |
8852 | (x_term_init): Use SDATA. | |
8853 | (x_window_to_scroll_bar, x_create_toolkit_scroll_bar) | |
8854 | (x_scroll_bar_set_handle, x_scroll_bar_remove) | |
8855 | (XTset_vertical_scroll_bar, x_scroll_bar_expose) | |
8856 | (x_scroll_bar_report_motion, x_scroll_bar_clear): | |
8857 | * xfns.c (x_set_background_color): | |
8858 | * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb): | |
8859 | Access the new x_window field directly. | |
8860 | ||
30f95089 SM |
8861 | * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. |
8862 | (allocate_pseudovector): Make non-static. | |
6d3f2bb2 | 8863 | |
30f95089 SM |
8864 | * lisp.h (enum pvec_type): New tag PVEC_OTHER. |
8865 | (allocate_pseudovector): Declare. | |
6f69e89b | 8866 | (ALLOCATE_PSEUDOVECTOR): Move from alloc.c. |
30f95089 | 8867 | |
9b6112e8 AS |
8868 | 2007-11-15 Andreas Schwab <schwab@suse.de> |
8869 | ||
30f95089 SM |
8870 | * editfns.c (Fformat): Correctly format EMACS_INT values. |
8871 | Also take precision into account when formatting an integer. | |
0f860bd7 | 8872 | |
9b6112e8 AS |
8873 | * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration. |
8874 | ||
262fcd41 SM |
8875 | 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca> |
8876 | ||
58da34c7 SM |
8877 | * keyboard.c (Fevent_symbol_parse_modifiers): New function. |
8878 | (syms_of_keyboard): Defsubr it. | |
8879 | ||
262fcd41 SM |
8880 | * data.c (swap_in_global_binding): Fix longstanding bug where |
8881 | store_symval_forwarding was not called with the right second argument, | |
8882 | thus causing objfwd-ing from being dropped. | |
8883 | ||
d29a9848 JB |
8884 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
8885 | ||
8886 | * macfns.c (Fx_create_frame, Fx_display_pixel_width) | |
8887 | (Fx_display_pixel_height, Fx_display_planes) | |
8888 | (Fx_display_color_cells, Fx_server_max_request_size) | |
8889 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
8890 | (Fx_display_visual_class, Fx_display_save_under): | |
8891 | * w32fns.c (Fx_create_frame, Fx_display_pixel_width) | |
8892 | (Fx_display_pixel_height, Fx_display_planes) | |
8893 | (Fx_display_color_cells, Fx_server_max_request_size) | |
8894 | (Fx_server_vendor, Fx_server_version, Fx_display_screens) | |
8895 | (Fx_display_mm_height, Fx_display_mm_width) | |
8896 | (Fx_display_backing_store, Fx_display_visual_class) | |
8897 | (Fw32_select_font, Fx_display_save_under): | |
8898 | * xfns.c (Fx_create_frame, Fx_display_pixel_width) | |
8899 | (Fx_display_pixel_height, Fx_display_planes) | |
8900 | (Fx_display_color_cells, Fx_server_max_request_size) | |
8901 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
8902 | (Fx_display_save_under): Fix typos in docstrings. | |
8903 | ||
74084731 JB |
8904 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
8905 | ||
8906 | * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values | |
8907 | corresponding to deleted entries; they are an implementation detail. | |
8908 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): | |
8909 | Remove variables. | |
8910 | (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames) | |
8911 | (w32_pass_multimedia_buttons_to_system, w32_strict_painting) | |
8912 | (Vw32_charset_info_alist, w32_to_x_color, w32_init_class) | |
8913 | (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers) | |
8914 | (w32_grabbed_keys, cancel_all_deferred_msgs): Make static. | |
d29a9848 | 8915 | (Fw32_define_rgb_color, Fw32_load_color_file) |
74084731 | 8916 | (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>: |
02b39a28 JB |
8917 | Fix typos in docstrings. |
8918 | (Fx_server_version): Reflow docstring. | |
8919 | (Fw32_shell_execute): Doc fixes. | |
74084731 | 8920 | |
fb053a1f JB |
8921 | 2007-11-13 Juanma Barranquero <lekktu@gmail.com> |
8922 | ||
8923 | * w32fns.c (Fw32_register_hot_key): Don't try to register hot key | |
8924 | if w32_parse_hot_key returned nil. | |
8925 | ||
a457417e | 8926 | 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9ec1bdb6 | 8927 | |
a457417e | 8928 | * xdisp.c (load_overlay_strings): Fix copy&paste typo. |
9ec1bdb6 | 8929 | |
4b219faa JR |
8930 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
8931 | ||
8932 | * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define. | |
8933 | ||
8934 | * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT. | |
8935 | ||
8936 | * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]: | |
8937 | Remove W32_SCROLL_BAR_CLICK_EVENT. | |
8938 | ||
8939 | * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise. | |
8940 | Add MULTIMEDIA_KEY_EVENT. | |
8941 | ||
8942 | * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys. | |
8943 | (lispy_multimedia_keys) [WINDOWSNT]: New array. | |
8944 | (make_lispy_event) [WINDOWSNT]: Use it to translate | |
8945 | MULTIMEDIA_KEY_EVENT. | |
8946 | ||
8947 | * w32term.h (WM_APPCOMMAND): Define if not already. | |
8948 | (GET_APPCOMMAND_LPARAM): Likewise. | |
8949 | ||
8950 | * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from | |
8951 | WM_APPCOMMAND. | |
8952 | ||
8953 | * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option. | |
8954 | (syms_of_w32fns): Export and initialize it. | |
8955 | (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket. | |
8956 | ||
c12ecb0a | 8957 | 2007-11-09 Chong Yidong <cyd@stupidchicken.com> |
d388d2ac CY |
8958 | |
8959 | * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE | |
8960 | twice. | |
8961 | ||
8962 | * xdisp.c (handle_face_prop): Fix last change. | |
8963 | ||
c12ecb0a | 8964 | 2007-11-09 Richard Stallman <rms@gnu.org> |
048addec | 8965 | |
c12ecb0a MB |
8966 | * xdisp.c (handle_face_prop): Test for strings that came from overlays, |
8967 | not just for after-strings and before-strings. | |
8968 | Call face_for_overlay_string and pass the overlay to it. | |
8969 | (handle_display_prop): Determine whether property came from an overlay. | |
8970 | Pass OVERLAY arg to handle_single_display_spec. | |
8971 | (handle_single_display_spec): New arg OVERLAY sets it->from_overlay. | |
8972 | (load_overlay_strings): Fill in it->string_overlays. | |
8973 | (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays. | |
b5cb6072 | 8974 | |
c12ecb0a MB |
8975 | * xfaces.c (face_for_overlay_string): Function renamed from |
8976 | face_at_buffer_position_no_overlays, and add arg OVERLAY. | |
b5cb6072 | 8977 | |
c12ecb0a MB |
8978 | * dispextern.h (struct it): New elt string_overlays. |
8979 | New elt from_overlay, also in stack. | |
8980 | Rearrange a few elements. | |
8981 | (face_for_overlay_string): Decl renamed from | |
8982 | face_at_buffer_position_no_overlays, and add argument. | |
15fff01d | 8983 | |
c12ecb0a | 8984 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0065bb74 | 8985 | |
c12ecb0a MB |
8986 | * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays |
8987 | to get the base face for an overlay string. | |
0d8466cc | 8988 | |
c12ecb0a | 8989 | * dispextern.h (face_at_buffer_position_no_overlays): Add decl. |
15fff01d | 8990 | |
c12ecb0a | 8991 | * xfaces.c (face_at_buffer_position_no_overlays): New function. |
2fae9111 | 8992 | |
c12ecb0a | 8993 | * xdisp.c (handle_stop): Move some code out of loop. |
2d6c1fc0 | 8994 | |
c12ecb0a | 8995 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
07025a55 | 8996 | |
c12ecb0a MB |
8997 | * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes): |
8998 | Fix conversion from Lisp object to ATSUFontID. | |
07025a55 | 8999 | |
c12ecb0a | 9000 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
07025a55 | 9001 | |
c12ecb0a | 9002 | * xdisp.c (Fformat_mode_line): Do nothing when noninteractive. |
3a232704 | 9003 | |
c12ecb0a | 9004 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
539e92ad | 9005 | |
c12ecb0a MB |
9006 | * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge): |
9007 | Don't assume regions are aligned to page boundary. | |
9008 | (print_load_command_name): Add LC_UUID if defined. | |
3a232704 | 9009 | |
c12ecb0a | 9010 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0cb8bb48 | 9011 | |
c12ecb0a | 9012 | * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring. |
539e92ad | 9013 | |
b8ddfbcc JR |
9014 | 2007-11-07 Jason Rumney <jasonr@gnu.org> |
9015 | ||
9016 | * s/windows95.h: Remove. | |
9017 | ||
880820fe | 9018 | 2007-11-06 Jan Djärv <jan.h.d@swipnet.se> |
e624c3f9 JD |
9019 | |
9020 | * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and | |
9021 | abort with a message on unhandled store_type values. | |
9022 | ||
880820fe | 9023 | 2007-11-01 Jan Djärv <jan.h.d@swipnet.se> |
ac1278c1 JD |
9024 | |
9025 | * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h: | |
9026 | Remove HAVE_X11R5 and HAVE_X11R4. | |
9027 | ||
04a697fe DN |
9028 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
9029 | ||
9030 | * Makefile.in: Remove references to sunfns.c and sunfns.o. | |
9031 | ||
880820fe | 9032 | 2007-11-01 Johan Bockgård <bojohan@gnu.org> |
56dad874 GM |
9033 | |
9034 | * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): | |
fb053a1f | 9035 | Don't set s->stippled_p here, since it has already been set by |
56dad874 GM |
9036 | x_set_glyph_string_gc from x_draw_glyph_string. |
9037 | ||
07e5c0b0 DN |
9038 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
9039 | ||
2a2e8de7 | 9040 | * sunfns.c: Remove file. |
07e5c0b0 DN |
9041 | |
9042 | * m/sun386.h: | |
9043 | * m/sun2.h: | |
9044 | * m/sparc.h: Remove Sun windows code. | |
9045 | ||
1bc973c2 SM |
9046 | 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca> |
9047 | ||
9048 | * keyboard.c (syms_of_keyboard): Initialize the initial_kboard. | |
9049 | (init_keyboard): Set current_kboard's window-system to nil. | |
9050 | (tty_read_avail_input): Typo. | |
9051 | * frame.c (make_initial_frame): Don't initialize the initial_kboard. | |
9052 | ||
c22140f6 DN |
9053 | 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu> |
9054 | ||
9055 | * s/usg5-4.h: | |
9056 | * s/usg5-3.h: | |
9057 | * s/ptx.h: | |
9058 | * m/is386.h: | |
9059 | * m/ibmps2-aix.h: | |
2a2e8de7 | 9060 | * Makefile.in: Remove all mentions of X10. |
c22140f6 DN |
9061 | |
9062 | * dispnew.c (syms_of_display): Don't mention version 10. | |
9063 | ||
660a8219 JB |
9064 | 2007-10-28 Juanma Barranquero <lekktu@gmail.com> |
9065 | ||
9066 | * makefile.w32-in (OBJ1): Remove abbrev.$(O). | |
9067 | ($(BLD)/abbrev.$(O)): Remove. | |
9068 | ||
e047f448 SM |
9069 | 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca> |
9070 | ||
9071 | Rewrite abbrev.c in Elisp. | |
9072 | * image.c (Qcount): Don't declare as extern. | |
9073 | (syms_of_image): Initialize and staticpro `Qcount'. | |
9074 | * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. | |
9075 | * emacs.c (main): Don't call syms_of_abbrev. | |
9076 | * Makefile.in (obj): Remove abbrev.o. | |
9077 | (abbrev.o): Remove. | |
9078 | * abbrev.c: Remove. | |
9079 | ||
67b73e3a MR |
9080 | 2007-10-26 Martin Rudalics <rudalics@gmx.at> |
9081 | ||
9082 | * window.c (window_min_size_2): Don't count header-line. | |
9083 | ||
e3d7bd83 DN |
9084 | 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu> |
9085 | ||
9086 | * frame.h (struct frame): Move all bit fields after the first bit | |
660a8219 | 9087 | field to take advantage of the available space. Group all the |
e3d7bd83 DN |
9088 | chars together to reduce wasted space due to padding. |
9089 | ||
a3547743 JB |
9090 | 2007-10-26 Juanma Barranquero <lekktu@gmail.com> |
9091 | ||
e298936f JB |
9092 | * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings. |
9093 | ||
d3d47262 JB |
9094 | * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings) |
9095 | (Vdead, dont_register_blocks, staticvec, staticidx, interval_block) | |
9096 | (n_interval_blocks, init_strings, check_string_bytes, check_sblock) | |
9097 | (init_float, free_float, n_cons_blocks, init_cons, all_vectors) | |
9098 | (n_vectors, symbol_block, symbol_block_index, symbol_free_list) | |
9099 | (n_symbol_blocks, init_symbol, marker_block, marker_free_list) | |
9100 | (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float) | |
9101 | (last_marked, mark_object_loop_halt): Make static. | |
9102 | ||
a3547743 JB |
9103 | * frame.c (syms_of_frame) <delete-frame-functions>: |
9104 | Fix typo in docstring. | |
9105 | ||
14c71d8b JB |
9106 | 2007-10-25 Juanma Barranquero <lekktu@gmail.com> |
9107 | ||
9108 | * w32.c (init_environment): Fix tiny memory leak. | |
66199f74 | 9109 | (w32_get_resource): Remove unused variable `ok'. |
14c71d8b | 9110 | |
70b8d0a4 SM |
9111 | 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca> |
9112 | ||
9113 | Make `window-system' into a keyboard-local variable (rather than | |
9114 | frame-local as done originally by multi-tty). | |
9115 | ||
9116 | * keyboard.h (struct kboard): Add Vwindow_system. | |
9117 | * keyboard.c (init_kboard): Set a default for Vwindow_system. | |
9118 | (mark_kboards): Mark Vwindow_system. | |
9119 | ||
9120 | * dispnew.c (syms_of_display) <window-system>: Declare terminal-local. | |
9121 | (init_display): Don't set the obsolete `window-system' frame-param. | |
9122 | ||
9123 | * xterm.c (x_term_init): | |
9124 | * w32term.c (w32_create_terminal): | |
9125 | * term.c (init_tty): Set Vwindow_system. | |
9126 | * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the | |
9127 | multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system. | |
9128 | ||
9129 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
9130 | * w32fns.c (Fx_create_frame, x_create_tip_frame): | |
9131 | * macfns.c (Fx_create_frame): | |
9132 | Don't set the obsolete `window-system' frame-param. | |
9133 | ||
9134 | * frame.h (Qwindow_system): Remove. | |
9135 | * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well. | |
9136 | (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param. | |
9137 | ||
fdc90613 | 9138 | 2007-10-24 Richard Stallman <rms@gnu.org> |
4521d1fc | 9139 | |
fdc90613 MB |
9140 | * frame.c (x_figure_window_size): For fullscreen case, |
9141 | set USPosition | PPosition without clobbering rest of window_prompting. | |
7c75be36 | 9142 | |
fdc90613 | 9143 | * keyboard.c (Fcurrent_idle_time): Doc fix. |
4521d1fc | 9144 | |
fdc90613 | 9145 | * print.c (Fwith_output_to_temp_buffer): Doc fix. |
4521d1fc | 9146 | |
7357cb04 SM |
9147 | 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
9148 | ||
98228e72 SM |
9149 | * process.c (unwind_request_sigio): Only define if __ultrix__. |
9150 | ||
1baf6db9 SM |
9151 | * callproc.c (child_setup): Remove spurious *. |
9152 | ||
4d0ac3d7 SM |
9153 | * lisp.h (Fget_text_property): Declare. |
9154 | (have_menus_p): Declare it here rather than in sys-dep header files. | |
9155 | * macterm.h (have_menus_p): | |
9156 | * msdos.h (have_menus_p): | |
9157 | * xterm.h (have_menus_p): Remove. | |
9158 | ||
7357cb04 SM |
9159 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable) |
9160 | (Fmake_variable_frame_local): Just check the variable's const-ness | |
9161 | rather than checking nil or t. | |
9162 | ||
866e6dd6 JR |
9163 | 2007-10-22 Jason Rumney <jasonr@gnu.org> |
9164 | ||
b00afeae JR |
9165 | * w32fns.c: Include math.h. |
9166 | (w32_abort): Declaration moved to nt/config.nt. | |
0f7f11b7 | 9167 | |
c8f7c76b JR |
9168 | * s/ms-w32.h (HAVE_STDLIB_H): Define. |
9169 | (abort): Redefinition moved to nt/config.nt. | |
9170 | ||
866e6dd6 JR |
9171 | * m/windowsnt.h: Remove. |
9172 | ||
e79beb56 JB |
9173 | 2007-10-22 Juanma Barranquero <lekktu@gmail.com> |
9174 | ||
9175 | * emacs.c (Fdump_emacs): Fix typo in message. | |
9176 | (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring. | |
9177 | <installation-directory>: Reflow docstring. | |
9178 | ||
fb30dfd2 JL |
9179 | 2007-10-22 Juri Linkov <juri@jurta.org> |
9180 | ||
9181 | * minibuf.c: Allow minibuffer default to be a list of default values. | |
9182 | With empty input use the first element of this list as returned default. | |
e79beb56 | 9183 | (string_to_object) |
0f7f11b7 | 9184 | (read_minibuf_noninteractive): If defalt is cons, set val to its car. |
fb30dfd2 JL |
9185 | (read_minibuf): If defalt is cons, set histstring to its car. |
9186 | (Fread_string): If default_value is cons, set val to its car. | |
9187 | (Fread_buffer): If def is cons, use its car. | |
9188 | (Fcompleting_read): If defalt is cons, set val to its car. | |
9189 | ||
1f163f28 MA |
9190 | 2007-10-21 Michael Albinus <michael.albinus@gmx.de> |
9191 | ||
9192 | * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. | |
9193 | ||
db3534c3 JB |
9194 | 2007-10-20 Juanma Barranquero <lekktu@gmail.com> |
9195 | ||
9196 | * doc.c (Fdocumentation): Check for advice in all cases. | |
9197 | ||
c6f18a07 CY |
9198 | 2007-10-19 Chong Yidong <cyd@stupidchicken.com> |
9199 | ||
9200 | * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags. | |
9201 | ||
2a1534d3 RS |
9202 | 2007-10-19 Richard Stallman <rms@gnu.org> |
9203 | ||
9204 | * doc.c (Fdocumentation): Check for and handle an advised function. | |
9205 | ||
7b82c3b6 JB |
9206 | 2007-10-19 Juanma Barranquero <lekktu@gmail.com> |
9207 | ||
9208 | * process.c (Fset_process_filter): Doc fix. | |
9209 | ||
3278f20e SM |
9210 | 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> |
9211 | ||
9212 | * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty | |
9213 | which caused key-translation-map to applied repeatedly (thus breaking | |
9214 | double-mode). | |
9215 | ||
99784d63 SM |
9216 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
9217 | ||
9218 | * xselect.c (x_own_selection, x_handle_selection_clear) | |
9219 | (x_clear_frame_selections): | |
9220 | * w32menu.c (list_of_panes, list_of_items): | |
9221 | * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): | |
9222 | * textprop.c (validate_plist, interval_has_all_properties) | |
9223 | (interval_has_some_properties, interval_has_some_properties_list) | |
9224 | (add_properties, text_property_list): | |
9225 | * process.c (Fget_buffer_process, list_processes_1, status_notify): | |
9226 | * minibuf.c (Fassoc_string): | |
9227 | * macselect.c (x_own_selection, x_clear_frame_selections) | |
9228 | (Fx_disown_selection_internal): | |
9229 | * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): | |
9230 | Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r. | |
9231 | ||
44bb704d CY |
9232 | 2007-10-17 Chong Yidong <cyd@stupidchicken.com> |
9233 | ||
9234 | * process.c: Link to libs for calling res_init() if available. | |
9235 | (Fmake_network_process): Call res_init() before getaddrinfo or | |
9236 | gethostbyname, if possible. | |
9237 | ||
d314756e SM |
9238 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
9239 | ||
2504022a SM |
9240 | * lread.c (read1): Set pvectype for char_tables. |
9241 | ||
19fa82b9 SM |
9242 | * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY) |
9243 | (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE): | |
9244 | Add type checks. | |
9245 | (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove. | |
9246 | ||
d314756e SM |
9247 | * alloc.c (free_misc): Use XMISCTYPE. |
9248 | (live_misc_p, gc_sweep): Use Lisp_Misc_Any. | |
9249 | ||
94b9aaa2 GM |
9250 | 2007-10-17 Glenn Morris <rgm@gnu.org> |
9251 | ||
9252 | * minibuf.c (Qcompletion_ignore_case): New Lisp_Object. | |
9253 | (syms_of_minibuf): Add Qcompletion_ignore_case. | |
9254 | * dired.c (Qcompletion_ignore_case): Change to external. | |
9255 | (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case. | |
9256 | * fileio.c (Qcompletion_ignore_case): New external Lisp_Object. | |
9257 | (Fread_file_name): Use it rather than intern'ing. | |
9258 | ||
9259 | * coding.c (Qcompletion_ignore_case): New external Lisp_Object. | |
9260 | (Fread_coding_system): Ignore case of user input. | |
9261 | ||
da6658e8 YM |
9262 | 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9263 | ||
9264 | * xdisp.c (handle_display_prop): Ignore display specs after | |
9265 | replacing one when string text is being replaced. | |
9266 | (handle_single_display_spec): Pretend as if characters with display | |
9267 | property haven't been consumed only when buffer text is being replaced. | |
9268 | ||
11fb4bdb SM |
9269 | 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> |
9270 | ||
9beb8baa SM |
9271 | * xfns.c (Fx_create_frame, Fx_display_list): |
9272 | * window.c (window_fixed_size_p, enlarge_window) | |
9273 | (shrink_window_lowest_first): | |
9274 | * macterm.c (init_font_name_table): | |
9275 | * macfns.c (Fx_create_frame, Fx_display_list): | |
9276 | * lread.c (close_load_descs): | |
9277 | * keyboard.c (read_char_x_menu_prompt): | |
9278 | * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent): | |
9279 | * coding.c (code_convert_region_unwind): Test the type of an object | |
9280 | rather than just !NILP before extracting data from it. | |
9281 | ||
d3f41ff5 SM |
9282 | * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors. |
9283 | ||
67ee9f6e SM |
9284 | * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. |
9285 | (XMISCANY): New macro. | |
9286 | (XMISCTYPE): Use it. | |
9287 | (struct Lisp_Misc_Any): New type. | |
9288 | (union Lisp_Misc): Use it. | |
9289 | (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit. | |
9290 | * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding) | |
9291 | (find_symbol_value, set_internal, default_value, Fset_default) | |
9292 | (Fmake_variable_buffer_local, Fmake_local_variable) | |
9293 | (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p) | |
9294 | (Flocal_variable_if_set_p, Fvariable_binding_locus): | |
9295 | The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set. | |
9296 | * alloc.c (allocate_buffer): Set the size and tag. | |
9297 | (allocate_misc, mark_maybe_object, mark_object, survives_gc_p): | |
9298 | Use XMISCANY. | |
9299 | (die): Follow the GNU convention for error messages. | |
9300 | * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set. | |
9301 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the | |
9302 | tag any more. | |
9303 | (set_buffer_internal_1): | |
9304 | * frame.c (store_frame_param): | |
9305 | * eval.c (specbind): | |
9306 | * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP. | |
9307 | ||
11fb4bdb SM |
9308 | * doc.c (Fsnarf_documentation): Simplify. |
9309 | ||
decb374a JB |
9310 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
9311 | ||
9312 | * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static. | |
9313 | (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring. | |
9314 | ||
b5a40ee7 SM |
9315 | 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca> |
9316 | ||
9317 | * buffer.c (Fmake_indirect_buffer): Set the buffer's tag. | |
9318 | ||
35277b03 JB |
9319 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
9320 | ||
9321 | * eval.c (do_autoload): Don't save autoloads. | |
9322 | ||
9323 | * data.c (Ffset): Save autoload of the function being set. | |
9324 | ||
35fdaa62 GM |
9325 | 2007-10-07 John Paul Wallington <jpw@pobox.com> |
9326 | ||
9327 | * xfns.c (x_create_tip_frame): Set the `display-type' frame | |
9328 | parameter before setting up faces. | |
9329 | ||
1ea40aa2 EZ |
9330 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
9331 | ||
35fdaa62 | 9332 | * ccl.c (Fregister_code_conversion_map): |
96a5affb EZ |
9333 | * keyboard.c (append_tool_bar_item): Reformat last change. |
9334 | ||
1ea40aa2 EZ |
9335 | * lisp.h (eabs): Rename from `abs'. All callers changed. |
9336 | ||
35277b03 | 9337 | 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru> |
71d00ce4 EZ |
9338 | |
9339 | * buffer.c (add_overlay_mod_hooklist): | |
9340 | * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map): | |
9341 | * fontset.c (make_fontset): | |
9342 | * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item) | |
9343 | (append_tool_bar_item): | |
9344 | * macmenu.c (grow_menu_items): | |
35fdaa62 | 9345 | * w32menu.c (grow_menu_items): |
71d00ce4 | 9346 | * xmenu.c (grow_menu_items): Use larger_vector. |
35fdaa62 | 9347 | |
bc82f120 EZ |
9348 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
9349 | ||
9350 | * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving | |
9351 | selected frame'' on MSDOS). | |
9352 | ||
d57d5a78 MR |
9353 | 2007-10-12 Martin Rudalics <rudalics@gmx.at> |
9354 | ||
9355 | * frame.c (Qexplicit_name): New variable. | |
9356 | (x_report_frame_params): Report it in parameter alist. | |
9357 | (syms_of_frame): Intern and staticpro it. | |
9358 | ||
35277b03 | 9359 | 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change) |
04710ebd JR |
9360 | |
9361 | * macfns.c (x_create_tip_frame): Set terminal for frame. | |
9362 | ||
c7a4b95b SM |
9363 | 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9364 | ||
26f9c7b7 SM |
9365 | * frame.c (Qenvironment): Remove. |
9366 | (syms_of_frame) <Qenvironment>: Don't initialize. | |
9367 | (Fdelete_frame): Don't treat the `environment' param specially. | |
9368 | * frame.h (Qenvironment): Don't declare. | |
9369 | * callproc.c (set_initial_environment): Don't set unused frame param. | |
9370 | ||
c7a4b95b SM |
9371 | * frame.c (Fframe_with_environment): Remove. |
9372 | (syms_of_frame) <Sframe_with_environment>: Don't declare. | |
26f9c7b7 | 9373 | |
c7a4b95b SM |
9374 | * lisp.h (Fframe_with_environment): Don't declare. |
9375 | ||
c86f7377 JB |
9376 | 2007-10-10 Juanma Barranquero <lekktu@gmail.com> |
9377 | ||
9378 | * indent.c (indent_tabs_mode, last_known_column) | |
9379 | (last_known_column_modified): Make static. | |
9380 | (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring. | |
9381 | ||
d1b3a122 KY |
9382 | 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org> |
9383 | ||
9384 | * puresize.h (BASE_PURESIZE): Increase to 1170000. | |
9385 | ||
d57d5a78 MR |
9386 | 2007-10-09 Jason Rumney <jasonr@gnu.org> |
9387 | ||
9388 | * w32term.c (x_set_window_size): Disable code that attempts to tell | |
9389 | Lisp code about a size change before it actually happens. | |
9390 | ||
81d3d428 | 9391 | 2007-10-09 Richard Stallman <rms@gnu.org> |
91175673 | 9392 | |
81d3d428 MB |
9393 | * xdisp.c (handle_invisible_prop): After setting up an ellipsis, |
9394 | return HANDLED_RETURN. | |
91175673 | 9395 | |
1af74d06 | 9396 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
4f1b1854 | 9397 | |
1af74d06 MB |
9398 | * keyboard.c (kbd_buffer_get_event): Break loop waiting for input |
9399 | when there's an unread command event. | |
e0fead5d | 9400 | |
c7a4b95b | 9401 | * frame.c (focus_follows_mouse): Move here from frame.el to allow |
1af74d06 MB |
9402 | window autoselection act appropriately when leaving selected frame. |
9403 | (syms_of_frame): Initialize focus_follows_mouse. | |
9404 | * frame.h (focus_follows_mouse): Extern it. | |
9405 | * macterm.c (XTread_socket): When focus_follows_mouse is nil | |
c7a4b95b | 9406 | make SELECT_WINDOW_EVENT only if we don't leave the selected frame. |
1af74d06 MB |
9407 | * msdos.c (dos_rawgetc): Likewise. |
9408 | * w32term.c (w32_read_socket): Likewise. | |
9409 | * xterm.c (handle_one_xevent): Likewise. | |
9410 | * xdisp.c (syms_of_xdisp): In doc-string of | |
9411 | mouse-autoselect-window mention focus-follows-mouse. | |
e0fead5d | 9412 | |
1af74d06 | 9413 | 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
e0fead5d | 9414 | |
1af74d06 MB |
9415 | * macterm.c (mac_load_query_font): Fix missing return value. |
9416 | [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): | |
9417 | Add BLOCK_INPUT. | |
c186cdb3 | 9418 | |
1af74d06 | 9419 | 2007-10-08 Richard Stallman <rms@gnu.org> |
c186cdb3 | 9420 | |
1af74d06 MB |
9421 | * xdisp.c (get_window_cursor_type): Implement documented behavior |
9422 | for cursor-in-non-selected-windows = t. | |
c186cdb3 | 9423 | |
1af74d06 | 9424 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
c186cdb3 | 9425 | |
1af74d06 | 9426 | * w32.c (w32_get_resource): Always close registry keys. |
58cfce98 | 9427 | |
1af74d06 | 9428 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
58cfce98 | 9429 | |
1af74d06 | 9430 | * makefile.w32-in (LIBS): Add COMCTL32. |
62854fe2 | 9431 | |
1af74d06 | 9432 | * w32fns.c (globals_of_w32fns): Init common controls. |
62854fe2 | 9433 | |
1af74d06 | 9434 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 9435 | |
c7a4b95b | 9436 | * image.c (our_memory_buffer): Rename from omfib_buffer. |
656f46bb | 9437 | |
1af74d06 | 9438 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 9439 | |
1af74d06 | 9440 | * buffer.c (Foverlays_at): Doc fix. |
036e218d | 9441 | |
1af74d06 | 9442 | 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca> |
036e218d | 9443 | |
1af74d06 | 9444 | * fns.c (Fplist_put): Preserve uneven tail data. |
7ddb2c16 | 9445 | |
1af74d06 | 9446 | 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) |
7ddb2c16 | 9447 | |
1af74d06 | 9448 | * termhooks.h (enum event_kind): Remove trailing comma. |
ace9b298 | 9449 | |
1af74d06 | 9450 | * frame.h (enum): Remove trailing comma. |
90647b07 | 9451 | |
1af74d06 | 9452 | 2007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change) |
90647b07 | 9453 | |
1af74d06 | 9454 | * w32proc.c (delete_child): Don't terminate threads of zombies. |
ace9b298 | 9455 | |
1af74d06 | 9456 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
ace9b298 | 9457 | |
1af74d06 | 9458 | * keyboard.h (struct kboard): New elt Vlast_repeatable_command. |
ace9b298 | 9459 | |
1af74d06 MB |
9460 | * keyboard.c (syms_of_keyboard): Set up new Lisp variable |
9461 | last-repeatable-command. | |
9462 | (init_kboard): Initialize Vlast_repeatable_command. | |
9463 | (command_loop_1): Set it to real_this_command unless that was | |
9464 | bound to an input event. | |
9465 | (mark_kboards): Mark it. | |
9fbc32aa | 9466 | |
1af74d06 | 9467 | 2007-10-08 Richard Stallman <rms@gnu.org> |
036e218d | 9468 | |
1af74d06 | 9469 | * eval.c (condition-case): Doc fix. |
9fbc32aa | 9470 | |
1af74d06 | 9471 | 2007-10-08 Masatake YAMATO <jet@gyve.org> |
9fbc32aa | 9472 | |
1af74d06 MB |
9473 | * xfaces.c (tty_supports_face_attributes_p): Fix code |
9474 | for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code | |
9475 | was copied and not edited. | |
9fbc32aa | 9476 | |
beb9f745 SM |
9477 | 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca> |
9478 | ||
c86f7377 | 9479 | Add new `input-decode-map' keymap and use it for terminal |
4f4a84ec SM |
9480 | escape sequences. |
9481 | * keyboard.h (struct kboard): Add Vinput_decode_map. | |
9482 | Remove Vlocal_key_translation_map. | |
9483 | * keyboard.c (read_key_sequence): Add support for input-decode-map. | |
9484 | (init_kboard): Init input-decode-map. | |
9485 | Replace local-key-translation-map back with key-translation-map. | |
9486 | (syms_of_keyboard): Declare input-decode-map. | |
9487 | Remove local-key-translation-map. Update docstrings. | |
9488 | (mark_kboards): Mark Vinput_decode_map. | |
9489 | Don't mark Vlocal_key_translation_map. | |
9490 | * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map. | |
9491 | Replace local-key-translation-map back with key-translation-map. | |
9492 | * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN): | |
9493 | Bind in input-decode-map rather than function-key-map. | |
9494 | ||
beb9f745 SM |
9495 | * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore. |
9496 | This was made redundant by the previous introduction of XSETPVECTYPE. | |
9497 | ||
65342ae3 RS |
9498 | 2007-10-09 Richard Stallman <rms@gnu.org> |
9499 | ||
beb9f745 | 9500 | * image.c (free_bitmap_record): Rename from Free_Bitmap_Record. |
65342ae3 RS |
9501 | |
9502 | 2007-09-29 Richard Stallman <rms@gnu.org> | |
9503 | ||
9504 | * eval.c (internal_condition_case_2, internal_condition_case_1) | |
9505 | (internal_condition_case): Reenable abort if x_catching_errors () | |
9506 | to see if that really happens and why. | |
9507 | ||
6cff77fd AS |
9508 | 2007-10-06 Andreas Schwab <schwab@suse.de> |
9509 | ||
9510 | * fileio.c (Fwrite_region): Ignore EINVAL error from fsync. | |
9511 | ||
bbe6f2aa JB |
9512 | 2007-10-04 Juanma Barranquero <lekktu@gmail.com> |
9513 | ||
9514 | * image.c (syms_of_image) <image-types>: Fix typo in docstring. | |
9515 | ||
a390930c SM |
9516 | 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca> |
9517 | ||
9518 | * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used. | |
9519 | ||
d6aa1876 SM |
9520 | 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca> |
9521 | ||
d0fdb6da SM |
9522 | * window.h (struct window): |
9523 | * window.c (struct save_window_data, struct saved_window): | |
9524 | * termhooks.h (struct terminal): | |
9525 | * process.h (struct Lisp_Process): | |
9526 | * frame.h (struct frame): | |
9527 | * buffer.h (struct buffer): | |
9528 | * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table) | |
9529 | (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table): | |
9530 | The size field of (pseudo)vectors is now unsigned. | |
9531 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly. | |
9532 | ||
878f97ff SM |
9533 | * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end. |
9534 | Turn `count' into an integer. | |
d0fdb6da | 9535 | |
878f97ff SM |
9536 | * fns.c (make_hash_table, hash_put, hash_remove, hash_clear) |
9537 | (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count): | |
9538 | * print.c (print_object) <HASH_TABLE_P>: `count' is an int. | |
9539 | * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR. | |
9540 | (mark_object) <HASH_TABLE_P>: Use mark_vectorlike. | |
9541 | ||
d2029e5b SM |
9542 | * alloc.c (allocate_pseudovector): New fun. |
9543 | (ALLOCATE_PSEUDOVECTOR): New macro. | |
9544 | (allocate_window, allocate_terminal, allocate_frame) | |
9545 | (allocate_process): Use it. | |
9546 | (mark_vectorlike): New function. | |
9547 | (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it. | |
9548 | (mark_terminals): Use it. | |
9549 | (Fmake_bool_vector, Fmake_char_table, make_sub_char_table) | |
9550 | (Fmake_byte_code): Use XSETPVECTYPE. | |
9551 | ||
9552 | * frame.c (Fframe_parameters): Minor simplification. | |
9553 | ||
9554 | * insdel.c (adjust_markers_for_insert): Generalize assertion checks. | |
9555 | ||
9556 | * marker.c (Fmarker_buffer): Make test for odd case into a failure. | |
9557 | ||
9558 | * buffer.c (Fget_buffer_create, init_buffer_once): | |
9559 | * lread.c (defsubr): | |
9560 | * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE. | |
9561 | ||
9562 | * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be | |
9563 | defined differently in the m/*.h files. | |
9564 | (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking. | |
9565 | (XSETPVECTYPE): New macro. | |
9566 | (XSETPSEUDOVECTOR): Use it. | |
9567 | ||
d6aa1876 SM |
9568 | * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c. |
9569 | (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. | |
d2029e5b | 9570 | |
d6aa1876 SM |
9571 | * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): |
9572 | * lread.c (defvar_per_buffer): | |
9573 | * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c. | |
9574 | ||
9575 | * window.c (candidate_window_p): Only consider as visible frames that | |
9576 | are on the same terminal. | |
9577 | ||
9578 | * m/ibms390x.h (MARKBIT): Remove unused macro. | |
9579 | ||
88852d45 JB |
9580 | 2007-10-01 Juanma Barranquero <lekktu@gmail.com> |
9581 | ||
9582 | * lread.c (Fload): Fix typo in docstring. | |
9583 | ||
880820fe | 9584 | 2007-10-01 Michaël Cadilhac <michael@cadilhac.name> |
2742fe30 MC |
9585 | |
9586 | * floatfns.c (Fexpt): Manually check for overflows, so that a power | |
9587 | of a non-zero value can't yield zero. | |
9588 | ||
ed0c79c6 SM |
9589 | 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca> |
9590 | ||
b870aa61 SM |
9591 | * term.c (term_clear_mouse_face, term_mouse_highlight) |
9592 | (tty_write_glyphs_with_face): Only define is HAVE_GPM. | |
9593 | ||
4c37a414 SM |
9594 | * print.c (safe_debug_print): Use XHASH. |
9595 | ||
b9466edb SM |
9596 | * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of |
9597 | Lisp elements such as tags. | |
9598 | (XHASH): New macro. | |
9599 | (EQ): Use it. | |
9600 | (SREF, SSET, STRING_COPYIN): Use SDATA. | |
9601 | (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove. | |
9602 | ||
9c545a55 SM |
9603 | * alloc.c (mark_terminal): Remove left-over declaration. |
9604 | (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE. | |
9605 | (allocate_vectorlike): Remove type argument. Adjust callers. | |
9606 | (live_vector_p, mark_maybe_pointer, valid_lisp_object_p): | |
9607 | Only handle the one remaining MEM_TYPE_VECTORLIKE. | |
9608 | ||
dafc79fa SM |
9609 | * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros |
9610 | to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used. | |
9611 | (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc) | |
9612 | (lisp_align_free, make_interval, allocate_string, allocate_string_data) | |
9613 | (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc): | |
9614 | Use them. | |
9615 | ||
ed0c79c6 SM |
9616 | * xfaces.c (load_face_font, free_realized_face, clear_face_gcs): |
9617 | Don't let signal handlers run when a GC is freed but not yet NULL'ed. | |
9618 | (x_free_gc): Remove BLOCK_INPUT since it's now redundant. | |
9619 | ||
3c81afd4 DN |
9620 | 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu> |
9621 | ||
9622 | * Makefile.in (lisp, shortlisp): Delete server.elc, it is not | |
9623 | loaded by default. | |
9624 | ||
6178ce5e SM |
9625 | 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca> |
9626 | ||
4ce5ab77 SM |
9627 | * term.c (Fgpm_mouse_start): Don't signal an error if already activated |
9628 | on this tty. | |
9629 | (Fgpm_mouse_stop): Only deactivate if it was activated on this tty. | |
9630 | ||
6178ce5e SM |
9631 | * term.c (mouse_face_window): Rename from Qmouse_face_window. |
9632 | Update all users. | |
9633 | (handle_one_term_event): Use Gpm_DrawPointer. | |
9634 | (Fgpm_mouse_start): Rename from Fterm_open_connection. | |
9635 | Signal errors instead of returning nil. Always return nil. | |
9636 | (Fgpm_mouse_stop): Rename from Fterm_close_connection. | |
9637 | Make it a noop if gpm-mouse was not activated. | |
9638 | (syms_of_term): Update names. | |
9639 | ||
bdf5f8ef SM |
9640 | 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca> |
9641 | ||
75a8734b SM |
9642 | * sysdep.c (narrow_foreground_group, widen_foreground_group): Static. |
9643 | (init_sys_modes): Check that gpm_tty is the current tty. | |
9644 | ||
13559ee0 SM |
9645 | * alloc.c (allocate_terminal): Set the vector size to only count the |
9646 | lisp fields. Initialize those to nil. | |
9647 | (mark_object): Don't treat terminals specially. | |
9648 | (mark_terminal): Remove. | |
9649 | (mark_terminals): Use mark_object instead. | |
9650 | ||
ff16b875 SM |
9651 | * termhooks.h (struct terminal): Move all Lisp_Object fields traced by |
9652 | the GC to the beginning. | |
9653 | ||
83155776 SM |
9654 | * indent.h: |
9655 | * indent.c: Use EMACS_INT for ints coming from Elisp data. | |
9656 | ||
bdf5f8ef SM |
9657 | * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions. |
9658 | ||
ec8705b6 JR |
9659 | 2007-09-25 Jason Rumney <jasonr@gnu.org> |
9660 | ||
9661 | * frame.c (make_terminal_frame): Remove special case for WINDOWSNT. | |
9662 | ||
9663 | * w32console.c (create_w32cons_output): Remove. | |
9664 | ||
9665 | * term.c (init_tty): Call init_sys_modes on WINDOWSNT also. | |
9666 | ||
9667 | * sysdep.c (init_sys_modes): Use set_terminal_modes_hook. | |
9668 | (reset_sys_modes): Use reset_terminal_modes_hook. | |
9669 | ||
7351b242 SM |
9670 | 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca> |
9671 | ||
9672 | * eval.c (do_autoload): Don't output any message. | |
9673 | ||
16706228 JL |
9674 | 2007-09-24 Juri Linkov <juri@jurta.org> |
9675 | ||
9676 | * emacs.c (standard_args): Change priority of "--no-splash" | |
9677 | from 40 to 3. Add "--no-desktop" with the same priority. | |
9678 | ||
3ae2e3a3 RS |
9679 | 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru> |
9680 | ||
9681 | * alloc.c (gc_sweep): Check cons cell mark bits word by word | |
9682 | and optimize the case where they are all 1. | |
9683 | ||
7a58fb43 GM |
9684 | 2007-09-23 Johannes Weiner <hannes@saeurebad.de> |
9685 | ||
3ae2e3a3 RS |
9686 | * lisp.h (abs): Define if not defined. |
9687 | * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c: | |
9688 | Don't define `abs', since it's defined in lisp.h. | |
7a58fb43 | 9689 | |
78048085 EZ |
9690 | 2007-09-22 Eli Zaretskii <eliz@gnu.org> |
9691 | ||
c7a4b95b | 9692 | * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows. |
78048085 EZ |
9693 | (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero. |
9694 | (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty) | |
9695 | (init_tty): Use DEV_TTY instead of "/dev/tty". | |
9696 | [WINDOWSNT]: No need to protect from NAME arg being null. | |
9697 | ||
23d4cba5 DN |
9698 | 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu> |
9699 | ||
9700 | * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning | |
9701 | up the tty state. | |
9702 | ||
71f44e7a SM |
9703 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
9704 | ||
9705 | * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
9706 | (gpm_tty): Change its type. | |
9707 | * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
9708 | (gpm_tty): Change its type and initialize it. | |
9709 | (Fterm_open_connection): Check the frame is indeed a tty. | |
9710 | Use the new gpm_tty. | |
9711 | (Fterm_close_connection): Use the new gpm_tty. | |
9712 | * keyboard.c (tty_read_avail_input): Use the new gpm_tty. | |
9713 | * sysdep.c (init_sys_modes): term_gpm -> gpm_tty. | |
9714 | ||
def7fa34 JB |
9715 | 2007-09-21 Juanma Barranquero <lekktu@gmail.com> |
9716 | ||
9717 | * w32term.c (x_draw_glyph_string): Use strike_through_color, not | |
9718 | underline_color, to draw strike-through. | |
9719 | ||
d2bb6598 SM |
9720 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
9721 | ||
273f164c SM |
9722 | * lisp.h (allocate_terminal): Declare. |
9723 | ||
ca2d5566 SM |
9724 | * window.c (candidate_window_p): Consider frames that are being placed |
9725 | by the user as somewhere between visible and iconified. | |
9726 | (window_loop): Prefer windows on the current frame. | |
9727 | (Fselect_window): Move the use of select-frame to the beginning so we | |
9728 | can just delegate all the work (it'll call us back anyway). | |
9729 | ||
6168122d SM |
9730 | * frame.c (Qdisplay_environment_variable): |
9731 | * frame.h (Qdisplay_environment_variable): Delete. | |
9732 | ||
c51842ec SM |
9733 | * .gdbinit (xbacktrace): Print the arg's address rather than the value |
9734 | of the first arg, since that value may be a union. | |
9735 | ||
d2bb6598 SM |
9736 | * callproc.c (child_setup, getenv_internal): Use the frame's `display' |
9737 | parameter rather than Qdisplay_environment_variable. If all else | |
9738 | fails, look for DISPLAY in initial-environment. | |
9739 | ||
6f022c19 GM |
9740 | 2007-09-21 Glenn Morris <rgm@gnu.org> |
9741 | ||
9742 | * Makefile.in (emacstool): Remove target. | |
f466320b | 9743 | (lisp, shortlisp): Remove termdev.elc. |
6f022c19 | 9744 | |
ea1bf8c7 GM |
9745 | 2007-09-21 Markus Triska <markus.triska@gmx.at> |
9746 | ||
d2bb6598 | 9747 | * xterm.c (x_delete_display): Compile session management conditionally. |
ea1bf8c7 | 9748 | |
d30a25b3 SM |
9749 | 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
9750 | ||
db699fc6 SM |
9751 | * callproc.c (getenv_internal_1): New function. |
9752 | (getenv_internal): Use it. | |
9753 | (Fgetenv_internal): Use it. Accept an env-list as optional arg. | |
9754 | ||
d2bb6598 | 9755 | * terminal.c (get_terminal): Don't accept ints to represent terminals. |
c5911e55 SM |
9756 | (Fterminal_name, Fterminal_parameters, Fterminal_parameter) |
9757 | (Fset_terminal_parameter): Work with dead terminals as well. | |
9758 | (Fmodify_terminal_parameters): Remove. | |
9759 | ||
d30a25b3 SM |
9760 | * terminal.c (get_terminal): Handle terminals. |
9761 | Make sure the terminal returned is live. | |
9762 | (create_terminal): Use allocate_terminal. | |
9763 | (mark_terminals): Move to alloc.c. | |
9764 | (delete_terminal): Use terminal->name as liveness status. | |
9765 | NULL out fields after freeing their contents. | |
9766 | Don't deallocate the object. | |
9767 | (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object | |
9768 | rather than an int. | |
9769 | (Fterminal_live_p): Accept non-integer arguments. | |
9770 | (Fterminal_list): Return terminal objects rather than an ints. | |
9771 | ||
9772 | * alloc.c (enum mem_type): New member for `terminal' objects. | |
9773 | (allocate_terminal): New function. | |
d2bb6598 SM |
9774 | (mark_maybe_pointer, valid_lisp_object_p, mark_object): |
9775 | Handle terminals. | |
d30a25b3 SM |
9776 | (mark_terminal): New fun. |
9777 | (mark_terminals): Move from terminal.c. | |
9778 | ||
9779 | * term.c (get_tty_terminal): Don't treat output_initial specially. | |
9780 | (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints. | |
9781 | (delete_tty): Use terminal->name as liveness status. | |
9782 | ||
9783 | * termhooks.h (struct terminal): Make it into a pseudovector. | |
9784 | Remove `deleted' replaced by checking `name's nullness. | |
9785 | ||
9786 | * print.c (print_object): Handle terminals. | |
9787 | ||
9788 | * lisp.h (enum pvec_type): New `terminal' pseudovector. | |
9789 | (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros. | |
9790 | ||
9791 | * frame.c (make_terminal_frame): | |
9792 | * keyboard.c (tty_read_avail_input): | |
9793 | * w32term.c (x_delete_terminal): | |
9794 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
9795 | * xterm.c (x_delete_terminal): Use terminal->name as liveness status. | |
9796 | ||
eba25e7c GM |
9797 | 2007-09-20 Glenn Morris <rgm@gnu.org> |
9798 | ||
9799 | * process.c (Fmake_network_process): Doc fix. | |
9800 | ||
2a29c3c1 JR |
9801 | 2007-09-19 Jason Rumney <jasonr@gnu.org> |
9802 | ||
9803 | * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument. | |
9804 | ||
880820fe | 9805 | 2007-09-19 Michaël Cadilhac <michael@cadilhac.name> |
ba1cbad7 MC |
9806 | |
9807 | * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): | |
9808 | Fix a C warning regarding variable constness. | |
9809 | ||
9810 | * xterm.c (handle_one_xevent): Fix a C warning. | |
9811 | ||
334a1195 JR |
9812 | 2007-09-18 Jason Rumney <jasonr@gnu.org> |
9813 | ||
9814 | * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. | |
9815 | ||
880820fe | 9816 | 2007-09-17 Jan Djärv <jan.h.d@swipnet.se> |
879ffad9 JD |
9817 | |
9818 | * gtkutil.c (gdpy_def): New variable. | |
9819 | (xg_initialize): Initialize gdpy_def. | |
9820 | (xg_display_close): If no other display exists, set gdpy_def to a | |
9821 | new connection. | |
9822 | ||
880820fe | 9823 | 2007-09-16 Jan Djärv <jan.h.d@swipnet.se> |
45c94881 JD |
9824 | |
9825 | * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf | |
9826 | when we have no file name for the icon. | |
9827 | (xg_tool_bar_expose_callback): Remove. | |
9828 | (xg_create_tool_bar): Don't connect expose signal to | |
9829 | xg_tool_bar_expose_callback. | |
9830 | (xg_get_file_with_chooser): Move GCPRO1 after declarations. | |
9831 | ||
4d580af2 AS |
9832 | 2007-09-16 Andreas Schwab <schwab@suse.de> |
9833 | ||
9834 | * alloc.c (reset_malloc_hooks): Set the hooks to the previous | |
9835 | values instead of zapping them. | |
9836 | ||
aca946f3 GM |
9837 | 2007-09-14 Glenn Morris <rgm@gnu.org> |
9838 | ||
9839 | * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope. | |
9840 | * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. | |
9841 | * image.c (our_memory_fill_input_buffer) <buffer>: Move to file | |
9842 | scope and rename to omfib_buffer for clarity. | |
9843 | (gif_load) <interlace_start, interlace_increment>: Move to file scope. | |
9844 | ||
25c460e5 KH |
9845 | 2007-09-14 Kenichi Handa <handa@m17n.org> |
9846 | ||
9847 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. | |
9848 | ||
09b69f01 JR |
9849 | 2007-09-13 Jason Rumney <jasonr@gnu.org> |
9850 | ||
9851 | * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument. | |
9852 | ||
9853 | * w32term.c (w32_term_init): Pass rif to w32_init_fringe. | |
9854 | ||
9855 | * macterm.c (mac_initialize): Don't call mac_init_fringe here. | |
9856 | (mac_term_init): Call here instead, passing rif. | |
9857 | ||
442218db GM |
9858 | 2007-09-13 Glenn Morris <rgm@gnu.org> |
9859 | ||
9860 | * s/hpux.h: No longer define `static' as nothing. | |
9861 | ||
880820fe | 9862 | 2007-09-13 Johan Bockgård <bojohan@gnu.org> |
4795c40f GM |
9863 | |
9864 | * callint.c (Fcall_interactively): Remove unused var `fun'. | |
9865 | ||
1971a872 RF |
9866 | 2007-09-12 Romain Francoise <romain@orebokech.com> |
9867 | ||
9868 | * window.c (prefer_window_split_horizontally, display_buffer): | |
9869 | Revert 2007-09-08 change. | |
9870 | ||
2d33f506 GM |
9871 | 2007-09-12 Glenn Morris <rgm@gnu.org> |
9872 | ||
585474ae | 9873 | * alloca.c: Remove file. |
ca7af97a GM |
9874 | * Makefile.in (alloca): Do not undef. |
9875 | (allocaobj, alloca.o): Remove. | |
9876 | (otherobj): Remove allocaobj. | |
9877 | * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block. | |
9878 | * regex.c (C_ALLOCA): Remove all references and code that was only | |
9879 | used when this was defined. | |
9880 | * search.c (boyer_moore): Remove #ifdef C_ALLOCA block. | |
9881 | * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block. | |
99dfbaf1 GM |
9882 | * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this. |
9883 | ||
2d33f506 | 9884 | * Makefile.in (SOURCES, unlock, relock): Delete. |
ca7af97a GM |
9885 | |
9886 | * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. | |
9887 | (menu_grab_callback): All uses changed. | |
9888 | ||
9889 | * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. | |
9890 | (x_reply_selection_request): All uses changed. | |
2d33f506 | 9891 | |
18a4a65e SM |
9892 | 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca> |
9893 | ||
9894 | * lread.c (load_warn_old_style_backquotes): Change message to look | |
9895 | better when it appears in the middle of byte-compiler messages. | |
9896 | ||
47cc8819 DN |
9897 | 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu> |
9898 | ||
b7ea0894 DN |
9899 | * s/darwin.h (MULTI_KBOARD): Only define for Carbon. |
9900 | ||
47cc8819 DN |
9901 | * xterm.c (x_create_terminal): Add comment. |
9902 | ||
9903 | * term.c (clear_tty_hooks, set_tty_hooks): Add comments. | |
9904 | ||
5632bd0f RS |
9905 | 2007-09-10 Richard Stallman <rms@gnu.org> |
9906 | ||
9907 | * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME. | |
9908 | ||
880820fe | 9909 | 2007-09-10 Michaël Cadilhac <michael@cadilhac.name> |
ccb5c14f | 9910 | |
4bca9161 MC |
9911 | * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. |
9912 | (DEFUN): Document `intspec', use it instead of `prompt'. | |
9913 | ||
04724b69 MC |
9914 | * eval.c (Fcommandp): Change `->prompt' to `->intspec'. |
9915 | ||
8a6d230a MC |
9916 | * data.c (Finteractive_form): If the interactive specification starts |
9917 | with a `(', use it as a Lisp form. | |
9918 | ||
09fbdf6c MC |
9919 | * fileio.c (Fset_file_modes): Add an interactive spec that reads a file |
9920 | name and file modes. | |
9921 | ||
ccb5c14f MC |
9922 | * callint.c (Fcall_interactively): Comment fixes. |
9923 | ||
023accd6 SM |
9924 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9925 | ||
9926 | * callint.c (Fcall_interactively): Use Finteractive_form also for subrs | |
9927 | and compiled functions. | |
9928 | ||
f26b9544 EZ |
9929 | 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com> |
9930 | ||
9931 | * window.c (prefer_window_split_horizontally): New variable. | |
9932 | (display_buffer): Consider splitting window horizontally depending | |
9933 | on prefer_window_split_horizontally. | |
9934 | ||
4d395425 EZ |
9935 | 2007-09-08 Eli Zaretskii <eliz@gnu.org> |
9936 | ||
97ddc760 | 9937 | * sysdep.c [WINDOWSNT]: Don't include sysselect.h. |
4d395425 | 9938 | |
08c1d235 SM |
9939 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
9940 | ||
179cef48 SM |
9941 | * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking. |
9942 | ||
08c1d235 SM |
9943 | * frame.c (x_set_frame_parameters): Check number is positive before |
9944 | using XFASTINT. | |
9945 | ||
9946 | * window.c (freeze_window_start): Don't presume selected_window holds | |
9947 | a window object. | |
92f94a12 | 9948 | (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd. |
08c1d235 | 9949 | |
97ddc760 | 9950 | 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change) |
de52dcbb DN |
9951 | |
9952 | * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. | |
9953 | ||
90ab5c62 SM |
9954 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
9955 | ||
9956 | * window.c (Vsplit_window_preferred_function): New var. | |
9957 | (Fdisplay_buffer): Use it. | |
9958 | (syms_of_window): Export, and initialize it. | |
9959 | ||
1ab2cd43 TTN |
9960 | 2007-09-06 Pixel <pixel@mandriva.com> (tiny change) |
9961 | ||
9962 | * image.c (gif_load): Fix bug: Handle nonexistent colormap. | |
9963 | ||
0b0515bc GM |
9964 | 2007-09-06 Glenn Morris <rgm@gnu.org> |
9965 | ||
57fd5c55 | 9966 | * gtkutil.c (menu_grab_callback) <cnt>: |
0b0515bc GM |
9967 | * xselect.c (x_reply_selection_request) <cnt>: Move static |
9968 | variable to file scope. | |
9969 | ||
98594580 SM |
9970 | 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca> |
9971 | ||
9972 | * xdisp.c (redisplay_internal): Make sure Elisp code always sees | |
9973 | consistent values of selected_frame and selected_window. | |
9974 | ||
0f4c7aef JR |
9975 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
9976 | ||
9977 | * w32console.c (initialize_w32_display): Zero unused hooks. | |
9978 | ||
e4019195 DN |
9979 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
9980 | ||
9981 | * term.c (Vsuspend_tty_functions, Vresume_tty_functions) | |
9982 | (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change. | |
9983 | ||
bce179b5 JR |
9984 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
9985 | ||
a0236551 JR |
9986 | * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible |
9987 | in w32console.c. Set up input. Remove XXX comments that have been | |
9988 | confirmed as correct. | |
9989 | ||
a4926668 JR |
9990 | * s/ms-w32.h (MULTI_KBOARD): Define. |
9991 | ||
953bf0dc JR |
9992 | * w32console.c (one_and_only_w32cons): Remove. |
9993 | (initialize_w32_display): Take terminal argument. | |
9994 | ||
9995 | * term.c (init_tty) [WINDOWSNT]: Pass terminal to | |
9996 | initialize_w32_display. | |
9997 | (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. | |
9998 | ||
bce179b5 JR |
9999 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. |
10000 | ||
10001 | * keyboard.c (discard_mouse_events): Discard it. | |
10002 | (make_lispy_event): Translate it to a lisp event. | |
10003 | (lispy_wheel_names): Add wheel-left and right events. | |
10004 | (syms_of_keyboard): Enlarge wheel_syms. | |
10005 | ||
10006 | * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. | |
10007 | <WM_MOUSEHWHEEL>: Pass new system message to lisp. | |
10008 | ||
10009 | * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't. | |
10010 | ||
10011 | * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT | |
10012 | from WM_MOUSEHWHEEL. | |
10013 | (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL. | |
10014 | ||
10015 | * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from | |
10016 | terminal. | |
10017 | ||
10018 | * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new | |
10019 | keyboard for the terminal. | |
10020 | ||
92cd6a7c DN |
10021 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
10022 | ||
10023 | * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. | |
10024 | (Vresume_tty_hook): Rename from Vresume_tty_functions. | |
10025 | (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook | |
10026 | and resume-tty-function to resume-tty-hook. | |
10027 | (Fsuspend_tty, Fresume_tty): Use new names. | |
10028 | ||
880820fe | 10029 | 2007-09-02 Jan Djärv <jan.h.d@swipnet.se> |
2154c964 JD |
10030 | |
10031 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon | |
10032 | if it starts with "n:". | |
10033 | ||
880820fe | 10034 | 2007-08-31 Jan Djärv <jan.h.d@swipnet.se> |
b42ff099 JD |
10035 | |
10036 | * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL. | |
10037 | ||
6b8e474c SM |
10038 | 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> |
10039 | ||
92d9c1d4 SM |
10040 | * frame.h: |
10041 | * frame.c (Qterm_environment_variable): Remove. | |
10042 | (syms_of_frame): Don't init and staticpro it. | |
10043 | ||
92d9c1d4 SM |
10044 | * callproc.c (getenv_internal): Remove special case for $TERM. |
10045 | ||
6b8e474c SM |
10046 | * callproc.c (Vinitial_environment): New variable. |
10047 | (set_initial_environment): Initialize it. | |
10048 | (syms_of_callproc): Declare it. | |
10049 | (child_setup): Don't mess with TERM via Qterm_environment_variable; the | |
10050 | TERM under which a process runs is never related to the TERM in which | |
10051 | Emacs is running. | |
10052 | ||
0f1444e1 DN |
10053 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
10054 | ||
10055 | * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here... | |
10056 | * s/darwin.h: ... do it here. | |
10057 | ||
b8866860 SM |
10058 | 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
10059 | ||
10060 | * lisp.h (set_initial_environment): Rename from set_global_environment. | |
10061 | ||
10062 | * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been | |
10063 | removed by mistake on the multi-tty branch. | |
10064 | ||
10065 | * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. | |
10066 | (Fmodify_frame_parameters): Return a value. | |
10067 | ||
10068 | * image.c (png_load): Comment-out var only used in commented-out code. | |
10069 | ||
10070 | * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) | |
10071 | before passing it to mark_object. | |
10072 | ||
10073 | * xfaces.c (internal_resolve_face_name): Return a value. | |
10074 | (internal_resolve_face_name, resolve_face_name_error): Comment out. | |
10075 | ||
10076 | * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. | |
10077 | (x_icon): Comment-out var only used in commented-out code. | |
10078 | ||
0a42be6d RF |
10079 | 2007-08-29 Romain Francoise <romain@orebokech.com> |
10080 | ||
10081 | * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if | |
10082 | QUIT hasn't been provided. | |
10083 | ||
8d9cc0b7 MB |
10084 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
10085 | ||
10086 | * callproc.c (child_setup, getenv_internal): Use the | |
ce20b664 | 10087 | display-environment-variable and term-environment-variable frame params. |
8d9cc0b7 MB |
10088 | (set_initial_environment): Initialise Vprocess_environment. |
10089 | ||
10090 | * config.in: Disable multi-keyboard support on a mac. | |
10091 | ||
10092 | * frame.c (Qterm_environment_variable) | |
10093 | (Qdisplay_environment_variable): New variables. | |
10094 | (syms_of_frame): Intern and staticpro them. | |
10095 | (Fmake_terminal_frame): Disable output method test. | |
10096 | ||
10097 | * frame.h: Declare them here. | |
10098 | ||
10099 | * macfns.c (x_set_mouse_color): Get rif from the frame. | |
10100 | (x_set_tool_bar_lines): Don't use updating_frame. | |
10101 | (mac_window): Add 2 new parameters for consistency with other systems. | |
10102 | (Fx_create_frame): Fix doc string. Rename the parameter. Set the | |
10103 | frame parameters following what is done in X11 and w32. Don't use | |
10104 | FRAME_MAC_DISPLAY_INFO. | |
10105 | (Fx_open_connection, start_hourglass): Remove window-system check. | |
10106 | (x_create_tip_frame): Get the keyboard from the terminal. | |
10107 | ||
10108 | * macmenu.c: Reorder includes. | |
10109 | (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
10110 | ||
10111 | * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a | |
10112 | terminal parameter. | |
10113 | (x_clear_frame): Add a frame parameter. | |
10114 | (note_mouse_movement): Get rif from the frame. | |
10115 | (mac_term_init): Initialize the terminal. | |
10116 | (mac_initialize): Make static and move terminal initialization ... | |
10117 | (mac_create_terminal): ... to this new function. | |
10118 | ||
10119 | * macterm.h (struct mac_display_info): Add terminal. | |
7196c970 | 10120 | (mac_initialize): Delete declaration. |
8d9cc0b7 | 10121 | |
381864b2 | 10122 | * puresize.h (BASE_PURESIZE): Increase base value to 1164000. |
8d9cc0b7 MB |
10123 | |
10124 | * sysdep.c: Comment out text after #endif. | |
10125 | ||
10126 | * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD | |
10127 | is defined. Better initialize ttys in windows. Use terminal | |
10128 | specific mouse_position_hook. | |
10129 | ||
10130 | * termhooks.h (union display_info): Add mac_display_info. | |
10131 | ||
b8866860 SM |
10132 | * w32fns.c (Fx_create_frame): Use kboard from the terminal. |
10133 | Set the default minibuffer frame, window_system and the rest of the | |
8d9cc0b7 MB |
10134 | frame parameters following what is done in X11. |
10135 | ||
10136 | * w32term.c (w32_initialize): Make static. | |
10137 | ||
10138 | * xselect.c (x_handle_selection_clear): Only access | |
10139 | terminal->kboard when MULTI_KBOARD is defined. | |
10140 | ||
10141 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. | |
10142 | (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. | |
10143 | ||
10144 | 2007-08-29 Jason Rumney <jasonr@gnu.org> | |
10145 | ||
10146 | * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. | |
10147 | (make_terminal_frame) [WINDOWSNT]: Initialize terminal. | |
10148 | ||
10149 | * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]: | |
10150 | (mac_init_fringe) [MAC_OS]: Get rif from selected_frame. | |
10151 | ||
10152 | * keyboard.c (restore_kboard_configuration): Only define when | |
10153 | MULTI_KBOARD defined. | |
10154 | ||
35277b03 | 10155 | * makefile.w32-in: Update dependancies from Makefile.in. |
8d9cc0b7 MB |
10156 | (OBJ1): Add terminal.$(O) |
10157 | ||
b8866860 SM |
10158 | * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: |
10159 | Don't define function body. | |
8d9cc0b7 MB |
10160 | (init_tty) [WINDOWSNT]: Use selected_frame for initializing. |
10161 | ||
10162 | * termhooks.h (display_info) [WINDOWSNT]: Add w32. | |
10163 | ||
10164 | * w32.c (request_sigio, unrequest_sigio): Remove. | |
10165 | ||
10166 | * w32console.c (w32con_move_cursor, w32con_clear_to_end) | |
10167 | (w32con_clear_frame, w32con_clear_end_of_line) | |
10168 | (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) | |
10169 | (w32con_delete_glyphs, w32con_set_terminal_window) | |
10170 | (scroll_line, w32_sys_ring_bell): Add frame arg. | |
b8866860 SM |
10171 | (w32con_set_terminal_modes, w32con_reset_terminal_modes): |
10172 | Add terminal arg. | |
8d9cc0b7 MB |
10173 | (PICK_FRAME): Remove. |
10174 | (w32con_write_glyphs): Use frame specific terminal coding. | |
10175 | (one_and_only_w32cons): New global variable. | |
10176 | (initialize_w32_display): Use it for storing hooks. | |
10177 | (create_w32cons_output): New function. | |
10178 | ||
10179 | * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first | |
10180 | arg a frame. | |
10181 | ||
b8866860 SM |
10182 | * w32fns.c (x_create_tip_frame): Set terminal and ref count. |
10183 | Set window_system. | |
8d9cc0b7 MB |
10184 | (x_set_tool_bar_lines): Don't use updating_frame. |
10185 | (Fx_create_frame): Set terminal and ref count. | |
10186 | (Fx_open_connection): Remove window-system check. | |
10187 | ||
10188 | * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
10189 | ||
10190 | * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor. | |
10191 | (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg. | |
10192 | (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines): | |
10193 | Add frame arg. | |
10194 | (x_delete_terminal, w32_create_terminal): New functions. | |
10195 | (w32_term_init): Create a terminal. | |
10196 | (w32_initialize): Move terminal specific initialization to | |
10197 | w32_create_terminal. | |
10198 | ||
b8866860 | 10199 | * w32term.h (x_output): Remove foreground_pixel and background_pixel. |
8d9cc0b7 MB |
10200 | (w32_clear_rect, w32_clear_area): Use background from frame. |
10201 | (w32_display_info): Add terminal. | |
10202 | (w32_sys_ring_bell, x_delete_display): Declare here. | |
10203 | ||
10204 | * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. | |
10205 | ||
10206 | * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. | |
10207 | ||
10208 | 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change) | |
10209 | ||
10210 | * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): | |
10211 | Fix get_named_tty calls for the controlling tty. | |
10212 | ||
10213 | 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) | |
10214 | ||
10215 | * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. | |
10216 | ||
10217 | 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) | |
10218 | ||
10219 | * term.c (tty_insert_glyphs): Add missing first parameter. | |
10220 | ||
880820fe | 10221 | 2007-08-29 Károly Lőrentey <karoly@lorentey.hu> |
8d9cc0b7 | 10222 | |
b8866860 SM |
10223 | * buffer.c (Fbuffer_list, Fbury_buffer): |
10224 | Take frame->buried_buffer_list into account. | |
8d9cc0b7 MB |
10225 | |
10226 | * cm.c (current_tty): New variable, for cmputc(). | |
10227 | (cmputc): Use it. | |
10228 | (cmcheckmagic): Add tty parameter, look up terminal streams there. | |
10229 | (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). | |
b8866860 SM |
10230 | (cmgoto): Add tty parameter. Pass it on to calccost(). |
10231 | Use emacs_tputs() instead of tputs(). | |
8d9cc0b7 MB |
10232 | |
10233 | * cm.h (emacs_tputs): New macro to set current_tty, and then call | |
10234 | tputs(). | |
10235 | (current_tty): New variable, for cmputc(). | |
10236 | (cmcheckmagic, cmputc, cmgoto): Add prototypes. | |
10237 | ||
10238 | * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. | |
10239 | (internal_condition_case, internal_condition_case_1) | |
10240 | (internal_condition_case_2): Don't abort when x_catching_errors. | |
10241 | ||
10242 | * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals. | |
10243 | (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to | |
10244 | prevent crashes caused by bogus longjmps in read_char. | |
10245 | ||
10246 | * keymap.h (Fset_keymap_parent): Add EXFUN. | |
10247 | ||
10248 | * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
10249 | * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): | |
10250 | Remove redundant definition. | |
10251 | ||
b8866860 SM |
10252 | * macfns.c (x_set_mouse_color, x_make_gc): |
10253 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 | 10254 | |
b8866860 SM |
10255 | * w32term.c (x_free_frame_resources): |
10256 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
10257 | (w32_initialize): Use the accessor macros for terminal characteristics. |
10258 | ||
10259 | * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. | |
10260 | Use the accessor macros for terminal characteristics. | |
10261 | * msdos.c (internal_terminal_init): Use the accessor macros for | |
10262 | terminal characteristics. | |
b8866860 SM |
10263 | (ScreenVisualBell, internal_terminal_init): |
10264 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
10265 | |
10266 | * termopts.h (no_redraw_on_reenter): Declare. | |
10267 | ||
10268 | * alloc.c (emacs_blocked_malloc): Disable mallopt call. | |
03f06e5c | 10269 | (mark_terminals, mark_ttys): Declare. |
8d9cc0b7 | 10270 | (Fgarbage_collect): Call them. |
03f06e5c | 10271 | (mark_object): Mark buried_buffer_list. |
8d9cc0b7 MB |
10272 | |
10273 | * prefix-args.c: Include stdlib.h for exit. | |
10274 | ||
10275 | * syssignal.h: Add comment. | |
10276 | ||
10277 | * indent.c: Include stdio.h. | |
10278 | ||
10279 | * window.h (Vinitial_window_system): Declare. | |
10280 | (Vwindow_system): Delete declaration. | |
10281 | ||
10282 | * fontset.c (Finternal_char_font): Use FRAME_RIF. | |
10283 | ||
10284 | * image.c (lookup_image): Don't initialize `c' until the xasserts | |
10285 | have been run. | |
10286 | ||
10287 | * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and | |
10288 | FRAME_FOREGROUND_PIXEL. | |
10289 | ||
10290 | * print.c (print_preprocess): Don't lose print_depth levels while | |
10291 | iterating. | |
10292 | ||
b8866860 SM |
10293 | * widget.c (update_from_various_frame_slots): |
10294 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
10295 | |
10296 | * window.c (set_window_buffer): Don't call clear_mouse_face on tty | |
10297 | frames. | |
10298 | (window_internal_height): Remove bogus make_number call. | |
b8866860 | 10299 | (init_window_once): Call make_terminal_frame with two zero parameters. |
8d9cc0b7 MB |
10300 | |
10301 | * fileio.c (Fread_file_name): Update comment. | |
10302 | ||
b8866860 SM |
10303 | * callint.c (Fcall_interactively): |
10304 | Use temporarily_switch_to_single_kboard instead of single_kboard_state. | |
8d9cc0b7 MB |
10305 | Make sure it is correctly unwound. |
10306 | ||
10307 | * xsmfns.c (x_session_close): New function. | |
10308 | ||
03f06e5c | 10309 | * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): |
8d9cc0b7 MB |
10310 | Delete declarations. |
10311 | ||
10312 | * xterm.h: Remove declaration for x_fully_uncatch_errors. | |
10313 | (x_output): Remove background_pixel and foreground_pixel fields. | |
03f06e5c | 10314 | (x_display_info): Add new field TERMINAL. Remove KBOARD field. |
c3f9fba8 | 10315 | (x_delete_device, x_session_close): Declare. |
8d9cc0b7 MB |
10316 | |
10317 | * lread.c: Include setjmp.h. Update declaration of `read_char'. | |
10318 | (read_filtered_event): Call `read_char' with a local | |
10319 | `wrong_kboard_jmpbuf'. | |
10320 | ||
b8866860 SM |
10321 | * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. |
10322 | Don't call single_kboard_state. Use FRAME_RIF. | |
8d9cc0b7 MB |
10323 | |
10324 | * process.c (Fmake_network_process): Don't unrequest_sigio on modern | |
10325 | systems. | |
10326 | ||
b8866860 | 10327 | * lisp.h (set_process_environment): Rename to `set_global_environment'. |
03f06e5c | 10328 | (Fframe_with_environment, Fset_input_meta_mode) |
8d9cc0b7 | 10329 | (Fset_quit_char): EXFUN. |
03f06e5c | 10330 | (x_create_device, tty_output, terminal, tty_display_info): Declare. |
8d9cc0b7 MB |
10331 | (init_sys_modes, reset_sys_modes): Update prototypes. |
10332 | (init_all_sys_modes, reset_all_sys_modes): New prototypes. | |
10333 | ||
b8866860 SM |
10334 | * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, |
10335 | Vlocal_key_translation_map, and Vkeyboard_translate_table. | |
03f06e5c | 10336 | (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): |
8d9cc0b7 | 10337 | Delete declarations. |
03f06e5c JB |
10338 | (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) |
10339 | (temporarily_switch_to_single_kboard, tty_read_avail_input): | |
8d9cc0b7 MB |
10340 | New declarations. |
10341 | ||
10342 | * emacs.c (main): Don't call init_sys_modes(), the new term_init() | |
10343 | already does that during init_display(). Call syms_of_keymap | |
b8866860 SM |
10344 | before syms_of_keyboard. Call `syms_of_terminal'. |
10345 | Call set_initial_environment, not set_process_environment. | |
8d9cc0b7 MB |
10346 | (shut_down_emacs): Call reset_all_sys_modes() instead of |
10347 | reset_sys_modes(). | |
10348 | ||
10349 | * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. | |
03f06e5c JB |
10350 | (internal_resolve_face_name, resolve_face_name_error): New functions. |
10351 | (resolve_face_name): Protect against loops and errors thrown by Fget. | |
10352 | (realize_default_face): Don't use FRAME_FONT unless frame is an X frame. | |
8d9cc0b7 MB |
10353 | (Ftty_supports_face_attributes_p): Update tty_capable_p call. |
10354 | ||
10355 | * scroll.c: Replace CURTTY() with local variables throughout the | |
10356 | file (where applicable). | |
10357 | (calculate_scrolling, calculate_direct_scrolling) | |
10358 | (scrolling_1, scroll_cost): Use the accessor macros for terminal | |
10359 | characteristics. | |
10360 | ||
10361 | * keymap.c (Vfunction_key_map): Remove. | |
b8866860 | 10362 | (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. |
8d9cc0b7 MB |
10363 | (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. |
10364 | (Vkey_translation_map): Remove. | |
10365 | (syms_of_keymap): Remove DEFVAR for key-translation-map. | |
c3f9fba8 | 10366 | (Fdescribe_buffer_bindings) |
8d9cc0b7 MB |
10367 | (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): |
10368 | Update for terminal-local key-translation-map. | |
10369 | ||
10370 | * Makefile.in (callproc.o): Update dependencies. | |
10371 | (lisp, shortlisp): Add termdev.elc. | |
10372 | (obj): Add terminal.o. | |
10373 | (terminal.o): Add dependencies. | |
10374 | [HAVE_CARBON]: Make terminal.o depend on macgui.h. | |
10375 | (data.o, fns.o): Add termhooks.h dependency. | |
10376 | (SOME_MACHINE_LISP): Add dnd.elc. | |
10377 | (minibuf.o): Fix typo. | |
10378 | Update dependencies. | |
10379 | ||
10380 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
10381 | (find_symbol_value): Use the selected frame's keyboard, not | |
10382 | current_kboard. | |
10383 | ||
10384 | * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of | |
10385 | Vwindow_system. | |
10386 | ||
10387 | * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from | |
10388 | Fmenu_bar_open. | |
10389 | (syms_of_xmenu): Update defsubr. | |
10390 | (mouse_position_for_popup, Fx_popup_menu) | |
10391 | (Fx_popup_dialog, x_activate_menubar, update_frame_menubar) | |
10392 | (set_frame_menubar, free_frame_menubar) | |
10393 | (create_and_show_popup_menu, xmenu_show, ) | |
10394 | (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not | |
10395 | an X frame. | |
10396 | ||
10397 | * xselect.c (x_own_selection): Abort if not an X frame. | |
10398 | (some_frame_on_display): Check if it is an X frame. | |
10399 | (x_handle_selection_clear): Deal with MULTI_KBOARD. | |
10400 | ||
10401 | * coding.c: Include frame.h and termhooks.h. | |
03f06e5c | 10402 | (terminal_coding, keyboard_coding): Delete. |
c3f9fba8 JB |
10403 | (Fset_terminal_coding_system_internal) |
10404 | (Fset_keyboard_coding_system_internal) | |
10405 | (Fkeyboard_coding_system) | |
03f06e5c JB |
10406 | (Fterminal_coding_system): Add a terminal parameter. |
10407 | Get terminal_coding from the terminal. | |
8d9cc0b7 MB |
10408 | (init_coding_once): Don't call setup_coding_system here. |
10409 | ||
10410 | * dispextern.h (set_scroll_region, turn_off_insert) | |
10411 | (turn_off_highlight, background_highlight, clear_end_of_line_raw) | |
10412 | (tty_clear_end_of_line, tty_setup_colors) | |
03f06e5c | 10413 | (delete_tty, updating_frame) |
8d9cc0b7 MB |
10414 | (produce_special_glyphs, produce_glyphs, write_glyphs) |
10415 | (insert_glyphs): Remove. | |
10416 | (raw_cursor_to, clear_to_end, tty_turn_off_insert) | |
03f06e5c | 10417 | (tty_turn_off_highlight, get_tty_size): Add declaration. |
b8866860 | 10418 | (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. |
8d9cc0b7 MB |
10419 | |
10420 | * frame.h (enum output_method): Add output_initial. | |
10421 | (struct x_output): Delete. | |
b8866860 SM |
10422 | (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
10423 | Access foreground_pixel and background_pixel directly from the frame. | |
8d9cc0b7 MB |
10424 | (tty_display): Delete. |
10425 | (struct frame): Add buried_buffer_list, foreground_pixel, | |
03f06e5c | 10426 | background_pixel and terminal. Delete kboard |
8d9cc0b7 MB |
10427 | (union output_data): Add tty. |
10428 | (FRAME_KBOARD): Get the kboard from the terminal. | |
10429 | (FRAME_INITIAL_P): New macro. | |
10430 | (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) | |
10431 | (Qterm_environment_variable, Qdisplay_environment_variable) | |
b8866860 SM |
10432 | (make_terminal_frame, Qburied_buffer_list, Qwindow_system): |
10433 | New declarations. | |
8d9cc0b7 MB |
10434 | |
10435 | * termchar.h (tty_output, tty_display_info): New structures. | |
10436 | (tty_list): Declare. | |
10437 | (FRAME_TTY, CURTTY): New macros. | |
10438 | (must_write_spaces, min_padding_speed, fast_clear_end_of_line) | |
10439 | (line_ins_del_ok, char_ins_del_ok, scroll_region_ok) | |
10440 | (scroll_region_cost, memory_below_frame, fast_clear_end_of_line) | |
10441 | (dont_calculate_costs, no_redraw_on_reenter): Remove declarations. | |
10442 | ||
10443 | * callproc.c: Include frame.h and termhooks.h, for terminal | |
10444 | parameters. | |
10445 | (add_env): New function. | |
10446 | (child_setup): Use it. | |
b8866860 | 10447 | (child_setup, getenv_internal): Handle the new Vprocess_environment. |
8d9cc0b7 MB |
10448 | (getenv_internal): Fix get_terminal_param call. |
10449 | (Fgetenv_internal, egetenv): Update doc. | |
10450 | (syms_of_callproc): Initialize Vprocess_environment to nil. | |
03f06e5c | 10451 | Register and initialize them. Remove obsolete defvars. Update doc |
8d9cc0b7 MB |
10452 | strings. |
10453 | (child_setup): Handle Vlocal_environment_variables. | |
b8866860 SM |
10454 | (getenv_internal): Add terminal parameter. |
10455 | Handle Vlocal_environment_variables. | |
8d9cc0b7 MB |
10456 | (Fgetenv_internal): Add terminal parameter. |
10457 | (child_setup, getenv_internal, Fgetenv_internal): Store the local | |
b8866860 | 10458 | environment in a frame (not terminal) parameter. Update doc strings. |
8d9cc0b7 MB |
10459 | (set_initial_environment): Rename from set_global_environment. |
10460 | Store Emacs environment in initial frame parameter. | |
10461 | ||
10462 | * xdisp.c (redisplay_internal): Update references to | |
10463 | `previous_terminal_frame'. | |
10464 | (display_mode_line, Fformat_mode_line): Replace calls to | |
10465 | `push_frame_kboard' with `push_kboard'. | |
10466 | (get_glyph_string_clip_rects): Add extra parentheses and | |
10467 | braces to prevent compiler warnings. | |
10468 | (calc_pixel_width_or_height): Add xassert to check that the | |
10469 | frame is alive. Don't call `lookup_image' on a termcap frame. | |
10470 | (message2_nolog, message3_nolog, redisplay_internal) | |
10471 | (set_vertical_scroll_bar, redisplay_window, check_x_display_info) | |
10472 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background) | |
10473 | (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) | |
10474 | (Fx_display_pixel_width, Fx_display_pixel_height) | |
10475 | (Fx_display_planes, Fx_display_color_cells) | |
10476 | (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) | |
10477 | (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) | |
10478 | (Fx_display_backing_store, Fx_display_visual_class) | |
10479 | (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): | |
97ddc760 | 10480 | Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. |
8d9cc0b7 MB |
10481 | |
10482 | * xfns.c (x_set_foreground_color x_set_background_color) | |
b8866860 SM |
10483 | (x_set_mouse_color, x_set_cursor_color, x_make_gc): |
10484 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
10485 | (Fx_create_frame, x_create_tip_frame, build_string, x_window) |
10486 | (Fx_create_frame, x_create_tip_frame): Don't create frames on a | |
10487 | terminal that is being deleted. | |
10488 | (Fx_create_frame): Use `store_frame_param' to set `window-system' | |
b8866860 | 10489 | frame parameter, and make sure it overrides any user-supplied setting. |
8d9cc0b7 MB |
10490 | (Fx_close_connection, Fx_synchronize): Unify argument names with |
10491 | the rest of the DEFUNs. | |
10492 | ||
10493 | * dispnew.c (Fsend_string_to_terminal): Update call to | |
10494 | `get_tty_terminal'. | |
10495 | (Fredraw_frame, Fsend_string_to_terminal) | |
2d33f506 | 10496 | (Fsend_string_to_terminal, init_display): Use FRAME_RIF, |
8d9cc0b7 MB |
10497 | FRAME_TERMCAP_P and FRAME_TTY. |
10498 | (window_change_signal): Don't believe width/height values that are | |
10499 | impossibly small. | |
10500 | (Vinitial_window_system): Rename from Vwindow_system. | |
10501 | (termscript, Wcm, rif): Delete. | |
10502 | ||
10503 | * termhooks.h (struct terminal): New struct containing the | |
10504 | previously global text display hooks and new members NAME, | |
10505 | DELETED and PARAM_ALIST. | |
10506 | (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING) | |
10507 | (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P) | |
10508 | (FRAME_RIF): New macros. | |
10509 | (get_terminal_param, get_device): New declarations. | |
10510 | (termscript): Delete declaration. | |
10511 | ||
10512 | * xterm.c (x_initialize): Use Fset_input_interrupt_mode. | |
10513 | (XTflash, x_free_frame_resources, x_scroll_bar_create) | |
10514 | (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and | |
10515 | FRAME_FOREGROUND_PIXEL. | |
10516 | (x_fully_uncatch_errors): Disable definition. | |
10517 | (x_scroll_bar_expose): Fix reference to foreground pixel. | |
10518 | (XTread_socket): Disable loop on all X displays. | |
10519 | (x_delete_terminal): Don't set terminal->deleted and let | |
10520 | delete_terminal delete the frames on the terminal. | |
10521 | (x_delete_display): Doc update to reflect changes in | |
10522 | delete_terminal. | |
10523 | (x_display_info) <terminal>: Move member earlier in the struct. | |
8d9cc0b7 MB |
10524 | (deleting_tty): Remove old variable. |
10525 | (Fsuspend_tty): Call clear_tty_hooks. | |
10526 | (Fresume_tty, init_tty): Call set_tty_hooks. | |
8d9cc0b7 MB |
10527 | (Ftty_display_color_p, Ftty_display_color_cells): Don't throw |
10528 | errors on X frames. | |
10529 | (x_catch_errors_unwind): Abort if x_error_message is NULL. | |
10530 | (handle_one_xevent): Initialize `f' to NULL. | |
9cab96b0 | 10531 | (x_delete_terminal, x_create_terminal): New functions. |
8d9cc0b7 MB |
10532 | (XTset_terminal_modes, XTreset_terminal_modes) |
10533 | (XTread_socket, x_connection_closed, x_term_init) | |
10534 | (x_term_init, x_delete_display): Add terminal parameter. | |
10535 | (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary | |
10536 | X connections. | |
10537 | ||
bf380f53 GM |
10538 | * frame.c: Include termchar.h. |
10539 | (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type) | |
10540 | (Qwindow_system, Qenvironment, Qterm_environment_variable) | |
10541 | (Qdisplay_environment_variable): New vars. | |
10542 | (Fframep): Deal with output_initial. | |
10543 | (Fframe-live-p): Doc fix. | |
10544 | (Fwindow-system): New function. | |
8d9cc0b7 MB |
10545 | (x_set_screen_gamma, store_frame_param): Fix compilation errors. |
10546 | (make_terminal_frame): Don't create frames on a terminal that is | |
bf380f53 | 10547 | being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
b8866860 | 10548 | (store_frame_param): Check for found_for_frame before calling XFRAME. |
8d9cc0b7 MB |
10549 | (Fmake_terminal_frame): Handle NULL tty names correctly. |
10550 | (syms_of_frame): Enhance doc string of `default-frame-alist'. | |
bf380f53 GM |
10551 | (Fdelete_frame): Remove unused variable `count'. Don't allow other |
10552 | frames to refer to a deleted frame in their 'environment parameter. | |
8d9cc0b7 | 10553 | (Fframe_with_environment): New function. |
b8866860 | 10554 | (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. |
8d9cc0b7 MB |
10555 | (get_future_frame_param): New function. |
10556 | (Fmake_terminal_frame): Use it. | |
2d33f506 | 10557 | (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF. |
8d9cc0b7 MB |
10558 | |
10559 | * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. | |
10560 | * sysdep.c (reset_sys_modes): Update for renames. | |
10561 | ||
10562 | * keyboard.c (tty_read_avail_input): New function. | |
03f06e5c | 10563 | (Fset_input_interrupt_mode, Fset_output_flow_control): New functions. |
8d9cc0b7 MB |
10564 | (syms_of_keyboard): Defsubr them. |
10565 | (Fset_input_meta_mode, Fset_quit_char): New functions. | |
10566 | (Fset_input_mode): Split to above functions. | |
10567 | ||
10568 | (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf | |
10569 | parameter. Use it in call to `read_char'. | |
b8866860 SM |
10570 | (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. |
10571 | Set wrong_kboard_jmpbuf correctly in recursive calls. | |
10572 | Use current_kboard to access Vkeyboard_translate_table. | |
10573 | Enhance comment before extra longjmp to wrong_kboard_jmpbuf. | |
10574 | Add wrong_kboard_jmpbuf parameter to allow for recursive calls. | |
10575 | Update longjmp invocations. Remember the original current_kboard, | |
10576 | and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel | |
10577 | changes it. Comment out unnecessary calls to | |
10578 | `record_single_kboard_state' and `any_kboard_state'. | |
10579 | Update recursive calls. | |
8d9cc0b7 MB |
10580 | (wrong_kboard_jmpbuf): Remove global variable. |
10581 | (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. | |
10582 | Handle deleted interrupted_kboards correctly; that is a legal | |
10583 | case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp | |
b8866860 | 10584 | and read_char calls. Abort if interrupted_kboard died in read_char. |
8d9cc0b7 MB |
10585 | (any_kboard_state, single_kboard_state) |
10586 | (push_frame_kboard): Remove function. | |
10587 | (pop_kboard): Switch out of single_kboard mode if the kboard has | |
03f06e5c JB |
10588 | been deleted. Remove unused variable. Help debugging by not |
10589 | changing current_kboard unnecessarily. Set current_kboard to the | |
8d9cc0b7 MB |
10590 | kboard of the selected frame when the stored kboard object has |
10591 | been deleted before pop_kboard. | |
10592 | (temporarily_switch_to_single_kboard): Change first parameter to a | |
10593 | frame pointer. Throw an error when caller wants to change kboards | |
10594 | while in single_kboard mode. Don't push_kboard if we weren't in | |
10595 | single kboard state. Don't pop_kboard if we popped into any | |
10596 | kboard state. | |
10597 | (restore_kboard_configuration): Abort if pop_kboard changed the | |
03f06e5c | 10598 | kboard in single_kboard mode. Call pop_kboard only after setting |
8d9cc0b7 MB |
10599 | up single_kboard mode. |
10600 | (Frecursive_edit): Switch to single_kboard mode only in nested | |
10601 | command loops. | |
b8866860 SM |
10602 | (cmd_error, command_loop, command_loop_1, timer_check): |
10603 | Comment out unnecessary call to `any_kboard_state' and | |
8d9cc0b7 MB |
10604 | `record_single_kboard_state'. |
10605 | (delete_kboard): Exit single_kboard mode if we have just deleted | |
03f06e5c | 10606 | that kboard. Use FRAME_KBOARD. |
8d9cc0b7 MB |
10607 | (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not |
10608 | `fatal_error_signal'. | |
10609 | (record_single_kboard_state): Don't push_kboard if we weren't in | |
10610 | single kboard state. Don't pop_kboard if we popped into any | |
10611 | kboard state. | |
10612 | (push_frame_kboard): Rename to push_kboard. | |
10613 | (kbd_buffer_get_event): Use FRAME_TERMINAL. | |
10614 | (read_avail_input): Read input from all terminals. | |
10615 | (mark_kboards): Also mark Vkeyboard_translate_table. | |
10616 | (kbd_buffer_store_event_hold): Simplify condition. | |
10617 | (read_key_sequence): Reinitialize fkey and keytran at each replay. | |
10618 | (Vkeyboard_translate_table): Move to struct kboard. | |
10619 | (init_kboard): Initialize Vkeyboard_translate_table. | |
10620 | (syms_of_keyboard): Use DEFVAR_KBOARD to define | |
10621 | Vkeyboard_translate_table. Update doc strings. Update docs of | |
10622 | local-function-key-map and function-key-map. | |
10623 | ||
10624 | * terminal.c: New file. | |
10625 | ||
10626 | * term.c: Include errno.h. | |
10627 | (Vring_bell_function, device_list, initial_device) | |
10628 | (next_device_id, ring_bell, update_begin, update_end) | |
10629 | (set_terminal_window, cursor_to, raw_cursor_to) | |
10630 | (clear_to_end, clear_frame, clear_end_of_line) | |
10631 | (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) | |
10632 | (Fdisplay_name, create_device, delete_device): Move to terminal.c. | |
10633 | (syms_of_term): Move their initialization to terminal.c. | |
10634 | (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p) | |
10635 | (Ftty_display_color_cells) | |
10636 | (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) | |
9cab96b0 | 10637 | (clear_tty_hooks, set_tty_hooks) |
8d9cc0b7 MB |
10638 | (init_tty, maybe_fatal): New functions. |
10639 | (Ftty_type): Return nil if terminal is not on a tty instead of | |
10640 | throwing an error. Doc update. | |
10641 | (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>: | |
03f06e5c | 10642 | Doc update. Initialize new subrs and variables. |
8d9cc0b7 MB |
10643 | (delete_tty): Use terminal->deleted. |
10644 | (tty_set_terminal_modes): Rename from set_terminal_modes. | |
10645 | (tty_reset_terminal_modes): Rename from reset_terminal_modes. | |
10646 | (set_scroll_region): Rename to `tty_set_scroll_region'. | |
10647 | (turn_on_insert): Rename to `tty_turn_on_insert'. | |
10648 | (turn_off_insert): Rename to `tty_turn_off_insert'. | |
10649 | (turn_off_highlight): Rename to `tty_turn_off_highlight'. | |
10650 | (turn_on_highlight): Rename to `tty_turn_on_highlight'. | |
10651 | (toggle_highligh): Rename to `tty_toggle_highlight'. | |
10652 | (background_highlight): Rename to `tty_background_highlight'. | |
10653 | (highlight_if_desired): Rename to `tty_highlight_if_desired'. | |
10654 | (tty_ring_bell, tty_update_end, tty_set_terminal_window) | |
10655 | (tty_set_scroll_region, tty_background_highlight) | |
10656 | (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) | |
10657 | (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) | |
10658 | (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) | |
10659 | (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty): | |
10660 | Add static modifier. | |
10661 | (tty_reset_terminal_modes, tty_set_terminal_window) | |
10662 | (tty_set_scroll_region, tty_background_highlight) | |
10663 | (tty_highlight_if_desired, tty_cursor_to) | |
10664 | (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) | |
10665 | (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) | |
10666 | (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for | |
10667 | renames. | |
10668 | ||
880820fe | 10669 | 2007-08-28 Jan Djärv <jan.h.d@swipnet.se> |
cf0590c4 JD |
10670 | |
10671 | * keyboard.c: Qrtl is new. | |
10672 | (parse_tool_bar_item): Handle :rtl keyword. | |
10673 | (syms_of_keyboard): Intern :rtl keyword. | |
10674 | ||
10675 | * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. | |
10676 | ||
10677 | * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED | |
10678 | so no Lisp code is executed. | |
10679 | (file_for_image, find_rtl_image): New functions. | |
10680 | (xg_get_image_for_pixmap): Use file_for_image | |
10681 | (update_frame_tool_bar): If direction is RTL, use RTL image if | |
10682 | defined. Use Gtk stock images if defined. | |
10683 | ||
83cc8d35 YM |
10684 | 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10685 | ||
10686 | * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle | |
10687 | for nonexistent or zero-width glyph in composition glyph. | |
10688 | ||
e60c4e15 SM |
10689 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> |
10690 | ||
d7e2a28f SM |
10691 | * m/amdx86-64.h: Redirect to intel386.h if compiling for i386. |
10692 | ||
e60c4e15 SM |
10693 | * xdisp.c (Finvisible_p): New function. |
10694 | (syms_of_xdisp): defsubr it. | |
10695 | ||
ee163e6d JB |
10696 | 2007-08-24 Juanma Barranquero <lekktu@gmail.com> |
10697 | ||
10698 | * image.c (syms_of_image) <image-library-alist, cross-disabled-images>: | |
10699 | Doc fixes. | |
10700 | ||
90fa408d YM |
10701 | 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10702 | ||
35277b03 | 10703 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. |
90fa408d | 10704 | |
cac4219c MR |
10705 | 2007-08-24 Martin Rudalics <rudalics@gmx.at> |
10706 | ||
10707 | * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell | |
10708 | whether decoding has modified buffer contents. | |
10709 | ||
5fc9fdeb JR |
10710 | 2007-08-24 Jason Rumney <jasonr@gnu.org> |
10711 | ||
10712 | * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG. | |
10713 | (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols. | |
10714 | (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them. | |
10715 | (init_svg_functions) [HAVE_NTGUI]: New function. | |
10716 | (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines. | |
10717 | (svg_load_image): Use them. | |
10718 | (svg_load_image) [HAVE_NTGUI]: Implement background. | |
10719 | ||
93b23406 YM |
10720 | 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10721 | ||
10722 | * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables. | |
10723 | (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@. | |
10724 | (LIBX): Remove @RSVG_LIBS@. | |
10725 | (LIBES): Add $(RSVG_LIBS). | |
10726 | ||
10727 | * image.c (svg_load_image): Blend with specified background if exists. | |
10728 | Use IMAGE_BACKGROUND. Add Mac OS Support. | |
10729 | ||
10730 | * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. | |
10731 | (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: | |
10732 | Remove macros. | |
10733 | [MAC_OSX] (socket_callback): Do nothing. | |
10734 | [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of | |
10735 | ReceiveNextEvent. | |
10736 | [MAC_OSX] (sys_select): Likewise. Don't set context as argument to | |
10737 | socket_callback. | |
10738 | (mac_wakeup_from_rne) [MAC_OSX]: Do nothing. | |
10739 | ||
2467875c GM |
10740 | 2007-08-22 Glenn Morris <rgm@gnu.org> |
10741 | ||
ff8da443 | 10742 | * image.c (x_find_image_file): Search in etc/images/ rather than etc/. |
2467875c | 10743 | |
4ab27a43 GM |
10744 | 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net> |
10745 | ||
10746 | * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS. | |
ff8da443 | 10747 | |
666e0eda GM |
10748 | * image.c: Add support for SVG images. Some additional comments |
10749 | by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined: | |
10750 | (svg_image_p): New function to test for SVG image. | |
10751 | (svg_load): New function to load SVG image. | |
10752 | (svg_load_image): New function, helper for svg_load. | |
10753 | (Qsvg): New Lisp_object. | |
10754 | (svg_keyword_index): New enum. | |
10755 | (svg_format): New static `image_keyword' struct. | |
10756 | (svg_type): New static `image_type' struct. | |
10757 | (librsvg/rsvg.h): Include it. | |
4ab27a43 | 10758 | |
b636b4c1 SM |
10759 | 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> |
10760 | ||
10761 | * lread.c (load_warn_old_style_backquotes): Fix up array size typo. | |
10762 | ||
9ecb827b SM |
10763 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
10764 | ||
1d064697 SM |
10765 | * lread.c (Qold_style_backquotes): New var. |
10766 | (syms_of_lread): Init and staticpro it. | |
10767 | (load_warn_old_style_backquotes): New fun. | |
10768 | (Fload): Use them to warn about old style backquotes. | |
10769 | (end_of_file_error, Fload): Remove unused vars. | |
10770 | ||
5772ed4b SM |
10771 | * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. |
10772 | ||
9ecb827b | 10773 | * lread.c (Vold_style_backquotes): New var. |
5aa273b0 | 10774 | (syms_of_lread): Init and export it to Elisp. |
9ecb827b SM |
10775 | (read1): Set it when we find an old-style (back)quote. |
10776 | ||
32e1c7b1 JR |
10777 | 2007-08-22 Jason Rumney <jasonr@gnu.org> |
10778 | ||
10779 | * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. | |
10780 | ||
b8fa755b KY |
10781 | 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org> |
10782 | ||
10783 | * puresize.h (BASE_PURESIZE): Increase to 1140000. | |
10784 | ||
1283140e RS |
10785 | 2007-08-19 Richard Stallman <rms@gnu.org> |
10786 | ||
10787 | * eval.c (Ffunction, Fquote): Signal error if not 1 argument. | |
10788 | ||
2c4685ee AS |
10789 | 2007-08-19 Andreas Schwab <schwab@suse.de> |
10790 | ||
10791 | * alloc.c (pure): Round PURESIZE up. | |
10792 | ||
880820fe | 10793 | 2007-08-17 Jan Djärv <jan.h.d@swipnet.se> |
e8953ebf JD |
10794 | |
10795 | * xterm.c (handle_one_xevent): Remove check that mouse click is in | |
10796 | active frame. | |
10797 | ||
6e33efc4 RS |
10798 | 2007-08-16 Richard Stallman <rms@gnu.org> |
10799 | ||
10800 | * eval.c (Fcommandp): Add parens to clarify. | |
10801 | ||
10802 | * minibuf.c (Fall_completions): Use enum for type of table. | |
10803 | ||
10804 | * emacs.c (USAGE2): Improve text. | |
10805 | ||
fcf8ff2e GM |
10806 | 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> |
10807 | ||
5205ee62 GM |
10808 | * term.c (tty_default_color_capabilities): Declare static |
10809 | variables in file scope, to avoid HPUX compiler problem. | |
fcf8ff2e | 10810 | |
880820fe | 10811 | 2007-08-13 Jan Djärv <jan.h.d@swipnet.se> |
81d13a51 JD |
10812 | |
10813 | * gtkutil.c (update_frame_tool_bar): Use -1 as index | |
10814 | to gtk_toolbar_insert. | |
10815 | ||
4a181359 SM |
10816 | 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca> |
10817 | ||
1bc99c9c SM |
10818 | * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. |
10819 | ||
4a181359 SM |
10820 | * insdel.c (reset_var_on_error): New fun. |
10821 | (signal_before_change, signal_after_change): | |
10822 | Use it to reset (after|before)-change-functions to nil in case of error. | |
10823 | Bind inhibit-modification-hooks to t. | |
10824 | Don't bind (after|before)-change-functions to nil while they run. | |
10825 | ||
6c28435c YM |
10826 | 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10827 | ||
10828 | * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when | |
10829 | filling pixmap with stippled background. | |
10830 | ||
ad3b3e02 YM |
10831 | 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10832 | ||
10833 | * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): | |
10834 | Don't use invisible frame as parent window for repositioning. | |
10835 | ||
a22dec27 SM |
10836 | 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> |
10837 | ||
10838 | * print.c (new_backquote_output): Rename from old_backquote_output. | |
10839 | (print): Inverse its logic (according to its name) so as to match the | |
10840 | behavior of new_backquote_flag in lread.c. | |
10841 | ||
7b7d07bb YM |
10842 | 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10843 | ||
10844 | * gmalloc.c (posix_memalign): New function. | |
10845 | ||
10846 | * macterm.c (frame_highlight, frame_unhighlight): Don't call | |
10847 | ActivateControl/DeactivateControl here. | |
10848 | [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when | |
10849 | frame-notice-user-settings is non-nil. | |
10850 | [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter | |
10851 | for kEventParamFMFontStyle. | |
10852 | [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check | |
10853 | mac_pass_command_to_system and mac_pass_control_to_system here. | |
10854 | (XTread_socket): Call ActivateControl/DeactivateControl here. | |
10855 | (XTread_socket) [TARGET_API_MAC_CARBON]: | |
10856 | Check mac_pass_command_to_system and mac_pass_control_to_system here. | |
f9426479 YM |
10857 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround |
10858 | for window repositioning. | |
7b7d07bb | 10859 | |
22e9fe24 GM |
10860 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
10861 | ||
10862 | * Replace `iff' in doc-strings and comments. | |
10863 | ||
ae494350 CY |
10864 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> |
10865 | ||
10866 | * xdisp.c (move_it_by_lines): Remove incorrect optimization. | |
10867 | ||
6f2528d8 MR |
10868 | 2007-08-07 Martin Rudalics <rudalics@gmx.at> |
10869 | ||
10870 | * fileio.c (Finsert_file_contents): Run format-decode and | |
10871 | after_insert_file_functions on entire buffer when REPLACE is | |
10872 | non-nil and inhibit modification_hooks and point_motion_hooks. | |
10873 | For consistency, run after_insert_file_functions iff something | |
10874 | got inserted. Move signal_after_change and update_compositions | |
10875 | after code running after_insert_file_functions. Make sure that | |
6b8e474c | 10876 | undo_list doesn't record intermediate steps of the decoding process. |
6f2528d8 | 10877 | |
3ceeb306 YM |
10878 | 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10879 | ||
10880 | * emacs.c (main) | |
10881 | [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | |
10882 | Call malloc_enable_thread on interactive startup. | |
10883 | ||
10884 | * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. | |
7b7d07bb YM |
10885 | (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) |
10886 | [USE_PTHREAD]: Conditionalize with it. | |
3ceeb306 YM |
10887 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) |
10888 | (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: | |
10889 | New functions. | |
10890 | ||
ca5e6fd5 CY |
10891 | 2007-08-06 Chong Yidong <cyd@stupidchicken.com> |
10892 | ||
32bfce5d CY |
10893 | * xdisp.c (redisplay_window): When restoring original buffer |
10894 | position, make sure it is still valid. | |
10895 | ||
ca5e6fd5 CY |
10896 | * image.c (png_load): Ignore png-supplied background color. |
10897 | ||
a5b11587 YM |
10898 | 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10899 | ||
10900 | * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. | |
10901 | Use kCFAbsoluteTimeIntervalSince1970. | |
10902 | ||
10903 | * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: | |
10904 | New variable. | |
10905 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog | |
10906 | event loop should be quit. | |
10907 | [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: | |
10908 | Quit dialog event loop if quit_dialog_event_loop is set. | |
10909 | ||
10910 | * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h. | |
10911 | (Selection): New typedef. Use instead of ScrapRef. | |
10912 | (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol. | |
10913 | (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p. | |
10914 | (mac_clear_selection): Rename from clear_scrap. | |
10915 | (get_flavor_type_from_symbol): New argument SEL and subsume function of | |
ff8da443 | 10916 | scrap_has_target_type. All uses changed. |
a5b11587 YM |
10917 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) |
10918 | (mac_selection_has_target_p): New functions. | |
10919 | (mac_put_selection_value): Rename from put_scrap_string. | |
10920 | (mac_get_selection_value): Rename from get_scrap_string. | |
10921 | (mac_get_selection_target_list): Rename from get_scrap_target_type_list. | |
10922 | (put_scrap_private_timestamp, scrap_has_target_type) | |
10923 | (get_scrap_private_timestamp): Remove functions. | |
10924 | (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define. | |
10925 | (x_own_selection, x_get_local_selection): | |
10926 | Use mac_valid_selection_value_p. | |
10927 | (x_own_selection): Don't use put_scrap_private_timestamp. | |
10928 | Record OWNERSHIP-INFO into Vselection_alist instead. | |
10929 | (x_get_local_selection): Don't check type if request is local. | |
10930 | (Fx_selection_owner_p): Don't use get_scrap_private_timestamp. | |
10931 | Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead. | |
10932 | ||
880820fe | 10933 | 2007-08-04 Jan Djärv <jan.h.d@swipnet.se> |
991bde0d JD |
10934 | |
10935 | * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s, | |
10936 | add comment explaining why. | |
10937 | ||
73ff9d42 RS |
10938 | 2007-08-03 Richard Stallman <rms@gnu.org> |
10939 | ||
10940 | * fileio.c (Fvisited_file_modtime): Use make_time. | |
10941 | ||
54ed9a2d | 10942 | 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) |
cdf5c17a VJL |
10943 | |
10944 | * mac.c (init_mac_osx_environment): Adjust load-path on self-contained | |
10945 | build. | |
10946 | ||
65a9c8e2 SM |
10947 | 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> |
10948 | ||
10949 | * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT. | |
10950 | ||
c5925799 KY |
10951 | 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org> |
10952 | ||
10953 | * puresize.h (BASE_PURESIZE): Increase to 1130000. | |
10954 | ||
adef3de7 RS |
10955 | 2007-07-30 Richard Stallman <rms@gnu.org> |
10956 | ||
10957 | * lread.c (readevalloop, read1): Treat NBSP as whitespace. | |
10958 | ||
880820fe | 10959 | 2007-07-29 Jan Djärv <jan.h.d@swipnet.se> |
784c1472 JD |
10960 | |
10961 | * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. | |
10962 | ||
a10421a1 NR |
10963 | 2007-07-28 Nick Roberts <nickrob@snap.net.nz> |
10964 | ||
10965 | * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for | |
10966 | remote default-directory. | |
10967 | ||
10968 | * buffer.c (mode-line-format): Update doc string. | |
10969 | ||
0cb1ae20 YM |
10970 | 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10971 | ||
10972 | * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to | |
10973 | scroll bar gap. | |
10974 | (x_scroll_bar_create): Set bar->fringe_extended_p. | |
10975 | (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars | |
10976 | on frame edge. Check fringe background extension. Don't clear | |
10977 | extended fringe background area. | |
10978 | ||
10979 | * w32term.h (struct scroll_bar): New member fringe_extended_p. | |
10980 | (w32_fill_area): Enclose multiple statements with do ... while (0). | |
10981 | ||
10982 | * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: | |
10983 | Extend fringe background to scroll bar gap. | |
10984 | (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: | |
10985 | Set bar->fringe_extended_p. | |
10986 | (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
10987 | Put leftmost/rightmost scroll bars on frame edge. Check fringe | |
10988 | background extension. Don't clear extended fringe background area. | |
10989 | ||
10990 | * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
10991 | New member fringe_extended_p. | |
10992 | ||
cacc7b51 GM |
10993 | 2007-07-25 Glenn Morris <rgm@gnu.org> |
10994 | ||
10995 | * Relicense all FSF files to GPLv3 or later. | |
10996 | ||
10997 | * COPYING: Switch to GPLv3. | |
10998 | ||
89835619 SM |
10999 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> |
11000 | ||
c4f46926 SM |
11001 | * eval.c (Fcommandp): Pay attention to the `interactive-form' property. |
11002 | ||
11003 | * data.c (Finteractive_form): Check for the presence of an | |
11004 | `interactive-form' symbol property more thoroughly. | |
11005 | ||
11006 | * data.c (Finteractive_form): Use an `interactive-form' property if | |
89835619 SM |
11007 | present, analogous to the function-documentation property. |
11008 | ||
ee04257d JR |
11009 | 2007-07-24 Jason Rumney <jasonr@gnu.org> |
11010 | ||
11011 | * w32fns.c (x_real_positions): Get real position from OS instead of | |
11012 | calculating it. | |
11013 | ||
50624218 JR |
11014 | 2007-07-23 Jason Rumney <jasonr@gnu.org> |
11015 | ||
11016 | * filelock.c (current_lock_owner): Allow for @ sign in username. | |
11017 | ||
3650f60e NR |
11018 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> |
11019 | ||
11020 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for | |
11021 | remote default-directory. | |
11022 | ||
11023 | * buffer.c (mode-line-format): Describe above case in doc string. | |
11024 | ||
1e899515 | 11025 | 2007-07-20 Eli Zaretskii <eliz@gnu.org> |
b395d6e1 | 11026 | |
75be5258 EZ |
11027 | * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): |
11028 | Define if not defined. | |
11029 | ||
2b6e2f4d JR |
11030 | 2007-07-18 Jason Rumney <jasonr@gnu.org> |
11031 | ||
11032 | * w32proc.c (w32_executable_type): Handle 64 bit executables. | |
11033 | ||
23dacf80 JB |
11034 | 2007-07-18 Richard Stallman <rms@gnu.org> |
11035 | ||
11036 | * data.c (Fsetq_default): Doc fix. | |
11037 | ||
11038 | * eval.c (Fsetq): Doc fix. | |
11039 | ||
11040 | 2007-07-18 Juanma Barranquero <lekktu@gmail.com> | |
11041 | ||
11042 | * coding.c (Ffind_operation_coding_system): | |
11043 | * eval.c (For, Fand): Doc fixes. | |
880820fe | 11044 | Reported by Johan Bockgård. |
23dacf80 | 11045 | |
880820fe | 11046 | 2007-07-18 Jan Djärv <jan.h.d@swipnet.se> |
656de71a | 11047 | |
23dacf80 | 11048 | * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame. |
656de71a | 11049 | |
23dacf80 | 11050 | * xterm.h: Declare x_ewmh_activate_frame. |
656de71a JD |
11051 | |
11052 | * xterm.c (x_ewmh_activate_frame): New function. | |
11053 | (XTframe_raise_lower): Move code to x_ewmh_activate_frame. | |
11054 | ||
71ec17e6 MR |
11055 | 2007-07-17 Martin Rudalics <rudalics@gmx.at> |
11056 | ||
11057 | * window.c (Fdisplay_buffer): If largest or LRU window is the | |
11058 | only window, split it even if it is not eligible for splitting. | |
11059 | This restores the original behavior broken by the 2007-07-15 | |
11060 | change. | |
11061 | ||
e9818042 GM |
11062 | 2007-07-17 Glenn Morris <rgm@gnu.org> |
11063 | ||
11064 | * abbrev.c (abbrev_check_chars): New function. | |
6b8e474c SM |
11065 | (Fdefine_global_abbrev, Fdefine_mode_abbrev): |
11066 | Call abbrev_check_chars to check abbrev characters are word | |
e9818042 GM |
11067 | constituents. Doc fix. |
11068 | ||
e6fca843 SM |
11069 | 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca> |
11070 | ||
11071 | * process.c (Fstart_process, Fmake_network_process) | |
11072 | (read_process_output): Fix up last changes. | |
11073 | ||
b5d2b4ab EZ |
11074 | 2007-07-16 Eli Zaretskii <eliz@gnu.org> |
11075 | ||
11076 | * makefile.w32-in (clean): Don't delete *~. | |
11077 | ||
413a79ad AS |
11078 | 2007-07-16 Andreas Schwab <schwab@suse.de> |
11079 | ||
11080 | * window.c (Fdisplay_buffer): Use NILP. | |
11081 | (Fset_window_scroll_bars): Likewise. | |
11082 | ||
f1de8c77 MR |
11083 | 2007-07-15 Martin Rudalics <rudalics@gmx.at> |
11084 | ||
11085 | * window.c (window_min_size_2): New function. | |
11086 | (window_min_size_1, size_window, Fdisplay_buffer) | |
11087 | (Fsplit_window, adjust_window_trailing_edge): Use it to avoid | |
11088 | windows without mode- or header-lines when window-min-height is | |
11089 | too small. | |
11090 | (size_window): Reset nodelete_p after testing it, following an | |
11091 | earlier note by Kim F. Storm. | |
11092 | (display_buffer): Do not set split_height_threshold to twice the | |
11093 | value of window_min_height to avoid changing the value of a | |
11094 | customizable variable. Rather explicitly check whether the | |
11095 | height of the window that shall be splitted is at least as large | |
11096 | as split_height_threshold. | |
1af74d06 MB |
11097 | (Fwindow_full_width_p): New defun. |
11098 | (syms_of_window): Defsubr it. | |
d31053f9 | 11099 | |
1af74d06 | 11100 | * window.h: Add EXFUN for Fwindow_full_width_p. |
f1de8c77 | 11101 | |
5e1ab613 JR |
11102 | 2007-07-14 Jason Rumney <jasonr@gnu.org> |
11103 | ||
11104 | * process.c [WINDOWSNT]: Don't undefine AF_INET6. | |
11105 | ||
f01cbfdd RS |
11106 | 2007-07-14 Richard Stallman <rms@gnu.org> |
11107 | ||
11108 | * eval.c (maybe_call_debugger): New function. | |
11109 | (find_handler_clause): Use maybe_call_debugger. | |
11110 | Call it when the handler says `debug'. | |
11111 | Eliminate DEBUGGER_VALUE_PTR. | |
11112 | (Fsignal): Eliminate debugger_value. | |
11113 | (Qdebug): New variable. | |
11114 | (syms_of_eval): Initialize it. | |
11115 | ||
1bab435a JB |
11116 | 2007-07-14 Juanma Barranquero <lekktu@gmail.com> |
11117 | ||
11118 | * eval.c (Fprogn): | |
11119 | * keyboard.c (Ftrack_mouse): | |
11120 | * print.c (Fwith_output_to_temp_buffer): | |
11121 | * window.c (Fsave_window_excursion): Doc fix. | |
11122 | ||
be436d23 SM |
11123 | 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca> |
11124 | ||
11125 | * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. | |
11126 | ||
60f0fb11 SM |
11127 | 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca> |
11128 | ||
11129 | * process.h (struct Lisp_Process): Turn slots infd, outfd, | |
11130 | kill_without_query, pty_flag, tick, update_tick, decoding_carryover, | |
11131 | inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering, | |
11132 | read_output_delay, and read_output_skip from Lisp_Objects to ints. | |
11133 | Remove unused encoding_carryover. | |
11134 | * process.c: Adjust all functions accordingly. | |
11135 | ||
d8b18043 RS |
11136 | 2007-07-12 Richard Stallman <rms@gnu.org> |
11137 | ||
11138 | * term.c: Include unistd.h only if HAVE_UNISTD_H. | |
11139 | ||
d5781bb6 JR |
11140 | 2007-07-11 Jason Rumney <jasonr@gnu.org> |
11141 | ||
11142 | * makefile.w32-in (LIBS): Include OLE32. | |
11143 | ||
11144 | * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM. | |
11145 | (w32_msg_pump) <WM_DESTROY>: Uninitialize COM. | |
11146 | ||
5bb7dfee SM |
11147 | 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca> |
11148 | ||
11149 | * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer. | |
11150 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned | |
11151 | from a Lisp_Object into a bare pointer. | |
11152 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
11153 | Adjust the code correspondingly. | |
11154 | ||
11155 | * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'. | |
11156 | ||
11157 | * term.c: Include unistd.h for ttyname, used in handle_one_term_event. | |
11158 | (term_show_mouse_face): Remove unused var `j'. | |
11159 | (handle_one_term_event): Remove unused vars `i' and `j'. | |
11160 | Don't cast return value of ttyname since it's not necessary. | |
11161 | ||
a1be1ce8 SM |
11162 | 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca> |
11163 | ||
5045e68e SM |
11164 | * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using |
11165 | USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. | |
11166 | ||
8071c00f SM |
11167 | * fns.c (map_char_table): Use an array of int for `indices' rather than |
11168 | an array of Lisp_Objects (which are only ever integers anyway). | |
11169 | (Fmap_char_table): Update caller. | |
11170 | * lisp.h: Update prototype. | |
11171 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap): | |
11172 | * fontset.c (Ffontset_info): | |
11173 | * casetab.c (set_case_table): Update callers. | |
11174 | ||
11175 | * editfns.c (Ftranspose_regions): Use EMACS_INT for positions. | |
11176 | ||
fab84e3c SM |
11177 | * keymap.c (struct accessible_keymaps_data) |
11178 | (struct where_is_internal_data): New structures. | |
11179 | (accessible_keymaps_1, where_is_internal_1): Use them to change | |
11180 | interface to adhere to the one used by map_keymap. | |
11181 | (Faccessible_keymaps, where_is_internal): Use map_keymap. | |
11182 | (accessible_keymaps_char_table, where_is_internal_2): Remove. | |
11183 | ||
a1be1ce8 SM |
11184 | * keymap.h (map_keymap_function_t): More informative prototype. |
11185 | ||
ef887810 RS |
11186 | 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com> |
11187 | ||
11188 | * search.c (Vinhibit_changing_match_data, search_regs_1): New vars. | |
11189 | (looking_at_1): Don't change search_regs and last_thing_searched | |
11190 | if `inhibit-changing-match-data' is non-nil. | |
11191 | (string_match_1, search_buffer, set_search_regs): Likewise. | |
11192 | (syms_of_search): Add Lisp level definition for | |
11193 | `inhibit-changing-match-data' and set it to nil. | |
8071c00f SM |
11194 | (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute |
11195 | start and end of the match, instead of using values in search_regs. | |
ef887810 | 11196 | |
4d02fc25 SM |
11197 | 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca> |
11198 | ||
11199 | * minibuf.c (Fcompleting_read): New value `confirm-only' | |
11200 | for `require-match'. | |
11201 | ||
fe45b81f SM |
11202 | 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca> |
11203 | ||
11204 | * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as | |
11205 | part of the 2007-06-27 change to syms_of_fileio. | |
11206 | ||
a56dd283 YM |
11207 | 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11208 | ||
11209 | * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): | |
11210 | Check WINDOWP before using XWINDOW. Consolidate return statements. | |
11211 | ||
0cf9f5b5 RS |
11212 | 2007-06-27 Richard Stallman <rms@gnu.org> |
11213 | ||
11214 | * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix. | |
11215 | ||
a66f285a JB |
11216 | 2007-06-27 Juanma Barranquero <lekktu@gmail.com> |
11217 | ||
11218 | * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring. | |
11219 | ||
8d0d84d2 YM |
11220 | 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11221 | ||
11222 | * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. | |
11223 | (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. | |
11224 | (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. | |
11225 | (_free_internal, memalign): Use them. | |
11226 | (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: | |
11227 | Initialize to PTHREAD_MUTEX_INITIALIZER. | |
11228 | (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. | |
11229 | (morecore_nolock): Rename from morecore. All uses changed. | |
11230 | Use only nolock versions of internal allocation functions. | |
11231 | (_malloc_internal_nolock, _realloc_internal_nolock) | |
11232 | (_free_internal_nolock): New functions created from | |
11233 | _malloc_internal, _realloc_internal, and _free_internal. | |
11234 | (_malloc_internal, _realloc_internal, _free_internal): Use them. | |
11235 | Copy hook value to automatic variable before its use. | |
11236 | (memalign): Copy hook value to automatic variable before its use. | |
11237 | ||
5a0bbd9a KH |
11238 | 2007-06-26 Kenichi Handa <handa@m17n.org> |
11239 | ||
11240 | * coding.c (Ffind_operation_coding_system): Docstring improved. | |
11241 | (syms_of_coding): Docstring of `file-coding-system-alist' improved. | |
11242 | ||
9a51747b DK |
11243 | 2007-06-25 David Kastrup <dak@gnu.org> |
11244 | ||
11245 | * keymap.c (Fcurrent_active_maps): Add `position' argument. | |
11246 | (Fwhere_is_internal): Adjust call to `current-active-maps' to | |
11247 | cater for additional parameter. | |
11248 | ||
11249 | * keymap.h: Adjust number of parameters to `current-active-maps'. | |
11250 | ||
11251 | * doc.c (Fsubstitute_command_keys): Adjust call of | |
11252 | `current-active-maps'. | |
11253 | ||
e4305426 DK |
11254 | 2007-06-25 David Kastrup <dak@gnu.org> |
11255 | ||
11256 | * callint.c (Fcall_interactively): Make the parsing of interactive | |
11257 | specs somewhat more readable. | |
11258 | ||
511a18d9 YM |
11259 | 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11260 | ||
11261 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background | |
11262 | to scroll bar gap also when bitmap fills fringe. Draw only foreground | |
11263 | if extended background has already been filled. | |
11264 | ||
512eb161 YM |
11265 | 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11266 | ||
11267 | * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI. | |
11268 | (USE_MAC_TOOLBAR): Require USE_CG_DRAWING. | |
11269 | ||
11270 | * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: | |
11271 | Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p | |
11272 | in #if 0 as it is not compatible with y-or-n-p-with-timeout. | |
11273 | (timer_check) [TARGET_API_MAC_CARBON]: Add extern. | |
11274 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop | |
11275 | instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls. | |
11276 | (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function. | |
11277 | [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind. | |
11278 | Run timers during dialog popup. | |
11279 | (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated. | |
11280 | ||
2386b1f1 JR |
11281 | 2007-06-21 Jason Rumney <jasonr@gnu.org> |
11282 | ||
11283 | * image.c (convert_mono_to_color_image): Swap fore and background. | |
11284 | ||
fab8b787 JR |
11285 | 2007-06-20 Jason Rumney <jasonr@gnu.org> |
11286 | ||
11287 | * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. | |
11288 | (w32_free_bdf_font): Unmap memory not handle. | |
11289 | ||
15bdd7a0 | 11290 | 2007-06-20 Sam Steingold <sds@gnu.org> |
3cacba85 SS |
11291 | |
11292 | * gmalloc.c (__morecore): Fix the declaration to comply with the | |
11293 | definition. | |
11294 | ||
1bb8a291 JB |
11295 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
11296 | ||
11297 | * w32term.c (w32_delete_display): Remove leftover declaration. | |
11298 | (w32_define_cursor, w32_initialize): Make static. | |
11299 | ||
11300 | * w32.c (_wsa_errlist): Fix typo in error message. | |
11301 | (init_environment): Ignore any environment variable from the | |
11302 | registry having a null value. | |
11303 | ||
92648dea GM |
11304 | 2007-06-20 Glenn Morris <rgm@gnu.org> |
11305 | ||
11306 | * Makefile.in (LIBGIF): Default to -lgif. | |
11307 | ||
ff25d115 JR |
11308 | 2007-06-17 Jason Rumney <jasonr@gnu.org> |
11309 | ||
11310 | * w32menu.c (add_menu_item): Don't use multibyte string functions on | |
11311 | unicode strings. | |
11312 | ||
a1a578a5 JB |
11313 | 2007-06-16 Juanma Barranquero <lekktu@gmail.com> |
11314 | ||
11315 | * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>: | |
11316 | Fix typo in docstring. | |
11317 | ||
af41f8a8 EZ |
11318 | 2007-06-16 Eli Zaretskii <eliz@gnu.org> |
11319 | ||
11320 | * w32menu.c (add_menu_item): Escape `&' characters in menu items | |
11321 | and their keybindings. | |
11322 | ||
8b29cab9 CY |
11323 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> |
11324 | ||
11325 | * composite.c (update_compositions): Fix last fix. | |
11326 | ||
c433c134 JR |
11327 | 2007-06-14 Jason Rumney <jasonr@gnu.org> |
11328 | ||
11329 | * w32.c (get_process_times_fn): New function pointer. | |
11330 | (globals_of_w32): Intialize it if present in kernel32.dll. | |
11331 | (w32_get_internal_run_time): New function. | |
11332 | ||
11333 | * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. | |
11334 | ||
553d3164 KH |
11335 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> |
11336 | ||
11337 | * composite.c (update_compositions): Check the validness of | |
11338 | compositions. | |
11339 | ||
446ba96f YM |
11340 | 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11341 | ||
11342 | * frame.h (struct frame) [MAC_OS]: New member external_tool_bar. | |
11343 | (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it. | |
11344 | ||
11345 | * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity. | |
11346 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR. | |
11347 | ||
11348 | * macgui.h (USE_MAC_TOOLBAR): New define. | |
11349 | ||
11350 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
11351 | Return immediately unless popup is activated. | |
11352 | ||
11353 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe | |
11354 | background to scroll bar gap. | |
11355 | (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p. | |
11356 | (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost | |
11357 | scroll bars on frame edge. Check fringe background extension. | |
11358 | Don't clear extended fringe background area. | |
11359 | (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) | |
11360 | (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) | |
11361 | (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID): | |
11362 | [USE_MAC_TOOLBAR]: New macros. | |
11363 | (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) | |
11364 | (mac_handle_toolbar_event, mac_image_spec_to_cg_image) | |
11365 | (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar) | |
11366 | (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) | |
11367 | [USE_MAC_TOOLBAR]: New functions. | |
11368 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window | |
11369 | manually if previous repositioning has failed. | |
11370 | (mac_handle_keyboard_event): Use precomputed event kind. | |
11371 | (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region | |
11372 | as tool bar item click. Handle mouse movement over tool bar items. | |
11373 | ||
11374 | * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member | |
11375 | toolbar_win_gravity. | |
11376 | (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. | |
11377 | (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: | |
11378 | Add externs. | |
11379 | ||
11380 | * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window) | |
11381 | [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display. | |
11382 | ||
9720173f CY |
11383 | 2007-06-14 Chong Yidong <cyd@stupidchicken.com> |
11384 | ||
11385 | * image.c (search_image_cache): Remove unused variable. | |
11386 | ||
1217dd00 CY |
11387 | 2007-06-13 Chong Yidong <cyd@stupidchicken.com> |
11388 | ||
11389 | * xfns.c, xmenu.c: Link to xaw3d if available. | |
11390 | ||
c5b8e0ea YM |
11391 | 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11392 | ||
11393 | * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members | |
11394 | frame_foreground and frame_background. | |
11395 | ||
11396 | * image.c (lookup_image): Save frame foreground and background colors. | |
11397 | (search_image_cache): Check if saved and current frame colors match. | |
11398 | ||
c69b0314 SM |
11399 | 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca> |
11400 | ||
11401 | * regex.c (regex_compile): Remove the `regnum' counter. | |
11402 | Use bufp->re_nsub instead. Add support for \(?N:RE\). | |
11403 | ||
c9612b8e SM |
11404 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
11405 | ||
11406 | * term.c: Include intervals.h to declare Fget_text_property. | |
11407 | ||
843d2458 JR |
11408 | 2007-06-10 Jason Rumney <jasonr@gnu.org> |
11409 | ||
11410 | * w32fns.c (Fx_file_dialog): Take size from struct not pointer. | |
11411 | ||
1e0d2d60 | 11412 | 2007-06-08 Juanma Barranquero <lekktu@gmail.com> |
977f6cfb JB |
11413 | |
11414 | * callint.c (Fcall_interactively): | |
11415 | * editfns.c (Fdelete_and_extract_region): | |
11416 | * fileio.c (Fread_file_name): | |
11417 | * fns.c (Fmapconcat): | |
11418 | * keyboard.c (cmd_error_internal): | |
11419 | * keymap.c (Fkey_description): | |
11420 | * lread.c (openp): | |
11421 | * minibuf.c (read_minibuf): | |
11422 | * search.c (wordify): | |
11423 | * sunfns.c (sel_read): | |
11424 | * xdisp.c (Fformat_mode_line, syms_of_xdisp): | |
11425 | * xfns.c (x_default_scroll_bar_color_parameter): | |
11426 | * xmenu.c (menu_help_callback): | |
11427 | * xselect.c (Fx_get_atom_name): | |
11428 | * xterm.c (x_term_init): Use empty_unibyte_string. | |
11429 | ||
15bdd7a0 | 11430 | 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change) |
977f6cfb JB |
11431 | |
11432 | * alloc.c (init_strings): Initialize canonical empty strings. | |
11433 | (make_uninit_string, make_uninit_multibyte_string): Return appropriate | |
11434 | canonical empty string when the requested size is 0. | |
11435 | ||
11436 | * emacs.c (empty_unibyte_string): Rename from empty_string. | |
11437 | (empty_multibyte_string): New canonical empty string. | |
11438 | (syms_of_emacs): Don't initialize empty_string. | |
11439 | ||
11440 | * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte | |
11441 | string, if appropriate. | |
11442 | (empty_unibyte_string, empty_multibyte_string): New externs. | |
11443 | (empty_string): Remove extern. | |
11444 | ||
11445 | * lread.c (syms_of_lread): Use empty_unibyte_string. | |
11446 | ||
42c4c67a JR |
11447 | 2007-06-07 Jason Rumney <jasonr@gnu.org> |
11448 | ||
11449 | * s/ms-w32.h: Don't define HAVE_TZNAME. | |
11450 | ||
11451 | * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows. | |
11452 | ||
aa8280d3 YM |
11453 | 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11454 | ||
11455 | * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. | |
11456 | ||
11457 | * macfns.c (mac_get_window_bounds): Move extern to macterm.h. | |
11458 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. | |
11459 | ||
11460 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
11461 | Don't call next handler. | |
11462 | [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): | |
11463 | Remove argument. Install handler to application. | |
11464 | (set_frame_menubar): Don't change deep_p. | |
1e0d2d60 | 11465 | (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and |
aa8280d3 YM |
11466 | FRAME_OUTER_TO_INNER_DIFF_Y. |
11467 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
11468 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
11469 | [HAVE_DIALOGS]: New macros. | |
11470 | [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): | |
11471 | Use them. | |
11472 | (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. | |
11473 | ||
11474 | * macselect.c [MAC_OSX] (install_service_handler): Rename from | |
11475 | init_service_handler. All callers changed. Return OSStatus value. | |
11476 | ||
11477 | * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. | |
11478 | All callers changed so as not to call SetPortWindowPort. | |
11479 | (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. | |
11480 | (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from | |
11481 | mac_draw_string_common. | |
11482 | (mac_draw_image_string_qd): Likewise. | |
11483 | (mac_draw_string_common): Use them. Add INLINE. | |
11484 | (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: | |
11485 | Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and | |
11486 | GetGlobalMouse. | |
11487 | (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X | |
11488 | and FRAME_OUTER_TO_INNER_DIFF_Y. | |
11489 | [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. | |
11490 | [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. | |
11491 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for | |
11492 | repositioning window to mac_handle_window_event. | |
11493 | (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for | |
11494 | saving window location to mac_handle_window_event | |
11495 | [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. | |
11496 | (install_menu_target_item_handler): Remove argument in extern. | |
11497 | [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): | |
11498 | Also accept command events. | |
11499 | (do_keystroke): New function created from XTread_socket. | |
11500 | (init_command_handler): Remove functions. | |
11501 | [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window | |
11502 | and save window location by kEventWindowShowing and kEventWindowHiding | |
11503 | handlers here. Don't call next handler for window state change and | |
11504 | focus events. | |
11505 | (mac_handle_application_event, mac_handle_keyboard_event) | |
11506 | [TARGET_API_MAC_CARBON]: New functions. | |
11507 | (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for | |
11508 | kEventWindowShowing and kEventWindowHiding events. Move installation | |
11509 | of mouse, font, text input and menu target item handlers to | |
11510 | install_application_handler. | |
11511 | (install_application_handler) [TARGET_API_MAC_CARBON]: New function. | |
11512 | (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
11513 | New function. | |
11514 | (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
11515 | Register it. | |
c9612b8e SM |
11516 | (XTread_socket) [TARGET_API_MAC_CARBON]: |
11517 | Consolidate SendEventToEventTarget calls. | |
11518 | Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y. | |
11519 | Move application activation handler to mac_handle_application_event. | |
11520 | Move keyboard handler to mac_handle_keyboard_event. | |
aa8280d3 YM |
11521 | (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. |
11522 | (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call | |
11523 | init_command_handler. Call install_application_handler. | |
11524 | ||
11525 | * macterm.h (mac_get_window_bounds): Move extern from macfns.c. | |
11526 | (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. | |
11527 | ||
6926c954 GM |
11528 | 2007-06-07 Glenn Morris <rgm@gnu.org> |
11529 | ||
11530 | * emacs.c (main): Use `emacs-copyright' in --version output. | |
11531 | ||
6fe04c89 CY |
11532 | 2007-06-06 Chong Yidong <cyd@stupidchicken.com> |
11533 | ||
c9612b8e | 11534 | * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. |
6fe04c89 | 11535 | |
7eb0d727 YM |
11536 | 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11537 | ||
11538 | * macfns.c (mac_window): Replace WindowPtr with WindowRef. | |
11539 | ||
11540 | * macgui.h: Replace WindowPtr with WindowRef. | |
11541 | ||
11542 | * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
11543 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
11544 | Replace ControlHandle with ControlRef. | |
11545 | (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. | |
11546 | ||
11547 | * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
11548 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
11549 | Replace ControlHandle with ControlRef. | |
11550 | (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. | |
11551 | [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. | |
11552 | ||
11553 | * macterm.h (struct scroll_bar): Rename member control_handle_low | |
11554 | and control_handle_high to control_ref_low and control_ref_high. | |
11555 | All uses changed. | |
11556 | (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from | |
11557 | SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, | |
11558 | respectively. All uses changed. | |
11559 | (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) | |
11560 | (install_window_handler, remove_window_handler): Replace WindowPtr | |
11561 | with WindowRef in externs. | |
11562 | ||
65fddb74 JB |
11563 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> |
11564 | ||
11565 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. | |
11566 | ||
db1213a9 NR |
11567 | 2007-06-03 Nick Roberts <nickrob@snap.net.nz> |
11568 | ||
11569 | * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case. | |
11570 | ||
65fddb74 | 11571 | * frame.c (Fmouse_position, Fmouse_pixel_position): |
db1213a9 NR |
11572 | Condition on HAVE_GPM too. |
11573 | ||
11574 | * term.c (term_mouse_highlight): Remove unused variables. | |
11575 | (Fterm_open_connection): Set gpm_zerobased to 1. | |
11576 | (term_mouse_movement, term_mouse_click, handle_one_term_event): | |
11577 | Use zero based co-ordinates. | |
11578 | (handle_one_term_event): Report a drag as mouse movement too. | |
11579 | ||
11580 | * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM. | |
11581 | ||
d94df25b CY |
11582 | 2007-06-03 Chong Yidong <cyd@stupidchicken.com> |
11583 | ||
11584 | * image.c (search_image_cache): New function. Require background | |
11585 | color match if background color is unspecified in the image spec. | |
11586 | (uncache_image, lookup_image): Use it. | |
11587 | ||
4797b6d9 JB |
11588 | 2007-06-01 Juanma Barranquero <lekktu@gmail.com> |
11589 | ||
11590 | * window.c (Fshrink_window): Reflow docstring. | |
11591 | ||
1ffe7343 NR |
11592 | 2007-06-02 Chong Yidong <cyd@stupidchicken.com> |
11593 | ||
11594 | * Version 22.1 released. | |
11595 | ||
11596 | 2007-06-01 Richard Stallman <rms@gnu.org> | |
11597 | ||
11598 | * xfns.c (x_encode_text): Add GCPRO. | |
11599 | ||
11600 | 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11601 | ||
11602 | * xfns.c (x_set_name_internal): Save encoded name before | |
11603 | x_encode_text in case string data is relocated. | |
11604 | ||
11605 | 2007-05-31 Richard Stallman <rms@gnu.org> | |
11606 | ||
11607 | * buffer.c (syms_of_buffer): Doc fix. | |
11608 | ||
11609 | 2007-05-30 Nick Roberts <nickrob@snap.net.nz> | |
11610 | ||
11611 | * sysdep.c (init_sys_modes): Add rather than replace with | |
11612 | O_NONBLOCK. | |
11613 | ||
11614 | * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to | |
11615 | term_mouse_moveto. | |
11616 | ||
11617 | * termhooks.h (term_mouse_moveto): New extern. | |
11618 | ||
11619 | * term.c (mouse_face_window): Rename... | |
11620 | (Qmouse_face_window): ...to this. | |
11621 | (term_show_mouse_face, term_clear_mouse_face) | |
11622 | (term_mouse_highlight): Use Qmouse_face_window. | |
11623 | (term_mouse_moveto): New function. | |
11624 | (term_mouse_position): Make it work. | |
11625 | (syms_of_term): Uncomment assignment to mouse_position_hook. | |
11626 | Staticpro Qmouse_face_window. | |
11627 | ||
11628 | 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11629 | ||
11630 | * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t | |
11631 | around current_column call. | |
11632 | ||
11633 | 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu> | |
11634 | ||
11635 | * xfaces.c (syms_of_xfaces): Delete stray semicolon. | |
11636 | * xdisp.c (next_element_from_buffer): | |
11637 | * window.c (delete_window): | |
11638 | * term.c (term_mouse_highlight): | |
11639 | * msdos.c (getdefdir): | |
11640 | * macterm.c (mac_create_bitmap_from_bitmap_data) | |
11641 | (init_font_name_table): | |
11642 | * fns.c (Fsxhash): | |
11643 | * data.c (Fmake_local_variable): | |
11644 | * ccl.c (ccl_driver): Likewise. | |
11645 | ||
11646 | 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11647 | ||
11648 | * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event): | |
11649 | Call mac_wakeup_from_rne on window size change. | |
11650 | ||
11651 | 2007-05-25 Chong Yidong <cyd@stupidchicken.com> | |
11652 | ||
11653 | * image.c (uncache_image): Fix typo. | |
11654 | ||
11655 | 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change) | |
11656 | ||
11657 | * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too. | |
11658 | ||
11659 | 2007-05-22 Richard Stallman <rms@gnu.org> | |
11660 | ||
11661 | * xterm.c (x_connection_closed): Remove NO_RETURN. | |
11662 | ||
11663 | 2007-05-22 Martin Rudalics <rudalics@gmx.at> | |
11664 | ||
11665 | * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. | |
11666 | ||
11667 | 2007-05-21 Chong Yidong <cyd@stupidchicken.com> | |
11668 | ||
11669 | * image.c (uncache_image): New function. | |
11670 | (Fimage_refresh): New function. | |
11671 | ||
880820fe | 11672 | 2007-05-20 Jan Djärv <jan.h.d@swipnet.se> |
1ffe7343 NR |
11673 | |
11674 | * Makefile.in: Move GPM check outside HAVE_X_WINDOWS. | |
11675 | ||
11676 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
11677 | ||
11678 | * config.in, keyboard.c, Makefile.in, sysdep.c, term.c, | |
11679 | * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H. | |
11680 | ||
11681 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
11682 | ||
11683 | * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT | |
11684 | conditional on [HAVE_GPM_H]. | |
11685 | ||
11686 | 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca> | |
11687 | ||
11688 | * syntax.c (skip_chars): Update syntax-table only after we checked that | |
11689 | the new location is valid. | |
11690 | ||
11691 | 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11692 | ||
11693 | * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around | |
11694 | mac_get_window_bounds. | |
11695 | ||
11696 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
11697 | ||
11698 | * Makefile.in (LIBGPM): Allow it to be set from configure. | |
11699 | If set then link Emacs with it. | |
11700 | ||
11701 | * config.in: Regenerate. | |
11702 | ||
11703 | * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): | |
11704 | New externs. | |
11705 | ||
11706 | * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT. | |
11707 | Include gpm.h. | |
11708 | (handle_one_term_event, term_gpm): New externs. | |
11709 | ||
11710 | * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking | |
11711 | and allow it to be interrupted by SIGIO. | |
11712 | ||
11713 | * process.c (gpm_wait_mask, max_gpm_desc): New variables. | |
11714 | (wait_reading_process_output): Wait on gpm_fd too. | |
11715 | (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions. | |
11716 | (add_gpm_wait_descriptor_called_flag): New variable. | |
11717 | (delete_keyboard_wait_descriptor): Check gpm_wait_mask. | |
11718 | ||
11719 | * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message) | |
11720 | (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved) | |
11721 | (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard): | |
11722 | Extend HAVE_MOUSE ifdefs to HAVE_GPM_H. | |
11723 | (make_lispy_event): Add case GPM_CLICK_EVENT. | |
11724 | (read_avail_input): Handle mouse input. | |
11725 | ||
11726 | * term.c (write_glyphs_with_face): New function. | |
11727 | [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h. | |
11728 | (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row) | |
11729 | (mouse_face_end_col, mouse_face_past_end, mouse_face_window) | |
11730 | (mouse_face_face_id, term_gpm, pos_x, pos_y) | |
11731 | (last_mouse_x, last_mouse_y): New variables. | |
11732 | (term_show_mouse_face, term_clear_mouse_face, fast_find_position) | |
11733 | (term_mouse_highlight, term_mouse_movement, term_mouse_position) | |
11734 | (term_mouse_click, handle_one_term_event, Fterm_open_connection) | |
11735 | (Fterm_close_connection): New functions. | |
11736 | (term_init): Initialise mouse_face_window. | |
11737 | ||
11738 | 2007-05-19 Chong Yidong <cyd@stupidchicken.com> | |
11739 | ||
11740 | * xdisp.c (redisplay_window): If first window line is a | |
11741 | continuation line, recompute the new window start instead of | |
11742 | recentering. | |
11743 | ||
11744 | 2007-05-18 Glenn Morris <rgm@gnu.org> | |
11745 | ||
11746 | * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD. | |
11747 | Suggested by Alfred M. Szmidt <ams@gnu.org>. | |
11748 | ||
11749 | 2007-05-17 Glenn Morris <rgm@gnu.org> | |
11750 | ||
11751 | * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. | |
11752 | ||
11753 | 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11754 | ||
11755 | * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert | |
11756 | dead key repeat and up events. | |
11757 | ||
11758 | 2007-05-14 Chong Yidong <cyd@stupidchicken.com> | |
11759 | ||
11760 | * image.c (pbm_load): Check image size for monochrome pbm. | |
11761 | ||
11762 | 2007-05-13 Chong Yidong <cyd@stupidchicken.com> | |
11763 | ||
11764 | * xterm.c (XTread_socket): Revert last change. | |
11765 | ||
11766 | 2007-05-12 Chong Yidong <cyd@stupidchicken.com> | |
11767 | ||
11768 | * image.c (pbm_load): Correctly check image size for greyscale pbm. | |
11769 | ||
11770 | * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). | |
11771 | ||
11772 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
11773 | ||
11774 | * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object | |
11775 | mixup (YAILOM). | |
11776 | ||
11777 | 2007-05-07 Andreas Schwab <schwab@suse.de> | |
11778 | ||
11779 | * keymap.c (Flookup_key): Fix typo in last change. | |
11780 | ||
11781 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
11782 | ||
11783 | * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier | |
11784 | mapping for unibyte strings. | |
11785 | ||
11786 | 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11787 | ||
11788 | * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. | |
11789 | (Fx_popup_dialog) [MAC_OSX]: Likewise. | |
11790 | ||
11791 | 2007-04-29 Richard Stallman <rms@gnu.org> | |
11792 | ||
11793 | * insdel.c (replace_range): For undo, record insertion first. | |
11794 | ||
11795 | 2007-04-29 Andreas Schwab <schwab@suse.de> | |
11796 | ||
11797 | * lisp.h (VECSIZE): Use OFFSETOF. | |
11798 | ||
11799 | 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
11800 | ||
11801 | * xdisp.c (try_window_reusing_current_matrix): Fix number of | |
11802 | disabled lines. | |
11803 | ||
11804 | 2007-04-28 Richard Stallman <rms@gnu.org> | |
11805 | ||
11806 | * lread.c (read_escape): In a string, \s is always space. | |
11807 | ||
880820fe | 11808 | 2007-04-27 Jan Djärv <jan.h.d@swipnet.se> |
1ffe7343 NR |
11809 | |
11810 | * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. | |
11811 | ||
11812 | * gtkutil.c (xg_update_menubar, create_menus): Create empty | |
11813 | submenu for menu bar items. | |
11814 | ||
382c648d | 11815 | See ChangeLog.10 for earlier changes. |
6922b018 KH |
11816 | |
11817 | ;; Local Variables: | |
880820fe | 11818 | ;; coding: utf-8 |
33462dfa | 11819 | ;; add-log-time-zone-rule: t |
6922b018 | 11820 | ;; End: |
2a34a036 | 11821 | |
59ce725a | 11822 | Copyright (C) 2007, 2008 Free Software Foundation, Inc. |
7f6d64f8 GM |
11823 | |
11824 | This file is part of GNU Emacs. | |
11825 | ||
5a1dde61 | 11826 | GNU Emacs is free software: you can redistribute it and/or modify |
7f6d64f8 | 11827 | it under the terms of the GNU General Public License as published by |
5a1dde61 GM |
11828 | the Free Software Foundation, either version 3 of the License, or |
11829 | (at your option) any later version. | |
7f6d64f8 GM |
11830 | |
11831 | GNU Emacs is distributed in the hope that it will be useful, | |
11832 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11833 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11834 | GNU General Public License for more details. | |
11835 | ||
11836 | You should have received a copy of the GNU General Public License | |
5a1dde61 | 11837 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
ab5796a9 | 11838 | |
28f60c3d | 11839 | ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40 |