Commit | Line | Data |
---|---|---|
56388398 | 1 | 2008-03-07 Stefan Monnier <monnier@iro.umontreal.ca> |
acd37560 | 2 | |
56388398 MB |
3 | * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum |
4 | size of resulting string. | |
af0ad939 | 5 | |
56388398 | 6 | 2008-03-05 Jason Rumney <jasonr@gnu.org> |
acd37560 | 7 | |
56388398 | 8 | * dispnew.c (adjust_glyph_matrix): Initialize window_height. |
acd37560 | 9 | |
56388398 | 10 | 2008-03-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
acd37560 | 11 | |
56388398 MB |
12 | * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. |
13 | Don't pretend as if characters with display property haven't been | |
14 | consumed for string-replacing-string case. | |
acd37560 | 15 | |
223ed6db KS |
16 | 2008-03-08 Kim F. Storm <storm@cua.dk> |
17 | ||
18 | * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. | |
19 | (get_next_display_element, next_element_from_string) | |
20 | (next_element_from_ellipsis, next_element_from_buffer): Use it. | |
21 | ||
28545f7c AS |
22 | 2008-03-08 Andreas Schwab <schwab@suse.de> |
23 | ||
24 | * process.h (struct Lisp_Process): Declare bit fields as unsigned. | |
25 | ||
c960bff8 JR |
26 | 2008-03-06 Jason Rumney <jasonr@gnu.org> |
27 | ||
290afd83 JB |
28 | * w32font.c (w32_registry): Take font_type argument. Use ANSI |
29 | when charset not specified. Only translate ANSI to unicode when | |
c960bff8 JR |
30 | font_type is truetype. |
31 | (w32font_coverage_ok): New function. | |
32 | (add_font_entity_to_list): Use it to filter unsuitable fonts. | |
33 | ||
cefd56f6 JR |
34 | 2008-03-04 Jason Rumney <jasonr@gnu.org> |
35 | ||
36 | * makefile.w32-in: Always include w32font.c in the build. | |
37 | * w32font.c: Wrap in USE_FONT_BACKEND conditional. | |
38 | ||
03bd3c1f AS |
39 | 2008-03-04 Andreas Schwab <schwab@suse.de> |
40 | ||
41 | * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*. | |
42 | (versionclean): Likewise. | |
43 | ||
6f69e89b JB |
44 | 2008-03-04 Juanma Barranquero <lekktu@gmail.com> |
45 | ||
46 | * .cvsignore: Add oo. | |
47 | ||
f4a3cc44 AS |
48 | 2008-03-03 Andreas Schwab <schwab@suse.de> |
49 | ||
50 | * coding.c (decode_coding_object): Inhibit gap shrinking while | |
51 | decoding in place. | |
52 | ||
73f838ad DN |
53 | 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu> |
54 | ||
55 | * w32term.c: Remove unused include "gnu.h". | |
6f69e89b | 56 | * makefile.w32-in (w32term.o): Don't depend on gnu.h. |
73f838ad DN |
57 | |
58 | * gnu.h: Rename to ... | |
59 | * emacs-icon.h: ... this. | |
60 | * xterm.c: Use emacs-icon.h instead of gnu.h. | |
61 | * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h. | |
62 | ||
ce9c1f06 JB |
63 | 2008-03-03 Juanma Barranquero <lekktu@gmail.com> |
64 | ||
65 | * w32font.c: Include math.h. | |
66 | ||
34fd2d28 JR |
67 | 2008-03-03 Jason Rumney <jasonr@gnu.org> |
68 | ||
54efdcd1 JR |
69 | * w32font.c (recompute_cached_metrics): Change font arg to w32font_info. |
70 | Compute options separately. | |
71 | (w32font_open_internal): Set glyph_idx before caching metrics. | |
72 | ||
ce9c1f06 JB |
73 | * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1): |
74 | Define if system headers don't. | |
75 | (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx. | |
34fd2d28 JR |
76 | (w32font_encode_char): Don't declare here. |
77 | ||
78 | * w32font.c (Quniscribe, QCformat): New symbols. | |
79 | (syms_of_w32font): Define them. | |
80 | (w32font_has_char): Indicate uncertainty. | |
ce9c1f06 | 81 | (w32font_encode_char): Encode as glyph point. Make static. |
34fd2d28 | 82 | (recompute_cached_metrics): New function. |
ce9c1f06 JB |
83 | (w32font_open_internal): Use it. Set font to use glyph points |
84 | initially. Set format based on type of font. | |
34fd2d28 | 85 | (w32font_text_extents, w32font_draw): Optionally use glyph points. |
ce9c1f06 JB |
86 | (w32_enumfont_pattern_entity): Accept backend arg. Set type based |
87 | on it. Set format based on information available here. | |
34fd2d28 JR |
88 | (add_font_entity_to_list): Identify backend based on opentype_only. |
89 | ||
14daee73 AS |
90 | 2008-03-02 Andreas Schwab <schwab@suse.de> |
91 | ||
f907fb2e AS |
92 | * ftfont.c (ftfont_pattern_entity): Fix aliasing violations. |
93 | ||
ce9c1f06 JB |
94 | * coding.c (decode_coding_big5, produce_chars): |
95 | Fix typos in last change. | |
14daee73 | 96 | |
c9cc6462 DN |
97 | 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp> |
98 | ||
99 | * gnu.h: New icon. | |
100 | ||
119852e7 KH |
101 | 2008-03-02 Kenichi Handa <handa@m17n.org> |
102 | ||
103 | * coding.c (decode_coding_utf_8): When eol-type of CODING is | |
104 | `dos', don't decode '\r' if that is the last in the source. | |
105 | (decode_coding_utf_16, decode_coding_emacs_mule) | |
106 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
107 | (decode_coding_raw_text, decode_coding_charset): Likewise. | |
108 | (produce_chars): Don't decode EOL here. Use EMACS_INT. | |
109 | ||
a823468b JR |
110 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
111 | ||
112 | * w32font.c (w32font_full_name): Report point size for scalable fonts. | |
113 | ||
4ddc7e30 KS |
114 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
115 | ||
116 | * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face. | |
117 | ||
67997c79 JR |
118 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
119 | ||
120 | * w32font.c (w32font_full_name): New function. | |
121 | (w32font_open_internal): Use it. | |
122 | ||
3f4e9c35 KS |
123 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
124 | ||
125 | * dispnew.c (line_draw_cost): Fix invalid glyph check. | |
126 | ||
f3b9e479 JR |
127 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
128 | ||
129 | * font.c (font_unparse_fcname): Increase len when style is a symbol. | |
130 | ||
7ee480ce JD |
131 | 2008-03-01 Jan Dj\e$(Q)Z\e(Brv <jan.h.d@swipnet.se> |
132 | ||
133 | * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call | |
134 | xg_frame_resized when the event is for the edit widget. | |
135 | ||
136 | * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets. | |
137 | ||
138 | * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or | |
139 | set_char_size. | |
140 | (xg_frame_resized): Renamed from xg_resize_widgets. Remove all | |
141 | operations on widgets here. Just set frame size if needed. | |
142 | (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions. | |
143 | (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing. | |
144 | (x_wm_set_size_hint): Set size hints on the edit widget only, not | |
145 | the whole frame. | |
146 | (xg_create_tool_bar): Move attachement of the tool bar to | |
147 | xg_pack_tool_bar. Do not attach the tool bar if there are no items. | |
148 | (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED. | |
149 | ||
6c8acaa1 JR |
150 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
151 | ||
152 | * w32fns.c (w32_msg_pump): Disable debug code. | |
153 | ||
51fb064b | 154 | 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
03eb5fab | 155 | |
51fb064b | 156 | * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. |
cb681b34 | 157 | |
60221a33 CY |
158 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
159 | ||
160 | * xdisp.c (next_overlay_string): Don't set | |
161 | overlay_strings_at_end_processed_p if we're currently reading from | |
162 | a display string. | |
163 | ||
10cbc34f SM |
164 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> |
165 | ||
166 | * xdisp.c (get_overlay_strings_1): Fix typo. | |
167 | ||
73c0054e CY |
168 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
169 | ||
170 | * xdisp.c (get_overlay_strings_1): Add missing argument type. | |
171 | ||
ec1c4354 KH |
172 | 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp> |
173 | ||
55082642 KH |
174 | * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern. |
175 | ||
ec1c4354 KH |
176 | * xdisp.c (display_mode_element): Cancel the previous change. |
177 | (decode_mode_spec): Likewise. | |
ee548a94 KH |
178 | (handle_auto_composed_prop): Don't make composition if it->string |
179 | is a string. | |
ec1c4354 | 180 | |
b6d898a2 KS |
181 | 2008-02-27 Kim F. Storm <storm@cua.dk> |
182 | ||
183 | * lisp.h (GLYPH): Change type from int to struct with separate char | |
184 | and face_id members. | |
185 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros. | |
186 | (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg. | |
187 | (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ... | |
188 | (GLYPH_CHAR, GLYPH_FACE): ... these. Change users. | |
189 | (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ... | |
190 | (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead. | |
191 | (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P) | |
192 | (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to | |
193 | handle new Lisp glyph code encoding, either an integer or a cons. | |
194 | ||
195 | * disptab.h (GLYPH_SIMPLE_P): Rewrite. | |
196 | (GLYPH_ALIAS): Delete. | |
197 | (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite. | |
198 | (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR. | |
199 | (GLYPH_FROM_CHAR): Replace macro by ... | |
200 | (SET_GLYPH_FROM_CHAR): ... this macro. Change users. | |
201 | ||
202 | * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify. | |
203 | (GLYPH_FROM_CHAR_GLYPH): Replace macro by ... | |
204 | (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users. | |
205 | (GLYPH_INVALID_P): New macro. | |
206 | (spec_glyph_lookup_face): Update prototype. | |
207 | ||
208 | * dispnew.c (line_draw_cost): Adapt to new glyph type. | |
209 | (build_frame_matrix_from_leaf_window): Adapt to new glyph type and | |
210 | new glyph code encoding. | |
211 | (spec_glyph_lookup_face): No return value; update passed glyph instead. | |
212 | (init_display): Use SET_CHAR_GLYPH to initialize space_glyph. | |
213 | ||
214 | * xdisp.c (get_next_display_element, next_element_from_display_vector): | |
215 | Adapt to new glyph type and new glyph code encoding. | |
216 | ||
217 | * term.c (encode_terminal_code, produce_special_glyphs): Likewise. | |
218 | ||
219 | * indent.c (current_column, current_column_1, Fmove_to_column) | |
220 | (compute_motion): Adapt to new glyph code encoding. | |
221 | ||
222 | * msdos.c (IT_write_glyphs): Adapt to new glyph type. | |
223 | ||
af2080a2 CY |
224 | 2008-02-27 Chong Yidong <cyd@stupidchicken.com> |
225 | ||
226 | * process.c (wait_reading_process_output): Check for window | |
227 | changes caused by timers. | |
228 | Suggested by Johan Bockg\e,Ae\e(Brd. | |
229 | ||
253ed25e GM |
230 | 2008-02-27 Glenn Morris <rgm@gnu.org> |
231 | ||
232 | * emacs.c (USAGE1): Add `--disable-font-backend'. | |
233 | ||
18a9f8d9 SM |
234 | 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca> |
235 | ||
236 | * fileio.c (Finsert_file_contents): Don't reset undo_list if no change | |
237 | is made to the buffer. | |
238 | ||
0f8b27ea SM |
239 | 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca> |
240 | ||
241 | * dispextern.h (face_at_buffer_position, face_for_overlay_string) | |
242 | (face_at_string_position): | |
243 | * xfaces.c (face_at_buffer_position, face_for_overlay_string) | |
244 | (face_at_string_position): | |
245 | * xdisp.c (display_string, next_overlay_change): | |
246 | * buffer.h (overlays_at): | |
247 | * buffer.c (overlays_at): Use EMACS_INT for buffer positions. | |
248 | Update callers. | |
249 | ||
4e7c53ca CY |
250 | 2008-02-26 Chong Yidong <cyd@stupidchicken.com> |
251 | ||
252 | * editfns.c (Fformat): Doc fix. | |
253 | ||
51c01100 JB |
254 | 2008-02-26 Juanma Barranquero <lekktu@gmail.com> |
255 | ||
256 | * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings. | |
257 | (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf) | |
258 | (Ffont_otf_alternates, Fquery_font): Doc fixes. | |
259 | ||
13cda5f9 SM |
260 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
261 | ||
262 | * buffer.c (Fbuffer_swap_text): New function. | |
263 | (syms_of_buffer): Defsubr it. | |
264 | ||
8018d430 CY |
265 | 2008-02-25 Chong Yidong <cyd@stupidchicken.com> |
266 | ||
267 | * keyboard.c (command_loop_1): Revert 2006-10-09 change. | |
268 | ||
9bde1a21 JR |
269 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
270 | ||
271 | * w32font.c (w32font_draw): Draw one character at a time when padding. | |
272 | ||
eeca6f6f SM |
273 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
274 | ||
275 | * window.c (Fdelete_window, Fadjust_window_trailing_edge): | |
276 | Handle a nil arg. Use run_window_configuration_change_hook. | |
277 | (delete_window, adjust_window_trailing_edge): Don't handle nil any more. | |
278 | (Fenlarge_window, Fshrink_window, Fset_window_configuration): | |
279 | Use run_window_configuration_change_hook. | |
280 | ||
ec1c4354 KH |
281 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
282 | ||
283 | * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least | |
284 | 1-pixel width. | |
285 | ||
ae185452 KH |
286 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
287 | ||
288 | * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p. | |
289 | (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1 | |
290 | if the glyph in the font is zero pixel with. | |
291 | ||
292 | * dispextern.h (struct glyph_string): New member padding_p. | |
293 | ||
294 | * w32font.c (w32font_draw): Pay attention to s->padding_p. | |
295 | ||
296 | * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p. | |
297 | ||
298 | * xfont.c (xfont_draw): Pay attention to s->padding_p. | |
299 | ||
300 | * xftfont.c (xftfont_draw): Pay attention to s->padding_p. | |
301 | ||
eeca6f6f | 302 | * font.c: If the font driver doesn't have `shape' function, return Qnil. |
ae185452 | 303 | |
ffe832ea | 304 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
c9029fe5 | 305 | |
ffe832ea | 306 | * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. |
16782258 | 307 | |
06045130 SM |
308 | 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca> |
309 | ||
310 | Allow fine-grained image-cache flushing. | |
311 | * dispextern.h (struct image): Add `dependencies' field. | |
312 | (clear_image_caches): Change arg to Lisp_Object. | |
313 | * image.c (make_image): Initialize `dependencies' field. | |
314 | (clear_image_cache): Change arg to allow fine-grained flushing. | |
315 | Perform the flush even if image-cache-eviction-delay is nil. | |
316 | (clear_image_caches): Change arg to Lisp_Object. | |
317 | (Fclear_image_cache): Expand meaning of the argument. | |
318 | (mark_image): Mark `dependencies' field. | |
319 | * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches. | |
320 | (lface_hash): Use XHASH rather than XFASTINT. | |
321 | (face_at_buffer_position): Fix int -> EMACS_INT position. | |
322 | * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position. | |
323 | (select_frame_for_redisplay): Remove code duplication. | |
324 | (redisplay_internal): Adapt arg to call to clear_image_caches. | |
325 | ||
9d2818d6 DN |
326 | 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu> |
327 | ||
328 | * s/vms4-0.h: | |
329 | * s/vms4-2.h: | |
330 | * s/vms4-4.h: | |
331 | * s/vms5-5.h: Remove, unused. | |
332 | ||
333 | * s/irix5-2.h: | |
334 | * s/irix6-0.h: | |
335 | * s/riscos5.h: | |
336 | * s/mach-bsd4-3.h: | |
337 | * m/mips4.h: Remove files for obsolete systems | |
338 | ||
339 | * Makefile.in: | |
340 | * filelock.c: | |
341 | * unexmips.c: | |
342 | * m/hp9000s300.h: | |
343 | * m/iris4d.h: | |
344 | * s/aix3-1.h: | |
345 | * s/hpux.h: | |
346 | * s/msdos.h: | |
347 | * s/usg5-0.h: | |
348 | * s/usg5-2-2.h: | |
349 | * s/usg5-2.h: | |
350 | * s/usg5-3.h: Remove references to obsolete variables. | |
351 | ||
352 | * s/irix5-0.h: Remove, move all the contents ... | |
353 | * s/irix6-5.h: ... here. Simplify. | |
354 | * config.in: Regenerate. | |
355 | ||
2a36efcf JR |
356 | 2008-02-24 Jason Rumney <jasonr@gnu.org> |
357 | ||
2face669 JR |
358 | * w32term.c: (x_draw_glyph_string_background): Clear the background |
359 | manually when cleartype is in use. | |
360 | (x_draw_glyph_string_foreground): Draw text transparently when | |
361 | cleartype is in use. | |
362 | ||
2a36efcf JR |
363 | * w32font.c (w32font_text_extents): Avoid getting HDC and selecting |
364 | a font into it unless we have to. | |
365 | ||
b03f96dc | 366 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
92a8ce63 | 367 | |
b03f96dc MB |
368 | * intervals.h (INT_LISPLIKE): Remove. It may misfire. |
369 | (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it. | |
92a8ce63 | 370 | |
b03f96dc | 371 | 2008-02-18 Jason Rumney <jasonr@gnu.org> |
92a8ce63 | 372 | |
b03f96dc | 373 | * w32fns.c (Fw32_shell_execute): Encode parameters. |
92a8ce63 | 374 | |
b03f96dc | 375 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
20f1ef2e | 376 | |
b03f96dc | 377 | * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix. |
32d0a9dc | 378 | |
b03f96dc | 379 | 2008-02-05 Juanma Barranquero <lekktu@gmail.com> |
20f1ef2e | 380 | |
b03f96dc | 381 | * unexhp9k800.c (read_header): Replace `legal' with `valid'. |
77d1daf2 | 382 | |
d5958163 CY |
383 | 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) |
384 | ||
385 | * xterm.c (x_set_offset): Don't change the gravity if | |
386 | CHANGE_GRAVITY is -1. | |
387 | ||
9997701e CY |
388 | 2008-02-23 Chong Yidong <cyd@stupidchicken.com> |
389 | ||
390 | * fileio.c (auto_save_error_occurred): New var. | |
391 | (auto_save_error): Set it. | |
392 | (Fdo_auto_save): Don't overwrite the error message if an auto-save | |
393 | error occurred. | |
394 | ||
9d95a291 EZ |
395 | 2008-02-23 Eli Zaretskii <eliz@gnu.org> |
396 | ||
397 | * w32.c (globals_of_w32): Add initializations for | |
398 | g_b_init_get_sid_sub_authority and | |
399 | g_b_init_get_sid_sub_authority_count. | |
400 | ||
43d1af23 SM |
401 | 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca> |
402 | ||
43a1d19b SM |
403 | * font.c (font_match_xlfd, font_check_xlfd_parse): New funs. |
404 | (font_parse_xlfd): Use them for sanity check. | |
608c3307 | 405 | (Finternal_set_font_style_table): Make sure the table is bijective. |
43a1d19b | 406 | |
354884c4 SM |
407 | Consolidate the image_cache to the terminal struct. |
408 | * termhooks.h (P_): Remove redundant def. | |
409 | (struct terminal): New field `image_cache'. | |
410 | * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place | |
411 | of FRAME_X_IMAGE_CACHE. | |
412 | * xterm.h (struct x_display_info): Remove image_cache field. | |
413 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
414 | * w32term.h (struct w32_display_info): Remove image_cache field. | |
415 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
416 | * macterm.h (struct mac_display_info): Remove image_cache field. | |
417 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
418 | * xterm.c (x_term_init): | |
419 | * w32term.c (w32_term_init): | |
420 | * macterm.c (mac_term_init): Set the image_cache in the terminal. | |
421 | * dispextern.h (clear_image_cache, forall_images_in_image_cache): | |
422 | Remove declarations. | |
423 | (clear_image_caches, mark_image_cache): New declarations. | |
424 | * xfaces.c (clear_face_cache): | |
425 | * xdisp.c (redisplay_internal): Use clear_image_caches. | |
426 | * image.c (clear_image_cache): Don't check that a frame is on | |
427 | a window-system before checking if it shares the same cache. | |
428 | (clear_image_caches): New function. | |
429 | (Fclear_image_cache): Use it. | |
430 | (mark_image): Move from allo.c. | |
431 | (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. | |
432 | * alloc.c (mark_image, mark_image_cache): Move to image.c. | |
433 | (mark_object): Don't call mark_image_cache for frames. | |
434 | (mark_terminals): Call mark_image_cache. | |
435 | ||
c2e42690 SM |
436 | * lisp.h (Fdelete_terminal): Declare. |
437 | ||
43d1af23 SM |
438 | * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID) |
439 | (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of | |
440 | wrong_type_argument. | |
441 | ||
cc8d1311 KH |
442 | 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp> |
443 | ||
444 | * Makefile.in (lisp): Remove devanagari.el, kannada.el, | |
4a4bdfc7 | 445 | malayalam.el, and tamil.el. Add sinhala.el. |
cc8d1311 | 446 | |
6bd92640 SM |
447 | 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca> |
448 | ||
449 | * xterm.c (x_connection_closed): Consolidate identical tests. | |
450 | (x_delete_terminal): Don't crash if called via x_connection_closed. | |
451 | ||
a73b5627 KH |
452 | 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp> |
453 | ||
454 | * xdisp.c (decode_mode_spec): New arg string. | |
6bd92640 | 455 | (display_mode_element): Adjust for the above change. |
a73b5627 | 456 | |
1b511542 SM |
457 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
458 | ||
459 | * callint.c (Fcall_interactively): Use AREF. | |
460 | ||
81aefea4 SM |
461 | 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca> |
462 | ||
463 | * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs. | |
464 | ||
2d7117fe JD |
465 | 2008-02-18 Jan Dj\e$(Q)Z\e(Brv <jan.h.d@swipnet.se> |
466 | ||
467 | * xfns.c (Fx_show_tip): Set string to " " if empty. | |
468 | ||
a2b84f35 DN |
469 | 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu> |
470 | ||
471 | * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive | |
472 | with Qt. | |
473 | ||
43c0454d KH |
474 | 2008-02-17 Kenichi Handa <handa@m17n.org> |
475 | ||
476 | * ftfont.c (ftfont_shape): Return Lispy number. | |
477 | ||
478 | * xfaces.c (prepare_face_for_display): Use display_info->font->fid | |
479 | for GCs. | |
480 | (Finternal_set_font_selection_order): Call font_update_sort_order | |
481 | only when enable_font_backend is set. | |
482 | (realize_x_face): Set face->font_info to that of default face only | |
483 | when enable_font_backend is set. | |
484 | ||
485 | * xdisp.c (handle_composition_prop): Set it->c to the fist | |
486 | characte of the composed region. | |
487 | (fill_composite_glyph_string): Set base_face->font_info to | |
488 | s->font_info. Get a face for ascii from base_face->ascii_face. | |
489 | (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string | |
490 | with a face already decided. | |
491 | (x_produce_glyphs): Be sure to set it->ascent and it->descent to | |
492 | non-negative. | |
978bef9a JB |
493 | (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING, |
494 | call font_prepare_composition unconditionally. | |
43c0454d | 495 | |
978bef9a | 496 | * xfns.c (x_make_gc): Use the default font id of the frame for GCs. |
43c0454d KH |
497 | |
498 | * xterm.h (struct x_display_info): New member font. | |
499 | ||
500 | * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs. | |
501 | (x_set_mouse_face_gc, x_new_font): Likewise. | |
502 | (x_term_init): Setup display_info->font. | |
503 | (x_delete_terminal): Free display_info->font. | |
504 | ||
505 | * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT. | |
506 | ||
507 | * ftxfont.c (ftxfont_default_fid): Delete it. | |
508 | (ftxfont_open): Set xfont->fid to 0. | |
978bef9a | 509 | (ftxfont_end_for_frame): Clear data specific to the frame and the |
43c0454d KH |
510 | font-driver. |
511 | ||
512 | * xftfont.c (xftfont_default_fid): Delete it. | |
513 | (xftfont_open): Set xfont->fid to 0. | |
514 | ||
515 | * fontset.c (FONTSET_OBJLIST): New macro. | |
516 | (fontset_find_font): Update font-object list of the fontset. | |
517 | (free_realized_fontset): New function. | |
518 | (free_face_fontset): Call free_realized_fontset. | |
519 | (Ffont_info): Call font_close_object only when enable_font_backend | |
520 | is set. | |
521 | ||
522 | * font.c [HAVE_X_WINDOWS]: Include xterm.h. | |
523 | [HAVE_NTGUI]: Include w32term.h. | |
524 | [MAC_OS]: Include macterm.ch. | |
525 | (font_otf_ValueRecord): Use make_number. | |
526 | (font_finish_cache): Fix handling of reference count. | |
527 | (font_clear_cache): Update num_fonts. | |
528 | (font_open_entity): Update smallest_char_width and | |
529 | smallest_font_height of the frame. | |
530 | (font_close_object): Update num_fonts. | |
531 | (Fclear_font_cache): Fix finding the target cache data. | |
532 | ||
be617367 GM |
533 | 2008-02-16 Glenn Morris <rgm@gnu.org> |
534 | ||
535 | * fontset.c (Finternal_char_font): Fix compilation warning. | |
536 | ||
2930d117 EZ |
537 | 2008-02-16 Eli Zaretskii <eliz@gnu.org> |
538 | ||
634d3003 EZ |
539 | * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP |
540 | instead of char arrays. Enlarge the size of array passed to | |
541 | get_token_information. | |
542 | ||
2930d117 EZ |
543 | * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation |
544 | warnings. | |
545 | ||
79214046 DN |
546 | 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu> |
547 | ||
548 | * .gdbinit: Don't set `args', it breaks gdb --args. | |
549 | ||
7f5d2c72 SM |
550 | 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca> |
551 | ||
552 | * fileio.c (Finsert_file_contents): Adjust offsets when replacing | |
553 | within a narrowed buffer. | |
554 | ||
6edacc43 KH |
555 | 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp> |
556 | ||
b270d6af JB |
557 | * coding.c (decode_coding_object, encode_coding_object): |
558 | Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer. | |
6edacc43 | 559 | |
174105f7 SM |
560 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
561 | ||
b270d6af JB |
562 | * coding.c (coding_set_destination): Use BEG_BYTE rather than |
563 | hardcoding 1. | |
13818c30 SM |
564 | (detect_coding_system): |
565 | * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text) | |
566 | (string_char_to_byte, string_byte_to_char, insert_from_gap): | |
567 | * insdel.c (insert_from_gap): | |
568 | * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos) | |
569 | (string_char_to_byte, string_byte_to_char, string_make_multibyte) | |
570 | (string_to_multibyte): | |
571 | * character.c (chars_in_text, multibyte_chars_in_text): | |
572 | * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions. | |
573 | ||
f1c99628 SM |
574 | * character.h (FETCH_STRING_CHAR_ADVANCE) |
575 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE) | |
576 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF. | |
577 | (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1. | |
578 | ||
7927d8e3 SM |
579 | * casefiddle.c (casify_region): Only call after-change and composition |
580 | functions on the part of the region that was changed. | |
581 | ||
adf6a429 | 582 | * keyboard.c (read_avail_input): |
174105f7 SM |
583 | * frame.c (Fdelete_frame): Call Fdelete_terminal. |
584 | ||
3ee24aec SM |
585 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
586 | ||
587 | * buffer.c (clone_per_buffer_values, reset_buffer_local_variables) | |
588 | (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list. | |
589 | ||
4ed4b975 JB |
590 | 2008-02-11 Juanma Barranquero <lekktu@gmail.com> |
591 | ||
592 | * w32menu.c (push_submenu_start, push_submenu_end) | |
593 | (push_left_right_boundary, push_menu_pane, push_menu_item): | |
594 | * keyboard.c (read_key_sequence): Don't pass args with side effects | |
595 | to AREF, it fails when compiling with -DENABLE_CHECKING. | |
596 | ||
79e3bfb8 KH |
597 | 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp> |
598 | ||
4ed4b975 JB |
599 | * Makefile.in (${lispsource}international/charprop.el): |
600 | Delete this target. | |
6e76043f | 601 | |
79e3bfb8 KH |
602 | * search.c (boyer_moore): Fix incorrect synching of the trunk and |
603 | emacs-unicode-2. | |
604 | ||
5b8de9c5 SM |
605 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
606 | ||
607 | * terminal.c (Fdelete_terminal): Clean up the `force' path. | |
608 | ||
eac1939a SM |
609 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
610 | ||
c53956fe SM |
611 | * frame.c (Qnoelisp): New symbol. |
612 | (syms_of_frame): Initialize it. | |
613 | (Fdelete_frame): Use it to distinguish a mere `force' passed from | |
614 | someharmles Elisp code, from a strong `force' from x_connection_closed. | |
615 | * frame.h (Qnoelisp): Declare. | |
616 | * xterm.c (x_connection_closed): Pass `noelisp'. | |
617 | ||
eac1939a SM |
618 | * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker) |
619 | (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd) | |
620 | (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type | |
621 | rather than `int' for the type of `type'. | |
622 | ||
13f6772b DN |
623 | 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu> |
624 | ||
625 | * s/gnu-linux.h: Remove support for non-ELF and linux-1.x. | |
626 | ||
627 | * Makefile.in (GNUC): Remove support for gcc-1.x. | |
628 | ||
e8455367 RS |
629 | 2008-02-10 Richard Stallman <rms@gnu.org> |
630 | ||
631 | * lisp.h (ASET): Use AREF, not ASLOT. | |
632 | ||
4b75ffab SM |
633 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
634 | ||
635 | * lisp.h (ASET): Check bounds. | |
636 | ||
d224e8c2 GM |
637 | 2008-02-10 Glenn Morris <rgm@gnu.org> |
638 | ||
639 | * buffer.c (mode-name): Doc fix. | |
640 | ||
4624371d DN |
641 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
642 | ||
290afd83 JB |
643 | * Makefile.in: |
644 | * emacs.c: | |
645 | * gmalloc.c: | |
646 | * keyboard.c: | |
647 | * lisp.h: | |
648 | * m/ibm370aix.h: | |
649 | * process.c: | |
650 | * regex.c: | |
651 | * s/hpux.h: | |
652 | * sysdep.c: | |
653 | * sysselect.h: | |
654 | * systty.h: | |
655 | * unexec.c: | |
656 | * w32term.c: | |
657 | * xsmfns.c: | |
658 | * xterm.c: Remove code that deals with obsolete variables. | |
4624371d DN |
659 | |
660 | * s/msdos.h (DONT_NEED_ENVIRON): Don't define. | |
661 | ||
662 | * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, | |
663 | nothing else needs it anymore. | |
664 | ||
274ec34b EZ |
665 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
666 | ||
667 | * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table | |
668 | instead of unibyte_char_to_multibyte. | |
669 | ||
deeaffe1 DN |
670 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
671 | ||
672 | * s/gnu-linux.h: Remove commented out code. | |
673 | ||
4ed4b975 | 674 | * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. |
deeaffe1 DN |
675 | |
676 | * Makefile.in: Update what RMS says about using autoconf. | |
4ed4b975 | 677 | (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable. |
deeaffe1 DN |
678 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1): |
679 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) | |
680 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. | |
681 | ||
68b587a6 SM |
682 | 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> |
683 | ||
9141ca5e SM |
684 | * keymap.c (Fkey_description): Move side effect outside of macro call. |
685 | ||
dfae5f9a | 686 | * xfaces.c (Finternal_make_lisp_face): |
b1ebcadb SM |
687 | * keyboard.c (add_command_key, parse_menu_item): Use ASET. |
688 | ||
ff7a2223 SM |
689 | * fontset.c (free_face_fontset): Use FONTSET_FROM_ID. |
690 | (syms_of_fontset): Use ASET. | |
691 | ||
68b587a6 SM |
692 | * fns.c (concat): Move side effect outside of macro call. |
693 | (hash_clear): Use ASET. | |
694 | ||
a31787b1 RS |
695 | 2008-02-08 Richard Stallman <rms@gnu.org> |
696 | ||
697 | * frame.c (Fdelete_frame): If FORCE, don't call hooks. | |
698 | If FORCE, and frame has a surrogate minibuffer for another frame, | |
699 | delete the other frame first. | |
700 | ||
987be29b | 701 | 2008-02-07 Timo Savola <timo.savola@iki.fi> |
1540a61a JD |
702 | |
703 | * xterm.c (x_detect_focus_change): Handle embed client message. | |
704 | (handle_one_xevent): Ditto. | |
705 | (handle_one_xevent): If embedded and we get a button press/release, | |
706 | request focus. | |
707 | (xembed_set_info, xembed_send_message): New functions. | |
708 | (x_make_frame_visible): Call xembed_set_info if embedded. | |
709 | (x_make_frame_invisible): Call xembed_set_info if embedded. | |
710 | (x_term_init): Initialize Xatom_XEMBED. | |
711 | (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also. | |
712 | (x_iconify_frame): Ditto. | |
713 | ||
714 | * xterm.h (struct x_display_info): Add AtomXatom_XEMBED. | |
715 | (enum xembed_info, enum xerm srmbed_message, enum xembed_focus) | |
716 | (enum xembed_modifier, enum xembed_accelerator): New. | |
717 | (xembed_set_info, xembed_send_message): Declare. | |
718 | (FRAME_X_EMBEDDED_P): New. | |
719 | ||
720 | * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call | |
721 | gtk_plug_new. | |
722 | ||
723 | * xfns.c (Fx_create_frame): Do not override the explicitly set parent | |
724 | window ID of a frame. | |
725 | (x_window): Reparent frame if embedded. | |
726 | (Fx_create_frame): Don't set border width if embedded. | |
727 | ||
728 | * emacs.c (USAGE3): Add --parent-id | |
729 | (standard_args): Ditto. | |
730 | ||
f937a7db JD |
731 | 2008-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
732 | ||
733 | * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". | |
734 | ||
92413ef3 JD |
735 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
736 | ||
6f69e89b | 737 | Use "do...while (0)", not "if (1)...else" in macro definitions. |
987be29b RF |
738 | The latter provokes a warning from gcc about the empty else, when |
739 | followed by ";". Also, without that trailing semicolon, it would | |
740 | silently swallow up any following statement. | |
741 | * syntax.h (SETUP_SYNTAX_TABLE): | |
742 | (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise. | |
743 | * buffer.h (DECODE_POSITION): Likewise. | |
744 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. | |
745 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise. | |
746 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise. | |
747 | (FETCH_CHAR_ADVANCE): Likewise. | |
748 | (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise. | |
92413ef3 | 749 | |
03fa5713 GM |
750 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
751 | ||
752 | * lread.c [lint]: Don't include <sys/inode.h>. | |
753 | ||
3ae565b3 SM |
754 | 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca> |
755 | ||
756 | * xselect.c (x_handle_dnd_message): | |
757 | * xmenu.c (digest_single_submenu, xmenu_show): | |
758 | * xdisp.c (with_echo_area_buffer_unwind_data) | |
759 | (format_mode_line_unwind_data, unwind_format_mode_line) | |
760 | (display_menu_bar): | |
761 | * eval.c (Ffetch_bytecode): | |
762 | * doc.c (store_function_docstring): | |
763 | * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code) | |
764 | (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map): | |
765 | * buffer.c (add_overlay_mod_hooklist): Use ASET. | |
766 | ||
146b6e55 KH |
767 | 2008-02-07 Kenichi Handa <handa@m17n.org> |
768 | ||
769 | * ftxfont.c (ftxfont_open): Don't set | |
770 | dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. | |
771 | ||
772 | * ftfont.c (ftfont_open): Fix previous change. | |
773 | ||
46a923ac JR |
774 | 2008-02-06 Jason Rumney <jasonr@gnu.org> |
775 | ||
776 | * w32font.c (w32font_text_extents): Fill in lbearing metric. | |
777 | Use cached metrics for ASCII characters. | |
3ae565b3 SM |
778 | (w32font_open_internal): Don't set font's owning_frame. |
779 | Cache metrics for ASCII characters. | |
46a923ac JR |
780 | |
781 | * w32font.h (struct w32font_info): Add ascii_metrics. | |
782 | Remove owning_frame. | |
783 | ||
da7d7c21 KH |
784 | 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp> |
785 | ||
786 | * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent | |
787 | to negative value. | |
788 | ||
789 | * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info. | |
790 | ||
3ae565b3 | 791 | * ftfont.c (ftfont_open): Fix calculation of font->font.average_width. |
da7d7c21 KH |
792 | |
793 | * charset.c (syms_of_charset): Set QCtest and Qeq. | |
794 | ||
c62c8ddb SM |
795 | 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> |
796 | ||
ca319910 SM |
797 | * process.c (Fstart_process): |
798 | * callproc.c (Fcall_process): Handle the case where | |
799 | Funhandled_file_name_directory returns nil. | |
800 | ||
76860cbb SM |
801 | * font.h (enum lgstring_indices, enum lglyph_indices): New enums. |
802 | (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros. | |
f9ffa1ea SM |
803 | * font.c (check_gstring): Use them and AREF to access the vector before |
804 | we know it's really a gstring. | |
805 | (Ffont_shape_text): Fix typo. | |
806 | (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups. | |
76860cbb | 807 | |
15139d67 SM |
808 | * composite.h (Fcompose_region_internal, Fcompose_string_internal): |
809 | Declare. | |
810 | ||
c62c8ddb SM |
811 | * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement. |
812 | ||
04b65d2b JR |
813 | 2008-02-05 Jason Rumney <jasonr@gnu.org> |
814 | ||
815 | * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth. | |
816 | Set smallest_font_height and smallest_char_width in display info. | |
817 | ||
fccaebfd KH |
818 | 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp> |
819 | ||
820 | * coding.c (decode_eol): Pay attention to coding->dst_multibyte. | |
821 | ||
e7d7fd8c MB |
822 | 2008-02-05 Miles Bader <miles@gnu.org> |
823 | ||
824 | * xfaces.c (get_lface_attributes, merge_named_face) | |
825 | (lookup_named_face, lookup_derived_face, realize_named_face): | |
826 | Revert 2008-02-01 change by cyd@stupidchicken.com. | |
827 | ||
3d4448a8 KH |
828 | 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp> |
829 | ||
830 | * fontset.c (Ffontset_info): Handle the case of inhibitting the | |
831 | fallback fonts. | |
15139d67 | 832 | (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names. |
3d4448a8 | 833 | |
5ace1ec1 JR |
834 | 2008-02-04 Jason Rumney <jasonr@gnu.org> |
835 | ||
836 | * w32font.c (w32font_open_internal): Use font_unparse_fcname to | |
837 | set full_name. | |
e3a77b22 | 838 | (w32font_open_internal): Use xmalloc, xrealloc, xfree. |
5ace1ec1 | 839 | |
ffe42183 JR |
840 | 2008-02-03 Jason Rumney <jasonr@gnu.org> |
841 | ||
842 | * makefile.w32-in (OBJ1): Include font.o here. | |
843 | (FONTOBJ) [USE_FONTBACKEND]: Instead of here. | |
844 | ||
526dc3b3 JR |
845 | 2008-02-02 Jason Rumney <jasonr@gnu.org> |
846 | ||
a0fece35 | 847 | * makefile.w32-in (temacs): Bump EMHEAP to 21. |
526dc3b3 | 848 | |
af805c82 JR |
849 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
850 | ||
851 | * s/cygwin.h: Define VIRT_ADDR_VARIES. | |
852 | ||
853 | * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition. | |
854 | ||
7f6519c5 AS |
855 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
856 | ||
1f45f627 | 857 | * Makefile.in (shortlisp, lisp): Update for rename of |
7f6519c5 | 858 | ../lisp/language/myanmar.el. |
7f6519c5 | 859 | |
26f8aa27 CY |
860 | 2008-02-01 Chong Yidong <cyd@stupidchicken.com> |
861 | ||
1f45f627 | 862 | * xfaces.c (get_lface_attributes): Delete function. |
26f8aa27 CY |
863 | (merge_named_face, lookup_named_face, lookup_derived_face) |
864 | (realize_named_face): Call lface_from_face_name directly, and use | |
865 | the fact that merge_face_vectors does not alter its FROM argument. | |
866 | ||
73acf815 | 867 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
868 | |
869 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode | |
1f45f627 | 870 | input in the default locale. Handle non-Unicode multibyte input. |
aca7a3d2 | 871 | |
73acf815 | 872 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
873 | |
874 | * fontset.c (reorder_font_vector): Exclude nil elements from the | |
875 | font group. Don't try multiple fonts. | |
15139d67 | 876 | (fontset_font): Adjust for the above change. |
aca7a3d2 MB |
877 | (Finternal_char_font): Return nil if the found font doesn't |
878 | contain the character ch. | |
879 | ||
4c4475a8 | 880 | * Makefile.in (lisp, shortlisp): Add cham.el. |
aca7a3d2 | 881 | |
73acf815 | 882 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
883 | |
884 | * font.h (FONTP): Make it return 1 also for a font-object. | |
885 | ||
886 | * .gdbinit (xfontset): New function. | |
887 | ||
888 | * font.c (font_find_for_lface): Check if the character C is | |
889 | supported or not only for the first font. | |
890 | ||
891 | * fontset.c (reorder_font_vector): Fix typo. | |
892 | (fontset_find_font): Don't add a font-spec specifying a script. | |
893 | Use 0 (not Qt) for the indication of empty font-group. Change the | |
894 | format of RFONT-DEF. Return Qt if no font in the font-group | |
895 | support the character. | |
15139d67 | 896 | (fontset_font): Adjust for the above change. If no font was |
aca7a3d2 | 897 | found the character, remember that. |
15139d67 | 898 | (face_for_char): Adjust for the change of RFONT-DEF. |
aca7a3d2 MB |
899 | (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify |
900 | no font for the target. | |
15139d67 | 901 | (Finternal_char_font): Adjust for the change of RFONT-DEF. |
aca7a3d2 | 902 | |
73acf815 | 903 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
904 | |
905 | * font.c (font_load_for_face): Handle the case that the font in | |
906 | face->lface is a string. | |
907 | ||
73acf815 | 908 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 909 | |
1f45f627 | 910 | * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface. |
aca7a3d2 | 911 | |
73acf815 | 912 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
913 | |
914 | * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: | |
915 | Fix previous change. If the frame is not on a window system, | |
916 | signal an error. | |
917 | ||
73acf815 | 918 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 919 | |
4c4475a8 GM |
920 | * coding.c (decode_coding_object, encode_coding_object): Adjust |
921 | marker positions after conversion. | |
aca7a3d2 MB |
922 | |
923 | * lisp.h (struct Lisp_Marker): New member need_adjustment. | |
924 | ||
73acf815 | 925 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
926 | |
927 | * font.c (font_find_for_lface): Fix the handling of the return | |
928 | value of font_has_char. | |
929 | (Ffont_shape_text): Fix previous change. | |
930 | ||
931 | * fontset.c (FONTSET_REF_AND_RANGE): Delete it. | |
932 | (fontset_ref_and_range): Delete it. | |
933 | (fontset_find_font): Call char_table_ref_and_range instead of | |
934 | FONTSET_REF_AND_RANGE. | |
935 | (make_fontset): Don't setup font groups of Latin here. | |
936 | (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII. | |
937 | (new_fontset_from_font): Make the specified font the default for | |
938 | all Latin characters. | |
939 | ||
73acf815 | 940 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
941 | |
942 | * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame | |
943 | is on a window system before accessing the fontset of the frame. | |
944 | ||
73acf815 | 945 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 946 | |
1f45f627 | 947 | * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el. |
aca7a3d2 MB |
948 | |
949 | * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only | |
950 | when both HAVE_M17N_FLT and HAVE_LIBOTF are defined. | |
951 | ||
952 | * font.c (Ffont_shape_text): If the font driver doesn't have a | |
953 | shaper function, make zero-width glyphs to have at least one-pixel | |
954 | width. Fix setting of `to' field of glyphs. | |
955 | ||
73acf815 | 956 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
957 | |
958 | * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of | |
959 | glyphs. | |
960 | ||
1f45f627 | 961 | * font.h (struct font_driver): Improve docstring of member `shape'. |
aca7a3d2 | 962 | |
73acf815 | 963 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
964 | |
965 | * composite.c (syms_of_composite): Fix docstring of | |
966 | auto-composition-function. | |
967 | ||
968 | * font.h (LGLYPH_SIZE): New macro. | |
969 | ||
970 | * font.c (Ffont_fill_gstring): Stop filling when a character not | |
971 | supported by the font is found. | |
972 | (Ffont_shape_text): When a shape callback function returns nil, | |
973 | try at most two more times with larger gstring. | |
15139d67 | 974 | (Ffont_at): Fix getting of w. Call font_at with correct 5th argument. |
aca7a3d2 MB |
975 | |
976 | * xdisp.c (handle_auto_composed_prop): Change the argument to | |
977 | auto-composition-function. | |
978 | ||
979 | * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
980 | (ftfont_shape_by_flt): If an element of lgstring is nil, make a | |
981 | Lispy glyph and store it in the lgstring. | |
982 | ||
983 | * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE. | |
984 | ||
985 | * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
986 | ||
73acf815 | 987 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
988 | |
989 | * font.c (Ffont_shape_text): Avoid unnecessary composition. | |
990 | ||
991 | * fontset.c (Vfont_encoding_charset_alist): New variable. | |
992 | (syms_of_fontset): DEFVAR it. | |
4c4475a8 GM |
993 | (reorder_font_vector, fontset_find_font): Optimize for the case of |
994 | no need of reordering. | |
aca7a3d2 MB |
995 | (face_for_char): Map the charset property by |
996 | Vfont_encoding_charset_alist. | |
997 | ||
73acf815 | 998 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
999 | |
1000 | * w32font.c (logfonts_match): Don't check adstyle here. | |
1001 | (font_matches_spec): Check here against physical font instead. | |
1002 | (add_font_entity_to_list): Avoid some substitutions. | |
1003 | ||
1004 | * font.c (font_parse_fcname): Default weight and slant to normal. | |
1005 | (font_score): Prefer normal fonts if weight or slant unspecified. | |
1006 | (font_score) [WINDOWSNT]: Scale weight difference down to closer | |
1007 | match freetype scores. | |
1008 | ||
73acf815 | 1009 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1010 | |
1011 | * w32font.c (w32font_text_extents): Don't use the frame stored in the | |
1012 | font, as it may have been deleted. | |
1013 | (w32_enumfont_pattern_entity): Map generic family to adstyle using | |
1014 | most common hyphenless variation. | |
1015 | (logfonts_match): Check generic family. | |
1016 | (font_matches_spec): Don't check generic family here. | |
1017 | (fill_in_logfont): Set generic family based on adstyle. | |
1018 | ||
1019 | * w32font.h (w32font_get_cache): Update declaration. | |
1020 | ||
73acf815 | 1021 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1022 | |
1023 | * ftfont.c (ftfont_get_cache): Adjust the argument type. | |
1024 | ||
15139d67 SM |
1025 | * frame.c (x_set_font_backend): Don't call Fclear_font_cache. |
1026 | If none of the new drivers are available, call font_update_drviers | |
aca7a3d2 MB |
1027 | with the old drivers. |
1028 | ||
1029 | * w32font.c (w32font_get_cache): Adjust the argument type. | |
1030 | ||
1031 | * xfont.c (xfont_get_cache): Adjust the argument type. | |
1032 | ||
1033 | * font.h (struct font_driver): Change argument type of get_cache. | |
1034 | ||
1035 | * xftfont.c (xftfont_start_for_frame): Delete prototype. | |
1036 | ||
1037 | * font.c (Ffont_get): Fix arguments to Fassoc. | |
15139d67 | 1038 | (font_prepare_cache, font_finish_cache, font_get_cache): New functions. |
aca7a3d2 | 1039 | (font_clear_cache): New function. |
4c4475a8 | 1040 | (font_list_entities, font_matching_entity): Use font_get_cache. |
15139d67 | 1041 | (font_update_drivers): Call font_clear_cache when finishing a driver. |
aca7a3d2 MB |
1042 | |
1043 | * fontset.c (fontset_find_font): Fix previous change. | |
1044 | ||
73acf815 | 1045 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1046 | |
1047 | * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access | |
1048 | dpyinfo->font_table. | |
1049 | (x_delete_display) [USE_FONT_BACKEND]: Likewise. | |
15139d67 | 1050 | (x_delete_terminal) [USE_FONT_BACKEND]: Likewise. |
aca7a3d2 MB |
1051 | |
1052 | * font.c (font_at): Handle the case that the arg C is negative. | |
1053 | Handle the unibyte case. | |
1054 | (Ffont_at): Call font_at with the arg C -1. | |
1055 | ||
1056 | * xdisp.c (handle_auto_composed_prop): Don't get a character at | |
15139d67 SM |
1057 | the position here, and call font_at with the arg C -1. |
1058 | Don't check the range of the existing composition at the point. | |
aca7a3d2 | 1059 | |
73acf815 | 1060 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 1061 | |
15139d67 | 1062 | * fontset.c (fontset_add): New args charset_id and family. |
1f45f627 | 1063 | Change caller. |
4c4475a8 GM |
1064 | (load_font_get_repertory, fontset_find_font): Assume that |
1065 | font_spec is always a font-spec object. | |
aca7a3d2 MB |
1066 | (Fset_fontset_font): Always store a font-spec object in a fontset. |
1067 | ||
1068 | * xdisp.c (handle_auto_composed_prop): Use Fget_text_property | |
1069 | instead of get_property_and_range. | |
1070 | ||
73acf815 | 1071 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1072 | |
1073 | * xftfont.c (struct xftfont_info): Delete the member ft_face. | |
1074 | (xftfont_open): Don't keep locking face. | |
1075 | (xftfont_close): Don't unlock face. | |
4c4475a8 | 1076 | (xftfont_anchor_point, xftfont_shape): Lock and unlock face. |
aca7a3d2 MB |
1077 | |
1078 | * fontset.c (fontset_find_font): Don't prefer a font of | |
1079 | supplementary charset. | |
1080 | ||
73acf815 | 1081 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 1082 | |
1f45f627 GM |
1083 | * ftfont.c (struct OpenTypeSpec): Rename members script_tag to |
1084 | script, langsys_tag to langsys, new member script. | |
aca7a3d2 MB |
1085 | (OTF_TAG_STR): Terminate by '\0'. |
1086 | (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the | |
1087 | listing to the script specified in that property. Fix arg to | |
1088 | OTF_check_features. | |
1089 | ||
73acf815 | 1090 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1091 | |
1092 | * w32font.h: New file. | |
1093 | ||
1094 | * w32font.c: Include it. | |
1095 | (struct w32font_info): Add owning_frame field. Move to w32font.h. | |
1096 | (w32font_open): Set owning_frame. | |
1097 | (w32font_text_extents): Use owning_frame. | |
1098 | (struct font_callback_data): Add opentype_only field. | |
1099 | (add_font_entity_to_list): Use it to filter fonts. | |
1100 | Don't check against full name. | |
1101 | (w32font_list_internal): New function. | |
1102 | (w32font_list): Use it. | |
1103 | (w32font_match_internal): New function. | |
1104 | (w32font_match): Use it. | |
1105 | (w32font_open_internal): New function. | |
1106 | (w32font_open): Use it. | |
1107 | (w32font_get_cache, w32font_close, w32font_has_char) | |
1108 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
1109 | Make non-static. | |
1110 | ||
1111 | * makefile.w32-in (w32font.o): Depend on w32font.h. | |
1112 | ||
73acf815 | 1113 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1114 | |
1115 | * charset.c (Fdefine_charset_internal): Record a supplementary | |
1116 | charset at the tail of Vcharset_order_list. | |
1117 | ||
1118 | * font.c (Ffont_shape_text): Fix the return value. | |
1119 | ||
1120 | * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names. | |
1121 | ||
1122 | * xdisp.c (handle_auto_composed_prop): Fix previous change. | |
1123 | ||
73acf815 | 1124 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1125 | |
1126 | * ftfont.c (struct OpenTypeSpec): New struct. | |
1127 | (OTF_SYM_TAG, OTF_TAG_STR): New macros. | |
1128 | (ftfont_get_open_type_spec): New function. | |
1129 | (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property. | |
1130 | ||
15139d67 | 1131 | * lread.c (read1): Redo the previous change with checking Vpurify_flag. |
aca7a3d2 | 1132 | |
73acf815 | 1133 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1134 | |
1135 | * w32font.c (add_font_entity_to_list): Compare only the beginning | |
1136 | of full name. | |
1137 | ||
73acf815 | 1138 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 1139 | |
15139d67 SM |
1140 | * xdisp.c (handle_auto_composed_prop): Simplify the code. |
1141 | Never return HANDLED_RECOMPUTE_PROPS. | |
aca7a3d2 | 1142 | |
73acf815 | 1143 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1144 | |
1145 | * font.c (font_gstring_produce): Delete it. | |
1146 | ||
15139d67 SM |
1147 | * composite.h (COMPOSITION_METHOD): |
1148 | Handle COMPOSITION_WITH_GLYPH_STRING. | |
aca7a3d2 | 1149 | |
73acf815 | 1150 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 1151 | |
15139d67 | 1152 | * xfont.c (Qx): Delete. |
aca7a3d2 MB |
1153 | (syms_of_xfont): Don't initialize Qx. |
1154 | ||
15139d67 SM |
1155 | * composite.h (enum composition_method): |
1156 | Define COMPOSITION_WITH_GLYPH_STRING unconditionally. | |
aca7a3d2 | 1157 | |
73acf815 | 1158 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1159 | |
1160 | * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally. | |
1161 | (choose_face_font): Accept new form of font-spec. | |
1162 | ||
1163 | * frame.h (font_driver_list): Declare it unconditionally. | |
1164 | (struct frame): Define members font_driver_list and font_data_list | |
1165 | unconditionally. | |
1166 | ||
1167 | * fontset.c: Include "font.h" unconditionally. | |
15139d67 | 1168 | (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd. |
aca7a3d2 MB |
1169 | (Fset_fontset_font): Accept a font-spec object. |
1170 | ||
1171 | * font.c (font_unparse_xlfd): If pixel_size is zero, make the | |
1172 | PIXEL_SIZE part a wild card. | |
1173 | ||
1174 | * dispextern.h (struct glyph_string): Define members clip and | |
1175 | num_clips unconditionally. | |
1176 | (struct face): Define members font_info and extra unconditionally. | |
1177 | ||
1178 | * ftfont.c (ftfont_open): Set members maybe_otf and otf of | |
1179 | ftfont_info only when HAVE_LIBOTF is defined. | |
1180 | ||
73acf815 | 1181 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
1182 | |
1183 | * xdisp.c (back_to_previous_visible_line_start): Fix type of beg | |
1184 | and end. | |
1185 | ||
73acf815 | 1186 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1187 | |
1188 | * w32font.c (w32font_driver): Add new fields. | |
1189 | ||
73acf815 | 1190 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 1191 | |
aca7a3d2 MB |
1192 | * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@. |
1193 | (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally. | |
1194 | (LIBES): Add @M17N_FLT_CFLAGS@. | |
1195 | ||
1196 | * composite.c (compose_text): Don't treat the new style | |
1197 | composition specially. | |
1198 | ||
1199 | * emacs.c (main): Call syms_of_font unconditionally. | |
1200 | ||
1201 | * font.h (FONT_ENTITY_NOT_LOADABLE) | |
1202 | (FONT_ENTITY_SET_NOT_LOADABLE): New macros. | |
15139d67 | 1203 | (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring. |
aca7a3d2 | 1204 | (struct font_driver): New member shape. |
1f45f627 | 1205 | (font_registry_charsets): Extern it. |
4c4475a8 | 1206 | (font_find_for_lface, font_prepare_composition): Adjust prototype. |
aca7a3d2 MB |
1207 | (font_otf_capability, font_drive_otf): Delete their externs. |
1208 | ||
1209 | * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>. | |
4c4475a8 GM |
1210 | (font_charset_alist, font_registry_charsets): Move from xfont.c |
1211 | and rename. | |
aca7a3d2 MB |
1212 | (font_prop_validate_otf): New function. |
1213 | (font_property_table): Register it for QCotf. | |
1214 | (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER) | |
15139d67 | 1215 | (font_drive_otf): Delete. |
1f45f627 | 1216 | (font_prepare_composition): New arg F. Adjust for the change of |
aca7a3d2 MB |
1217 | lispy gstring. |
1218 | (font_find_for_lface): New arg C. | |
15139d67 | 1219 | (font_load_for_face): Adjust for the change of font_find_for_lface. |
4c4475a8 GM |
1220 | (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of |
1221 | lispy gstring. | |
aca7a3d2 MB |
1222 | (Ffont_shape_text): New function. |
1223 | (Fopen_font): If the font size is not given, use 12-pixel. | |
1224 | (Ffont_at): New arg STRING. | |
15139d67 SM |
1225 | (syms_of_font): Initalize font_charset_alist. |
1226 | Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont | |
aca7a3d2 MB |
1227 | conditionally. |
1228 | ||
1229 | * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple | |
1230 | fonts of the same font-spec. Change the format of RFONT-DEF. | |
4c4475a8 GM |
1231 | (face_for_char, make_fontset_for_ascii_face, Finternal_char_font): |
1232 | Adjust for the change of RFONT-DEF. | |
15139d67 | 1233 | (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec. |
aca7a3d2 MB |
1234 | |
1235 | * ftfont.h: New file. | |
1236 | ||
1237 | * ftfont.c: Don't include Freetype headers. Include "ftfont.h". | |
1238 | (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. | |
1239 | (ftfont_open) [HAVE_LIBOTF]: Initialize the above members. | |
1240 | (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set | |
1241 | font_otf_capability and font_drive_otf, set ftfont_shape. | |
15139d67 | 1242 | (ftfont_list): Adjust for the change of :otf property value. |
aca7a3d2 MB |
1243 | (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct. |
1244 | (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf) | |
1245 | (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt) | |
1246 | (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s | |
1247 | (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro. | |
1248 | (otf_gstring, gstring, m17n_flt_initialized): New variables. | |
1249 | ||
15139d67 SM |
1250 | * w32term.c (x_draw_composite_glyph_string_foreground): |
1251 | Adjust for the change of lispy gstring. | |
aca7a3d2 | 1252 | |
15139d67 | 1253 | * xdisp.c (handle_composition_prop): Adjust for the change of |
aca7a3d2 | 1254 | lispy gstring. Call a function for auto-composition with the |
15139d67 SM |
1255 | third arg it->window. |
1256 | (fill_composite_glyph_string): Adjust for the change of lispy string. | |
1257 | (x_produce_glyphs): Adjust for the change of font_prepare_compositionl. | |
aca7a3d2 | 1258 | |
15139d67 | 1259 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
1260 | font_find_for_lface. |
1261 | ||
1f45f627 GM |
1262 | * xfont.c (x_font_charset_alist): Move to font.c and rename. |
1263 | (xfont_registry_charsets): Likewise. Change caller. | |
aca7a3d2 MB |
1264 | (syms_of_xfont): Don't handle x_font_charset_alist. |
1265 | ||
1266 | * xftfont.c: Include "ftfont.h". | |
15139d67 | 1267 | (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. |
aca7a3d2 MB |
1268 | (xftfont_open) [HAVE_LIBOTF]: Initialize the above members. |
1269 | (xftfont_close) [HAVE_LIBOTF]: Close otf. | |
1270 | (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. | |
15139d67 SM |
1271 | (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]: |
1272 | Set xftfont_driver.shape to xftfont_shape. | |
aca7a3d2 | 1273 | |
15139d67 | 1274 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
1275 | the change of lispy gstring. |
1276 | ||
73acf815 | 1277 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1278 | |
1279 | * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error. | |
1280 | ||
73acf815 | 1281 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1282 | |
1283 | * w32font.c (w32font_draw): Fill background manually. | |
1284 | ||
73acf815 | 1285 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1286 | |
1287 | * font.c (Qfontp): Remove unused symbol. | |
1288 | (QCantialias): New symbol. | |
1289 | (syms_of_font): Define it. | |
1290 | (font_property_table): Set a validator for QCantialias. | |
1291 | ||
15139d67 SM |
1292 | * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY): |
1293 | Define if not already. | |
aca7a3d2 MB |
1294 | (QCfamily): Share with xfaces.c. |
1295 | (Qstandard, Qsubpixel, Qnatural): New symbols. | |
1f45f627 | 1296 | (syms_of_w32font): Define them. Don't define QCfamily here. |
aca7a3d2 MB |
1297 | (w32_antialias_type, lispy_antialias_type): New functions. |
1298 | (w32_enumfont_pattern_entity): New arg requested_font. | |
1299 | Set antialias parameter if non-default was requested. | |
1300 | (fill_in_logfont): Fill in lfQuality if :antialias specified. | |
1301 | ||
73acf815 | 1302 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1303 | |
1304 | * lread.c (read1): Undo the previous change. | |
1305 | ||
73acf815 | 1306 | 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change) |
aca7a3d2 MB |
1307 | |
1308 | * frame.c (Fdelete_frame): Call font_update_drivers only when | |
6f69e89b | 1309 | USE_FONT_BACKEND is defined. |
aca7a3d2 | 1310 | |
73acf815 | 1311 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1312 | |
1313 | * font.h (struct font_bitmap): New member bits_per_pixel. | |
1314 | (struct font_driver): New members start_for_frame and end_for_frame. | |
1315 | (struct font_data_list): New struct. | |
1316 | (font_put_frame_data, font_get_frame_data): Extern them. | |
1317 | ||
1318 | * frame.h (struct frame): New member font_data_list. | |
1319 | ||
1320 | * font.c (font_update_drivers): Call driver->start_for_frame and | |
1321 | driver->end_for_frame at proper timings. | |
1322 | (font_put_frame_data, font_get_frame_data): New functions. | |
1323 | (Ffont_spec): Add usage in the docstring. | |
1324 | ||
1325 | * frame.c (make_frame): Initialize f->font_data_list to NULL. | |
1326 | (Fdelete_frame): Call font_update_drivers. | |
1327 | ||
1328 | * xftfont.c (struct xftface_info): Delete the member xft_draw. | |
4c4475a8 | 1329 | (xftfont_prepare_face, xftfont_done_face): Adjust for the above change. |
aca7a3d2 MB |
1330 | (xftfont_get_xft_draw): New function. |
1331 | (xftfont_draw): Get XftDraw by xftfont_get_xft_draw. | |
1332 | (xftfont_end_for_frame): New function. | |
1333 | (syms_of_xftfont): Set xftfont_driver.end_for_frame. | |
1334 | ||
15139d67 | 1335 | * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs. |
1f45f627 | 1336 | Change argument. Cache GCs in the per-frame data. |
aca7a3d2 MB |
1337 | (struct ftxfont_frame_data): New struct. |
1338 | (ftxfont_draw_bitmap): New arg gc_fore and flush. | |
1339 | (ftxfont_prepare_face, ftxfont_done_face): Delete them. | |
15139d67 | 1340 | (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs. |
aca7a3d2 MB |
1341 | (ftxfont_end_for_frame): New function. |
1342 | (syms_of_ftxfont): Set ftxfont_driver.end_for_frame. | |
1343 | ||
1344 | * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel. | |
1345 | ||
73acf815 | 1346 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1347 | |
1348 | * xselect.c (Vselection_coding_system) | |
1349 | (Vnext_selection_coding_system): Delete them. | |
1350 | (syms_of_xselect): Don't declare selection-coding-system and | |
1351 | next-selection-coding-system. They are declared in select.el. | |
1352 | ||
73acf815 | 1353 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1354 | |
1355 | * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already. | |
1356 | ||
1357 | * w32fns.c: Include imm.h. | |
1358 | (get_composition_string_fn, get_ime_context_fn): New optional | |
1359 | system functions. | |
1360 | (globals_of_w32fns): Load them from imm32.dll. | |
1361 | (ignore_ime_char): New flag. | |
1362 | (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and | |
1363 | WM_IME_ENDCOMPOSITION messages. | |
1364 | ||
1365 | * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as | |
1366 | MULTIBYTE_CHAR_KEYSTROKE_EVENT. | |
1367 | ||
73acf815 | 1368 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1369 | |
1370 | * lread.c (READCHAR): Call readchar with the 2nd arg NULL. | |
1371 | (READCHAR_REPORT_MULTIBYTE): New macro. | |
1372 | (readchar): New 2nd arg MULTIBYTE. | |
15139d67 SM |
1373 | (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. |
1374 | Make symbol's name multibyte according to the multibyteness of the | |
aca7a3d2 MB |
1375 | source. |
1376 | ||
73acf815 | 1377 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1378 | |
1379 | * xfaces.c (face_for_overlay_string): Call lookup_face with | |
1380 | correct arguments (fix of synching with the trunk). | |
1381 | ||
73acf815 | 1382 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 1383 | |
4c4475a8 GM |
1384 | * font.c (font_prop_validate_symbol, font_prop_validate_style) |
1385 | (font_prop_validate_non_neg, font_prop_validate_spacing): | |
1386 | Delete argument prop_index. | |
15139d67 SM |
1387 | (font_property_table): Change arguments to validater. Change Callers. |
1388 | (font_lispy_object): Delete. | |
aca7a3d2 MB |
1389 | (font_at): Use font_find_object instead fo font_lispy_object. |
1390 | ||
73acf815 | 1391 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
1392 | |
1393 | * fileio.c (Fexpand_file_name): Adjust multibyteness of directory | |
1394 | and file names. | |
1395 | ||
73acf815 | 1396 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1397 | |
1398 | * w32font.c (add_font_name_to_list): Avoid vertical fonts. | |
1399 | (font_matches_spec): Remove debug output. | |
1400 | (add_font_entity_to_list): Avoid using substituted fonts. | |
1401 | ||
73acf815 | 1402 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1403 | |
1404 | * doc.c (Fsnarf_documentation): | |
1405 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change. | |
1406 | ||
73acf815 | 1407 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 1408 | |
290afd83 | 1409 | * dispextern.h (struct glyph_row): Only define "clip" field if |
aca7a3d2 MB |
1410 | HAVE_WINDOW_SYSTEM is defined. |
1411 | ||
73acf815 | 1412 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
1413 | |
1414 | Fix up multi-tty merge. | |
1415 | ||
1416 | * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting | |
1417 | and indentation. | |
1418 | ||
1419 | * xfaces.c (free_realized_face, clear_face_gcs): | |
1420 | Include font_done_for_face in the input_blocked section, just in case. | |
1421 | ||
1422 | * xdisp.c (decode_mode_spec): Use terminal-local coding systems. | |
1423 | (get_char_face_and_encoding): Undo last change and remove the *other* | |
1424 | duplicate definition (i.e. keep the one that's better scoped and that | |
1425 | includes code for the font-backend). | |
1426 | ||
1427 | * terminal.c (create_terminal): Default keyboard_coding to | |
1428 | `no-conversion' and terminal_coding to `undecided'. | |
1429 | ||
1430 | * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag. | |
1431 | ||
1432 | * fontset.c (free_realized_fontsets): Check that the table entry does | |
1433 | contain a fontset before trying to compare it to `base'. | |
1434 | ||
1435 | * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc, | |
1436 | syms_of_charset, and syms_of_coding earlier because init_window_once | |
1437 | now needs Vcoding_system_hash_table to be setup. | |
1438 | ||
1439 | * coding.h (default_buffer_file_coding): Remove. | |
1440 | ||
1441 | * coding.c (default_buffer_file_coding): Remove. | |
1442 | (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather | |
1443 | than ->symbol, and use the terminal-local coding system. | |
1444 | (syms_of_coding): Don't setup the coding-systems that are not | |
1445 | terminal-local. | |
1446 | (Fdefine_coding_system_internal): Use XCAR/XCDR. | |
1447 | ||
1448 | * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table): | |
1449 | Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore. | |
1450 | ||
1451 | * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now | |
1452 | in chartab.c and were re-added here by mistake. | |
1453 | (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector. | |
1454 | ||
1455 | * doc.c (Fsnarf_documentation): | |
1456 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from | |
1457 | src to etc. | |
1458 | ||
1459 | * ChangeLog.10: Add mistakenly removed entry. | |
1460 | ||
73acf815 | 1461 | 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu> |
aca7a3d2 MB |
1462 | |
1463 | * Makefile.in (fringe.o, minibuf.o): Fix dependencies. | |
1464 | ||
73acf815 | 1465 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
1466 | |
1467 | * xdisp.c (get_char_face_and_encoding): Remove extraneous definition. | |
1468 | Add extra args to FACE_FOR_CHAR. | |
1469 | ||
73acf815 | 1470 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1471 | |
1472 | * keymap.c (where_is_internal_1): If key is a cons, store the copy | |
1473 | in sequence. | |
1474 | ||
4c4475a8 GM |
1475 | * chartab.c (map_sub_char_table, map_char_table): If the range |
1476 | contains just one character, call the function with that character | |
1477 | even if the depth is not 3. | |
aca7a3d2 | 1478 | |
73acf815 | 1479 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1480 | |
1481 | * w32font.c (w32font_text_extents): Calculate metrics for the | |
1482 | whole string. | |
1483 | ||
73acf815 | 1484 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1485 | |
1486 | * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages. | |
1487 | ||
73acf815 | 1488 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1489 | |
1490 | * w32term.c (x_set_glyph_string_clipping): Use | |
1491 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
1492 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
1493 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
1494 | |
1495 | * w32font.c (w32font_draw): Do clipping here. | |
1496 | ||
73acf815 | 1497 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 1498 | |
1f45f627 | 1499 | * xftfont.c (xftfont_draw): Adjust for the change of struct |
aca7a3d2 MB |
1500 | glyph_string. |
1501 | ||
1502 | * xterm.c (x_set_glyph_string_clipping): Use | |
1503 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
1504 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
1505 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
1506 | |
1507 | * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to | |
1508 | the resulting clip(s}. | |
1f45f627 | 1509 | (expose_overlaps): Add arg r. Change callers. Set it to |
aca7a3d2 MB |
1510 | row->clip temporarily. |
1511 | (expose_window): Redraw rows overlapping the exposed area. | |
1512 | ||
1513 | * dispextern.h (struct glyph_row): New member clip. | |
1514 | (struct glyph_string): Delete members clip_x, clip_y, clip_width, | |
1515 | clip_height, new member clip, and num_clips. | |
1516 | ||
73acf815 | 1517 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1518 | |
1519 | * data.c (Fchar_or_string_p): Fix docstring. | |
1520 | ||
73acf815 | 1521 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1522 | |
1523 | * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info, | |
1524 | create a temporal XftDraw object. | |
1525 | ||
73acf815 | 1526 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1527 | |
1528 | * font.c (Ffontp): Fix docstring. | |
1529 | ||
1530 | * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a | |
1531 | strong evidence of ISO-2022. | |
1532 | ||
73acf815 | 1533 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1534 | |
1535 | * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not | |
1536 | SYNTAX_ENTRY_FOLLOW_PARENT. | |
1537 | ||
73acf815 | 1538 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
1539 | |
1540 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change | |
1541 | its type. | |
1542 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
1543 | Update to the new type of weak_hash_tables and next_weak. | |
1544 | ||
1545 | * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to | |
1546 | a plain C pointer to Lisp_Hash_Table. | |
1547 | ||
1548 | * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP) | |
1549 | (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP) | |
1550 | (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP) | |
1551 | (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP) | |
1552 | (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP) | |
1553 | (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP) | |
1554 | (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP) | |
1555 | (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP) | |
1556 | (GC_EQ): Remove since they've been identical to their non-GC_ | |
1557 | alter-egos ever since the markbit was eradicated. | |
1558 | ||
290afd83 JB |
1559 | * alloc.c: |
1560 | * buffer.c: | |
1561 | * buffer.h: | |
1562 | * data.c: | |
1563 | * fileio.c: | |
1564 | * filelock.c: | |
1565 | * fns.c: | |
1566 | * frame.h: | |
1567 | * lisp.h: | |
1568 | * macterm.c: | |
1569 | * print.c: | |
1570 | * process.c: | |
1571 | * w32fns.c: | |
1572 | * w32menu.c: | |
1573 | * w32term.c: | |
1574 | * xfns.c: | |
1575 | * xmenu.c: | |
1576 | * xterm.c: Replace uses of GC_* macros with the non-GC_ versions. | |
aca7a3d2 | 1577 | |
73acf815 | 1578 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1579 | |
1580 | * chartab.c (map_sub_char_table): Make it work for the top-level | |
1581 | char-table. Fix handling of parent char-table. | |
1582 | (map_char_table): Adjust for the above change. | |
1583 | ||
73acf815 | 1584 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1585 | |
1586 | * w32font.c (Qgdi): Rename from Qw32. | |
1587 | ||
73acf815 | 1588 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1589 | |
1590 | * w32bdf.c (get_quoted_string): Make function static. | |
1591 | ||
73acf815 | 1592 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1593 | |
1594 | * xftfont.c (xftfont_open): If one of font's ASCII glyph has | |
1595 | bigger ascent and descent than those of the font, use them as | |
1596 | font's ascent and descent. | |
1597 | ||
73acf815 | 1598 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1599 | |
1600 | * Makefile.in (${lispsource}international/charprop.el): Move this | |
1601 | target within "#ifdef HAVE_UNIDATA" and "#endif". | |
1602 | ||
73acf815 | 1603 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1604 | |
1605 | * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el. | |
1606 | (shortlisp): Add ../lisp/language/tai-viet.el. | |
1607 | ||
1f45f627 | 1608 | 2008-02-01 Ulrich Mueller <ulm@gentoo.org> |
aca7a3d2 MB |
1609 | |
1610 | * Makefile.in (${lispsource}international/charprop.el): Depend on | |
1611 | temacs${EXEEXT}. | |
1612 | ||
73acf815 | 1613 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1614 | |
1615 | * w32font.c (w32font_close): Delete the GDI font object. | |
1616 | ||
6f69e89b | 1617 | * w32menu.c: Include character.h. |
aca7a3d2 MB |
1618 | |
1619 | * w32proc.c: Likewise. | |
1620 | ||
1621 | * w32select.c: Likewise. | |
1622 | ||
6f69e89b | 1623 | * makefile.w32-in (w32proc.o): Depend on character.h. |
aca7a3d2 | 1624 | |
73acf815 | 1625 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1626 | |
1627 | * w32fns.c (syms_of_w32fns): Use DEFSYM macro. | |
1628 | ||
1629 | * w32menu.c (syms_of_w32menu): Likewise. | |
1630 | ||
1631 | * w32proc.c (syms_of_ntproc): Likewise. | |
1632 | ||
1633 | * w32select.c (syms_of_w32select): Likewise. | |
1634 | ||
1635 | * w32term.c (syms_of_w32term): Likewise. | |
1636 | ||
73acf815 | 1637 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1638 | |
1639 | * w32font.c (w32font_draw): Delete brush after using it. | |
1640 | ||
73acf815 | 1641 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1642 | |
1643 | * w32font.c (w32font_open): Don't set font_idx. | |
1644 | (w32font_text_extents): Try GetTextExtentPoint32W before defaulting | |
1645 | to font settings. | |
1646 | (w32font_draw): Fill background explicitly. | |
1647 | ||
73acf815 | 1648 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1649 | |
1650 | * w32term.c (w32_initialize): Don't call w32font_initialize. | |
1651 | ||
1652 | * w32font.c (w32font_info): Remove subranges. | |
1653 | (QCsubranges, Qmodern, Qswiss, Qroman): Remove. | |
1654 | (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif) | |
1655 | (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian) | |
1656 | (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali) | |
1657 | (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada) | |
1658 | (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian) | |
1659 | (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham) | |
1660 | (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan) | |
1661 | (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun) | |
1662 | (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical): | |
1663 | New symbols. | |
1664 | (font_callback_data): New struct. | |
1665 | (w32font_list, w32font_match): Use it. | |
1666 | (w32font_open): Don't populate subranges. | |
1667 | (w32font_has_char): Use script Lisp symbols, not subrange bitmask. | |
1668 | (w32font_encode_char): Always return unicode code-point as-is. | |
1669 | (w32font_text_extents): Supply a tranformation matrix to | |
1f45f627 GM |
1670 | GetGlyphOutline. Never look up by glyph index. Avoid looping |
1671 | twice. Use unicode version of GetTexExtentPoint32 instead of | |
aca7a3d2 MB |
1672 | glyph index version. |
1673 | (set_fonts_frame): Remove | |
1674 | (w32_enumfont_pattern_entity): Add frame parameter, use it to | |
1f45f627 GM |
1675 | set frame parameter. Use backward compatible fake foundries. |
1676 | Save generic family in extra slot under QCfamily. Make width slot | |
1677 | constant. Save QCspacing value. Save list of scripts instead of | |
aca7a3d2 MB |
1678 | binary subranges. |
1679 | (w32_generic_family, logfonts_match, font_matches_spec): New functions. | |
1f45f627 | 1680 | (add_font_entity_to_list): Use font_callback_data struct. Filter |
aca7a3d2 MB |
1681 | unwanted fonts. |
1682 | (add_one_font_entity_to_list): Use font_callback_data struct. | |
1f45f627 GM |
1683 | (w32_registry): Default to iso10646_1. |
1684 | (fill_in_logfont): Use dpi from extra slot. Don't bother with | |
1685 | string font registries. Don't fill in font name if it is a generic | |
1686 | family name, fill family instead. Use spacing, family and script | |
aca7a3d2 MB |
1687 | extra info to fill pitch, family and charset fields. |
1688 | (list_all_matching_fonts): Use font_callback_data struct. | |
1689 | (unicode_range_for_char): Remove. | |
1690 | (font_supported_scripts): New function. | |
1691 | (w32font_initialize): Remove. | |
1692 | (syms_of_w32font): Update which symbols are defined. | |
1693 | ||
73acf815 | 1694 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1695 | |
1696 | * font.c (font_pixel_size): Reverse assq_no_quit args. | |
1697 | ||
1698 | * w32term.h (FONT_WIDTH): Report max width, not average. | |
1699 | (FONT_MAX_WIDTH): Remove. | |
1700 | (FONT_AVG_WIDTH): New macro. | |
1701 | ||
1702 | * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only | |
1703 | redefinition of FONT_WIDTH. | |
1704 | ||
1705 | * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH. | |
1706 | (w32_cache_char_metrics): Use FONT_WIDTH. | |
1707 | ||
1708 | * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH. | |
1709 | ||
73acf815 | 1710 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1711 | |
1712 | * w32font.c (w32font_open): Make lfHeight negative. | |
1713 | ||
1714 | * w32fns.c (x_default_font_parameter): Use new style font name. | |
1715 | (Fx_create_frame, x_create_tip_frame): Initialize resx and resy. | |
1716 | ||
73acf815 | 1717 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1718 | |
1719 | * w32font.c (QCsubranges): New symbol. | |
1720 | (w32font_open, w32font_has_char): Get subranges from subproperty | |
1721 | of extra. | |
1722 | (w32_enumfont_pattern_entity): Set subranges as subproperty of extra. | |
1723 | (syms_of_w32font): Define :subranges symbol. | |
1724 | ||
1725 | * font.c (font_put_extra): Expose externally. | |
1726 | ||
1f45f627 | 1727 | * font.h (font_put_extra): Move declaration from font.c. |
aca7a3d2 MB |
1728 | |
1729 | * font.c (Ffont_get): Use font driver to determine otf capability. | |
1730 | (adjust_anchor): Check if driver defines anchor_point before using. | |
1731 | ||
1732 | * w32font.c (w32font_open): Handle size, height and pixel_size better. | |
1733 | (w32font_draw): Use options. | |
1734 | (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts. | |
1735 | Fix detection of truetype fonts. | |
1736 | (registry_to_w32_charset): Handle charsets other than iso8859-1 | |
1737 | expressed as lisp symbols. | |
1738 | (w32_registry): Express charset as lisp symbol. | |
1739 | (fill_in_logfont): Reverse pixel and point height logic. | |
1f45f627 | 1740 | Don't set width here. Set quality to default. |
aca7a3d2 MB |
1741 | |
1742 | * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts. | |
1743 | (x_to_w32_font): Fill in lfPitchAndFamily correctly. | |
1744 | ||
1745 | * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: | |
1746 | Remove redundant loop and allocation. | |
1747 | ||
1748 | * makefile.w32-in (font.o, w32font.o): New objects. | |
6f69e89b | 1749 | (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h. |
aca7a3d2 MB |
1750 | (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND. |
1751 | ||
1752 | * xdisp.c (fill_composite_glyph_string): Make the first arg to | |
1753 | STORE_XCHARB a valid l-value. | |
1754 | ||
1755 | * w32term.c (w32_native_per_char_metric): Swap width and rbearing | |
1756 | calculations for non-Truetype fonts. | |
1757 | (x_draw_glyph_string): Sync with xterm.c. | |
1758 | (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove | |
1759 | redundant code. | |
1760 | (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize. | |
1761 | ||
1762 | * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member. | |
1763 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h. | |
1764 | ||
1765 | * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c. | |
1766 | (x_to_w32_charset, w32_to_x_charset): Expose externally. | |
1767 | ||
1768 | * w32font.c: New file for w32 font backend. | |
1769 | ||
73acf815 | 1770 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1771 | |
1772 | * term.c: Don't include "buffer.h" twice. | |
1773 | ||
73acf815 | 1774 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1775 | |
1776 | * character.c (Funibyte_string): New function. | |
1777 | (syms_of_character): Defsubr it. | |
1778 | ||
73acf815 | 1779 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
1780 | |
1781 | * w32term.c [USE_FONT_BACKEND]: | |
1782 | (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc): | |
1783 | (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly): | |
1784 | (x_draw_glyph_string, x_draw_glyph_string_foreground): | |
1785 | (x_draw_composite_glyph_string_foreground, x_new_fontset2): | |
1786 | (x_free_frame_resources): Sync with xterm.c. | |
1787 | ||
73acf815 | 1788 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
1789 | |
1790 | * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate | |
1791 | char-table size. | |
1792 | ||
73acf815 | 1793 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1794 | |
1795 | * font.c (check_otf_features): Define it regardless of | |
1796 | HAVE_LIBOTF. | |
1797 | ||
73acf815 | 1798 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1799 | |
1800 | * ftfont.c (ftfont_driver): Delete font_otf_gsub and | |
1801 | font_otf_gpos, add font_drive_otf. | |
1802 | ||
1803 | * fontset.c (fontset_find_font): Pay attention to font size | |
1804 | specified for a font. | |
1805 | (reorder_font_vector): Check contents of font_def. | |
1806 | ||
1807 | * font.c (struct otf_list): Delete it. | |
6f69e89b | 1808 | (otf_list): Make it a lisp variable. |
aca7a3d2 | 1809 | (otf_open): Use lispy otf_list. |
1f45f627 | 1810 | (generate_otf_features): Rename from parse_gsub_gpos_spec. |
aca7a3d2 MB |
1811 | (check_otf_features): New function. |
1812 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): New | |
1813 | functinos. | |
1814 | (font_drive_otf): New function merging font_otf_gsub and | |
1815 | font_otf_gpos. | |
1816 | (font_open_for_lface): New arg spec. Change argument order. | |
1f45f627 | 1817 | (font_load_for_face): Adjust for the change of font_open_for_lface. |
aca7a3d2 MB |
1818 | (Ffont_drive_otf): New function merging Ffont_otf_gsub and |
1819 | Ffont_otf_gpos. | |
1820 | (syms_of_font): Staticpro otf_list. Delete defsubr of | |
1821 | Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf. | |
1822 | ||
1f45f627 | 1823 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
1824 | font_open_for_lface. |
1825 | ||
1826 | * font.h (font_open_for_lface): Adjust prototype. | |
1827 | (struct font_driver): Delete members otf_gsub and otf_gpos, add | |
1828 | member otf_drive. | |
1829 | (font_otf_gsub, font_otf_gpos): Delete externs. | |
1830 | (font_drive_otf): Extern it. | |
1831 | ||
73acf815 | 1832 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1833 | |
1834 | * font.c (font_at): If the window W is not on a window system, | |
1835 | return Qnil. | |
1836 | ||
4c4475a8 GM |
1837 | * coding.c (produce_chars, encode_coding): Don't call |
1838 | insert_from_gap if no characters to produce. | |
aca7a3d2 | 1839 | |
73acf815 | 1840 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1841 | |
1842 | * fontset.c (free_realized_fontsets): Avoid unnecessary call of | |
1843 | Fclear_face_cache. | |
1844 | ||
1845 | * xfaces.c (face_for_font): Check also face->font==font->font.font. | |
1846 | ||
73acf815 | 1847 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
1848 | |
1849 | * emacs.c (main): Change default value of `enable_font_backend' to 1. | |
1850 | Parse "--disable-font-backend" option. | |
1851 | (standard_args): Add "--disable-font-backend" option. | |
1852 | ||
73acf815 | 1853 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1854 | |
1855 | * fontset.c (fontset_find_font): New function. | |
1856 | (fontset_font): Use fontset_find_font. | |
1857 | (make_fontset_for_ascii_face): Don't set face ID in rfont_def. | |
1858 | Register the specified font for all Latin characters. | |
1859 | (new_fontset_from_font): Register the specified font for all Latin | |
1860 | characters. | |
1861 | (dump_fontset): For a realized fontset, include the base fontset | |
1862 | name in the returned vector. | |
1863 | ||
73acf815 | 1864 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1865 | |
1866 | * character.h (CHAR_STRING): Cast C to unsigned on calling | |
1867 | char_string. | |
1868 | ||
1869 | * character.c (char_string): Type of arg C changed to unsigned. | |
1870 | Signal an error if C is an invalid character code. | |
1871 | ||
4c4475a8 GM |
1872 | * editfns.c (general_insert_function, Fchar_to_string): |
1873 | Use CHARACTERP, not INTEGERP. | |
aca7a3d2 | 1874 | |
73acf815 | 1875 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1876 | |
1877 | * character.h (MIN_MULTIBYTE_LEADING_CODE) | |
1878 | (MAX_MULTIBYTE_LEADING_CODE): New macros. | |
1879 | ||
1880 | * regex.c (analyse_first): Fix for multibyte characters in "case | |
1881 | charset:" and "case categoryspec:". | |
1882 | ||
73acf815 | 1883 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
1884 | |
1885 | * Makefile.in (LIBES): Move standard libraries to the end. | |
1886 | ||
73acf815 | 1887 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1888 | |
1889 | * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is | |
1890 | nonzero, don't shrink the buffer nextb. | |
1891 | ||
1892 | * buffer.h (struct buffer_text): New member inhibit_shrinking. | |
1893 | ||
1894 | * coding.c (coding_alloc_by_making_gap): New arg offset. | |
1895 | (alloc_destination): Call coding_alloc_by_making_gap with the arg | |
1896 | offset. | |
1897 | (decode_coding_iso_2022): Update coding->safe_charsets. | |
1898 | (decode_coding_gap): Temporarily set | |
1899 | current_buffer->text->inhibit_shrinking to 1. | |
1900 | ||
73acf815 | 1901 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1902 | |
1903 | * xterm.c (x_draw_composite_glyph_string_foreground): Fix | |
1904 | indexing into elements of s->cmp and s->char2b. | |
1905 | ||
73acf815 | 1906 | 2008-02-01 Juanma Barranquero <lekktu@gmail.com> |
aca7a3d2 MB |
1907 | |
1908 | * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'. | |
1909 | ||
73acf815 | 1910 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1911 | |
1912 | * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable | |
1913 | target_multibyte instead of multibyte. | |
1914 | (re_match_2_internal): Call bcmp_translate with target_multibyte. | |
1915 | (bcmp_translate): Change the argument name from multibyte to | |
1916 | target_multibyte. | |
1917 | ||
73acf815 | 1918 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1919 | |
1920 | These changes are to compile a regexp into a pattern that can be | |
1921 | used both for multibyte and unibyte targets. | |
1922 | ||
1923 | * Makefile.in (search.o): Depend on charset.h. | |
1924 | ||
1925 | * character.c (multibyte_char_to_unibyte_safe): New function. | |
1926 | ||
1927 | * search.c: Include "charset.h". | |
1928 | (compile_pattern_1): Delete argument multibyte. Don't set | |
1929 | cp->buf.target_multibyte here. Set cp->buf.charset_unibyte. | |
1930 | (compile_pattern): Don't compare cp->buf.target_multibyte. | |
1931 | Compare cp->buf.charset_unibyte. | |
1932 | (compile_pattern): Set cp->buf.target_multibyte. | |
1933 | ||
1934 | * lisp.h (multibyte_char_to_unibyte_safe): Extern it. | |
1935 | ||
1936 | * regex.h (struct re_pattern_buffer): New member charset_unibyte. | |
1937 | ||
1938 | * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg | |
1f45f627 | 1939 | multibyte. Change callers. |
aca7a3d2 | 1940 | (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. |
1f45f627 GM |
1941 | (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers |
1942 | to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively. | |
aca7a3d2 MB |
1943 | (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. |
1944 | (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table. | |
1945 | (regex_compile): Make the compiled pattern usable both for | |
1946 | multibyte and unibyte targets. | |
1947 | (analyse_first): Make the fastmap usable both for multibyte and | |
1948 | unibyte targets. | |
1f45f627 | 1949 | (TRANSLATE_VIA_MULTIBYTE): Delete. |
aca7a3d2 MB |
1950 | (re_match_2_internal): Pay attention to the case that the |
1951 | multibyteness of bufp and target may be different. | |
1952 | ||
73acf815 | 1953 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1954 | |
1955 | * xdisp.c (x_produce_glyphs): When a font is not found, make the | |
1956 | empty box occupy at least one column width. | |
1957 | ||
73acf815 | 1958 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
1959 | |
1960 | * Makefile.in: Remove redundant HAVE_XFT clause. | |
1961 | ||
73acf815 | 1962 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1963 | |
1964 | * xrdb.c (x_load_resources): Setup the default fontSet X reource. | |
1965 | ||
73acf815 | 1966 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1967 | |
1968 | * fontset.c (Finternal_char_font): Fix for the case of POSITION | |
1969 | being nil. | |
1970 | ||
73acf815 | 1971 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1972 | |
1973 | * xftfont.c (xftfont_open): Call FcConfigSubstitute. | |
1974 | ||
73acf815 | 1975 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1976 | |
1977 | * xftfont.c (xftfont_open): Don't enable antialias explicitly. | |
1978 | ||
73acf815 | 1979 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1980 | |
1981 | * search.c (simple_search): Fix previous change. | |
1982 | ||
73acf815 | 1983 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
1984 | |
1985 | * xftfont.c (ftfont_font_format): Extern declaration. | |
1986 | ||
1987 | * frame.c (x_set_font): Fix the second arg to fs_query_fontset. | |
1988 | ||
1989 | * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0. | |
1990 | (xfont_list): Don't directly use Lisp_Object as an operand of &&. | |
1991 | ||
1992 | * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0. | |
1993 | (ftfont_font_format): Fix previous change. | |
1994 | ||
1995 | * font.h (Ffont_xlfd_name): EXFUN it. | |
1996 | ||
1997 | * font.c (font_parse_xlfd): Fix the array size of `f'. | |
1998 | (register_font_driver): Use EQ to compare driver->type. | |
1999 | ||
2000 | * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function. | |
2001 | (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2. | |
2002 | (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise. | |
2003 | ||
73acf815 | 2004 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2005 | |
4c4475a8 GM |
2006 | * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family) |
2007 | (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined. | |
aca7a3d2 | 2008 | |
73acf815 | 2009 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2010 | |
2011 | * xfont.c (xfont_open): Set font->format. | |
2012 | ||
2013 | * xftfont.c (xftfont_open): Set font->format. | |
2014 | ||
2015 | * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern. | |
2016 | (ftfont_list): Include FC_FONTFORMAT in FcObject. | |
2017 | (ftfont_open): Set font->format. | |
2018 | (ftfont_font_format): New function. | |
2019 | ||
2020 | * font.h (struct font): New memeber format. | |
2021 | ||
2022 | * font.c (Qopentype): New variable. | |
2023 | (syms_of_font): Defsym it. | |
2024 | (Fquery_font): Change the format of the last element of the return | |
2025 | value. | |
2026 | ||
73acf815 | 2027 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2028 | |
2029 | * xfns.c (xic_create_xfontset): Try the default fontset name as a | |
2030 | last resort. | |
2031 | ||
73acf815 | 2032 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2033 | |
2034 | * coding.c (detect_coding_charset): Fix detection of multi-byte | |
2035 | charset. | |
2036 | ||
73acf815 | 2037 | 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change) |
aca7a3d2 MB |
2038 | |
2039 | * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0. | |
2040 | ||
73acf815 | 2041 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2042 | |
2043 | * xdisp.c (get_next_display_element): Set it->face_id for the | |
2044 | first component of a composition. | |
1f45f627 | 2045 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 2046 | |
73acf815 | 2047 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2048 | |
2049 | (get_next_display_element): Set it->face_id for the | |
2050 | first component of a composition. | |
1f45f627 | 2051 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 2052 | |
73acf815 | 2053 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2054 | |
2055 | * fontset.c (Qlatin): New variable. | |
2056 | (syms_of_fontset): Define it as a lisp symbol. | |
1f45f627 | 2057 | (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII. |
aca7a3d2 | 2058 | |
73acf815 | 2059 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2060 | |
2061 | * font.c (font_unparse_fcname): Pay attention to the case that | |
2062 | some of font property is a null string. | |
2063 | ||
73acf815 | 2064 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2065 | |
2066 | * term.c: Include "composite.h". | |
2067 | (encode_terminal_code): Output all components of composition. | |
2068 | Check the size of encode_terminal_src. | |
424c157f | 2069 | (produce_glyphs): For composition, call produce_composite_glyph. |
aca7a3d2 MB |
2070 | (append_composite_glyph, produce_composite_glyph): New functions. |
2071 | ||
2072 | * xdisp.c (x_produce_glyphs): In handling composition, if a font | |
2073 | is not found, get font_info from the current ascii face. | |
2074 | ||
73acf815 | 2075 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2076 | |
2077 | * fileio.c (Finsert_file_contents): On replacing, temporarily bind | |
2078 | buffer-file-name to Qnil before calling insert_from_buffer. | |
2079 | ||
2080 | * font.c (font_unparse_fcname): Pay attention to the case that | |
2081 | foundry is a null string. | |
2082 | ||
73acf815 | 2083 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2084 | |
2085 | * ftfont.c (ftfont_list): Allow registry "unicode-sip". | |
2086 | ||
2087 | * font.c (Qunicode_sip): New variable. | |
2088 | (syms_of_font): Declare it as a Lisp symbol. | |
2089 | ||
2090 | * font.h (Qunicode_sip): Extern it. | |
2091 | ||
73acf815 | 2092 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2093 | |
1f45f627 | 2094 | * composite.c (get_composition_id): Pay attention to TAB component. |
aca7a3d2 MB |
2095 | |
2096 | * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw | |
1f45f627 | 2097 | TAB. Adjust for the change of s->char2b which always points to |
aca7a3d2 MB |
2098 | the first elememnt of allocated memory. |
2099 | ||
1f45f627 | 2100 | * xftfont.c (xftfont_text_extents): Fix calculation of descent value. |
aca7a3d2 MB |
2101 | |
2102 | * xdisp.c (handle_composition_prop): Set it->c to the first | |
2103 | non-TAB component. | |
1f45f627 GM |
2104 | (fill_composite_glyph_string): Change argument. |
2105 | (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change. | |
aca7a3d2 MB |
2106 | (x_produce_glyphs): Fix handling of left/right padding. |
2107 | ||
73acf815 | 2108 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2109 | |
2110 | * coding.c (detect_coding_system): Fix for handling off | |
2111 | inhibit_iso_escape_detection. Fix for the case that no coding | |
2112 | system is defined for a specific coding category. | |
2113 | ||
73acf815 | 2114 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2115 | |
1f45f627 | 2116 | * font.c (font_matching_entity): Delete unused local var. |
aca7a3d2 MB |
2117 | |
2118 | * xftfont.c (xftfont_open): Call XftDefaultSubstitute before | |
2119 | opening a font. | |
2120 | ||
2121 | * fileio.c (Finsert_file_contents): On recovering a file, assume | |
2122 | Unix-like eol. | |
2123 | (choose_write_coding_system): On auto-saving a file, force | |
2124 | Unix-like eol. | |
2125 | ||
2126 | * coding.c (setup_coding_system): Fix setting of | |
2127 | coding->common_flags based on eol_type. | |
2128 | (coding_inherit_eol_type): If PARENT is not nil, be sure to | |
2129 | inherit from it. | |
2130 | ||
73acf815 | 2131 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2132 | |
1f45f627 | 2133 | * alloc.c (NSTATICS): Increas to 0x600. |
aca7a3d2 | 2134 | |
73acf815 | 2135 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2136 | |
1f45f627 | 2137 | * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match. |
aca7a3d2 MB |
2138 | (ftfont_list): Don't check :name property. |
2139 | (ftfont_match): New function. | |
2140 | (ftfont_pattern_entity): If the pattern doesn't contain | |
2141 | FC_SPACING, don't assuce FC_MONO. | |
2142 | ||
2143 | * font.h (struct font_driver): New member `match'. | |
1f45f627 | 2144 | (font_update_drivers): Adjust prototype. |
aca7a3d2 | 2145 | |
4c4475a8 GM |
2146 | * font.c (font_parse_fcname, font_parse_name): Don't change :name |
2147 | property of FONT. | |
aca7a3d2 MB |
2148 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define |
2149 | them unconditionally. | |
2150 | (font_matching_entity): New function. | |
2151 | (font_open_by_name): Try font_matching_entity if exact match is | |
2152 | not found. | |
2153 | (font_update_drivers): Delete the arg FONT. Return a list of | |
2154 | actually used backends. Don't free faces, font caches here. | |
2155 | Don't store data in frame parameters. Don't call x_set_font. | |
2156 | (Ffont_spec): Store :name property as is. | |
2157 | (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability. | |
1f45f627 GM |
2158 | (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub. |
2159 | (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos. | |
aca7a3d2 MB |
2160 | (Ffont_otf_alternates): Check if the driver has otf_gsub function. |
2161 | Call font->driver->otf_gsub instead of font_otf_gsub. | |
2162 | ||
2163 | * frame.c (x_set_font_backend): Do more works that were done in | |
2164 | font_update_drivers before. | |
2165 | ||
2166 | * xfont.c (xfont_match): New function. | |
2167 | (xfont_driver): Set xfont_driver.match to xfont_match. | |
2168 | (xfont_draw): Set font in GC if necessary. | |
2169 | ||
2170 | * ftxfont.c (ftxfont_match): New function. | |
2171 | (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match. | |
2172 | ||
2173 | * xftfont.c (xftfont_match): New function. | |
2174 | (syms_of_xftfont): Set xftfont_driver.match to xftfont_match. | |
2175 | ||
73acf815 | 2176 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2177 | |
2178 | * font.h (struct font): New member scalable. | |
2179 | (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub. | |
1f45f627 | 2180 | (font_otf_gsub): Adjust prototype. |
aca7a3d2 | 2181 | |
1f45f627 GM |
2182 | * font.c (font_otf_capability): Fix handling of the default langsys. |
2183 | (parse_gsub_gpos_spec): Change type to void. New arg nbytes. | |
aca7a3d2 MB |
2184 | Check the contents of SPEC. |
2185 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros. | |
2186 | (check_gstring): New function. | |
2187 | (REPLACEMENT_CHARACTER): New macro. | |
2188 | (font_otf_gsub): New arg alternate_subst. Be sure to set all | |
2189 | glyph codes of GSTRING. | |
2190 | (font_otf_gpos): Be sure to set all glyph codes of GSTRING. | |
2191 | (font_prepare_composition): Set cmp->glyph_len. | |
2192 | (font_open_entity): Set font->scalable. | |
2193 | (Ffont_get): Handle :otf property. | |
2194 | (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New | |
2195 | functions. | |
2196 | (Fquery_font): Use font->font.full_name. | |
2197 | (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and | |
2198 | Sfont_otf_alternates. | |
2199 | ||
2200 | * ftfont.c (ftfont_open): Set font->font.full_name and | |
2201 | font->font.name properly. Fix calculation of font->font.height | |
2202 | and font->min_width. | |
2203 | ||
2204 | * ftxfont.c (ftxfont_create_gcs): New function. | |
2205 | (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap. | |
2206 | (ftxfont_draw_backgrond): Fix filling region. | |
2207 | (ftxfont_default_fid): New function. | |
2208 | (ftxfont_open): Set xfotn->fid to the return value of | |
2209 | ftxfont_default_fid. | |
2210 | (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs. | |
2211 | (ftxfont_done_face): Free only GCs that are created by | |
2212 | ftxfont_create_gcs. | |
2213 | (ftxfont_draw): If face->gc != s->gc, create proper GCs. | |
2214 | ||
2215 | * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]: | |
2216 | Clip to src->width, etc (not src->clip_XXX). | |
2217 | ||
2218 | * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle | |
2219 | FontBackend frame parameter. | |
2220 | ||
73acf815 | 2221 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2222 | |
2223 | * font.h (struct font_driver_list): New member `on'. | |
2224 | (Fclear_font_cache): EXFUN it. | |
2225 | (font_update_drivers): Extern it. | |
2226 | ||
2227 | * font.c (font_unparse_fcname): Fix typo (swidth->width). | |
2228 | (font_list_entities): Check driver_list->on. | |
2229 | (register_font_driver): Initalize `on' member to 0. | |
2230 | (font_update_drivers): New function. | |
2231 | (Fclear_font_cache): Check driver_list->on. | |
2232 | ||
2233 | * frame.h (Qfont_backend): Extern it. | |
2234 | (x_set_font_backend): Extern it. | |
2235 | ||
2236 | * frame.c (Qfont_backend): New variable. | |
2237 | (frame_parms): New element for font-backend. | |
2238 | (x_set_font_backend): New function. | |
2239 | ||
2240 | * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle | |
2241 | FontBackend frame parameter. | |
2242 | (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element | |
2243 | x_set_font_backend. | |
2244 | ||
2245 | * xfont.c (xfont_list): Don't try listing by :name property if the | |
2246 | name is not for XLFD. | |
2247 | ||
73acf815 | 2248 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2249 | |
2250 | * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM) | |
2251 | (LGLYPH_SET_TO): New macros. | |
2252 | (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment | |
2253 | element of G is vector or not. | |
2254 | (font_at): Extern it. | |
2255 | ||
2256 | * font.c: Include window.h. | |
2257 | (font_lispy_object): New function. | |
2258 | (font_prepare_composition): Check LGLYPH_FORM (g) to detect the | |
2259 | end of valid glyph. | |
2260 | (font_close_object): Fix getting (struct font *). | |
2261 | (font_at): New function. | |
2262 | (Ffont_get): If FONT is a font-object, get entity from it. | |
2263 | (Ffont_make_gstring): Initialize elements of glyphs with nil. | |
2264 | (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix | |
2265 | range check. | |
2266 | (Ffont_at): New function. | |
2267 | (syms_of_font): Defsubr Sfont_at. | |
2268 | ||
2269 | * xdisp.c (it_props): Move the entry for Qauto_composed to just | |
424c157f | 2270 | before the entry for Qcomposition. |
1f45f627 | 2271 | (handle_auto_composed_prop): Call auto-composition-function with 4 args. |
aca7a3d2 MB |
2272 | (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from |
2273 | the font in gstring. | |
2274 | (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check | |
2275 | LGLYPH_FORM (g) to detect the end of valid glyph. | |
2276 | (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if | |
2277 | we are composing with gstring. | |
2278 | ||
2279 | * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]: | |
2280 | Check if adjustment is vector or not. | |
2281 | ||
2282 | * Makefile.in (font.o): Make it depends on window.h. | |
2283 | ||
73acf815 | 2284 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2285 | |
2286 | * xterm.c (x_draw_composite_glyph_string_foreground): Check if | |
2287 | adjustment is vector or not. | |
2288 | ||
73acf815 | 2289 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
2290 | |
2291 | * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE. | |
2292 | ||
73acf815 | 2293 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2294 | |
2295 | * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) | |
2296 | (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. | |
2297 | (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. | |
2298 | ||
1f45f627 | 2299 | * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card. |
aca7a3d2 | 2300 | (DEVICE_DELTA): Fix typo. |
4c4475a8 GM |
2301 | (font_otf_gpos, font_prepare_compositio): Adjust for the change of |
2302 | LGLYPH format. | |
aca7a3d2 | 2303 | |
1f45f627 | 2304 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
2305 | the change of LGLYPH format. |
2306 | ||
73acf815 | 2307 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2308 | |
2309 | * ftfont.c (ftfont_list): Fix typo. | |
1f45f627 | 2310 | (ftfont_build_basic_charsets): Don't include letters with diacritics. |
aca7a3d2 | 2311 | |
73acf815 | 2312 | 2008-02-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
2313 | |
2314 | * xfaces.c (realize_non_ascii_face): Set face->extra to NULL. | |
2315 | ||
2316 | * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if | |
2317 | xftface_info is non-NULL. | |
2318 | ||
73acf815 | 2319 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2320 | |
2321 | * ftfont.c (ftfont_list): Fix typo. | |
1f45f627 | 2322 | (ftfont_build_basic_charsets): Don't include letters with diactrics. |
aca7a3d2 | 2323 | |
73acf815 | 2324 | 2008-02-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
aca7a3d2 | 2325 | |
1f45f627 | 2326 | * ftfont.c (ftfont_list): Move misplaced #endif. |
aca7a3d2 | 2327 | |
73acf815 | 2328 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2329 | |
2330 | * ftfont.c (ftfont_list): Pay attention to the case that | |
2331 | FC_CAPABILITY is not defined. | |
2332 | ||
73acf815 | 2333 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2334 | |
2335 | * xftfont.c (xftfont_open): Set charset related members to -1. | |
2336 | ||
1f45f627 GM |
2337 | * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of |
2338 | QCname. | |
aca7a3d2 MB |
2339 | (ftfont_open): Set charset related members to -1. |
2340 | ||
2341 | * fontset.c (Votf_script_alist): New variable. | |
2342 | (syms_of_fontset): Initialize it. | |
2343 | (fontset_font): Delete unused variable. | |
2344 | ||
2345 | * fontset.h (Votf_script_alist): Extern it. | |
2346 | ||
1f45f627 | 2347 | * font.c (font_find_for_lface): Optimize code. |
aca7a3d2 MB |
2348 | |
2349 | * font.h (font_close_object, font_merge_old_spec): Extern them. | |
2350 | ||
73acf815 | 2351 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2352 | |
2353 | * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables. | |
2354 | (syms_of_font): Initialize them. | |
2355 | (font_pixel_size): Allow float value in dpi. | |
1f45f627 GM |
2356 | (font_prop_validate_type): Delete. |
2357 | (font_prop_validate_symbol, font_prop_validate_style): Change argument. | |
2358 | Change caller. | |
2359 | (font_prop_validate_non_neg): Rename from font_prop_validate_size. | |
2360 | (font_prop_validate_extra): Delete. | |
aca7a3d2 MB |
2361 | (font_prop_validate_spacing): New function. |
2362 | (font_property_table): Add elements for all known properties. | |
1f45f627 GM |
2363 | (get_font_prop_index): Rename from check_font_prop_name. New |
2364 | argument FROM. Change caller. | |
aca7a3d2 | 2365 | (font_prop_validate): Validate all known properties. |
1f45f627 | 2366 | (font_put_extra): Delete argument force. Change caller. |
aca7a3d2 MB |
2367 | (font_expand_wildcards): Make it static. Fix the way of shrinking |
2368 | the possible range. | |
1f45f627 | 2369 | (font_parse_xlfd): Delete argument merge. Fix handling of RESX, |
aca7a3d2 | 2370 | RESY, SPACING, and AVGWIDTH. Don't validate property values here. |
1f45f627 | 2371 | Change caller. |
aca7a3d2 | 2372 | (font_unparse_xlfd): Handle dpi, spacing, and scalable properties. |
1f45f627 GM |
2373 | (font_parse_fcname): Delete argument merge. Fix parsing of point |
2374 | size. Don't validate properties values here. Change caller. | |
2375 | (font_unparse_fcname): Handle dpi, spacing, and scalable properties. | |
aca7a3d2 MB |
2376 | (font_open_by_name): Delete unused variable. |
2377 | (Ffont_spec): Likewise. Validate property values. | |
2378 | (Ffont_match_p): New function. | |
2379 | ||
2380 | * font.h (QCscalable): Extern it. | |
1f45f627 | 2381 | (font_parse_xlfd, font_parse_fcname): Adjust prototype. |
aca7a3d2 | 2382 | |
1f45f627 | 2383 | * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable. |
aca7a3d2 | 2384 | |
1f45f627 | 2385 | * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd. |
aca7a3d2 MB |
2386 | (xfont_list_pattern): New function. |
2387 | (xfont_list): Use xfont_list_pattern. | |
2388 | ||
73acf815 | 2389 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2390 | |
2391 | * font.h (Flist_fonts): EXFUN it. | |
2392 | ||
73acf815 | 2393 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
2394 | |
2395 | * w32term.c (w32_initialize): Add back smoothing_type and | |
2396 | smoothing_enabled definitions. | |
2397 | ||
73acf815 | 2398 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2399 | |
2400 | * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check | |
2401 | s->face->font on determining underline position. | |
2402 | ||
73acf815 | 2403 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2404 | |
2405 | * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field. | |
2406 | (font_has_char): Accept font-object too. | |
2407 | (font_find_for_lface): Try at first with a size specified in face. | |
2408 | ||
73acf815 | 2409 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2410 | |
2411 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to | |
2412 | font_open_by_name. | |
2413 | ||
73acf815 | 2414 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2415 | |
2416 | * font.h (QCspacing, QCdpi): Extern them. | |
2417 | (enum font_spacing): New enum. | |
2418 | (FONT_PIXEL_SIZE_QUANTUM): New macro. | |
2419 | ||
2420 | * font.c (POINT_TO_PIXEL): Don't divice POINT by 10. | |
2421 | (QCspacing, QCdpi): New variables. | |
2422 | (syms_of_font): Initialize them. | |
2423 | (font_pixel_size): New function. | |
2424 | (font_put_extra): New function. | |
2425 | (font_parse_xlfd): Fix handling of font size. Add QCdpi property | |
2426 | in FONT_EXTRA. | |
2427 | (font_parse_fcname): Handle enumenrated values (e.g. bold). Fix | |
2428 | handling font size. Add QCname property that contains only | |
2429 | unknown properties. | |
1f45f627 | 2430 | (font_score): Change argument. Change caller. Pay attention to |
aca7a3d2 | 2431 | FONT_PIXEL_SIZE_QUANTUM. |
4c4475a8 GM |
2432 | (font_sort_entites, font_list_entities, font_find_for_lface) |
2433 | (font_open_for_lface, font_open_by_name): Fix handling of font size. | |
1f45f627 | 2434 | (Ffont_spec): Add QCname property that contains only unknown properties. |
aca7a3d2 MB |
2435 | |
2436 | * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't | |
2437 | include weight in listing pattern, instead check weight of each | |
2438 | listed font. Don't include scalable in pattern. Pay attention to | |
2439 | FONT_PIXEL_SIZE_QUANTUM. | |
2440 | ||
73acf815 | 2441 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2442 | |
aca7a3d2 | 2443 | * font.c (font_parse_fcname): Fix parsing of point-size. |
1f45f627 | 2444 | (font_unparse_fcname): Produce symbolic names for style properties. |
aca7a3d2 MB |
2445 | (font_list_entities): Handle float size correctly. |
2446 | (font_open_by_name): Prefer `normal' property values if the name | |
2447 | doesn't specify them. | |
2448 | ||
2449 | * fontset.c (Finternal_char_font): Use font_get_name, not | |
2450 | Ffont_xlfd_name. | |
2451 | ||
2452 | * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for | |
2453 | FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing | |
2454 | pattern. Don't force scalable. | |
2455 | ||
2456 | * xftfont.c (xftfont_open): For generating a name, start from | |
2457 | 96-byte buffer. | |
2458 | ||
73acf815 | 2459 | 2008-02-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
2460 | |
2461 | * frame.h (x_new_fontset2): Fix prototype. | |
2462 | ||
73acf815 | 2463 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2464 | |
1f45f627 | 2465 | * font.h (struct font_driver): Delete member parse_name. |
aca7a3d2 MB |
2466 | (font_match_p, font_get_spec, font_parse_fcname) |
2467 | (font_unparse_fcname): Extern them. | |
1f45f627 | 2468 | (font_get_name): Adjust prototype. |
aca7a3d2 MB |
2469 | |
2470 | * font.c (XLFD_SMALLNUM_MASK): Delete this macro. | |
2471 | (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it. | |
2472 | (font_expand_wildcards): Fix handling ENCODING field. Avoid | |
2473 | unnecessary checks for weight, slant, and swidth. | |
2474 | (font_parse_fcname): New function. | |
2475 | (font_unparse_fcname): New function. | |
2476 | (font_parse_name): New function. | |
2477 | (font_match_p): New function. | |
1f45f627 | 2478 | (font_get_name): Change return value to Lisp string. |
aca7a3d2 MB |
2479 | (font_get_spec): New function. |
2480 | (Qunspecified, Qignore_defface): Don't extern them. | |
2481 | (font_find_for_lface): Assume that LFACE is fully specified. | |
2482 | (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font | |
2483 | object, use it for FACE. | |
2484 | (font_open_by_name): Call Ffont_spec with QCname prop. Don't call | |
2485 | driver->parse_name. | |
2486 | (Ffont_spec): Call font_parse_name, not font_parse_xlfd. | |
2487 | ||
1f45f627 GM |
2488 | * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust |
2489 | prototype. | |
aca7a3d2 | 2490 | |
1f45f627 GM |
2491 | * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete |
2492 | argument F. Don't call Fnew_fontset. Instead, directly call | |
aca7a3d2 MB |
2493 | make_fontset. |
2494 | ||
1f45f627 | 2495 | * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype. |
aca7a3d2 | 2496 | |
1f45f627 | 2497 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change |
aca7a3d2 MB |
2498 | of x_new_fontset2. |
2499 | ||
2500 | * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans) | |
2501 | (Qsans__serif): New variables. | |
2502 | (ftfont_generic_family_list): New variable. | |
2503 | (syms_of_ftfont): Initialize the above variables. | |
1f45f627 | 2504 | (ftfont_pattern_entity): Delete argument NAME. |
aca7a3d2 MB |
2505 | (ftfont_list_generic_family): New function. |
2506 | (ftfont_parse_name): Delete this function. | |
1f45f627 | 2507 | (ftfont_list): Try generic family only when FcFontList found no font. |
aca7a3d2 MB |
2508 | (ftfont_list_family): Fix args to FcObjectSetBuild. |
2509 | ||
2510 | * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font | |
2511 | object in attrs[LFACE_FONT_INDEX]. | |
2512 | (set_lface_from_font_name): Cancel all changes for font-backend. | |
2513 | (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New | |
2514 | function. | |
2515 | (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a | |
2516 | font object in QCfont attribute. | |
2517 | (set_font_frame_param) [USE_FONT_BACKEND]: Likewise. | |
2518 | (realize_default_face) [USE_FONT_BACKEND]: Call | |
2519 | set_lface_from_font_and_fontset. | |
2520 | ||
2521 | * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also | |
2522 | "fixed", and signal error here if no suitable font was found. | |
2523 | ||
2524 | * xfont.c (xfont_parse_name): Delete this function. | |
2525 | ||
2526 | * xftfont.c (xftfont_open): Change coding style of error | |
2527 | handling. Generate fontconfig's fontname pattern. | |
2528 | ||
2529 | * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp. | |
2530 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro. | |
2531 | ||
2532 | * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments. | |
2533 | Both args FONTSET and FONT_OBJECT must be existing ones. | |
2534 | ||
73acf815 | 2535 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
2536 | |
2537 | * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR. | |
2538 | ||
73acf815 | 2539 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2540 | |
2541 | * xfont.c (xfont_open, xfont_encode_char): Fix typo. | |
2542 | ||
2543 | * font.h (struct font): Fix typo. | |
2544 | ||
2545 | * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to | |
2546 | XLFD_XXX_INDEX. | |
2547 | (enum xlfd_field_mask): New enum. | |
1f45f627 | 2548 | (intern_font_field): Changed argument. Change caller. If digits |
aca7a3d2 MB |
2549 | are followed by non-digits, return a symbol. |
2550 | (font_expand_wildcards): New function. | |
2551 | (font_parse_xlfd): Fix wildcard handling. | |
2552 | (Ffont_spec): If :name is specified, reflect the info in the other | |
2553 | properties. | |
2554 | ||
2555 | * ftfont.c (ftfont_pattern_entity): Fix typo. | |
2556 | (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of | |
2557 | locale. | |
2558 | ||
73acf815 | 2559 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2560 | |
2561 | * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them. | |
2562 | ||
1f45f627 | 2563 | * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c. |
aca7a3d2 MB |
2564 | (font_unparse_xlfd): Fix argument type declaration. Append "*" if |
2565 | registry doesn't specify encoding part. | |
2566 | (font_find_for_lface): Pay attention to LFACE_FONT_INDEX. | |
2567 | (font_open_by_name): At first try parsing the name. | |
2568 | (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp | |
2569 | as Lisp symbols. | |
2570 | ||
2571 | * fontset.c (reorder_font_vector): Pay attention to the case that | |
2572 | the 3rd element of font_def is nil. | |
2573 | (fontset_font): For the default fontset, append one more fontset | |
2574 | elements for a script-based font specification. Don't add script | |
2575 | attribute on finding a font. | |
2576 | (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the | |
2577 | font name. | |
2578 | (fontset_ascii_font): If a font can't be opened, return nil. | |
2579 | ||
1f45f627 | 2580 | * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c. |
aca7a3d2 MB |
2581 | (ftfont_pattern_entity): New function. |
2582 | (ftfont_get_cache): Assume that freetype_font_cache is already | |
2583 | initialized. | |
2584 | (ftfont_list): Handle the case that a file is specified in font | |
2585 | name. Use ftfont_pattern_entity to generate entities. | |
2586 | (ftfont_has_char): Check if the pattern contains FC_CHARSET. | |
2587 | (syms_of_ftfont): Initialize freetype_font_cache. | |
2588 | ||
2589 | * xftfont.c (xftfont_open): Make the font name fontconfig's | |
2590 | style. Add BLOCK_INPUT and UNBLOCK_INPUT. | |
2591 | (xftfont_close): Free font->font.name if not NULL. | |
2592 | ||
2593 | * xfont.c (xfont_list): If script is specified for a font, return | |
2594 | null_vector. | |
2595 | (xfont_list_family): Declare argument type. | |
2596 | ||
2597 | * xfaces.c (set_lface_from_font_name): If a font doesn't have a | |
2598 | name, set LFACE_FONT (lface) to nil. | |
2599 | ||
2600 | * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded, | |
2601 | return Qnil. | |
2602 | ||
73acf815 | 2603 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2604 | |
1f45f627 | 2605 | * emacs.c (main): Check -enable-font-backend arg after the check of -nl. |
aca7a3d2 MB |
2606 | (standard_args): Add "-enable-font-backend". |
2607 | ||
73acf815 | 2608 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2609 | |
2610 | * xftfont.c (xftfont_default_fid): Set fid_known to 1. | |
2611 | (struct xftdraw_list, xftdraw_list): Delete them. | |
2612 | (register_xftdraw, check_xftdraw): Delete them. | |
2613 | (xftfont_prepare_face): Don't call register_xftdraw. | |
2614 | (xftfont_done_face): Don't call check_xftdraw. | |
2615 | (xftfont_draw): Get backroudn color only when with_background is | |
2616 | nonzero. | |
2617 | ||
2618 | * xfont.c (xfont_encode_char): Fix calculation of char2b. | |
2619 | ||
73acf815 | 2620 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2621 | |
2622 | These changes are for the new font handling codes. | |
2623 | ||
2624 | * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@, | |
2625 | @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. | |
2626 | (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@. | |
2627 | (FONTSRC, FONTOBJ): New variables. | |
2628 | (obj): Add $(FONTOBJ). | |
2629 | (SOME_MACHINE_OBJECTS): Lib_X11_Lib. | |
2630 | (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and | |
2631 | @LIBOTF_LIBS@. | |
2632 | (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets. | |
1f45f627 | 2633 | (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC). |
aca7a3d2 | 2634 | |
1f45f627 | 2635 | * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files. |
aca7a3d2 MB |
2636 | |
2637 | * character.h (Vscript_representative_chars): Extern it. | |
2638 | ||
2639 | * character.c (Vscript_representative_chars): New variable. | |
2640 | (syms_of_character): Declare it as a Lisp variable. | |
2641 | ||
2642 | * composite.c (get_composition_id) [USE_FONT_BACKEND]: If | |
2643 | enable_font_backend is nonzero, accept the composition method | |
2644 | COMPOSITION_WITH_GLYPH_STRING. | |
2645 | ||
2646 | * composite.h (enum composition_method) [USE_FONT_BACKEND]: New | |
2647 | enumeration COMPOSITION_WITH_GLYPH_STRING. | |
2648 | ||
aca7a3d2 MB |
2649 | * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New |
2650 | members clip_x, clip_y, clip_width, and clip_height. | |
2651 | (struct face) [USE_FONT_BACKEND]: New members font_info and extra. | |
2652 | ||
2653 | * emacs.c (main) [USE_FONT_BACKEND]: Handle arg | |
2654 | --enable-font-backend. Call syms_of_font. | |
2655 | ||
2656 | * fns.c (assoc_no_quit): New function. | |
2657 | ||
2658 | * fontset.h (FONT_INFO_FROM_FACE): New macro. | |
2659 | (face_for_font, new_fontset_from_font) | |
2660 | (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them. | |
2661 | ||
2662 | * fontset.c [USE_FONT_BACKEND]: Include "font.h". | |
2663 | (fontset_font, fontset_ascii, face_for_char) | |
2664 | (make_fontset_for_ascii_face, Ffont_info) | |
2665 | (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend | |
2666 | is nonzero, use font-backend mechanism. | |
2667 | (find_font_encoding): Make it non-static. | |
2668 | (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]: | |
2669 | New functions. | |
2670 | ||
2671 | * frame.h (struct frame): New members resx and resy. | |
2672 | (struct frame) [USE_FONT_BACKEND]: New member font_driver_list. | |
2673 | (x_new_fontset2) [USE_FONT_BACKEND]: Extern it. | |
2674 | ||
2675 | * frame.c [USE_FONT_BACKEND]: Include "font.h". | |
1f45f627 | 2676 | (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism. |
aca7a3d2 MB |
2677 | |
2678 | * lisp.h (assoc_no_quit): Extern it. | |
2679 | ||
2680 | * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h". | |
2681 | Through out the file, use FONT_INFO_FROM_FACE instead of | |
2682 | FONT_INFO_FROM_ID, use get_per_char_metric instead of | |
2683 | rif->per_char_metric. | |
2684 | (handle_composition_prop) [USE_FONT_BACKEND]: If the composition | |
2685 | method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '. | |
2686 | (get_glyph_face_and_encoding, fill_composite_glyph_string) | |
2687 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
2688 | (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is | |
2689 | nonzero, use font-backend mechanism. | |
2690 | (get_per_char_metric): New function. | |
2691 | ||
2692 | * xfaces.c [USE_FONT_BACKEND]: Include "font.h". | |
2693 | (set_lface_from_font_name) | |
2694 | (set_font_frame_param, free_realized_face) | |
2695 | (prepare_face_for_display, clear_face_gcs) | |
2696 | (Finternal_set_font_selection_order, realize_x_face) | |
2697 | [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use | |
2698 | font-backend mechanism. | |
1f45f627 | 2699 | (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table. |
aca7a3d2 MB |
2700 | (load_face_font) [USE_FONT_BACKEND]: Abort. |
2701 | (face_symbolic_value, face_symbolic_weight, face_symbolic_slant) | |
1f45f627 | 2702 | (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions. |
aca7a3d2 MB |
2703 | |
2704 | * xfns.c [USE_FONT_BACKEND]: Include "font.h". | |
2705 | (x_default_font_parameter) [USE_FONT_BACKEND]: New function. | |
2706 | (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is | |
2707 | nonzero, register all available font drivers. Call | |
2708 | x_default_font_parameter for deciding a font. | |
2709 | (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise. | |
2710 | ||
2711 | * xterm.c [USE_FONT_BACKEND]: Include "font.h". | |
2712 | (x_set_mouse_face_gc, x_set_glyph_string_clipping) | |
2713 | (x_set_glyph_string_clipping_exactly) | |
2714 | (x_compute_glyph_string_overhangs) | |
2715 | (x_draw_glyph_string_foreground) | |
2716 | (x_draw_composite_glyph_string_foreground, x_draw_glyph_string) | |
2717 | (x_free_frame_resources) [USE_FONT_BACKEND]: If | |
2718 | enable_font_backend is nonzero, use font-backend mechanism. | |
2719 | (x_new_fontset2) [USE_FONT_BACKEND]: New function. | |
2720 | ||
73acf815 | 2721 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2722 | |
fcb314b2 | 2723 | * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from |
aca7a3d2 MB |
2724 | system_eol_type. |
2725 | (syms_of_coding): Initialize system_eol_type. | |
2726 | ||
fcb314b2 GM |
2727 | * process.c (Fset_process_coding_system): Inherit system's eol |
2728 | format if necessary. | |
aca7a3d2 | 2729 | |
73acf815 | 2730 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
2731 | |
2732 | * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch. | |
2733 | ||
73acf815 | 2734 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2735 | |
2736 | * coding.c (decode_eol): Pay attention to buffer relocation in | |
2737 | del_range_2. | |
2738 | (decode_coding): Call decode_eol before restoring undo_list. | |
2739 | ||
73acf815 | 2740 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2741 | |
2742 | * charset.c (Fdefine_charset_internal): Fix setting of | |
2743 | emacs_mule_bytes. | |
2744 | ||
73acf815 | 2745 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2746 | |
2747 | * keyboard.c (read_char): Check if C is a character or not before | |
2748 | looking up Vkeyboard_translate_table. | |
2749 | ||
73acf815 | 2750 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2751 | |
2752 | * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix | |
2753 | condition to terminate the loop. | |
2754 | ||
73acf815 | 2755 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2756 | |
2757 | * coding.c (produce_composition): Compare charbuf[i] instead of | |
2758 | args[i] against 0. | |
2759 | (Fterminal_coding_system): Use EQ to compare Lisp objects. | |
2760 | ||
73acf815 | 2761 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2762 | |
2763 | * coding.c (DECODE_COMPOSITION_START): If the source is short, set | |
2764 | coding->result to CODING_RESULT_INSUFFICIENT_SRC. | |
2765 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of | |
2766 | detect_coding. | |
2767 | (emacs_mule_char): Handle old style (Emacs 20) component character | |
2768 | of a composition. | |
4c4475a8 GM |
2769 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20) |
2770 | (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a | |
2771 | composition rule. | |
aca7a3d2 MB |
2772 | (decode_coding_emacs_mule): Handle invalid bytes correctly. |
2773 | ||
73acf815 | 2774 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2775 | |
2776 | * coding.c (encode_coding_ccl): Allocate destination dynamically | |
2777 | when necessary. | |
2778 | ||
73acf815 | 2779 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2780 | |
2781 | * ccl.c (Fccl_execute_on_string): Fix the condition of terminating | |
2782 | the loop. When quitted, show a proper error message. | |
2783 | ||
73acf815 | 2784 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2785 | |
aca7a3d2 MB |
2786 | * xterm.c (x_set_glyph_string_clipping_exactly): Set |
2787 | src->clip_head and src->clip_tail temporarily instead of src->hl. | |
2788 | ||
2789 | * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte | |
2790 | character sequence. | |
2791 | (Fccl_execute_on_string): Use ASET, not XSET. | |
2792 | ||
73acf815 | 2793 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2794 | |
1f45f627 | 2795 | * search.c (search_buffer): Fix handling of "\\" in a trivial regexp. |
aca7a3d2 | 2796 | |
73acf815 | 2797 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2798 | |
2799 | * coding.c (decode_coding): Fix the condition of terminating the | |
2800 | decoding loop. | |
2801 | ||
73acf815 | 2802 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2803 | |
2804 | * data.c (Faset): On setting a character bigger than 255 in a | |
1f45f627 | 2805 | unibyte string, signal an error instead of make the string multibyte. |
aca7a3d2 | 2806 | |
73acf815 | 2807 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2808 | |
2809 | * charset.c (map_charset_chars): Fix for ascii-compatible charset | |
2810 | made by a mapping table. | |
2811 | ||
73acf815 | 2812 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2813 | |
2814 | * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or | |
2815 | not. | |
2816 | (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. | |
2817 | (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. | |
2818 | ||
2819 | * xterm.c (x_draw_composite_glyph_string_foreground): Check | |
2820 | s->face is NULL or not. | |
2821 | ||
73acf815 | 2822 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2823 | |
2824 | * xterm.c (x_set_glyph_string_clipping_exactly): New function. | |
2825 | (x_draw_glyph_string): Fix drawing of right_overhang and | |
2826 | left_overhang around/on cursor. | |
2827 | ||
1f45f627 | 2828 | * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs. |
aca7a3d2 | 2829 | |
73acf815 | 2830 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2831 | |
2832 | * xdisp.c (x_produce_glyphs): Handle composition with TAB. | |
2833 | ||
73acf815 | 2834 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2835 | |
4c4475a8 GM |
2836 | * coding.c (Fdefine_coding_system_internal) |
2837 | (Fdefine_coding_system_alias): Avoid a duplicated element in | |
2838 | Vcoding_system_alist. | |
aca7a3d2 | 2839 | |
73acf815 | 2840 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2841 | |
2842 | * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. | |
2843 | ||
fcb314b2 | 2844 | * coding.c (Qcoding_system_define_form): New variable. |
aca7a3d2 MB |
2845 | (syms_of_coding): Intern and staticpro it. |
2846 | (Fcoding_system_p): Check Qcoding_system_define_form. | |
1f45f627 | 2847 | (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM. |
aca7a3d2 MB |
2848 | |
2849 | * coding.h (CODING_SYSTEM_P): If ID is not available, call | |
2850 | Fcoding_system_p. | |
2851 | (CHECK_CODING_SYSTEM): If ID is not available, call | |
2852 | Fcheck_coding_system. | |
4c4475a8 GM |
2853 | (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID): |
2854 | Try also Fcheck_coding_system. | |
aca7a3d2 | 2855 | |
73acf815 | 2856 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2857 | |
aca7a3d2 MB |
2858 | * coding.c (code_conversion_restore): GCPRO arg. |
2859 | ||
73acf815 | 2860 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2861 | |
2862 | * character.c (lisp_string_width): Check multibyteness of STRING. | |
2863 | ||
73acf815 | 2864 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
2865 | |
2866 | * macterm.c (mac_encode_char): Call ccl_driver with the last arg | |
2867 | Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. | |
2868 | (decode_mac_font_name): Use decode_coding_c_string instead of | |
2869 | decode_coding. | |
2870 | (x_load_font): Initialize fontp->fontset to -1. Set | |
2871 | fontp->encoding_type. | |
2872 | ||
73acf815 | 2873 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2874 | |
2875 | * search.c (search_buffer): Give up BM search on case-fold-search | |
2876 | if one of a target character has a case-equivalence of different | |
2877 | byte length even if that target charcter is an ASCII. | |
1f45f627 GM |
2878 | (simple_search): Fix calculation of byte length of matched text. |
2879 | (boyer_moore): Fix handling of case-equivalent multibyte characters. | |
aca7a3d2 | 2880 | |
73acf815 | 2881 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2882 | |
2883 | * coding.c (decode_coding): Fix handling of invalid bytes. | |
2884 | ||
73acf815 | 2885 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2886 | |
2887 | * xterm.c (handle_one_xevent): Handle keysyms directly mapped to | |
2888 | Unicode characters. | |
2889 | ||
73acf815 | 2890 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2891 | |
2892 | * coding.c (encode_coding_object): If a pre-write-conversion | |
2893 | function makes a new buffer, kill it. | |
2894 | ||
73acf815 | 2895 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2896 | |
2897 | * coding.c (QCascii_compatible_p): New variable. | |
2898 | (syms_of_coding): Initialize it. | |
4c4475a8 GM |
2899 | (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before |
2900 | calling string_char. | |
aca7a3d2 MB |
2901 | (record_conversion_result): Add `default:' case. |
2902 | (coding_charset_list): Delete unused variable `coding_type'. | |
2903 | (Fdefine_coding_system_internal): Add `ascii-compatible-p' | |
2904 | property in the plist of the coding system. | |
2905 | (Fcoding_system_put): Check QCascii_compatible_p. | |
2906 | ||
73acf815 | 2907 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
2908 | |
2909 | * xfaces.c (Finternal_lisp_face_equal_p): Restore previously | |
2910 | removed calculation of frame `f', as it's now used. | |
2911 | ||
73acf815 | 2912 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2913 | |
1f45f627 | 2914 | * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined. |
aca7a3d2 MB |
2915 | (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. |
2916 | (UNIDATA): New variable. | |
2917 | (${lispsource}international/charprop.el): Depends on ${UNIDATA}. | |
2918 | (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run | |
2919 | $(RUN_TEMACS) unconditionally. | |
2920 | ||
73acf815 | 2921 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2922 | |
1f45f627 | 2923 | * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary. |
aca7a3d2 MB |
2924 | (admindir): New variable. |
2925 | ($(lispsource)international/charprop.el): New target. | |
2926 | ||
73acf815 | 2927 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 2928 | |
1f45f627 | 2929 | * character.c (chars-in-region): Remove obsolete function. |
aca7a3d2 MB |
2930 | (syms_of_character): Remove its initialization. |
2931 | ||
73acf815 | 2932 | 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net> |
aca7a3d2 MB |
2933 | |
2934 | * w32select.c (validate_coding_system) | |
2935 | (setup_windows_coding_system): New functions. | |
2936 | (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use | |
2937 | setup_windows_coding_system. | |
2938 | (setup_config, Fw32_get_clipboard_data): Use | |
2939 | validate_coding_system. | |
2940 | (Fx_selection_exists): Move call to setup_config to a place | |
1f45f627 | 2941 | where signals are allowed. |
aca7a3d2 MB |
2942 | |
2943 | * lisp.h (Fcoding_system_base, Fcoding_system_eol_type) | |
2944 | (Fcheck_coding_system): Add declarations. | |
2945 | ||
73acf815 | 2946 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2947 | |
1f45f627 | 2948 | * charset.c (load_charset_map_from_vector): Fix for the first iteration. |
aca7a3d2 | 2949 | |
73acf815 | 2950 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
2951 | |
2952 | * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp | |
2953 | string as the second argument for x_new_fontset. | |
2954 | ||
73acf815 | 2955 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2956 | |
2957 | * coding.c (decode_coding_object): Use safe_call1 instead of call1. | |
2958 | (encode_coding_object): Use safe_call instead of call2. | |
2959 | ||
73acf815 | 2960 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2961 | |
1f45f627 | 2962 | * fontset.c (Fset_fontset_font): Check family element of a given vector. |
aca7a3d2 MB |
2963 | |
2964 | * Makefile.in (lisp): Include charprop.el. | |
2965 | ||
73acf815 | 2966 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
2967 | |
2968 | * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash. | |
2969 | Not sure if it's unnecessary. | |
2970 | ||
73acf815 | 2971 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
2972 | |
2973 | * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out | |
2974 | some possibly unnecessary fontset checking code that crashed | |
1f45f627 | 2975 | when creating a new frame. |
aca7a3d2 | 2976 | |
73acf815 | 2977 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2978 | |
2979 | * xfaces.c (merge_faces): Fix argument to lookup_derived_face and | |
2980 | lookup_face. | |
2981 | ||
2982 | * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face. | |
2983 | ||
1f45f627 | 2984 | * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face. |
aca7a3d2 | 2985 | |
73acf815 | 2986 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 2987 | |
73acf815 | 2988 | * coding.c: Cancel the change done in HEAD on 2008-02-01. |
aca7a3d2 MB |
2989 | (coding_charset_list): New function. |
2990 | ||
2991 | * coding.h (coding_charset_list): Extern it. | |
2992 | ||
73acf815 | 2993 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2994 | |
2995 | * fontset.c (Fset_fontset_font): Call find_font_encoding with | |
2996 | concatenation of family and registry. | |
2997 | ||
73acf815 | 2998 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
2999 | |
3000 | * character.h (BYTE8_STRING): Fix typo. | |
3001 | ||
3002 | * editfns.c (Ftranslate_region_internal): Don't convert unibyte | |
3003 | string to multibyte (sync to HEAD). | |
3004 | ||
3005 | * casefiddle.c (casify_region): Handle changes in byte-length | |
3006 | using replace_range_2 (sync to HEAD). | |
3007 | ||
73acf815 | 3008 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
3009 | |
3010 | * chartab.c (map_char_table): GCPRO table and arg. | |
3011 | ||
73acf815 | 3012 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3013 | |
3014 | * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is | |
3015 | already at limit. | |
3016 | ||
73acf815 | 3017 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3018 | |
3019 | * fontset.c (fs_load_font): Use fast_string_match_ignore_case | |
3020 | instead of fast_c_string_match_ignore_case. | |
1f45f627 | 3021 | (find_font_encoding): Change argument to Lisp_Object. Use |
aca7a3d2 | 3022 | fast_string_match_ignore_case instead of |
1f45f627 | 3023 | fast_c_string_match_ignore_case. Change caller. |
aca7a3d2 | 3024 | |
73acf815 | 3025 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3026 | |
3027 | * xdisp.c (get_next_display_element): In unibyte case, decide to | |
3028 | display in octal form by checking a chacter by | |
3029 | UNIBYTE_CHAR_HAS_MULTIBYTE_P. | |
3030 | ||
1f45f627 | 3031 | * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table. |
aca7a3d2 MB |
3032 | |
3033 | * character.c (unibyte_has_multibyte_table): New variable. | |
3034 | ||
3035 | * character.h (unibyte_has_multibyte_table): Extern it. | |
3036 | (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro. | |
3037 | ||
73acf815 | 3038 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3039 | |
3040 | * coding.c (encode_coding_iso_2022): Fix handling of charset | |
3041 | annotation. | |
3042 | ||
73acf815 | 3043 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3044 | |
3045 | * coding.c (setup_coding_system): If coding_system is nil, use | |
3046 | Qundecided. | |
3047 | (Fterminal_coding_system): Return nil if terminal coding system is | |
3048 | `undecided'. | |
3049 | (syms_of_coding): Define coding-system `undecided' here. Setup | |
3050 | terminal_coding as `undecided'. | |
3051 | ||
73acf815 | 3052 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3053 | |
3054 | * xdisp.c (message_dolog, set_message_1): Call | |
3055 | unibyte_char_to_multibyte with arg type int. | |
3056 | ||
aca7a3d2 MB |
3057 | * lread.c (read1): Fix reading of a char-table. |
3058 | ||
3059 | * print.c (print_object): Include sub char-table in cicularities | |
3060 | detection. | |
3061 | ||
73acf815 | 3062 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3063 | |
3064 | * keymap.c (where_is_internal_2): Fix for the case that KEY is a | |
1f45f627 | 3065 | cons. Append the found sequences in car of ARGS instead of prepending. |
aca7a3d2 | 3066 | |
73acf815 | 3067 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3068 | |
3069 | * fileio.c (report_file_error): Make a unibyte string from | |
3070 | strerror (errorno). | |
3071 | (Fsubstitute_in_file_name): Fix the arg to | |
3072 | unibyte_char_to_multibyte. It is evaluated twice. | |
3073 | ||
73acf815 | 3074 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3075 | |
3076 | * charset.h (CHAR_CHARSET): Shortcut for ASCII case. | |
3077 | ||
73acf815 | 3078 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3079 | |
3080 | * coding.c (detect_coding_utf_16): Don't set detect_info->found if | |
3081 | BOM is not found. | |
4c4475a8 GM |
3082 | (detect_coding, detect_coding_system): Optimization for ISO-2022 |
3083 | when no 8-bit data is found. | |
aca7a3d2 | 3084 | |
73acf815 | 3085 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3086 | |
3087 | * w32fns.c (x_to_w32_font): Update to use new coding struct. | |
3088 | ||
73acf815 | 3089 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3090 | |
4c4475a8 GM |
3091 | * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of |
3092 | CHARS. | |
aca7a3d2 | 3093 | |
73acf815 | 3094 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
3095 | |
3096 | * macterm.c (mac_encode_char): Add charset argument and update | |
3097 | to use encoding_type. | |
3098 | (x_new_font,x_new_fontset): Merge in changes from xterm.c; | |
1f45f627 GM |
3099 | switch to pure fontset. |
3100 | (decode_mac_font_name): Temporarily remove decoding. | |
3101 | (x_font_name_to_mac_font_name): Temporarily remove encoding. | |
3102 | (x_load_font): Temporarily remove encoding. | |
aca7a3d2 | 3103 | |
73acf815 | 3104 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3105 | |
3106 | * xfaces.c (Fface_font): If frame is not on a window system, | |
3107 | ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't | |
3108 | refer to face->font. | |
3109 | (split_font_name_into_vector, build_font_name_from_vector) | |
3110 | (lookup_non_ascii_face, realize_non_ascii_face): Define them only | |
3111 | whne HAVE_WINDOW_SYSTEM is defined. | |
3112 | ||
73acf815 | 3113 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3114 | |
3115 | * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. | |
3116 | (x_produce_glyphs): Fix setting of members of cmp in case | |
1f45f627 | 3117 | cmp->glyph_len is zero. |
aca7a3d2 | 3118 | |
1f45f627 | 3119 | * fontset.c (Fset_fontset_font): Fix docstring. |
aca7a3d2 MB |
3120 | (Ffontset_info): Make it backward compatible. New arg ALL. |
3121 | ||
73acf815 | 3122 | 2008-02-01 Kim F. Storm <storm@cua.dk> |
aca7a3d2 MB |
3123 | |
3124 | * process.c (read_process_output): Grow decoding_buf when needed; | |
3125 | this could cause a crash in allocate_string and compact_small_strings. | |
3126 | ||
73acf815 | 3127 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3128 | |
1f45f627 | 3129 | * fileio.c (WRITE_BUF_SIZE): Delete this macro. |
aca7a3d2 | 3130 | |
73acf815 | 3131 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3132 | |
3133 | * coding.c (setup_coding_system): Set coding->common_flags | |
3134 | correctly for raw-text. | |
3135 | (consume_chars): On encoding unibyte text by raw-text, don't check | |
3136 | multibyte form. | |
1f45f627 | 3137 | (encode_coding): On encoding by raw-text, never use translation tables. |
aca7a3d2 MB |
3138 | |
3139 | * fileio.c (e_write): Short cut for the case of no encoding. | |
3140 | ||
73acf815 | 3141 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3142 | |
4c4475a8 GM |
3143 | * coding.c (detect_coding, detect_coding_system): Delete unused |
3144 | variables. | |
aca7a3d2 | 3145 | |
73acf815 | 3146 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3147 | |
3148 | * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. | |
3149 | (consume_chars): Fix handling of 8-bit bytes in unibyte source. | |
3150 | ||
73acf815 | 3151 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3152 | |
3153 | * coding.c (Ffind_coding_systems_region_internal): Include | |
3154 | raw-text and no-conversion in the result. | |
3155 | ||
73acf815 | 3156 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3157 | |
1f45f627 | 3158 | * fontset.c (find_font_encoding): Return `ascii' for unknown encoding. |
aca7a3d2 MB |
3159 | (load_font_get_repertory): Delete unnecessary check of ENCODING of |
3160 | FONT_DEF. | |
3161 | (font_def_arg, add_arg, from_arg, to_arg): New args. | |
1f45f627 | 3162 | (set_fontset_font): Change argument. |
aca7a3d2 MB |
3163 | (Fset_fontset_font): Fix for the case that TARGET is a script |
3164 | name and charset name. | |
3165 | (new_fontset_from_font_name): Fix argument to Fnew_fontset. | |
3166 | ||
73acf815 | 3167 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3168 | |
1f45f627 GM |
3169 | * fontset.c (fontset_font): Rename from fontset_face. Change return |
3170 | value. | |
4c4475a8 GM |
3171 | (face_suitable_for_char_p, face_for_char): Adjust for the change |
3172 | of fontset_font. | |
aca7a3d2 MB |
3173 | (make_fontset_for_ascii_face): Fix setting of the fontset element |
3174 | for ASCII. | |
3175 | (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR | |
3176 | to get a font name. | |
1f45f627 | 3177 | (Ffontset_info): Adjust for the change of fontset_font. |
aca7a3d2 | 3178 | |
fcb314b2 | 3179 | * coding.c (emacs_mule_char): Check invalid code more regidly. |
aca7a3d2 MB |
3180 | |
3181 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
3182 | (LEADING_CODE_LATIN_1_MAX): Delete these macros. | |
3183 | ||
73acf815 | 3184 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3185 | |
fcb314b2 | 3186 | * editfns.c (check_translation): New function. |
aca7a3d2 MB |
3187 | (Ftranslate_region_internal): Handle M:N mapping. |
3188 | ||
73acf815 | 3189 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3190 | |
3191 | * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. | |
3192 | ||
73acf815 | 3193 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3194 | |
3195 | * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of | |
3196 | goto invalid_code. | |
3197 | (decode_coding_iso_2022): Fix handling of invalid designation. | |
3198 | ||
3199 | * fileio.c (Finsert_file_contents): Be sure to call unbind_to | |
3200 | after calling code_conversion_save. | |
3201 | ||
73acf815 | 3202 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3203 | |
3204 | * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. | |
3205 | ||
3206 | * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. | |
3207 | ||
3208 | * fontset.c: Include "intervals.h". | |
3209 | (fontset_face): Fix comparing of Lisp_Objects. | |
4c4475a8 GM |
3210 | (free_face_fontset, new_fontset_from_font_name): Fix |
3211 | Lisp_Object/int mixup. | |
aca7a3d2 MB |
3212 | |
3213 | * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. | |
3214 | ||
3215 | * coding.c: Add many prototypes for static functions. | |
3216 | (get_translation_table): Allow max_lookup to be NULL. | |
4c4475a8 GM |
3217 | (decode_coding,Ffind_coding_systems_region_internal) |
3218 | (Funencodable_char_position, Fcheck_coding_systems_region): Call | |
3219 | get_translation_table with max_lookup NULL. | |
aca7a3d2 | 3220 | |
73acf815 | 3221 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3222 | |
3223 | * coding.c (get_translation_table): Declare it as Lisp_Object. | |
3224 | (LOOKUP_TRANSLATION_TABLE): New macro. | |
4c4475a8 GM |
3225 | (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE |
3226 | instead of CHAR_TABLE_REF. | |
aca7a3d2 | 3227 | |
73acf815 | 3228 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3229 | |
1f45f627 | 3230 | * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of |
aca7a3d2 MB |
3231 | annotation data format. |
3232 | (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): | |
1f45f627 | 3233 | Change arguments FROM and TO to single argument NCHARS. Change caller. |
4c4475a8 | 3234 | (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule) |
aca7a3d2 | 3235 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) |
4c4475a8 GM |
3236 | (decode_coding_ccl, decode_coding_charset): Pay attention to |
3237 | coding->charbuf_used. | |
aca7a3d2 MB |
3238 | (get_translation): New function. |
3239 | (produce_chars): New arguments translation_table and last_block. | |
3240 | Translate characters here. Return number of carryover chars. | |
1f45f627 GM |
3241 | Change caller. |
3242 | (produce_composition): New argument pos. Change caller. | |
3243 | Adjust for the change of annotation data format. | |
aca7a3d2 MB |
3244 | (produce_charset, produce_annotation): Likewise. |
3245 | (decode_coding, encode_coding): Don't call translate_chars. | |
1f45f627 GM |
3246 | (consume_chars): New arg translation_table. Change caller. |
3247 | (translate_chars): Delete. | |
3248 | (syms_of_coding): Make translation-table's number of extra slots 2. | |
aca7a3d2 | 3249 | |
73acf815 | 3250 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3251 | |
3252 | * search.c (simple_search): Fix setting this_pos_byte in backward | |
3253 | search. | |
3254 | ||
3255 | * coding.c (detect_coding_emacs_mule): Fix counting of encoded | |
3256 | byte sequence. | |
3257 | (detect_coding_ccl): Fix setting of the variable valids. | |
3258 | ||
73acf815 | 3259 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3260 | |
3261 | * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. | |
3262 | ||
3263 | * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. | |
3264 | ||
1f45f627 | 3265 | * editfns.c (Ftranslate_region_internal): Rename from |
aca7a3d2 MB |
3266 | Ftranslate_region. Accept a char-table in TABLE. |
3267 | (syms_of_editfns): Defsubr Stranslate_region_internal. | |
3268 | ||
3269 | * xfaces.c (set_lface_from_font_name): If a font is specified for | |
3270 | a frame, generate a fontset from the font. | |
3271 | (build_scalable_font_name): If the scalable font is requested for | |
3272 | a specific size, don't change that size. | |
3273 | (try_font_list): Try a scalable font also in the case that a | |
1f45f627 | 3274 | pattern string is specified. |
aca7a3d2 | 3275 | |
73acf815 | 3276 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3277 | |
3278 | * xfaces.c (Fface_font): New optional arg CHARACTER. | |
3279 | ||
73acf815 | 3280 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3281 | |
3282 | * charset.h (CHARSET_OFFSET): New macro. | |
3283 | ||
73acf815 | 3284 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3285 | |
3286 | * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. | |
3287 | ||
3288 | * fontset.c (fontset_face): Handle the case that repertory is a | |
3289 | char-table. | |
3290 | (find_font_encoding): Return nil for unknown encoding. | |
3291 | (Fset_fontset_font): Ignore a font of unknown encoding. | |
3292 | ||
73acf815 | 3293 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3294 | |
1f45f627 | 3295 | * keymap.c (describe_vector): Handle default value of a char table. |
aca7a3d2 MB |
3296 | |
3297 | * fontset.c (fontset_face): Handle fallback fonts correctly. | |
3298 | (Ffontset_info): Return infomation about fallback fonts. | |
3299 | ||
73acf815 | 3300 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3301 | |
3302 | * fontset.c (FONTSET_DEFAULT): New macro. | |
4c4475a8 | 3303 | (FONTSET_ADD, fontset_add): Handle the case that range is nil. |
aca7a3d2 MB |
3304 | (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle |
3305 | the case that it is nil. | |
3306 | (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK. | |
1f45f627 | 3307 | (syms_of_fontset): Set char-table-extra-slots property of fontset to 9. |
aca7a3d2 MB |
3308 | |
3309 | * charset.h (CHAR_CHARSET_P): Fix for the case that the method is | |
3310 | subset or superset. | |
3311 | ||
73acf815 | 3312 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3313 | |
3314 | * emacs.c (main): Call init_charset after syms_of_XXX. | |
3315 | ||
1f45f627 | 3316 | * charset.c (Vcharset_map_directory): Delete. |
aca7a3d2 MB |
3317 | (Vcharset_map_path): New variable |
3318 | (load_charset_map_from_file): Use Vcharset_map_path instead. | |
3319 | (init_charset): Initialize Vcharset_map_path. | |
3320 | (syms_of_charset): Delete declaration of "charset-map-directory", | |
3321 | add declaration of "charset-map-path". | |
3322 | ||
73acf815 | 3323 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3324 | |
4c4475a8 GM |
3325 | * fns.c (string_char_to_byte, string_byte_to_char): Optimize for |
3326 | ASCII only string. | |
aca7a3d2 MB |
3327 | |
3328 | * fileio.c (Finsert_file_contents): Avoid detecting a code twice. | |
3329 | ||
3330 | * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. | |
6f69e89b | 3331 | (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte. |
aca7a3d2 | 3332 | |
73acf815 | 3333 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3334 | |
3335 | * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. | |
3336 | ||
3337 | * coding.c (QCmnemonic, QCdefalut_char) | |
3338 | (QCdecode_translation_table, QCencode_translation_table) | |
3339 | (QCpost_read_conversion, QCpre_write_conversion): New variables. | |
3340 | (get_translation_table): Return a list of translation tables if | |
3341 | necessary. | |
3342 | (decode_coding): Call get_translation_table with ENCODEP 0. | |
3343 | (char_encodable_p): If translation_table is non-nil, always call | |
3344 | translate_char. | |
3345 | (Fdefine_coding_system_internal): Accept list of translation | |
3346 | tables as :encode-translation-table and :decode-translation-table. | |
3347 | (Fcoding_system_put): New function. | |
3348 | (syms_of_coding): Declare new symbols. Defsubr | |
3349 | Scoding_system_put. | |
4c4475a8 GM |
3350 | (decode_coding_sjis, encode_coding_sjis): Handle 4th charset, |
3351 | typically JISX0212. | |
aca7a3d2 MB |
3352 | |
3353 | * charset.c (map_charset_chars): Fix arg to map_charset_chars in | |
3354 | when the charset is superset type. | |
3355 | ||
3356 | * character.c (translate_char): Accept list of translation tables. | |
3357 | ||
73acf815 | 3358 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3359 | |
1f45f627 | 3360 | * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl. |
aca7a3d2 MB |
3361 | (CODING_ATTR_TRANS_TBL): New macro. |
3362 | ||
3363 | * coding.c (get_translation_table): New function. | |
3364 | (translate_chars): Fix the bug of skipping annotation data. | |
4c4475a8 GM |
3365 | (decode_coding, encode_coding): Utilize get_translation_table. |
3366 | (char_encodable_p, Funencodable_char_position): Translate char if | |
3367 | necessary. | |
3368 | (Ffind_coding_systems_region_internal) | |
3369 | (Fcheck_coding_systems_region): Setup translation table for encode | |
3370 | in a coding system attribute vector in advance. | |
aca7a3d2 MB |
3371 | (Fdefine_coding_system_internal): Allow a symbol as translation |
3372 | table. For shift-jis type coding system, allow 4th charset. | |
3373 | ||
73acf815 | 3374 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3375 | |
3376 | * coding.c (decode_coding_sjis): Check the first byte rigidly. | |
3377 | ||
3378 | * xdisp.c (get_next_display_element): Pass -1 as POS to | |
3379 | FACE_FOR_CHAR if displaying a C-string. | |
3380 | ||
73acf815 | 3381 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3382 | |
3383 | * composite.c (get_composition_id): Handle xoff and yoff in a | |
3384 | composition rule. | |
3385 | ||
3386 | * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. | |
3387 | (struct composition): New member lbearing and rbearing. | |
3388 | ||
3389 | * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y). | |
3390 | (x_get_glyph_overhangs): Handle a composition glyph. | |
1f45f627 | 3391 | (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph. |
aca7a3d2 MB |
3392 | |
3393 | * xterm.c (x_compute_glyph_string_overhangs): Handle also a | |
3394 | composition glyph. | |
3395 | ||
73acf815 | 3396 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3397 | |
3398 | * print.c: Include charset.h. | |
3399 | (Vprint_charset_text_property): New variable. | |
3400 | (Qdefault): Extern it. | |
3401 | (PRINT_STRING_NON_CHARSET_FOUND) | |
3402 | (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros. | |
3403 | (print_check_string_result): New variable. | |
3404 | (print_check_string_charset_prop): New function. | |
3405 | (print_prune_charset_plist): New variable. | |
3406 | (print_prune_string_charset): New function. | |
3407 | (print_object): Call print_prune_string_charset if | |
3408 | Vprint_charset_text_property is not t. | |
3409 | (print_interval): Print nothing if itnerval->plist is nil. | |
3410 | (syms_of_print): Declare Vprint_charset_text_property as a lisp | |
3411 | variable. Init and staticpro print_prune_charset_plist. | |
3412 | ||
73acf815 | 3413 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3414 | |
3415 | * fontset.c (new_fontset_from_font_name): Use the specified font | |
3416 | for all characters in the new fontset. | |
3417 | ||
3418 | * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
3419 | OBJECT args. | |
3420 | ||
3421 | * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and | |
3422 | OBJECT args for composition too. | |
3423 | ||
3424 | * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
3425 | OBJECT args. | |
3426 | ||
73acf815 | 3427 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3428 | |
3429 | * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. | |
3430 | ||
1f45f627 | 3431 | * fontset.c (reorder_font_vector): Adjust for the change of |
aca7a3d2 | 3432 | FONT_DEF format. |
1f45f627 | 3433 | (fontset_face): New arg id. Change caller. |
aca7a3d2 | 3434 | (face_for_char): New args pos and object. |
1f45f627 | 3435 | (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF |
aca7a3d2 MB |
3436 | format.n |
3437 | (fs_query_fontset): Check NAME by Fassoc too. | |
3438 | (Fset_fontset_font): Allow non-XLFD font name. | |
1f45f627 | 3439 | (Ffontset_info): Adjust for the change of FONT_DEF format. |
aca7a3d2 | 3440 | |
1f45f627 | 3441 | * fontset.h (face_for_char): Adjust prototype. |
aca7a3d2 | 3442 | |
4c4475a8 GM |
3443 | * xdisp.c (face_before_or_after_it_pos, get_next_display_element) |
3444 | (append_space, extend_face_to_end_of_line) | |
3445 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
3446 | (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args. | |
aca7a3d2 MB |
3447 | |
3448 | * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with | |
3449 | POS and OBJECT args. | |
3450 | ||
3451 | * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with | |
3452 | POS and OBJECT args. | |
3453 | ||
73acf815 | 3454 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3455 | |
3456 | * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc | |
3457 | of GlobalAlloc'ed memory. | |
3458 | ||
73acf815 | 3459 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3460 | |
3461 | * ccl.c (Fccl_execute_on_string): Fix the condition of loop. | |
3462 | ||
3463 | * charset.h (charset_table_used): Delete extern. | |
3464 | ||
3465 | * charset.c (charset_table_used): Make it static. | |
3466 | (map_charset_chars): Fix args to c_function with. | |
3467 | ||
3468 | * chartab.c (map_sub_char_table_for_charset): Fix args to | |
3469 | c_function with. | |
3470 | ||
3471 | * coding.h (enum coding_result_code): Delete | |
3472 | CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. | |
3473 | ||
3474 | * coding.c (Qinsufficient_source, Qinconsistent_eol) | |
1f45f627 | 3475 | (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. |
aca7a3d2 MB |
3476 | (Vlast_code_conversion_error): New variables. |
3477 | (syms_of_coding): DEFSYM or DEFVAR_LISP them. | |
3478 | (ONE_MORE_BYTE): Record error if any instead of signaling an | |
3479 | error. If non-ASCII multibyte char is found, return the negative | |
3480 | value of the code. All callers changed to check it. | |
3481 | (ONE_MORE_BYTE_NO_CHECK): Likewise. | |
1f45f627 GM |
3482 | (record_conversion_result): New function. Change all codes setting |
3483 | coding->result to call this function. | |
4c4475a8 GM |
3484 | (detect_coding_utf_8, decode_coding_utf_8) |
3485 | (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5): | |
3486 | Don't use the local variable incomplete. | |
aca7a3d2 | 3487 | (emacs_mule_char): Change the second arg to `const'. |
aca7a3d2 MB |
3488 | (decode_coding): Fix of flushing out unprocessed data. |
3489 | (make_conversion_work_buffer): Fix making of a work buffer. | |
3490 | (decode_coding_object): Return coding->dst_object; | |
3491 | ||
3492 | * fontset.c (set_fontset_font): Fix args. | |
3493 | ||
3494 | * lisp.h (CHARACTERBITS): Define as 22. | |
3495 | ||
3496 | * process.c (send_process): Be sure to set coding->src_multibyte. | |
3497 | ||
3498 | * xdisp.c (handle_auto_composed_prop): Fix setting of limit. | |
3499 | ||
73acf815 | 3500 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3501 | |
3502 | * xdisp.c (handle_auto_composed_prop): Give limit to | |
3503 | Fnext_single_char_property_change. | |
3504 | ||
73acf815 | 3505 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3506 | |
424c157f | 3507 | * composite.c (syms_of_composite): Don't make the composition hash |
1f45f627 | 3508 | table weak. |
aca7a3d2 MB |
3509 | |
3510 | * fontset.c (Fset_fontset_font): Fix docstring. | |
3511 | ||
3512 | * lisp.h (detect_coding_system): Adjust prototype. | |
3513 | ||
3514 | * fileio.c (kill_workbuf_unwind): Delete this function. | |
3515 | (Finsert_file_contents): Adjust the call of detect_coding_system. | |
3516 | Get conversion_buffer by code_conversion_save. Use the macor | |
3517 | CODING_MAY_REQUIRE_DECODING. After decoding, update | |
3518 | coding_system. | |
3519 | ||
3520 | * coding.h (make_conversion_work_buffer): Delete extern. | |
3521 | (code_conversion_save): Extern it. | |
3522 | ||
3523 | * coding.c (enum iso_code_class_type): Delete ISO_carriage_return. | |
1f45f627 | 3524 | (CODING_GET_INFO): Delete argument eol_type. Change callers. |
aca7a3d2 MB |
3525 | (decode_coding_utf_8): Don't do eol converion. |
3526 | (detect_coding_utf_16): Check coding->src_chars, not | |
1f45f627 | 3527 | coding->src_bytes. Add heuristics for those that have no signature. |
4c4475a8 GM |
3528 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
3529 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
3530 | Don't do eol converion. | |
aca7a3d2 MB |
3531 | (adjust_coding_eol_type): Return a new coding system. |
3532 | (detect_coding): Don't detect eol. Fix for utf-16 detection. | |
3533 | (decode_eol): In case of CRLF->LF conversion, use del_range_2 on | |
3534 | each change. | |
3535 | (decode_coding): Pay attention to undo_list. Do eol convesion for | |
3536 | all types of coding-systems (if necessary). | |
3537 | (Vcode_conversion_work_buf_list): Delete it. | |
1f45f627 | 3538 | (Vcode_conversion_reused_workbuf): Rename from |
aca7a3d2 MB |
3539 | Vcode_conversion_reused_work_buf. |
3540 | (Vcode_conversion_workbuf_name): New variable. | |
3541 | (reused_workbuf_in_use): New variable. | |
3542 | (make_conversion_work_buffer): Delete the arg DEPTH. | |
4c4475a8 | 3543 | (code_conversion_restore): Change argument to cons. |
1f45f627 GM |
3544 | (code_conversion_save): Delete the argument BUFFER. Change callers. |
3545 | (detect_coding_system): New argument src_chars. Change callers. | |
aca7a3d2 MB |
3546 | Fix for utf-16 detection. |
3547 | (init_coding_once): Don't use ISO_carriage_return. | |
1f45f627 | 3548 | (syms_of_coding): Initialize Vcode_conversion_workbuf_name and |
aca7a3d2 MB |
3549 | reused_workbuf_in_use. |
3550 | ||
73acf815 | 3551 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3552 | |
3553 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
3554 | is a cons specifying a character range. | |
3555 | ||
73acf815 | 3556 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3557 | |
3558 | * xdisp.c (handle_auto_composed_prop): Fix the case of returning | |
3559 | HANDLED_RECOMPUTE_PROPS. | |
3560 | ||
3561 | * coding.c (Fdefine_coding_system_internal): Fix checking of | |
3562 | ascii compatibility. | |
3563 | ||
73acf815 | 3564 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3565 | |
1f45f627 | 3566 | * charset.c (find_charsets_in_text): Delete unused locale variable. |
aca7a3d2 MB |
3567 | (Fset_charset_priority): Update Vemacs_mule_charset_list too. |
3568 | ||
3569 | * coding.c (encode_coding_emacs_mule): Emit bytes with MSB. | |
3570 | Resync charset_list to Vemacs_mule_charset_list. | |
3571 | ||
3572 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
3573 | is a cons specifying a character range. | |
3574 | ||
73acf815 | 3575 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3576 | |
3577 | * composite.c (update_compositions): Bind inhibit-read-only, etc | |
3578 | to t before calling remove-list-of-text-properties. | |
3579 | ||
3580 | * print.c (print_object): Always print ASCII chars as is. | |
3581 | ||
73acf815 | 3582 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3583 | |
1f45f627 | 3584 | * keymap.c (Fdefine_key): Fix handling of Lucid style event type list. |
aca7a3d2 | 3585 | |
4c4475a8 GM |
3586 | * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE |
3587 | is a char table. | |
aca7a3d2 | 3588 | |
73acf815 | 3589 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3590 | |
1f45f627 | 3591 | * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary. |
aca7a3d2 | 3592 | |
73acf815 | 3593 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3594 | |
3595 | * xfaces.c (set_lface_from_font_name): Fix for the case that | |
3596 | FONTNAME is not fontset name. | |
3597 | ||
73acf815 | 3598 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3599 | |
3600 | * fns.c (base64_encode_1): Fix previous change. | |
3601 | ||
73acf815 | 3602 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3603 | |
3604 | * fontset.c (set_fontset_font): New function. | |
3605 | (Fset_fontset_font): If a font is specified for a charset, use | |
3606 | map_charset_chars to store the font spec in a fontset. | |
3607 | ||
73acf815 | 3608 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3609 | |
3610 | * fontset.c (fontset_face): Create a fallback fontset on demand | |
3611 | (make_fontset): Don't create a fallback fontset here. | |
3612 | (free_face_fontset): Free a fallback fontset (if any) too. | |
3613 | (n_auto_fontsets): Delete this variable. | |
3614 | (auto_fontset_alist): New variable. | |
3615 | (new_fontset_from_font_name): Check auto_fontset_alist. | |
3616 | (dump_fontset) [FONTSET_DEBUG]: Fully re-written. | |
3617 | (Ffontset_list_all) [FONTSET_DEBUG]: New function. | |
3618 | (syms_of_fontset): Initialize and staticpro auto_fontset_alist. | |
3619 | Defsubr Sfontset_list_all. | |
3620 | ||
73acf815 | 3621 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3622 | |
3623 | * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. | |
3624 | ||
73acf815 | 3625 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3626 | |
3627 | * fontset.c (Fnew_fontset): Check NAME more rigidly. | |
3628 | ||
73acf815 | 3629 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3630 | |
3631 | * editfns.c (Fgoto_char): Fix docstring. | |
3632 | ||
73acf815 | 3633 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3634 | |
3635 | * insdel.c (insert_from_gap): Adjust intervals correctly. | |
3636 | ||
73acf815 | 3637 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3638 | |
3639 | * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. | |
3640 | (pfnGetFontUnicodeRanges): New dynamically loaded function. | |
3641 | (w32_initialize): Try to load it. | |
3642 | (x_get_font_repertory): Use it if available. | |
3643 | (w32_encode_char): Add shortcut for unicode output. | |
3644 | ||
3645 | * w32fns.c (w32_load_system_font): Default charset to -1. | |
3646 | (x_to_w32_charset): Match all fonts for unicode. | |
1f45f627 | 3647 | (w32_to_x_charset): New parameter matching. Don't return partial |
aca7a3d2 MB |
3648 | or wildcard charsets. |
3649 | (w32_to_all_x_charsets): Don't return partial or wildcard charsets. | |
3650 | (w32_codepage_for_font): Return CP_UNICODE for unicode. | |
3651 | (w32_to_x_font): Match charset to real charset. | |
3652 | (enum_font_cb2): Always list unicode versions. | |
3653 | ||
3654 | * makefile.w32-in (temacs): Increase EMHEAP. | |
3655 | ||
73acf815 | 3656 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
3657 | |
3658 | * w32term.c (w32_encode_char): New charset parameter. | |
3659 | font_info.encoding becomes encoding_type. | |
1f45f627 | 3660 | (x_get_font_repertory): New function. Warning: stub only! |
aca7a3d2 MB |
3661 | (x_new_font): Return quickly if font already set. |
3662 | (x_new_fontset): fontsetname parameter is Lisp_Object. | |
1f45f627 | 3663 | Use new fs_query_fontset. Try new_fontset_from_font_name. Use |
aca7a3d2 MB |
3664 | fontset_name for return value. |
3665 | ||
3666 | * w32term.h: Declare x_get_font_repertory. | |
3667 | ||
3668 | * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in | |
1f45f627 | 3669 | place of find_charset_in_text. Use encode_coding_object in place |
aca7a3d2 MB |
3670 | of encode_coding. |
3671 | (Fw32_get_clipboard_data): Use decode_coding_c_string in place of | |
3672 | decode_coding. | |
3673 | ||
3674 | * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version | |
3675 | of x_new_fontset. | |
3676 | (w32_load_system_font): Initialize charset as unicode. | |
3677 | font_info.encoding becomes encoding_type. | |
1f45f627 GM |
3678 | (w32_to_x_font): Use decode_coding_c_string in place of decode_coding. |
3679 | (x_to_w32_font): Use encode_coding_object in place of encode_coding. | |
aca7a3d2 MB |
3680 | (syms_of_w32fns): Set get_font_repertory_func. |
3681 | ||
1f45f627 | 3682 | * w32console.c: Include character.h. Use terminal_encode_buffer |
aca7a3d2 | 3683 | from term.c. |
1f45f627 | 3684 | (write_glyphs): Use new version of encode_terminal_code. Use |
aca7a3d2 MB |
3685 | encode_coding_object in place of encode_coding. |
3686 | ||
3687 | * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. | |
3688 | encoding becomes encoding_type. | |
3689 | ||
3690 | * term.c (terminal_encode_buffer): Make externally visible. | |
3691 | ||
3692 | * makefile.w32-in: Add character.h dependancies. | |
3693 | (character.o, chartab.o): New targets. | |
3694 | ||
73acf815 | 3695 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3696 | |
3697 | * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro | |
1f45f627 | 3698 | CODING_ID_EOL_TYPE. |
aca7a3d2 | 3699 | |
73acf815 | 3700 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
3701 | |
3702 | * coding.c (produce_chars): Revert last change. | |
3703 | ||
73acf815 | 3704 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3705 | |
3706 | * charset.h (charset_unicode): Extern it. | |
3707 | ||
3708 | * charset.c (string_xstring_p): Check by (C >= 0x100). | |
1f45f627 | 3709 | (find_charsets_in_text): Change format of the arc CHARSETS. New |
aca7a3d2 | 3710 | arg MULTIBYTE. |
1f45f627 | 3711 | (Ffind_charset_region, Ffind_charset_string): Adjust for the |
aca7a3d2 MB |
3712 | change of find_charsets_in_text. |
3713 | (Fsplit_char): Fix doc. Never return unknown. | |
3714 | ||
3715 | * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP. | |
3716 | ||
3717 | * coding.c (Fdefine_coding_system_alias): Update | |
3718 | Vcoding_system_list. | |
3719 | ||
3720 | * fontset.c (load_font_get_repertory): Pay attention to the case | |
3721 | that ENCODING of a font is specified by a char-table. | |
3722 | ||
3723 | * xterm.c (x_get_font_repertory): Handle the case that the | |
3724 | encoding of font is other than Unicode. | |
3725 | ||
73acf815 | 3726 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3727 | |
3728 | * term.c (encode_terminal_code): Don't handle glyph-table. Check | |
3729 | if a character is encodable by the terminal coding system. If | |
3730 | not, produces proper number of `?'s. Update | |
3731 | terminal_encode_buffer and terminal_encode_buf_size if necessary. | |
3732 | (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. | |
3733 | ||
73acf815 | 3734 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3735 | |
3736 | * term.c (terminal_encode_buffer, terminal_encode_buf_size): New | |
3737 | variables. | |
1f45f627 | 3738 | (encode_terminal_code): Change argument. Encode multiple |
aca7a3d2 MB |
3739 | characters at once. Store the result of encoding in |
3740 | terminal_encode_buffer. | |
4c4475a8 GM |
3741 | (write_glyphs, insert_glyphs): Adjust for the change of |
3742 | encode_terminal_code. | |
aca7a3d2 MB |
3743 | (term_init): Initialize terminal_encode_buffer and |
3744 | terminal_encode_buf_size. | |
3745 | ||
3746 | * coding.c (consume_chars): If coding->src_object is nil, don't | |
3747 | check annotation. | |
3748 | ||
73acf815 | 3749 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3750 | |
3751 | * character.c (char_string): Use ASCII_CHAR_P instead of | |
3752 | SINGLE_BYTE_CHAR_P. | |
3753 | ||
73acf815 | 3754 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3755 | |
3756 | * xdisp.c (handle_auto_composed_prop): Check if the last | |
3757 | characters of auto-composed region is newly composed with the | |
3758 | following characters. | |
3759 | (handle_composition_prop): Fix checking of point being inside | |
3760 | composition. | |
3761 | ||
73acf815 | 3762 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3763 | |
3764 | * fns.c (concat): Don't change multibyteness of the result by | |
3765 | concatenating an 8-bit character. | |
3766 | ||
3767 | * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change | |
3768 | multibyteness of the result when newelt is an 8-bit character. | |
3769 | ||
73acf815 | 3770 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
3771 | |
3772 | * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used | |
3773 | EMACS_INT. | |
3774 | ||
3775 | * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. | |
3776 | ||
3777 | * xfaces.c (face_numeric_value): Declare dim size_t. | |
3778 | (Finternal_lisp_face_equal_p): Remove unused f. | |
3779 | ||
3780 | * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) | |
3781 | (MATRIX_ROW): Remove unused vars. | |
3782 | (draw_glyphs, x_insert_glyphs, fast_find_position) | |
3783 | (fast_find_position, fast_find_string_pos): Use EMACS_INT for | |
3784 | byte/char counts. | |
3785 | ||
3786 | * regex.c (regex_compile): Remove unused var. | |
3787 | ||
3788 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
3789 | ||
3790 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) | |
3791 | (Faccessible_keymaps, where_is_internal): Remove unused vars. | |
3792 | ||
3793 | * keyboard.c (cancel_hourglass_unwind): Return Qnil. | |
3794 | ||
3795 | * frame.c (frame_name_fnn_p): Make len EMACS_INT. | |
3796 | ||
3797 | * fileio.c (Fwrite_region): Remove unused var. | |
3798 | ||
3799 | * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) | |
3800 | (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. | |
3801 | ||
3802 | * composite.c (Fremove_list_of_text_properties): Declare. | |
3803 | ||
1f45f627 GM |
3804 | * coding.c (inhibit_pre_post_conversion): Remove (unused). |
3805 | (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts. | |
aca7a3d2 MB |
3806 | (coding_inherit_eol_type): Remove unused attrs. |
3807 | (detect_coding): Cast arg of detect_eol. | |
3808 | ||
3809 | * charset.c (syms_of_charset): Remove unused var p. | |
3810 | (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for | |
3811 | byte/char counts. | |
3812 | ||
3813 | * casetab.c (set_case_table): Remove unused var. | |
3814 | ||
3815 | * window.c (Fdisplay_buffer, Fframe_selected_window): Remove | |
1f45f627 | 3816 | unused vars. |
aca7a3d2 | 3817 | |
73acf815 | 3818 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
3819 | |
3820 | * xterm.c (x_bitmap_mask): Declare. | |
3821 | ||
73acf815 | 3822 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
3823 | |
3824 | * xterm.c (x_term_init): Fix type error. | |
3825 | ||
3826 | * lisp.h: Add Funibyte_char_to_multibyte. | |
3827 | ||
3828 | * coding.c (Fread_coding_system): Fix arg of XSETSTRING. | |
3829 | (Fset_coding_system_priority): Doc fix. | |
3830 | ||
aca7a3d2 MB |
3831 | * ccl.c (ccl_driver): Fix arg of CHARACTERP. |
3832 | ||
3833 | * indent.c (check_composition): Make start and end EMACS_INT. | |
3834 | ||
3835 | * character.c (lisp_string_width): Make ignore and end EMACS_INT. | |
3836 | ||
3837 | * xdisp.c (handle_composition_prop, check_point_in_composition): | |
3838 | Make buffer positions EMACS_INT. | |
3839 | ||
3840 | * composite.c (find_composition, run_composition_function) | |
3841 | (update_compositions, Ffind_composition_internal): Make buffer | |
3842 | positions EMACS_INT. | |
3843 | ||
3844 | * composite.h (find_composition, update_compositions): Make | |
3845 | position args EMACS_INT. | |
3846 | ||
1f45f627 | 3847 | * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT. |
aca7a3d2 MB |
3848 | |
3849 | * intervals.c (get_property_and_range): | |
3850 | * intervals.h (get_property_and_range): Make start and end EMACS_INT. | |
3851 | ||
3852 | * unexalpha.c: Don't include varargs.h. | |
3853 | ||
73acf815 | 3854 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
3855 | |
3856 | * coding.h (ENCODE_UTF_8): New. | |
3857 | ||
3858 | * Makefile.in (gtkutil.o): Depend on coding.h. | |
3859 | ||
3860 | * coding.c (Fset_coding_system_priority): Doc fix. | |
3861 | ||
73acf815 | 3862 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3863 | |
3864 | * fileio.c (Finsert_file_contents): Call setup_coding_system in | |
3865 | the case of auto saving. | |
3866 | ||
73acf815 | 3867 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 | 3868 | |
4c4475a8 GM |
3869 | * chartab.c (map_char_table, map_char_table_for_charset): Protect |
3870 | `range' from GC. | |
aca7a3d2 | 3871 | |
73acf815 | 3872 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3873 | |
3874 | * coding.c (decode_coding_sjis): Check bytes more rigidly. | |
3875 | ||
73acf815 | 3876 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3877 | |
1f45f627 | 3878 | * fileio.c (choose_write_coding_system): Return a decided coding system. |
aca7a3d2 MB |
3879 | (Fwrite_region): Set Vlast_coding_system_used to the return value |
3880 | of choose_write_coding_system. | |
3881 | ||
73acf815 | 3882 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3883 | |
3884 | * charset.c (Fset_charset_priority): Pay attention to duplicated | |
3885 | arguments. | |
3886 | ||
3887 | * coding.c (QCcategory): New variable. | |
3888 | (syms_of_coding): Defsym it. Set all elements of | |
3889 | Vcoding_category_table and their symbol values. | |
3890 | (Fset_coding_system_priority): Doc fix. Update symbol qvalues of | |
3891 | coding-category-XXX, and coding-category-list. | |
3892 | (Fdefine_coding_system_internal): Add category in the plist. | |
3893 | ||
73acf815 | 3894 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3895 | |
3896 | * callproc.c (Fcall_process): Handle carryover correctly. | |
3897 | ||
1f45f627 | 3898 | * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes. |
aca7a3d2 MB |
3899 | (raw_text_coding_system): Check NILP (coding_system). |
3900 | (coding_inherit_eol_type): Check NILP (coding_system) and | |
3901 | NILP (parent). | |
3902 | (consume_chars): Fix for the case of raw-text. | |
3903 | ||
3904 | * process.c (read_process_output): Handle carryover correctly. | |
3905 | ||
73acf815 | 3906 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
3907 | |
3908 | * regex.c (re_search_2): Fix last change. | |
3909 | ||
73acf815 | 3910 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3911 | |
3912 | * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not | |
3913 | target_multibyte. Even in a unibyte case, return a converted | |
3914 | multibyte char. | |
3915 | (GET_CHAR_AFTER): New macro. | |
3916 | (PATFETCH): Translate via multibyte char. | |
3917 | (HANDLE_UNIBYTE_RANGE): Delete this macro. | |
3918 | (SETUP_MULTIBYTE_RANGE): New macro. | |
3919 | (regex_compile): Setup compiled code so that its multibyteness | |
3920 | matches that of a target. Fix the handling of "[X-YZ]" using | |
3921 | SETUP_MULTIBYTE_RANGE. | |
3922 | (analyse_first) <charset>: For filling fastmap for all multibyte | |
3923 | characters, don't check by BASE_LEADING_CODE_P. | |
3924 | (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is | |
3925 | the same as RE_MULTIBYTE_P (bufp) now. | |
1f45f627 | 3926 | (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)). |
aca7a3d2 MB |
3927 | (TARGET_CHAR_AND_LENGTH): Delete this macro. |
3928 | (TRANSLATE_VIA_MULTIBYTE): New macro. | |
3929 | (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). | |
3930 | It is the same as RE_MULTIBYTE_P (bufp) now. | |
3931 | <exactn>: Translate via multibyte. | |
3932 | <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't | |
3933 | translate it. | |
3934 | <charset, charset_not>: Fetch a character by | |
3935 | RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. | |
3936 | <duplicate>: Call bcmp_translate with the last arg `multibyte'. | |
3937 | <wordbound, notwordbound, wordbeg, wordend, syntaxspec, | |
3938 | notsyntaxspec, categoryspec, notcategoryspec> Fetch a character | |
3939 | by GET_CHAR_AFTER. | |
3940 | (bcmp_translate): Likewise. | |
3941 | ||
3942 | * search.c (compile_pattern): Check the member target_multibyte, | |
3943 | not the member multibyte of buf. | |
3944 | ||
3945 | * lread.c (read1): While reading a string, set force_singlebyte | |
3946 | and force_multibyte correctly. | |
3947 | ||
4c4475a8 GM |
3948 | * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting |
3949 | up of unibyte_to_multibyte_table. | |
aca7a3d2 | 3950 | |
73acf815 | 3951 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3952 | |
3953 | * coding.c (setup_coding_system): If coding has | |
3954 | post-read-conversion or pre-write-conversion, set | |
3955 | CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK | |
3956 | respectively. | |
3957 | (decode_coding_gap): Run post-read-conversion if any. | |
3958 | ||
3959 | * fileio.c (Finsert_file_contents): Even if we read into a | |
3960 | unibyte buffer, check if we must decode the result or not. | |
3961 | ||
73acf815 | 3962 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
3963 | |
3964 | * coding.c (make_conversion_work_buffer): Change the work buffer | |
3965 | name to the same one as that of Emacs 21. | |
3966 | ||
73acf815 | 3967 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3968 | |
1f45f627 | 3969 | * coding.h (make_conversion_work_buffer): Adjust prototype. |
aca7a3d2 MB |
3970 | (code_conversion_restore): Don't extern it. |
3971 | ||
3972 | * coding.c (detected_mask): Delete unused variable. | |
3973 | (decode_coding_iso_2022): Pay attention to the byte sequence of | |
3974 | CTEXT extended segment, and retain those bytes as is. | |
3975 | (decode_coding_ccl): Delete unused variable `valids'. | |
3976 | (setup_coding_system): Delete unused variable `category'. | |
3977 | (consume_chars): Delete unused variable `category'. Make it work | |
3978 | for non-multibyte case. | |
1f45f627 | 3979 | (make_conversion_work_buffer): Change argument. |
aca7a3d2 MB |
3980 | (saved_coding): Delete unused variable. |
3981 | (code_conversion_restore): Don't check saved_coding->destination. | |
3982 | (code_conversion_save): New function. | |
3983 | (decode_coding_gap, encode_coding_gap): Call code_conversion_save | |
3984 | instead of record_unwind_protect. | |
1f45f627 | 3985 | (decode_coding_object, encode_coding_object): Likewise. Recover PT. |
aca7a3d2 | 3986 | (detect_coding_system): Delete unused variable `mask'. |
1f45f627 | 3987 | (Fdefine_coding_system_internal): Delete unused vaiable id. |
aca7a3d2 MB |
3988 | |
3989 | * fileio.c (kill_workbuf_unwind): New function. | |
3990 | (Finsert_file_contents): On replacing, call | |
3991 | make_conversion_work_buffer with correct args, and call | |
3992 | record_unwind_protect with the first arg kill_workbuf_unwind. | |
3993 | ||
3994 | * lisp.h (Fgenerate_new_buffer_name): EXFUN it. | |
3995 | ||
73acf815 | 3996 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 3997 | |
1f45f627 | 3998 | * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME. |
aca7a3d2 MB |
3999 | (fontset_add): Fix for the case that TO is less than TO1. |
4000 | (Ffontset_info): Don't use fallback fontset on checking the | |
4001 | default fontset. | |
4002 | (dump_fontset): New function for debugging. | |
4003 | ||
4004 | * coding.c (Fdefine_coding_system_internal): Fix for the case that | |
4005 | coding_type is Qcharset. | |
4006 | ||
73acf815 | 4007 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4008 | |
4009 | * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. | |
4010 | (map_char_table): Don't inherit the value from the parent on | |
1f45f627 | 4011 | initializing VAL. Adjust for the above change. |
aca7a3d2 | 4012 | |
73acf815 | 4013 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4014 | |
4015 | * coding.c (Qsignature, Qendian): Delete these variables. | |
4016 | (syms_of_coding): Don't initialize them. | |
4017 | (CATEGORY_MASK_UTF_16_AUTO): New macro. | |
4018 | (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in | |
4019 | detect_info->found. | |
4020 | (decode_coding_utf_16): Don't detect BOM here. | |
4021 | (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) | |
4022 | is NOT utf_16_without_bom. | |
4023 | (setup_coding_system): For a coding system of type utf-16, check | |
4024 | if the attribute :endian is Qbig or not (not nil or not), and set | |
4025 | CODING_REQUIRE_DETECTION_MASK if BOM detection is required. | |
4026 | (detect_coding): If coding type is utf-16 and BOM detection is | |
4027 | required, detect it. | |
4028 | (Fdefine_coding_system_internal): For a coding system of type | |
1f45f627 | 4029 | utf-16, check if the attribute :endian is Qbig or not (not nil or not). |
aca7a3d2 | 4030 | |
73acf815 | 4031 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4032 | |
4033 | * coding.c (coding_set_source): Fix for the case that the current | |
4034 | buffer is different from coding->src_object. | |
4035 | (decode_coding_object): Don't use the conversion work buffer if | |
4036 | DST_OBJECT is a buffer. | |
4037 | ||
73acf815 | 4038 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4039 | |
4040 | * lread.c (read_emacs_mule_char) [len==2]: Index | |
4041 | emacs_mule_charset correctly. | |
4042 | ||
73acf815 | 4043 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4044 | |
4045 | * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) | |
4046 | (detect_coding_big5, decode_coding_big5, encode_coding_big5) | |
1f45f627 | 4047 | (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer |
aca7a3d2 MB |
4048 | treated specially.) |
4049 | (setup_coding_system, coding_category, CATEGORY_MASK_ANY) | |
4050 | (detected_mask): Remove Big5 bits. | |
4051 | ||
73acf815 | 4052 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4053 | |
4054 | The following changes are to make the font rescaling facility | |
4055 | compatible with Emacs 21. | |
4056 | ||
1f45f627 | 4057 | * xfaces.c (Vface_font_rescale_alist): Rename from |
aca7a3d2 MB |
4058 | Vface_resizing_fonts. |
4059 | (struct font_name): Rename member resizing_ratio to rescale_ratio. | |
1f45f627 | 4060 | (font_rescale_ratio): Rename from font_resizing_ratio. |
aca7a3d2 MB |
4061 | (split_font_name): Set font->rescale_ratio. |
4062 | (better_font_p): Pay attention to font->rescale_ratio. | |
4063 | (build_scalable_font_name): Likewise. Change RESX, and RESY | |
4064 | fields. | |
1f45f627 | 4065 | (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable. |
aca7a3d2 | 4066 | |
73acf815 | 4067 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4068 | |
4069 | * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) | |
4070 | (Qutf_16_le): Remove these variables. | |
4071 | (syms_of_coding): Don't DEFSYM them. | |
4072 | (decode_coding_utf_16): Fix handling of BOM. | |
4073 | (encode_coding_utf_16): Fix handling of BOM. | |
4074 | ||
73acf815 | 4075 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4076 | |
4077 | * fileio.c (Finsert_file_contents): On replacing, before decoding | |
1f45f627 | 4078 | the file into the work buffer, set point of the work buffer to the end. |
aca7a3d2 | 4079 | |
73acf815 | 4080 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4081 | |
4082 | * coding.c (Fcheck_coding_systems_region): Fix type errors. | |
4083 | ||
73acf815 | 4084 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4085 | |
4086 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
4087 | and fix C types. | |
4088 | ||
73acf815 | 4089 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4090 | |
4091 | * xdisp.c (SKIP_GLYPHS): New macro. | |
4092 | (set_cursor_from_row): Pay attention to string display properties. | |
4093 | ||
4094 | * category.c (copy_category_entry): Fix for the case that RANGE | |
4095 | is an integer. | |
4096 | ||
4097 | * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. | |
4098 | ||
1f45f627 | 4099 | * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil. |
aca7a3d2 | 4100 | |
73acf815 | 4101 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4102 | |
4103 | * charset.c (Fcharset_id_internal): New function. | |
4104 | (syms_of_charset): Defsubr it. | |
4105 | ||
4106 | * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver | |
4107 | with the last arg charset_list acquired from coding. | |
4108 | (Fdefine_coding_system_internal): For ccl-based coding system, fix | |
4109 | the attribute coding_attr_ccl_valids. | |
4110 | ||
4111 | * coding.h (enum define_coding_ccl_arg_index): Set the first | |
4112 | member coding_arg_ccl_decoder to coding_arg_max. | |
4113 | ||
1f45f627 | 4114 | * ccl.h (ccl_driver): Adjust prototype. |
aca7a3d2 MB |
4115 | |
4116 | * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. | |
4117 | (ccl_driver): New arg CHARSET_LIST. Use the above macros instead | |
4118 | of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. | |
4c4475a8 GM |
4119 | (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the |
4120 | last arg Qnil. | |
aca7a3d2 | 4121 | |
73acf815 | 4122 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4123 | |
4124 | * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, | |
4125 | call encode_char. | |
4126 | ||
1f45f627 | 4127 | * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET. |
aca7a3d2 | 4128 | |
73acf815 | 4129 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 4130 | |
1f45f627 | 4131 | * composite.c (syms_of_composite): Make composition_hash_table weak. |
aca7a3d2 | 4132 | |
73acf815 | 4133 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4134 | |
4135 | * dispextern.h (check_face_attributes, generate_ascii_font_name) | |
4136 | (font_name_registry): Don't extern them. | |
1f45f627 | 4137 | (split_font_name_into_vector, build_font_name_from_vector): Extern them. |
aca7a3d2 MB |
4138 | |
4139 | * fontset.h (Qfontset): Don't extern it. | |
4140 | (new_fontset_from_font_name): Extern it. | |
4141 | ||
4142 | * fontset.c: Give 8 extra slots to fontset objects. | |
4143 | (Qfontset_info): New variable. | |
4144 | (syms_of_fontset): Defsym it. | |
4145 | (FONTSET_FALLBACK): New macro. | |
4146 | (fontset_face): Try also the default fontset. | |
1f45f627 GM |
4147 | (make_fontset): Realize a fallback fontset from the default fontset. |
4148 | (generate_ascii_font_name): Move from xfaces.c. Rewritten by | |
aca7a3d2 MB |
4149 | using split_font_name_into_vector and build_font_name_from_vector. |
4150 | (Fset_fontset_font): Access the elements of font_spec by enum | |
4151 | FONT_SPEC_INDEX. If font_spec is a string, extract the registry | |
4152 | name by using split_font_name_into_vector. | |
4153 | (Fnew_fontset): If no ASCII font is specified in FONTLIST, | |
4154 | generate a proper font name from the fontset name. Update | |
4155 | Vfontset_alias_alist. | |
4156 | (n_auto_fontsets): New variable. | |
4157 | (new_fontset_from_font_name): New function. | |
4158 | (Ffont_info): Store the information about fonts generated from the | |
1f45f627 | 4159 | default fontset in the first extra slot of the returned char-table. |
aca7a3d2 | 4160 | |
1f45f627 GM |
4161 | * xfaces.c (generate_ascii_font_name): Move to fontset.c. |
4162 | (font_name_registry): Delete function. | |
aca7a3d2 MB |
4163 | (split_font_name_into_vector): New function. |
4164 | (build_font_name_from_vector): New function. | |
1f45f627 | 4165 | (font_list): The argument REGISTRY is now a list of registry names. |
aca7a3d2 MB |
4166 | (choose_face_font): If we are choosing an ASCII font, and ATTRS |
4167 | specifies an explicit font name, return the name as is. Make a | |
4168 | list of registy names. | |
4169 | ||
1f45f627 | 4170 | * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change |
aca7a3d2 MB |
4171 | of x_new_fontset. |
4172 | (Fx_create_frame): Don't call x_new_fontset here. Just use | |
4173 | x_list_fonts to check the existence of fonts. | |
4174 | ||
1f45f627 | 4175 | * xterm.h (x_new_fontset): Adjust prototype. |
aca7a3d2 MB |
4176 | |
4177 | * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp | |
4178 | string. Use new_fontset_from_font_name to create a fontset from a | |
4179 | font name. | |
4180 | ||
1c8658b9 GM |
4181 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
4182 | ||
4183 | * syntax.c (Vfind_word_boundary_function_table): New name for | |
4184 | Vnext_word_boundary_function_table. | |
4185 | (find-word-boundary-function-table): New name for | |
4186 | next-word-boundary-function-table. | |
4187 | ||
73acf815 | 4188 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4189 | |
4190 | * Makefile.in: Fix some dependencies. | |
4191 | ||
4192 | * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but | |
4193 | set it to nil before returning. | |
4194 | ||
4195 | * composite.c (update_compositions): Fix type error. | |
4196 | ||
4197 | * syntax.c (skip_chars, skip_syntaxes): Fix type errors. | |
4198 | ||
73acf815 | 4199 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4200 | |
4201 | * xterm.c (x_new_font): Optimize for the case that the font is | |
4202 | already set for the frame. | |
4203 | ||
73acf815 | 4204 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4205 | |
4206 | * chartab.c (char_table_ascii): Check if the char table contents | |
4207 | is sub-char-table or not. | |
4c4475a8 GM |
4208 | (char_table_set, char_table_set_range): Fix argument to |
4209 | char_table_ascii. | |
aca7a3d2 MB |
4210 | |
4211 | * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. | |
4212 | (detect_coding_utf_8, detect_coding_utf_16) | |
4213 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
4214 | (detect_coding_sjis, detect_coding_big5) | |
4215 | (detect_coding_ccl, detect_coding_charset): Change argument MASK | |
4216 | to DETECT_INFO. Update DETECT_INFO and return 1 if the byte | |
1f45f627 | 4217 | sequence is valid in this coding system. Change callers. |
aca7a3d2 MB |
4218 | (MAX_ANNOTATION_LENGTH): New macro. |
4219 | (ADD_ANNOTATION_DATA): New macro. | |
1f45f627 GM |
4220 | (ADD_COMPOSITION_DATA): Change argument. Change callers. Call |
4221 | ADD_ANNOTATION_DATA. Change the format of annotation data. | |
aca7a3d2 | 4222 | (ADD_CHARSET_DATA): New macro. |
1f45f627 | 4223 | (emacs_mule_char): New argument ID. Change callers. |
aca7a3d2 MB |
4224 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
4225 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
4226 | Produce charset annotation data in coding->charbuf. | |
4227 | (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention | |
4228 | to charset annotation data in coding->charbuf. | |
4229 | (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK | |
4230 | coding->common_flags if the coding system is iso-2022 based and | |
4231 | uses designation. | |
1f45f627 | 4232 | (produce_composition): Adjust for the new annotation data format. |
aca7a3d2 MB |
4233 | (produce_charset): New function. |
4234 | (produce_annotation): Handle charset annotation. | |
4235 | (handle_composition_annotation, handle_charset_annotation): New | |
4236 | functions. | |
4237 | (consume_chars): Handle charset annotation. Utilize the above two | |
4238 | functions. | |
4239 | (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same | |
4240 | buffer, get the deleted text as a string and set | |
4241 | coding->src_object to that string. | |
4242 | (detect_coding, detect_coding_system): Use the new struct | |
4243 | coding_detection_info. | |
4244 | ||
4245 | * coding.h (struct coding_detection_info): New structure. | |
1f45f627 | 4246 | (struct coding_system): Adjust prototype of the member `detector'. |
aca7a3d2 MB |
4247 | (CODING_ANNOTATE_CHARSET_MASK): New macro. |
4248 | ||
73acf815 | 4249 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4250 | |
4251 | * insdel.c (insert_from_gap): Fix argument to offset_intervals. | |
4252 | ||
73acf815 | 4253 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 4254 | |
1f45f627 | 4255 | * keymap.c (apropos_predicate, apropos_accumulate): Declare static. |
aca7a3d2 MB |
4256 | (Fapropos_internal): Don't gcpro apropos_accumulate. Set result |
4257 | to new local and nullify apropos_accumulate before returning. | |
4258 | (syms_of_keymap): Staticpro and initialize apropos_accumulate. | |
4259 | ||
73acf815 | 4260 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4261 | |
4262 | * charset.c (Fdefine_charset_internal): Setup charset.fast_map | |
4263 | correctly. | |
4264 | ||
73acf815 | 4265 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4266 | |
4267 | * fns.c (Flanginfo): Call synchronize_system_time_locale. | |
4268 | ||
73acf815 | 4269 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4270 | |
4271 | The following changes are to make character composition happen | |
4272 | automatically on displaying. | |
4273 | ||
4274 | * Makefile.in (lisp, shortlisp): Add composite.elc | |
4275 | ||
1f45f627 GM |
4276 | * composite.h (Qauto_composed, Vauto_composition_function) |
4277 | (Qauto_composition_function): Extern them. | |
aca7a3d2 | 4278 | |
1f45f627 GM |
4279 | * composite.c (Vcomposition_function_table) |
4280 | (Qcomposition_function_table): Delete variables. | |
4281 | (Qauto_composed, Vauto_composition_function) | |
4282 | (Qauto_composition_function): New variables. | |
aca7a3d2 MB |
4283 | (run_composition_function): Don't call |
4284 | compose-chars-after-function. | |
4285 | (update_compositions): Clear `auto-composed' text property. | |
4286 | (compose_chars_in_text): Delete this function. | |
4287 | (syms_of_composite): Staticpro Qauto_composed and | |
4288 | Qauto_composition_function. Declare Vauto_composition_function as | |
4289 | a Lisp variable. | |
4290 | ||
4291 | * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. | |
4292 | ||
4293 | * xdisp.c (it_props): Add an entry for Qauto_composed. | |
4294 | (handle_auto_composed_prop): New function. | |
4295 | ||
4296 | * xselect.c (selection_data_to_lisp_data): Don't call | |
4297 | compose_chars_in_text. | |
4298 | ||
73acf815 | 4299 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4300 | |
4301 | * keyboard.c (read_char): Modify checking around use of | |
4302 | Vkeyboard_translate_table. | |
4303 | ||
4304 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
4305 | and fix C types. | |
4306 | ||
73acf815 | 4307 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4308 | |
4c4475a8 GM |
4309 | * coding.c (decode_coding_utf_8, decode_coding_emacs_mule) |
4310 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
4311 | (decode_coding_charset, produce_chars): When eol_type is Qdos, handle | |
aca7a3d2 | 4312 | the case that the last byte is '\r' correctly. |
1f45f627 GM |
4313 | (decode_coding): Flush out the unprocessed data correctly. |
4314 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode. | |
aca7a3d2 | 4315 | |
73acf815 | 4316 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4317 | |
4318 | * xterm.c (XTread_socket): Fix changes for defined keysyms. Add | |
4319 | XK_ISO... case. | |
4320 | (xaw_scroll_callback): Revert last change. | |
4321 | ||
73acf815 | 4322 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4323 | |
1f45f627 | 4324 | * charset.c (Fset_charset_priority): Update Viso_2022_charset_list. |
aca7a3d2 | 4325 | |
73acf815 | 4326 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4327 | |
4328 | * xfaces.c (Vface_resizing_fonts): New variable. | |
4329 | (struct font_name): New member `resizing_ratio'. | |
4330 | (font_resizing_ratio): New function. | |
4331 | (split_font_name): Set font->resizing_ratio. | |
4332 | (better_font_p): Pay attention to font->resizing_ratio. | |
4333 | (build_scalable_font_name): Likewise. Don't change POINT_SIZE, | |
4334 | RESX, and RESY fields. | |
4335 | (try_alternative_families): Try scalable fonts if | |
4336 | Vscalable_fonts_allowed is not Qt. | |
4337 | (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. | |
4338 | ||
73acf815 | 4339 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4340 | |
4341 | * xterm.c (xaw_scroll_callback): Cast correctly. | |
4342 | ||
73acf815 | 4343 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4344 | |
4345 | * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. | |
4346 | (lispy_kana_keys): Comment out. | |
4347 | (make_lispy_event) [XK_kana_A]: Comment out. | |
4348 | ||
4349 | * xterm.c (xaw_scroll_callback): Cast call_data. | |
4350 | (XTread_socket): Deal with ASCII keysyms. | |
4351 | (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. | |
4352 | ||
73acf815 | 4353 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4354 | |
4355 | * xterm.c (Vx_keysym_table): New. | |
4356 | (syms_of_xterm): Initialize it. | |
4357 | (XTread_socket): Use it. | |
4358 | From head: Eliminate incorrect optimization that tried to avoid | |
4359 | decoding the output of X*LookupString. | |
4360 | (x_get_font_repertory): Delete charset declaration. | |
4361 | ||
73acf815 | 4362 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4363 | |
1f45f627 GM |
4364 | * coding.c (detect_coding_charset): If only ASCII bytes are found, |
4365 | return 0. | |
aca7a3d2 MB |
4366 | (Fdefine_coding_system_internal): Setup |
4367 | CODING_ATTR_ASCII_COMPAT (attrs) correctly. | |
4368 | ||
73acf815 | 4369 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4370 | |
4371 | * coding.c (Fcheck_coding_system): Doc fix. | |
4372 | ||
4373 | * editfns.c (Finsert_byte): Return a proper value. | |
4374 | ||
73acf815 | 4375 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4376 | |
4377 | * coding.c (decode_coding): Fix args to translate_chars. Pay | |
4378 | attention to Vstandard_translation_table_for_decode. | |
4379 | (encode_coding): Fix args to translate_chars. Pay attention to | |
4380 | Vstandard_translation_table_for_encode. | |
4381 | ||
4382 | * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by | |
4383 | SINGLE_BYTE_CHAR_P. | |
4384 | ||
4385 | * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, | |
4386 | not by SINGLE_BYTE_CHAR_P. | |
4387 | ||
4388 | * fns.c (concat): Check CH by ASCII_CHAR_P, not by | |
4389 | SINGLE_BYTE_CHAR_P. | |
4390 | ||
4391 | * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by | |
4392 | SINGLE_BYTE_CHAR_P. | |
4393 | ||
4394 | * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not | |
4395 | by SINGLE_BYTE_CHAR_P. | |
4396 | ||
4397 | * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by | |
4398 | SINGLE_BYTE_CHAR_P. | |
4399 | ||
73acf815 | 4400 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4401 | |
4402 | * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. | |
4403 | ||
73acf815 | 4404 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4405 | |
4406 | * fns.c (Flanginfo): Fix typo. | |
4407 | ||
4408 | * unexelf.c (unexec): Make last change conditional on Irix 6.5. | |
4409 | ||
73acf815 | 4410 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4411 | |
4c4475a8 GM |
4412 | * coding.c (detect_coding_utf_8, detect_coding_utf_16) |
4413 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
4414 | (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check | |
4415 | incomplete byte sequence. Don't update *mask when correctly detected. | |
aca7a3d2 | 4416 | (decode_coding_sjis): Fix decoding of katakana-jisx0201. |
1f45f627 | 4417 | (detect_eol): Delete the argument CODING, and add the argument CATEGORY. |
4c4475a8 | 4418 | (detect_coding, detect_coding_system): Adjust for the changes above. |
aca7a3d2 | 4419 | |
73acf815 | 4420 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4421 | |
1f45f627 GM |
4422 | * character.c (char_string): Rename from |
4423 | char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK. | |
4424 | (string_char): Rename from string_char. | |
aca7a3d2 | 4425 | |
4c4475a8 GM |
4426 | * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string |
4427 | if C is greater than MAX_3_BYTE_CHAR. | |
4428 | (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call | |
4429 | string_char instead of string_char_with_unification. | |
aca7a3d2 | 4430 | |
73acf815 | 4431 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4432 | |
4433 | * coding.c (decode_coding_utf_8): Treat surrogates as invalid. | |
4434 | ||
73acf815 | 4435 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4436 | |
1f45f627 | 4437 | * keymap.c (push_key_description): Pay attention to force_multibyte. |
aca7a3d2 MB |
4438 | |
4439 | * regex.c (re_search_2): Fix for the case of unibyte buffer. | |
4440 | ||
73acf815 | 4441 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4442 | |
4443 | * charset.c (define_charset_internal): Rename `supprementary'. | |
4444 | ||
4445 | * Makefile.in (lisp, shortlisp): Remove latin-N. | |
4446 | ||
73acf815 | 4447 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4448 | |
4449 | * xfns.c (x_window, x_window): Use use_xim. | |
4450 | ||
4451 | * xterm.c (use_xim): Initialize. | |
4452 | (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. | |
4453 | (x_term_init): Maybe set use_xim. | |
4454 | ||
4455 | * xterm.h (use_xim) [HAVE_X_I18N]: Declare. | |
4456 | ||
73acf815 | 4457 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4458 | |
4459 | * search.c (search_buffer): Fix case-fold-search of multibyte | |
4460 | characters. | |
4461 | (boyer_moore): Rename the last argument to char_high_bits. | |
4462 | ||
73acf815 | 4463 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4464 | |
4465 | * xdisp.c (display_string): Fix for the case of zero width glyph. | |
4466 | ||
4467 | * xfns.c (x_set_font): Change the error message of the case that | |
4468 | x_new_fontset returns Qt. | |
4469 | ||
4470 | * xfaces.c (set_lface_from_font_name): Reject the default fontset. | |
4471 | (Finternal_set_lisp_face_attribute): Use signal_error for the | |
4472 | error of invalid fontset. | |
4473 | ||
4474 | * xterm.c (x_new_fontset): If FONTSETNAME specifies the default | |
4475 | fontset, return Qt. | |
4476 | ||
73acf815 | 4477 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 4478 | |
aca7a3d2 MB |
4479 | * unexelf.c (unexec): Make .got handling not SGI-specific. |
4480 | ||
4481 | * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. | |
4482 | ||
4483 | * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. | |
4484 | ||
4485 | * keyboard.c (read_key_sequence): Fix type error. | |
4486 | ||
4487 | * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix | |
4488 | type error. | |
4489 | ||
4490 | * fontset.c (fontset_add): Return Lisp_Object. | |
4491 | ||
73acf815 | 4492 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4493 | |
4494 | * charset.h (charset_ordered_list_tick): Declare extern. | |
4495 | ||
73acf815 | 4496 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4497 | |
73acf815 | 4498 | The following changes (and some of 2008-02-01 changes of mine) are |
aca7a3d2 MB |
4499 | for handling syntax, category, and case conversion for unibyte |
4500 | characters by converting them to multibyte on the fly. With these | |
4501 | changes, we don't have to setup syntax and case tables for unibyte | |
4502 | characters in each language environment. | |
4503 | ||
4504 | * abbrev.c (Fexpand_abbrev): Convert a unibyte character to | |
4505 | multibyte if necessary. | |
4506 | ||
4507 | * bytecode.c (Fbyte_code): Likewise. | |
4508 | ||
4509 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
4510 | (LEADING_CODE_LATIN_1_MAX): New macros. | |
4511 | (unibyte_to_multibyte_table): Extern it. | |
4512 | (unibyte_char_to_multibyte): New macro. | |
4513 | (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. | |
4514 | (CHAR_LEADING_CODE): New macro. | |
4515 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. | |
4516 | ||
4517 | * character.c (unibyte_to_multibyte_table): New variable. | |
1f45f627 | 4518 | (unibyte_char_to_multibyte): Move to character.h and define as macro. |
aca7a3d2 MB |
4519 | (multibyte_char_to_unibyte): If C is an eight-bit character, |
4520 | convert it to the corresponding byte value. | |
4521 | ||
4522 | * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is | |
4523 | not 1, singals an error. Update the elements of | |
4524 | unibyte_to_multibyte_table. | |
4525 | (init_charset_once): Initialize unibyte_to_multibyte_table. | |
4526 | (syms_of_charset): Define the charset `iso-8859-1'. | |
4527 | ||
aca7a3d2 MB |
4528 | * cmds.c (internal_self_insert): In a multibyte buffer, insert C |
4529 | as is without converting it to unibyte. In a unibyte buffer, | |
4530 | convert C to multibyte before checking the syntax. | |
4531 | ||
1f45f627 | 4532 | * lisp.h (unibyte_char_to_multibyte): Delete extern. |
aca7a3d2 MB |
4533 | |
4534 | * minibuf.c (Fminibuffer_complete_word): Use the macro | |
4535 | FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. | |
4536 | ||
4537 | * regex.h (struct re_pattern_buffer): New member target_multibyte. | |
4538 | ||
4539 | * regex.c (RE_TARGET_MULTIBYTE_P): New macro. | |
4540 | (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If | |
4541 | that is zero, convert an eight-bit char to multibyte. | |
4542 | (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for | |
4543 | non-emacs case. | |
4544 | (PATFETCH): Convert an eight-bit char to multibyte. | |
4545 | (HANDLE_UNIBYTE_RANGE): New macro. | |
4546 | (regex_compile): Setup the compiled pattern for multibyte chars | |
4547 | even if the given regex string is unibyte. Use PATFETCH_RAW | |
4548 | instead of PATFETCH in many places. To handle `charset' | |
4549 | specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap | |
4550 | only for ASCII chars. | |
1f45f627 | 4551 | (analyse_first) <exactn>: Simplify because the compiled pattern |
aca7a3d2 MB |
4552 | is multibyte. |
4553 | <charset_not>: Setup fastmap from bitmap only for ASCII chars. | |
4554 | <charset>: Use CHAR_LEADING_CODE to get leading codes. | |
1f45f627 | 4555 | <categoryspec>: If multibyte, setup fastmap only for ASCII chars here. |
aca7a3d2 MB |
4556 | (re_compile_fastmap) [emacs]: Call analyse_first with the arg |
4557 | multibyte always 1. | |
4558 | (re_search_2): In emacs, set the locale variable multibyte to 1, | |
4559 | otherwise to 0. New local variable target_multibyte. Check it | |
4560 | to decide the multibyteness of STR1 and STR2. If | |
4561 | target_multibyte is zero, convert unibyte chars to multibyte | |
4562 | before translating and checking fastmap. | |
4563 | (TARGET_CHAR_AND_LENGTH): New macro. | |
4564 | (re_match_2_internal): In emacs, set the locale variable multibyte | |
4565 | to 1, otherwise to 0. New local variable target_multibyte. Check | |
4566 | it to decide the multibyteness of STR1 and STR2. Use | |
4567 | TARGET_CHAR_AND_LENGTH to fetch a character from D. | |
4568 | <charset, charset_not>: If multibyte is nonzero, check fastmap | |
4569 | only for ASCII chars. Call bcmp_translate with | |
4570 | target_multibyte, not with multibyte. | |
4571 | <begline>: Declare the local variable C as `unsigned'. | |
4572 | (bcmp_translate): Change the last arg name to target_multibyte. | |
4573 | ||
4574 | * search.c (compile_pattern_1): Don't adjust the multibyteness of | |
4575 | the regexp pattern and the matching target. Set cp->buf.multibyte | |
4576 | to the multibyteness of the regexp pattern. Set | |
1f45f627 | 4577 | cp->but.target_multibyte to the multibyteness of the matching target. |
aca7a3d2 MB |
4578 | (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of |
4579 | FETCH_STRING_CHAR_ADVANCE. | |
4580 | (Freplace_match): Convert unibyte chars to multibyte. | |
4581 | ||
4c4475a8 GM |
4582 | * syntax.c (char_quoted, back_comment, scan_words) |
4583 | (Fforward_comment, scan_lists, Fbackward_prefix_chars) | |
4584 | (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert | |
aca7a3d2 | 4585 | unibyte chars to multibyte. |
1f45f627 GM |
4586 | (skip_chars): Delete the arg syntaxp, and move the code for |
4587 | handling syntaxes to skip_syntaxes. Change callers. | |
aca7a3d2 MB |
4588 | Fix the case that the multibyteness of STRING and the current |
4589 | buffer doesn't match. | |
4590 | (skip_syntaxes): New function. | |
4591 | (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by | |
4592 | SINGLE_BYTE_CHAR_P. | |
aca7a3d2 | 4593 | |
73acf815 | 4594 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4595 | |
4596 | * xfaces.c (QCfontset): New variable. | |
4597 | (LFACE_FONTSET): New macro. | |
4598 | (check_lface_attrs): Check also LFACE_FONTSET_INDEX. | |
4599 | (set_lface_from_font_name): Setup LFACE_FONTSET (lface). | |
4c4475a8 GM |
4600 | (Finternal_set_lisp_face_attribute) |
4601 | (Finternal_get_lisp_face_attribute): Handle QCfontset. | |
aca7a3d2 MB |
4602 | (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, |
4603 | check also LFACE_FONTSET_INDEX. | |
4604 | (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not | |
4605 | attrs[LFACE_FONT_INDEX]. | |
4606 | (syms_of_xfaces): Intern and staticpro QCfontset. | |
4607 | ||
4608 | * dispextern.h (enum lface_attribute_index): New member | |
4609 | LFACE_FONTSET_INDEX. | |
4610 | ||
4611 | * fns.c (base64_encode_1): Handle eight-bit chars correctly. | |
4612 | ||
73acf815 | 4613 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4614 | |
4615 | * coding.c (coding_set_destination): Fix coding->destination for | |
4616 | the case converting a region. | |
4617 | (encode_coding_utf_8): Encode eight-bit chars as single byte. | |
4618 | (encode_coding_object): Fix coding->dst_pos and | |
4619 | coding->dst_pos_byte for the case converting a region. | |
4620 | ||
4621 | * insdel.c (insert_from_gap): Make it work even if PT != GTP. | |
4622 | ||
4623 | * character.h (BYTE8_STRING): New macro. | |
4624 | ||
4625 | * fns.c (base64_decode_1): Insert eight-bit chars correctly. | |
4626 | ||
73acf815 | 4627 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4628 | |
4629 | * xdisp.c (get_next_display_element): Don't display unibyte 8-bit | |
4630 | characters by octal form. | |
4631 | ||
4632 | * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. | |
4633 | ||
1f45f627 | 4634 | * buffer.h (_fetch_multibyte_char_len): Delete extern. |
4c4475a8 GM |
4635 | (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use |
4636 | _fetch_multibyte_char_len. | |
aca7a3d2 MB |
4637 | (FETCH_CHAR_AS_MULTIBYTE): New macro. |
4638 | ||
1f45f627 | 4639 | * casetab.c (set_canon, set_identity, shuffle): Simplify. |
aca7a3d2 | 4640 | |
1f45f627 | 4641 | * casefiddle.c (casify_object): Simplify. Handle the case that |
aca7a3d2 | 4642 | the case conversion change the byte length. |
1f45f627 | 4643 | (casify_region): Likewise. |
aca7a3d2 | 4644 | |
1f45f627 | 4645 | * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros. |
aca7a3d2 | 4646 | |
1f45f627 | 4647 | * character.c (_fetch_multibyte_char_len): Delet this variable. |
aca7a3d2 MB |
4648 | (syms_of_character): Setup Vprintable_chars. |
4649 | ||
4650 | * editfns.c (Fchar_equal): Fix for the unibyte case. | |
4651 | (Finsert_byte): New function. | |
4652 | (syms_of_editfns): Defsubr it. | |
4653 | ||
4654 | * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead | |
4655 | of direct code 0x3ffff. | |
4656 | ||
4657 | * search.c (Freplace_match): Fix for the unibyte case. | |
4658 | ||
73acf815 | 4659 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4660 | |
4661 | * lread.c (safe_to_load_p): Fix the logic. | |
4662 | ||
4663 | * syntax.c (scan_words): Don't treat characters belonging to | |
4664 | different scripts as constituting a word. | |
4665 | ||
4666 | * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
4667 | ||
1f45f627 | 4668 | * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script. |
aca7a3d2 MB |
4669 | |
4670 | * emacs.c (main): In the case of --unibyte, instead of aborting on | |
4671 | finding non-empty buffer, make it unibyte. | |
4672 | ||
73acf815 | 4673 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4674 | |
4675 | * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' | |
4676 | to create a fontset. | |
4677 | ||
73acf815 | 4678 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4679 | |
4680 | * character.c (Funibyte_char_to_multibyte): Doc fix. | |
4681 | ||
4682 | * xfns.c [HAVE_STDLIB_H]: Fix last change. | |
4683 | ||
73acf815 | 4684 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4685 | |
4686 | * fontset.c (fontset_add): Make the type `int'. | |
4687 | (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. | |
4688 | ||
4c4475a8 GM |
4689 | * character.c (unibyte_char_to_multibyte) |
4690 | (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to | |
aca7a3d2 | 4691 | charset_unibyte, not charset_primary. |
aca7a3d2 | 4692 | |
1f45f627 | 4693 | * charset.h (charset_unibyte): Extern it instead of charset_primary. |
aca7a3d2 | 4694 | |
1f45f627 GM |
4695 | * charset.c (charset_unibyte): Rename from charset_primary. |
4696 | (Funibyte_charset): Rename from Fprimary_charset. | |
4697 | (Fset_unibyte_charset): Rename from Fset_primary_charset. | |
4698 | (syms_of_charset): Adjust for the above changes. | |
aca7a3d2 MB |
4699 | |
4700 | * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
4701 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
4702 | it->multibyte_p is zero. | |
4703 | ||
4704 | * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): | |
1f45f627 | 4705 | Delete extern. |
aca7a3d2 | 4706 | |
73acf815 | 4707 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4708 | |
4709 | * coding.c (Fdefine_coding_system_internal): Fix category setting | |
4710 | for a coding system of type iso-2022. | |
4711 | ||
73acf815 | 4712 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 4713 | |
1f45f627 | 4714 | * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1. |
aca7a3d2 | 4715 | |
73acf815 | 4716 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4717 | |
4718 | * syntax.c (Vnext_word_boundary_function_table): New variable. | |
1c8658b9 GM |
4719 | (next-word-boundary-function-table): Declare it as a Lisp variable |
4720 | in syms_of_syntax. | |
aca7a3d2 MB |
4721 | (scan_words): Call functions in Vnext_word_boundary_function_table |
4722 | if any. | |
4723 | ||
4724 | * xterm.c (x_load_font): Initialize fontp->fontset to -1. | |
4725 | ||
4726 | * fontset.c (fs_load_font): If fontp->charset is not negative, | |
4727 | return fontp without setting its members. | |
4728 | ||
73acf815 | 4729 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 4730 | |
aca7a3d2 MB |
4731 | * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). |
4732 | ||
4733 | * m/sparc.h (HAVE_ALLOCA): Delete. | |
4734 | ||
4735 | * s/irix6-5.h: Don't include strings.h. | |
4736 | (bcopy, bzero, bcmp): Don't undef. | |
4737 | ||
4738 | * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. | |
4739 | ||
4740 | * s/usg5-4.h (NO_SIOCTL_H): Don't define. | |
4741 | (TIOCSIGSEND): Don't test IRIX6. | |
4742 | (bcopy, bzero, bcmp): Define conditionally. | |
4743 | ||
73acf815 | 4744 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4745 | |
4746 | * buffer.c (Qas, Qmake, Qto): New variables. | |
1f45f627 | 4747 | (Fset_buffer_multibyte): New optional arg METHOD. Change caller. |
aca7a3d2 MB |
4748 | (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. |
4749 | ||
4750 | * callproc.c (Fcall_process): Don't call insert_1_both directly if | |
4751 | we are inserting a process output into a multibyte buffer. | |
4752 | ||
4753 | * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call | |
4754 | multibyte_char_to_unibyte. | |
4755 | ||
4756 | * character.c (Funibyte_char_to_multibyte): If C can't be decoded | |
4757 | by the primary charset, make it eight-bit char. | |
4758 | (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. | |
4759 | ||
1f45f627 GM |
4760 | * charset.c (charset_eight_bit, Qeight_bit_control): New variables. |
4761 | (charset_8_bit__control, charset_8_bit_graphic) | |
4762 | (Qeight_bit_control, Qeight_bit_graphic): Delete these variables. | |
aca7a3d2 MB |
4763 | (define_charset_internal): New function. |
4764 | (syms_of_charset): Call define_charset_internal for pre-defined | |
4765 | charsets. | |
4766 | ||
4767 | * charset.h (charset_8_bit): Extern it. | |
4768 | ||
1f45f627 | 4769 | * coding.c (make_conversion_work_buffer): Adjust for the change |
aca7a3d2 MB |
4770 | of Fset_buffer_multibyte. |
4771 | (encode_coding_raw_text): Increment p0 in the loop. | |
4772 | ||
1f45f627 | 4773 | * lisp.h (Fset_buffer_multibyte): Adjust prototype. |
aca7a3d2 | 4774 | |
1f45f627 | 4775 | * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust |
aca7a3d2 MB |
4776 | for the change of Fset_buffer_multibyte. |
4777 | ||
4778 | * fns.c (Fstring_to_multibyte): New function. | |
4779 | (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. | |
4780 | ||
73acf815 | 4781 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
4782 | |
4783 | * xfns.c (x_put_x_image): Declare args. | |
4784 | ||
1f45f627 | 4785 | * xfaces.c (font_name_registry, choose_face_font): Delete unused vars. |
aca7a3d2 MB |
4786 | (try_font_list): Declare an arg. |
4787 | ||
4788 | * xdisp.c (message2_nolog, set_message): Declare an arg. | |
4789 | ||
4790 | * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. | |
4791 | ||
4792 | * syntax.c (scan_sexps_forward): Declare an arg. | |
4793 | ||
4794 | * scroll.c (calculate_scrolling, calculate_direct_scrolling): | |
4795 | Declare an arg. | |
4796 | ||
4797 | * lisp.h (Fnew_fontset): Declare. | |
4798 | ||
4799 | * keymap.c (push_key_description): Call CHARACTERP correctly. | |
4800 | ||
1f45f627 | 4801 | * fontset.c (fontset_add): Declare args. Call make_number correctly. |
aca7a3d2 MB |
4802 | (face_for_char): Delete unused vars. |
4803 | (Fset_fontset_font): Doc fix. Delete unused vars. | |
4804 | ||
4805 | * doc.c (Fsubstitute_command_keys): Delete unused vars. | |
4806 | ||
4807 | * composite.c (update_compositions): Declare arg. | |
4808 | ||
4809 | * cm.c (calccost, cmgoto): Declare args. | |
4810 | ||
4811 | * charset.c: Remove `emacs' conditional. Doc fixes. | |
4812 | (map_char_table_for_charset): Declare. | |
4813 | ||
1f45f627 | 4814 | * character.c (syms_of_character) <translation-table-vector>: Doc fix. |
aca7a3d2 | 4815 | |
1f45f627 | 4816 | * ccl.c: Remove `emacs' conditional. |
aca7a3d2 | 4817 | |
73acf815 | 4818 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4819 | |
4820 | The following changes are to allow specifying multiple font | |
4821 | patterns for a character range (specified by script or charset). | |
4822 | ||
4823 | * Makefile.in (abbrev.o): Depend on syntax.h. | |
4824 | (xfaces.o): Depend on charset.h. | |
4825 | ||
4826 | * alloc.c (Fmake_string): Use ASCII_CHAR_P, not | |
4827 | SINGLE_BYTE_CHAR_P. | |
4828 | ||
4829 | * ccl.c (Fccl_execute_on_string): Add `const' to local variables. | |
4830 | ||
4831 | * character.h (Vchar_script_table): Extern it. | |
4832 | ||
1f45f627 | 4833 | * character.c (Vscript_alist): Delete. |
aca7a3d2 MB |
4834 | (Vchar_script_table, Qchar_script_table): New variable. |
4835 | (syms_of_character): Declare Vchar_script_table as a lisp variable | |
4836 | and initialize it. | |
4837 | ||
1f45f627 | 4838 | * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't |
aca7a3d2 MB |
4839 | have property char-table-extra-slots, make no extra slot. |
4840 | ||
1f45f627 | 4841 | * dispextern.h (struct face): Delete member `charset'. |
4c4475a8 GM |
4842 | (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not |
4843 | SINGLE_BYTE_CHAR_P. | |
1f45f627 GM |
4844 | (choose_face_font, lookup_non_ascii_face, font_name_registry): |
4845 | Add prototypes. | |
4846 | (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype. | |
4847 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
4848 | |
4849 | * fontset.h (get_font_repertory_func): New prototype. | |
1f45f627 | 4850 | (make_fontset_for_ascii_face, fs_load_font): Fix prototypes. |
aca7a3d2 MB |
4851 | (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. |
4852 | ||
4853 | * fontset.c (Qprepend, Qappend): New variables. | |
1f45f627 | 4854 | (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete. |
aca7a3d2 MB |
4855 | (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. |
4856 | (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. | |
4857 | (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. | |
4858 | (fontset_ref_and_range, fontset_add, reorder_font_vector) | |
4859 | (load_font_get_repertory): New functions. | |
1f45f627 | 4860 | (fontset_set): Delete. |
aca7a3d2 | 4861 | (fontset_face): New arg FACE. Return face ID, not face. |
1f45f627 | 4862 | Complete re-write to handle new fontset structure. Change caller. |
aca7a3d2 MB |
4863 | (free_face_fontset): Use ASET istead of AREF (X) = Y. |
4864 | (face_for_char): Don't call lookup_face. | |
4865 | (make_fontset_for_ascii_face): New arg FACE. | |
4866 | (fs_load_font): New arg CHARSET_ID. Don't check | |
4867 | Vfont_encoding_alist here. | |
4868 | (find_font_encoding): New function. | |
4869 | (list_fontsets): Use STRINGP, not ! NILP. | |
4870 | (accumulate_script_ranges): New function. | |
4871 | (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely | |
4872 | re-written to handle new fontset structure. | |
4873 | (Ffontset_font): Return a copy of element. | |
4874 | (syms_of_fontset): Define symbols Qprepend and Qappend. Fix | |
4875 | docstring of font-encoding-alist. | |
4876 | ||
4877 | * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). | |
4878 | (Fset_fotset_font): Fix arguments to 5. | |
4879 | ||
1f45f627 | 4880 | * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face. |
aca7a3d2 MB |
4881 | |
4882 | * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): | |
4883 | Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
1f45f627 | 4884 | (highlight_trailing_whitespace): Adjust for the change of |
aca7a3d2 MB |
4885 | lookup_named_face. |
4886 | ||
4887 | * xfaces.c: Include charset.h. | |
1f45f627 GM |
4888 | (load_face_font): Delete argument C. Change caller. |
4889 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
4890 | (font_name_registry): New function. |
4891 | (cache_face): Store ascii faces before non-ascii faces in buckets. | |
1f45f627 | 4892 | (lookup_face): Delete arguments C and BASE_FACE. Change caller. |
aca7a3d2 MB |
4893 | Lookup only ascii faces. |
4894 | (lookup_non_ascii_face): New function. | |
1f45f627 GM |
4895 | (lookup_named_face): Delete argument C. Change caller. |
4896 | (lookup_derived_face): Delete argument C. Change caller. | |
4897 | (try_font_list): New arg PATTERN. Change caller. If PATTERN is | |
aca7a3d2 | 4898 | a string, just call font_list with it. |
1f45f627 GM |
4899 | (choose_face_font): Delete arguments FACE and C. New arg |
4900 | FONT_SPEC. Change caller. | |
4c4475a8 GM |
4901 | (realize_face, realize_x_face): Delete arguments C and BASE_FACE. |
4902 | Change caller. | |
aca7a3d2 MB |
4903 | (realize_non_ascii_face): New function. |
4904 | (realize_x_face): Call load_face_font here. | |
1f45f627 | 4905 | (realize_tty_face): Delete argument C. Change caller. |
aca7a3d2 MB |
4906 | (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to |
4907 | get a face ID. | |
4908 | (dump_realized_face): Don't print charset of FACE. | |
4909 | ||
4910 | * xfns.c (x_set_font): Always call x_new_fontset and | |
4911 | store_frame_parameter. | |
4912 | (Fx_create_frame): Call x_new_fontset, not x_new_font. | |
1f45f627 | 4913 | (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory. |
aca7a3d2 MB |
4914 | |
4915 | * xterm.h (x_get_font_repertory): Extern it. | |
4916 | ||
4917 | * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
4918 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
4919 | it->multibyte_p is zero. | |
4920 | (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
4921 | (x_new_fontset): If FONTSETNAME doesn't match any existing | |
4922 | fontsets, create a new one. | |
4923 | (x_get_font_repertory): New function. | |
4924 | ||
73acf815 | 4925 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4926 | |
4927 | * coding.c (Ffind_coding_systems_region_internal): Detect an | |
4928 | ASCII only string correctly. | |
4929 | ||
4930 | * lread.c (Fload): Don't load with Qload_force_doc_strings t if | |
4931 | version is 0. | |
4932 | ||
73acf815 | 4933 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4934 | |
4935 | * lread.c: Include "coding.h". | |
1f45f627 GM |
4936 | (Qget_emacs_mule_file_char, Qload_force_doc_strings) |
4937 | (load_each_byte, unread_char): New variables. | |
4938 | (readchar_backlog): Delete. | |
aca7a3d2 MB |
4939 | (readchar): Return a character unless load_each_byte is nonzero. |
4940 | Handle the case that readcharfun is Qget_emacs_mule_file_char or a | |
4941 | cons. If unread_char is not -1, simply return it. | |
4942 | (unreadchar): Handle the case that readcharfun is | |
1f45f627 GM |
4943 | Qget_emacs_mule_file_char or a cons. Set unread_char if necessary. |
4944 | (read_multibyte): Delete. | |
aca7a3d2 MB |
4945 | (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) |
4946 | (read_emacs_mule_char): New functions. | |
4947 | (Fload): Even if the file doesn't have the extention ".elc", if | |
4948 | safe_to_load_p returns a positive version number, assume that the | |
4949 | file contains bytecompiled code. If the version is less than 22, | |
4950 | load the file while decoding multibyte sequences by emacs-mule. | |
4951 | (readevalloop): Don't use readchar_backlog. | |
1f45f627 GM |
4952 | (Fread): Likewise. Pay attention to the case that STREAM is a cons. |
4953 | (Fread_from_string): Pay attention to the case that STREAM is a cons. | |
4954 | (read_escape): Delete the arg BYTEREP. | |
aca7a3d2 MB |
4955 | (read1): Set load_each_byte to 1 temporarily while handling |
4956 | #@NUMBER. Don't call read_multibyte. | |
4957 | (read_vector): Call Fread with a cons. If readcharfun is | |
4958 | Qget_emacs_mule_file_char, decode the read string by emacs-mule. | |
1f45f627 | 4959 | (read_list): If doc_reference is 2, make the cdr part string as unibyte. |
aca7a3d2 MB |
4960 | (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char |
4961 | and Qload_force_doc_strings. | |
4962 | ||
73acf815 | 4963 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4964 | |
4965 | * xdisp.c (face_before_or_after_it_pos): Call | |
4966 | FETCH_MULTIBYTE_CHAR with byte postion, not char position. | |
4967 | ||
73acf815 | 4968 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
4969 | |
4970 | * character.h (TRAILING_CODE_P): New macro. | |
1f45f627 | 4971 | (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
4972 | (string_char_with_unification): Fix prototype. |
4973 | (Vscript_alist): Extern it. | |
4974 | ||
4975 | * character.c (Vscript_alist): New variable. | |
4c4475a8 GM |
4976 | (string_char_with_unification, str_as_unibyte) |
4977 | (string_escape_byte8): Add `const' to local variables. | |
aca7a3d2 MB |
4978 | (syms_of_character): Declare script-alist as a Lisp variable. |
4979 | ||
4980 | * charset.h (Vcharset_ordered_list): Extern it. | |
4981 | (charset_ordered_list_tick): Extern it. | |
4982 | (EMACS_MULE_LEADING_CODE_PRIVATE_11) | |
4983 | (EMACS_MULE_LEADING_CODE_PRIVATE_12) | |
4984 | (EMACS_MULE_LEADING_CODE_PRIVATE_21) | |
4985 | (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros | |
1f45f627 | 4986 | (Funify_charset): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
4987 | |
4988 | * charset.c (charset_ordered_list_tick): New variable. | |
4989 | (Fdefine_charset_internal): Increment charset_ordered_list_tick. | |
4990 | (Funify_charset): New optional arg DEUNIFY. If it is non-nil, | |
4991 | deunify intead of unify a charset. | |
4992 | (string_xstring_p): Add `const' to local variables. | |
1f45f627 GM |
4993 | (find_charsets_in_text): Add `const' to arguemnts and local variables. |
4994 | (encode_char): Adjust for the change of Funify_charset. Fix | |
aca7a3d2 MB |
4995 | detecting of invalid code. |
4996 | (Fset_charset_priority): Increment charset_ordered_list_tick. | |
4997 | (Fmap_charset_chars): Fix handling of default value for FROM_CODE | |
4998 | and TO_CODE. | |
4999 | ||
5000 | * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) | |
1f45f627 GM |
5001 | (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros. |
5002 | Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. | |
4c4475a8 GM |
5003 | (decode_coding_ccl, consume_chars) |
5004 | (Ffind_coding_systems_region_internal) | |
5005 | (Fcheck_coding_systems_region): Add `const' to local variables. | |
aca7a3d2 MB |
5006 | |
5007 | * print.c (print_object): Use octal form for printing the | |
5008 | contents of a bool vector. | |
5009 | ||
73acf815 | 5010 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5011 | |
5012 | * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. | |
5013 | <version == 20>: Refuse to load. | |
5014 | ||
73acf815 | 5015 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5016 | |
5017 | * fns.c: Move coding.h. | |
5018 | (Qcodeset, Qdays, Qmonths): New. | |
5019 | (concat): Use CHARACTERP instead of INTERGERP. | |
1f45f627 | 5020 | (Flocale_codeset): Delete. |
aca7a3d2 | 5021 | (Flanginfo): New function. |
1f45f627 | 5022 | (syms_of_fns): Change accordingly. |
aca7a3d2 MB |
5023 | |
5024 | * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. | |
5025 | ||
73acf815 | 5026 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5027 | |
5028 | * casetab.c (init_casetab_once, init_casetab_once): Fix | |
5029 | CHAR_TABLE_SET call. | |
5030 | ||
5031 | * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. | |
5032 | ||
5033 | * character.c (syms_of_character): Fix CHAR_TABLE_SET call. | |
5034 | ||
5035 | * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. | |
5036 | (load_charset_map, Fdeclare_equiv_charset, Fencode_char) | |
5037 | (Fset_charset_priority, syms_of_charset): Convert Lisp types. | |
5038 | ||
5039 | * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. | |
5040 | ||
5041 | * coding.c (ENCODE_DESIGNATION, decode_eol) | |
5042 | (make_conversion_work_buffer, code_conversion_restore) | |
5043 | (Fdefine_coding_system_internal): Convert Lisp types. | |
5044 | (code_conversion_restore): Use EQ, not ==. | |
5045 | (Fencode_coding_string): Fix code_convert_string call. | |
5046 | ||
5047 | * coding.h (code_convert_region): Fix prototype. | |
5048 | ||
1f45f627 | 5049 | * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove. |
aca7a3d2 MB |
5050 | |
5051 | * fontset.c (fontset_ref, fontset_set, fs_load_font) | |
5052 | (Ffontset_info): Convert Lisp types. | |
5053 | ||
5054 | * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. | |
5055 | ||
5056 | * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. | |
5057 | ||
5058 | * xdisp.c (display_mode_element): Fix call of Fset_text_properties. | |
5059 | ||
5060 | * chartab.c: Include "...h", not <...h> in some cases. | |
5061 | ||
5062 | * callproc.c (Fcall_process): Remove unused variables. | |
5063 | ||
73acf815 | 5064 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5065 | |
5066 | * coding.c (Fset_coding_system_priority): Allow null arg list. | |
5067 | ||
73acf815 | 5068 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5069 | |
5070 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
5071 | (Fself_insert_and_exit): Use CHARACTERP. | |
5072 | ||
5073 | * callproc.c (Fcall_process): Remove unused vars. | |
5074 | ||
5075 | * xterm.c (XTread_socket): Add extra dead keysyms. | |
5076 | ||
5077 | * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. | |
5078 | ||
5079 | * dispextern.h: Remove prototypes for redraw_frame, | |
5080 | redraw_garbaged_frames. | |
5081 | ||
5082 | * cmds.c (Fself_insert_command): Use CHARACTERP. | |
5083 | ||
5084 | * chartab.c (make_sub_char_table): Remove unused var. | |
5085 | (Fset_char_table_default, Fmap_char_table): Doc fix. | |
5086 | ||
5087 | * keymap.c (access_keymap): Remove generic char code. | |
5088 | (push_key_description): Use CHARACTERP. | |
5089 | ||
73acf815 | 5090 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5091 | |
5092 | * charset.c: Doc fixes. | |
5093 | (Funify_charset): Extra checking. | |
5094 | ||
73acf815 | 5095 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5096 | |
5097 | * lread.c: Remove some unused variables. | |
5098 | (safe_to_load_p): If safe, return the magic number version byte. | |
5099 | (Fload): Maybe use load-with-code-conversion. | |
5100 | ||
73acf815 | 5101 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5102 | |
5103 | * category.c (Fmodify_category_entry): Don't modify the contents | |
5104 | of category_set for characters out of the range. Avoid | |
5105 | unnecessary modification. | |
5106 | ||
1f45f627 | 5107 | * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of |
aca7a3d2 MB |
5108 | Vchar_unify_table. The default value of the table is now nil. |
5109 | ||
5110 | * character.c (syms_of_character): Setup Vchar_width_table for | |
5111 | eight-bit-control and raw-byte chars. | |
5112 | ||
5113 | * charset.h (enum define_charset_arg_index): Delete | |
5114 | charset_arg_parents and add charset_arg_subset and | |
5115 | charset_arg_superset. | |
5116 | (enum charset_attr_index): Delete charset_parents and add | |
5117 | charset_subset and charset_superset. | |
5118 | (enum charset_method): Delete CHARSET_METHOD_INHERIT and add | |
5119 | CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. | |
1f45f627 | 5120 | (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete. |
aca7a3d2 MB |
5121 | (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) |
5122 | (CHARSET_SUPERSET): New macros. | |
5123 | (charset_work): Extern it. | |
5124 | (ENCODE_CHAR): Use charset_work. | |
1f45f627 | 5125 | (CHAR_CHARSET_P): Adjust for the change of encoder format. |
aca7a3d2 MB |
5126 | (map_charset_chars): Extern it. |
5127 | ||
5128 | * charset.c (load_charset_map): Set the default value of encoder | |
5129 | and deunifier char-tables to nil. | |
1f45f627 | 5130 | (map_charset_chars): Change argument. Change callers. Use |
aca7a3d2 MB |
5131 | map_char_table_for_charset instead of map_char_table. |
5132 | (Fmap_charset_chars): New optional args from_code and to_code. | |
1f45f627 | 5133 | (Fdefine_charset_internal): Adjust for the change of |
aca7a3d2 MB |
5134 | `define-charset' (:parents -> :subset or :superset). |
5135 | (charset_work): New variable. | |
4c4475a8 GM |
5136 | (encode_char, syms_of_charset): Adjust for the change of |
5137 | Fdefine_charset_internal. | |
aca7a3d2 MB |
5138 | (Ffind_charset_string): Setup the vector `charsets' correctly. |
5139 | ||
1f45f627 | 5140 | * chartab.c (sub_char_table_ref_and_range): New arg default. Fix |
aca7a3d2 | 5141 | the previous change. |
1f45f627 | 5142 | (char_table_ref_and_range): Adjust for the above change. |
aca7a3d2 MB |
5143 | (map_sub_char_table_for_charset): New function. |
5144 | (map_char_table_for_charset): New function. | |
5145 | ||
5146 | * keymap.c (describe_vector): Handle a char-table directly here. | |
1f45f627 | 5147 | (describe_char_table): Delete. |
aca7a3d2 | 5148 | |
1f45f627 | 5149 | * lisp.h (map_charset_chars): Delete. |
aca7a3d2 | 5150 | |
73acf815 | 5151 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5152 | |
5153 | * fns.c (count_combining): Comment out (unused). | |
5154 | (Flocale_codeset): New. | |
5155 | (syms_of_fns): Defsubr it. | |
5156 | ||
5157 | * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. | |
1f45f627 | 5158 | (size_t): Remove. |
aca7a3d2 | 5159 | |
73acf815 | 5160 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 5161 | |
6f69e89b | 5162 | * Makefile.in (chartab.o): Depend on charset.h. |
aca7a3d2 | 5163 | |
73acf815 | 5164 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5165 | |
5166 | * character.c (syms_of_character): Set the default value of | |
5167 | Vprintable_chars to Qnil. | |
5168 | ||
73acf815 | 5169 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5170 | |
5171 | * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. | |
5172 | ||
73acf815 | 5173 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5174 | |
5175 | * charset.c (load_charset_map): Handle the case that from < to | |
5176 | correctly. | |
5177 | ||
4c4475a8 GM |
5178 | * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022) |
5179 | (encode_coding_sjis, encode_coding_big5, encode_coding_charset): | |
5180 | Pay attention to raw-8-bit chars. | |
aca7a3d2 | 5181 | |
73acf815 | 5182 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5183 | |
4c4475a8 GM |
5184 | * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el. |
5185 | It is not bytecompiled now. | |
aca7a3d2 MB |
5186 | |
5187 | * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) | |
5188 | (charset_jisx0208): New variables. | |
5189 | (Fdefine_charset_internal): Setup them if appropriate. | |
5190 | (init_charset_once): Initialize them to -1. | |
5191 | ||
1f45f627 GM |
5192 | * charset.h (charset_jisx0201_roman, charset_jisx0208_1978) |
5193 | (charset_jisx0208): Extern them. | |
aca7a3d2 MB |
5194 | |
5195 | * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro | |
5196 | (CODING_ISO_FLAG_USE_OLDJIS): New macro. | |
1f45f627 GM |
5197 | (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition. |
5198 | (setup_iso_safe_charsets): Fix arguments to Fassq. | |
4c4475a8 GM |
5199 | (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1) |
5200 | (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to | |
5201 | CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS. | |
aca7a3d2 MB |
5202 | (encode_coding_iso_2022): Change the 1st arg to |
5203 | ENCODE_ISO_CHARACTER to a variable. | |
5204 | ||
73acf815 | 5205 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5206 | |
5207 | * charset.h (enum define_charset_arg_index): New enums | |
5208 | charset_arg_min_code and charset_arg_max_code. | |
5209 | (struct charset): New member char_index_offset. | |
5210 | ||
4c4475a8 GM |
5211 | * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT): |
5212 | Take charset->char_index_offset into account. | |
aca7a3d2 MB |
5213 | (Fdefine_charset_internal): Handle args[charset_arg_min_code] and |
5214 | args[charset_arg_max_code]. Setup charset.char_index_offset. | |
5215 | (syms_of_charset): Fix args to Fdefine_charset_internal. | |
5216 | ||
73acf815 | 5217 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5218 | |
5219 | * coding.c (decode_coding_utf_8): Reject overlong sequences. | |
5220 | ||
73acf815 | 5221 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5222 | |
5223 | * coding.c: Doc fixes. | |
5224 | (Fcoding_system_aliases): Fix return value. | |
5225 | (Qmac): Remove (duplicated) definition. | |
5226 | ||
73acf815 | 5227 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5228 | |
5229 | * charset.c (Fcharset_priority_list, Fset_charset_priority): New | |
5230 | functions. | |
5231 | ||
5232 | * character.c (Fstring): Doc fix. | |
5233 | ||
5234 | * charset.c (Fdefine_charset_alias): Update Vcharset_list. | |
5235 | ||
5236 | * fontset.c (Ffontset_info): Doc fix. Return charset names, not | |
5237 | ids. | |
5238 | (font-encoding-alist): Doc fix. | |
5239 | ||
73acf815 | 5240 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5241 | |
5242 | * term.c (costs_set): Declare static, non-initialized for pcc. | |
1f45f627 | 5243 | (encode_terminal_code): Remove unused var. |
aca7a3d2 MB |
5244 | |
5245 | * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | |
5246 | for K&R. | |
5247 | ||
5248 | * xterm.c (xlwmenu_window_p): Fix prototype for K&R. | |
5249 | ||
5250 | * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. | |
1f45f627 | 5251 | (suffixes): Move out of make_subsidiaries for K&R. |
aca7a3d2 | 5252 | |
1f45f627 | 5253 | * charset.c (map_charset_chars): Fix c_function declaration for K&R. |
aca7a3d2 MB |
5254 | |
5255 | * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. | |
5256 | ||
73acf815 | 5257 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5258 | |
5259 | * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. | |
5260 | ||
1f45f627 | 5261 | * category.c (Fmodify_category_entry): Doc fix. Remove unused vars. |
aca7a3d2 | 5262 | |
73acf815 | 5263 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 MB |
5264 | |
5265 | * charset.c (Fdefine_charset_internal): Fix argument to bzero. | |
5266 | ||
1f45f627 | 5267 | * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96. |
aca7a3d2 | 5268 | |
73acf815 | 5269 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5270 | |
4c4475a8 | 5271 | * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el, |
aca7a3d2 | 5272 | vietnamese.elc to vietnamese.el. They are not bytecompiled now. |
aca7a3d2 | 5273 | |
73acf815 | 5274 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5275 | |
1f45f627 | 5276 | * coding.c (decode_coding_charset): Adjust for the change of |
aca7a3d2 MB |
5277 | Fdefine_coding_system_internal. |
5278 | (Fdefine_coding_system_internal): For a coding system of | |
5279 | `charset' type, store a list of charset IDs in | |
5280 | `charset_attr_charset_valids' element of coding attributes. | |
5281 | ||
73acf815 | 5282 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5283 | |
5284 | * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. | |
1f45f627 GM |
5285 | (emacs_mule_char): New arg src. Delete arg `composition'. Change |
5286 | caller. Handle 2-byte and 3-byte charsets correctly. | |
5287 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from | |
5288 | DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller. | |
aca7a3d2 MB |
5289 | (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. |
5290 | (DECODE_EMACS_MULE_21_COMPOSITION): Call | |
5291 | DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation | |
5292 | sequence. | |
5293 | (decode_coding_emacs_mule): Handle composition correctly. Rewind | |
1f45f627 | 5294 | `src' and `consumed_chars' correctly before calling emacs_mule_char. |
aca7a3d2 MB |
5295 | (DECODE_COMPOSITION_START): Correctly handle the case of altchar |
5296 | and alt&rule composition. | |
5297 | (decode_coding_iso_2022): Handle composition correctly. | |
5298 | (init_coding_once): Setup emacs_mule_bytes for private charsets. | |
5299 | ||
5300 | * charset.c (Fdefine_charset_internal): Fix bug for the case of | |
5301 | re-defining a charset. If the charset has :emacs-mule-id, setup | |
5302 | emacs_mule_bytes. | |
1f45f627 | 5303 | (Fmake_char): If CODE1 is nil, use the minimum code of the charset. |
aca7a3d2 | 5304 | |
73acf815 | 5305 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5306 | |
4c4475a8 GM |
5307 | * coding.c (encode_coding_iso_2022, encode_coding_sjis) |
5308 | (encode_coding_big5, encode_coding_charset): If coding requires safe | |
aca7a3d2 MB |
5309 | encoding, produce a character specified by |
5310 | CODING_INHIBIT_CHARACTER_SUBSTITUTION. | |
aca7a3d2 | 5311 | |
73acf815 | 5312 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5313 | |
5314 | * xterm.c (XSetIMValues): Declare. | |
5315 | ||
5316 | * process.c: Conditionally include sys/wait.h, pty.h. | |
5317 | ||
1f45f627 | 5318 | * print.c (print_object): Fix print format for 64-bit systems. |
aca7a3d2 | 5319 | |
1f45f627 | 5320 | * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems. |
aca7a3d2 MB |
5321 | |
5322 | * buffer.c (emacs_strerror): Declare. | |
aca7a3d2 MB |
5323 | |
5324 | * fontset.c (Fclear_face_cache): Declare. | |
1f45f627 | 5325 | (accumulate_font_info): Comment-out (unused). |
aca7a3d2 MB |
5326 | (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused |
5327 | variables. | |
5328 | ||
5329 | * character.h (string_escape_byte8): Declare. | |
5330 | ||
5331 | * charset.c (load_charset_map, load_charset_map_from_file): Remove | |
5332 | unused vars. | |
5333 | (Fdefine_charset_internal, Fsplit_char, syms_of_charset) | |
5334 | (Fmap_charset_chars): Doc fix. | |
5335 | ||
1f45f627 | 5336 | * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove. |
aca7a3d2 MB |
5337 | (Fset_coding_system_priority, Fset_coding_system_priority) |
5338 | (Fdefine_coding_system_internal): Doc fix. | |
5339 | ||
73acf815 | 5340 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5341 | |
5342 | * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. | |
5343 | ||
73acf815 | 5344 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5345 | |
5346 | * character.c (string_escape_byte8): Make multibyte string with | |
5347 | correct size. | |
5348 | ||
5349 | * charset.c (Fmake_char): Delete unnecessary code. | |
5350 | ||
73acf815 | 5351 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5352 | |
5353 | * xfns.c (x_encode_text): Allocate coding.destination here, and | |
5354 | call encode_coding_object with dst_object Qnil. | |
5355 | ||
5356 | * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | |
5357 | multibyte form correctly. | |
5358 | ||
5359 | * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | |
5360 | against Vfont_encoding_alist. | |
5361 | ||
5362 | * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | |
5363 | handling of charset list. | |
5364 | (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | |
5365 | (decode_coding_object): Move point to coding->dst_pos before | |
5366 | calling post-read-conversion function. | |
5367 | (encode_coding_object): Give correct arguments to | |
5368 | pre-write-conversion. Ignore the return value of | |
5369 | pre-write-conversion function. Pay attention to the case that | |
5370 | pre-write-conversion changes the current buffer. If dst_object is | |
5371 | Qt, even if coding->src_bytes is zero, allocate at least one byte | |
5372 | to coding->destination. | |
5373 | ||
5374 | * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | |
5375 | ||
5376 | * charset.c (Fmake_char): Make it more backward compatible. | |
5377 | (Fmap_charset_chars): Fix docstring. | |
5378 | ||
73acf815 | 5379 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5380 | |
5381 | * coding.c: Doc fixes. | |
5382 | (Fdefine_coding_system_alias): Use names, not symbols, in | |
5383 | coding-system-alist. | |
5384 | ||
73acf815 | 5385 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5386 | |
5387 | * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead | |
5388 | of calling free_realized_face. | |
5389 | ||
73acf815 | 5390 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 | 5391 | |
1f45f627 GM |
5392 | * charset.c (read_hex): Don't treat SPC as a comment starter. |
5393 | (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1. | |
aca7a3d2 MB |
5394 | (Fdecode_char): Fix typo. |
5395 | ||
73acf815 | 5396 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5397 | |
5398 | * charset.h (struct charset): New member `code_space_mask'. | |
5399 | ||
1f45f627 | 5400 | * coding.c (coding_set_source): Delete the local variable beg_byte. |
4c4475a8 GM |
5401 | (encode_coding_charset, Fdefine_coding_system_internal): |
5402 | Delete the local variable charset. | |
aca7a3d2 MB |
5403 | (Fdefine_coding_system_internal): Setup |
5404 | attrs[coding_attr_charset_valids] correctly. | |
5405 | ||
5406 | * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' | |
5407 | member to check if CODE is valid or not. | |
5408 | (Fdefine_charset_internal): Initialize `code_space_mask' member. | |
5409 | (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE | |
5410 | is within the range of charset->min_code and carset->max_code. | |
5411 | ||
73acf815 | 5412 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
5413 | |
5414 | * syntax.h (syntax_temp) [!__GNUC__]: Declare. | |
5415 | ||
5416 | * dispextern.h (generate_ascii_font): Fix return type. | |
5417 | ||
5418 | * xfaces.c (generate_ascii_font): Fix arg declaration. | |
5419 | ||
5420 | * coding.c (coding_inherit_eol_type) | |
5421 | (Fset_terminal_coding_system_internal) | |
5422 | (Fset_safe_terminal_coding_system_internal): Fix arg declarations. | |
5423 | ||
73acf815 | 5424 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5425 | |
5426 | * coding.c (decode_coding_charset, encode_coding_charset): Handle | |
5427 | multiple charsets correctly. | |
5428 | ||
73acf815 | 5429 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5430 | |
5431 | * search.c (boyer_moore): Fix handling of mulitbyte character | |
5432 | translation. | |
5433 | ||
5434 | * xdisp.c (display_mode_element): When the variable `elt' is | |
5435 | changed, update `this' and `lisp_string'. | |
5436 | ||
73acf815 | 5437 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5438 | |
5439 | * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. | |
5440 | ||
5441 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
1f45f627 | 5442 | to decode_coding_c_string. Update PT and PT_BYTE after the insertion. |
aca7a3d2 MB |
5443 | |
5444 | * charset.c (struct charset_map_entries): New struct. | |
1f45f627 GM |
5445 | (load_charset_map): Rename from parse_charset_map. New args |
5446 | entries and n_entries. Change caller. | |
5447 | (load_charset_map_from_file): Rename from load_charset_map. | |
5448 | Change caller. New arg control_flag. Call load_charset_map at | |
aca7a3d2 MB |
5449 | the tail. |
5450 | (load_charset_map_from_vector): New function. | |
5451 | (Fdefine_charset_internal): Setup charset.compact_codes_p. | |
5452 | (encode_char): If the charset is compact, change a character index | |
5453 | to a code point. | |
5454 | ||
5455 | * coding.c (coding_alloc_by_making_gap): Check the case that the | |
5456 | source and destination are the same correctly. | |
5457 | (decode_coding_raw_text): Set coding->consumed_char and | |
5458 | coding->consumed to 0. | |
5459 | (produce_chars): If coding->chars_at_source is nonzero, update | |
5460 | coding->consumed_char and coding->consumed before calling | |
5461 | alloc_destination. | |
5462 | (Fdefine_coding_system_alias): Register ALIAS in | |
5463 | Vcoding_system_alist. | |
5464 | (syms_of_coding): Define `no-convesion' coding system at the tail. | |
5465 | ||
5466 | * fileio.c (Finsert_file_contents): Set coding_system instead of | |
5467 | val. If the current buffer is multibyte, always call | |
5468 | decode_coding_gap. | |
5469 | ||
5470 | * xfaces.c (try_font_list): Give higher priority to fontset's | |
5471 | family than face's family. | |
5472 | ||
73acf815 | 5473 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5474 | |
5475 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
5476 | to decode_coding_c_string. | |
5477 | ||
5478 | * xfaces.c (try_font_list): Give a family specified in a fontset | |
5479 | higher priority than a family specified in a face. | |
5480 | ||
73acf815 | 5481 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5482 | |
5483 | * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. | |
5484 | Fix arguments to insert_from_buffer. | |
5485 | ||
5486 | * xdisp.c (display_mode_element): Fix calculation of `bytepos'. | |
5487 | ||
73acf815 | 5488 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5489 | |
5490 | * coding.c (produce_chars): Set the variable `multibytep' correctly. | |
5491 | (decode_coding_gap): Set coding->dst_multibyte correctly. | |
5492 | ||
73acf815 | 5493 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5494 | |
5495 | * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. | |
1f45f627 | 5496 | (decode_coding_utf_16): Fix converting high and low bytes to code-point. |
aca7a3d2 MB |
5497 | (encode_coding_utf_16): Substitute coding->default_char for |
5498 | non-Unicode characters. | |
5499 | (decode_coding): Don't call record_insert here. | |
5500 | (setup_coding_system): Initialize `surrogate' of | |
5501 | coding->spec.utf_16 to 0. | |
5502 | (EMIT_ONE_BYTE): Fix for multibyte case. | |
5503 | ||
5504 | * insdel.c (insert_from_gap): Call record_insert. | |
5505 | ||
73acf815 | 5506 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5507 | |
5508 | * casefiddle.c (casify_region): Fix multibyte case. | |
5509 | ||
5510 | * character.c (c_string_width): Add return type `int'. | |
1f45f627 | 5511 | (char_string_with_unification): Delete arg ADVANCED. |
aca7a3d2 MB |
5512 | |
5513 | * character.h (CHAR_VALID_P): Don't call CHARACTERP. | |
1f45f627 | 5514 | (CHAR_STRING): Adjust for the change of char_string_with_unification. |
aca7a3d2 MB |
5515 | (CHAR_STRING_ADVANCE): Make it do-while statement. |
5516 | ||
1f45f627 | 5517 | * chartab.c (sub_char_table_set_range): Optimize for the case |
aca7a3d2 MB |
5518 | DEPTH == 3. Add workaround code for a GCC optimization bug. |
5519 | ||
5520 | * charset.c (parse_charset_map): Remove an unused variable. | |
5521 | ||
5522 | * coding.c: Delete unused variables. | |
5523 | ||
5524 | * fileio.c (Finsert_file_contents): Set coding_system to Qnil | |
5525 | earlier. If inserted is zero and the coding system doesn't | |
5526 | require flushing, don't call decode_coding_gap. | |
5527 | ||
5528 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. | |
5529 | ||
73acf815 | 5530 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5531 | |
5532 | The following changes are for using Unicode as an internal | |
5533 | character model, and use UTF-8 format for buffer/string | |
5534 | representation. | |
5535 | ||
1f45f627 | 5536 | * .gdbinit (xchartable): Adjust for the change of char table structure. |
aca7a3d2 MB |
5537 | (xsubchartable, xcoding, xcharset, xcurbuf): New commands. |
5538 | ||
5539 | * Makefile.in (obj): Add character.o and chartab.o. | |
5540 | (lisp, shortlisp): Remove utf-8.elc: | |
5541 | (*.o): For many files, change dependency on charset.h to | |
5542 | character.h, and add dependency on character.h. | |
5543 | (character.o, chartab.o): New targets. | |
5544 | ||
1f45f627 GM |
5545 | * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c: |
5546 | * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c: | |
5547 | * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
aca7a3d2 MB |
5548 | of "charset.h". |
5549 | ||
5550 | * dired.c, filelock.c: Include "character.h". | |
5551 | ||
5552 | * alloc.c: Include "character.h" instead of "charset.h". | |
4c4475a8 | 5553 | (Fmake_char_table, make_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
5554 | (syms_of_alloc): Remove defsubr for Smake_char_table. |
5555 | ||
5556 | * buffer.c: Include "character.h" instead of "charset.h", don't | |
5557 | include "coding.h". | |
1f45f627 | 5558 | (Fset_buffer_multibyte): Adjust for UTF-8. |
aca7a3d2 MB |
5559 | |
5560 | * buffer.h: EXFUN Fbuffer_live_p. | |
5561 | ||
5562 | * callproc.c: Include "character.h" instead of "charset.h". | |
5563 | (Fcall_process): Big change for the new code-conversion APIs. | |
5564 | ||
5565 | * casetab.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 5566 | (set_canon, set_identity, shuffle): Adjust for the new |
aca7a3d2 MB |
5567 | map_char_table spec. |
5568 | (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
5569 | accessing the char table structure. | |
5570 | ||
5571 | * chartab.c: New file that implements char table. | |
5572 | ||
5573 | * category.c: Include "character.h". | |
5574 | (copy_category_entry): New function. | |
5575 | (copy_category_table): Call map_char_table and copy_category_entry. | |
5576 | (Fmake_category_table): Initialize all top-vel slots. | |
5577 | (char_category_set): New function. | |
1f45f627 | 5578 | (modify_lower_category_set): Delete. |
aca7a3d2 MB |
5579 | (Fmodify_category_entry): Call char_table_ref_and_range. |
5580 | ||
5581 | * category.h (CATEGORY_SET): Just call char_category_set. | |
5582 | ||
5583 | * ccl.c: Include "character.h". | |
5584 | (Qccl, Qcclp): New variables. | |
5585 | (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
5586 | it's less than 256. | |
1f45f627 GM |
5587 | (CCL_WRITE_MULTIBYTE_CHAR): Delete. |
5588 | (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC | |
aca7a3d2 | 5589 | and DST type. |
1f45f627 GM |
5590 | (ccl_driver): Change types of argument, adjust code accordingly. |
5591 | (Fccl_execute, Fccl_execute_on_string): Adjust for the change of | |
aca7a3d2 MB |
5592 | ccl_driver. |
5593 | (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
5594 | ||
1f45f627 GM |
5595 | * ccl.h (struct ccl_program): Delete members eol_type and multibyte. |
5596 | New members src_multibyte, dst_multibyte, consumed, and produced. | |
5597 | (struct ccl_spec): Delete members decoder and encoder. New member ccl. | |
aca7a3d2 | 5598 | (CODING_SPEC_CCL_PROGRAM): New macro. |
1f45f627 | 5599 | (ccl_driver): Update prototype. |
aca7a3d2 MB |
5600 | (Qccl, Qcclp, Fccl_program_p): Extern them. |
5601 | (CHECK_CCL_PROGRAM): New macro. | |
5602 | ||
5603 | * character.c, character.h, chartab.c: New files. | |
5604 | ||
1f45f627 GM |
5605 | * charset.c: Mostly re-written. Move character and multibyte sequence |
5606 | handling codes to character.c. | |
aca7a3d2 | 5607 | |
1f45f627 GM |
5608 | * charset.h: Mostly re-written. Move character and multibyte sequence |
5609 | handling codes to character.h. | |
aca7a3d2 MB |
5610 | |
5611 | * coding.c, coding.h: Mostly re-written. | |
5612 | ||
5613 | * composite.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
5614 | (CHAR_WIDTH): Move to character.h. |
5615 | (HASH_KEY, HASH_VALUE): Delete. | |
aca7a3d2 | 5616 | |
1f45f627 GM |
5617 | * composite.h (enum composition_method): Change order of enumeration |
5618 | symbols. | |
aca7a3d2 MB |
5619 | |
5620 | * data.c: Include "character.h" instead of "charset.h". | |
5621 | (Faref): Call CHAR_TABLE_REF for a char table. | |
5622 | (Faset): Call CHAR_TABLE_SET for a char table. | |
5623 | ||
1f45f627 GM |
5624 | * dispextern.h (free_realized_face, check_face_attribytes) |
5625 | (generate_ascii_font): Extern them. | |
5626 | (free_realized_multibyte_face): Delete extern. | |
aca7a3d2 | 5627 | |
1f45f627 | 5628 | * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char |
aca7a3d2 MB |
5629 | table structure. |
5630 | ||
5631 | * editfns.c: Include "character.h" instead of "charset.h". | |
5632 | (Fchar_to_string): Always call CHAR_STRING. | |
5633 | ||
5634 | * emacs.c (main): Call init_charset_once, init_charset, | |
5635 | syms_of_chartab, and syms_of_character. | |
5636 | ||
5637 | * fileio.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 5638 | (Finsert_file_contents): Big change for the new code-conversion API. |
4c4475a8 | 5639 | (choose_write_coding_system, Fwrite_region): Likewise. |
1f45f627 | 5640 | (build_annotations_2): Delete. |
aca7a3d2 MB |
5641 | (e_write): Big change for the new code-conversion API. |
5642 | ||
5643 | * fns.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 5644 | (copy_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
5645 | (Fcopy_sequence): Call copy_char_table for a char table. |
5646 | (concat): Delete codes calling count_multibyte. | |
4c4475a8 GM |
5647 | (string_char_to_byte, string_byte_to_char): Adjust for the new |
5648 | multibyte form. | |
1f45f627 GM |
5649 | (internal_equal): Adjust for the change of char table structure. |
5650 | (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent) | |
5651 | (Fchar_table_extra_slot, Fset_char_table_extra_slot) | |
5652 | (Fchar_table_range, Fset_char_table_range, Fset_char_table_default) | |
5653 | (char_table_translate, optimize_sub_char_table) | |
5654 | (Foptimize_char_table, map_char_table, Fmap_char_table): Move to | |
aca7a3d2 | 5655 | chartab.c. |
1f45f627 GM |
5656 | (char_table_ref_and_index): Delete. |
5657 | (HASH_KEY, HASH_VALUE): Move to lisp.h. | |
aca7a3d2 | 5658 | (Fmd5): Call preferred_coding_system instead of accessing |
1f45f627 GM |
5659 | Vcoding_category_list. Adjust for the new code-conversion API. |
5660 | (syms_of_fns): Move defsubr for char table related functions to | |
aca7a3d2 MB |
5661 | chartab.c. |
5662 | ||
5663 | * fontset.c: Mostly re-written. | |
5664 | ||
1f45f627 | 5665 | * fontset.h (struct font_info): Change type of the member encoding_type. |
aca7a3d2 | 5666 | (enum FONT_SPEC_INDEX): New enum. |
1f45f627 GM |
5667 | (fontset_font_pattern, fs_load_font): Update prototype. |
5668 | (FS_LOAD_FONT): Adjust for the change of fs_load_font. | |
aca7a3d2 MB |
5669 | |
5670 | * indent.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 5671 | (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD. |
aca7a3d2 MB |
5672 | |
5673 | * insdel.c: Include "character.h" instead of "charset.h". | |
5674 | (copy_text): Don't refer to Vnonascii_translation_table. | |
5675 | (insert_from_gap): New function. | |
5676 | ||
5677 | * keyboard.c: Include "character.h" instead of "charset.h". | |
5678 | (command_loop_1): Never call direct_output_forward_char before | |
5679 | a non-ASCII character. | |
5680 | (read_char): If Vkeyboard_translate_table is a char table, always | |
1f45f627 | 5681 | translate a character. |
aca7a3d2 MB |
5682 | |
5683 | * keymap.c: Include "character.h". | |
5684 | (store_in_keymap): Handle the case that IDX is a cons. | |
5685 | (Fdefine_key): Handle the case that KEY is a cons and the car part | |
5686 | is also a cons (range). | |
1f45f627 | 5687 | (push_key_description): Adjust for the new character code. |
aca7a3d2 MB |
5688 | (describe_vector): Call describe_char_table for a char table. |
5689 | (describe_char_table): New function. | |
5690 | ||
5691 | * keymap.h (describe_char_table): Extern it. | |
5692 | ||
5693 | * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
5694 | (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
1f45f627 GM |
5695 | (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS) |
5696 | (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
5697 | Delete. | |
5698 | (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table | |
aca7a3d2 MB |
5699 | structure. |
5700 | (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
1f45f627 GM |
5701 | (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2) |
5702 | (CHARTAB_SIZE_BITS_3): New macros. | |
aca7a3d2 | 5703 | (chartab_size): Extern it. |
1f45f627 | 5704 | (struct Lisp_Char_Table): Re-design. |
aca7a3d2 | 5705 | (struct Lisp_Sub_Char_Table): New structure. |
1f45f627 GM |
5706 | (HASH_KEY, HASH_VALUE): Move from fns.c. |
5707 | (CHARACTERBITS): Define as 22. | |
5708 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change. | |
aca7a3d2 MB |
5709 | (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. |
5710 | (GC_SUB_CHAR_TABLE_P): New macro. | |
1f45f627 GM |
5711 | (Fencode_coding_string, Fdecode_coding_string): Update EXFUN. |
5712 | (code_convert_string_norecord): Deleted extern. | |
5713 | (init_character_once, syms_of_character, init_charset) | |
5714 | (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
aca7a3d2 MB |
5715 | |
5716 | * lread.c: Include "character.h". | |
5717 | (read_multibyte): New arg NBYTES. | |
1f45f627 GM |
5718 | (read_escape): Change the meaning of returned *BYTEREP. |
5719 | (to_multibyte): Delete. | |
5720 | (read1): Adjust the handling of char table and string. | |
aca7a3d2 MB |
5721 | |
5722 | * print.c: Include "character.h" instead of "charset.h". | |
5723 | (print_string): Convert 8-bit raw bytes to octal form by | |
5724 | string_escape_byte8. | |
1f45f627 | 5725 | (print_object): Adjust for the new multibyte form. Print 8-bit |
aca7a3d2 MB |
5726 | raw bytes always in octal form. Handle sub char table correctly. |
5727 | ||
5728 | * process.c: Include "character.h" instead of "charset.h". | |
4c4475a8 GM |
5729 | (read_process_output, send_process): Adjust for the new |
5730 | code-conversion API. | |
aca7a3d2 | 5731 | |
1f45f627 | 5732 | * puresize.h (BASE_PURESIZE): Increase. |
aca7a3d2 MB |
5733 | |
5734 | * regex.c: Include "character.h" instead of "charset.h". | |
5735 | (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
5736 | (regex_compile): Accept a range whose starting and ending | |
5737 | character have different leading bytes. | |
1f45f627 | 5738 | (analyse_first): Adjust for the above change. |
aca7a3d2 MB |
5739 | |
5740 | * search.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
5741 | (search_buffer, boyer_moore): Adjust for the new multibyte form. |
5742 | (Freplace_match): Adjust for the change of multibyte_char_to_unibyte. | |
aca7a3d2 MB |
5743 | |
5744 | * syntax.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 5745 | (syntax_parent_lookup): Delete. |
aca7a3d2 | 5746 | (Fmodify_syntax_entry): Accept a cons as CHAR. |
1f45f627 | 5747 | (skip_chars): Adjust for the new multibyte form. |
aca7a3d2 MB |
5748 | (init_syntax_once): Call char_table_set_range instead of directly |
5749 | accessing the structure of a char table. | |
5750 | ||
5751 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
1f45f627 | 5752 | (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro. |
aca7a3d2 MB |
5753 | (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. |
5754 | (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
5755 | ||
5756 | * term.c: Include "buffer.h" and "character.h". | |
4c4475a8 GM |
5757 | (encode_terminal_code, write_glyphs): Adjust for the new |
5758 | code-conversion API. | |
aca7a3d2 MB |
5759 | (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. |
5760 | ||
1f45f627 | 5761 | * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT. |
aca7a3d2 MB |
5762 | |
5763 | * xdisp.c: Include "character.h". | |
1f45f627 GM |
5764 | (get_next_display_element): Adjust for the new multibyte form. |
5765 | (disp_char_vector): Adjust for the new char table structure. | |
5766 | (decode_mode_spec_coding): Adjust for the new structure of | |
aca7a3d2 | 5767 | coding system. |
1f45f627 | 5768 | (decode_mode_spec): Adjust for the new code-conversion API. |
aca7a3d2 MB |
5769 | |
5770 | * xfaces.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 5771 | (load_face_font): Adjust for the change of choose_face_font and |
aca7a3d2 MB |
5772 | FS_LOAD_FONT. |
5773 | (generate_ascii_font): New function. | |
1f45f627 GM |
5774 | (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT. |
5775 | (set_font_frame_param): Adjust for the change of choose_face_font. | |
aca7a3d2 | 5776 | (free_realized_face): Make it public. |
1f45f627 | 5777 | (free_realized_faces_for_fontset): Rename from |
aca7a3d2 | 5778 | free_realized_multibyte_face. Free also faces realized for ASCII. |
1f45f627 | 5779 | (choose_face_font): Change arguments. Adjust for the change of |
aca7a3d2 MB |
5780 | fontset_font_pattern and FS_LOAD_FONT. |
5781 | ||
5782 | * xfns.c: Include "character.h". | |
1f45f627 | 5783 | (x_encode_text): Adjust for the new code-conversion API. |
aca7a3d2 MB |
5784 | |
5785 | * xselect.c: Don't include "charset.h". | |
1f45f627 | 5786 | (selection_data_to_lisp_data): Adjust for the new code conversion API. |
aca7a3d2 MB |
5787 | |
5788 | * xterm.c: Include "character.h". | |
1f45f627 | 5789 | (x_encode_char): New argument CHARSET. Change caller. |
4c4475a8 GM |
5790 | (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding): |
5791 | Call ENCODE_CHAR instead of SPLIT_CHAR. | |
aca7a3d2 MB |
5792 | (x_produce_glyphs): Don't check Vnonascii_translation_table Call |
5793 | CHAR_WIDTH instead of CHARSET_WIDTH. | |
1f45f627 GM |
5794 | (XTread_socket): Adjust for the new code-conversion API. |
5795 | (x_new_font): Adjust for the change of FS_LOAD_FONT. | |
5796 | (x_load_font): Adjust for the change of struct font. | |
aca7a3d2 | 5797 | |
d6abfc14 SM |
5798 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
5799 | ||
5800 | * xfaces.c (face_at_buffer_position): Remove unused vars. | |
5801 | ||
0acdaf8d KH |
5802 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
5803 | ||
4c4475a8 GM |
5804 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR): |
5805 | Fix overflow checking. | |
0acdaf8d | 5806 | |
6c8a0ebf GM |
5807 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
5808 | ||
5809 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver): | |
5810 | Cancel previous change. | |
5811 | ||
5812 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> | |
5813 | ||
5814 | * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when | |
5815 | ccl->eight_bit_control. Fix check for buffer overflow. | |
5816 | (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow. | |
5817 | (ccl_driver): Initialize extra_bytes to 0. | |
5818 | ||
a32aad64 KH |
5819 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> |
5820 | ||
5821 | * keyboard.c (make_ctrl_char): If C is a multibyte character, just | |
5822 | return it ORed with ctrl_modifier. | |
5823 | ||
8b329dba MB |
5824 | 2008-01-29 Miles Bader <miles@gnu.org> |
5825 | ||
5826 | * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake. | |
5827 | ||
548667aa JR |
5828 | 2008-01-28 Jason Rumney <jasonr@gnu.org> |
5829 | ||
5830 | * w32.c (stat): Don't double check for networked drive. | |
5831 | ||
0975aa24 SM |
5832 | 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca> |
5833 | ||
ef264c42 SM |
5834 | * window.c (run_window_configuration_change_hook): New function. |
5835 | Code extracted from set_window_buffer. Set the selected frame. | |
5836 | (set_window_buffer): Use it. | |
5837 | * window.h (run_window_configuration_change_hook): Declare. | |
5838 | * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer. | |
5839 | ||
0975aa24 SM |
5840 | * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM). |
5841 | ||
9c28b587 DN |
5842 | 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu> |
5843 | ||
5844 | * Makefile.in: Remove references to unused macros. | |
5845 | ||
c617afce EZ |
5846 | 2008-01-26 Eli Zaretskii <eliz@gnu.org> |
5847 | ||
5848 | * w32.c (g_b_init_get_sid_sub_authority) | |
5849 | (g_b_init_get_sid_sub_authority_count): New static variables. | |
5850 | (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs. | |
5851 | (get_sid_sub_authority, get_sid_sub_authority_count): New functions. | |
0975aa24 SM |
5852 | (init_user_info): Use them to retrieve uid and gid. |
5853 | Use 500/513, the Windows defaults, as Administrator's uid/gid. | |
248c21c5 EZ |
5854 | (fstat): Use pw_uid and pw_gid from the_passwd structure for |
5855 | st_uid and st_gid of the file. | |
c617afce | 5856 | |
302d7d54 JR |
5857 | 2008-01-26 Jason Rumney <jasonr@gnu.org> |
5858 | ||
5859 | * w32.c (logon_network_drive): New function. | |
5860 | (stat): Use it. | |
5861 | ||
3ac7a21e CY |
5862 | 2008-01-26 Chong Yidong <cyd@stupidchicken.com> |
5863 | ||
5864 | * xdisp.c (pos_visible_p): Handle the case where charpos falls on | |
5865 | invisible text covered with an ellipsis. | |
5866 | ||
bbb9fc1f RS |
5867 | 2008-01-25 Richard Stallman <rms@gnu.org> |
5868 | ||
5869 | * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and | |
5870 | jump back to beginning. Move some other initializations after that. | |
5871 | (Qwindow_text_change_functions, Vwindow_text_change_functions): | |
5872 | New variables. | |
5873 | (syms_of_xdisp): Init them. | |
5874 | ||
5875 | * keyboard.c (read_char): Restore echo_message_buffer after redisplay. | |
5876 | ||
0975aa24 SM |
5877 | * buffer.c (reset_buffer_local_variables): |
5878 | Implement `permanent-local-hook'. | |
bbb9fc1f | 5879 | (Qpermanent_local_hook): New variable. |
0975aa24 | 5880 | (syms_of_buffer): Init and staticpro it. |
bbb9fc1f | 5881 | |
79235cbe MA |
5882 | 2008-01-25 Michael Albinus <michael.albinus@gmx.de> |
5883 | ||
5884 | * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux. | |
5885 | ||
ccd8f7fe TTN |
5886 | 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org> |
5887 | ||
5888 | * fns.c (Fclrhash): Return TABLE. | |
5889 | ||
dfbe40f2 | 5890 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
223b3d1d YM |
5891 | |
5892 | * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. | |
5893 | (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p | |
5894 | is set even without positional changes. | |
5895 | (x_scroll_bar_clear): Set bar->redraw_needed_p. | |
5896 | ||
5897 | * macterm.h (struct scroll_bar): New member `redraw_needed_p'. | |
5898 | ||
dfbe40f2 | 5899 | 2008-01-23 Jason Rumney <jasonr@gnu.org> |
602e142f | 5900 | |
d6169680 JR |
5901 | * xterm.c (handle_one_xevent): Revert to counting chars not bytes. |
5902 | ||
602e142f JR |
5903 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside |
5904 | the unicode range available in MULE by locale-coding-system. | |
c041e2d1 | 5905 | Improve dbcs lead byte detection. Set event timestamp and modifiers |
602e142f JR |
5906 | earlier. |
5907 | ||
dfbe40f2 | 5908 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
5ee4de53 YM |
5909 | |
5910 | * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. | |
5911 | [MAC_OSX] (init_mac_osx_environment): Initialize it. | |
6f69e89b | 5912 | [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 |
5ee4de53 YM |
5913 | when used on child processes. |
5914 | ||
8c7a4ac5 MA |
5915 | 2008-01-21 Michael Albinus <michael.albinus@gmx.de> |
5916 | ||
e0df1b73 | 5917 | * dbusbind.c (Fdbus_method_return_internal): Rename from |
8c7a4ac5 | 5918 | Fdbus_method_return. |
e0df1b73 | 5919 | (Fdbus_unregister_object): Move to dbus.el. |
8c7a4ac5 | 5920 | (Fdbus_call_method, Fdbus_method_return_internal) |
e0df1b73 | 5921 | (Fdbus_send_signal): Improve debug messages. |
8c7a4ac5 | 5922 | |
8abe0f97 MR |
5923 | 2008-01-20 Martin Rudalics <rudalics@gmx.at> |
5924 | ||
5925 | * undo.c (undo_inhibit_record_point): New variable. | |
5926 | (syms_of_undo): Initialize it. | |
5927 | (record_point): Don't record point when undo_inhibit_record_point | |
5928 | is set. | |
5929 | ||
c3b232e4 SM |
5930 | 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca> |
5931 | ||
e69c4cae SM |
5932 | * process.c (list_processes_1): Don't use SCHARS on a nil buffer name. |
5933 | ||
823e0ebb SM |
5934 | * xdisp.c (Qauto_hscroll_mode): New var. |
5935 | (syms_of_xdisp): Initialize it. | |
5936 | (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each | |
5937 | window's buffer. | |
5938 | (hscroll_windows): Don't check automatic_hscrolling_p here. | |
5939 | ||
c3b232e4 SM |
5940 | * window.c (set_window_buffer): Don't unnecessarily reset hscroll and |
5941 | vscroll if we're setting window-buffer to the value it already has. | |
5942 | ||
76ed5e01 DN |
5943 | 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu> |
5944 | ||
5945 | * m/intel386.h: Remove references to XENIX. | |
5946 | ||
55e6d9b2 AS |
5947 | 2008-01-17 Andreas Schwab <schwab@suse.de> |
5948 | ||
5949 | * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR | |
5950 | instead of HAVE_X86_64_LIB64_DIR. | |
5951 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise. | |
5952 | ||
b16ed52d GM |
5953 | 2008-01-17 Glenn Morris <rgm@gnu.org> |
5954 | ||
5955 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according | |
5956 | to HAVE_X86_64_LIB64_DIR. | |
5957 | ||
6bed5c4a DN |
5958 | 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu> |
5959 | ||
5960 | * s/irix3-3.h: | |
5961 | * s/irix4-0.h: | |
5962 | * s/386-ix.h: | |
5963 | * s/domain.h: | |
5964 | * s/hpux9-x11r4.h: | |
5965 | * s/hpux9shxr4.h: Remove files for systems no longer supported. | |
5966 | ||
5967 | * sysdep.c: Remove code containing references to symbols defined | |
5968 | by unsupported systems. | |
5969 | ||
fdecf907 GM |
5970 | 2008-01-16 Glenn Morris <rgm@gnu.org> |
5971 | ||
5972 | * coding.c (select-safe-coding-system-function): Doc fix. | |
5973 | ||
9292328f GM |
5974 | 2008-01-15 Glenn Morris <rgm@gnu.org> |
5975 | ||
5976 | * config.in: Revert 2008-01-13 change: this is a generated file. | |
5977 | ||
944df511 MO |
5978 | 2008-01-13 Tom Tromey <tromey@redhat.com> |
5979 | ||
5980 | * lisp.h: Fix typo. | |
5981 | ||
8111ec05 DN |
5982 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
5983 | ||
f40f5dc3 DN |
5984 | * m/sequent-ptx.h: |
5985 | * m/sequent.h: | |
5986 | * s/ptx.h: | |
5987 | * s/ptx4-2.h: | |
5988 | * s/ptx4.h: Remove files for systems no longer supported. | |
5989 | ||
ce20b664 | 5990 | * callproc.c (Fcall_process): Fix previous change. |
8111ec05 | 5991 | |
e39a993c DN |
5992 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
5993 | ||
052e457f | 5994 | * unexsunos4.c: Remove file, system not supported anymore. |
e39a993c | 5995 | |
290afd83 JB |
5996 | * m/mips.h: |
5997 | * m/intel386.h: | |
e39a993c DN |
5998 | * callproc.c: |
5999 | * config.in: | |
6000 | * ecrt0.c: | |
6001 | * emacs.c: | |
6002 | * fileio.c: | |
6003 | * frame.c: | |
6004 | * getpagesize.h: | |
6005 | * keyboard.c: | |
6006 | * lread.c: | |
6007 | * process.c: | |
6008 | * puresize.h: | |
6009 | * sysdep.c: | |
6010 | * systty.h: | |
6011 | * syswait.h: | |
6012 | * unexec.c: | |
6013 | * xdisp.c: | |
6014 | * alloc.c: Remove code containing references to symbols defined by | |
6015 | unsupported systems. | |
6016 | ||
81cd7687 KH |
6017 | 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp> |
6018 | ||
6019 | * coding.c (detect_coding_mask): Fix previous change. | |
6020 | ||
c0323133 GM |
6021 | 2008-01-10 Chong Yidong <cyd@stupidchicken.com> |
6022 | ||
6023 | * process.c (wait_reading_process_output): Check for window | |
6024 | changes caused by timers. | |
6025 | ||
218b3b76 KH |
6026 | 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp> |
6027 | ||
6028 | * coding.c (detect_coding_iso2022): New arg | |
6029 | latin_extra_code_state. Allow Latin extra codes only | |
6030 | when *latin_extra_code_state is nonzero. | |
6031 | (detect_coding_mask): If there is a NULL byte, detect the encoding | |
6032 | as UTF-16 or binary. If Latin extra codes exist, detect the | |
6033 | encoding as ISO-2022 only when there's no other proper encoding is | |
6034 | found. | |
6035 | ||
59ce725a | 6036 | 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
081f2203 | 6037 | |
59ce725a MB |
6038 | * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of |
6039 | #ifdef MAC_OS. | |
048addec | 6040 | |
59ce725a | 6041 | 2008-01-08 Richard Stallman <rms@gnu.org> |
048addec | 6042 | |
59ce725a | 6043 | * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes. |
048addec | 6044 | |
8290574e NR |
6045 | 2008-01-06 Nick Roberts <nickrob@snap.net.nz> |
6046 | ||
a0a3805c | 6047 | * keyboard.c (parse_menu_item): Don't enclose key bindings on |
8290574e NR |
6048 | menu bar in parentheses. |
6049 | ||
f3041af1 DN |
6050 | 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu> |
6051 | ||
6052 | * m/7300.h: | |
6053 | * m/acorn.h: | |
6054 | * m/alliant-2800.h: | |
6055 | * m/alliant.h: | |
6056 | * m/alliant1.h: | |
6057 | * m/alliant4.h: | |
6058 | * m/altos.h: | |
6059 | * m/amdahl.h: | |
6060 | * m/apollo.h: | |
6061 | * m/att3b.h: | |
6062 | * m/aviion-intel.h: | |
6063 | * m/aviion.h: | |
6064 | * m/celerity.h: | |
6065 | * m/clipper.h: | |
6066 | * m/cnvrgnt.h: | |
6067 | * m/convex.h: | |
6068 | * m/cydra5.h: | |
6069 | * m/delta88k.h: | |
6070 | * m/dpx2.h: | |
6071 | * m/dual.h: | |
6072 | * m/elxsi.h: | |
6073 | * m/f301.h: | |
6074 | * m/gould-np1.h: | |
6075 | * m/gould.h: | |
6076 | * m/i860.h: | |
6077 | * m/ibmps2-aix.h: | |
6078 | * m/ibmrt-aix.h: | |
6079 | * m/ibmrt.h: | |
6080 | * m/irist.h: | |
6081 | * m/is386.h: | |
6082 | * m/isi-ov.h: | |
6083 | * m/mega68.h: | |
6084 | * m/mg1.h: | |
6085 | * m/news-r6.h: | |
6086 | * m/news-risc.h: | |
6087 | * m/news.h: | |
6088 | * m/nh3000.h: | |
6089 | * m/nh4000.h: | |
6090 | * m/ns16000.h: | |
6091 | * m/ns32000.h: | |
6092 | * m/nu.h: | |
6093 | * m/orion.h: | |
6094 | * m/orion105.h: | |
6095 | * m/paragon.h: | |
6096 | * m/pfa50.h: | |
6097 | * m/plexus.h: | |
6098 | * m/pyramid.h: | |
6099 | * m/pyrmips.h: | |
6100 | * m/sh3el.h: | |
6101 | * m/sps7.h: | |
6102 | * m/sr2k.h: | |
6103 | * m/stride.h: | |
6104 | * m/sun1.h: | |
6105 | * m/sun2.h: | |
6106 | * m/sun3-68881.h: | |
6107 | * m/sun3-fpa.h: | |
6108 | * m/sun3-soft.h: | |
6109 | * m/sun3.h: | |
6110 | * m/sun386.h: | |
6111 | * m/symmetry.h: | |
6112 | * m/tad68k.h: | |
6113 | * m/tahoe.h: | |
6114 | * m/targon31.h: | |
6115 | * m/tek4300.h: | |
6116 | * m/tekxd88.h: | |
6117 | * m/tower32.h: | |
6118 | * m/tower32v3.h: | |
6119 | * m/ustation.h: | |
6120 | * m/wicat.h: | |
6121 | * m/xps100.h: | |
6122 | * s/cxux.h: | |
6123 | * s/cxux7.h: | |
6124 | * s/dgux.h: | |
6125 | * s/dgux4.h: | |
6126 | * s/dgux5-4-3.h: | |
6127 | * s/dgux5-4r2.h: | |
6128 | * s/esix.h: | |
6129 | * s/esix5r4.h: | |
6130 | * s/hiuxmpp.h: | |
6131 | * s/hiuxwe2.h: | |
6132 | * s/iris3-5.h: | |
6133 | * s/iris3-6.h: | |
6134 | * s/isc2-2.h: | |
6135 | * s/isc3-0.h: | |
6136 | * s/isc4-0.h: | |
6137 | * s/isc4-1.h: | |
6138 | * s/newsos5.h: | |
6139 | * s/newsos6.h: | |
6140 | * s/osf1.h: | |
6141 | * s/osf5-0.h: | |
6142 | * s/riscix1-1.h: | |
6143 | * s/riscix12.h: | |
6144 | * s/sco4.h: | |
6145 | * s/sco5.h: | |
6146 | * s/sunos4-0.h: | |
6147 | * s/sunos4-1.h: | |
6148 | * s/sunos413.h: | |
6149 | * s/sunos4shr.h: | |
6150 | * s/umax.h: | |
6151 | * s/unipl5-2.h: | |
6152 | * s/xenix.h: | |
6153 | * cxux-crt0.s: | |
6154 | * unexapollo.c: | |
6155 | * unexconvex.c: | |
6156 | * unexenix.c: | |
6157 | * unexsni.c: Remove files for systems no longer supported. | |
6158 | ||
6159 | * m/intel386.h: Remove references to unsupported systems. | |
6160 | ||
6161 | * w32.c (get_emacs_configuration): Remove reference to i860. | |
6162 | ||
6163 | * sysdep.c: Remove dead code. | |
6164 | ||
d35e1cd7 DN |
6165 | 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu> |
6166 | ||
6167 | * s/rtu.h: | |
a0a3805c | 6168 | * m/masscomp.h: Remove files. Platform is obsolete. |
d35e1cd7 | 6169 | |
abe136ee MA |
6170 | 2008-01-04 Michael Albinus <michael.albinus@gmx.de> |
6171 | ||
6172 | * dbusbind.c (Fdbus_method_return): New function. | |
6173 | (xd_read_message): Add the serial number to the event. | |
6174 | (Fdbus_register_method): Activate the function. | |
6175 | ||
87df3c32 SM |
6176 | 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca> |
6177 | ||
6178 | * keyboard.c (read_key_sequence): Fix typo. | |
6179 | ||
5125905e MA |
6180 | 2008-01-03 Michael Albinus <michael.albinus@gmx.de> |
6181 | ||
6182 | * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE. | |
6183 | (xd_signature, xd_append_arg): Handle element type detection for | |
6184 | empty arrays. | |
6185 | (Fdbus_call_method, Fdbus_send_signal): Undo type casting for | |
6186 | SDATA () calls; this must be solved more general. | |
6187 | (Fdbus_register_signal): Use SBYTES instead of strlen. | |
6188 | ||
8bba1b5c MH |
6189 | 2008-01-03 Magnus Henoch <magnus@zemdatav> |
6190 | ||
6191 | * dbusbind.c (xd_append_arg): Use unsigned char instead of | |
6192 | unsigned int for byte values (necessary for big-endian platform). | |
2c3a8b27 | 6193 | (Fdbus_call_method): Handle the case of no returned arguments. |
8bba1b5c | 6194 | |
a0a3805c | 6195 | 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change) |
15f16c1b MA |
6196 | |
6197 | * dbusbind.c (xd_read_message): Use non-static input_event struct. | |
6198 | ||
a271e124 MH |
6199 | 2007-12-31 Magnus Henoch <mange@freemail.hu> |
6200 | ||
6201 | * dbusbind.c (xd_signature): Signature of variant is just "v". | |
6202 | ||
17bc8f94 MA |
6203 | 2007-12-30 Michael Albinus <michael.albinus@gmx.de> |
6204 | ||
87df3c32 SM |
6205 | * dbusbind.c: Fix several errors and compiler warnings. |
6206 | Reported by Tom Tromey <tromey@redhat.com> | |
17bc8f94 MA |
6207 | (XD_ERROR, XD_DEBUG_MESSAGE) |
6208 | (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)". | |
6209 | (xd_append_arg): Part for basic D-Bus types rewitten. | |
6210 | (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and | |
6211 | DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not | |
6212 | appropriate. | |
6213 | (xd_read_message): Return Qnil. Don't signal an error; it is not | |
6214 | useful during event reading. | |
6215 | (Fdbus_register_signal): Signal an error if the check for | |
6216 | FUNCTIONP fails. | |
6217 | (Fdbus_register_method): New function. The implementation is not | |
6218 | complete, the call of the function signals an error therefore. | |
6219 | (Fdbus_unregister_object): New function, renamed from | |
6220 | Fdbus_unregister_signal. The initial check signals an error, if | |
5125905e | 6221 | the object is not well formed. |
17bc8f94 | 6222 | |
dd6f2802 RS |
6223 | 2007-12-30 Richard Stallman <rms@gnu.org> |
6224 | ||
6225 | * textprop.c (get_char_property_and_overlay): | |
6226 | Signal error if POSITION is out of range in a buffer. | |
6227 | ||
1da8a031 MR |
6228 | 2007-12-29 Martin Rudalics <rudalics@gmx.at> |
6229 | ||
6230 | * w32fns.c (Fx_create_frame): Make copy of frame parameters | |
6231 | because the original parameters are in pure storage now. | |
6232 | ||
5742be86 YM |
6233 | 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
6234 | ||
6235 | * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area. | |
6236 | ||
b014713c EZ |
6237 | 2007-12-22 Eli Zaretskii <eliz@gnu.org> |
6238 | ||
b17f53ab MB |
6239 | * callint.c (syms_of_callint) <command-history>: Add reference to |
6240 | history-length in the doc string. | |
048addec | 6241 | |
b17f53ab | 6242 | 2007-12-17 Jason Rumney <jasonr@gnu.org> |
048addec | 6243 | |
b17f53ab MB |
6244 | * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned |
6245 | before passing as wParam. | |
048addec | 6246 | |
9af5078b MA |
6247 | 2007-12-22 Michael Albinus <michael.albinus@gmx.de> |
6248 | ||
6249 | * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE, | |
6250 | DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64, | |
6251 | DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE. | |
6252 | Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit | |
6253 | as number. | |
6254 | (Fdbus_call_method): Fix docstring. | |
6255 | ||
87cf1a39 MA |
6256 | 2007-12-21 Michael Albinus <michael.albinus@gmx.de> |
6257 | ||
6258 | * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE): | |
6259 | New macros. | |
87df3c32 | 6260 | (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE. |
a0a3805c JB |
6261 | (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE. |
6262 | Simplify. | |
87cf1a39 MA |
6263 | (xd_signature): New function. |
6264 | (xd_append_arg): Compute also signatures. Major rewrite. | |
6265 | (xd_retrieve_arg): Make debug messages friendly. | |
87df3c32 SM |
6266 | (Fdbus_call_method, Fdbus_send_signal): Extend docstring. |
6267 | Check for signatures of arguments. | |
87cf1a39 | 6268 | |
54371585 MA |
6269 | 2007-12-19 Michael Albinus <michael.albinus@gmx.de> |
6270 | ||
6271 | * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean) | |
6272 | (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32) | |
6273 | (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64) | |
6274 | (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path) | |
6275 | (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant) | |
87df3c32 | 6276 | (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols. |
54371585 MA |
6277 | (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro. |
6278 | (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types. | |
87df3c32 | 6279 | (xd_retrieve_value): Remove. Functionality included in ... |
54371585 MA |
6280 | (xd_append_arg): New function. |
6281 | (Fdbus_call_method, Fdbus_send_signal): Apply it. | |
6282 | ||
f5306ca3 MA |
6283 | 2007-12-16 Michael Albinus <michael.albinus@gmx.de> |
6284 | ||
6285 | * dbusbind.c (top): Include <stdio.h>. | |
6286 | (Fdbus_call_method, Fdbus_send_signal): Apply type cast in | |
6287 | dbus_message_new_method_call and dbus_message_new_signal. | |
87df3c32 SM |
6288 | (Fdbus_register_signal): Rename unique_name to uname. |
6289 | Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of | |
f5306ca3 MA |
6290 | non-existing unique name. Fix typos in matching rule. Return an |
6291 | object which is useful in Fdbus_unregister_signal. | |
6292 | (Fdbus_unregister_signal): Reimplementation, in order to remove | |
6293 | only the corresponding entry. | |
6294 | (Vdbus_registered_functions_table): Change the order of entries. | |
6295 | Apply these changes in xd_read_message and Fdbus_register_signal. | |
6296 | ||
77a28bbf AS |
6297 | 2007-12-16 Andreas Schwab <schwab@suse.de> |
6298 | ||
6299 | * fileio.c (Finsert_file_contents): Fix overflow check to not | |
6300 | depend on undefined integer overflow. | |
6301 | ||
2e3566d8 JR |
6302 | 2007-12-14 Jason Rumney <jasonr@gnu.org> |
6303 | ||
6304 | * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT | |
6305 | for characters above 127. | |
6306 | ||
bf254037 JR |
6307 | 2007-12-13 Jason Rumney <jasonr@gnu.org> |
6308 | ||
6309 | * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check | |
6310 | before dereferencing array. | |
6311 | (lookup_vk_code): Remove zero comparison. | |
6312 | ||
eb7c7bf5 MA |
6313 | 2007-12-14 Michael Albinus <michael.albinus@gmx.de> |
6314 | ||
6315 | * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) | |
87df3c32 SM |
6316 | (Fdbus_call_method, Fdbus_send_signal, xd_read_message): |
6317 | Use `unsigned int' instead of `uint'. | |
eb7c7bf5 MA |
6318 | (xd_read_message, Fdbus_register_signal): Split expressions into |
6319 | multiple lines before operators "&&" and "||", according to the | |
6320 | GNU Coding Standards. | |
6321 | ||
34fb0fc9 EZ |
6322 | 2007-12-14 Eli Zaretskii <eliz@gnu.org> |
6323 | ||
6324 | * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT. | |
6325 | ||
c7d97628 JL |
6326 | 2007-12-12 Juri Linkov <juri@jurta.org> |
6327 | ||
6328 | * buffer.c (Frename_buffer): In interactive spec replace | |
6329 | `read-buffer' with `read-string' that uses `buffer-name-history' | |
6330 | as history, and the current buffer's name as default. | |
6331 | ||
3709505e SM |
6332 | 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> |
6333 | ||
6334 | * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of | |
6335 | manipulating the backtrace manually. | |
6336 | (make_lispy_event): Merge the ASCII and MULTIBYTE cases. | |
6337 | (struct backtrace, backtrace_list): Remove. | |
6338 | (command_loop_1): Remove dead var `no_direct'. | |
6339 | ||
6340 | * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also | |
6341 | preserve non-built-in buffer-local variables. | |
6342 | (Fkill_all_local_variables): Don't re-create&re-set permanent | |
6343 | buffer-local variables. | |
6344 | ||
e2bec886 JL |
6345 | 2007-12-09 Juri Linkov <juri@jurta.org> |
6346 | ||
6347 | * buffer.c (Frename_buffer): Change interactive spec from "s" to | |
6348 | Lisp code that uses `read-buffer' with current buffer as default. | |
6349 | ||
a31d47c7 MA |
6350 | 2007-12-08 Michael Albinus <michael.albinus@gmx.de> |
6351 | ||
6352 | * dbusbind.c (xd_read_message): Generate an event for every | |
6353 | registered handler. There might be several handlers registered | |
6354 | for the same signal. | |
6355 | (Fdbus_register_signal): Don't overwrite a registration for the | |
6356 | same signal. Add a new registration if handlers are different. | |
6357 | (Vdbus_registered_functions_table): Rework doc string. | |
6358 | ||
52da95fa MA |
6359 | 2007-12-07 Michael Albinus <michael.albinus@gmx.de> |
6360 | ||
6361 | * dbusbind.c (Fdbus_get_unique_name, xd_read_message) | |
6362 | (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and | |
6363 | DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths. | |
6364 | (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal): | |
6365 | Unify argument lists. | |
a0a3805c | 6366 | (xd_read_message, Fdbus_register_signal): Reorder and extend event |
52da95fa MA |
6367 | arguments and hash table keys. Use unique name for service. |
6368 | (Fdbus_unregister_signal): Remove checks. | |
6369 | (Vdbus_registered_functions_table): Fix doc string. | |
6370 | ||
e5e76c04 | 6371 | 2007-12-05 Magnus Henoch <mange@freemail.hu> |
0277bfa1 RS |
6372 | |
6373 | * process.c (make_process): Initialize pty_flag to 0. | |
6374 | ||
e5e76c04 | 6375 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
44b1dc2e JR |
6376 | |
6377 | * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly | |
6378 | specified XBMs. | |
6379 | ||
e5e76c04 | 6380 | 2007-12-05 Richard Stallman <rms@gnu.org> |
048addec | 6381 | |
e5e76c04 | 6382 | * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix. |
048addec | 6383 | |
e5e76c04 | 6384 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 6385 | |
e5e76c04 MB |
6386 | * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]: |
6387 | New variable. | |
6388 | (mac_try_close_socket) [MAC_OSX]: New function. | |
6389 | [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: | |
6390 | Update cfsockets_for_select. Replace invalid CFRunLoop source. | |
048addec | 6391 | |
e5e76c04 MB |
6392 | * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]: |
6393 | Use mac_try_close_socket. | |
048addec | 6394 | |
e5e76c04 | 6395 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 6396 | |
e5e76c04 MB |
6397 | * unexmacosx.c (unrelocate): New argument BASE. Use it instead of |
6398 | reloc_base. | |
6399 | (copy_dysymtab): Compute relocation base here. | |
6400 | (rebase_reloc_address) [__ppc64__]: New function. | |
6401 | (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be | |
6402 | changed. | |
048addec | 6403 | |
e5e76c04 | 6404 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
048addec | 6405 | |
e5e76c04 | 6406 | * w32proc.c (sys_spawnve): Quote args with wildcards. |
048addec | 6407 | |
e5e76c04 | 6408 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 6409 | |
e5e76c04 MB |
6410 | * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and |
6411 | __objc_* sections. | |
6412 | (unrelocate) [_LP64]: Set relocation base to address of data segment. | |
048addec | 6413 | |
96faeb40 MA |
6414 | 2007-12-05 Michael Albinus <michael.albinus@gmx.de> |
6415 | ||
6416 | * dbusbind.c (xd_read_message): Return value is a Lisp_Object. | |
6417 | Move check for Vdbus_registered_functions_table to | |
6418 | xd_read_queued_messages. | |
6419 | (xd_read_queued_messages): Protect xd_read_message calls by | |
6420 | internal_condition_case_1. | |
6421 | ||
39abdd4a MA |
6422 | 2007-12-04 Michael Albinus <michael.albinus@gmx.de> |
6423 | ||
87df3c32 | 6424 | * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from |
39abdd4a | 6425 | Qdbus_system_bus and Qdbus_session_bus, respectively. |
87df3c32 | 6426 | (Vdbus_intern_symbols): Remove. |
39abdd4a | 6427 | (Vdbus_registered_functions_table): New hash table. |
87df3c32 | 6428 | (XD_SYMBOL_INTERN_SYMBOL): Remove. |
39abdd4a | 6429 | (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal): |
87df3c32 | 6430 | Rewrite in order to manage registered functions by hash table |
39abdd4a MA |
6431 | Vdbus_registered_functions_table. |
6432 | ||
7ba30657 JD |
6433 | 2007-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
6434 | ||
6435 | * xterm.c: Update URL to Window Manager Specification in comment. | |
6436 | ||
033b73e2 MA |
6437 | 2007-12-02 Michael Albinus <michael.albinus@gmx.de> |
6438 | ||
6439 | * config.in (HAVE_DBUS): Add. | |
6440 | ||
a0a3805c | 6441 | * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined. |
033b73e2 MA |
6442 | (ALL_CFLAGS): Add ${DBUS_CFLAGS}. |
6443 | (obj): Add $(DBUS_OBJ). | |
6444 | (LIBES): Add $(DBUS_LIBS). | |
6445 | (dbusbind.o): New target. | |
6446 | ||
6447 | * dbusbind.c: New file. | |
6448 | ||
6449 | * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined. | |
6450 | ||
6451 | * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS". | |
a0a3805c | 6452 | (Qdbus_event): New Lisp symbol. |
033b73e2 | 6453 | (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT. |
87df3c32 | 6454 | (gobble_input): Call xd_read_queued_messages, reading D-Bus messages. |
033b73e2 MA |
6455 | (keys_of_keyboard ): Define dbus-event. |
6456 | ||
6457 | * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined. | |
6458 | ||
39d0bf74 RS |
6459 | 2007-12-01 Richard Stallman <rms@gnu.org> |
6460 | ||
6461 | * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix. | |
6462 | ||
f3157c65 JR |
6463 | 2007-11-30 Jason Rumney <jasonr@gnu.org> |
6464 | ||
6465 | * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window. | |
6466 | (w32con_reset_terminal_modes): Clear screen buffer. | |
f1e8dcf1 JR |
6467 | (w32_face_attributes): Don't use color indexes that are out of range. |
6468 | Only reverse the default colors. | |
f3157c65 JR |
6469 | |
6470 | * xfaces.c (map_tty_color, tty_color_name): Remove special case for | |
6471 | WINDOWSNT. | |
6472 | ||
6473 | * w32console.c, w32term.h (vga_stdcolor_name): Remove. | |
6474 | ||
b510360c JR |
6475 | 2007-11-29 Jason Rumney <jasonr@gnu.org> |
6476 | ||
6477 | * w32console.c: Leave HAVE_WINDOW_SYSTEM defined. | |
6478 | (w32_face_attributes): Use Vtty_defined_color_alist to determine | |
6479 | if the terminal colors are initialized. | |
6480 | (unspecified_fg, unspecified_bg): Remove unused declarations. | |
6481 | ||
4b7ab1c4 AS |
6482 | 2007-11-29 Andreas Schwab <schwab@suse.de> |
6483 | ||
6484 | * keyboard.c (apply_modifiers): Fix typo. | |
6485 | ||
4bb6c266 RS |
6486 | 2007-11-29 Richard Stallman <rms@gnu.org> |
6487 | ||
6488 | * keymap.c (Fcurrent_local_map): Doc fix. | |
6489 | ||
aa44cd84 GM |
6490 | 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change) |
6491 | ||
6492 | * s/gnu-kfreebsd.h: New file. | |
6493 | ||
21ec2c43 SM |
6494 | 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca> |
6495 | ||
cc648cef SM |
6496 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): |
6497 | Don't cast redundantly. | |
6498 | ||
21ec2c43 SM |
6499 | * keyboard.c (KEY_TO_CHAR): New macro. |
6500 | (parse_modifiers, apply_modifiers): Accept integer arguments. | |
6501 | (read_key_sequence): Use them to unify the "shift->unshift" mapping | |
6502 | for chars and symbol keys. | |
6503 | After doing such remapping, apply function-key-map again. | |
6504 | ||
73e72da4 DN |
6505 | 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu> |
6506 | ||
6507 | * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not | |
6508 | compiled anymore. | |
6509 | ||
254693ff AS |
6510 | 2007-11-26 Andreas Schwab <schwab@suse.de> |
6511 | ||
6512 | * process.c (list_processes_1): Fix indentation level of the | |
6513 | command column. | |
6514 | ||
ff6e6ac8 AS |
6515 | 2007-11-23 Andreas Schwab <schwab@suse.de> |
6516 | ||
6517 | * editfns.c (Fformat): Handle %c specially since it requires the | |
6518 | argument to be of type int. | |
6519 | ||
f7cf8b20 SM |
6520 | 2007-11-23 Markus Triska <markus.triska@gmx.at> |
6521 | ||
6522 | * emacs.c (main): Call init_editfns before init_process, since | |
6523 | init_process sets Vprocess_connection_type depending on OS release | |
6524 | ||
569c11e3 SM |
6525 | 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca> |
6526 | ||
8787dd73 SM |
6527 | * data.c (do_symval_forwarding): Use same code as in find_symbol_value. |
6528 | (find_symbol_value): Use do_symval_forwarding. | |
6529 | ||
569c11e3 SM |
6530 | * data.c (set_internal): Set the value in the `cons-cell' (for |
6531 | Buffer_Local_values) not only for frame-local variables. | |
6532 | ||
6af1696d AS |
6533 | 2007-11-22 Andreas Schwab <schwab@suse.de> |
6534 | ||
6535 | * data.c (Fnumber_to_string): Add cast when passing EMACS_INT | |
6536 | values to sprintf. | |
6537 | * keymap.c (Fsingle_key_description): Likewise. | |
6538 | * print.c (print_object): Likewise. | |
6539 | ||
d4ad8c04 JD |
6540 | 2007-11-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
6541 | ||
6542 | * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if | |
6543 | file for image is nil. | |
6544 | ||
7c401d15 DN |
6545 | 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu> |
6546 | ||
6547 | * term.c: Include stdarg.h. | |
569c11e3 | 6548 | (fatal): Implement using varargs. |
a0a3805c | 6549 | * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change). |
7c401d15 | 6550 | |
64e16c3c SM |
6551 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
6552 | ||
6553 | * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field. | |
6554 | * data.c (store_symval_forwarding): Get type from buffer_objfwd. | |
6555 | Update call to buffer_slot_type_mismatch. | |
6556 | * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove. | |
6557 | (buffer_slot_type_mismatch): Update. | |
6558 | * buffer.c (buffer_local_types): Remove. | |
6559 | (buffer_slot_type_mismatch): Get the symbol and type as arguments. | |
6560 | (defvar_per_buffer): Set the type in the buffer_objfwd. | |
6561 | ||
d4aa48db | 6562 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
5f42a7eb | 6563 | |
64e16c3c SM |
6564 | * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): |
6565 | CreateFileMapping returns NULL on failure. | |
5f42a7eb | 6566 | |
d4aa48db | 6567 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
048addec | 6568 | |
d4aa48db MB |
6569 | * search.c (Fset_match_data): Remove the `evaporate' feature. |
6570 | (unwind_set_match_data): Don't use the `evaporate' feature. | |
437dfb9f | 6571 | |
bdae0540 JR |
6572 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
6573 | ||
6574 | * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type. | |
6575 | ||
6576 | * w32console.c (w32con_write_glyphs): Remove unused variables. | |
6577 | ||
202c09a8 DN |
6578 | 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu> |
6579 | ||
b951420f DN |
6580 | * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor. |
6581 | ||
202c09a8 DN |
6582 | * s/darwin.h (MULTI_KBOARD): Remove. |
6583 | ||
6584 | * macfns.c (x_create_tip_frame, Fx_create_frame) | |
6585 | (x_create_tip_frame): Don't deal with MULTI_KBOARD. | |
6586 | ||
bae72c12 SM |
6587 | 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca> |
6588 | ||
e7c10f83 SM |
6589 | * buffer.c (Fbuffer_local_value): Remove redundant test. |
6590 | (swap_out_buffer_local_variables): Swap out binding in `buffer' rather | |
6591 | than in `current-buffer' to match the comment. | |
6592 | Do the swap using swap_in_global_binding. | |
6593 | ||
136eb6ed SM |
6594 | * data.c (store_symval_forwarding, set_internal): |
6595 | * eval.c (specbind): Remove dead code. | |
6596 | ||
bae72c12 SM |
6597 | * coding.c (detect_coding, Fupdate_coding_systems_internal): |
6598 | * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE | |
6599 | Since we do not want to see internal Lisp_*fwd objects here. | |
6600 | ||
95fbaefc JD |
6601 | 2007-11-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
6602 | ||
3d66b985 JD |
6603 | * sysdep.c (init_system_name): Use getaddrinfo if available. |
6604 | ||
95fbaefc JD |
6605 | * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click) |
6606 | (x_scroll_bar_note_movement): start, end, with, height in struct | |
6607 | scroll_bar are integers and not Lisp_Object, so remove XINT for them. | |
6608 | ||
6c1d8cb6 DN |
6609 | 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu> |
6610 | ||
6611 | * puresize.h (BASE_PURESIZE): Increase to 1190000. | |
6612 | ||
30f95089 SM |
6613 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
6614 | ||
66b04bd4 SM |
6615 | * buffer.h (struct buffer): Move `undo_list' back to before `name'. |
6616 | This undoes Richard's change of 14-Oct-2002. | |
6617 | ||
6d3f2bb2 SM |
6618 | * alloc.c (allocate_other_vector): |
6619 | * lisp.h (allocate_other_vector): Remove. | |
6620 | ||
b05b4e27 SM |
6621 | * window.c (struct save_window_data): Move non-lisp data to the end |
6622 | and make it `int' rather than Lisp_Object. | |
6623 | (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. | |
6624 | Done wrap/unwrap integer values. | |
6625 | (Fset_window_configuration, compare_window_configurations): | |
6626 | Update use of fields to their new types. | |
6627 | ||
056ce195 SM |
6628 | * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. |
6629 | Turn integer fields into `int'. Merge x_window_low and x_window_high. | |
6630 | (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW) | |
6631 | (SET_SCROLL_BAR_X_WINDOW): Remove. | |
6632 | (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET): | |
6633 | Access the new x_window field directly. | |
6634 | * xterm.c (x_scroll_bar_create): Use a pseudovector. | |
6635 | Don't wrap/unwrap integers into Lisp_Objects. | |
6636 | (XTset_vertical_scroll_bar, x_scroll_bar_handle_click) | |
6637 | (x_scroll_bar_report_motion): | |
6638 | Don't wrap/unwrap integers into Lisp_Objects. | |
6639 | (x_term_init): Use SDATA. | |
6640 | (x_window_to_scroll_bar, x_create_toolkit_scroll_bar) | |
6641 | (x_scroll_bar_set_handle, x_scroll_bar_remove) | |
6642 | (XTset_vertical_scroll_bar, x_scroll_bar_expose) | |
6643 | (x_scroll_bar_report_motion, x_scroll_bar_clear): | |
6644 | * xfns.c (x_set_background_color): | |
6645 | * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb): | |
6646 | Access the new x_window field directly. | |
6647 | ||
30f95089 SM |
6648 | * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. |
6649 | (allocate_pseudovector): Make non-static. | |
6d3f2bb2 | 6650 | |
30f95089 SM |
6651 | * lisp.h (enum pvec_type): New tag PVEC_OTHER. |
6652 | (allocate_pseudovector): Declare. | |
6f69e89b | 6653 | (ALLOCATE_PSEUDOVECTOR): Move from alloc.c. |
30f95089 | 6654 | |
9b6112e8 AS |
6655 | 2007-11-15 Andreas Schwab <schwab@suse.de> |
6656 | ||
30f95089 SM |
6657 | * editfns.c (Fformat): Correctly format EMACS_INT values. |
6658 | Also take precision into account when formatting an integer. | |
0f860bd7 | 6659 | |
9b6112e8 AS |
6660 | * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration. |
6661 | ||
262fcd41 SM |
6662 | 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca> |
6663 | ||
58da34c7 SM |
6664 | * keyboard.c (Fevent_symbol_parse_modifiers): New function. |
6665 | (syms_of_keyboard): Defsubr it. | |
6666 | ||
262fcd41 SM |
6667 | * data.c (swap_in_global_binding): Fix longstanding bug where |
6668 | store_symval_forwarding was not called with the right second argument, | |
6669 | thus causing objfwd-ing from being dropped. | |
6670 | ||
d29a9848 JB |
6671 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
6672 | ||
6673 | * macfns.c (Fx_create_frame, Fx_display_pixel_width) | |
6674 | (Fx_display_pixel_height, Fx_display_planes) | |
6675 | (Fx_display_color_cells, Fx_server_max_request_size) | |
6676 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
6677 | (Fx_display_visual_class, Fx_display_save_under): | |
6678 | * w32fns.c (Fx_create_frame, Fx_display_pixel_width) | |
6679 | (Fx_display_pixel_height, Fx_display_planes) | |
6680 | (Fx_display_color_cells, Fx_server_max_request_size) | |
6681 | (Fx_server_vendor, Fx_server_version, Fx_display_screens) | |
6682 | (Fx_display_mm_height, Fx_display_mm_width) | |
6683 | (Fx_display_backing_store, Fx_display_visual_class) | |
6684 | (Fw32_select_font, Fx_display_save_under): | |
6685 | * xfns.c (Fx_create_frame, Fx_display_pixel_width) | |
6686 | (Fx_display_pixel_height, Fx_display_planes) | |
6687 | (Fx_display_color_cells, Fx_server_max_request_size) | |
6688 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
6689 | (Fx_display_save_under): Fix typos in docstrings. | |
6690 | ||
74084731 JB |
6691 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
6692 | ||
6693 | * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values | |
6694 | corresponding to deleted entries; they are an implementation detail. | |
6695 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): | |
6696 | Remove variables. | |
6697 | (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames) | |
6698 | (w32_pass_multimedia_buttons_to_system, w32_strict_painting) | |
6699 | (Vw32_charset_info_alist, w32_to_x_color, w32_init_class) | |
6700 | (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers) | |
6701 | (w32_grabbed_keys, cancel_all_deferred_msgs): Make static. | |
d29a9848 | 6702 | (Fw32_define_rgb_color, Fw32_load_color_file) |
74084731 | 6703 | (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>: |
02b39a28 JB |
6704 | Fix typos in docstrings. |
6705 | (Fx_server_version): Reflow docstring. | |
6706 | (Fw32_shell_execute): Doc fixes. | |
74084731 | 6707 | |
fb053a1f JB |
6708 | 2007-11-13 Juanma Barranquero <lekktu@gmail.com> |
6709 | ||
6710 | * w32fns.c (Fw32_register_hot_key): Don't try to register hot key | |
6711 | if w32_parse_hot_key returned nil. | |
6712 | ||
a457417e | 6713 | 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9ec1bdb6 | 6714 | |
a457417e | 6715 | * xdisp.c (load_overlay_strings): Fix copy&paste typo. |
9ec1bdb6 | 6716 | |
4b219faa JR |
6717 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
6718 | ||
6719 | * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define. | |
6720 | ||
6721 | * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT. | |
6722 | ||
6723 | * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]: | |
6724 | Remove W32_SCROLL_BAR_CLICK_EVENT. | |
6725 | ||
6726 | * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise. | |
6727 | Add MULTIMEDIA_KEY_EVENT. | |
6728 | ||
6729 | * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys. | |
6730 | (lispy_multimedia_keys) [WINDOWSNT]: New array. | |
6731 | (make_lispy_event) [WINDOWSNT]: Use it to translate | |
6732 | MULTIMEDIA_KEY_EVENT. | |
6733 | ||
6734 | * w32term.h (WM_APPCOMMAND): Define if not already. | |
6735 | (GET_APPCOMMAND_LPARAM): Likewise. | |
6736 | ||
6737 | * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from | |
6738 | WM_APPCOMMAND. | |
6739 | ||
6740 | * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option. | |
6741 | (syms_of_w32fns): Export and initialize it. | |
6742 | (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket. | |
6743 | ||
c12ecb0a | 6744 | 2007-11-09 Chong Yidong <cyd@stupidchicken.com> |
d388d2ac CY |
6745 | |
6746 | * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE | |
6747 | twice. | |
6748 | ||
6749 | * xdisp.c (handle_face_prop): Fix last change. | |
6750 | ||
c12ecb0a | 6751 | 2007-11-09 Richard Stallman <rms@gnu.org> |
048addec | 6752 | |
c12ecb0a MB |
6753 | * xdisp.c (handle_face_prop): Test for strings that came from overlays, |
6754 | not just for after-strings and before-strings. | |
6755 | Call face_for_overlay_string and pass the overlay to it. | |
6756 | (handle_display_prop): Determine whether property came from an overlay. | |
6757 | Pass OVERLAY arg to handle_single_display_spec. | |
6758 | (handle_single_display_spec): New arg OVERLAY sets it->from_overlay. | |
6759 | (load_overlay_strings): Fill in it->string_overlays. | |
6760 | (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays. | |
b5cb6072 | 6761 | |
c12ecb0a MB |
6762 | * xfaces.c (face_for_overlay_string): Function renamed from |
6763 | face_at_buffer_position_no_overlays, and add arg OVERLAY. | |
b5cb6072 | 6764 | |
c12ecb0a MB |
6765 | * dispextern.h (struct it): New elt string_overlays. |
6766 | New elt from_overlay, also in stack. | |
6767 | Rearrange a few elements. | |
6768 | (face_for_overlay_string): Decl renamed from | |
6769 | face_at_buffer_position_no_overlays, and add argument. | |
15fff01d | 6770 | |
c12ecb0a | 6771 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0065bb74 | 6772 | |
c12ecb0a MB |
6773 | * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays |
6774 | to get the base face for an overlay string. | |
0d8466cc | 6775 | |
c12ecb0a | 6776 | * dispextern.h (face_at_buffer_position_no_overlays): Add decl. |
15fff01d | 6777 | |
c12ecb0a | 6778 | * xfaces.c (face_at_buffer_position_no_overlays): New function. |
2fae9111 | 6779 | |
c12ecb0a | 6780 | * xdisp.c (handle_stop): Move some code out of loop. |
2d6c1fc0 | 6781 | |
c12ecb0a | 6782 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
07025a55 | 6783 | |
c12ecb0a MB |
6784 | * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes): |
6785 | Fix conversion from Lisp object to ATSUFontID. | |
07025a55 | 6786 | |
c12ecb0a | 6787 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
07025a55 | 6788 | |
c12ecb0a | 6789 | * xdisp.c (Fformat_mode_line): Do nothing when noninteractive. |
3a232704 | 6790 | |
c12ecb0a | 6791 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
539e92ad | 6792 | |
c12ecb0a MB |
6793 | * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge): |
6794 | Don't assume regions are aligned to page boundary. | |
6795 | (print_load_command_name): Add LC_UUID if defined. | |
3a232704 | 6796 | |
c12ecb0a | 6797 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0cb8bb48 | 6798 | |
c12ecb0a | 6799 | * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring. |
539e92ad | 6800 | |
b8ddfbcc JR |
6801 | 2007-11-07 Jason Rumney <jasonr@gnu.org> |
6802 | ||
6803 | * s/windows95.h: Remove. | |
6804 | ||
e624c3f9 JD |
6805 | 2007-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
6806 | ||
6807 | * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and | |
6808 | abort with a message on unhandled store_type values. | |
6809 | ||
ac1278c1 JD |
6810 | 2007-11-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
6811 | ||
6812 | * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h: | |
6813 | Remove HAVE_X11R5 and HAVE_X11R4. | |
6814 | ||
04a697fe DN |
6815 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
6816 | ||
6817 | * Makefile.in: Remove references to sunfns.c and sunfns.o. | |
6818 | ||
56dad874 GM |
6819 | 2007-11-01 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org> |
6820 | ||
6821 | * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): | |
fb053a1f | 6822 | Don't set s->stippled_p here, since it has already been set by |
56dad874 GM |
6823 | x_set_glyph_string_gc from x_draw_glyph_string. |
6824 | ||
07e5c0b0 DN |
6825 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
6826 | ||
6827 | * sunfns.c: Remove file | |
6828 | ||
6829 | * m/sun386.h: | |
6830 | * m/sun2.h: | |
6831 | * m/sparc.h: Remove Sun windows code. | |
6832 | ||
1bc973c2 SM |
6833 | 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca> |
6834 | ||
6835 | * keyboard.c (syms_of_keyboard): Initialize the initial_kboard. | |
6836 | (init_keyboard): Set current_kboard's window-system to nil. | |
6837 | (tty_read_avail_input): Typo. | |
6838 | * frame.c (make_initial_frame): Don't initialize the initial_kboard. | |
6839 | ||
c22140f6 DN |
6840 | 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu> |
6841 | ||
6842 | * s/usg5-4.h: | |
6843 | * s/usg5-3.h: | |
6844 | * s/ptx.h: | |
6845 | * m/is386.h: | |
6846 | * m/ibmps2-aix.h: | |
6847 | * Makefile.in: Remove all mentions of X10 | |
6848 | ||
6849 | * dispnew.c (syms_of_display): Don't mention version 10. | |
6850 | ||
660a8219 JB |
6851 | 2007-10-28 Juanma Barranquero <lekktu@gmail.com> |
6852 | ||
6853 | * makefile.w32-in (OBJ1): Remove abbrev.$(O). | |
6854 | ($(BLD)/abbrev.$(O)): Remove. | |
6855 | ||
e047f448 SM |
6856 | 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca> |
6857 | ||
6858 | Rewrite abbrev.c in Elisp. | |
6859 | * image.c (Qcount): Don't declare as extern. | |
6860 | (syms_of_image): Initialize and staticpro `Qcount'. | |
6861 | * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. | |
6862 | * emacs.c (main): Don't call syms_of_abbrev. | |
6863 | * Makefile.in (obj): Remove abbrev.o. | |
6864 | (abbrev.o): Remove. | |
6865 | * abbrev.c: Remove. | |
6866 | ||
67b73e3a MR |
6867 | 2007-10-26 Martin Rudalics <rudalics@gmx.at> |
6868 | ||
6869 | * window.c (window_min_size_2): Don't count header-line. | |
6870 | ||
e3d7bd83 DN |
6871 | 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu> |
6872 | ||
6873 | * frame.h (struct frame): Move all bit fields after the first bit | |
660a8219 | 6874 | field to take advantage of the available space. Group all the |
e3d7bd83 DN |
6875 | chars together to reduce wasted space due to padding. |
6876 | ||
a3547743 JB |
6877 | 2007-10-26 Juanma Barranquero <lekktu@gmail.com> |
6878 | ||
e298936f JB |
6879 | * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings. |
6880 | ||
d3d47262 JB |
6881 | * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings) |
6882 | (Vdead, dont_register_blocks, staticvec, staticidx, interval_block) | |
6883 | (n_interval_blocks, init_strings, check_string_bytes, check_sblock) | |
6884 | (init_float, free_float, n_cons_blocks, init_cons, all_vectors) | |
6885 | (n_vectors, symbol_block, symbol_block_index, symbol_free_list) | |
6886 | (n_symbol_blocks, init_symbol, marker_block, marker_free_list) | |
6887 | (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float) | |
6888 | (last_marked, mark_object_loop_halt): Make static. | |
6889 | ||
a3547743 JB |
6890 | * frame.c (syms_of_frame) <delete-frame-functions>: |
6891 | Fix typo in docstring. | |
6892 | ||
14c71d8b JB |
6893 | 2007-10-25 Juanma Barranquero <lekktu@gmail.com> |
6894 | ||
6895 | * w32.c (init_environment): Fix tiny memory leak. | |
66199f74 | 6896 | (w32_get_resource): Remove unused variable `ok'. |
14c71d8b | 6897 | |
70b8d0a4 SM |
6898 | 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca> |
6899 | ||
6900 | Make `window-system' into a keyboard-local variable (rather than | |
6901 | frame-local as done originally by multi-tty). | |
6902 | ||
6903 | * keyboard.h (struct kboard): Add Vwindow_system. | |
6904 | * keyboard.c (init_kboard): Set a default for Vwindow_system. | |
6905 | (mark_kboards): Mark Vwindow_system. | |
6906 | ||
6907 | * dispnew.c (syms_of_display) <window-system>: Declare terminal-local. | |
6908 | (init_display): Don't set the obsolete `window-system' frame-param. | |
6909 | ||
6910 | * xterm.c (x_term_init): | |
6911 | * w32term.c (w32_create_terminal): | |
6912 | * term.c (init_tty): Set Vwindow_system. | |
6913 | * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the | |
6914 | multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system. | |
6915 | ||
6916 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
6917 | * w32fns.c (Fx_create_frame, x_create_tip_frame): | |
6918 | * macfns.c (Fx_create_frame): | |
6919 | Don't set the obsolete `window-system' frame-param. | |
6920 | ||
6921 | * frame.h (Qwindow_system): Remove. | |
6922 | * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well. | |
6923 | (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param. | |
6924 | ||
fdc90613 | 6925 | 2007-10-24 Richard Stallman <rms@gnu.org> |
4521d1fc | 6926 | |
fdc90613 MB |
6927 | * frame.c (x_figure_window_size): For fullscreen case, |
6928 | set USPosition | PPosition without clobbering rest of window_prompting. | |
7c75be36 | 6929 | |
fdc90613 | 6930 | * keyboard.c (Fcurrent_idle_time): Doc fix. |
4521d1fc | 6931 | |
fdc90613 | 6932 | * print.c (Fwith_output_to_temp_buffer): Doc fix. |
4521d1fc | 6933 | |
7357cb04 SM |
6934 | 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
6935 | ||
98228e72 SM |
6936 | * process.c (unwind_request_sigio): Only define if __ultrix__. |
6937 | ||
1baf6db9 SM |
6938 | * callproc.c (child_setup): Remove spurious *. |
6939 | ||
4d0ac3d7 SM |
6940 | * lisp.h (Fget_text_property): Declare. |
6941 | (have_menus_p): Declare it here rather than in sys-dep header files. | |
6942 | * macterm.h (have_menus_p): | |
6943 | * msdos.h (have_menus_p): | |
6944 | * xterm.h (have_menus_p): Remove. | |
6945 | ||
7357cb04 SM |
6946 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable) |
6947 | (Fmake_variable_frame_local): Just check the variable's const-ness | |
6948 | rather than checking nil or t. | |
6949 | ||
866e6dd6 JR |
6950 | 2007-10-22 Jason Rumney <jasonr@gnu.org> |
6951 | ||
b00afeae JR |
6952 | * w32fns.c: Include math.h. |
6953 | (w32_abort): Declaration moved to nt/config.nt. | |
0f7f11b7 | 6954 | |
c8f7c76b JR |
6955 | * s/ms-w32.h (HAVE_STDLIB_H): Define. |
6956 | (abort): Redefinition moved to nt/config.nt. | |
6957 | ||
866e6dd6 JR |
6958 | * m/windowsnt.h: Remove. |
6959 | ||
e79beb56 JB |
6960 | 2007-10-22 Juanma Barranquero <lekktu@gmail.com> |
6961 | ||
6962 | * emacs.c (Fdump_emacs): Fix typo in message. | |
6963 | (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring. | |
6964 | <installation-directory>: Reflow docstring. | |
6965 | ||
fb30dfd2 JL |
6966 | 2007-10-22 Juri Linkov <juri@jurta.org> |
6967 | ||
6968 | * minibuf.c: Allow minibuffer default to be a list of default values. | |
6969 | With empty input use the first element of this list as returned default. | |
e79beb56 | 6970 | (string_to_object) |
0f7f11b7 | 6971 | (read_minibuf_noninteractive): If defalt is cons, set val to its car. |
fb30dfd2 JL |
6972 | (read_minibuf): If defalt is cons, set histstring to its car. |
6973 | (Fread_string): If default_value is cons, set val to its car. | |
6974 | (Fread_buffer): If def is cons, use its car. | |
6975 | (Fcompleting_read): If defalt is cons, set val to its car. | |
6976 | ||
1f163f28 MA |
6977 | 2007-10-21 Michael Albinus <michael.albinus@gmx.de> |
6978 | ||
6979 | * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. | |
6980 | ||
db3534c3 JB |
6981 | 2007-10-20 Juanma Barranquero <lekktu@gmail.com> |
6982 | ||
6983 | * doc.c (Fdocumentation): Check for advice in all cases. | |
6984 | ||
c6f18a07 CY |
6985 | 2007-10-19 Chong Yidong <cyd@stupidchicken.com> |
6986 | ||
6987 | * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags. | |
6988 | ||
2a1534d3 RS |
6989 | 2007-10-19 Richard Stallman <rms@gnu.org> |
6990 | ||
6991 | * doc.c (Fdocumentation): Check for and handle an advised function. | |
6992 | ||
7b82c3b6 JB |
6993 | 2007-10-19 Juanma Barranquero <lekktu@gmail.com> |
6994 | ||
6995 | * process.c (Fset_process_filter): Doc fix. | |
6996 | ||
3278f20e SM |
6997 | 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> |
6998 | ||
6999 | * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty | |
7000 | which caused key-translation-map to applied repeatedly (thus breaking | |
7001 | double-mode). | |
7002 | ||
99784d63 SM |
7003 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
7004 | ||
7005 | * xselect.c (x_own_selection, x_handle_selection_clear) | |
7006 | (x_clear_frame_selections): | |
7007 | * w32menu.c (list_of_panes, list_of_items): | |
7008 | * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): | |
7009 | * textprop.c (validate_plist, interval_has_all_properties) | |
7010 | (interval_has_some_properties, interval_has_some_properties_list) | |
7011 | (add_properties, text_property_list): | |
7012 | * process.c (Fget_buffer_process, list_processes_1, status_notify): | |
7013 | * minibuf.c (Fassoc_string): | |
7014 | * macselect.c (x_own_selection, x_clear_frame_selections) | |
7015 | (Fx_disown_selection_internal): | |
7016 | * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): | |
7017 | Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r. | |
7018 | ||
44bb704d CY |
7019 | 2007-10-17 Chong Yidong <cyd@stupidchicken.com> |
7020 | ||
7021 | * process.c: Link to libs for calling res_init() if available. | |
7022 | (Fmake_network_process): Call res_init() before getaddrinfo or | |
7023 | gethostbyname, if possible. | |
7024 | ||
d314756e SM |
7025 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
7026 | ||
2504022a SM |
7027 | * lread.c (read1): Set pvectype for char_tables. |
7028 | ||
19fa82b9 SM |
7029 | * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY) |
7030 | (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE): | |
7031 | Add type checks. | |
7032 | (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove. | |
7033 | ||
d314756e SM |
7034 | * alloc.c (free_misc): Use XMISCTYPE. |
7035 | (live_misc_p, gc_sweep): Use Lisp_Misc_Any. | |
7036 | ||
94b9aaa2 GM |
7037 | 2007-10-17 Glenn Morris <rgm@gnu.org> |
7038 | ||
7039 | * minibuf.c (Qcompletion_ignore_case): New Lisp_Object. | |
7040 | (syms_of_minibuf): Add Qcompletion_ignore_case. | |
7041 | * dired.c (Qcompletion_ignore_case): Change to external. | |
7042 | (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case. | |
7043 | * fileio.c (Qcompletion_ignore_case): New external Lisp_Object. | |
7044 | (Fread_file_name): Use it rather than intern'ing. | |
7045 | ||
7046 | * coding.c (Qcompletion_ignore_case): New external Lisp_Object. | |
7047 | (Fread_coding_system): Ignore case of user input. | |
7048 | ||
da6658e8 YM |
7049 | 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
7050 | ||
7051 | * xdisp.c (handle_display_prop): Ignore display specs after | |
7052 | replacing one when string text is being replaced. | |
7053 | (handle_single_display_spec): Pretend as if characters with display | |
7054 | property haven't been consumed only when buffer text is being replaced. | |
7055 | ||
11fb4bdb SM |
7056 | 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> |
7057 | ||
9beb8baa SM |
7058 | * xfns.c (Fx_create_frame, Fx_display_list): |
7059 | * window.c (window_fixed_size_p, enlarge_window) | |
7060 | (shrink_window_lowest_first): | |
7061 | * macterm.c (init_font_name_table): | |
7062 | * macfns.c (Fx_create_frame, Fx_display_list): | |
7063 | * lread.c (close_load_descs): | |
7064 | * keyboard.c (read_char_x_menu_prompt): | |
7065 | * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent): | |
7066 | * coding.c (code_convert_region_unwind): Test the type of an object | |
7067 | rather than just !NILP before extracting data from it. | |
7068 | ||
d3f41ff5 SM |
7069 | * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors. |
7070 | ||
67ee9f6e SM |
7071 | * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. |
7072 | (XMISCANY): New macro. | |
7073 | (XMISCTYPE): Use it. | |
7074 | (struct Lisp_Misc_Any): New type. | |
7075 | (union Lisp_Misc): Use it. | |
7076 | (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit. | |
7077 | * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding) | |
7078 | (find_symbol_value, set_internal, default_value, Fset_default) | |
7079 | (Fmake_variable_buffer_local, Fmake_local_variable) | |
7080 | (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p) | |
7081 | (Flocal_variable_if_set_p, Fvariable_binding_locus): | |
7082 | The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set. | |
7083 | * alloc.c (allocate_buffer): Set the size and tag. | |
7084 | (allocate_misc, mark_maybe_object, mark_object, survives_gc_p): | |
7085 | Use XMISCANY. | |
7086 | (die): Follow the GNU convention for error messages. | |
7087 | * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set. | |
7088 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the | |
7089 | tag any more. | |
7090 | (set_buffer_internal_1): | |
7091 | * frame.c (store_frame_param): | |
7092 | * eval.c (specbind): | |
7093 | * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP. | |
7094 | ||
11fb4bdb SM |
7095 | * doc.c (Fsnarf_documentation): Simplify. |
7096 | ||
decb374a JB |
7097 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
7098 | ||
7099 | * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static. | |
7100 | (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring. | |
7101 | ||
b5a40ee7 SM |
7102 | 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca> |
7103 | ||
7104 | * buffer.c (Fmake_indirect_buffer): Set the buffer's tag. | |
7105 | ||
35277b03 JB |
7106 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
7107 | ||
7108 | * eval.c (do_autoload): Don't save autoloads. | |
7109 | ||
7110 | * data.c (Ffset): Save autoload of the function being set. | |
7111 | ||
35fdaa62 GM |
7112 | 2007-10-07 John Paul Wallington <jpw@pobox.com> |
7113 | ||
7114 | * xfns.c (x_create_tip_frame): Set the `display-type' frame | |
7115 | parameter before setting up faces. | |
7116 | ||
1ea40aa2 EZ |
7117 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
7118 | ||
35fdaa62 | 7119 | * ccl.c (Fregister_code_conversion_map): |
96a5affb EZ |
7120 | * keyboard.c (append_tool_bar_item): Reformat last change. |
7121 | ||
1ea40aa2 EZ |
7122 | * lisp.h (eabs): Rename from `abs'. All callers changed. |
7123 | ||
35277b03 | 7124 | 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru> |
71d00ce4 EZ |
7125 | |
7126 | * buffer.c (add_overlay_mod_hooklist): | |
7127 | * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map): | |
7128 | * fontset.c (make_fontset): | |
7129 | * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item) | |
7130 | (append_tool_bar_item): | |
7131 | * macmenu.c (grow_menu_items): | |
35fdaa62 | 7132 | * w32menu.c (grow_menu_items): |
71d00ce4 | 7133 | * xmenu.c (grow_menu_items): Use larger_vector. |
35fdaa62 | 7134 | |
bc82f120 EZ |
7135 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
7136 | ||
7137 | * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving | |
7138 | selected frame'' on MSDOS). | |
7139 | ||
d57d5a78 MR |
7140 | 2007-10-12 Martin Rudalics <rudalics@gmx.at> |
7141 | ||
7142 | * frame.c (Qexplicit_name): New variable. | |
7143 | (x_report_frame_params): Report it in parameter alist. | |
7144 | (syms_of_frame): Intern and staticpro it. | |
7145 | ||
35277b03 | 7146 | 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change) |
04710ebd JR |
7147 | |
7148 | * macfns.c (x_create_tip_frame): Set terminal for frame. | |
7149 | ||
c7a4b95b SM |
7150 | 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca> |
7151 | ||
26f9c7b7 SM |
7152 | * frame.c (Qenvironment): Remove. |
7153 | (syms_of_frame) <Qenvironment>: Don't initialize. | |
7154 | (Fdelete_frame): Don't treat the `environment' param specially. | |
7155 | * frame.h (Qenvironment): Don't declare. | |
7156 | * callproc.c (set_initial_environment): Don't set unused frame param. | |
7157 | ||
c7a4b95b SM |
7158 | * frame.c (Fframe_with_environment): Remove. |
7159 | (syms_of_frame) <Sframe_with_environment>: Don't declare. | |
26f9c7b7 | 7160 | |
c7a4b95b SM |
7161 | * lisp.h (Fframe_with_environment): Don't declare. |
7162 | ||
c86f7377 JB |
7163 | 2007-10-10 Juanma Barranquero <lekktu@gmail.com> |
7164 | ||
7165 | * indent.c (indent_tabs_mode, last_known_column) | |
7166 | (last_known_column_modified): Make static. | |
7167 | (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring. | |
7168 | ||
d1b3a122 KY |
7169 | 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org> |
7170 | ||
7171 | * puresize.h (BASE_PURESIZE): Increase to 1170000. | |
7172 | ||
d57d5a78 MR |
7173 | 2007-10-09 Jason Rumney <jasonr@gnu.org> |
7174 | ||
7175 | * w32term.c (x_set_window_size): Disable code that attempts to tell | |
7176 | Lisp code about a size change before it actually happens. | |
7177 | ||
81d3d428 | 7178 | 2007-10-09 Richard Stallman <rms@gnu.org> |
91175673 | 7179 | |
81d3d428 MB |
7180 | * xdisp.c (handle_invisible_prop): After setting up an ellipsis, |
7181 | return HANDLED_RETURN. | |
91175673 | 7182 | |
1af74d06 | 7183 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
4f1b1854 | 7184 | |
1af74d06 MB |
7185 | * keyboard.c (kbd_buffer_get_event): Break loop waiting for input |
7186 | when there's an unread command event. | |
e0fead5d | 7187 | |
c7a4b95b | 7188 | * frame.c (focus_follows_mouse): Move here from frame.el to allow |
1af74d06 MB |
7189 | window autoselection act appropriately when leaving selected frame. |
7190 | (syms_of_frame): Initialize focus_follows_mouse. | |
7191 | * frame.h (focus_follows_mouse): Extern it. | |
7192 | * macterm.c (XTread_socket): When focus_follows_mouse is nil | |
c7a4b95b | 7193 | make SELECT_WINDOW_EVENT only if we don't leave the selected frame. |
1af74d06 MB |
7194 | * msdos.c (dos_rawgetc): Likewise. |
7195 | * w32term.c (w32_read_socket): Likewise. | |
7196 | * xterm.c (handle_one_xevent): Likewise. | |
7197 | * xdisp.c (syms_of_xdisp): In doc-string of | |
7198 | mouse-autoselect-window mention focus-follows-mouse. | |
e0fead5d | 7199 | |
1af74d06 | 7200 | 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
e0fead5d | 7201 | |
1af74d06 MB |
7202 | * macterm.c (mac_load_query_font): Fix missing return value. |
7203 | [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): | |
7204 | Add BLOCK_INPUT. | |
c186cdb3 | 7205 | |
1af74d06 | 7206 | 2007-10-08 Richard Stallman <rms@gnu.org> |
c186cdb3 | 7207 | |
1af74d06 MB |
7208 | * xdisp.c (get_window_cursor_type): Implement documented behavior |
7209 | for cursor-in-non-selected-windows = t. | |
c186cdb3 | 7210 | |
1af74d06 | 7211 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
c186cdb3 | 7212 | |
1af74d06 | 7213 | * w32.c (w32_get_resource): Always close registry keys. |
58cfce98 | 7214 | |
1af74d06 | 7215 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
58cfce98 | 7216 | |
1af74d06 | 7217 | * makefile.w32-in (LIBS): Add COMCTL32. |
62854fe2 | 7218 | |
1af74d06 | 7219 | * w32fns.c (globals_of_w32fns): Init common controls. |
62854fe2 | 7220 | |
1af74d06 | 7221 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 7222 | |
c7a4b95b | 7223 | * image.c (our_memory_buffer): Rename from omfib_buffer. |
656f46bb | 7224 | |
1af74d06 | 7225 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 7226 | |
1af74d06 | 7227 | * buffer.c (Foverlays_at): Doc fix. |
036e218d | 7228 | |
1af74d06 | 7229 | 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca> |
036e218d | 7230 | |
1af74d06 | 7231 | * fns.c (Fplist_put): Preserve uneven tail data. |
7ddb2c16 | 7232 | |
1af74d06 | 7233 | 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) |
7ddb2c16 | 7234 | |
1af74d06 | 7235 | * termhooks.h (enum event_kind): Remove trailing comma. |
ace9b298 | 7236 | |
1af74d06 | 7237 | * frame.h (enum): Remove trailing comma. |
90647b07 | 7238 | |
1af74d06 | 7239 | 2007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change) |
90647b07 | 7240 | |
1af74d06 | 7241 | * w32proc.c (delete_child): Don't terminate threads of zombies. |
ace9b298 | 7242 | |
1af74d06 | 7243 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
ace9b298 | 7244 | |
1af74d06 | 7245 | * keyboard.h (struct kboard): New elt Vlast_repeatable_command. |
ace9b298 | 7246 | |
1af74d06 MB |
7247 | * keyboard.c (syms_of_keyboard): Set up new Lisp variable |
7248 | last-repeatable-command. | |
7249 | (init_kboard): Initialize Vlast_repeatable_command. | |
7250 | (command_loop_1): Set it to real_this_command unless that was | |
7251 | bound to an input event. | |
7252 | (mark_kboards): Mark it. | |
9fbc32aa | 7253 | |
1af74d06 | 7254 | 2007-10-08 Richard Stallman <rms@gnu.org> |
036e218d | 7255 | |
1af74d06 | 7256 | * eval.c (condition-case): Doc fix. |
9fbc32aa | 7257 | |
1af74d06 | 7258 | 2007-10-08 Masatake YAMATO <jet@gyve.org> |
9fbc32aa | 7259 | |
1af74d06 MB |
7260 | * xfaces.c (tty_supports_face_attributes_p): Fix code |
7261 | for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code | |
7262 | was copied and not edited. | |
9fbc32aa | 7263 | |
beb9f745 SM |
7264 | 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca> |
7265 | ||
c86f7377 | 7266 | Add new `input-decode-map' keymap and use it for terminal |
4f4a84ec SM |
7267 | escape sequences. |
7268 | * keyboard.h (struct kboard): Add Vinput_decode_map. | |
7269 | Remove Vlocal_key_translation_map. | |
7270 | * keyboard.c (read_key_sequence): Add support for input-decode-map. | |
7271 | (init_kboard): Init input-decode-map. | |
7272 | Replace local-key-translation-map back with key-translation-map. | |
7273 | (syms_of_keyboard): Declare input-decode-map. | |
7274 | Remove local-key-translation-map. Update docstrings. | |
7275 | (mark_kboards): Mark Vinput_decode_map. | |
7276 | Don't mark Vlocal_key_translation_map. | |
7277 | * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map. | |
7278 | Replace local-key-translation-map back with key-translation-map. | |
7279 | * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN): | |
7280 | Bind in input-decode-map rather than function-key-map. | |
7281 | ||
beb9f745 SM |
7282 | * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore. |
7283 | This was made redundant by the previous introduction of XSETPVECTYPE. | |
7284 | ||
65342ae3 RS |
7285 | 2007-10-09 Richard Stallman <rms@gnu.org> |
7286 | ||
beb9f745 | 7287 | * image.c (free_bitmap_record): Rename from Free_Bitmap_Record. |
65342ae3 RS |
7288 | |
7289 | 2007-09-29 Richard Stallman <rms@gnu.org> | |
7290 | ||
7291 | * eval.c (internal_condition_case_2, internal_condition_case_1) | |
7292 | (internal_condition_case): Reenable abort if x_catching_errors () | |
7293 | to see if that really happens and why. | |
7294 | ||
6cff77fd AS |
7295 | 2007-10-06 Andreas Schwab <schwab@suse.de> |
7296 | ||
7297 | * fileio.c (Fwrite_region): Ignore EINVAL error from fsync. | |
7298 | ||
bbe6f2aa JB |
7299 | 2007-10-04 Juanma Barranquero <lekktu@gmail.com> |
7300 | ||
7301 | * image.c (syms_of_image) <image-types>: Fix typo in docstring. | |
7302 | ||
a390930c SM |
7303 | 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca> |
7304 | ||
7305 | * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used. | |
7306 | ||
d6aa1876 SM |
7307 | 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca> |
7308 | ||
d0fdb6da SM |
7309 | * window.h (struct window): |
7310 | * window.c (struct save_window_data, struct saved_window): | |
7311 | * termhooks.h (struct terminal): | |
7312 | * process.h (struct Lisp_Process): | |
7313 | * frame.h (struct frame): | |
7314 | * buffer.h (struct buffer): | |
7315 | * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table) | |
7316 | (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table): | |
7317 | The size field of (pseudo)vectors is now unsigned. | |
7318 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly. | |
7319 | ||
878f97ff SM |
7320 | * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end. |
7321 | Turn `count' into an integer. | |
d0fdb6da | 7322 | |
878f97ff SM |
7323 | * fns.c (make_hash_table, hash_put, hash_remove, hash_clear) |
7324 | (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count): | |
7325 | * print.c (print_object) <HASH_TABLE_P>: `count' is an int. | |
7326 | * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR. | |
7327 | (mark_object) <HASH_TABLE_P>: Use mark_vectorlike. | |
7328 | ||
d2029e5b SM |
7329 | * alloc.c (allocate_pseudovector): New fun. |
7330 | (ALLOCATE_PSEUDOVECTOR): New macro. | |
7331 | (allocate_window, allocate_terminal, allocate_frame) | |
7332 | (allocate_process): Use it. | |
7333 | (mark_vectorlike): New function. | |
7334 | (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it. | |
7335 | (mark_terminals): Use it. | |
7336 | (Fmake_bool_vector, Fmake_char_table, make_sub_char_table) | |
7337 | (Fmake_byte_code): Use XSETPVECTYPE. | |
7338 | ||
7339 | * frame.c (Fframe_parameters): Minor simplification. | |
7340 | ||
7341 | * insdel.c (adjust_markers_for_insert): Generalize assertion checks. | |
7342 | ||
7343 | * marker.c (Fmarker_buffer): Make test for odd case into a failure. | |
7344 | ||
7345 | * buffer.c (Fget_buffer_create, init_buffer_once): | |
7346 | * lread.c (defsubr): | |
7347 | * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE. | |
7348 | ||
7349 | * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be | |
7350 | defined differently in the m/*.h files. | |
7351 | (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking. | |
7352 | (XSETPVECTYPE): New macro. | |
7353 | (XSETPSEUDOVECTOR): Use it. | |
7354 | ||
d6aa1876 SM |
7355 | * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c. |
7356 | (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. | |
d2029e5b | 7357 | |
d6aa1876 SM |
7358 | * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): |
7359 | * lread.c (defvar_per_buffer): | |
7360 | * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c. | |
7361 | ||
7362 | * window.c (candidate_window_p): Only consider as visible frames that | |
7363 | are on the same terminal. | |
7364 | ||
7365 | * m/ibms390x.h (MARKBIT): Remove unused macro. | |
7366 | ||
88852d45 JB |
7367 | 2007-10-01 Juanma Barranquero <lekktu@gmail.com> |
7368 | ||
7369 | * lread.c (Fload): Fix typo in docstring. | |
7370 | ||
2742fe30 MC |
7371 | 2007-10-01 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name> |
7372 | ||
7373 | * floatfns.c (Fexpt): Manually check for overflows, so that a power | |
7374 | of a non-zero value can't yield zero. | |
7375 | ||
ed0c79c6 SM |
7376 | 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca> |
7377 | ||
b870aa61 SM |
7378 | * term.c (term_clear_mouse_face, term_mouse_highlight) |
7379 | (tty_write_glyphs_with_face): Only define is HAVE_GPM. | |
7380 | ||
4c37a414 SM |
7381 | * print.c (safe_debug_print): Use XHASH. |
7382 | ||
b9466edb SM |
7383 | * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of |
7384 | Lisp elements such as tags. | |
7385 | (XHASH): New macro. | |
7386 | (EQ): Use it. | |
7387 | (SREF, SSET, STRING_COPYIN): Use SDATA. | |
7388 | (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove. | |
7389 | ||
9c545a55 SM |
7390 | * alloc.c (mark_terminal): Remove left-over declaration. |
7391 | (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE. | |
7392 | (allocate_vectorlike): Remove type argument. Adjust callers. | |
7393 | (live_vector_p, mark_maybe_pointer, valid_lisp_object_p): | |
7394 | Only handle the one remaining MEM_TYPE_VECTORLIKE. | |
7395 | ||
dafc79fa SM |
7396 | * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros |
7397 | to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used. | |
7398 | (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc) | |
7399 | (lisp_align_free, make_interval, allocate_string, allocate_string_data) | |
7400 | (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc): | |
7401 | Use them. | |
7402 | ||
ed0c79c6 SM |
7403 | * xfaces.c (load_face_font, free_realized_face, clear_face_gcs): |
7404 | Don't let signal handlers run when a GC is freed but not yet NULL'ed. | |
7405 | (x_free_gc): Remove BLOCK_INPUT since it's now redundant. | |
7406 | ||
3c81afd4 DN |
7407 | 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu> |
7408 | ||
7409 | * Makefile.in (lisp, shortlisp): Delete server.elc, it is not | |
7410 | loaded by default. | |
7411 | ||
6178ce5e SM |
7412 | 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca> |
7413 | ||
4ce5ab77 SM |
7414 | * term.c (Fgpm_mouse_start): Don't signal an error if already activated |
7415 | on this tty. | |
7416 | (Fgpm_mouse_stop): Only deactivate if it was activated on this tty. | |
7417 | ||
6178ce5e SM |
7418 | * term.c (mouse_face_window): Rename from Qmouse_face_window. |
7419 | Update all users. | |
7420 | (handle_one_term_event): Use Gpm_DrawPointer. | |
7421 | (Fgpm_mouse_start): Rename from Fterm_open_connection. | |
7422 | Signal errors instead of returning nil. Always return nil. | |
7423 | (Fgpm_mouse_stop): Rename from Fterm_close_connection. | |
7424 | Make it a noop if gpm-mouse was not activated. | |
7425 | (syms_of_term): Update names. | |
7426 | ||
bdf5f8ef SM |
7427 | 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca> |
7428 | ||
75a8734b SM |
7429 | * sysdep.c (narrow_foreground_group, widen_foreground_group): Static. |
7430 | (init_sys_modes): Check that gpm_tty is the current tty. | |
7431 | ||
13559ee0 SM |
7432 | * alloc.c (allocate_terminal): Set the vector size to only count the |
7433 | lisp fields. Initialize those to nil. | |
7434 | (mark_object): Don't treat terminals specially. | |
7435 | (mark_terminal): Remove. | |
7436 | (mark_terminals): Use mark_object instead. | |
7437 | ||
ff16b875 SM |
7438 | * termhooks.h (struct terminal): Move all Lisp_Object fields traced by |
7439 | the GC to the beginning. | |
7440 | ||
83155776 SM |
7441 | * indent.h: |
7442 | * indent.c: Use EMACS_INT for ints coming from Elisp data. | |
7443 | ||
bdf5f8ef SM |
7444 | * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions. |
7445 | ||
ec8705b6 JR |
7446 | 2007-09-25 Jason Rumney <jasonr@gnu.org> |
7447 | ||
7448 | * frame.c (make_terminal_frame): Remove special case for WINDOWSNT. | |
7449 | ||
7450 | * w32console.c (create_w32cons_output): Remove. | |
7451 | ||
7452 | * term.c (init_tty): Call init_sys_modes on WINDOWSNT also. | |
7453 | ||
7454 | * sysdep.c (init_sys_modes): Use set_terminal_modes_hook. | |
7455 | (reset_sys_modes): Use reset_terminal_modes_hook. | |
7456 | ||
7351b242 SM |
7457 | 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca> |
7458 | ||
7459 | * eval.c (do_autoload): Don't output any message. | |
7460 | ||
16706228 JL |
7461 | 2007-09-24 Juri Linkov <juri@jurta.org> |
7462 | ||
7463 | * emacs.c (standard_args): Change priority of "--no-splash" | |
7464 | from 40 to 3. Add "--no-desktop" with the same priority. | |
7465 | ||
3ae2e3a3 RS |
7466 | 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru> |
7467 | ||
7468 | * alloc.c (gc_sweep): Check cons cell mark bits word by word | |
7469 | and optimize the case where they are all 1. | |
7470 | ||
7a58fb43 GM |
7471 | 2007-09-23 Johannes Weiner <hannes@saeurebad.de> |
7472 | ||
3ae2e3a3 RS |
7473 | * lisp.h (abs): Define if not defined. |
7474 | * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c: | |
7475 | Don't define `abs', since it's defined in lisp.h. | |
7a58fb43 | 7476 | |
78048085 EZ |
7477 | 2007-09-22 Eli Zaretskii <eliz@gnu.org> |
7478 | ||
c7a4b95b | 7479 | * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows. |
78048085 EZ |
7480 | (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero. |
7481 | (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty) | |
7482 | (init_tty): Use DEV_TTY instead of "/dev/tty". | |
7483 | [WINDOWSNT]: No need to protect from NAME arg being null. | |
7484 | ||
23d4cba5 DN |
7485 | 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu> |
7486 | ||
7487 | * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning | |
7488 | up the tty state. | |
7489 | ||
71f44e7a SM |
7490 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
7491 | ||
7492 | * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
7493 | (gpm_tty): Change its type. | |
7494 | * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
7495 | (gpm_tty): Change its type and initialize it. | |
7496 | (Fterm_open_connection): Check the frame is indeed a tty. | |
7497 | Use the new gpm_tty. | |
7498 | (Fterm_close_connection): Use the new gpm_tty. | |
7499 | * keyboard.c (tty_read_avail_input): Use the new gpm_tty. | |
7500 | * sysdep.c (init_sys_modes): term_gpm -> gpm_tty. | |
7501 | ||
def7fa34 JB |
7502 | 2007-09-21 Juanma Barranquero <lekktu@gmail.com> |
7503 | ||
7504 | * w32term.c (x_draw_glyph_string): Use strike_through_color, not | |
7505 | underline_color, to draw strike-through. | |
7506 | ||
d2bb6598 SM |
7507 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
7508 | ||
273f164c SM |
7509 | * lisp.h (allocate_terminal): Declare. |
7510 | ||
ca2d5566 SM |
7511 | * window.c (candidate_window_p): Consider frames that are being placed |
7512 | by the user as somewhere between visible and iconified. | |
7513 | (window_loop): Prefer windows on the current frame. | |
7514 | (Fselect_window): Move the use of select-frame to the beginning so we | |
7515 | can just delegate all the work (it'll call us back anyway). | |
7516 | ||
6168122d SM |
7517 | * frame.c (Qdisplay_environment_variable): |
7518 | * frame.h (Qdisplay_environment_variable): Delete. | |
7519 | ||
c51842ec SM |
7520 | * .gdbinit (xbacktrace): Print the arg's address rather than the value |
7521 | of the first arg, since that value may be a union. | |
7522 | ||
d2bb6598 SM |
7523 | * callproc.c (child_setup, getenv_internal): Use the frame's `display' |
7524 | parameter rather than Qdisplay_environment_variable. If all else | |
7525 | fails, look for DISPLAY in initial-environment. | |
7526 | ||
6f022c19 GM |
7527 | 2007-09-21 Glenn Morris <rgm@gnu.org> |
7528 | ||
7529 | * Makefile.in (emacstool): Remove target. | |
f466320b | 7530 | (lisp, shortlisp): Remove termdev.elc. |
6f022c19 | 7531 | |
ea1bf8c7 GM |
7532 | 2007-09-21 Markus Triska <markus.triska@gmx.at> |
7533 | ||
d2bb6598 | 7534 | * xterm.c (x_delete_display): Compile session management conditionally. |
ea1bf8c7 | 7535 | |
d30a25b3 SM |
7536 | 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
7537 | ||
db699fc6 SM |
7538 | * callproc.c (getenv_internal_1): New function. |
7539 | (getenv_internal): Use it. | |
7540 | (Fgetenv_internal): Use it. Accept an env-list as optional arg. | |
7541 | ||
d2bb6598 | 7542 | * terminal.c (get_terminal): Don't accept ints to represent terminals. |
c5911e55 SM |
7543 | (Fterminal_name, Fterminal_parameters, Fterminal_parameter) |
7544 | (Fset_terminal_parameter): Work with dead terminals as well. | |
7545 | (Fmodify_terminal_parameters): Remove. | |
7546 | ||
d30a25b3 SM |
7547 | * terminal.c (get_terminal): Handle terminals. |
7548 | Make sure the terminal returned is live. | |
7549 | (create_terminal): Use allocate_terminal. | |
7550 | (mark_terminals): Move to alloc.c. | |
7551 | (delete_terminal): Use terminal->name as liveness status. | |
7552 | NULL out fields after freeing their contents. | |
7553 | Don't deallocate the object. | |
7554 | (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object | |
7555 | rather than an int. | |
7556 | (Fterminal_live_p): Accept non-integer arguments. | |
7557 | (Fterminal_list): Return terminal objects rather than an ints. | |
7558 | ||
7559 | * alloc.c (enum mem_type): New member for `terminal' objects. | |
7560 | (allocate_terminal): New function. | |
d2bb6598 SM |
7561 | (mark_maybe_pointer, valid_lisp_object_p, mark_object): |
7562 | Handle terminals. | |
d30a25b3 SM |
7563 | (mark_terminal): New fun. |
7564 | (mark_terminals): Move from terminal.c. | |
7565 | ||
7566 | * term.c (get_tty_terminal): Don't treat output_initial specially. | |
7567 | (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints. | |
7568 | (delete_tty): Use terminal->name as liveness status. | |
7569 | ||
7570 | * termhooks.h (struct terminal): Make it into a pseudovector. | |
7571 | Remove `deleted' replaced by checking `name's nullness. | |
7572 | ||
7573 | * print.c (print_object): Handle terminals. | |
7574 | ||
7575 | * lisp.h (enum pvec_type): New `terminal' pseudovector. | |
7576 | (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros. | |
7577 | ||
7578 | * frame.c (make_terminal_frame): | |
7579 | * keyboard.c (tty_read_avail_input): | |
7580 | * w32term.c (x_delete_terminal): | |
7581 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
7582 | * xterm.c (x_delete_terminal): Use terminal->name as liveness status. | |
7583 | ||
eba25e7c GM |
7584 | 2007-09-20 Glenn Morris <rgm@gnu.org> |
7585 | ||
7586 | * process.c (Fmake_network_process): Doc fix. | |
7587 | ||
2a29c3c1 JR |
7588 | 2007-09-19 Jason Rumney <jasonr@gnu.org> |
7589 | ||
7590 | * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument. | |
7591 | ||
ba1cbad7 MC |
7592 | 2007-09-19 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name> |
7593 | ||
7594 | * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): | |
7595 | Fix a C warning regarding variable constness. | |
7596 | ||
7597 | * xterm.c (handle_one_xevent): Fix a C warning. | |
7598 | ||
334a1195 JR |
7599 | 2007-09-18 Jason Rumney <jasonr@gnu.org> |
7600 | ||
7601 | * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. | |
7602 | ||
879ffad9 JD |
7603 | 2007-09-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
7604 | ||
7605 | * gtkutil.c (gdpy_def): New variable. | |
7606 | (xg_initialize): Initialize gdpy_def. | |
7607 | (xg_display_close): If no other display exists, set gdpy_def to a | |
7608 | new connection. | |
7609 | ||
45c94881 JD |
7610 | 2007-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
7611 | ||
7612 | * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf | |
7613 | when we have no file name for the icon. | |
7614 | (xg_tool_bar_expose_callback): Remove. | |
7615 | (xg_create_tool_bar): Don't connect expose signal to | |
7616 | xg_tool_bar_expose_callback. | |
7617 | (xg_get_file_with_chooser): Move GCPRO1 after declarations. | |
7618 | ||
4d580af2 AS |
7619 | 2007-09-16 Andreas Schwab <schwab@suse.de> |
7620 | ||
7621 | * alloc.c (reset_malloc_hooks): Set the hooks to the previous | |
7622 | values instead of zapping them. | |
7623 | ||
aca946f3 GM |
7624 | 2007-09-14 Glenn Morris <rgm@gnu.org> |
7625 | ||
7626 | * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope. | |
7627 | * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. | |
7628 | * image.c (our_memory_fill_input_buffer) <buffer>: Move to file | |
7629 | scope and rename to omfib_buffer for clarity. | |
7630 | (gif_load) <interlace_start, interlace_increment>: Move to file scope. | |
7631 | ||
25c460e5 KH |
7632 | 2007-09-14 Kenichi Handa <handa@m17n.org> |
7633 | ||
7634 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. | |
7635 | ||
09b69f01 JR |
7636 | 2007-09-13 Jason Rumney <jasonr@gnu.org> |
7637 | ||
7638 | * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument. | |
7639 | ||
7640 | * w32term.c (w32_term_init): Pass rif to w32_init_fringe. | |
7641 | ||
7642 | * macterm.c (mac_initialize): Don't call mac_init_fringe here. | |
7643 | (mac_term_init): Call here instead, passing rif. | |
7644 | ||
442218db GM |
7645 | 2007-09-13 Glenn Morris <rgm@gnu.org> |
7646 | ||
7647 | * s/hpux.h: No longer define `static' as nothing. | |
7648 | ||
4795c40f GM |
7649 | 2007-09-13 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org> |
7650 | ||
7651 | * callint.c (Fcall_interactively): Remove unused var `fun'. | |
7652 | ||
1971a872 RF |
7653 | 2007-09-12 Romain Francoise <romain@orebokech.com> |
7654 | ||
7655 | * window.c (prefer_window_split_horizontally, display_buffer): | |
7656 | Revert 2007-09-08 change. | |
7657 | ||
2d33f506 GM |
7658 | 2007-09-12 Glenn Morris <rgm@gnu.org> |
7659 | ||
585474ae | 7660 | * alloca.c: Remove file. |
ca7af97a GM |
7661 | * Makefile.in (alloca): Do not undef. |
7662 | (allocaobj, alloca.o): Remove. | |
7663 | (otherobj): Remove allocaobj. | |
7664 | * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block. | |
7665 | * regex.c (C_ALLOCA): Remove all references and code that was only | |
7666 | used when this was defined. | |
7667 | * search.c (boyer_moore): Remove #ifdef C_ALLOCA block. | |
7668 | * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block. | |
99dfbaf1 GM |
7669 | * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this. |
7670 | ||
2d33f506 | 7671 | * Makefile.in (SOURCES, unlock, relock): Delete. |
ca7af97a GM |
7672 | |
7673 | * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. | |
7674 | (menu_grab_callback): All uses changed. | |
7675 | ||
7676 | * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. | |
7677 | (x_reply_selection_request): All uses changed. | |
2d33f506 | 7678 | |
18a4a65e SM |
7679 | 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca> |
7680 | ||
7681 | * lread.c (load_warn_old_style_backquotes): Change message to look | |
7682 | better when it appears in the middle of byte-compiler messages. | |
7683 | ||
47cc8819 DN |
7684 | 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu> |
7685 | ||
b7ea0894 DN |
7686 | * s/darwin.h (MULTI_KBOARD): Only define for Carbon. |
7687 | ||
47cc8819 DN |
7688 | * xterm.c (x_create_terminal): Add comment. |
7689 | ||
7690 | * term.c (clear_tty_hooks, set_tty_hooks): Add comments. | |
7691 | ||
5632bd0f RS |
7692 | 2007-09-10 Richard Stallman <rms@gnu.org> |
7693 | ||
7694 | * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME. | |
7695 | ||
ccb5c14f MC |
7696 | 2007-09-10 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name> |
7697 | ||
4bca9161 MC |
7698 | * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. |
7699 | (DEFUN): Document `intspec', use it instead of `prompt'. | |
7700 | ||
04724b69 MC |
7701 | * eval.c (Fcommandp): Change `->prompt' to `->intspec'. |
7702 | ||
8a6d230a MC |
7703 | * data.c (Finteractive_form): If the interactive specification starts |
7704 | with a `(', use it as a Lisp form. | |
7705 | ||
09fbdf6c MC |
7706 | * fileio.c (Fset_file_modes): Add an interactive spec that reads a file |
7707 | name and file modes. | |
7708 | ||
ccb5c14f MC |
7709 | * callint.c (Fcall_interactively): Comment fixes. |
7710 | ||
023accd6 SM |
7711 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
7712 | ||
7713 | * callint.c (Fcall_interactively): Use Finteractive_form also for subrs | |
7714 | and compiled functions. | |
7715 | ||
f26b9544 EZ |
7716 | 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com> |
7717 | ||
7718 | * window.c (prefer_window_split_horizontally): New variable. | |
7719 | (display_buffer): Consider splitting window horizontally depending | |
7720 | on prefer_window_split_horizontally. | |
7721 | ||
4d395425 EZ |
7722 | 2007-09-08 Eli Zaretskii <eliz@gnu.org> |
7723 | ||
97ddc760 | 7724 | * sysdep.c [WINDOWSNT]: Don't include sysselect.h. |
4d395425 | 7725 | |
08c1d235 SM |
7726 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
7727 | ||
179cef48 SM |
7728 | * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking. |
7729 | ||
08c1d235 SM |
7730 | * frame.c (x_set_frame_parameters): Check number is positive before |
7731 | using XFASTINT. | |
7732 | ||
7733 | * window.c (freeze_window_start): Don't presume selected_window holds | |
7734 | a window object. | |
92f94a12 | 7735 | (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd. |
08c1d235 | 7736 | |
97ddc760 | 7737 | 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change) |
de52dcbb DN |
7738 | |
7739 | * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. | |
7740 | ||
90ab5c62 SM |
7741 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
7742 | ||
7743 | * window.c (Vsplit_window_preferred_function): New var. | |
7744 | (Fdisplay_buffer): Use it. | |
7745 | (syms_of_window): Export, and initialize it. | |
7746 | ||
1ab2cd43 TTN |
7747 | 2007-09-06 Pixel <pixel@mandriva.com> (tiny change) |
7748 | ||
7749 | * image.c (gif_load): Fix bug: Handle nonexistent colormap. | |
7750 | ||
0b0515bc GM |
7751 | 2007-09-06 Glenn Morris <rgm@gnu.org> |
7752 | ||
57fd5c55 | 7753 | * gtkutil.c (menu_grab_callback) <cnt>: |
0b0515bc GM |
7754 | * xselect.c (x_reply_selection_request) <cnt>: Move static |
7755 | variable to file scope. | |
7756 | ||
98594580 SM |
7757 | 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca> |
7758 | ||
7759 | * xdisp.c (redisplay_internal): Make sure Elisp code always sees | |
7760 | consistent values of selected_frame and selected_window. | |
7761 | ||
0f4c7aef JR |
7762 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
7763 | ||
7764 | * w32console.c (initialize_w32_display): Zero unused hooks. | |
7765 | ||
e4019195 DN |
7766 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
7767 | ||
7768 | * term.c (Vsuspend_tty_functions, Vresume_tty_functions) | |
7769 | (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change. | |
7770 | ||
bce179b5 JR |
7771 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
7772 | ||
a0236551 JR |
7773 | * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible |
7774 | in w32console.c. Set up input. Remove XXX comments that have been | |
7775 | confirmed as correct. | |
7776 | ||
a4926668 JR |
7777 | * s/ms-w32.h (MULTI_KBOARD): Define. |
7778 | ||
953bf0dc JR |
7779 | * w32console.c (one_and_only_w32cons): Remove. |
7780 | (initialize_w32_display): Take terminal argument. | |
7781 | ||
7782 | * term.c (init_tty) [WINDOWSNT]: Pass terminal to | |
7783 | initialize_w32_display. | |
7784 | (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. | |
7785 | ||
bce179b5 JR |
7786 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. |
7787 | ||
7788 | * keyboard.c (discard_mouse_events): Discard it. | |
7789 | (make_lispy_event): Translate it to a lisp event. | |
7790 | (lispy_wheel_names): Add wheel-left and right events. | |
7791 | (syms_of_keyboard): Enlarge wheel_syms. | |
7792 | ||
7793 | * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. | |
7794 | <WM_MOUSEHWHEEL>: Pass new system message to lisp. | |
7795 | ||
7796 | * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't. | |
7797 | ||
7798 | * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT | |
7799 | from WM_MOUSEHWHEEL. | |
7800 | (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL. | |
7801 | ||
7802 | * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from | |
7803 | terminal. | |
7804 | ||
7805 | * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new | |
7806 | keyboard for the terminal. | |
7807 | ||
92cd6a7c DN |
7808 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
7809 | ||
7810 | * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. | |
7811 | (Vresume_tty_hook): Rename from Vresume_tty_functions. | |
7812 | (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook | |
7813 | and resume-tty-function to resume-tty-hook. | |
7814 | (Fsuspend_tty, Fresume_tty): Use new names. | |
7815 | ||
2154c964 JD |
7816 | 2007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
7817 | ||
7818 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon | |
7819 | if it starts with "n:". | |
7820 | ||
b42ff099 JD |
7821 | 2007-08-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
7822 | ||
7823 | * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL. | |
7824 | ||
6b8e474c SM |
7825 | 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> |
7826 | ||
92d9c1d4 SM |
7827 | * frame.h: |
7828 | * frame.c (Qterm_environment_variable): Remove. | |
7829 | (syms_of_frame): Don't init and staticpro it. | |
7830 | ||
92d9c1d4 SM |
7831 | * callproc.c (getenv_internal): Remove special case for $TERM. |
7832 | ||
6b8e474c SM |
7833 | * callproc.c (Vinitial_environment): New variable. |
7834 | (set_initial_environment): Initialize it. | |
7835 | (syms_of_callproc): Declare it. | |
7836 | (child_setup): Don't mess with TERM via Qterm_environment_variable; the | |
7837 | TERM under which a process runs is never related to the TERM in which | |
7838 | Emacs is running. | |
7839 | ||
0f1444e1 DN |
7840 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
7841 | ||
7842 | * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here... | |
7843 | * s/darwin.h: ... do it here. | |
7844 | ||
b8866860 SM |
7845 | 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
7846 | ||
7847 | * lisp.h (set_initial_environment): Rename from set_global_environment. | |
7848 | ||
7849 | * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been | |
7850 | removed by mistake on the multi-tty branch. | |
7851 | ||
7852 | * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. | |
7853 | (Fmodify_frame_parameters): Return a value. | |
7854 | ||
7855 | * image.c (png_load): Comment-out var only used in commented-out code. | |
7856 | ||
7857 | * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) | |
7858 | before passing it to mark_object. | |
7859 | ||
7860 | * xfaces.c (internal_resolve_face_name): Return a value. | |
7861 | (internal_resolve_face_name, resolve_face_name_error): Comment out. | |
7862 | ||
7863 | * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. | |
7864 | (x_icon): Comment-out var only used in commented-out code. | |
7865 | ||
0a42be6d RF |
7866 | 2007-08-29 Romain Francoise <romain@orebokech.com> |
7867 | ||
7868 | * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if | |
7869 | QUIT hasn't been provided. | |
7870 | ||
8d9cc0b7 MB |
7871 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
7872 | ||
7873 | * callproc.c (child_setup, getenv_internal): Use the | |
ce20b664 | 7874 | display-environment-variable and term-environment-variable frame params. |
8d9cc0b7 MB |
7875 | (set_initial_environment): Initialise Vprocess_environment. |
7876 | ||
7877 | * config.in: Disable multi-keyboard support on a mac. | |
7878 | ||
7879 | * frame.c (Qterm_environment_variable) | |
7880 | (Qdisplay_environment_variable): New variables. | |
7881 | (syms_of_frame): Intern and staticpro them. | |
7882 | (Fmake_terminal_frame): Disable output method test. | |
7883 | ||
7884 | * frame.h: Declare them here. | |
7885 | ||
7886 | * macfns.c (x_set_mouse_color): Get rif from the frame. | |
7887 | (x_set_tool_bar_lines): Don't use updating_frame. | |
7888 | (mac_window): Add 2 new parameters for consistency with other systems. | |
7889 | (Fx_create_frame): Fix doc string. Rename the parameter. Set the | |
7890 | frame parameters following what is done in X11 and w32. Don't use | |
7891 | FRAME_MAC_DISPLAY_INFO. | |
7892 | (Fx_open_connection, start_hourglass): Remove window-system check. | |
7893 | (x_create_tip_frame): Get the keyboard from the terminal. | |
7894 | ||
7895 | * macmenu.c: Reorder includes. | |
7896 | (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
7897 | ||
7898 | * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a | |
7899 | terminal parameter. | |
7900 | (x_clear_frame): Add a frame parameter. | |
7901 | (note_mouse_movement): Get rif from the frame. | |
7902 | (mac_term_init): Initialize the terminal. | |
7903 | (mac_initialize): Make static and move terminal initialization ... | |
7904 | (mac_create_terminal): ... to this new function. | |
7905 | ||
7906 | * macterm.h (struct mac_display_info): Add terminal. | |
7196c970 | 7907 | (mac_initialize): Delete declaration. |
8d9cc0b7 | 7908 | |
381864b2 | 7909 | * puresize.h (BASE_PURESIZE): Increase base value to 1164000. |
8d9cc0b7 MB |
7910 | |
7911 | * sysdep.c: Comment out text after #endif. | |
7912 | ||
7913 | * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD | |
7914 | is defined. Better initialize ttys in windows. Use terminal | |
7915 | specific mouse_position_hook. | |
7916 | ||
7917 | * termhooks.h (union display_info): Add mac_display_info. | |
7918 | ||
b8866860 SM |
7919 | * w32fns.c (Fx_create_frame): Use kboard from the terminal. |
7920 | Set the default minibuffer frame, window_system and the rest of the | |
8d9cc0b7 MB |
7921 | frame parameters following what is done in X11. |
7922 | ||
7923 | * w32term.c (w32_initialize): Make static. | |
7924 | ||
7925 | * xselect.c (x_handle_selection_clear): Only access | |
7926 | terminal->kboard when MULTI_KBOARD is defined. | |
7927 | ||
7928 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. | |
7929 | (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. | |
7930 | ||
7931 | 2007-08-29 Jason Rumney <jasonr@gnu.org> | |
7932 | ||
7933 | * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. | |
7934 | (make_terminal_frame) [WINDOWSNT]: Initialize terminal. | |
7935 | ||
7936 | * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]: | |
7937 | (mac_init_fringe) [MAC_OS]: Get rif from selected_frame. | |
7938 | ||
7939 | * keyboard.c (restore_kboard_configuration): Only define when | |
7940 | MULTI_KBOARD defined. | |
7941 | ||
35277b03 | 7942 | * makefile.w32-in: Update dependancies from Makefile.in. |
8d9cc0b7 MB |
7943 | (OBJ1): Add terminal.$(O) |
7944 | ||
b8866860 SM |
7945 | * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: |
7946 | Don't define function body. | |
8d9cc0b7 MB |
7947 | (init_tty) [WINDOWSNT]: Use selected_frame for initializing. |
7948 | ||
7949 | * termhooks.h (display_info) [WINDOWSNT]: Add w32. | |
7950 | ||
7951 | * w32.c (request_sigio, unrequest_sigio): Remove. | |
7952 | ||
7953 | * w32console.c (w32con_move_cursor, w32con_clear_to_end) | |
7954 | (w32con_clear_frame, w32con_clear_end_of_line) | |
7955 | (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) | |
7956 | (w32con_delete_glyphs, w32con_set_terminal_window) | |
7957 | (scroll_line, w32_sys_ring_bell): Add frame arg. | |
b8866860 SM |
7958 | (w32con_set_terminal_modes, w32con_reset_terminal_modes): |
7959 | Add terminal arg. | |
8d9cc0b7 MB |
7960 | (PICK_FRAME): Remove. |
7961 | (w32con_write_glyphs): Use frame specific terminal coding. | |
7962 | (one_and_only_w32cons): New global variable. | |
7963 | (initialize_w32_display): Use it for storing hooks. | |
7964 | (create_w32cons_output): New function. | |
7965 | ||
7966 | * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first | |
7967 | arg a frame. | |
7968 | ||
b8866860 SM |
7969 | * w32fns.c (x_create_tip_frame): Set terminal and ref count. |
7970 | Set window_system. | |
8d9cc0b7 MB |
7971 | (x_set_tool_bar_lines): Don't use updating_frame. |
7972 | (Fx_create_frame): Set terminal and ref count. | |
7973 | (Fx_open_connection): Remove window-system check. | |
7974 | ||
7975 | * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
7976 | ||
7977 | * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor. | |
7978 | (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg. | |
7979 | (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines): | |
7980 | Add frame arg. | |
7981 | (x_delete_terminal, w32_create_terminal): New functions. | |
7982 | (w32_term_init): Create a terminal. | |
7983 | (w32_initialize): Move terminal specific initialization to | |
7984 | w32_create_terminal. | |
7985 | ||
b8866860 | 7986 | * w32term.h (x_output): Remove foreground_pixel and background_pixel. |
8d9cc0b7 MB |
7987 | (w32_clear_rect, w32_clear_area): Use background from frame. |
7988 | (w32_display_info): Add terminal. | |
7989 | (w32_sys_ring_bell, x_delete_display): Declare here. | |
7990 | ||
7991 | * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. | |
7992 | ||
7993 | * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. | |
7994 | ||
7995 | 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change) | |
7996 | ||
7997 | * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): | |
7998 | Fix get_named_tty calls for the controlling tty. | |
7999 | ||
8000 | 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) | |
8001 | ||
8002 | * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. | |
8003 | ||
8004 | 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) | |
8005 | ||
8006 | * term.c (tty_insert_glyphs): Add missing first parameter. | |
8007 | ||
9647bd08 | 8008 | 2007-08-29 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <karoly@lorentey.hu> |
8d9cc0b7 | 8009 | |
b8866860 SM |
8010 | * buffer.c (Fbuffer_list, Fbury_buffer): |
8011 | Take frame->buried_buffer_list into account. | |
8d9cc0b7 MB |
8012 | |
8013 | * cm.c (current_tty): New variable, for cmputc(). | |
8014 | (cmputc): Use it. | |
8015 | (cmcheckmagic): Add tty parameter, look up terminal streams there. | |
8016 | (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). | |
b8866860 SM |
8017 | (cmgoto): Add tty parameter. Pass it on to calccost(). |
8018 | Use emacs_tputs() instead of tputs(). | |
8d9cc0b7 MB |
8019 | |
8020 | * cm.h (emacs_tputs): New macro to set current_tty, and then call | |
8021 | tputs(). | |
8022 | (current_tty): New variable, for cmputc(). | |
8023 | (cmcheckmagic, cmputc, cmgoto): Add prototypes. | |
8024 | ||
8025 | * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. | |
8026 | (internal_condition_case, internal_condition_case_1) | |
8027 | (internal_condition_case_2): Don't abort when x_catching_errors. | |
8028 | ||
8029 | * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals. | |
8030 | (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to | |
8031 | prevent crashes caused by bogus longjmps in read_char. | |
8032 | ||
8033 | * keymap.h (Fset_keymap_parent): Add EXFUN. | |
8034 | ||
8035 | * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
8036 | * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): | |
8037 | Remove redundant definition. | |
8038 | ||
b8866860 SM |
8039 | * macfns.c (x_set_mouse_color, x_make_gc): |
8040 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 | 8041 | |
b8866860 SM |
8042 | * w32term.c (x_free_frame_resources): |
8043 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
8044 | (w32_initialize): Use the accessor macros for terminal characteristics. |
8045 | ||
8046 | * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. | |
8047 | Use the accessor macros for terminal characteristics. | |
8048 | * msdos.c (internal_terminal_init): Use the accessor macros for | |
8049 | terminal characteristics. | |
b8866860 SM |
8050 | (ScreenVisualBell, internal_terminal_init): |
8051 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
8052 | |
8053 | * termopts.h (no_redraw_on_reenter): Declare. | |
8054 | ||
8055 | * alloc.c (emacs_blocked_malloc): Disable mallopt call. | |
03f06e5c | 8056 | (mark_terminals, mark_ttys): Declare. |
8d9cc0b7 | 8057 | (Fgarbage_collect): Call them. |
03f06e5c | 8058 | (mark_object): Mark buried_buffer_list. |
8d9cc0b7 MB |
8059 | |
8060 | * prefix-args.c: Include stdlib.h for exit. | |
8061 | ||
8062 | * syssignal.h: Add comment. | |
8063 | ||
8064 | * indent.c: Include stdio.h. | |
8065 | ||
8066 | * window.h (Vinitial_window_system): Declare. | |
8067 | (Vwindow_system): Delete declaration. | |
8068 | ||
8069 | * fontset.c (Finternal_char_font): Use FRAME_RIF. | |
8070 | ||
8071 | * image.c (lookup_image): Don't initialize `c' until the xasserts | |
8072 | have been run. | |
8073 | ||
8074 | * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and | |
8075 | FRAME_FOREGROUND_PIXEL. | |
8076 | ||
8077 | * print.c (print_preprocess): Don't lose print_depth levels while | |
8078 | iterating. | |
8079 | ||
b8866860 SM |
8080 | * widget.c (update_from_various_frame_slots): |
8081 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
8082 | |
8083 | * window.c (set_window_buffer): Don't call clear_mouse_face on tty | |
8084 | frames. | |
8085 | (window_internal_height): Remove bogus make_number call. | |
b8866860 | 8086 | (init_window_once): Call make_terminal_frame with two zero parameters. |
8d9cc0b7 MB |
8087 | |
8088 | * fileio.c (Fread_file_name): Update comment. | |
8089 | ||
b8866860 SM |
8090 | * callint.c (Fcall_interactively): |
8091 | Use temporarily_switch_to_single_kboard instead of single_kboard_state. | |
8d9cc0b7 MB |
8092 | Make sure it is correctly unwound. |
8093 | ||
8094 | * xsmfns.c (x_session_close): New function. | |
8095 | ||
03f06e5c | 8096 | * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): |
8d9cc0b7 MB |
8097 | Delete declarations. |
8098 | ||
8099 | * xterm.h: Remove declaration for x_fully_uncatch_errors. | |
8100 | (x_output): Remove background_pixel and foreground_pixel fields. | |
03f06e5c | 8101 | (x_display_info): Add new field TERMINAL. Remove KBOARD field. |
8d9cc0b7 MB |
8102 | (x_delete_device): |
8103 | (x_session_close): Declare. | |
8104 | ||
8105 | * lread.c: Include setjmp.h. Update declaration of `read_char'. | |
8106 | (read_filtered_event): Call `read_char' with a local | |
8107 | `wrong_kboard_jmpbuf'. | |
8108 | ||
b8866860 SM |
8109 | * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. |
8110 | Don't call single_kboard_state. Use FRAME_RIF. | |
8d9cc0b7 MB |
8111 | |
8112 | * process.c (Fmake_network_process): Don't unrequest_sigio on modern | |
8113 | systems. | |
8114 | ||
b8866860 | 8115 | * lisp.h (set_process_environment): Rename to `set_global_environment'. |
03f06e5c | 8116 | (Fframe_with_environment, Fset_input_meta_mode) |
8d9cc0b7 | 8117 | (Fset_quit_char): EXFUN. |
03f06e5c | 8118 | (x_create_device, tty_output, terminal, tty_display_info): Declare. |
8d9cc0b7 MB |
8119 | (init_sys_modes, reset_sys_modes): Update prototypes. |
8120 | (init_all_sys_modes, reset_all_sys_modes): New prototypes. | |
8121 | ||
b8866860 SM |
8122 | * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, |
8123 | Vlocal_key_translation_map, and Vkeyboard_translate_table. | |
03f06e5c | 8124 | (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): |
8d9cc0b7 | 8125 | Delete declarations. |
03f06e5c JB |
8126 | (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) |
8127 | (temporarily_switch_to_single_kboard, tty_read_avail_input): | |
8d9cc0b7 MB |
8128 | New declarations. |
8129 | ||
8130 | * emacs.c (main): Don't call init_sys_modes(), the new term_init() | |
8131 | already does that during init_display(). Call syms_of_keymap | |
b8866860 SM |
8132 | before syms_of_keyboard. Call `syms_of_terminal'. |
8133 | Call set_initial_environment, not set_process_environment. | |
8d9cc0b7 MB |
8134 | (shut_down_emacs): Call reset_all_sys_modes() instead of |
8135 | reset_sys_modes(). | |
8136 | ||
8137 | * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. | |
03f06e5c JB |
8138 | (internal_resolve_face_name, resolve_face_name_error): New functions. |
8139 | (resolve_face_name): Protect against loops and errors thrown by Fget. | |
8140 | (realize_default_face): Don't use FRAME_FONT unless frame is an X frame. | |
8d9cc0b7 MB |
8141 | (Ftty_supports_face_attributes_p): Update tty_capable_p call. |
8142 | ||
8143 | * scroll.c: Replace CURTTY() with local variables throughout the | |
8144 | file (where applicable). | |
8145 | (calculate_scrolling, calculate_direct_scrolling) | |
8146 | (scrolling_1, scroll_cost): Use the accessor macros for terminal | |
8147 | characteristics. | |
8148 | ||
8149 | * keymap.c (Vfunction_key_map): Remove. | |
b8866860 | 8150 | (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. |
8d9cc0b7 MB |
8151 | (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. |
8152 | (Vkey_translation_map): Remove. | |
8153 | (syms_of_keymap): Remove DEFVAR for key-translation-map. | |
8154 | (Fdescribe_buffer_bindings): | |
8155 | (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): | |
8156 | Update for terminal-local key-translation-map. | |
8157 | ||
8158 | * Makefile.in (callproc.o): Update dependencies. | |
8159 | (lisp, shortlisp): Add termdev.elc. | |
8160 | (obj): Add terminal.o. | |
8161 | (terminal.o): Add dependencies. | |
8162 | [HAVE_CARBON]: Make terminal.o depend on macgui.h. | |
8163 | (data.o, fns.o): Add termhooks.h dependency. | |
8164 | (SOME_MACHINE_LISP): Add dnd.elc. | |
8165 | (minibuf.o): Fix typo. | |
8166 | Update dependencies. | |
8167 | ||
8168 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
8169 | (find_symbol_value): Use the selected frame's keyboard, not | |
8170 | current_kboard. | |
8171 | ||
8172 | * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of | |
8173 | Vwindow_system. | |
8174 | ||
8175 | * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from | |
8176 | Fmenu_bar_open. | |
8177 | (syms_of_xmenu): Update defsubr. | |
8178 | (mouse_position_for_popup, Fx_popup_menu) | |
8179 | (Fx_popup_dialog, x_activate_menubar, update_frame_menubar) | |
8180 | (set_frame_menubar, free_frame_menubar) | |
8181 | (create_and_show_popup_menu, xmenu_show, ) | |
8182 | (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not | |
8183 | an X frame. | |
8184 | ||
8185 | * xselect.c (x_own_selection): Abort if not an X frame. | |
8186 | (some_frame_on_display): Check if it is an X frame. | |
8187 | (x_handle_selection_clear): Deal with MULTI_KBOARD. | |
8188 | ||
8189 | * coding.c: Include frame.h and termhooks.h. | |
03f06e5c | 8190 | (terminal_coding, keyboard_coding): Delete. |
8d9cc0b7 MB |
8191 | (Fset_terminal_coding_system_internal): |
8192 | (Fset_keyboard_coding_system_internal): | |
8193 | (Fkeyboard_coding_system): | |
03f06e5c JB |
8194 | (Fterminal_coding_system): Add a terminal parameter. |
8195 | Get terminal_coding from the terminal. | |
8d9cc0b7 MB |
8196 | (init_coding_once): Don't call setup_coding_system here. |
8197 | ||
8198 | * dispextern.h (set_scroll_region, turn_off_insert) | |
8199 | (turn_off_highlight, background_highlight, clear_end_of_line_raw) | |
8200 | (tty_clear_end_of_line, tty_setup_colors) | |
03f06e5c | 8201 | (delete_tty, updating_frame) |
8d9cc0b7 MB |
8202 | (produce_special_glyphs, produce_glyphs, write_glyphs) |
8203 | (insert_glyphs): Remove. | |
8204 | (raw_cursor_to, clear_to_end, tty_turn_off_insert) | |
03f06e5c | 8205 | (tty_turn_off_highlight, get_tty_size): Add declaration. |
b8866860 | 8206 | (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. |
8d9cc0b7 MB |
8207 | |
8208 | * frame.h (enum output_method): Add output_initial. | |
8209 | (struct x_output): Delete. | |
b8866860 SM |
8210 | (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
8211 | Access foreground_pixel and background_pixel directly from the frame. | |
8d9cc0b7 MB |
8212 | (tty_display): Delete. |
8213 | (struct frame): Add buried_buffer_list, foreground_pixel, | |
03f06e5c | 8214 | background_pixel and terminal. Delete kboard |
8d9cc0b7 MB |
8215 | (union output_data): Add tty. |
8216 | (FRAME_KBOARD): Get the kboard from the terminal. | |
8217 | (FRAME_INITIAL_P): New macro. | |
8218 | (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) | |
8219 | (Qterm_environment_variable, Qdisplay_environment_variable) | |
b8866860 SM |
8220 | (make_terminal_frame, Qburied_buffer_list, Qwindow_system): |
8221 | New declarations. | |
8d9cc0b7 MB |
8222 | |
8223 | * termchar.h (tty_output, tty_display_info): New structures. | |
8224 | (tty_list): Declare. | |
8225 | (FRAME_TTY, CURTTY): New macros. | |
8226 | (must_write_spaces, min_padding_speed, fast_clear_end_of_line) | |
8227 | (line_ins_del_ok, char_ins_del_ok, scroll_region_ok) | |
8228 | (scroll_region_cost, memory_below_frame, fast_clear_end_of_line) | |
8229 | (dont_calculate_costs, no_redraw_on_reenter): Remove declarations. | |
8230 | ||
8231 | * callproc.c: Include frame.h and termhooks.h, for terminal | |
8232 | parameters. | |
8233 | (add_env): New function. | |
8234 | (child_setup): Use it. | |
b8866860 | 8235 | (child_setup, getenv_internal): Handle the new Vprocess_environment. |
8d9cc0b7 MB |
8236 | (getenv_internal): Fix get_terminal_param call. |
8237 | (Fgetenv_internal, egetenv): Update doc. | |
8238 | (syms_of_callproc): Initialize Vprocess_environment to nil. | |
03f06e5c | 8239 | Register and initialize them. Remove obsolete defvars. Update doc |
8d9cc0b7 MB |
8240 | strings. |
8241 | (child_setup): Handle Vlocal_environment_variables. | |
b8866860 SM |
8242 | (getenv_internal): Add terminal parameter. |
8243 | Handle Vlocal_environment_variables. | |
8d9cc0b7 MB |
8244 | (Fgetenv_internal): Add terminal parameter. |
8245 | (child_setup, getenv_internal, Fgetenv_internal): Store the local | |
b8866860 | 8246 | environment in a frame (not terminal) parameter. Update doc strings. |
8d9cc0b7 MB |
8247 | (set_initial_environment): Rename from set_global_environment. |
8248 | Store Emacs environment in initial frame parameter. | |
8249 | ||
8250 | * xdisp.c (redisplay_internal): Update references to | |
8251 | `previous_terminal_frame'. | |
8252 | (display_mode_line, Fformat_mode_line): Replace calls to | |
8253 | `push_frame_kboard' with `push_kboard'. | |
8254 | (get_glyph_string_clip_rects): Add extra parentheses and | |
8255 | braces to prevent compiler warnings. | |
8256 | (calc_pixel_width_or_height): Add xassert to check that the | |
8257 | frame is alive. Don't call `lookup_image' on a termcap frame. | |
8258 | (message2_nolog, message3_nolog, redisplay_internal) | |
8259 | (set_vertical_scroll_bar, redisplay_window, check_x_display_info) | |
8260 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background) | |
8261 | (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) | |
8262 | (Fx_display_pixel_width, Fx_display_pixel_height) | |
8263 | (Fx_display_planes, Fx_display_color_cells) | |
8264 | (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) | |
8265 | (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) | |
8266 | (Fx_display_backing_store, Fx_display_visual_class) | |
8267 | (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): | |
97ddc760 | 8268 | Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. |
8d9cc0b7 MB |
8269 | |
8270 | * xfns.c (x_set_foreground_color x_set_background_color) | |
b8866860 SM |
8271 | (x_set_mouse_color, x_set_cursor_color, x_make_gc): |
8272 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
8273 | (Fx_create_frame, x_create_tip_frame, build_string, x_window) |
8274 | (Fx_create_frame, x_create_tip_frame): Don't create frames on a | |
8275 | terminal that is being deleted. | |
8276 | (Fx_create_frame): Use `store_frame_param' to set `window-system' | |
b8866860 | 8277 | frame parameter, and make sure it overrides any user-supplied setting. |
8d9cc0b7 MB |
8278 | (Fx_close_connection, Fx_synchronize): Unify argument names with |
8279 | the rest of the DEFUNs. | |
8280 | ||
8281 | * dispnew.c (Fsend_string_to_terminal): Update call to | |
8282 | `get_tty_terminal'. | |
8283 | (Fredraw_frame, Fsend_string_to_terminal) | |
2d33f506 | 8284 | (Fsend_string_to_terminal, init_display): Use FRAME_RIF, |
8d9cc0b7 MB |
8285 | FRAME_TERMCAP_P and FRAME_TTY. |
8286 | (window_change_signal): Don't believe width/height values that are | |
8287 | impossibly small. | |
8288 | (Vinitial_window_system): Rename from Vwindow_system. | |
8289 | (termscript, Wcm, rif): Delete. | |
8290 | ||
8291 | * termhooks.h (struct terminal): New struct containing the | |
8292 | previously global text display hooks and new members NAME, | |
8293 | DELETED and PARAM_ALIST. | |
8294 | (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING) | |
8295 | (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P) | |
8296 | (FRAME_RIF): New macros. | |
8297 | (get_terminal_param, get_device): New declarations. | |
8298 | (termscript): Delete declaration. | |
8299 | ||
8300 | * xterm.c (x_initialize): Use Fset_input_interrupt_mode. | |
8301 | (XTflash, x_free_frame_resources, x_scroll_bar_create) | |
8302 | (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and | |
8303 | FRAME_FOREGROUND_PIXEL. | |
8304 | (x_fully_uncatch_errors): Disable definition. | |
8305 | (x_scroll_bar_expose): Fix reference to foreground pixel. | |
8306 | (XTread_socket): Disable loop on all X displays. | |
8307 | (x_delete_terminal): Don't set terminal->deleted and let | |
8308 | delete_terminal delete the frames on the terminal. | |
8309 | (x_delete_display): Doc update to reflect changes in | |
8310 | delete_terminal. | |
8311 | (x_display_info) <terminal>: Move member earlier in the struct. | |
8d9cc0b7 MB |
8312 | (deleting_tty): Remove old variable. |
8313 | (Fsuspend_tty): Call clear_tty_hooks. | |
8314 | (Fresume_tty, init_tty): Call set_tty_hooks. | |
8d9cc0b7 MB |
8315 | (Ftty_display_color_p, Ftty_display_color_cells): Don't throw |
8316 | errors on X frames. | |
8317 | (x_catch_errors_unwind): Abort if x_error_message is NULL. | |
8318 | (handle_one_xevent): Initialize `f' to NULL. | |
9cab96b0 | 8319 | (x_delete_terminal, x_create_terminal): New functions. |
8d9cc0b7 MB |
8320 | (XTset_terminal_modes, XTreset_terminal_modes) |
8321 | (XTread_socket, x_connection_closed, x_term_init) | |
8322 | (x_term_init, x_delete_display): Add terminal parameter. | |
8323 | (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary | |
8324 | X connections. | |
8325 | ||
8326 | * frame.c (Fframep): Deal with output_initial. | |
8327 | (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty) | |
8328 | (Qtty_type, Qwindow_system, Qenvironment) | |
b8866860 | 8329 | (Qterm_environment_variable, Qdisplay_environment_variable): New vars. |
8d9cc0b7 MB |
8330 | (x_set_screen_gamma, store_frame_param): Fix compilation errors. |
8331 | (make_terminal_frame): Don't create frames on a terminal that is | |
8332 | being deleted. | |
8333 | (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and | |
8334 | FRAME_FOREGROUND_PIXEL. | |
b8866860 | 8335 | (store_frame_param): Check for found_for_frame before calling XFRAME. |
8d9cc0b7 MB |
8336 | (Fmake_terminal_frame): Handle NULL tty names correctly. |
8337 | (syms_of_frame): Enhance doc string of `default-frame-alist'. | |
8338 | (Fdelete_frame): Remove unused variable `count'. | |
8339 | (Qenvironment): New variable. | |
8340 | (Fdelete_frame): Don't allow other frames to refer to a deleted | |
8341 | frame in their 'environment parameter. | |
8342 | (Fframe_with_environment): New function. | |
b8866860 | 8343 | (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. |
8d9cc0b7 MB |
8344 | (get_future_frame_param): New function. |
8345 | (Fmake_terminal_frame): Use it. | |
2d33f506 | 8346 | (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF. |
8d9cc0b7 MB |
8347 | |
8348 | * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. | |
8349 | * sysdep.c (reset_sys_modes): Update for renames. | |
8350 | ||
8351 | * keyboard.c (tty_read_avail_input): New function. | |
03f06e5c | 8352 | (Fset_input_interrupt_mode, Fset_output_flow_control): New functions. |
8d9cc0b7 MB |
8353 | (syms_of_keyboard): Defsubr them. |
8354 | (Fset_input_meta_mode, Fset_quit_char): New functions. | |
8355 | (Fset_input_mode): Split to above functions. | |
8356 | ||
8357 | (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf | |
8358 | parameter. Use it in call to `read_char'. | |
b8866860 SM |
8359 | (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. |
8360 | Set wrong_kboard_jmpbuf correctly in recursive calls. | |
8361 | Use current_kboard to access Vkeyboard_translate_table. | |
8362 | Enhance comment before extra longjmp to wrong_kboard_jmpbuf. | |
8363 | Add wrong_kboard_jmpbuf parameter to allow for recursive calls. | |
8364 | Update longjmp invocations. Remember the original current_kboard, | |
8365 | and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel | |
8366 | changes it. Comment out unnecessary calls to | |
8367 | `record_single_kboard_state' and `any_kboard_state'. | |
8368 | Update recursive calls. | |
8d9cc0b7 MB |
8369 | (wrong_kboard_jmpbuf): Remove global variable. |
8370 | (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. | |
8371 | Handle deleted interrupted_kboards correctly; that is a legal | |
8372 | case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp | |
b8866860 | 8373 | and read_char calls. Abort if interrupted_kboard died in read_char. |
8d9cc0b7 MB |
8374 | (any_kboard_state, single_kboard_state) |
8375 | (push_frame_kboard): Remove function. | |
8376 | (pop_kboard): Switch out of single_kboard mode if the kboard has | |
03f06e5c JB |
8377 | been deleted. Remove unused variable. Help debugging by not |
8378 | changing current_kboard unnecessarily. Set current_kboard to the | |
8d9cc0b7 MB |
8379 | kboard of the selected frame when the stored kboard object has |
8380 | been deleted before pop_kboard. | |
8381 | (temporarily_switch_to_single_kboard): Change first parameter to a | |
8382 | frame pointer. Throw an error when caller wants to change kboards | |
8383 | while in single_kboard mode. Don't push_kboard if we weren't in | |
8384 | single kboard state. Don't pop_kboard if we popped into any | |
8385 | kboard state. | |
8386 | (restore_kboard_configuration): Abort if pop_kboard changed the | |
03f06e5c | 8387 | kboard in single_kboard mode. Call pop_kboard only after setting |
8d9cc0b7 MB |
8388 | up single_kboard mode. |
8389 | (Frecursive_edit): Switch to single_kboard mode only in nested | |
8390 | command loops. | |
b8866860 SM |
8391 | (cmd_error, command_loop, command_loop_1, timer_check): |
8392 | Comment out unnecessary call to `any_kboard_state' and | |
8d9cc0b7 MB |
8393 | `record_single_kboard_state'. |
8394 | (delete_kboard): Exit single_kboard mode if we have just deleted | |
03f06e5c | 8395 | that kboard. Use FRAME_KBOARD. |
8d9cc0b7 MB |
8396 | (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not |
8397 | `fatal_error_signal'. | |
8398 | (record_single_kboard_state): Don't push_kboard if we weren't in | |
8399 | single kboard state. Don't pop_kboard if we popped into any | |
8400 | kboard state. | |
8401 | (push_frame_kboard): Rename to push_kboard. | |
8402 | (kbd_buffer_get_event): Use FRAME_TERMINAL. | |
8403 | (read_avail_input): Read input from all terminals. | |
8404 | (mark_kboards): Also mark Vkeyboard_translate_table. | |
8405 | (kbd_buffer_store_event_hold): Simplify condition. | |
8406 | (read_key_sequence): Reinitialize fkey and keytran at each replay. | |
8407 | (Vkeyboard_translate_table): Move to struct kboard. | |
8408 | (init_kboard): Initialize Vkeyboard_translate_table. | |
8409 | (syms_of_keyboard): Use DEFVAR_KBOARD to define | |
8410 | Vkeyboard_translate_table. Update doc strings. Update docs of | |
8411 | local-function-key-map and function-key-map. | |
8412 | ||
8413 | * terminal.c: New file. | |
8414 | ||
8415 | * term.c: Include errno.h. | |
8416 | (Vring_bell_function, device_list, initial_device) | |
8417 | (next_device_id, ring_bell, update_begin, update_end) | |
8418 | (set_terminal_window, cursor_to, raw_cursor_to) | |
8419 | (clear_to_end, clear_frame, clear_end_of_line) | |
8420 | (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) | |
8421 | (Fdisplay_name, create_device, delete_device): Move to terminal.c. | |
8422 | (syms_of_term): Move their initialization to terminal.c. | |
8423 | (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p) | |
8424 | (Ftty_display_color_cells) | |
8425 | (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) | |
9cab96b0 | 8426 | (clear_tty_hooks, set_tty_hooks) |
8d9cc0b7 MB |
8427 | (init_tty, maybe_fatal): New functions. |
8428 | (Ftty_type): Return nil if terminal is not on a tty instead of | |
8429 | throwing an error. Doc update. | |
8430 | (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>: | |
03f06e5c | 8431 | Doc update. Initialize new subrs and variables. |
8d9cc0b7 MB |
8432 | (delete_tty): Use terminal->deleted. |
8433 | (tty_set_terminal_modes): Rename from set_terminal_modes. | |
8434 | (tty_reset_terminal_modes): Rename from reset_terminal_modes. | |
8435 | (set_scroll_region): Rename to `tty_set_scroll_region'. | |
8436 | (turn_on_insert): Rename to `tty_turn_on_insert'. | |
8437 | (turn_off_insert): Rename to `tty_turn_off_insert'. | |
8438 | (turn_off_highlight): Rename to `tty_turn_off_highlight'. | |
8439 | (turn_on_highlight): Rename to `tty_turn_on_highlight'. | |
8440 | (toggle_highligh): Rename to `tty_toggle_highlight'. | |
8441 | (background_highlight): Rename to `tty_background_highlight'. | |
8442 | (highlight_if_desired): Rename to `tty_highlight_if_desired'. | |
8443 | (tty_ring_bell, tty_update_end, tty_set_terminal_window) | |
8444 | (tty_set_scroll_region, tty_background_highlight) | |
8445 | (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) | |
8446 | (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) | |
8447 | (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) | |
8448 | (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty): | |
8449 | Add static modifier. | |
8450 | (tty_reset_terminal_modes, tty_set_terminal_window) | |
8451 | (tty_set_scroll_region, tty_background_highlight) | |
8452 | (tty_highlight_if_desired, tty_cursor_to) | |
8453 | (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) | |
8454 | (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) | |
8455 | (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for | |
8456 | renames. | |
8457 | ||
cf0590c4 JD |
8458 | 2007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
8459 | ||
8460 | * keyboard.c: Qrtl is new. | |
8461 | (parse_tool_bar_item): Handle :rtl keyword. | |
8462 | (syms_of_keyboard): Intern :rtl keyword. | |
8463 | ||
8464 | * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. | |
8465 | ||
8466 | * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED | |
8467 | so no Lisp code is executed. | |
8468 | (file_for_image, find_rtl_image): New functions. | |
8469 | (xg_get_image_for_pixmap): Use file_for_image | |
8470 | (update_frame_tool_bar): If direction is RTL, use RTL image if | |
8471 | defined. Use Gtk stock images if defined. | |
8472 | ||
83cc8d35 YM |
8473 | 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8474 | ||
8475 | * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle | |
8476 | for nonexistent or zero-width glyph in composition glyph. | |
8477 | ||
e60c4e15 SM |
8478 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> |
8479 | ||
d7e2a28f SM |
8480 | * m/amdx86-64.h: Redirect to intel386.h if compiling for i386. |
8481 | ||
e60c4e15 SM |
8482 | * xdisp.c (Finvisible_p): New function. |
8483 | (syms_of_xdisp): defsubr it. | |
8484 | ||
ee163e6d JB |
8485 | 2007-08-24 Juanma Barranquero <lekktu@gmail.com> |
8486 | ||
8487 | * image.c (syms_of_image) <image-library-alist, cross-disabled-images>: | |
8488 | Doc fixes. | |
8489 | ||
90fa408d YM |
8490 | 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8491 | ||
35277b03 | 8492 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. |
90fa408d | 8493 | |
cac4219c MR |
8494 | 2007-08-24 Martin Rudalics <rudalics@gmx.at> |
8495 | ||
8496 | * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell | |
8497 | whether decoding has modified buffer contents. | |
8498 | ||
5fc9fdeb JR |
8499 | 2007-08-24 Jason Rumney <jasonr@gnu.org> |
8500 | ||
8501 | * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG. | |
8502 | (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols. | |
8503 | (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them. | |
8504 | (init_svg_functions) [HAVE_NTGUI]: New function. | |
8505 | (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines. | |
8506 | (svg_load_image): Use them. | |
8507 | (svg_load_image) [HAVE_NTGUI]: Implement background. | |
8508 | ||
93b23406 YM |
8509 | 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8510 | ||
8511 | * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables. | |
8512 | (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@. | |
8513 | (LIBX): Remove @RSVG_LIBS@. | |
8514 | (LIBES): Add $(RSVG_LIBS). | |
8515 | ||
8516 | * image.c (svg_load_image): Blend with specified background if exists. | |
8517 | Use IMAGE_BACKGROUND. Add Mac OS Support. | |
8518 | ||
8519 | * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. | |
8520 | (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: | |
8521 | Remove macros. | |
8522 | [MAC_OSX] (socket_callback): Do nothing. | |
8523 | [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of | |
8524 | ReceiveNextEvent. | |
8525 | [MAC_OSX] (sys_select): Likewise. Don't set context as argument to | |
8526 | socket_callback. | |
8527 | (mac_wakeup_from_rne) [MAC_OSX]: Do nothing. | |
8528 | ||
2467875c GM |
8529 | 2007-08-22 Glenn Morris <rgm@gnu.org> |
8530 | ||
ff8da443 | 8531 | * image.c (x_find_image_file): Search in etc/images/ rather than etc/. |
2467875c | 8532 | |
4ab27a43 GM |
8533 | 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net> |
8534 | ||
8535 | * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS. | |
ff8da443 | 8536 | |
666e0eda GM |
8537 | * image.c: Add support for SVG images. Some additional comments |
8538 | by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined: | |
8539 | (svg_image_p): New function to test for SVG image. | |
8540 | (svg_load): New function to load SVG image. | |
8541 | (svg_load_image): New function, helper for svg_load. | |
8542 | (Qsvg): New Lisp_object. | |
8543 | (svg_keyword_index): New enum. | |
8544 | (svg_format): New static `image_keyword' struct. | |
8545 | (svg_type): New static `image_type' struct. | |
8546 | (librsvg/rsvg.h): Include it. | |
4ab27a43 | 8547 | |
b636b4c1 SM |
8548 | 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> |
8549 | ||
8550 | * lread.c (load_warn_old_style_backquotes): Fix up array size typo. | |
8551 | ||
9ecb827b SM |
8552 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
8553 | ||
1d064697 SM |
8554 | * lread.c (Qold_style_backquotes): New var. |
8555 | (syms_of_lread): Init and staticpro it. | |
8556 | (load_warn_old_style_backquotes): New fun. | |
8557 | (Fload): Use them to warn about old style backquotes. | |
8558 | (end_of_file_error, Fload): Remove unused vars. | |
8559 | ||
5772ed4b SM |
8560 | * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. |
8561 | ||
9ecb827b | 8562 | * lread.c (Vold_style_backquotes): New var. |
5aa273b0 | 8563 | (syms_of_lread): Init and export it to Elisp. |
9ecb827b SM |
8564 | (read1): Set it when we find an old-style (back)quote. |
8565 | ||
32e1c7b1 JR |
8566 | 2007-08-22 Jason Rumney <jasonr@gnu.org> |
8567 | ||
8568 | * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. | |
8569 | ||
b8fa755b KY |
8570 | 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org> |
8571 | ||
8572 | * puresize.h (BASE_PURESIZE): Increase to 1140000. | |
8573 | ||
1283140e RS |
8574 | 2007-08-19 Richard Stallman <rms@gnu.org> |
8575 | ||
8576 | * eval.c (Ffunction, Fquote): Signal error if not 1 argument. | |
8577 | ||
2c4685ee AS |
8578 | 2007-08-19 Andreas Schwab <schwab@suse.de> |
8579 | ||
8580 | * alloc.c (pure): Round PURESIZE up. | |
8581 | ||
e8953ebf JD |
8582 | 2007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
8583 | ||
8584 | * xterm.c (handle_one_xevent): Remove check that mouse click is in | |
8585 | active frame. | |
8586 | ||
6e33efc4 RS |
8587 | 2007-08-16 Richard Stallman <rms@gnu.org> |
8588 | ||
8589 | * eval.c (Fcommandp): Add parens to clarify. | |
8590 | ||
8591 | * minibuf.c (Fall_completions): Use enum for type of table. | |
8592 | ||
8593 | * emacs.c (USAGE2): Improve text. | |
8594 | ||
fcf8ff2e GM |
8595 | 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> |
8596 | ||
5205ee62 GM |
8597 | * term.c (tty_default_color_capabilities): Declare static |
8598 | variables in file scope, to avoid HPUX compiler problem. | |
fcf8ff2e | 8599 | |
81d13a51 JD |
8600 | 2007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
8601 | ||
8602 | * gtkutil.c (update_frame_tool_bar): Use -1 as index | |
8603 | to gtk_toolbar_insert. | |
8604 | ||
4a181359 SM |
8605 | 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca> |
8606 | ||
1bc99c9c SM |
8607 | * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. |
8608 | ||
4a181359 SM |
8609 | * insdel.c (reset_var_on_error): New fun. |
8610 | (signal_before_change, signal_after_change): | |
8611 | Use it to reset (after|before)-change-functions to nil in case of error. | |
8612 | Bind inhibit-modification-hooks to t. | |
8613 | Don't bind (after|before)-change-functions to nil while they run. | |
8614 | ||
6c28435c YM |
8615 | 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8616 | ||
8617 | * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when | |
8618 | filling pixmap with stippled background. | |
8619 | ||
ad3b3e02 YM |
8620 | 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8621 | ||
8622 | * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): | |
8623 | Don't use invisible frame as parent window for repositioning. | |
8624 | ||
a22dec27 SM |
8625 | 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> |
8626 | ||
8627 | * print.c (new_backquote_output): Rename from old_backquote_output. | |
8628 | (print): Inverse its logic (according to its name) so as to match the | |
8629 | behavior of new_backquote_flag in lread.c. | |
8630 | ||
7b7d07bb YM |
8631 | 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8632 | ||
8633 | * gmalloc.c (posix_memalign): New function. | |
8634 | ||
8635 | * macterm.c (frame_highlight, frame_unhighlight): Don't call | |
8636 | ActivateControl/DeactivateControl here. | |
8637 | [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when | |
8638 | frame-notice-user-settings is non-nil. | |
8639 | [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter | |
8640 | for kEventParamFMFontStyle. | |
8641 | [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check | |
8642 | mac_pass_command_to_system and mac_pass_control_to_system here. | |
8643 | (XTread_socket): Call ActivateControl/DeactivateControl here. | |
8644 | (XTread_socket) [TARGET_API_MAC_CARBON]: | |
8645 | Check mac_pass_command_to_system and mac_pass_control_to_system here. | |
f9426479 YM |
8646 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround |
8647 | for window repositioning. | |
7b7d07bb | 8648 | |
22e9fe24 GM |
8649 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
8650 | ||
8651 | * Replace `iff' in doc-strings and comments. | |
8652 | ||
ae494350 CY |
8653 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> |
8654 | ||
8655 | * xdisp.c (move_it_by_lines): Remove incorrect optimization. | |
8656 | ||
6f2528d8 MR |
8657 | 2007-08-07 Martin Rudalics <rudalics@gmx.at> |
8658 | ||
8659 | * fileio.c (Finsert_file_contents): Run format-decode and | |
8660 | after_insert_file_functions on entire buffer when REPLACE is | |
8661 | non-nil and inhibit modification_hooks and point_motion_hooks. | |
8662 | For consistency, run after_insert_file_functions iff something | |
8663 | got inserted. Move signal_after_change and update_compositions | |
8664 | after code running after_insert_file_functions. Make sure that | |
6b8e474c | 8665 | undo_list doesn't record intermediate steps of the decoding process. |
6f2528d8 | 8666 | |
3ceeb306 YM |
8667 | 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8668 | ||
8669 | * emacs.c (main) | |
8670 | [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | |
8671 | Call malloc_enable_thread on interactive startup. | |
8672 | ||
8673 | * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. | |
7b7d07bb YM |
8674 | (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) |
8675 | [USE_PTHREAD]: Conditionalize with it. | |
3ceeb306 YM |
8676 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) |
8677 | (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: | |
8678 | New functions. | |
8679 | ||
ca5e6fd5 CY |
8680 | 2007-08-06 Chong Yidong <cyd@stupidchicken.com> |
8681 | ||
32bfce5d CY |
8682 | * xdisp.c (redisplay_window): When restoring original buffer |
8683 | position, make sure it is still valid. | |
8684 | ||
ca5e6fd5 CY |
8685 | * image.c (png_load): Ignore png-supplied background color. |
8686 | ||
a5b11587 YM |
8687 | 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8688 | ||
8689 | * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. | |
8690 | Use kCFAbsoluteTimeIntervalSince1970. | |
8691 | ||
8692 | * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: | |
8693 | New variable. | |
8694 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog | |
8695 | event loop should be quit. | |
8696 | [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: | |
8697 | Quit dialog event loop if quit_dialog_event_loop is set. | |
8698 | ||
8699 | * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h. | |
8700 | (Selection): New typedef. Use instead of ScrapRef. | |
8701 | (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol. | |
8702 | (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p. | |
8703 | (mac_clear_selection): Rename from clear_scrap. | |
8704 | (get_flavor_type_from_symbol): New argument SEL and subsume function of | |
ff8da443 | 8705 | scrap_has_target_type. All uses changed. |
a5b11587 YM |
8706 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) |
8707 | (mac_selection_has_target_p): New functions. | |
8708 | (mac_put_selection_value): Rename from put_scrap_string. | |
8709 | (mac_get_selection_value): Rename from get_scrap_string. | |
8710 | (mac_get_selection_target_list): Rename from get_scrap_target_type_list. | |
8711 | (put_scrap_private_timestamp, scrap_has_target_type) | |
8712 | (get_scrap_private_timestamp): Remove functions. | |
8713 | (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define. | |
8714 | (x_own_selection, x_get_local_selection): | |
8715 | Use mac_valid_selection_value_p. | |
8716 | (x_own_selection): Don't use put_scrap_private_timestamp. | |
8717 | Record OWNERSHIP-INFO into Vselection_alist instead. | |
8718 | (x_get_local_selection): Don't check type if request is local. | |
8719 | (Fx_selection_owner_p): Don't use get_scrap_private_timestamp. | |
8720 | Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead. | |
8721 | ||
991bde0d JD |
8722 | 2007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
8723 | ||
8724 | * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s, | |
8725 | add comment explaining why. | |
8726 | ||
73ff9d42 RS |
8727 | 2007-08-03 Richard Stallman <rms@gnu.org> |
8728 | ||
8729 | * fileio.c (Fvisited_file_modtime): Use make_time. | |
8730 | ||
54ed9a2d | 8731 | 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) |
cdf5c17a VJL |
8732 | |
8733 | * mac.c (init_mac_osx_environment): Adjust load-path on self-contained | |
8734 | build. | |
8735 | ||
65a9c8e2 SM |
8736 | 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> |
8737 | ||
8738 | * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT. | |
8739 | ||
c5925799 KY |
8740 | 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org> |
8741 | ||
8742 | * puresize.h (BASE_PURESIZE): Increase to 1130000. | |
8743 | ||
adef3de7 RS |
8744 | 2007-07-30 Richard Stallman <rms@gnu.org> |
8745 | ||
8746 | * lread.c (readevalloop, read1): Treat NBSP as whitespace. | |
8747 | ||
784c1472 JD |
8748 | 2007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
8749 | ||
8750 | * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. | |
8751 | ||
a10421a1 NR |
8752 | 2007-07-28 Nick Roberts <nickrob@snap.net.nz> |
8753 | ||
8754 | * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for | |
8755 | remote default-directory. | |
8756 | ||
8757 | * buffer.c (mode-line-format): Update doc string. | |
8758 | ||
0cb1ae20 YM |
8759 | 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8760 | ||
8761 | * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to | |
8762 | scroll bar gap. | |
8763 | (x_scroll_bar_create): Set bar->fringe_extended_p. | |
8764 | (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars | |
8765 | on frame edge. Check fringe background extension. Don't clear | |
8766 | extended fringe background area. | |
8767 | ||
8768 | * w32term.h (struct scroll_bar): New member fringe_extended_p. | |
8769 | (w32_fill_area): Enclose multiple statements with do ... while (0). | |
8770 | ||
8771 | * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: | |
8772 | Extend fringe background to scroll bar gap. | |
8773 | (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: | |
8774 | Set bar->fringe_extended_p. | |
8775 | (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
8776 | Put leftmost/rightmost scroll bars on frame edge. Check fringe | |
8777 | background extension. Don't clear extended fringe background area. | |
8778 | ||
8779 | * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
8780 | New member fringe_extended_p. | |
8781 | ||
cacc7b51 GM |
8782 | 2007-07-25 Glenn Morris <rgm@gnu.org> |
8783 | ||
8784 | * Relicense all FSF files to GPLv3 or later. | |
8785 | ||
8786 | * COPYING: Switch to GPLv3. | |
8787 | ||
89835619 SM |
8788 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> |
8789 | ||
c4f46926 SM |
8790 | * eval.c (Fcommandp): Pay attention to the `interactive-form' property. |
8791 | ||
8792 | * data.c (Finteractive_form): Check for the presence of an | |
8793 | `interactive-form' symbol property more thoroughly. | |
8794 | ||
8795 | * data.c (Finteractive_form): Use an `interactive-form' property if | |
89835619 SM |
8796 | present, analogous to the function-documentation property. |
8797 | ||
ee04257d JR |
8798 | 2007-07-24 Jason Rumney <jasonr@gnu.org> |
8799 | ||
8800 | * w32fns.c (x_real_positions): Get real position from OS instead of | |
8801 | calculating it. | |
8802 | ||
50624218 JR |
8803 | 2007-07-23 Jason Rumney <jasonr@gnu.org> |
8804 | ||
8805 | * filelock.c (current_lock_owner): Allow for @ sign in username. | |
8806 | ||
3650f60e NR |
8807 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> |
8808 | ||
8809 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for | |
8810 | remote default-directory. | |
8811 | ||
8812 | * buffer.c (mode-line-format): Describe above case in doc string. | |
8813 | ||
1e899515 | 8814 | 2007-07-20 Eli Zaretskii <eliz@gnu.org> |
b395d6e1 | 8815 | |
75be5258 EZ |
8816 | * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): |
8817 | Define if not defined. | |
8818 | ||
2b6e2f4d JR |
8819 | 2007-07-18 Jason Rumney <jasonr@gnu.org> |
8820 | ||
8821 | * w32proc.c (w32_executable_type): Handle 64 bit executables. | |
8822 | ||
23dacf80 JB |
8823 | 2007-07-18 Richard Stallman <rms@gnu.org> |
8824 | ||
8825 | * data.c (Fsetq_default): Doc fix. | |
8826 | ||
8827 | * eval.c (Fsetq): Doc fix. | |
8828 | ||
8829 | 2007-07-18 Juanma Barranquero <lekktu@gmail.com> | |
8830 | ||
8831 | * coding.c (Ffind_operation_coding_system): | |
8832 | * eval.c (For, Fand): Doc fixes. | |
8833 | Reported by Johan Bockg\e,Ae\e(Brd. | |
8834 | ||
656de71a JD |
8835 | 2007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
8836 | ||
23dacf80 | 8837 | * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame. |
656de71a | 8838 | |
23dacf80 | 8839 | * xterm.h: Declare x_ewmh_activate_frame. |
656de71a JD |
8840 | |
8841 | * xterm.c (x_ewmh_activate_frame): New function. | |
8842 | (XTframe_raise_lower): Move code to x_ewmh_activate_frame. | |
8843 | ||
71ec17e6 MR |
8844 | 2007-07-17 Martin Rudalics <rudalics@gmx.at> |
8845 | ||
8846 | * window.c (Fdisplay_buffer): If largest or LRU window is the | |
8847 | only window, split it even if it is not eligible for splitting. | |
8848 | This restores the original behavior broken by the 2007-07-15 | |
8849 | change. | |
8850 | ||
e9818042 GM |
8851 | 2007-07-17 Glenn Morris <rgm@gnu.org> |
8852 | ||
8853 | * abbrev.c (abbrev_check_chars): New function. | |
6b8e474c SM |
8854 | (Fdefine_global_abbrev, Fdefine_mode_abbrev): |
8855 | Call abbrev_check_chars to check abbrev characters are word | |
e9818042 GM |
8856 | constituents. Doc fix. |
8857 | ||
e6fca843 SM |
8858 | 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca> |
8859 | ||
8860 | * process.c (Fstart_process, Fmake_network_process) | |
8861 | (read_process_output): Fix up last changes. | |
8862 | ||
b5d2b4ab EZ |
8863 | 2007-07-16 Eli Zaretskii <eliz@gnu.org> |
8864 | ||
8865 | * makefile.w32-in (clean): Don't delete *~. | |
8866 | ||
413a79ad AS |
8867 | 2007-07-16 Andreas Schwab <schwab@suse.de> |
8868 | ||
8869 | * window.c (Fdisplay_buffer): Use NILP. | |
8870 | (Fset_window_scroll_bars): Likewise. | |
8871 | ||
f1de8c77 MR |
8872 | 2007-07-15 Martin Rudalics <rudalics@gmx.at> |
8873 | ||
8874 | * window.c (window_min_size_2): New function. | |
8875 | (window_min_size_1, size_window, Fdisplay_buffer) | |
8876 | (Fsplit_window, adjust_window_trailing_edge): Use it to avoid | |
8877 | windows without mode- or header-lines when window-min-height is | |
8878 | too small. | |
8879 | (size_window): Reset nodelete_p after testing it, following an | |
8880 | earlier note by Kim F. Storm. | |
8881 | (display_buffer): Do not set split_height_threshold to twice the | |
8882 | value of window_min_height to avoid changing the value of a | |
8883 | customizable variable. Rather explicitly check whether the | |
8884 | height of the window that shall be splitted is at least as large | |
8885 | as split_height_threshold. | |
1af74d06 MB |
8886 | (Fwindow_full_width_p): New defun. |
8887 | (syms_of_window): Defsubr it. | |
d31053f9 | 8888 | |
1af74d06 | 8889 | * window.h: Add EXFUN for Fwindow_full_width_p. |
f1de8c77 | 8890 | |
5e1ab613 JR |
8891 | 2007-07-14 Jason Rumney <jasonr@gnu.org> |
8892 | ||
8893 | * process.c [WINDOWSNT]: Don't undefine AF_INET6. | |
8894 | ||
f01cbfdd RS |
8895 | 2007-07-14 Richard Stallman <rms@gnu.org> |
8896 | ||
8897 | * eval.c (maybe_call_debugger): New function. | |
8898 | (find_handler_clause): Use maybe_call_debugger. | |
8899 | Call it when the handler says `debug'. | |
8900 | Eliminate DEBUGGER_VALUE_PTR. | |
8901 | (Fsignal): Eliminate debugger_value. | |
8902 | (Qdebug): New variable. | |
8903 | (syms_of_eval): Initialize it. | |
8904 | ||
1bab435a JB |
8905 | 2007-07-14 Juanma Barranquero <lekktu@gmail.com> |
8906 | ||
8907 | * eval.c (Fprogn): | |
8908 | * keyboard.c (Ftrack_mouse): | |
8909 | * print.c (Fwith_output_to_temp_buffer): | |
8910 | * window.c (Fsave_window_excursion): Doc fix. | |
8911 | ||
be436d23 SM |
8912 | 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca> |
8913 | ||
8914 | * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. | |
8915 | ||
60f0fb11 SM |
8916 | 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca> |
8917 | ||
8918 | * process.h (struct Lisp_Process): Turn slots infd, outfd, | |
8919 | kill_without_query, pty_flag, tick, update_tick, decoding_carryover, | |
8920 | inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering, | |
8921 | read_output_delay, and read_output_skip from Lisp_Objects to ints. | |
8922 | Remove unused encoding_carryover. | |
8923 | * process.c: Adjust all functions accordingly. | |
8924 | ||
d8b18043 RS |
8925 | 2007-07-12 Richard Stallman <rms@gnu.org> |
8926 | ||
8927 | * term.c: Include unistd.h only if HAVE_UNISTD_H. | |
8928 | ||
d5781bb6 JR |
8929 | 2007-07-11 Jason Rumney <jasonr@gnu.org> |
8930 | ||
8931 | * makefile.w32-in (LIBS): Include OLE32. | |
8932 | ||
8933 | * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM. | |
8934 | (w32_msg_pump) <WM_DESTROY>: Uninitialize COM. | |
8935 | ||
5bb7dfee SM |
8936 | 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca> |
8937 | ||
8938 | * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer. | |
8939 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned | |
8940 | from a Lisp_Object into a bare pointer. | |
8941 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
8942 | Adjust the code correspondingly. | |
8943 | ||
8944 | * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'. | |
8945 | ||
8946 | * term.c: Include unistd.h for ttyname, used in handle_one_term_event. | |
8947 | (term_show_mouse_face): Remove unused var `j'. | |
8948 | (handle_one_term_event): Remove unused vars `i' and `j'. | |
8949 | Don't cast return value of ttyname since it's not necessary. | |
8950 | ||
a1be1ce8 SM |
8951 | 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca> |
8952 | ||
5045e68e SM |
8953 | * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using |
8954 | USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. | |
8955 | ||
8071c00f SM |
8956 | * fns.c (map_char_table): Use an array of int for `indices' rather than |
8957 | an array of Lisp_Objects (which are only ever integers anyway). | |
8958 | (Fmap_char_table): Update caller. | |
8959 | * lisp.h: Update prototype. | |
8960 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap): | |
8961 | * fontset.c (Ffontset_info): | |
8962 | * casetab.c (set_case_table): Update callers. | |
8963 | ||
8964 | * editfns.c (Ftranspose_regions): Use EMACS_INT for positions. | |
8965 | ||
fab84e3c SM |
8966 | * keymap.c (struct accessible_keymaps_data) |
8967 | (struct where_is_internal_data): New structures. | |
8968 | (accessible_keymaps_1, where_is_internal_1): Use them to change | |
8969 | interface to adhere to the one used by map_keymap. | |
8970 | (Faccessible_keymaps, where_is_internal): Use map_keymap. | |
8971 | (accessible_keymaps_char_table, where_is_internal_2): Remove. | |
8972 | ||
a1be1ce8 SM |
8973 | * keymap.h (map_keymap_function_t): More informative prototype. |
8974 | ||
ef887810 RS |
8975 | 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com> |
8976 | ||
8977 | * search.c (Vinhibit_changing_match_data, search_regs_1): New vars. | |
8978 | (looking_at_1): Don't change search_regs and last_thing_searched | |
8979 | if `inhibit-changing-match-data' is non-nil. | |
8980 | (string_match_1, search_buffer, set_search_regs): Likewise. | |
8981 | (syms_of_search): Add Lisp level definition for | |
8982 | `inhibit-changing-match-data' and set it to nil. | |
8071c00f SM |
8983 | (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute |
8984 | start and end of the match, instead of using values in search_regs. | |
ef887810 | 8985 | |
4d02fc25 SM |
8986 | 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca> |
8987 | ||
8988 | * minibuf.c (Fcompleting_read): New value `confirm-only' | |
8989 | for `require-match'. | |
8990 | ||
fe45b81f SM |
8991 | 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca> |
8992 | ||
8993 | * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as | |
8994 | part of the 2007-06-27 change to syms_of_fileio. | |
8995 | ||
a56dd283 YM |
8996 | 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
8997 | ||
8998 | * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): | |
8999 | Check WINDOWP before using XWINDOW. Consolidate return statements. | |
9000 | ||
0cf9f5b5 RS |
9001 | 2007-06-27 Richard Stallman <rms@gnu.org> |
9002 | ||
9003 | * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix. | |
9004 | ||
a66f285a JB |
9005 | 2007-06-27 Juanma Barranquero <lekktu@gmail.com> |
9006 | ||
9007 | * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring. | |
9008 | ||
8d0d84d2 YM |
9009 | 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9010 | ||
9011 | * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. | |
9012 | (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. | |
9013 | (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. | |
9014 | (_free_internal, memalign): Use them. | |
9015 | (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: | |
9016 | Initialize to PTHREAD_MUTEX_INITIALIZER. | |
9017 | (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. | |
9018 | (morecore_nolock): Rename from morecore. All uses changed. | |
9019 | Use only nolock versions of internal allocation functions. | |
9020 | (_malloc_internal_nolock, _realloc_internal_nolock) | |
9021 | (_free_internal_nolock): New functions created from | |
9022 | _malloc_internal, _realloc_internal, and _free_internal. | |
9023 | (_malloc_internal, _realloc_internal, _free_internal): Use them. | |
9024 | Copy hook value to automatic variable before its use. | |
9025 | (memalign): Copy hook value to automatic variable before its use. | |
9026 | ||
5a0bbd9a KH |
9027 | 2007-06-26 Kenichi Handa <handa@m17n.org> |
9028 | ||
9029 | * coding.c (Ffind_operation_coding_system): Docstring improved. | |
9030 | (syms_of_coding): Docstring of `file-coding-system-alist' improved. | |
9031 | ||
9a51747b DK |
9032 | 2007-06-25 David Kastrup <dak@gnu.org> |
9033 | ||
9034 | * keymap.c (Fcurrent_active_maps): Add `position' argument. | |
9035 | (Fwhere_is_internal): Adjust call to `current-active-maps' to | |
9036 | cater for additional parameter. | |
9037 | ||
9038 | * keymap.h: Adjust number of parameters to `current-active-maps'. | |
9039 | ||
9040 | * doc.c (Fsubstitute_command_keys): Adjust call of | |
9041 | `current-active-maps'. | |
9042 | ||
e4305426 DK |
9043 | 2007-06-25 David Kastrup <dak@gnu.org> |
9044 | ||
9045 | * callint.c (Fcall_interactively): Make the parsing of interactive | |
9046 | specs somewhat more readable. | |
9047 | ||
511a18d9 YM |
9048 | 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9049 | ||
9050 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background | |
9051 | to scroll bar gap also when bitmap fills fringe. Draw only foreground | |
9052 | if extended background has already been filled. | |
9053 | ||
512eb161 YM |
9054 | 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9055 | ||
9056 | * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI. | |
9057 | (USE_MAC_TOOLBAR): Require USE_CG_DRAWING. | |
9058 | ||
9059 | * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: | |
9060 | Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p | |
9061 | in #if 0 as it is not compatible with y-or-n-p-with-timeout. | |
9062 | (timer_check) [TARGET_API_MAC_CARBON]: Add extern. | |
9063 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop | |
9064 | instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls. | |
9065 | (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function. | |
9066 | [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind. | |
9067 | Run timers during dialog popup. | |
9068 | (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated. | |
9069 | ||
2386b1f1 JR |
9070 | 2007-06-21 Jason Rumney <jasonr@gnu.org> |
9071 | ||
9072 | * image.c (convert_mono_to_color_image): Swap fore and background. | |
9073 | ||
fab8b787 JR |
9074 | 2007-06-20 Jason Rumney <jasonr@gnu.org> |
9075 | ||
9076 | * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. | |
9077 | (w32_free_bdf_font): Unmap memory not handle. | |
9078 | ||
15bdd7a0 | 9079 | 2007-06-20 Sam Steingold <sds@gnu.org> |
3cacba85 SS |
9080 | |
9081 | * gmalloc.c (__morecore): Fix the declaration to comply with the | |
9082 | definition. | |
9083 | ||
1bb8a291 JB |
9084 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
9085 | ||
9086 | * w32term.c (w32_delete_display): Remove leftover declaration. | |
9087 | (w32_define_cursor, w32_initialize): Make static. | |
9088 | ||
9089 | * w32.c (_wsa_errlist): Fix typo in error message. | |
9090 | (init_environment): Ignore any environment variable from the | |
9091 | registry having a null value. | |
9092 | ||
92648dea GM |
9093 | 2007-06-20 Glenn Morris <rgm@gnu.org> |
9094 | ||
9095 | * Makefile.in (LIBGIF): Default to -lgif. | |
9096 | ||
ff25d115 JR |
9097 | 2007-06-17 Jason Rumney <jasonr@gnu.org> |
9098 | ||
9099 | * w32menu.c (add_menu_item): Don't use multibyte string functions on | |
9100 | unicode strings. | |
9101 | ||
a1a578a5 JB |
9102 | 2007-06-16 Juanma Barranquero <lekktu@gmail.com> |
9103 | ||
9104 | * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>: | |
9105 | Fix typo in docstring. | |
9106 | ||
af41f8a8 EZ |
9107 | 2007-06-16 Eli Zaretskii <eliz@gnu.org> |
9108 | ||
9109 | * w32menu.c (add_menu_item): Escape `&' characters in menu items | |
9110 | and their keybindings. | |
9111 | ||
8b29cab9 CY |
9112 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> |
9113 | ||
9114 | * composite.c (update_compositions): Fix last fix. | |
9115 | ||
c433c134 JR |
9116 | 2007-06-14 Jason Rumney <jasonr@gnu.org> |
9117 | ||
9118 | * w32.c (get_process_times_fn): New function pointer. | |
9119 | (globals_of_w32): Intialize it if present in kernel32.dll. | |
9120 | (w32_get_internal_run_time): New function. | |
9121 | ||
9122 | * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. | |
9123 | ||
553d3164 KH |
9124 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> |
9125 | ||
9126 | * composite.c (update_compositions): Check the validness of | |
9127 | compositions. | |
9128 | ||
446ba96f YM |
9129 | 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9130 | ||
9131 | * frame.h (struct frame) [MAC_OS]: New member external_tool_bar. | |
9132 | (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it. | |
9133 | ||
9134 | * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity. | |
9135 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR. | |
9136 | ||
9137 | * macgui.h (USE_MAC_TOOLBAR): New define. | |
9138 | ||
9139 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
9140 | Return immediately unless popup is activated. | |
9141 | ||
9142 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe | |
9143 | background to scroll bar gap. | |
9144 | (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p. | |
9145 | (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost | |
9146 | scroll bars on frame edge. Check fringe background extension. | |
9147 | Don't clear extended fringe background area. | |
9148 | (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) | |
9149 | (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) | |
9150 | (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID): | |
9151 | [USE_MAC_TOOLBAR]: New macros. | |
9152 | (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) | |
9153 | (mac_handle_toolbar_event, mac_image_spec_to_cg_image) | |
9154 | (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar) | |
9155 | (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) | |
9156 | [USE_MAC_TOOLBAR]: New functions. | |
9157 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window | |
9158 | manually if previous repositioning has failed. | |
9159 | (mac_handle_keyboard_event): Use precomputed event kind. | |
9160 | (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region | |
9161 | as tool bar item click. Handle mouse movement over tool bar items. | |
9162 | ||
9163 | * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member | |
9164 | toolbar_win_gravity. | |
9165 | (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. | |
9166 | (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: | |
9167 | Add externs. | |
9168 | ||
9169 | * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window) | |
9170 | [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display. | |
9171 | ||
9720173f CY |
9172 | 2007-06-14 Chong Yidong <cyd@stupidchicken.com> |
9173 | ||
9174 | * image.c (search_image_cache): Remove unused variable. | |
9175 | ||
1217dd00 CY |
9176 | 2007-06-13 Chong Yidong <cyd@stupidchicken.com> |
9177 | ||
9178 | * xfns.c, xmenu.c: Link to xaw3d if available. | |
9179 | ||
c5b8e0ea YM |
9180 | 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9181 | ||
9182 | * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members | |
9183 | frame_foreground and frame_background. | |
9184 | ||
9185 | * image.c (lookup_image): Save frame foreground and background colors. | |
9186 | (search_image_cache): Check if saved and current frame colors match. | |
9187 | ||
c69b0314 SM |
9188 | 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca> |
9189 | ||
9190 | * regex.c (regex_compile): Remove the `regnum' counter. | |
9191 | Use bufp->re_nsub instead. Add support for \(?N:RE\). | |
9192 | ||
c9612b8e SM |
9193 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
9194 | ||
9195 | * term.c: Include intervals.h to declare Fget_text_property. | |
9196 | ||
843d2458 JR |
9197 | 2007-06-10 Jason Rumney <jasonr@gnu.org> |
9198 | ||
9199 | * w32fns.c (Fx_file_dialog): Take size from struct not pointer. | |
9200 | ||
1e0d2d60 | 9201 | 2007-06-08 Juanma Barranquero <lekktu@gmail.com> |
977f6cfb JB |
9202 | |
9203 | * callint.c (Fcall_interactively): | |
9204 | * editfns.c (Fdelete_and_extract_region): | |
9205 | * fileio.c (Fread_file_name): | |
9206 | * fns.c (Fmapconcat): | |
9207 | * keyboard.c (cmd_error_internal): | |
9208 | * keymap.c (Fkey_description): | |
9209 | * lread.c (openp): | |
9210 | * minibuf.c (read_minibuf): | |
9211 | * search.c (wordify): | |
9212 | * sunfns.c (sel_read): | |
9213 | * xdisp.c (Fformat_mode_line, syms_of_xdisp): | |
9214 | * xfns.c (x_default_scroll_bar_color_parameter): | |
9215 | * xmenu.c (menu_help_callback): | |
9216 | * xselect.c (Fx_get_atom_name): | |
9217 | * xterm.c (x_term_init): Use empty_unibyte_string. | |
9218 | ||
15bdd7a0 | 9219 | 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change) |
977f6cfb JB |
9220 | |
9221 | * alloc.c (init_strings): Initialize canonical empty strings. | |
9222 | (make_uninit_string, make_uninit_multibyte_string): Return appropriate | |
9223 | canonical empty string when the requested size is 0. | |
9224 | ||
9225 | * emacs.c (empty_unibyte_string): Rename from empty_string. | |
9226 | (empty_multibyte_string): New canonical empty string. | |
9227 | (syms_of_emacs): Don't initialize empty_string. | |
9228 | ||
9229 | * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte | |
9230 | string, if appropriate. | |
9231 | (empty_unibyte_string, empty_multibyte_string): New externs. | |
9232 | (empty_string): Remove extern. | |
9233 | ||
9234 | * lread.c (syms_of_lread): Use empty_unibyte_string. | |
9235 | ||
42c4c67a JR |
9236 | 2007-06-07 Jason Rumney <jasonr@gnu.org> |
9237 | ||
9238 | * s/ms-w32.h: Don't define HAVE_TZNAME. | |
9239 | ||
9240 | * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows. | |
9241 | ||
aa8280d3 YM |
9242 | 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9243 | ||
9244 | * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. | |
9245 | ||
9246 | * macfns.c (mac_get_window_bounds): Move extern to macterm.h. | |
9247 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. | |
9248 | ||
9249 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
9250 | Don't call next handler. | |
9251 | [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): | |
9252 | Remove argument. Install handler to application. | |
9253 | (set_frame_menubar): Don't change deep_p. | |
1e0d2d60 | 9254 | (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and |
aa8280d3 YM |
9255 | FRAME_OUTER_TO_INNER_DIFF_Y. |
9256 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
9257 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
9258 | [HAVE_DIALOGS]: New macros. | |
9259 | [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): | |
9260 | Use them. | |
9261 | (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. | |
9262 | ||
9263 | * macselect.c [MAC_OSX] (install_service_handler): Rename from | |
9264 | init_service_handler. All callers changed. Return OSStatus value. | |
9265 | ||
9266 | * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. | |
9267 | All callers changed so as not to call SetPortWindowPort. | |
9268 | (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. | |
9269 | (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from | |
9270 | mac_draw_string_common. | |
9271 | (mac_draw_image_string_qd): Likewise. | |
9272 | (mac_draw_string_common): Use them. Add INLINE. | |
9273 | (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: | |
9274 | Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and | |
9275 | GetGlobalMouse. | |
9276 | (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X | |
9277 | and FRAME_OUTER_TO_INNER_DIFF_Y. | |
9278 | [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. | |
9279 | [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. | |
9280 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for | |
9281 | repositioning window to mac_handle_window_event. | |
9282 | (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for | |
9283 | saving window location to mac_handle_window_event | |
9284 | [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. | |
9285 | (install_menu_target_item_handler): Remove argument in extern. | |
9286 | [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): | |
9287 | Also accept command events. | |
9288 | (do_keystroke): New function created from XTread_socket. | |
9289 | (init_command_handler): Remove functions. | |
9290 | [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window | |
9291 | and save window location by kEventWindowShowing and kEventWindowHiding | |
9292 | handlers here. Don't call next handler for window state change and | |
9293 | focus events. | |
9294 | (mac_handle_application_event, mac_handle_keyboard_event) | |
9295 | [TARGET_API_MAC_CARBON]: New functions. | |
9296 | (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for | |
9297 | kEventWindowShowing and kEventWindowHiding events. Move installation | |
9298 | of mouse, font, text input and menu target item handlers to | |
9299 | install_application_handler. | |
9300 | (install_application_handler) [TARGET_API_MAC_CARBON]: New function. | |
9301 | (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
9302 | New function. | |
9303 | (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
9304 | Register it. | |
c9612b8e SM |
9305 | (XTread_socket) [TARGET_API_MAC_CARBON]: |
9306 | Consolidate SendEventToEventTarget calls. | |
9307 | Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y. | |
9308 | Move application activation handler to mac_handle_application_event. | |
9309 | Move keyboard handler to mac_handle_keyboard_event. | |
aa8280d3 YM |
9310 | (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. |
9311 | (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call | |
9312 | init_command_handler. Call install_application_handler. | |
9313 | ||
9314 | * macterm.h (mac_get_window_bounds): Move extern from macfns.c. | |
9315 | (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. | |
9316 | ||
6926c954 GM |
9317 | 2007-06-07 Glenn Morris <rgm@gnu.org> |
9318 | ||
9319 | * emacs.c (main): Use `emacs-copyright' in --version output. | |
9320 | ||
6fe04c89 CY |
9321 | 2007-06-06 Chong Yidong <cyd@stupidchicken.com> |
9322 | ||
c9612b8e | 9323 | * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. |
6fe04c89 | 9324 | |
7eb0d727 YM |
9325 | 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9326 | ||
9327 | * macfns.c (mac_window): Replace WindowPtr with WindowRef. | |
9328 | ||
9329 | * macgui.h: Replace WindowPtr with WindowRef. | |
9330 | ||
9331 | * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
9332 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
9333 | Replace ControlHandle with ControlRef. | |
9334 | (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. | |
9335 | ||
9336 | * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
9337 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
9338 | Replace ControlHandle with ControlRef. | |
9339 | (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. | |
9340 | [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. | |
9341 | ||
9342 | * macterm.h (struct scroll_bar): Rename member control_handle_low | |
9343 | and control_handle_high to control_ref_low and control_ref_high. | |
9344 | All uses changed. | |
9345 | (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from | |
9346 | SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, | |
9347 | respectively. All uses changed. | |
9348 | (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) | |
9349 | (install_window_handler, remove_window_handler): Replace WindowPtr | |
9350 | with WindowRef in externs. | |
9351 | ||
65fddb74 JB |
9352 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> |
9353 | ||
9354 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. | |
9355 | ||
db1213a9 NR |
9356 | 2007-06-03 Nick Roberts <nickrob@snap.net.nz> |
9357 | ||
9358 | * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case. | |
9359 | ||
65fddb74 | 9360 | * frame.c (Fmouse_position, Fmouse_pixel_position): |
db1213a9 NR |
9361 | Condition on HAVE_GPM too. |
9362 | ||
9363 | * term.c (term_mouse_highlight): Remove unused variables. | |
9364 | (Fterm_open_connection): Set gpm_zerobased to 1. | |
9365 | (term_mouse_movement, term_mouse_click, handle_one_term_event): | |
9366 | Use zero based co-ordinates. | |
9367 | (handle_one_term_event): Report a drag as mouse movement too. | |
9368 | ||
9369 | * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM. | |
9370 | ||
d94df25b CY |
9371 | 2007-06-03 Chong Yidong <cyd@stupidchicken.com> |
9372 | ||
9373 | * image.c (search_image_cache): New function. Require background | |
9374 | color match if background color is unspecified in the image spec. | |
9375 | (uncache_image, lookup_image): Use it. | |
9376 | ||
4797b6d9 JB |
9377 | 2007-06-01 Juanma Barranquero <lekktu@gmail.com> |
9378 | ||
9379 | * window.c (Fshrink_window): Reflow docstring. | |
9380 | ||
1ffe7343 NR |
9381 | 2007-06-02 Chong Yidong <cyd@stupidchicken.com> |
9382 | ||
9383 | * Version 22.1 released. | |
9384 | ||
9385 | 2007-06-01 Richard Stallman <rms@gnu.org> | |
9386 | ||
9387 | * xfns.c (x_encode_text): Add GCPRO. | |
9388 | ||
9389 | 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9390 | ||
9391 | * xfns.c (x_set_name_internal): Save encoded name before | |
9392 | x_encode_text in case string data is relocated. | |
9393 | ||
9394 | 2007-05-31 Richard Stallman <rms@gnu.org> | |
9395 | ||
9396 | * buffer.c (syms_of_buffer): Doc fix. | |
9397 | ||
9398 | 2007-05-30 Nick Roberts <nickrob@snap.net.nz> | |
9399 | ||
9400 | * sysdep.c (init_sys_modes): Add rather than replace with | |
9401 | O_NONBLOCK. | |
9402 | ||
9403 | * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to | |
9404 | term_mouse_moveto. | |
9405 | ||
9406 | * termhooks.h (term_mouse_moveto): New extern. | |
9407 | ||
9408 | * term.c (mouse_face_window): Rename... | |
9409 | (Qmouse_face_window): ...to this. | |
9410 | (term_show_mouse_face, term_clear_mouse_face) | |
9411 | (term_mouse_highlight): Use Qmouse_face_window. | |
9412 | (term_mouse_moveto): New function. | |
9413 | (term_mouse_position): Make it work. | |
9414 | (syms_of_term): Uncomment assignment to mouse_position_hook. | |
9415 | Staticpro Qmouse_face_window. | |
9416 | ||
9417 | 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9418 | ||
9419 | * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t | |
9420 | around current_column call. | |
9421 | ||
9422 | 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu> | |
9423 | ||
9424 | * xfaces.c (syms_of_xfaces): Delete stray semicolon. | |
9425 | * xdisp.c (next_element_from_buffer): | |
9426 | * window.c (delete_window): | |
9427 | * term.c (term_mouse_highlight): | |
9428 | * msdos.c (getdefdir): | |
9429 | * macterm.c (mac_create_bitmap_from_bitmap_data) | |
9430 | (init_font_name_table): | |
9431 | * fns.c (Fsxhash): | |
9432 | * data.c (Fmake_local_variable): | |
9433 | * ccl.c (ccl_driver): Likewise. | |
9434 | ||
9435 | 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9436 | ||
9437 | * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event): | |
9438 | Call mac_wakeup_from_rne on window size change. | |
9439 | ||
9440 | 2007-05-25 Chong Yidong <cyd@stupidchicken.com> | |
9441 | ||
9442 | * image.c (uncache_image): Fix typo. | |
9443 | ||
9444 | 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change) | |
9445 | ||
9446 | * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too. | |
9447 | ||
9448 | 2007-05-22 Richard Stallman <rms@gnu.org> | |
9449 | ||
9450 | * xterm.c (x_connection_closed): Remove NO_RETURN. | |
9451 | ||
9452 | 2007-05-22 Martin Rudalics <rudalics@gmx.at> | |
9453 | ||
9454 | * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. | |
9455 | ||
9456 | 2007-05-21 Chong Yidong <cyd@stupidchicken.com> | |
9457 | ||
9458 | * image.c (uncache_image): New function. | |
9459 | (Fimage_refresh): New function. | |
9460 | ||
9461 | 2007-05-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> | |
9462 | ||
9463 | * Makefile.in: Move GPM check outside HAVE_X_WINDOWS. | |
9464 | ||
9465 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
9466 | ||
9467 | * config.in, keyboard.c, Makefile.in, sysdep.c, term.c, | |
9468 | * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H. | |
9469 | ||
9470 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
9471 | ||
9472 | * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT | |
9473 | conditional on [HAVE_GPM_H]. | |
9474 | ||
9475 | 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca> | |
9476 | ||
9477 | * syntax.c (skip_chars): Update syntax-table only after we checked that | |
9478 | the new location is valid. | |
9479 | ||
9480 | 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9481 | ||
9482 | * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around | |
9483 | mac_get_window_bounds. | |
9484 | ||
9485 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
9486 | ||
9487 | * Makefile.in (LIBGPM): Allow it to be set from configure. | |
9488 | If set then link Emacs with it. | |
9489 | ||
9490 | * config.in: Regenerate. | |
9491 | ||
9492 | * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): | |
9493 | New externs. | |
9494 | ||
9495 | * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT. | |
9496 | Include gpm.h. | |
9497 | (handle_one_term_event, term_gpm): New externs. | |
9498 | ||
9499 | * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking | |
9500 | and allow it to be interrupted by SIGIO. | |
9501 | ||
9502 | * process.c (gpm_wait_mask, max_gpm_desc): New variables. | |
9503 | (wait_reading_process_output): Wait on gpm_fd too. | |
9504 | (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions. | |
9505 | (add_gpm_wait_descriptor_called_flag): New variable. | |
9506 | (delete_keyboard_wait_descriptor): Check gpm_wait_mask. | |
9507 | ||
9508 | * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message) | |
9509 | (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved) | |
9510 | (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard): | |
9511 | Extend HAVE_MOUSE ifdefs to HAVE_GPM_H. | |
9512 | (make_lispy_event): Add case GPM_CLICK_EVENT. | |
9513 | (read_avail_input): Handle mouse input. | |
9514 | ||
9515 | * term.c (write_glyphs_with_face): New function. | |
9516 | [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h. | |
9517 | (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row) | |
9518 | (mouse_face_end_col, mouse_face_past_end, mouse_face_window) | |
9519 | (mouse_face_face_id, term_gpm, pos_x, pos_y) | |
9520 | (last_mouse_x, last_mouse_y): New variables. | |
9521 | (term_show_mouse_face, term_clear_mouse_face, fast_find_position) | |
9522 | (term_mouse_highlight, term_mouse_movement, term_mouse_position) | |
9523 | (term_mouse_click, handle_one_term_event, Fterm_open_connection) | |
9524 | (Fterm_close_connection): New functions. | |
9525 | (term_init): Initialise mouse_face_window. | |
9526 | ||
9527 | 2007-05-19 Chong Yidong <cyd@stupidchicken.com> | |
9528 | ||
9529 | * xdisp.c (redisplay_window): If first window line is a | |
9530 | continuation line, recompute the new window start instead of | |
9531 | recentering. | |
9532 | ||
9533 | 2007-05-18 Glenn Morris <rgm@gnu.org> | |
9534 | ||
9535 | * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD. | |
9536 | Suggested by Alfred M. Szmidt <ams@gnu.org>. | |
9537 | ||
9538 | 2007-05-17 Glenn Morris <rgm@gnu.org> | |
9539 | ||
9540 | * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. | |
9541 | ||
9542 | 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9543 | ||
9544 | * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert | |
9545 | dead key repeat and up events. | |
9546 | ||
9547 | 2007-05-14 Chong Yidong <cyd@stupidchicken.com> | |
9548 | ||
9549 | * image.c (pbm_load): Check image size for monochrome pbm. | |
9550 | ||
9551 | 2007-05-13 Chong Yidong <cyd@stupidchicken.com> | |
9552 | ||
9553 | * xterm.c (XTread_socket): Revert last change. | |
9554 | ||
9555 | 2007-05-12 Chong Yidong <cyd@stupidchicken.com> | |
9556 | ||
9557 | * image.c (pbm_load): Correctly check image size for greyscale pbm. | |
9558 | ||
9559 | * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). | |
9560 | ||
9561 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
9562 | ||
9563 | * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object | |
9564 | mixup (YAILOM). | |
9565 | ||
9566 | 2007-05-07 Andreas Schwab <schwab@suse.de> | |
9567 | ||
9568 | * keymap.c (Flookup_key): Fix typo in last change. | |
9569 | ||
9570 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
9571 | ||
9572 | * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier | |
9573 | mapping for unibyte strings. | |
9574 | ||
9575 | 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9576 | ||
9577 | * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. | |
9578 | (Fx_popup_dialog) [MAC_OSX]: Likewise. | |
9579 | ||
9580 | 2007-04-29 Richard Stallman <rms@gnu.org> | |
9581 | ||
9582 | * insdel.c (replace_range): For undo, record insertion first. | |
9583 | ||
9584 | 2007-04-29 Andreas Schwab <schwab@suse.de> | |
9585 | ||
9586 | * lisp.h (VECSIZE): Use OFFSETOF. | |
9587 | ||
9588 | 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
9589 | ||
9590 | * xdisp.c (try_window_reusing_current_matrix): Fix number of | |
9591 | disabled lines. | |
9592 | ||
9593 | 2007-04-28 Richard Stallman <rms@gnu.org> | |
9594 | ||
9595 | * lread.c (read_escape): In a string, \s is always space. | |
9596 | ||
9597 | 2007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> | |
9598 | ||
9599 | * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. | |
9600 | ||
9601 | * gtkutil.c (xg_update_menubar, create_menus): Create empty | |
9602 | submenu for menu bar items. | |
9603 | ||
382c648d | 9604 | See ChangeLog.10 for earlier changes. |
6922b018 KH |
9605 | |
9606 | ;; Local Variables: | |
49b3bd82 | 9607 | ;; coding: iso-2022-7bit |
33462dfa | 9608 | ;; add-log-time-zone-rule: t |
6922b018 | 9609 | ;; End: |
2a34a036 | 9610 | |
59ce725a | 9611 | Copyright (C) 2007, 2008 Free Software Foundation, Inc. |
7f6d64f8 GM |
9612 | |
9613 | This file is part of GNU Emacs. | |
9614 | ||
9615 | GNU Emacs is free software; you can redistribute it and/or modify | |
9616 | it under the terms of the GNU General Public License as published by | |
684d6f5b | 9617 | the Free Software Foundation; either version 3, or (at your option) |
7f6d64f8 GM |
9618 | any later version. |
9619 | ||
9620 | GNU Emacs is distributed in the hope that it will be useful, | |
9621 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
9622 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
9623 | GNU General Public License for more details. | |
9624 | ||
9625 | You should have received a copy of the GNU General Public License | |
9626 | along with GNU Emacs; see the file COPYING. If not, write to the | |
9627 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
9628 | Boston, MA 02110-1301, USA. | |
ab5796a9 | 9629 | |
28f60c3d | 9630 | ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40 |