Commit | Line | Data |
---|---|---|
7c2fb837 DN |
1 | 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu> |
2 | ||
3 | * bitmaps/README: | |
4 | * xfns.c: | |
5 | * termcap.c: | |
6 | * term.c: | |
7 | * syswait.h: | |
8 | * systty.h: | |
9 | * systime.h: | |
10 | * syssignal.h: | |
11 | * sysdep.c: | |
12 | * process.h: | |
13 | * process.c: | |
14 | * print.c: | |
15 | * ndir.h: | |
16 | * lread.c: | |
17 | * keyboard.c: | |
18 | * getpagesize.h: | |
19 | * floatfns.c: | |
20 | * fileio.c: | |
21 | * emacs.c: | |
22 | * doc.c: | |
23 | * dispnew.c: | |
24 | * dired.c: | |
25 | * data.c: | |
26 | * callproc.c: | |
27 | * buffer.c: | |
28 | * README: | |
29 | * Makefile.in: | |
30 | * s/template.h: | |
31 | * s/msdos.h: | |
32 | * m/vax.h: Remove VMS support. | |
33 | * s/vms.h: | |
34 | * vlimit.h: | |
35 | * uaf.h: | |
36 | * temacs.opt: | |
37 | * param.h: | |
38 | * ioctl.h: Remove file. | |
39 | ||
69ab3201 DN |
40 | 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu> |
41 | ||
42 | * s/ms-w32.h (MULTI_KBOARD): Remove. | |
43 | * xterm.c: | |
44 | * xselect.c: | |
45 | * xfns.c: | |
46 | * window.c: | |
47 | * w32term.c: | |
48 | * w32fns.c: | |
49 | * terminal.c: | |
50 | * termhooks.h: | |
51 | * term.c: | |
52 | * sysdep.c: | |
53 | * keyboard.h: | |
54 | * keyboard.c: | |
55 | * frame.h: | |
56 | * frame.c: | |
57 | * frame.c: Remove references to MULTI_KBOARD, it is now the | |
58 | default. | |
59 | * config.in: Regenerate. | |
60 | ||
bd187c49 JR |
61 | 2008-07-30 Jason Rumney <jasonr@gnu.org> |
62 | ||
63 | * w32font.h (struct w32font_info): Use unicode version of textmetrics. | |
64 | ||
65 | * w32font.c (w32font_encode_char): Leave as unicode if in range. | |
66 | (w32font_open_internal): Get unicode version of textmetrics. | |
67 | Don't enable or disable glyph indices here. | |
68 | (w32font_open): Disable use of glyph indices. | |
69 | ||
70 | * w32uniscribe.c (uniscribe_open): Enable use of glyph indices. | |
71 | ||
e3072df2 CY |
72 | 2008-07-30 Chong Yidong <cyd@stupidchicken.com> |
73 | ||
39dde873 | 74 | * minibuf.c (Vread_buffer_function): Doc fix. |
e3072df2 | 75 | |
bc850333 CY |
76 | 2008-07-30 John Paul Wallington <jpw@pobox.com> |
77 | ||
78 | * minibuf.c (read_buffer_completion_ignore_case): New var. | |
79 | (Fread_buffer): Use it. | |
80 | ||
9d9a7716 DN |
81 | 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu> |
82 | ||
83 | * systty.h (sensemode): Remove empty #if. Remove reference to | |
84 | BSD_TERMIOS, unused. | |
85 | ||
86 | * sysdep.c: Remove reference to DGUX. | |
87 | (closedir): Remove reference to BROKEN_CLOSEDIR, unused. | |
88 | ||
89 | * config.in: Regenerate. | |
90 | ||
0c34f98e JR |
91 | 2008-07-30 Jason Rumney <jasonr@gnu.org> |
92 | ||
93 | * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size. | |
94 | ||
c320e90a JR |
95 | 2008-07-29 Jason Rumney <jasonr@gnu.org> |
96 | ||
97 | * w32uniscribe.c (uniscribe_shape): Avoid using context if cache | |
98 | is populated. | |
99 | (uniscribe_encode_char): Always use uniscribe. | |
100 | Avoid using context if cache is populated. | |
101 | ||
3f7ead30 JD |
102 | 2008-07-29 Jan Djärv <jan.h.d@swipnet.se> |
103 | ||
104 | * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to | |
105 | open menu. | |
106 | ||
107 | * gtkutil.c (menu_nav_ended): Remove. | |
108 | (create_menus): Remove signal connect for menu_nav_ended. | |
109 | ||
639eebe2 CY |
110 | 2008-07-28 Chong Yidong <cyd@stupidchicken.com> |
111 | ||
112 | * xdisp.c (redisplay_window): Check return value of | |
113 | compute_window_start_on_continuation_line before forcing a window | |
114 | start. | |
115 | ||
d1f535d2 JR |
116 | 2008-07-28 Jason Rumney <jasonr@gnu.org> |
117 | ||
0e134ea0 | 118 | * w32font.c (w32font_text_extents): Use w32_metric_cache consistently. |
9cac6313 | 119 | |
0e134ea0 JB |
120 | * w32term.c (w32_enable_unicode_output, cleartype_active): |
121 | Remove obsolete display options. | |
122 | (x_draw_glyph_string_background): Don't use old cleartype_active | |
123 | workaround. | |
124 | (w32_initialize): Remove cleartype_active initialization. | |
125 | (syms_of_w32term): Remove w32_enable_unicode_output initialization. | |
d1f535d2 | 126 | |
ddaa36e1 AS |
127 | 2008-07-28 Andreas Schwab <schwab@suse.de> |
128 | ||
129 | * lisp.h (init_weak_hash_tables, syms_of_font) | |
130 | (xd_read_queued_messages, syms_of_dbusbind): Declare. | |
131 | (remove_hash_entry): Don't declare. | |
132 | * eval.c (maybe_call_debugger): Make static and move before use. | |
133 | * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT. | |
134 | * xdisp.c: Include "gtkutil.h" if USE_GTK. | |
135 | * xterm.h (x_set_frame_alpha): Declare. | |
136 | ||
42ffd097 JD |
137 | 2008-07-28 Jan Djärv <jan.h.d@swipnet.se> |
138 | ||
139 | * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24. | |
140 | (create_menus): Connect selection-done to menu_nav_ended. | |
141 | ||
bd6ce2ba AR |
142 | 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> |
143 | ||
144 | * nsfns.m (x-create-frame): Add copy of parms argument to beginning. | |
145 | Set Vx_resource_name to a fallback. Replace read of 'buffered' | |
146 | parameter with read of 'alpha' one. | |
147 | (Qns_frame_parameter): Remove. | |
148 | * nsselection.m (selection-coding-system) | |
149 | (next-selection-coding-system, Vselection_coding_system) | |
150 | (Vnext_selection_coding_system): Drop. | |
151 | ||
583ff3c3 AR |
152 | 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> |
153 | ||
154 | * nsfns.m (do-applescript, do_applescript): Rename to | |
155 | ns-do-applescript, ns_do_applescript, and move within file. | |
156 | ||
9e2a2647 DN |
157 | 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu> |
158 | ||
159 | Remove support for Mac Carbon. | |
160 | * mactoolbox.c: | |
161 | * macterm.h: | |
162 | * macterm.c: | |
163 | * macselect.c: | |
164 | * macmenu.c: | |
165 | * macgui.h: | |
166 | * macfns.c: | |
167 | * mac.c: Remove file. | |
168 | * s/darwin.h: | |
169 | * m/intel386.h: | |
170 | * xfaces.c: | |
171 | * xdisp.c: | |
172 | * window.c: | |
173 | * tparam.c: | |
174 | * termhooks.h: | |
175 | * termcap.c: | |
176 | * term.c: | |
177 | * syssignal.h: | |
178 | * sysselect.h: | |
179 | * sysdep.c: | |
180 | * process.c: | |
181 | * lread.c: | |
182 | * lisp.h: | |
183 | * keyboard.c: | |
184 | * image.c: | |
185 | * fringe.c: | |
186 | * frame.h: | |
187 | * frame.c: | |
188 | * fontset.c: | |
189 | * font.h: | |
190 | * font.c: | |
191 | * fns.c: | |
192 | * fileio.c: | |
193 | * emacs.c: | |
194 | * dispnew.c: | |
195 | * dispextern.h: | |
196 | * config.in: | |
197 | * atimer.c: | |
198 | * Makefile.in: Remove code for Carbon | |
199 | ||
7ad8fe5e | 200 | 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
4874e088 | 201 | |
7ad8fe5e | 202 | * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return. |
69eff41f | 203 | |
7ad8fe5e | 204 | 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
69eff41f | 205 | |
7ad8fe5e MB |
206 | * macterm.h (kCGBitmapByteOrder32Host): New define for |
207 | non-universal SDKs. | |
69eff41f | 208 | |
7ad8fe5e MB |
209 | * image.c (mac_create_cg_image_from_image, image_load_image_io) |
210 | [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host. | |
dcdbbb5d | 211 | |
7ad8fe5e MB |
212 | * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) |
213 | [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host. | |
dcdbbb5d | 214 | |
7ad8fe5e | 215 | 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change) |
09721b31 | 216 | |
0e134ea0 | 217 | * w32inevt.c: Include dispextern.h. |
09721b31 | 218 | |
51dc79f8 AS |
219 | 2008-07-26 Andreas Schwab <schwab@suse.de> |
220 | ||
221 | * print.c (print_object): Fix off-by-one in last change. | |
222 | ||
dea101f6 JB |
223 | 2008-07-25 Juanma Barranquero <lekktu@gmail.com> |
224 | ||
225 | * term.c (syms_of_term): Don't initialize default_orig_pair, | |
226 | default_set_foreground and default_set_background on Windows. | |
227 | ||
11856d4d JR |
228 | 2008-07-25 Jason Rumney <jasonr@gnu.org> |
229 | ||
0e134ea0 JB |
230 | * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to |
231 | ScriptItemize. Clean up return value checking. Remove unused | |
232 | variables. | |
233 | (uniscribe_encode_char): Encode non-BMP characters with uniscribe | |
234 | shaping engine. | |
11856d4d | 235 | |
0e134ea0 JB |
236 | * w32font.c (w32font_has_char): Handle the case where we can't |
237 | determine the script for a character. | |
11856d4d | 238 | |
7bfc0e9e CY |
239 | 2008-07-25 Chong Yidong <cyd@stupidchicken.com> |
240 | ||
acdadb15 CY |
241 | * term.c (syms_of_term): Initialize default_orig_pair, |
242 | default_set_foreground, and default_set_background. | |
243 | ||
5efc6200 CY |
244 | * getloadavg.c (nl): Rename to name_list to avoid ncurses.h |
245 | clash (bug#86). | |
246 | (getloadavg): Callers changed. | |
247 | ||
7bfc0e9e | 248 | * image.c (svg_load_image): Fix last change. |
c01c4e35 CY |
249 | (svg_load_image): Use rsvg_handle_get_dimensions to check that |
250 | image size is valid. Use g_object_unref instead of deprecated | |
251 | rsvg_handle_free to free rsvg handle. | |
9d7112ed | 252 | (x_from_xcolors): Don't initialize pixmap (silence compiler). |
7bfc0e9e | 253 | |
f31cf550 JR |
254 | 2008-07-25 Jason Rumney <jasonr@gnu.org> |
255 | ||
0e134ea0 JB |
256 | * w32font.c (w32font_encode_char): Encode characters outside BMP as |
257 | surrogates before looking up glyph index. | |
258 | (w32font_text_extents): Encode as surrogates if falling back to | |
259 | functions that need UTF-16 wide chars. | |
f31cf550 | 260 | |
0e134ea0 JB |
261 | * w32uniscribe.c (uniscribe_encode_char): Encode characters outside |
262 | BMP as surrogates before looking up glyph index. | |
f31cf550 | 263 | |
b293d659 CY |
264 | 2008-07-25 Chong Yidong <cyd@stupidchicken.com> |
265 | ||
266 | * image.c (svg_load_image): Check for failure in return value of | |
267 | rsvg_handle_get_pixbuf. Free rsvg handle when done. | |
268 | ||
1ada3dab JR |
269 | 2008-07-25 Jason Rumney <jasonr@gnu.org> |
270 | ||
0e134ea0 | 271 | * w32font.c (Fx_select_font): Reverse sense of second arg. |
1ada3dab | 272 | |
dbc812e0 SM |
273 | 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca> |
274 | ||
6449674e SM |
275 | * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos) |
276 | (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions. | |
277 | ||
dbc812e0 SM |
278 | * puresize.h (PURESIZE_CHECKING_RATIO): New macro. |
279 | (PURESIZE): Use it. | |
280 | ||
67725bd8 DN |
281 | 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu> |
282 | ||
340074e9 DN |
283 | * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs. |
284 | * m/alpha.h (TEXT_END): | |
285 | * m/ibmrs6000.h (TEXT_END): | |
286 | * m/macppc.h (TEXT_END): | |
287 | * s/darwin.h (TEXT_END): | |
288 | * s/msdos.h (TEXT_END): Remove, unused. | |
289 | * s/gnu-linux.h (BSD_PGRPS): Add a comment. | |
290 | * s/cygwin.h: Remove comment. | |
291 | ||
a11af7f8 DN |
292 | * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused. |
293 | (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES. | |
294 | * m/intel386.h (DOT_GLOBAL_START): | |
295 | * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES. | |
296 | (USG): Remove, file not used on USG platforms. | |
297 | ||
67725bd8 DN |
298 | * Makefile.in (HAVE_X11): Remove empty #else. |
299 | ||
6420e80c AS |
300 | 2008-07-24 Andreas Schwab <schwab@suse.de> |
301 | ||
302 | * fileio.c (Finsert_file_contents): Properly adjust undo list | |
303 | after format conversion. | |
304 | ||
d1c38b57 JD |
305 | 2008-07-24 Jan Djärv <jan.h.d@swipnet.se> |
306 | ||
307 | * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG. | |
308 | (menu_nav_ended): Remove. | |
309 | (create_menus): Remove signal connect for menu_nav_ended. | |
310 | (xg_update_menubar): Also take deactivate_cb as parameter, pass it to | |
311 | create_menus. | |
312 | (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar. | |
313 | ||
597634cb JR |
314 | 2008-07-23 Jason Rumney <jasonr@gnu.org> |
315 | ||
dbc812e0 SM |
316 | * w32font.c (w32_enumfont_pattern_entity): Return height consistent |
317 | with opened font. | |
318 | (w32font_open): Set font type to gdi. | |
4b135503 | 319 | |
dbc812e0 | 320 | * w32uniscribe.c (uniscribe_open): Set font type to uniscribe. |
597634cb | 321 | |
7c799cf5 DN |
322 | 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu> |
323 | ||
7a14f2a0 DN |
324 | * s/usg5-4.h (ADDR_CORRECT): Remove, unused. |
325 | * unexaix.c (ADDR_CORRECT): Remove conditional, the only user | |
326 | defines it. | |
327 | * unexec.c (ADDR_CORRECT): Define unconditionally. | |
328 | ||
329 | * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove. | |
330 | ||
f914a6bf DN |
331 | * unexec.c: Remove code depending on !COFF and USG, the file is |
332 | not used for such systems. | |
333 | ||
268b24ee DN |
334 | * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): |
335 | * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused. | |
336 | (LD_SWITCH_SYSTEM_1): Remove, update users. | |
337 | ||
911109b1 DN |
338 | * s/darwin.h (DATA_END): |
339 | * m/intel386.h (DATA_END): | |
340 | * m/ibmrs6000.h (DATA_END): | |
341 | * m/alpha.h (DATA_END): Remove, unused. | |
911109b1 | 342 | |
77ccee09 DN |
343 | * config.in: Regenerate. |
344 | * s/ms-w32.h (subprocesses): Define unconditionally. | |
345 | * s/template.h (subprocesses): Update comment. | |
346 | * s/vms.h (subprocesses): | |
347 | * s/usg5-4.h (subprocesses): | |
348 | * s/hpux10-20.h (subprocesses): | |
349 | * s/gnu-linux.h (subprocesses): | |
350 | * s/cygwin.h (subprocesses): | |
351 | * s/bsd-common.h (subprocesses): | |
352 | * s/aix4-2.h (subprocesses): | |
353 | * s/darwin.h (subprocesses): Do not define, defined by default now. | |
354 | ||
355 | * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused. | |
356 | Remove all references. | |
357 | (temacs): Add GNUStep specific ld flags. | |
358 | ||
7c799cf5 DN |
359 | * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing, |
360 | similarly to what X does. | |
361 | ||
712b2de1 AR |
362 | 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com> |
363 | ||
364 | * nsfns.m (x-list-fonts): Remove. | |
365 | (syms_of_nsfns): Drop the x-list-fonts declaration. | |
366 | * nsterm.m: Get rid of remaining "//" comments. | |
367 | ||
0d4e1b5f CY |
368 | 2008-07-22 Chong Yidong <cyd@stupidchicken.com> |
369 | ||
370 | * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix. | |
371 | ||
372 | * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p) | |
373 | (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal) | |
374 | (Fns_own_selection_internal, Fx_disown_selection_internal) | |
375 | (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal): | |
376 | ||
377 | * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /* | |
378 | ... */' style of docstrings. Doc fixes. | |
379 | ||
952913d4 DN |
380 | 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu> |
381 | ||
0ecc3474 | 382 | * terminfo.c (UP, BC, PC): Undo previous change. |
0d4e1b5f | 383 | |
952913d4 DN |
384 | * nsfns.m: Rename ns prefixed functions/variables to the |
385 | corresponding x versions. Update references. | |
386 | ||
02d8b017 SM |
387 | 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca> |
388 | ||
389 | * syntax.c (char_quoted): Check "charpos > beg" before decrementing. | |
390 | ||
11b8fe14 DN |
391 | 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu> |
392 | ||
02d8b017 SM |
393 | * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines): |
394 | Remove forwarding functions. | |
cc98b6a0 DN |
395 | (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make |
396 | non-static. | |
397 | (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make | |
398 | non-static. | |
399 | (ns_frame_parm_handlers): Use the new names. | |
400 | (syms_of_nsfns): Move to the end of file. | |
401 | ||
1baa6236 DN |
402 | * nsterm.m (syms_of_nsterm): Move to the end of file. |
403 | ||
11b8fe14 DN |
404 | * dispnew.c (init_display): Remove code for X10. |
405 | ||
8dcaeba2 JR |
406 | 2008-07-22 Jason Rumney <jasonr@gnu.org> |
407 | ||
02d8b017 SM |
408 | * w32proc.c (Fw32_long_file_name): Don't append dir separator to |
409 | bare drive. | |
8dcaeba2 | 410 | |
df2142db AR |
411 | 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com> |
412 | ||
413 | * nsgui.h: | |
414 | * nsfont.m: | |
415 | * nsmenu.m: | |
416 | * nsterm.m: Change PENDINGS to FIXME / TODO / XXX. | |
417 | ||
365bac35 AR |
418 | 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com> |
419 | ||
420 | * nsterm.m (syms_of_nsterm): Remove debugging println. | |
421 | ||
6a0f0f86 DR |
422 | 2008-07-22 David Reitter <david.reitter@gmail.com> |
423 | ||
a3c83618 | 424 | * nsfns.m (do_applescript, F_do_applescript): NS version of the |
6a0f0f86 DR |
425 | Carbon implementation of the same functionality: execute arbitrary |
426 | AppleScript code. | |
427 | ||
51d5ef9f AR |
428 | 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com> |
429 | ||
a3c83618 | 430 | * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource) |
51d5ef9f AR |
431 | (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size) |
432 | (Fx_server_vendor, Fx_server_version, Fx_display_screens) | |
433 | (Fx_display_mm_height, Fx_display_mm_width) | |
434 | (Fx_display_backing_store, Fx_display_visual_class) | |
435 | (Fx_display_save_under, Fx_open_connection) | |
436 | (Fx_close_connection, Fx_hide_emacs, Fx_font_name) | |
437 | (Fx_list_colors, Fx_perform_service, Fx_color_defined_p) | |
438 | (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p) | |
439 | (Fx_display_pixel_width, Fx_display_pixel_height) | |
440 | (Fx_display_usable_bounds, Fx_display_planes) | |
441 | (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /* | |
442 | ... */' style of docstrings. | |
443 | ||
6efac844 DN |
444 | 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu> |
445 | ||
b8ff87cc DN |
446 | * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used |
447 | on this platform. | |
448 | (mips): | |
449 | * m/iris4d.h (mips): Do not define. | |
450 | * sysdep.c (init_sys_modes): Use __mips__ instead of mips. | |
451 | ||
92d1a7a3 DN |
452 | * m/ibmrs6000.h (LD_SWITCH_SITE): Remove. |
453 | ||
de08d1be CY |
454 | * image.c: |
455 | * nsfns.m: | |
456 | * nsselect.m: | |
457 | * nsterm.h: | |
9e50ff0c DN |
458 | * nsterm.m: Rename ns prefixed functions/variables to the |
459 | corresponding x versions. Update references. | |
460 | ||
ff486501 DN |
461 | * m/ibms390x.h (NO_REMAP): Do not undefine. |
462 | ||
6efac844 DN |
463 | * m/amdx86-64.h: Use SOLARIS2 instead of sun. |
464 | ||
ea9de876 CY |
465 | 2008-07-21 Chong Yidong <cyd@stupidchicken.com> |
466 | ||
467 | * nsfns.m: Change NS to Nextstep in docstrings and error messages. | |
468 | (Fns_create_frame, Fns_read_file_name, Fns_get_resource) | |
469 | (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size) | |
470 | (Fns_server_vendor, Fns_server_version, Fns_display_screens) | |
471 | (Fns_display_mm_height, Fns_display_mm_width) | |
472 | (Fns_display_backing_store, Fns_display_visual_class) | |
473 | (Fns_display_save_under, Fns_open_connection) | |
474 | (Fns_close_connection, Fns_hide_emacs, Fns_font_name) | |
475 | (Fns_list_colors, Fns_perform_service, Fns_color_defined_p) | |
476 | (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p) | |
477 | (Fns_display_pixel_width, Fns_display_pixel_height) | |
478 | (Fns_display_usable_bounds, Fx_display_planes) | |
479 | (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes. | |
480 | ||
b42f4115 | 481 | 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change) |
3965adab CY |
482 | |
483 | * print.c (print_object): Check print_depth before searching for | |
484 | circularities. | |
485 | ||
c0894fb9 MA |
486 | 2008-07-21 Michael Albinus <michael.albinus@gmx.de> |
487 | ||
488 | * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead | |
489 | only sprintf. | |
490 | ||
d90bfd1c KH |
491 | 2008-07-21 Kenichi Handa <handa@m17n.org> |
492 | ||
493 | * ftfont.c (adjust_anchor): Check if DetalValue is not NULL. | |
494 | ||
8e2911c2 AS |
495 | 2008-07-20 Andreas Schwab <schwab@suse.de> |
496 | ||
497 | * syntax.c (find_start_pos, find_start_value) | |
498 | (find_start_value_byte, find_start_begv, find_defun_start) | |
dbc812e0 | 499 | (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions. |
8e2911c2 | 500 | |
98a01702 DN |
501 | 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu> |
502 | ||
503 | * s/sol2-3.h: Insert contents of s/sol2.h. | |
504 | (LD_SWITCH_SYSTEM): Remove redundant definition. | |
505 | * s/sol2.h: Remove, unused. | |
506 | ||
704a3a2d AR |
507 | 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> |
508 | ||
dbc812e0 | 509 | * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV. |
704a3a2d AR |
510 | |
511 | 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> | |
e5e2baab AR |
512 | |
513 | * Makefile.in (ns_appdir): Fix typo in find command. | |
514 | ||
89f1e540 DN |
515 | 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu> |
516 | ||
c788afce DN |
517 | * m/intel386.h (NO_REMAP): Do no define for USG, not used. |
518 | ||
89f1e540 DN |
519 | * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was |
520 | added not supported anymore. | |
521 | ||
e5e2baab | 522 | * s/usg5-4-2.h (LIBS_SYSTEM): |
89f1e540 DN |
523 | * s/sol2.h (LIBS_SYSTEM): Do not undefine. |
524 | ||
525 | * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF): | |
526 | * s/lynxos.h (GETPGRP_NO_ARG): | |
527 | * s/hpux10-20.h (NO_SIOCTL_H): | |
528 | * s/gnu.h (GETPGRP_NO_ARG): | |
529 | * s/gnu-linux.h (NO_SIOCTL_H): | |
530 | * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF): | |
531 | * s/cygwin.h (GETPGRP_NO_ARG): | |
532 | * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused. | |
533 | (C_DEBUG_SWITCH): Remove duplicate definition. | |
534 | ||
535 | * m/ibms390.h: Remove boilerplate comments. | |
536 | ||
537 | * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4. | |
538 | ||
539 | * process.c (HAVE_SERIAL): Consolidate ifdefs. | |
540 | (wait_reading_process_output): Remove code for SunOS, platform not | |
541 | supported anymore. Use SOLARIS2 instead of sun. | |
542 | ||
ed96cde8 AR |
543 | 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> |
544 | ||
545 | * font.c (font_open_by_name): Under NS, default lface height to zero. | |
546 | (font_open_for_lface): Under NS, set size based on frame fontsize. | |
547 | * nsterm.m (EmacsView-changeFont:): Remove some commented code. | |
548 | * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef. | |
549 | ||
550 | 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> | |
551 | ||
552 | * nsterm.m (ns_antialias_text, ns_use_qd_smoothing) | |
553 | (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to | |
554 | DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of | |
555 | YES/NO. | |
556 | * nsterm.h (prevUseHighlightColor): Make a Lisp_Object. | |
557 | * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object. | |
558 | * Makefile.in (clean): Clear out build destination dir. | |
559 | ||
5a2d7ab6 AR |
560 | 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> |
561 | ||
562 | * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns, | |
563 | xterm, xselect. | |
564 | * lisp.h: Remove declaration of hash_remove. | |
565 | * nsgui.h: Remove redefinitions of hash_remove. | |
566 | * fns.c (hash_remove): Rename to hash_remove_from_table. | |
567 | ||
c0230162 AR |
568 | 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> |
569 | ||
570 | * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font): | |
571 | strdup() the family UTF8String before modifying it. Patch due to | |
572 | Seiji Zenitani. | |
573 | ||
45d325c4 AR |
574 | 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> |
575 | ||
576 | * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to | |
577 | fix crash. | |
578 | * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from | |
579 | NS_FACE_BACKGROUND with 0 instead of nil. | |
580 | * nsfont.m (nsfont_draw): Same. | |
581 | ||
b83f1cd0 CY |
582 | 2008-07-18 Chong Yidong <cyd@stupidchicken.com> |
583 | ||
584 | * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc. | |
585 | ||
add4eecc DN |
586 | 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu> |
587 | ||
588 | * puresize.h (BASE_PURESIZE): Increase to 1240000. | |
589 | ||
69955d31 YM |
590 | 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
591 | ||
592 | * gtkutil.c: Include <config.h> instead of "config.h". | |
593 | ||
594 | * lisp.h (Foverlay_buffer): Add EXFUN. | |
595 | ||
596 | * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for | |
597 | child process to complete child_setup. Undo 2005-09-21 change. | |
598 | ||
599 | * s/darwin.h: Mention setsid after vfork. | |
600 | ||
08b3caa9 | 601 | 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
2d64e9bb YM |
602 | |
603 | * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o): | |
604 | Depend on macgui.h. | |
605 | ||
606 | * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor, | |
607 | gestaltSystemVersionMinor, or gestaltSystemVersionBugFix. | |
608 | ||
609 | * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18, | |
610 | and f19. | |
611 | [MAC_OSX] (fn_keycode_to_keycode_table): Likewise. | |
612 | ||
613 | * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor) | |
614 | (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]: | |
615 | Remove enumerators. | |
616 | ||
617 | * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event): | |
618 | Check if FACE_FROM_ID returns NULL. | |
619 | ||
8d59c5ed JR |
620 | 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change) |
621 | ||
ba60bd44 JB |
622 | * w32inevt.c (change_frame_size): Remove extern declaration. |
623 | (resize_event, maybe_generate_resize_event): Pass SAFE arg to | |
624 | change_frame_size. | |
8d59c5ed | 625 | |
ba60bd44 | 626 | 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> |
db94bf9c AR |
627 | |
628 | * getloadavg.c: Revert last change (2008-07-15). | |
629 | ||
ba60bd44 | 630 | 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> |
06b62770 AR |
631 | |
632 | * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables | |
633 | set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set | |
634 | from configure. | |
635 | ||
2749d28e DN |
636 | 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu> |
637 | ||
35ad0545 DN |
638 | * s/sol2.h: |
639 | * s/sol2-4.h: Reorganize conditionals. | |
640 | ||
2749d28e DN |
641 | * ecrt0.c: Remove code depending on m68000, not used anymore. |
642 | ||
643 | * fns.c (hash_remove): Make static. | |
644 | * lisp.h (hash_remove): Don't prototype. | |
645 | ||
646 | * m/ibmrs6000.h: | |
647 | * m/ibms390x.h: | |
648 | * m/macppc.h: Remove boilerplate comments. | |
649 | ||
650 | * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on | |
651 | Solaris, which does not need them. | |
652 | ||
653 | * m/vax.h: Remove comments about unsupported systems. | |
654 | ||
655 | * s/darwin.h: Reorganize ifdefs. | |
656 | ||
ba60bd44 JB |
657 | 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> |
658 | ||
659 | * config.in: | |
660 | * dispextern.h: | |
661 | * frame.c: | |
662 | * image.c: | |
663 | * nsfns.m: | |
664 | * nsfont.m: | |
665 | * nsgui.h: | |
666 | * nsmenu.m: | |
667 | * nsterm.h: | |
668 | * nsterm.m: | |
669 | * s/darwin.h: | |
670 | * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX. | |
6fb5f7da | 671 | |
32cc3925 AS |
672 | 2008-07-17 Andreas Schwab <schwab@suse.de> |
673 | ||
674 | * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define. | |
675 | ||
facfbbbd SM |
676 | 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca> |
677 | ||
678 | Use SDATA. Follow coding convention of placing operators at | |
679 | beginning of next line rather than end of previous line, and placing | |
680 | spaces around infix operators. | |
681 | ||
682 | * Makefile.in: Undef LIB_STANDARD before defining it to silence warning | |
683 | in case it was defined already. | |
684 | USE @GNUSTEP_MAKEFILES@ rather than envvars. | |
685 | * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to | |
686 | ns_default. | |
687 | (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare | |
688 | Lisp_Objects. | |
689 | * nsterm.h (Fx_display_grayscale_p, Fx_display_planes) | |
690 | (ns_defined_color, ns_color_to_lisp): Declare. | |
691 | * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear) | |
692 | (Fns_own_selection_internal): Make the big ugly hack more explicit, so | |
693 | it's accepted even with USE_LISP_UNION_TYPE. | |
694 | * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects. | |
695 | (update_frame_tool_bar): Remove apparently obsolete tests for | |
696 | non-integerness of f->tool_bar_lines. | |
697 | (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly | |
698 | hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE. | |
699 | * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast. | |
700 | (nsfont_open): Don't confuse NULL for Qnil. | |
701 | * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects. | |
702 | * menu.h (find_and_call_menu_selection): | |
703 | * menu.c (find_and_call_menu_selection): Use just int for vector size. | |
704 | (find_and_return_menu_selection): Always return something. | |
705 | * frame.h: Include dispextern.h for Display_Info. | |
706 | (display_x_get_resource): Declare. | |
707 | ||
ba60bd44 | 708 | 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com> |
122e9f8f AR |
709 | |
710 | * syntax.c: Remove stdio.h include accidentally introduced in | |
711 | Emacs.app commit. | |
712 | * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to | |
713 | NS_IMPL_COCOA. | |
714 | * keyboard.c (handle_async_input, input_available_signal): Remove | |
715 | BSD4_1 conditional code, introduced accidentally in Emacs.app commit. | |
716 | ||
0bcfd7d7 SM |
717 | 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca> |
718 | ||
6882361b SM |
719 | * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead. |
720 | (ns_lisp_to_color): Don't mess with internal Lisp data fields. | |
721 | (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts): | |
722 | Use SDATA. | |
723 | ||
0bcfd7d7 SM |
724 | * keymap.c: Remove all NS-specific code. |
725 | (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars. | |
726 | (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to | |
727 | where_is_preferred_modifier, return a different value depending on how | |
728 | preferred is the binding. | |
729 | (where_is_internal): Adjust accordingly. | |
730 | (Fwhere_is_internal): Refresh where_is_preferred_modifier. | |
731 | Adjust to new preferred_sequence_p. | |
732 | (syms_of_keymap): Declare `where-is-preferred-modifier'. | |
733 | * keyboard.c (parse_solitary_modifier): Not static any more. | |
734 | * keyboard.h (parse_solitary_modifier): Declare. | |
735 | ||
720f3147 AS |
736 | 2008-07-16 Andreas Schwab <schwab@suse.de> |
737 | ||
738 | * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling | |
739 | of easymenu. | |
740 | ||
01e19fea CY |
741 | 2008-07-16 Chong Yidong <cyd@stupidchicken.com> |
742 | ||
743 | * xdisp.c (move_it_in_display_line): Account for word wrap, so | |
744 | that we don't move off the line. | |
745 | ||
4c89a3e0 SM |
746 | 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca> |
747 | ||
748 | * keyboard.c (Qsuper): Remove. | |
749 | (parse_menu_item): Don't call where_is_internal specially for NS. | |
750 | ||
586b975c DN |
751 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> |
752 | ||
3ec8ef33 DN |
753 | * s/gnu-linux.h: Remove boilerplate comments. |
754 | ||
d4d080b6 DN |
755 | * m/alpha.h (__ELF__): Consolidate conditions. |
756 | ||
7ab56cc4 DN |
757 | * m/m68k.h (linux): Use GNU_LINUX instead. |
758 | Remove boilerplate comments. | |
759 | ||
586b975c | 760 | * m/intel386.h: Undo reactoring from previous change. |
7ab56cc4 DN |
761 | (LIB_STANDARD): All systems that define USG define LIB_STANDARD |
762 | too, remove dead code. | |
763 | (linux): Use GNU_LINUX instead. | |
586b975c | 764 | |
5cc9d48a JR |
765 | 2008-07-16 Jason Rumney <jasonr@gnu.org> |
766 | ||
4c89a3e0 | 767 | * w32gui.h: Repeat 26 June changes lost by last change. |
5cc9d48a | 768 | |
6b0273cd DN |
769 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> |
770 | ||
132d0475 DN |
771 | * systty.h: Remove code for Aix on 386, unsupported platform. |
772 | ||
773 | * s/ms-w32.h: Remove boilerplate comments. | |
774 | (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused. | |
775 | ||
776 | * s/gnu-linux.h (TERM): Remove support. | |
777 | (HAVE_SYSVIPC): Remove, unused. | |
778 | (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used | |
779 | for this system. | |
780 | ||
781 | * process.c: Remove support for IRIS, unused. | |
782 | Remove support for TERM, not relevant anymore. | |
783 | ||
784 | * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only | |
785 | used with the definition. | |
786 | ||
787 | * s/aix4-2.h (static): Do not undef. | |
788 | ||
789 | * m/ibmrs6000.h: Remove code depending on USG5_4, this file is | |
790 | only used on Aix. | |
791 | (HAVE_SYSVIPC): Remove, unused. | |
792 | ||
793 | * m/hp800.h (CANNOT_DUMP): Do not undef. | |
794 | ||
795 | * m/alpha.h: Fix comment. | |
796 | ||
8111c2d8 DN |
797 | * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused. |
798 | (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not | |
799 | used by this configuration. | |
800 | * emacs.c: Remove code depending on USG_SHARED_LIBRARIES. | |
801 | * unexec.c: Remove code depending on HPUX and | |
802 | USG_SHARED_LIBRARIES, not used with this file. Remove code | |
803 | depending on IRIS, unused. Remove if 0-ed code. | |
804 | ||
e9a57a88 DN |
805 | * s/template.h: Remove comments about static. |
806 | ||
4c89a3e0 SM |
807 | * sysdep.c: Remove code depending on NEED_PTEM_H, unused. |
808 | Remove if 0-ed code. | |
c7607b94 DN |
809 | (baud_convert): Don't depend on BAUD_CONVERT, all definitions the |
810 | were the same as the default. | |
811 | * s/vms.h (BAUD_CONVERT): Remove, same as the default. | |
812 | Remove boilerplate comments. | |
813 | * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default. | |
814 | (HAVE_SYSVIPC): Remove, unused. | |
815 | (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore. | |
816 | ||
ff841b30 DN |
817 | * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. |
818 | Remove boilerplate comments. | |
819 | * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default. | |
820 | Remove boilerplate comments. | |
821 | * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default. | |
822 | Remove boilerplate comments. | |
823 | * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally. | |
824 | ||
586b975c DN |
825 | * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on |
826 | USG systems which do not use DATA_SEG_BITS. | |
827 | Refactor code. Remove boilerplate comments. | |
828 | ||
dc89925b | 829 | * m/ibms390.h: |
dc89925b DN |
830 | * m/m68k.h: |
831 | * s/bsd-common.h: | |
832 | * s/cygwin.h: | |
833 | * s/darwin.h: | |
834 | * s/freebsd.h: | |
835 | * s/gnu.h: | |
836 | * s/msdos.h: Remove boilerplate comments. | |
837 | ||
96b72211 DN |
838 | * m/iris4d.h: Remove boilerplate comments and code for systems that |
839 | do not use this file. | |
840 | (IRIS_4D): Remove, unused. | |
841 | ||
c3b5f109 DN |
842 | * m/mips.h: Remove boilerplate comments and code for systems that |
843 | do not use this file. | |
96b72211 | 844 | (SIGN_EXTEND_CHAR): |
c3b5f109 DN |
845 | * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused. |
846 | * unexmips.c: Remove file, unused. | |
847 | ||
6b0273cd DN |
848 | * editfns.c (Fuser_full_name): Replace the only use of |
849 | USER_FULL_NAME with its value. | |
850 | * config.in: Regenerate. | |
851 | ||
ba60bd44 | 852 | 2008-07-16 David Reitter <david.reitter@gmail.com> |
6fbcfb6f | 853 | |
ba60bd44 JB |
854 | * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and |
855 | easy-menu to SOME_MACHINE_LISP for the new NeXTstep port. | |
6fbcfb6f | 856 | |
44ac2d3e GM |
857 | 2008-07-16 Glenn Morris <rgm@gnu.org> |
858 | ||
859 | * emacs.c (system-type): Doc fix. | |
860 | ||
0a170079 SM |
861 | 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca> |
862 | ||
863 | * keyboard.c (parse_menu_item): Don't use cachelist, even under NS. | |
864 | If the cache doesn't work, let's fix it, rather than work around it. | |
865 | ||
ba60bd44 | 866 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> |
a68fda4a AR |
867 | |
868 | * Makefile.in: Correct additions for nsfont.o in last commit. | |
869 | * nsfont.m: New file (forgot last commit). | |
870 | ||
ba60bd44 | 871 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> |
edfda783 AR |
872 | |
873 | Changes and additions for NeXTstep windowing system (Cocoa and | |
874 | GNUstep) support. | |
875 | ||
ba60bd44 | 876 | * Makefile.in: |
edfda783 AR |
877 | * config.in: Support defines and build commands for NS port. |
878 | * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT) | |
879 | (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G. | |
880 | * callproc.c (set_initial_environment): Initialize | |
881 | Vprocess_environment under CANNOT_DUMP (fixes crash when | |
882 | batch-compiling for bootstrap, due to Chris Hall). | |
883 | * dispextern.h: Include nsgui.h and add needed typedefs under NS | |
884 | windowing. | |
885 | (struct face): Add synth_ital field. | |
886 | * dispnew.c: Include nsterm.h when compiling under NS windowing. | |
887 | (init_display): Initialize Vinitial_window_system to "ns" when so | |
888 | compiled. | |
889 | * emacs.c: Include GSConfig.h when compiling under GNUstep. | |
890 | (display_arg): Use under NS. | |
891 | (main): Under NS, allocate autorelease pool and handle command line | |
892 | args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS. | |
893 | (standard_args): Add NS-specific args. | |
894 | (shut_down_emacs): Shut down NS terminal if compiled under NS. | |
895 | * font.c (DEFAULT_ENCODING): New variable. | |
896 | (font_find_for_lface): Use it. | |
897 | (syms_of_font): Load syms_of_nsfont under NS. | |
898 | * font.h: Declare nsfont_driver when compiled under NS. | |
899 | * fontset.c: When compiling under NS, include nsterm.h. | |
900 | (fontset_from_font): Autoconstruct fontset under NS. | |
901 | * frame.c (various): Under NS, include nsterm.h, add Qns window system | |
902 | symbol, document and use it. | |
903 | (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case -- | |
904 | patch to fix crash due to different init order, due to Chris Hall and | |
905 | Yamamoto Mitsuharu. | |
906 | (do_switch_frame): When for_deletion under Cocoa, add | |
907 | Fraise_frame(Qnil). | |
908 | (x_set_frame_parameters): Ensure font attribute changes are picked up. | |
909 | (x_get_arg): Allow "yes" and "no" as boolean values. | |
910 | (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to | |
911 | Qright under Cocoa. | |
912 | (focus-follows-mouse): Default to 0 under NS. | |
913 | * frame.h (enum output_method): Add output_ns. | |
914 | (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR) | |
915 | (FRAME_EXTERNAL_MENU_BAR): Use under NS. | |
916 | (FRAME_WINDOW_P): NS-specific definition. | |
917 | * fringe.c (max_used_fringe_bitmap): Make public. | |
918 | * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's. | |
919 | (getloadavg): Use NeXT code under descendant OS's. | |
920 | * image.c (includes and header section, x_create_bitmap_from_data) | |
921 | (x_create_bitmap_from_file, free_bitmap_record, image_background) | |
922 | (image_background_transparent, x_clear_image_1) | |
923 | (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image) | |
924 | (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color) | |
925 | (x_to_xcolors, x_from_xcolors, x_disable_image) | |
926 | (x_build_heuristic_mask, syms_of_image): Add NS support parallel to | |
927 | other GUIs, including XPM support using code originally written for | |
928 | Carbon GUI. | |
0a170079 | 929 | (png_load, jpeg_load, tiff_load, gif_load): Add implementations |
edfda783 AR |
930 | using NS API. |
931 | (image_ascent): Use font metrics macros instead of direct struct field | |
932 | access. | |
933 | * keyboard.c (includes): Add nsterm.h when compiling under NS. | |
934 | (kbd_buffer_get_event): Handle NS as other GUI windowing systems. | |
935 | Also, handle NS as GTK for menu bar purposes. | |
936 | (make_lispy_event): Handle NS as other GUI windowing systems, and as X | |
937 | toolkit where they differ. | |
938 | (parse_menu_item): Prefer keybindings using 'super' modifier. Also, | |
939 | use cachelist, still needed under NS. | |
6ddc6cca | 940 | * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI. |
edfda783 AR |
941 | (struct widget_value): Define it here for menu.c. |
942 | * keymap.c (includes): Include modifier internals. | |
943 | (lisp_to_mod, modifier_sequence_p): New functions, compiled only under | |
944 | NS. | |
945 | (where_is_internal, Fwhere_is_internal): When compiled under NS, add | |
946 | support for preferring sequences using certain modifiers, specified by | |
947 | the FIRSTONLY argument. | |
948 | * lisp.h (hash_remove): Rename to avoid name clash when compiling | |
949 | under NS GNUstep implementation. | |
950 | (USE_LSB_TAG): Use it under Cocoa when compiling under NS. | |
951 | * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning. | |
952 | * menu.c: Include nsterm.h under NS. | |
953 | (single_menu_item, parse_single_submenu, xmalloc_widget_value) | |
954 | (free_menubar_widget_tree_value, update_submenu_strings) | |
955 | (find_and_call_menu_selection): Treat NS as X and NT. | |
956 | (find_and_return_menu_selection): New function, used for popup menus. | |
ba60bd44 JB |
957 | * nsgui.h: |
958 | * nsterm.h: | |
959 | * nsfns.m: | |
960 | * nsimage.m: | |
961 | * nsmenu.m: | |
962 | * nsselect.m: | |
edfda783 AR |
963 | * nsterm.m: New files. |
964 | * process.c (wait_reading_process_output): Under NS, call ns_select() | |
965 | instead of plain select(). | |
966 | * syntax.c (char_quoted): Under NS, avoid a crash when called near | |
967 | beginning of buffer. | |
968 | * sysselect.h (init_process): Rename when compiling under Cocoa to | |
969 | avoid name conflict. | |
970 | * termhooks.h (display_info): Add ns_display_info to union. | |
971 | * terminal.c (Fterminal_live_p): Add ns to terminal types. | |
972 | * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in | |
973 | COCOA environment. | |
974 | * unexnext.c: Update to work with mach API on Mac OS X, and to use new | |
975 | unexec() signature. (Note, this will dump, but the resulting file | |
976 | crashes; unexosx is used instead; keeping around for reference and | |
977 | possible aid in getting dump working under GNUstep.) | |
978 | * w32gui.h (button_type, widget_value): Remove definitions (now in | |
979 | keyboard.h). | |
980 | * window.c: Include nsterm.h when compiling under NS. | |
981 | * xdisp.c (includes): Include nsterm.h when compiling under NS. | |
982 | (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as | |
983 | other GUI windowing systems. | |
984 | (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as | |
985 | GTK. | |
986 | (x_consider_frame_title): Under NS, set icon type and frame | |
987 | modified-state indicator; use ns_set_name_as_filename() when using | |
988 | formatted title. | |
989 | (update_window_cursor): Make public when compiling under NS. | |
990 | (display_hourglass_p, syms_of_xdisp, hourglass_shown_p) | |
991 | (hourglass_atimer, Vhourglass_delay | |
992 | * xfaces.c (header section, init_frame_faces, clear_font_table) | |
993 | (defined_color, unload_color, x_face_list_fonts) | |
6ddc6cca SM |
994 | (prepare_face_for_display): Add NS support parallel to other GUIs. |
995 | Emulate GCs like other non-X GUIs. | |
edfda783 AR |
996 | (split_font_name): Don't lowercase font name under NS. |
997 | (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling | |
998 | under NS. | |
999 | * s/darwin.h: Add support for compilation under NS. | |
1000 | ||
1391cd54 JR |
1001 | 2008-07-15 Jason Rumney <jasonr@gnu.org> |
1002 | ||
6ddc6cca SM |
1003 | * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect. |
1004 | (w32_show_hourglass): Rename from show_hourglass. | |
1005 | (w32_hide_hourglass): Rename from hide_hourglass. | |
1006 | (DEFAULT_HOURGLASS_DELAY): Revert from last change. | |
1007 | (Vhourglass_delay): Declare extern. | |
1008 | (hourglass_started): Remove. | |
1391cd54 | 1009 | |
6ddc6cca SM |
1010 | * xdisp.c (Vhourglass_delay): Remove static. |
1011 | (hourglass_started, start_hourglass, cancel_hourglass): | |
1012 | Don't include these versions on WINDOWSNT. | |
1391cd54 | 1013 | |
1885ab29 AR |
1014 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> |
1015 | ||
6ddc6cca | 1016 | * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern |
20d6dc02 | 1017 | variables (formerly in xfns.c). |
1885ab29 AR |
1018 | (show_hourglass, hide_hourglass): New prototypes (same). |
1019 | * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer) | |
1020 | (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly | |
20d6dc02 | 1021 | in xfns.c). |
1885ab29 AR |
1022 | (syms_of_xdisp): Declare/initialize display-hourglass, |
1023 | hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p. | |
1024 | (hourglass_started, start_hourglass, cancel_hourglass): New functions, | |
20d6dc02 | 1025 | formerly in xfns.c. |
1885ab29 AR |
1026 | * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p) |
1027 | (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started) | |
1028 | (start_hourglass, cancel_hourglass): Remove. | |
1029 | (show_hourglass, hide_hourglass): Remove prototypes and static | |
1030 | modifiers. | |
1031 | (syms_of_xfns): Remove display-hourglass, hourglass-delay, | |
1032 | hourglass_atimer, hourglass_shown_p declaration/initialization. | |
1033 | * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p) | |
1034 | (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started) | |
1035 | (start_hourglass, cancel_hourglass): Remove. | |
1036 | (show_hourglass, hide_hourglass): Remove prototypes and static | |
1037 | modifiers. | |
1038 | (syms_of_macfns): Remove display-hourglass, hourglass-delay, | |
1039 | hourglass_atimer, hourglass_shown_p declaration/initialization. | |
1040 | * w32fns.c (display_hourglass_p, Vhourglass_delay) | |
1041 | (DEFAULT_HOURGLASS_DELAY): Remove. | |
1042 | (syms_of_w32fns): Remove display-hourglass, hourglass-delay, | |
1043 | hourglass_shown_p declaration/initialization. | |
1044 | ||
3faa984f JR |
1045 | 2008-07-14 Jason Rumney <jasonr@gnu.org> |
1046 | ||
6ddc6cca SM |
1047 | * w32fns.c (w32_get_arg): Remove wrapper function. |
1048 | (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg | |
1049 | directly. | |
1050 | (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly. | |
3faa984f | 1051 | |
2f73901f KH |
1052 | 2008-07-14 Kenichi Handa <handa@m17n.org> |
1053 | ||
1054 | * xfont.c (xfont_open): Add workaround for X's bug. | |
1055 | ||
11da284d KH |
1056 | 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) |
1057 | ||
1058 | * fontset.c: Include <stdio.h> unconditionally. | |
1059 | ||
944cc4a8 MA |
1060 | 2008-07-13 Michael Albinus <michael.albinus@gmx.de> |
1061 | ||
1062 | * dbusbind.c (Fdbus_register_signal): Allow also signal arguments | |
1063 | for filtering. | |
1064 | ||
bdee2ef3 DN |
1065 | 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu> |
1066 | ||
1067 | * s/vms.h: Use __GNUC__ instead of _GNUC_. | |
1068 | ||
1069 | * m/macppc.h: | |
1070 | * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals. | |
1071 | ||
1072 | * m/ibms390x.h (XINT, XUINT): Don't define, same as the default | |
944cc4a8 MA |
1073 | (SPECIAL_EMACS_INT): |
1074 | * m/ia64.h (SPECIAL_EMACS_INT): | |
bdee2ef3 DN |
1075 | * m/amdx86-64.h (SPECIAL_EMACS_INT): |
1076 | * s/gnu.h (NLIST_STRUCT): | |
1077 | * aix4-2.h (X11R5_INHIBIT_I18N): | |
1078 | * s/gnu-linux.h (LINUX): | |
1079 | * s/msdos.h (HAVE_FACES): | |
1080 | * s/ms-w32.h (HAVE_FACES): Don't define, unused. | |
1081 | ||
944cc4a8 | 1082 | * systty.h: |
bdee2ef3 DN |
1083 | * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used |
1084 | anymore. | |
1085 | ||
bba104c1 DN |
1086 | 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu> |
1087 | ||
1088 | * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was | |
1089 | always defined as int. | |
1090 | ||
1091 | * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT): | |
1092 | * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT): | |
1093 | * s/gnu-linux.h (HAVE_WAIT_HEADER): | |
1094 | * s/freebsd.h (HAVE_WAIT_HEADER): | |
1095 | * s/bsd-common.h (HAVE_UNION_WAIT): | |
1096 | * s/aix4-2.h (HAVE_WAIT_HEADER): | |
1097 | * m/mips.h (HAVE_UNION_WAIT): | |
1098 | * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used. | |
1099 | (COFF, static): Do not define, they are undefined later in the file. | |
1100 | ||
1101 | * process.c (update_status): Don't use a union. | |
1102 | (status_convert): | |
1103 | (sigchld_handler): Use int instead of WAITTYPE. | |
1104 | ||
e433031a CY |
1105 | 2008-07-12 Chong Yidong <cyd@stupidchicken.com> |
1106 | ||
1107 | * indent.c (Fvertical_motion): Restore hscroll before moving to | |
1108 | goal column. | |
1109 | ||
3bfb4d48 DN |
1110 | 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu> |
1111 | ||
1112 | * lisp.h: Remove left over code. | |
1113 | ||
e7c9048f AS |
1114 | 2008-07-11 Andreas Schwab <schwab@suse.de> |
1115 | ||
7e770c85 AS |
1116 | * lisp.h: Fix logic in last change. |
1117 | ||
e7c9048f AS |
1118 | * menu.h: New file. |
1119 | * menu.c: Include it. | |
1120 | * xmenu.c: Likewise. | |
1121 | * Makefile.in: Update dependencies. | |
1122 | ||
38aaf336 KH |
1123 | 2008-07-11 Kenichi Handa <handa@m17n.org> |
1124 | ||
1125 | * fontset.c (fontset_from_font): Cancel the previous change. | |
1126 | ||
6e5cb96f DN |
1127 | 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu> |
1128 | ||
1129 | * lisp.h: | |
1130 | * w32heap.c: | |
1131 | * emacs.c: | |
1132 | * alloc.c: Replace all references of NO_UNION_TYPE with | |
1133 | USE_LISP_UNION_TYPE. | |
1134 | ||
1135 | * m/xtensa.h (NO_UNION_TYPE): | |
1136 | * m/vax.h (NO_UNION_TYPE): | |
1137 | * m/template.h (NO_UNION_TYPE): | |
1138 | * m/sparc.h (NO_UNION_TYPE): | |
1139 | * m/mips.h (NO_UNION_TYPE): | |
1140 | * m/macppc.h (NO_UNION_TYPE): | |
1141 | * m/m68k.h (NO_UNION_TYPE): | |
1142 | * m/iris4d.h (NO_UNION_TYPE): | |
1143 | * m/intel386.h (NO_UNION_TYPE): | |
1144 | * m/ibms390x.h (NO_UNION_TYPE): | |
1145 | * m/ibms390.h (NO_UNION_TYPE): | |
1146 | * m/ibmrs6000.h (NO_UNION_TYPE): | |
1147 | * m/ia64.h (NO_UNION_TYPE): | |
1148 | * m/hp800.h (NO_UNION_TYPE): | |
1149 | * m/arm.h (NO_UNION_TYPE): | |
1150 | * m/amdx86-64.h (NO_UNION_TYPE): | |
1151 | * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were | |
1152 | defining it the same. | |
1153 | ||
e0f47a68 CY |
1154 | 2008-07-10 Chong Yidong <cyd@stupidchicken.com> |
1155 | ||
ba60bd44 | 1156 | * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line. |
e0f47a68 | 1157 | |
c5e7567d DN |
1158 | 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu> |
1159 | ||
1160 | * src/fileio.c: | |
1161 | * src/sysdep.c | |
1162 | * src/systty.h: | |
1163 | * src/m/ibmrs6000.h: | |
1164 | * src/m/iris4d.h: | |
1165 | * src/s/aix4-2.h: | |
1166 | * src/s/freebsd.h: | |
1167 | * src/s/gnu-linux.h: | |
1168 | * src/s/hpux10-20.h: | |
1169 | * src/s/hpux11.h: | |
1170 | * src/s/netbsd.h: | |
1171 | * src/s/sol2-3.h: | |
1172 | * src/s/sol2-4.h: | |
1173 | * src/s/sol2.h: | |
1174 | * src/s/usg5-4.h: | |
1175 | * src/s/vms.h: Remove references to unused variables. | |
1176 | ||
bb658864 AS |
1177 | 2008-07-10 Andreas Schwab <schwab@suse.de> |
1178 | ||
1179 | * ftfont.c (ftfont_resolve_generic_family): Remove foundry from | |
1180 | pattern before matching the generic family. | |
1181 | ||
3d3db608 DN |
1182 | 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu> |
1183 | ||
a0ce9ab7 | 1184 | * unexec.c: |
3460e0b9 DN |
1185 | * s/vms.h: |
1186 | * s/usg5-4-2.h: | |
1187 | * s/sol2-5.h: | |
1188 | * s/freebsd.h: | |
1189 | * s/darwin.h: Remove dead code. | |
1190 | ||
ad76189a DN |
1191 | * m/template.h: |
1192 | * m/sparc.h: | |
1193 | * m/mips.h: | |
1194 | * m/m68k.h: | |
1195 | * m/iris4d.h: | |
1196 | * m/intel386.h: | |
1197 | * m/ibms390x.h: | |
1198 | * m/ibms390.h: | |
1199 | * m/ia64.h: | |
1200 | * m/hp800.h: | |
1201 | * m/arm.h: | |
1202 | * m/amdx86-64.h: Remove dead code and references to unused | |
1203 | and compiler defined symbols. | |
1204 | ||
d2b5bbda DN |
1205 | * unexmips.c: |
1206 | * unexelf.c: Remove references to desupported systems. | |
1207 | ||
40dde9d1 DN |
1208 | * m/powermac.h: Remove file, it is now identical to m/macppc.h. |
1209 | ||
21133394 DN |
1210 | * m/powermac.h: Remove boilerplate comments. |
1211 | (NO_REMAP): Remove unused definition. | |
1212 | ||
3d3db608 DN |
1213 | * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files |
1214 | define them. | |
1215 | ||
c8e0e16d KH |
1216 | 2008-07-10 Kenichi Handa <handa@m17n.org> |
1217 | ||
1218 | * xfont.c (xfont_open): Log the reason of failure. | |
1219 | ||
3cba9369 SM |
1220 | 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca> |
1221 | ||
1222 | * fontset.c (fontset_get_font_group): | |
1223 | * font.c (font_check_otf): Specify argument types. | |
1224 | ||
73353585 KH |
1225 | 2008-07-09 Kenichi Handa <handa@m17n.org> |
1226 | ||
0e17387a KH |
1227 | * coding.c (detect_coding_utf_8): Set detect_info->found only when |
1228 | non-ASCII char is found. | |
1229 | ||
73353585 KH |
1230 | * fontset.c (fontset_compare_rfontdef): Fix plus/minus. |
1231 | (reorder_font_vector): Change the arg preferred_family to font. | |
1232 | Prefer the spec matching with font. | |
1233 | (fontset_get_font_group): New function. | |
1234 | (fontset_find_font): Change the format of an element of a realized | |
1235 | fontset. Use fontset_get_font_group. | |
1236 | (fontset_font): Try the current fontset, the default fontset, the | |
1237 | fallbacks of the current fonset, and the fallbacks of the default | |
1238 | fontset in this order. | |
1239 | (face_for_char): Delete the shortcut to use the current font. | |
1240 | (fontset_from_font): Don't set fonts for Latin in the fontset. | |
1241 | ||
1242 | * font.h (font_make_object, font_match_p): Adjust prototypes. | |
1243 | ||
1244 | * ftfont.h [FT_BDF_H]: Include FT_BDF_H. | |
1245 | ||
1246 | * font.c (font_make_object): New arg entity and pixelsize. | |
1247 | (font_check_otf_features, font_check_otf): New functions. | |
1248 | (font_match_p): Check :lang, :script, and :otf properties. | |
1249 | ||
1250 | * xfont.c (xfont_open): Adjust it for the change of | |
1251 | font_make_object. | |
e5d05978 | 1252 | (xfont_text_extents): Fix initial setting of metrics. |
73353585 KH |
1253 | |
1254 | * ftfont.c (struct ftfont_info): New member index, delete member | |
1255 | fc_charset_idx. Make the member order compatible with struct | |
1256 | xftfont_info. | |
1257 | (fc_charset_table): Change charset names to registry names. | |
1258 | (ftfont_pattern_entity): Delete the args registry and | |
1259 | fc_charset_idx. Change the value of :font-entity property | |
1260 | to (FONTNAME . INDEX). Always set :registry property to | |
1261 | `iso10646-1'. | |
1262 | (struct ftfont_cache_data): New struct. | |
1263 | (ftfont_lookup_cache): New arg for_face. | |
1264 | (ftfont_get_fc_charset, ftfont_get_otf): New functions. | |
1265 | (ftfont_driver): Set the member otf_capability. | |
1266 | (ftfont_get_charset): Adjust it for the change of | |
1267 | fc_charset_table. | |
1268 | (OTF_TAG_SYM): New macro. | |
1269 | (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it | |
1270 | for the change of fc_charset_table. | |
1271 | (ftfont_list): Adjust it for the change of ftfont_spec_pattern and | |
1272 | ftfont_pattern_entity. Add FC_INDEX to objset. | |
1273 | (ftfont_match): Adjust it for the change of ftfont_spec_pattern | |
1274 | and ftfont_pattern_entity. | |
1275 | (ftfont_open): Adjust it for the change of ftfont_lookup_cache, | |
1276 | font_make_object, struct ftfont_info. | |
1277 | (ftfont_has_char): Use ftfont_get_fc_charset. | |
1278 | (ftfont_otf_features, ftfont_otf_capability): New functions. | |
1279 | (ftfont_shape): Use ftfont_get_otf. | |
e5d05978 | 1280 | (ftfont_text_extents): Fix initial setting of metrics. |
73353585 KH |
1281 | |
1282 | * xftfont.c (struct xftfont_info): New member ft_size. Make the | |
1283 | member order compatible with struct ftfont_info. | |
1284 | (xftfont_open): Add FC_CHARSET to the pattern. Set | |
1285 | xftfont_info->ft_size. Don't unlock the face. Check BDF | |
1286 | properties if appropriate. | |
1287 | (xftfont_close): Unlock the face. | |
1288 | (xftfont_anchor_point, xftfont_shape): Deleted. | |
1289 | (syms_of_xftfont): Don't set members anchor_point and shape of | |
1290 | xftfont_driver. | |
1291 | ||
1292 | * w32uniscribe.c (uniscribe_open): Adjust it for the change of | |
1293 | font_make_object. | |
1294 | ||
1295 | * w32font.c (w32font_open): Adjust it for the change of | |
1296 | font_make_object. | |
1297 | (w32font_open_internal): Don't set properties of font_object here. | |
1298 | ||
7f000038 CY |
1299 | 2008-07-08 Chong Yidong <cyd@stupidchicken.com> |
1300 | ||
830aab93 CY |
1301 | * macfns.c (x_create_tip_frame): |
1302 | * w32fns.c (x_create_tip_frame): | |
1303 | * xfns.c (x_create_tip_frame): Pass parameter argument to | |
1304 | face-set-after-frame-default. | |
1305 | ||
7f000038 CY |
1306 | * xfaces.c (Finternal_merge_in_global_face): Save merged |
1307 | attributes for the default face back into the face vector. | |
1308 | ||
85cf8992 AS |
1309 | 2008-07-08 Andreas Schwab <schwab@suse.de> |
1310 | ||
1311 | * fontset.h: Declare fontset_from_font. Don't declare | |
1312 | new_fontset_from_font and fontset_from_font_name. | |
1313 | * xterm.c: Include "fontset.h". | |
1314 | * Makefile.in (xterm.o): Update dependencies. | |
1315 | ||
4a00783e GM |
1316 | 2008-07-08 Glenn Morris <rgm@gnu.org> |
1317 | ||
1318 | * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.) | |
1319 | * alloc.c, ecrt0.c: Use __sparc__ rather than sparc. | |
1320 | ||
4d2d5f5f CY |
1321 | 2008-07-07 Chong Yidong <cyd@stupidchicken.com> |
1322 | ||
1323 | * frame.c (Qinhibit_face_set_after_frame_default): Var deleted. | |
1324 | (x_set_frame_parameters): Don't bind it. | |
1325 | ||
dfe66c5b JB |
1326 | 2008-07-07 Juanma Barranquero <lekktu@gmail.com> |
1327 | ||
1328 | * w32fns.c (map_w32_filename): Declare extern. | |
1329 | ||
ec7e221c JR |
1330 | 2008-07-07 Jason Rumney <jasonr@gnu.org> |
1331 | ||
dfe66c5b | 1332 | * w32term.c (WS_EX_LAYERED): Define if not already. |
ec7e221c | 1333 | |
fe5d61c4 CY |
1334 | 2008-07-06 Chong Yidong <cyd@stupidchicken.com> |
1335 | ||
1336 | * xfaces.c (set_font_frame_param): Don't try to set the font | |
1337 | parameter if it is still unspecified in the lface. | |
1338 | ||
9204cb8b CY |
1339 | 2008-07-05 Chong Yidong <cyd@stupidchicken.com> |
1340 | ||
0a143d3a CY |
1341 | * xfaces.c (Finternal_merge_in_global_face): Don't realize default |
1342 | face if it didn't already exist. | |
1343 | ||
9204cb8b CY |
1344 | * xdisp.c (try_window_id): Give up if word-wrapping is on. |
1345 | ||
6c95e70d AS |
1346 | 2008-07-05 Andreas Schwab <schwab@suse.de> |
1347 | ||
dfe66c5b | 1348 | * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section. |
6c95e70d | 1349 | |
59230395 CY |
1350 | 2008-07-05 Chong Yidong <cyd@stupidchicken.com> |
1351 | ||
1352 | * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if | |
1353 | word-wrapping. | |
1354 | (IT_DISPLAYING_WHITESPACE): New macro. | |
1355 | (move_it_in_display_line_to): Handle MOVE_TO_X requests properly | |
1356 | when word-wrapping. Simplify word-wrapping logic. Use correct | |
1357 | pixel positions when saving copies of the iterator. | |
1358 | (display_line): Use proper wrap point if the last character on a | |
1359 | line was preceded by whitespace. | |
1360 | ||
d7c664f3 SM |
1361 | 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca> |
1362 | ||
1363 | * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}. | |
1364 | ||
9ffc8a3a KH |
1365 | 2008-07-04 Kenichi Handa <handa@m17n.org> |
1366 | ||
1367 | * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1. | |
1368 | ||
1369 | * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte. | |
1370 | ||
946598bf JR |
1371 | 2008-07-02 Jason Rumney <jasonr@gnu.org> |
1372 | ||
d7c664f3 SM |
1373 | * xfns.c (syms_of_xfns): Only define x-select-font when both |
1374 | HAVE_FREETYPE and USE_GTK | |
946598bf | 1375 | |
d7c664f3 SM |
1376 | * xdisp.c (next_element_from_display_vector): Move assignment out |
1377 | of if statement. | |
946598bf | 1378 | |
6cf29fe8 JR |
1379 | 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com> |
1380 | ||
d7c664f3 | 1381 | * lisp.h (Qdelete_file, Qdelete_directory): Declare extern. |
6cf29fe8 | 1382 | |
d7c664f3 SM |
1383 | * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars. |
1384 | (syms_of_fileio): Initialize and export them. | |
1385 | (Fdelete_directory, Fdelete_file): Optionally delete via trash. | |
6cf29fe8 | 1386 | |
d7c664f3 SM |
1387 | * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already. |
1388 | (Fsystem_move_file_to_trash): New function. | |
1389 | (syms_of_w32fns): Export it to lisp. | |
6cf29fe8 | 1390 | |
79ca7db1 JR |
1391 | 2008-07-01 Jason Rumney <jasonr@gnu.org> |
1392 | ||
d7c664f3 SM |
1393 | * w32font.c (w32font_text_extents): Don't count overhang as part |
1394 | of width. | |
79ca7db1 | 1395 | |
c2786a3d | 1396 | 2008-06-30 Miles Bader <miles@gnu.org> |
c4f4682b MB |
1397 | |
1398 | * dispextern.h (struct glyph, struct it, struct iterator_stack_entry): | |
1399 | Add `avoid_cursor_p' field. | |
1400 | ||
1401 | * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field. | |
1402 | (set_cursor_from_row): Skip glyphs with avoid_cursor_p set. | |
1403 | (append_glyph, append_composite_glyph, produce_image_glyph) | |
c2786a3d JB |
1404 | (append_stretch_glyph): Initialize avoid_cursor_p. |
1405 | (get_it_property): Rename from `get_line_height_property'. | |
c4f4682b MB |
1406 | (x_produce_glyphs): Use get_it_property. |
1407 | (handle_line_prefix, push_display_prop): New functions. | |
1408 | (display_line, move_it_in_display_line_to): Handle line/wrap prefixes. | |
c2786a3d JB |
1409 | (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix): |
1410 | New variables. | |
c4f4682b MB |
1411 | (syms_of_xdisp): Initialize them. |
1412 | ||
7d7ad10e KH |
1413 | 2008-06-30 Kenichi Handa <handa@m17n.org> |
1414 | ||
1415 | * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and | |
1416 | XftDefaultSubstitute (they are called in XftFontMatch). | |
1417 | (xftfont_open): Fix args to ftfont_font_format. | |
1418 | ||
1419 | * ftfont.c (fc_charset_table): New member lang. | |
1420 | (ftfont_resolve_generic_family): New arg pattern. | |
1421 | (ftfont_spec_pattern): Check fc_cahrset_table[]->lang. | |
1422 | (ftfont_list): Call ftfont_resolve_generic_family with `pattern'. | |
1423 | (ftfont_open): Fix args to ftfont_font_format. | |
1424 | (ftfont_font_format): New arg filename. | |
1425 | ||
44b754c7 CY |
1426 | 2008-06-30 Chong Yidong <cyd@stupidchicken.com> |
1427 | ||
1428 | * xfaces.c (Finternal_merge_in_global_face): If default face was | |
1429 | modified, realize it again. Update the font face attribute. | |
1430 | ||
a4521b03 JR |
1431 | 2008-06-29 Jason Rumney <jasonr@gnu.org> |
1432 | ||
c2786a3d | 1433 | * w32term.c (x_set_frame_alpha): Fix logic. |
a4521b03 | 1434 | |
fe44f009 KH |
1435 | 2008-06-29 Kenichi Handa <handa@m17n.org> |
1436 | ||
1437 | * fontset.c (Finternal_char_font): Return font-object instead of | |
1438 | font-name. | |
1439 | ||
c2786a3d | 1440 | * composite.c (get_composition_id): Fix the width calculation for TAB. |
fe44f009 | 1441 | |
baed8445 SM |
1442 | 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca> |
1443 | ||
1444 | * indent.c (Fvertical_motion): Properly handle float column arg. | |
1445 | ||
8b61a891 JR |
1446 | 2008-06-28 Jason Rumney <jasonr@gnu.org> |
1447 | ||
baed8445 SM |
1448 | * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer. |
1449 | (pfnSetLayeredWindowAttributes): New function pointer. | |
1450 | (w32_initialize): Initialize it when supported. | |
1451 | (x_set_frame_alpha): New function. | |
8b61a891 | 1452 | |
baed8445 SM |
1453 | * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'. |
1454 | (w32_frame_parm_handlers): Set alpha handler. | |
8b61a891 | 1455 | |
baed8445 | 1456 | * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha. |
8b61a891 | 1457 | |
57016d37 JR |
1458 | 2008-06-27 Jason Rumney <jasonr@gnu.org> |
1459 | ||
baed8445 SM |
1460 | * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight) |
1461 | (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions. | |
1462 | (w32_to_x_charset, x_to_w32_charset) | |
1463 | (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) | |
1464 | (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) | |
1465 | (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) | |
1466 | (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) | |
1467 | (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) | |
1468 | (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) | |
1469 | (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c. | |
1470 | (Qw32_charset_unicode): Remove. | |
1471 | (syms_of_w32fns): Update for above changes. | |
1472 | ||
1473 | * w32font.c (w32_to_x_charset, x_to_w32_charset) | |
1474 | (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) | |
1475 | (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) | |
1476 | (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) | |
1477 | (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) | |
1478 | (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) | |
1479 | (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) | |
1480 | (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c. | |
1481 | (syms_of_w32font): Update for above changes. | |
57016d37 | 1482 | |
d6bf1bdb DN |
1483 | 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu> |
1484 | ||
1485 | * s/usg5-4.h: Fix previous change: keep the correct branch of a | |
1486 | removed #if. | |
9fa1c445 | 1487 | (USG_SHARED_LIBRARIES): Remove duplicate definition. |
d6bf1bdb | 1488 | |
43db14bb JB |
1489 | 2008-06-26 Juanma Barranquero <lekktu@gmail.com> |
1490 | Eli Zaretskii <eliz@gnu.org> | |
1491 | ||
1492 | * makefile.w32-in (LOCAL_FLAGS): | |
1493 | Don't include WINDOWSNT, DOS_NT and _UCHAR_T. | |
1494 | ||
1495 | * sysdep.c (_spawnlp, _getpid): | |
1496 | Declare with explicit _cdecl instead of _CRTAPI1. | |
1497 | ||
1498 | * editfns.c (Fget_internal_run_time): | |
1499 | Check for WINDOWSNT with #ifdef, not #if. | |
1500 | ||
c35f9821 JR |
1501 | 2008-06-26 Jason Rumney <jasonr@gnu.org> |
1502 | ||
43db14bb | 1503 | * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros. |
c35f9821 | 1504 | |
57016d37 | 1505 | * w32term.c (x_draw_glyph_string_foreground) |
43db14bb JB |
1506 | (x_draw_composite_glyph_string_foreground): Sync with xterm.c. |
1507 | Use FONT_HANDLE macro. | |
1508 | (x_draw_glyph_string): Use FONT_TEXTMETRIC macro. | |
c35f9821 | 1509 | |
57016d37 | 1510 | * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape) |
43db14bb | 1511 | (uniscribe_encode_char): Use FONT_HANDLE macro. |
c35f9821 | 1512 | |
43db14bb JB |
1513 | * w32font.c (Fx_select_font): Use FONT_HANDLE macro. |
1514 | (w32font_text_extents): Use precast w32_font. | |
1515 | (w32font_close): Free cached metrics. | |
1516 | (w32font_open_internal): Allocate space for name on stack. | |
c35f9821 | 1517 | |
1f8ad719 CY |
1518 | 2008-06-26 Chong Yidong <cyd@stupidchicken.com> |
1519 | ||
1520 | * xdisp.c (extend_face_to_end_of_line): Fix last change. | |
1521 | ||
97e71655 JR |
1522 | 2008-06-26 Jason Rumney <jasonr@gnu.org> |
1523 | ||
43db14bb JB |
1524 | * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro. |
1525 | (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants. | |
97e71655 | 1526 | |
c9fc02c7 JB |
1527 | 2008-06-26 Juanma Barranquero <lekktu@gmail.com> |
1528 | ||
1529 | * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o. | |
1530 | ||
1b5defe6 JR |
1531 | 2008-06-26 Jason Rumney <jasonr@gnu.org> |
1532 | ||
c9fc02c7 | 1533 | * w32bdf.c, w32bdf.h: Remove obsolete files. |
1b5defe6 | 1534 | |
c9fc02c7 | 1535 | * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c. |
1b5defe6 | 1536 | |
c9fc02c7 JB |
1537 | * w32gui.h: Don't include w32bdf.h. |
1538 | (XCharStruct, enum w32_char_font_type, W32FontStruct): | |
1539 | Remove obsolete font support. | |
1b5defe6 | 1540 | |
c9fc02c7 JB |
1541 | * w32font.h (struct w32font_info): Remove compat_w32_font. |
1542 | Add hfont member. | |
1543 | (FONT_COMPAT): Remove obsolete macro. | |
1b5defe6 | 1544 | |
ba60bd44 | 1545 | * w32font.c (w32font_close): Remove compat code. Delete hfont member. |
c9fc02c7 | 1546 | (w32font_encode_char, w32font_text_extents): Use new hfont member. |
ba60bd44 | 1547 | (w32font_open_internal): Remove compat code. Set new hfont member. |
c9fc02c7 | 1548 | (Fx_select_font): Use new hfont member. |
1b5defe6 | 1549 | |
57016d37 | 1550 | * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape) |
c9fc02c7 | 1551 | (uniscribe_encode_char): Use new hfont member. |
1b5defe6 | 1552 | |
57016d37 | 1553 | * w32term.c (x_draw_glyph_string_foreground) |
c9fc02c7 JB |
1554 | (x_draw_composite_glyph_string_foreground): Use new hfont member. |
1555 | (x_draw_glyph_string): Use metrics in w32font_info. | |
1b5defe6 | 1556 | |
1fc66bca KH |
1557 | 2008-06-26 Kenichi Handa <handa@m17n.org> |
1558 | ||
1559 | * xdisp.c (handle_auto_composed_prop): Fix for the terminal case. | |
1560 | ||
f2a77c3a DN |
1561 | 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu> |
1562 | ||
1563 | * unexnext.c: | |
1564 | * m/ews4800.h: | |
1565 | * m/hp9000s300.h: | |
1566 | * m/ibm370aix.h: | |
1567 | * m/mips-siemens.h: | |
1568 | * m/ncr386.h: | |
1569 | * m/next.h: | |
1570 | * m/pmax.h: | |
1571 | * m/powerpcle.h: | |
1572 | * m/tandem-s2.h: | |
1573 | * s/386bsd.h: | |
1574 | * s/bsd386.h: | |
1575 | * s/bsd4-1.h: | |
1576 | * s/bsd4-2.h: | |
1577 | * s/bsdos2-1.h: | |
1578 | * s/bsdos2.h: | |
1579 | * s/bsdos3.h: | |
1580 | * s/bsdos4.h: | |
1581 | * s/nextstep.h: | |
1582 | * s/ultrix4-3.h: | |
1583 | * s/usg5-0.h: | |
1584 | * s/usg5-2-2.h: | |
1585 | * s/usg5-2.h: | |
1586 | * s/usg5-4-3.h: | |
1587 | * s/ux4800.h: | |
1588 | * s/uxpds.h: | |
1589 | * s/uxpv.h: Remove support for obsolete systems. | |
1590 | * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h: | |
1591 | Remove, insert contents in s/hpux-10.20.h | |
1592 | * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h: | |
1593 | Remove, insert contents in s/aix-4.2.h | |
1594 | * s/usg5-3.h: Remove, insert contents in s/usg5-4.h. | |
1595 | * s/bsd4-3.h: Rename to .. | |
1596 | * s/bsd-common.h: ... this. | |
1597 | * src/data.c: | |
1598 | * src/doc.c: | |
1599 | * src/ecrt0.c: | |
1600 | * src/emacs.c: | |
1601 | * src/fileio.c: | |
1602 | * src/floatfns.c: | |
1603 | * src/keyboard.c: | |
1604 | * src/mem-limits.h: | |
1605 | * src/print.c: | |
1606 | * src/process.c: | |
1607 | * src/sysdep.c: | |
1608 | * src/syssignal.h: | |
1609 | * src/systty.h: | |
1610 | * src/syswait.h: | |
1611 | * src/term.c: | |
1612 | * src/unexec.c: | |
1613 | * src/unexelf.c: | |
1614 | * src/unexhp9k800.c: | |
1615 | * src/m/hp800.h: | |
1616 | * src/m/ibmrs6000.h: | |
1617 | * src/m/mips.h: | |
1618 | * src/m/vax.h: | |
1619 | * src/s/darwin.h: | |
1620 | * src/s/freebsd.h: | |
1621 | * src/s/gnu.h: | |
1622 | * src/s/ms-w32.h: | |
1623 | * src/s/msdos.h: | |
1624 | * src/s/netbsd.h: | |
1625 | * src/s/template.h: Remove references to obsolete variables. | |
1626 | ||
1627 | * Makefile.in: Add dependencies for all unexec files. | |
1628 | (admindir): Remove unused variable. | |
1629 | (UNEXEC_SRC): Remove references. | |
1630 | ||
bd02793a CY |
1631 | 2008-06-25 Chong Yidong <cyd@stupidchicken.com> |
1632 | ||
1633 | * xfns.c (x_default_font_parameter): If Xft is available, first | |
1634 | try Monospace-12 for the default font. | |
1635 | ||
ccedd259 JR |
1636 | 2008-06-25 Jason Rumney <jasonr@gnu.org> |
1637 | ||
c9fc02c7 | 1638 | * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0. |
ccedd259 | 1639 | |
fbe062b7 SM |
1640 | 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca> |
1641 | ||
603a0937 SM |
1642 | * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile. |
1643 | ||
fbe062b7 SM |
1644 | * buffer.c (syms_of_buffer): Remove default-word-wrap. |
1645 | ||
69785ad0 JB |
1646 | 2008-06-25 Juanma Barranquero <lekktu@gmail.com> |
1647 | ||
1648 | * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix. | |
1649 | <scroll-conservatively>: Fix typo in docstring. | |
1650 | ||
1651 | * xselect.c (Fx_send_client_event): Doc fix. | |
1652 | ||
249e6f76 KH |
1653 | 2008-06-25 Kenichi Handa <handa@m17n.org> |
1654 | ||
34e97272 KH |
1655 | * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER. |
1656 | ||
1657 | * font.c (font_parse_fcname): Remove unused variables. | |
69785ad0 JB |
1658 | (font_sort_entites): Delete the arg SPEC. Caller changed. |
1659 | Fix for the case of ! best_only. | |
34e97272 KH |
1660 | (font_delete_unmatched): Check DPI and AVGWIDTH too. |
1661 | ||
249e6f76 KH |
1662 | * lisp.h (Fstring_to_unibyte): EXFUN it. |
1663 | ||
69785ad0 | 1664 | * character.h (str_to_unibyte): Extern it. |
249e6f76 KH |
1665 | |
1666 | * character.c (str_to_unibyte): New function. | |
1667 | ||
1668 | * fns.c (Fstring_to_unibyte): New function. | |
1669 | (syms_of_fns): Defsubr it. | |
1670 | ||
65c108e4 KH |
1671 | 2008-06-24 Kenichi Handa <handa@m17n.org> |
1672 | ||
1673 | * font.c (font_score): Even if the PIXEL_SIZE is the same, check | |
1674 | DPI too. | |
1675 | (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too. | |
1676 | ||
4c3f18fe AS |
1677 | 2008-06-24 Andreas Schwab <schwab@suse.de> |
1678 | ||
69785ad0 | 1679 | * Makefile.in (${lispsource}loaddefs.el): Rename from |
4c3f18fe | 1680 | ../lisp/loaddefs.el. |
fd13748d AS |
1681 | (bootstrap-clean): Do what distclean does but don't remove |
1682 | Makefile. | |
1683 | (distclean): Depend on bootstrap-clean and remove Makefile. | |
4c3f18fe | 1684 | |
faa6190f CY |
1685 | 2008-06-24 Chong Yidong <cyd@stupidchicken.com> |
1686 | ||
1687 | * buffer.h (struct buffer): New member word_wrap. | |
1688 | ||
1689 | * buffer.c (syms_of_buffer): New variables default-word-wrap and | |
1690 | word-wrap. | |
1691 | (init_buffer_once): Initialize them. | |
1692 | ||
1693 | * dispextern.h (struct it): Replace bool truncate_lines_p with a | |
1694 | line_wrap enum possessing three possible values. | |
1695 | ||
1696 | * termopts.h: Replace truncate_partial_width_windows with | |
1697 | Vtruncate_partial_width_windows. | |
1698 | ||
1699 | * dispnew.c (direct_output_for_insert): Avoid direct output when | |
1700 | inserting a space with word wrap on. | |
1701 | ||
1702 | * indent.c (compute_motion): Obey integer values of | |
1703 | truncate-partial-width-windows. | |
1704 | ||
1705 | * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object, | |
1706 | replacing truncate_partial_width_windows. | |
1707 | (init_iterator): If Vtruncate_partial_width_windows is an integer, | |
1708 | truncate only if the window width is below that integer. | |
ba60bd44 | 1709 | (start_display, resize_mini_window, produce_stretch_glyph) |
faa6190f CY |
1710 | (display_string, move_it_in_display_line_to): Use line_wrap. |
1711 | (back_to_previous_visible_line_start, reseat_1): Reset | |
1712 | string_from_display_prop_p. | |
1713 | (display_line): Extend default face to end of line when wrapping. | |
1714 | ||
1715 | 2008-06-24 Kim F. Storm <storm@cua.dk> | |
1716 | ||
1717 | * xdisp.c (display_line, move_it_in_display_line_to): Add ability | |
1718 | to wrap continued lines at word boundaries. | |
1719 | ||
c3bb5465 JR |
1720 | 2008-06-24 Jason Rumney <jasonr@gnu.org> |
1721 | ||
69785ad0 JB |
1722 | * font.c (Ffont_face_attributes): Multiply pixel size before point |
1723 | conversion to avoid multiplying rounding error. | |
c3bb5465 | 1724 | |
0b07ad98 JR |
1725 | 2008-06-23 Jason Rumney <jasonr@gnu.org> |
1726 | ||
f245f2c6 JB |
1727 | * w32term.c (x_draw_glyph_string_background) |
1728 | (x_draw_glyph_string): Remove old bdf font code. | |
0b07ad98 | 1729 | |
69785ad0 | 1730 | * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove. |
0b07ad98 | 1731 | |
22459668 KH |
1732 | 2008-06-22 Kenichi Handa <handa@m17n.org> |
1733 | ||
1734 | * font.c (font_find_for_lface): Try the adstyle specified in | |
1735 | the property of LFACE_FONT of LFACE (if any). | |
1736 | ||
d925a426 | 1737 | 2008-06-21 Seiji Zenitani <zenitani@mac.com> |
f245f2c6 | 1738 | Ryo Yoshitake <ryo@shiftmode.net> |
d925a426 SM |
1739 | |
1740 | * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437. | |
1741 | ||
b4945b95 SM |
1742 | 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca> |
1743 | ||
1744 | * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el): | |
1745 | Use $(BOOTSTRAPEMACS) rather than witness-emacs. | |
1746 | (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it. | |
1747 | (witness-emacs): Remove. | |
1748 | (lisp, shortlisp): Move loaddefs.el earlier. | |
1749 | (mostlyclean): Forget about witness-emacs. | |
1750 | ||
64124279 GM |
1751 | 2008-06-22 Glenn Morris <rgm@gnu.org> |
1752 | ||
1753 | * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}. | |
36565815 | 1754 | (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes. |
64124279 | 1755 | |
768efd84 SM |
1756 | 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca> |
1757 | ||
1758 | * Makefile.in (PRECOMP): Remove. | |
1759 | (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP. | |
1760 | (witness-emacs): Run `compile-first'. | |
1761 | (.el.elc): Use the new compile-onefile target. | |
1762 | ||
808dd567 KH |
1763 | 2008-06-21 Kenichi Handa <handa@m17n.org> |
1764 | ||
1765 | * xftfont.c (xftfont_open): Handle QCembolden only when | |
1766 | FC_EMBOLDEN is defined. | |
1767 | ||
0de59eae AS |
1768 | 2008-06-21 Andreas Schwab <schwab@suse.de> |
1769 | ||
1770 | * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource). | |
58e8833b | 1771 | (.el.elc): Likewise. |
0de59eae | 1772 | |
fb38e9c9 MB |
1773 | 2008-06-21 Miles Bader <miles@gnu.org> |
1774 | ||
1775 | * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp | |
1776 | build dir, not the lisp source dir. | |
1777 | ||
fc46d219 SM |
1778 | 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca> |
1779 | ||
1780 | * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs. | |
1781 | (bootstrapclean): Remove. | |
1782 | (.el.elc): New rule. | |
1783 | (PRECOMP): New var. | |
1784 | (../lisp/subdirs.el): Remove. | |
1785 | (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency. | |
1786 | (witness-emacs): New target. | |
1787 | (mostlyclean): Remove witness-emacs as well. | |
1788 | (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}): | |
1789 | Add witness-emacs dependency. | |
1790 | ||
eaf1f6e7 CY |
1791 | 2008-06-20 Chong Yidong <cyd@stupidchicken.com> |
1792 | ||
1793 | * font.c (Ffont_face_attributes): Omit key-attribute pairs not | |
1794 | defined by the font. | |
1795 | ||
49f6eb95 SM |
1796 | 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca> |
1797 | ||
1798 | * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files. | |
1799 | (bootstrap-clean): New target that keeps TAGS around. | |
1800 | (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets. | |
1801 | (bootstrap-emacs${EXEEXT}): Depend on subdirs.el. | |
1802 | ||
4c100a01 JR |
1803 | 2008-06-20 Jason Rumney <jasonr@gnu.org> |
1804 | ||
49f6eb95 SM |
1805 | * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]: |
1806 | Remove obsolete font code. | |
db61a7f8 | 1807 | |
49f6eb95 SM |
1808 | * w32font.c (font_matches_spec): Use csb bitfield from font signature |
1809 | to determine language support. | |
4c100a01 | 1810 | |
759d3f32 SM |
1811 | 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca> |
1812 | ||
1813 | * sysdep.c (cfsetspeed): New fun extracted from the code. | |
1814 | (cfmakeraw): Move before first use. | |
1815 | ||
25241b4d SM |
1816 | 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change) |
1817 | ||
1818 | * sysdep.c (cfmakeraw): Provide fallback implementation. | |
1819 | (serial_configure): Provide fallback implementation of cfsetspeed. | |
1820 | ||
d7afccca KH |
1821 | 2008-06-20 Kenichi Handa <handa@m17n.org> |
1822 | ||
dc2226d0 KH |
1823 | * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to |
1824 | the pattern. | |
1825 | ||
9b9cd864 KH |
1826 | * fontset.c (fontset_from_font): Copy font_spec before changing |
1827 | the elements. | |
1828 | ||
d7afccca KH |
1829 | * xfns.c (x_default_font_parameter): Try "monospace-12" too. |
1830 | ||
770e2e6e SM |
1831 | 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca> |
1832 | ||
1833 | * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param' | |
1834 | for explicit `font' parameters. | |
1835 | ||
1836 | * frame.c (x_set_font): Remove unexplained call to fix inf-recursion. | |
1837 | ||
22e64f7c KH |
1838 | 2008-06-19 Kenichi Handa <handa@m17n.org> |
1839 | ||
1840 | * frame.c: Include <ctype.h>. | |
1841 | (x_set_font_backend): Allow spacing characters in the X resource | |
1842 | for FontBackend. | |
1843 | ||
27129af9 SM |
1844 | 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca> |
1845 | ||
1846 | * w32fns.c, xfns.c (Qfont_param): New var. | |
1847 | (syms_of_w32fns): Initialize it. | |
22e64f7c KH |
1848 | (x_default_font_parameter): Record explicit `font' into |
1849 | `font-parameter'. | |
27129af9 | 1850 | |
d26424c5 KH |
1851 | 2008-06-18 Kenichi Handa <handa@m17n.org> |
1852 | ||
1853 | * font.c (font_parse_xlfd): Fix previous change. | |
1854 | (font_parse_fcname): Don't use :fc-unknown-spec. | |
1855 | (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height. | |
1856 | (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA. | |
1857 | (font_add_log): Prepend the driver name to the resulting fonts. | |
1858 | ||
1859 | * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed. | |
1860 | (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname. | |
1861 | (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset. | |
1862 | ||
1863 | * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba) | |
1864 | (QCembolden): New variables. | |
1865 | (syms_of_xftfont): DEFSYM them. | |
1866 | (xftfont_open): Call XftFontMatch. Don't trust the result of | |
1867 | XftTextExtents8 if the pixel_size is less than 5. | |
1868 | ||
51cf11be AS |
1869 | 2008-06-18 Andreas Schwab <schwab@suse.de> |
1870 | ||
f245f2c6 | 1871 | * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM. |
51cf11be AS |
1872 | (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM. |
1873 | ||
07d9ba9b JR |
1874 | 2008-06-18 Jason Rumney <jasonr@gnu.org> |
1875 | ||
27129af9 | 1876 | * w32font.c (w32font_list, w32font_match): Add logging. |
07d9ba9b | 1877 | |
27129af9 | 1878 | * w32uniscribe (uniscribe_list, uniscribe_match): Add logging. |
07d9ba9b | 1879 | |
0c36bc4e CY |
1880 | 2008-06-17 Chong Yidong <cyd@stupidchicken.com> |
1881 | ||
1882 | * font.c (font_parse_fcname): Store divider characters for | |
1578da31 CY |
1883 | unknown-spec list. For known key symbols, intern using correct |
1884 | symbol name. | |
0c36bc4e | 1885 | |
70d6ecc6 KH |
1886 | 2008-06-17 Kenichi Handa <handa@m17n.org> |
1887 | ||
1888 | * xfaces.c (realize_default_face): If the frame is not on window | |
1889 | system, set the fontset of face to nil. | |
1890 | ||
821bc4db KH |
1891 | 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change) |
1892 | ||
f245f2c6 | 1893 | * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters. |
821bc4db | 1894 | |
3554e566 JB |
1895 | 2008-06-16 Juanma Barranquero <lekktu@gmail.com> |
1896 | ||
1897 | * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector) | |
1898 | (build_font_name_from_vector): Delete externs. | |
1899 | ||
1900 | * xfaces.c (struct font_name): Don't declare. | |
1901 | ||
93eed26b SM |
1902 | 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca> |
1903 | ||
1904 | * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects. | |
1905 | ||
d756bcd0 CY |
1906 | 2008-06-16 Chong Yidong <cyd@stupidchicken.com> |
1907 | ||
1908 | * font.c (font_parse_fcname): Fix handling of unknown-spec string. | |
1909 | ||
7a18a178 JB |
1910 | 2008-06-16 Juanma Barranquero <lekktu@gmail.com> |
1911 | ||
1912 | * font.c (Ffont_spec): Fix usage in docstring. | |
48105a6a | 1913 | (Ffont_face_attributes): Doc fix. |
7a18a178 | 1914 | |
6f568955 AS |
1915 | 2008-06-16 Andreas Schwab <schwab@suse.de> |
1916 | ||
1917 | * font.c (Ffont_face_attributes): Fix definition. | |
1918 | ||
3ef8c1b4 JR |
1919 | 2008-06-16 Jason Rumney <jasonr@gnu.org> |
1920 | ||
93eed26b | 1921 | * font.h (font_style_symbolic_from_value): Remove. |
3ef8c1b4 | 1922 | |
93eed26b SM |
1923 | * font.c (font_style_symbolic_from_value): Remove. |
1924 | (font_style_symbolic): Revert to pre 2008-06-13 version. | |
3ef8c1b4 | 1925 | |
93eed26b SM |
1926 | * w32font.c (w32_to_fc_weight): New function. |
1927 | (w32font_full_name, logfont_to_fcname): Use it. | |
3ef8c1b4 | 1928 | |
5e634ec9 KH |
1929 | 2008-06-16 Kenichi Handa <handa@m17n.org> |
1930 | ||
1931 | * font.c (font_check_object): Delete it. | |
1932 | (font_clear_cache): Check if a font-object is alive. | |
1933 | (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a | |
1934 | font-object to nil. | |
1935 | (font_close_object): Don't check FONT_CLOSE_OBJECT. | |
1936 | (font_at): Don't call font_check_object. | |
2babb359 | 1937 | (Ffont_get): Return a symbol for :weight, :slant, and :width. |
5e634ec9 | 1938 | |
6409a955 KY |
1939 | 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org> |
1940 | ||
1941 | * puresize.h (BASE_PURESIZE): Increase to 1230000. | |
1942 | ||
ce4eaddb CY |
1943 | 2008-06-16 Chong Yidong <cyd@stupidchicken.com> |
1944 | ||
1945 | * font.c (font_parse_fcname): Correctly parse KEY=VAL values. | |
1946 | ||
523dbe64 CY |
1947 | 2008-06-15 Chong Yidong <cyd@stupidchicken.com> |
1948 | ||
54b2ab27 | 1949 | * font.c (font_parse_fcname): Only one decimal point. |
523dbe64 CY |
1950 | (font_unparse_fcname): Handle data in family and foundry indices |
1951 | as symbols, not strings. | |
1952 | (font_unparse_gtkname, Ffont_face_attributes): New functions. | |
1953 | ||
54b2ab27 | 1954 | * xfns.c (Fx_select_font): Give GTK font dialog the default font name. |
523dbe64 CY |
1955 | |
1956 | * font.h (font_unparse_gtkname): Add prototype. | |
1957 | ||
9f296082 KH |
1958 | 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change) |
1959 | ||
54b2ab27 | 1960 | * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern. |
9f296082 | 1961 | |
3306c6dc AS |
1962 | 2008-06-15 Andreas Schwab <schwab@suse.de> |
1963 | ||
1964 | * font.c (font_update_drivers): Fix crash when no drivers match. | |
1965 | ||
a099c27a SM |
1966 | 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca> |
1967 | ||
1968 | * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk. | |
1969 | * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width. | |
1970 | ||
a8aa344d SM |
1971 | 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca> |
1972 | ||
1973 | * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1. | |
1974 | ||
a879ee6f SM |
1975 | 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca> |
1976 | ||
1977 | * process.c (Fserial_process_configure, Fprocess_send_eof): | |
1978 | Use EQ to compare Lisp_Objects. | |
1979 | ||
6fe9826d JR |
1980 | 2008-06-13 Jason Rumney <jasonr@gnu.org> |
1981 | ||
a879ee6f | 1982 | * w32fns.c (Fw32_select_font): Remove old font API function. |
6fe9826d | 1983 | |
a879ee6f SM |
1984 | * w32font.c (logfont_to_fcname): New function. |
1985 | (Fx_select_font): New font dialog function compatible with | |
1986 | GTK/fontconfig version. | |
6fe9826d | 1987 | |
a879ee6f SM |
1988 | * font.c (font_style_symbolic_from_value): New function. |
1989 | (font_style_symbolic): Use it. | |
6fe9826d | 1990 | |
a879ee6f | 1991 | * font.h (font_style_symbolic_from_value): Declare new function. |
6fe9826d | 1992 | |
17ab8f5d JB |
1993 | 2008-06-13 Juanma Barranquero <lekktu@gmail.com> |
1994 | ||
1995 | * font.c (syms_of_font) <font-weight-table, font-slant-table>: | |
1996 | <font-width-table>: Fix typos in docstrings. | |
1997 | ||
d888760c GM |
1998 | 2008-06-13 Daniel Engeler <engeler@gmail.com> |
1999 | ||
2000 | These changes add serial port access. | |
2001 | * process.c: Add HAVE_SERIAL. | |
2002 | (Fdelete_process, Fprocess_status, Fset_process_buffer) | |
2003 | (Fset_process_filter, Fset_process_sentinel, Fprocess_contact) | |
2004 | (list_processes_1, select_wrapper, Fstop_process) | |
2005 | (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes) | |
2006 | (status_notify): Modify to handle serial processes. | |
2007 | [HAVE_SERIAL] (Fserial_process_configure) | |
2008 | [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process): | |
2009 | New functions. | |
2010 | * process.h (struct Lisp_Process): Add `type'. | |
2011 | * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure): | |
2012 | New functions. | |
2013 | * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle | |
2014 | serial ports. | |
2015 | (serial_open, serial_configure) New functions. | |
2016 | * w32.h: Add FILE_SERIAL. | |
2017 | (struct _child_process): Add ovl_read, ovl_write. | |
2018 | ||
f4cc0153 KH |
2019 | 2008-06-13 Kenichi Handa <handa@m17n.org> |
2020 | ||
2021 | * dispextern.h (enum lface_attribute_index): New member | |
2022 | LFACE_FOUNDRY_INDEX. | |
2023 | ||
2024 | * font.c (font_score): Delete arg alternate_families. Check only | |
7a18e381 | 2025 | weight, slant, width, and size. Ignore the difference of alias |
f4cc0153 | 2026 | style symbols. |
7a18e381 | 2027 | (font_sort_entites): Adjust for the above change. Reflect the |
f4cc0153 KH |
2028 | order of font-driver to scores. |
2029 | (font_list_entities): Don't check alternate_familes here. | |
2030 | (font_clear_prop): Handle foundry. | |
2031 | (font_update_lface): Don't parse "foundry-family" form here. | |
2032 | Handle FONT_FOUNDRY_INDEX. | |
2033 | (font_find_for_lface): Likewise. Handle alternate families here. | |
a879ee6f | 2034 | If registry is nil, try iso8859-1 and ascii-0. |
f4cc0153 | 2035 | (font_open_for_lface): Pay attention to size in ENTITY. |
7a18e381 | 2036 | (font_open_by_name): Simplify by calling font_load_for_lface. |
f4cc0153 KH |
2037 | (free_font_driver_list): Delete it. |
2038 | (font_update_drivers): Preserve the order of backends. | |
2039 | (syms_of_font): Setting of sort_shift_bits adjusted for the change | |
2040 | of font_score and font_sort_entites. | |
2041 | (font_update_sort_order): Likewise. | |
2042 | ||
2043 | * xfaces.c (LFACE_FOUNDRY): New macro. | |
2044 | (check_lface_attrs): Check foundry. | |
7a18e381 | 2045 | (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form. |
f4cc0153 KH |
2046 | (merge_face_vectors): Check foundry. |
2047 | (merge_face_ref): Likewise. | |
2048 | (Finternal_set_lisp_face_attribute): Likewise. | |
2049 | (x_update_menu_appearance): Likewise. | |
2050 | (Finternal_get_lisp_face_attribute): Likewise. | |
2051 | (lface_hash): Likewise. | |
2052 | (lface_same_font_attributes_p): Likewise. | |
2053 | (x_supports_face_attributes_p): Likewise. | |
2054 | (tty_supports_face_attributes_p): Likewise. | |
2055 | (Finternal_set_alternative_font_family_alist): Intern strings. | |
2056 | (Finternal_set_alternative_font_registry_alist): Downcase strings. | |
2057 | (realize_default_face): Set LFACE_FOUNDRY (lface). | |
2058 | ||
2059 | * xfns.c (Fx_create_frame, x_create_tip_frame): Register X | |
2060 | font-driver at first. | |
2061 | ||
2062 | * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;". | |
2063 | ||
d434fef5 | 2064 | 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) |
97dead2d JM |
2065 | |
2066 | * lread.c (Fload): Use xfree, not free on saved_doc_string. | |
2067 | ||
9c5e177e JM |
2068 | 2008-06-12 Jim Meyering <meyering@redhat.com> |
2069 | ||
d434fef5 | 2070 | Make unexec_free handle NULL the same way free does. |
9c5e177e JM |
2071 | * unexmacosx.c (unexec_free): Ignore a NULL argument. |
2072 | ||
2afc21f5 SM |
2073 | 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca> |
2074 | ||
2075 | * character.h (CHAR_TO_BYTE_SAFE): New macro. | |
2076 | * character.c (Fmultibyte_char_to_unibyte): Obey the docstring. | |
2077 | * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro. | |
2078 | (WEAK_ALIAS): Simplify. | |
2079 | * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap | |
2080 | when searching a unibyte buffer. | |
2081 | ||
76c0de62 CY |
2082 | 2008-06-12 Chong Yidong <cyd@stupidchicken.com> |
2083 | ||
2084 | * xfns.c (Fx_select_font): Rename from x-font-dialog. | |
2085 | ||
0500dcc9 JB |
2086 | 2008-06-12 Juanma Barranquero <lekktu@gmail.com> |
2087 | ||
2088 | * w32font.c: Include ctype.h. | |
2089 | ||
f42adef6 JR |
2090 | 2008-06-11 Jason Rumney <jasonr@gnu.org> |
2091 | ||
2afc21f5 SM |
2092 | * w32font.c (w32font_encode_char): Detect missing glyphs that are |
2093 | misreported as space. | |
2094 | (add_font_entity_to_list): Support unicode-bmp and unicode-sip | |
2095 | as aliases for registry iso10646-1. | |
f42adef6 | 2096 | |
4b7cdc0e SM |
2097 | 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
2098 | ||
2099 | * buffer.c (clone_per_buffer_values): Skip `name'. | |
2100 | ||
cc02ebe1 CY |
2101 | 2008-06-11 Chong Yidong <cyd@stupidchicken.com> |
2102 | ||
2103 | * font.c (font_parse_fcname): Fix last change; accept decimal | |
2104 | points in font size. | |
2105 | ||
351ccb76 JR |
2106 | 2008-06-10 Jason Rumney <jasonr@gnu.org> |
2107 | ||
0500dcc9 JB |
2108 | * w32uniscribe.c (add_opentype_font_name_to_list): |
2109 | Skip non unicode fonts. | |
351ccb76 | 2110 | |
f473ed6f CY |
2111 | 2008-06-10 Chong Yidong <cyd@stupidchicken.com> |
2112 | ||
2113 | * xfns.c (Fx_font_dialog): New function. | |
2114 | ||
5d6333d5 | 2115 | * gtkutil.c (xg_dialog_response_cb): Rename from |
f473ed6f CY |
2116 | xg_file_response_callback. |
2117 | (pop_down_dialog): Rename from pop_down_file_dialog. | |
2118 | (xg_get_file_name): Callers changed. | |
2119 | (xg_get_font_name): New function. | |
2120 | ||
5d6333d5 | 2121 | * gtkutil.h (xg_get_font_name): Insert prototype. |
f473ed6f | 2122 | |
2a3bd2e1 SM |
2123 | 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca> |
2124 | ||
2125 | * xdisp.c (underline_minimum_offset): Rename from xterm.c's | |
2126 | x_underline_minimum_display_offset. | |
2127 | (syms_of_xdisp): Declare it here rather than in xterm.c. | |
2128 | * dispextern.h (underline_minimum_offset): Declare it. | |
2129 | * w32term.c (x_draw_glyph_string): Use it. | |
2130 | * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c. | |
2131 | (syms_of_xterm): Don't declare it any more. | |
2132 | (x_draw_glyph_string): Adjust to the new name. | |
2133 | ||
d5dc6163 SM |
2134 | 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change) |
2135 | ||
2136 | * xterm.c (x_underline_minimum_display_offset): New var. | |
2137 | (x_draw_glyph_string): Use it. | |
2138 | (syms_of_xterm): Declare it. | |
2139 | ||
0abdd197 CY |
2140 | 2008-06-10 Chong Yidong <cyd@stupidchicken.com> |
2141 | ||
2142 | * font.c (font_parse_fcname): Accept GTK-style font names too. | |
2143 | ||
a1562258 SM |
2144 | 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca> |
2145 | ||
928b5acc SM |
2146 | * dired.c (file_name_completion): Don't return t if the match is exact |
2147 | but with different capitalization. | |
2148 | * minibuf.c (Ftry_completion): Simplify. | |
2149 | ||
a1562258 SM |
2150 | * window.c (Vwindow_point_insertion_type): New var. |
2151 | (set_window_buffer): Use it. | |
2152 | (syms_of_window): Init and export it to Lisp. | |
2153 | ||
9552dbd1 KH |
2154 | 2008-06-10 Kenichi Handa <handa@m17n.org> |
2155 | ||
2156 | * font.h (font_intern_prop): Prototype adjusted. | |
2157 | ||
2158 | * font.c (font_intern_prop): New arg force_symbol. | |
a1562258 SM |
2159 | (font_parse_xlfd, font_parse_fcname, font_parse_family_registry): |
2160 | Adjust for the change of font_intern_prop. | |
9552dbd1 | 2161 | |
a1562258 SM |
2162 | * ftfont.c (ftfont_pattern_entity): |
2163 | * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity) | |
2164 | (w32_registry): | |
2165 | * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for | |
9552dbd1 KH |
2166 | the change of font_intern_prop. |
2167 | ||
8993ad2e JB |
2168 | 2008-06-09 Juanma Barranquero <lekktu@gmail.com> |
2169 | ||
2170 | * w32menu.c (digest_single_submenu): Declare extern. | |
2171 | ||
0c2258fc JR |
2172 | 2008-06-09 Jason Rumney <jasonr@gnu.org> |
2173 | ||
a1562258 | 2174 | * w32term.c (x_make_frame_visible): Use alternate restore flags. |
12f71857 | 2175 | |
a1562258 SM |
2176 | * w32menu.c (Fx_popup_menu): Unwind protect while building menu. |
2177 | (parse_single_submenu): Remove. | |
2178 | (digest_single_submenu): Remove. | |
2179 | (syms_of_w32menu): Don't initialise variables that have moved | |
2180 | to menu.c. | |
2181 | (set_frame_menubar): Sync with version in xmenu.c. | |
2182 | (w32_menu_show): Sync with xmenu_show in xmenu.c. | |
593c843c | 2183 | |
8993ad2e JB |
2184 | * menu.c (single_keymap_panes, push_menu_pane, push_menu_item): |
2185 | Make static again. | |
0c2258fc | 2186 | |
02246cb8 JR |
2187 | 2008-06-09 Jason Rumney <jasonr@gnu.org> |
2188 | ||
8993ad2e JB |
2189 | Changes to w32 files related to the move of common menu code |
2190 | to menu.c on 2008-06-08 by Chong Yidong. | |
2191 | ||
2192 | * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related | |
2193 | defs to w32gui.h. | |
2194 | (single_keymap_panes, push_menu_item, push_menu_pane): | |
2195 | Make globally visible. | |
2196 | ||
d434fef5 JB |
2197 | * w32menu.c (enum button_type, widget_value, local_heap, local_alloc) |
2198 | (local_free, malloc_widget_value, free_widget_value) | |
2199 | (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE) | |
2200 | (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION) | |
2201 | (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP) | |
8993ad2e | 2202 | (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs. |
d434fef5 | 2203 | (menu_items, menu_items_allocated, menu_items_used) |
8993ad2e JB |
2204 | (menu_items_n_panes, menu_items_submenu_depth): Remove global vars. |
2205 | (init_menu_items, finish_menu_items, discard_menu_items) | |
2206 | (grow_menu_items, push_submenu_start, push_submenu_end) | |
2207 | (push_left_right_boundary, push_menu_pane, push_menu_item) | |
2208 | (keymap_panes, single_keymap_panes, list_of_panes, list_of_items) | |
d434fef5 | 2209 | (free_menubar_widget_tree_value, parse_single_submenu) |
8993ad2e JB |
2210 | (update_submenu_strings): Remove functions. |
2211 | (xmalloc_widget_value): Remove and declare extern. | |
2212 | ||
2213 | * makefile.w32-in ($(SRC)/menu.$(O)): New target. | |
2214 | (OBJ1): Build it. | |
2215 | ||
2216 | * w32gui.h (widget_value, XtPointer, Boolean, enum button_type) | |
2217 | (local_heap, local_alloc, local_free, malloc_widget_value) | |
2218 | (free_widget_value): Define here. | |
02246cb8 | 2219 | |
9e1bb909 KH |
2220 | 2008-06-09 Kenichi Handa <handa@m17n.org> |
2221 | ||
366664ad KH |
2222 | * font.h (Qascii_0): Extern it. |
2223 | ||
9e1bb909 KH |
2224 | * font.c (Qascii_0): New variable. |
2225 | (syms_of_font): DEFSYM it. | |
2226 | (font_open_by_name): If the registry "iso8859-1" fails, try also | |
2227 | "ascii-0". | |
2228 | ||
2229 | * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'. | |
2230 | ||
b2ee479e KH |
2231 | 2008-06-08 Kenichi Handa <handa@m17n.org> |
2232 | ||
8f440b79 | 2233 | * .gdbinit (xfont): New command. |
b2ee479e | 2234 | |
01ef9d36 AS |
2235 | 2008-06-08 Andreas Schwab <schwab@suse.de> |
2236 | ||
a4240420 AS |
2237 | * menu.c [HAVE_X_WINDOWS]: Include "xterm.h". |
2238 | * Makefile.in (menu.o): Update dependencies. | |
2239 | ||
0181bf66 | 2240 | * Makefile.in (obj): Always add menu.o. |
01ef9d36 AS |
2241 | * emacs.c (main): Always call syms_of_menu. |
2242 | * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW. | |
2243 | ||
c07cbae6 CY |
2244 | 2008-06-08 Chong Yidong <cyd@stupidchicken.com> |
2245 | ||
2246 | * Makefile.in: Compile menu.c. | |
2247 | ||
2248 | * lisp.h: Declare syms_of_menu. | |
2249 | ||
2250 | * emacs.c (main): Call syms_of_menu. | |
2251 | ||
2252 | * keyboard.h: Relocate platform-independent menu definitions from | |
2253 | xmenu.c. | |
2254 | ||
2255 | * menu.c: New file. Relocate platform-independent menu | |
904d8c69 | 2256 | definitions from xmenu.c. Suggested by Adrian Robert. |
c07cbae6 CY |
2257 | |
2258 | * xmenu.c: Remove platform-independent menu definitions. | |
2259 | (menu_items menu_items_inuse, menu_items_allocated) | |
2260 | (menu_items_used, menu_items_n_panes) | |
2261 | (menu_items_submenu_depth): Move to keyboard.h. | |
2262 | (init_menu_items, finish_menu_items, unuse_menu_items) | |
2263 | (discard_menu_items, restore_menu_items, save_menu_items) | |
2264 | (grow_menu_items, push_submenu_start, push_submenu_end) | |
2265 | (push_left_right_boundary, push_menu_pane, push_menu_item) | |
2266 | (keymap_panes, single_keymap_panes, single_menu_item) | |
2267 | (list_of_panes, list_of_items, find_and_call_menu_selection) | |
2268 | (xmalloc_widget_value, free_menubar_widget_value_tree) | |
2269 | (parse_single_submenu, digest_single_submenu) | |
2270 | (update_submenu_strings): Move to menu.c. | |
2271 | ||
4958ed94 SM |
2272 | 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca> |
2273 | ||
2274 | * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case. | |
2275 | ||
408b8ab4 MB |
2276 | 2008-06-06 Miles Bader <miles@gnu.org> |
2277 | ||
2278 | * xdisp.c (x_produce_glyphs): Calculate tab width based on current | |
2279 | face, not frame default. | |
2280 | ||
87478b52 SM |
2281 | 2008-06-05 Martin Rudalics <rudalics@gmx.at> |
2282 | ||
2283 | * window.c (pop_up_windows, pop_up_frames) | |
2284 | (display_buffer_reuse_frames, Vpop_up_frame_function) | |
2285 | (Vdisplay_buffer_function, Veven_window_heights) | |
2286 | (Vspecial_display_buffer_names, Vspecial_display_regexps) | |
2287 | (Vspecial_display_function, Vsame_window_buffer_names) | |
2288 | (Vsame_window_regexps, split_height_threshold) | |
2289 | (Vsplit_window_preferred_function): Move those vars to window.el. | |
2290 | (display_buffer_1, Fspecial_display_p, Fsame_window_p) | |
2291 | (Fdisplay_buffer): Move those functions to window.el. | |
2292 | (syms_of_window): Remove corresponding declarations. | |
2293 | (display_buffer): New function. | |
2294 | (temp_output_buffer_show, Fother_window_for_scrolling): Use it. | |
2295 | * dispnew.c (Flast_nonminibuf_frame): New function. | |
2296 | * buffer.c (Fpop_to_buffer): Move to window.el. | |
2297 | ||
9e0e0d77 SM |
2298 | 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> |
2299 | ||
2300 | * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p. | |
2301 | ||
4a485df8 KH |
2302 | 2008-06-05 Kenichi Handa <handa@m17n.org> |
2303 | ||
2304 | * coding.c (detect_coding): Fix previous change. | |
2305 | (detect_coding_system): Likewise. | |
2306 | ||
8ba31f36 SM |
2307 | 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> |
2308 | ||
c0dc8f64 SM |
2309 | * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte. |
2310 | ||
8ba31f36 SM |
2311 | * keymap.c (Vminibuffer_local_filename_must_match_map): |
2312 | Rename from Vminibuffer_local_must_match_filename_map. | |
2313 | (syms_of_keymap): | |
2314 | * minibuf.c (Fcompleting_read): Adjust accordingly. | |
2315 | * commands.h: Rename declaration as well. | |
2316 | ||
7740d2c7 KH |
2317 | 2008-06-05 Kenichi Handa <handa@m17n.org> |
2318 | ||
e7438ece KH |
2319 | * font.c (Ffont_spec): Don't use font_parse_family_registry for |
2320 | family name. | |
2321 | (Ffont_put): Likewise. | |
2322 | ||
2323 | * fontset.c (fontset_find_font): Call font_open_for_lface with the | |
2324 | current font-spec. | |
2325 | ||
7740d2c7 KH |
2326 | * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it |
2327 | is unspecified. | |
2328 | ||
2329 | * xfaces.c (realize_x_face): If the font-related face attributes | |
e7438ece KH |
2330 | are the same as those of default face, realize a new fontset from |
2331 | default->fontset. | |
9e0e0d77 | 2332 | (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put. |
7740d2c7 | 2333 | |
c876b227 SM |
2334 | 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> |
2335 | ||
2336 | * xdisp.c (move_it_in_display_line_to): Improve the type of its args. | |
2337 | (move_it_in_display_line): New wrapper. | |
2338 | ||
2339 | * window.c (window_scroll_pixel_based_preserve_x) | |
2340 | (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars. | |
2341 | (window_scroll_pixel_based, window_scroll_line_based): | |
2342 | Use them to preserve column positions. | |
2343 | (syms_of_window): Initialize them. | |
2344 | ||
2345 | * indent.c (Fvertical_motion): Extend first arg to allow passing an | |
2346 | (HPOS . VPOS) pair. | |
2347 | ||
2348 | * dispextern.h (move_it_in_display_line): Declare. | |
2349 | ||
927abf37 JB |
2350 | 2008-06-05 Juanma Barranquero <lekktu@gmail.com> |
2351 | ||
2352 | * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE). | |
2353 | (Fwindow_parameters): Return copy of parameter alist. Doc fix. | |
2354 | (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix. | |
2355 | ||
9d14503e JB |
2356 | 2008-06-04 Juanma Barranquero <lekktu@gmail.com> |
2357 | ||
2358 | * window.c (Fset_window_parameter): Doc fix. | |
2359 | (Fwindow_parameters, Fwindow_parameter): Remove redundant check. | |
2360 | ||
e6841c3b JB |
2361 | 2008-06-04 Joakim Verona <joakim@verona.se> |
2362 | ||
2363 | * window.h (struct window): Add new member window_parameters. | |
2364 | ||
2365 | * window.c (Fwindow_parameters, Fwindow_parameter) | |
2366 | (Fset_window_parameter): New defuns. | |
2367 | (syms_of_window): Defsubr the new defuns. | |
2368 | (make_window): Initialize window_parameters to nil. | |
2369 | ||
4ba50634 JPW |
2370 | 2008-06-04 John Paul Wallington <jpw@pobox.com> |
2371 | ||
2372 | * eval.c (Fdefmacro): Doc fix. | |
2373 | ||
c0e16b14 KH |
2374 | 2008-06-04 Kenichi Handa <handa@m17n.org> |
2375 | ||
2376 | * coding.c (detect_coding): Fix handling of coding->head_ascii. | |
9e0e0d77 | 2377 | Be sure to call setup_coding_system when we find a proper coding system. |
c0e16b14 KH |
2378 | (detect_coding_system): Fix handling of coding->head_ascii. |
2379 | ||
0615d903 AS |
2380 | 2008-06-03 Andreas Schwab <schwab@suse.de> |
2381 | ||
2382 | * font.c (font_prop_validate_spacing): Fix last change. | |
2383 | ||
8a1816bb KH |
2384 | 2008-06-03 Kenichi Handa <handa@m17n.org> |
2385 | ||
eea9c5c4 KH |
2386 | * font.c (font_prop_validate_spacing): Handle uppercase symbols. |
2387 | (font_parse_fcname): Fix handling of unknown key. | |
2388 | ||
2389 | * xfont.c (xfont_list): Try an alias. | |
2390 | ||
8a1816bb KH |
2391 | * charset.c (char_charset): Return NULL if the arg charset_list is |
2392 | specified and C doesn't belong to any of them. | |
2393 | ||
2f593f4c | 2394 | 2008-06-02 Chip Coldwell <coldwell@redhat.com> |
6c5e8775 CY |
2395 | |
2396 | * font.c (font_pixel_size): Don't take cdr of an integer. | |
2397 | ||
c2cd06e6 JM |
2398 | 2008-06-02 Jim Meyering <meyering@redhat.com> |
2399 | ||
70fdbb46 JM |
2400 | Make "xfree (NULL)" a no-op; remove useless if-before-xfree. |
2401 | * alloc.c (xfree): Return right away for a NULL arg. | |
2402 | * lread.c (nosuffix): Remove now-useless if-before-xfree tests. | |
2403 | * gtkutil.c (xg_gtk_scroll_destroy): Likewise. | |
2404 | * mac.c (create_apple_event_from_event_ref): Likewise. | |
2f593f4c JB |
2405 | (create_apple_event_from_drag_ref, cfstring_create_normalized): |
2406 | Likewise. | |
70fdbb46 JM |
2407 | * doprnt.c (doprnt1): Likewise. |
2408 | * frame.c (frame): Likewise. | |
2409 | * keyboard.c (wipe_kboard): Likewise. | |
1f204af3 | 2410 | * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap) |
70fdbb46 JM |
2411 | (init_font_name_table, mac_unload_font, x_delete_display): Likewise. |
2412 | * term.c (tty_default_color_capabilities, maybe_fatal) | |
2413 | (delete_tty): Likewise. | |
2414 | * w16select.c (string): Likewise. | |
2415 | * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. | |
2416 | * w32bdf.c (w32_free_bdf_font): Likewise. | |
2417 | * w32fns.c (w32_unload_font): Likewise. | |
2418 | * w32font.c (w32font_close): Likewise. | |
2419 | * window.c (size_window): Likewise. | |
2420 | * xselect.c (receive_incremental_selection): Likewise. | |
2421 | * xterm.c (x_free_frame_resources, x_delete_display): Likewise. | |
2422 | * mactoolbox.c (create_apple_event_from_drag_ref): Likewise. | |
2423 | * w32.c (stat): Likewise. | |
2424 | ||
2f593f4c | 2425 | Remove useless if-before-free tests. |
70fdbb46 JM |
2426 | * editfns.c (Fset_time_zone_rule): Likewise. |
2427 | * lread.c (nosuffix): Likewise. | |
2428 | * ralloc.c (get_bloc): Likewise. | |
2429 | * regex.c (reg_free): Likewise. | |
2430 | * xftfont.c (xftfont_open, xftfont_close): Likewise. | |
2431 | * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise. | |
2432 | * xsmfns.c (smc_save_yourself_CB): Likewise. | |
c2cd06e6 | 2433 | |
4fc1984a KH |
2434 | 2008-06-02 Kenichi Handa <handa@m17n.org> |
2435 | ||
1d1e1245 KH |
2436 | * font.c (font_find_for_lface): Handle float font size. |
2437 | (font_open_for_lface): Likewise. | |
2438 | ||
4fc1984a KH |
2439 | * xfaces.c (x_supports_face_attributes_p): Check face->font before |
2440 | comparing the properties. | |
2441 | ||
aee986fd JR |
2442 | 2008-06-01 Jason Rumney <jasonr@gnu.org> |
2443 | ||
e6841c3b JB |
2444 | * w32font.c (w32_enumfont_pattern_entity): Use requested registry. |
2445 | Treat iso10646-1 and Windows DEFAULT_CHARSET specially. | |
2446 | Duplicate iso8859-1 fonts as iso10646-1 if no registry specified. | |
2447 | Don't add empty script list. | |
2448 | (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here. | |
aee986fd | 2449 | |
60a3d7ee DN |
2450 | 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu> |
2451 | ||
aee986fd | 2452 | * Makefile.in (dot, dotdot): Remove, update users. |
60a3d7ee DN |
2453 | ".." has been used elsewhere in the file for a long time. |
2454 | (LIBXT_STATIC): Remove conditional based on unused variable. | |
2455 | ||
f2cec7a9 MB |
2456 | 2008-06-01 Miles Bader <miles@gnu.org> |
2457 | ||
2458 | * xfaces.c (Vface_remapping_alist): New variable. | |
2459 | (syms_of_xfaces): Initialize it. | |
2460 | (enum named_merge_point_kind): New type. | |
2461 | (struct named_merge_point): Add `named_merge_point_kind' field. | |
2462 | (push_named_merge_point): Make cycle detection respect different | |
2463 | named-merge-point kinds. | |
c876b227 | 2464 | (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'. |
f2cec7a9 MB |
2465 | Remove face-name alias resolution. |
2466 | (lface_from_face_name): New definition using | |
2467 | `lface_from_face_name_no_resolve'. | |
c876b227 | 2468 | (get_lface_attributes_no_remap): Rename from `get_lface_attributes'. |
f2cec7a9 MB |
2469 | Call lface_from_face_name_no_resolve instead of lface_from_face_name. |
2470 | (get_lface_attributes): New definition that layers face-remapping on | |
2471 | top of get_lface_attributes_no_remap. New arg `named_merge_points'. | |
2472 | (lookup_basic_face): New function. | |
2473 | (lookup_derived_face): Pass new last arg to `get_lface_attributes'. | |
2474 | (realize_named_face): Call `get_lface_attributes_no_remap' instead of | |
2475 | `get_lface_attributes'. | |
2476 | (face_at_buffer_position): Use `lookup_basic_face' to lookup | |
2477 | DEFAULT_FACE_ID if necessary. When optimizing the default-face case, | |
2478 | return default_face's face-id instead of the constant DEFAULT_FACE_ID. | |
2479 | ||
2480 | * xdisp.c (init_iterator): Pass base_face_id through | |
2481 | `lookup_basic_face' when we actually use it as a face-id. | |
2482 | (handle_single_display_prop): Use `lookup_basic_face' to lookup | |
2483 | DEFAULT_FACE_ID. | |
2484 | ||
2485 | * fontset.c (Finternal_char_font): Use `lookup_basic_face' to | |
2486 | lookup the initial face-id. | |
2487 | ||
2488 | * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls. | |
2489 | ||
518c0b83 JB |
2490 | 2008-06-01 Juanma Barranquero <lekktu@gmail.com> |
2491 | ||
2492 | * textprop.c (syms_of_textprop) <text-property-default-nonsticky>: | |
2493 | (Fremove_text_properties): Fix typos in docstrings. | |
2494 | ||
719b3d63 KH |
2495 | 2008-05-31 Kenichi Handa <handa@m17n.org> |
2496 | ||
e4c93315 KH |
2497 | * font.c (font_list_entities): Fix the car part of data to be |
2498 | stored in the cache. | |
2499 | ||
719b3d63 KH |
2500 | * ftfont.c (ftfont_font_format): Don't use strcasestr. |
2501 | ||
d0827857 SM |
2502 | 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> |
2503 | ||
2504 | * chartab.c (Foptimize_char_table, optimize_sub_char_table): | |
2505 | Add a `test' argument so another predicate than `equal' can be used. | |
2506 | (map_sub_char_table): Use `eq' rather than `equal' to merge ranges. | |
2507 | (map_char_table): Remove unused vars `c' and `i'. | |
2508 | * lisp.h (Foptimize_char_table): Adjust declaration. | |
2509 | * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table. | |
2510 | ||
a266686a KH |
2511 | 2008-05-30 Kenichi Handa <handa@m17n.org> |
2512 | ||
d0827857 | 2513 | * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined. |
a266686a KH |
2514 | (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is |
2515 | defined. | |
2516 | ||
fd9440c5 SM |
2517 | 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> |
2518 | ||
2519 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable) | |
2520 | (Fmake_variable_frame_local): Disallow mixing buffer-local and | |
2521 | frame-local settings for the same variable. | |
2522 | ||
fd2ae9b2 KH |
2523 | 2008-05-30 Kenichi Handa <handa@m17n.org> |
2524 | ||
9e0e0d77 | 2525 | * fontset.c (Ffont_info): Move to font.c. |
fd2ae9b2 KH |
2526 | (syms_of_fontset): Delete defsubr of Sfont_info. |
2527 | ||
2528 | * font.c (font_style_to_value, font_score): Delete casting of the | |
2529 | args to xstcasecmp. | |
2530 | (register_font_driver): Increment num_font_drivers only when | |
2531 | registering the driver globally. | |
9e0e0d77 | 2532 | (Ffont_info): Move from fontset.c. Handle a font object too. |
fd2ae9b2 KH |
2533 | (syms_of_font): Defsubr Sfont_info. |
2534 | ||
eaf11618 KH |
2535 | 2008-05-29 Kenichi Handa <handa@m17n.org> |
2536 | ||
2537 | * coding.h (enum define_coding_utf8_arg_index): New enum. | |
2538 | (enum coding_attr_index): Change coding_attr_utf_16_bom to | |
2539 | coding_attr_utf_bom. | |
fd9440c5 SM |
2540 | (enum utf_bom_type): Rename from utf_16_bom_type. |
2541 | (struct utf_16_spec): Adjust for the above change. | |
eaf11618 KH |
2542 | (struct coding_system): Add utf_8_bom in `spec' union. |
2543 | ||
2544 | * coding.c (CODING_UTF_8_BOM): New macro. | |
2545 | (enum coding_category): Delete coding_category_utf_8, add | |
2546 | coding_category_utf_8_auto, coding_category_utf_8_nosig, and | |
2547 | coding_category_utf_8_sig. | |
2548 | (CATEGORY_MASK_UTF_8): Delete it. | |
2549 | (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG) | |
2550 | (CATEGORY_MASK_UTF_8_SIG): New macros. | |
2551 | (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add | |
2552 | CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and | |
2553 | CATEGORY_MASK_UTF_8_SIG. | |
2554 | (CATEGORY_MASK_UTF_8): New macro. | |
2555 | (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros. | |
2556 | (detect_coding_utf_8): Check BOM. | |
2557 | (decode_coding_utf_8, encode_coding_utf_8): Handle BOM. | |
fd9440c5 | 2558 | (decode_coding_utf_16): Adjust for the change of enum utf_bom_type. |
eaf11618 KH |
2559 | (encode_coding_utf_16): Likewise. |
2560 | (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding). | |
2561 | (detect_coding, detect_coding_system): Handle utf-8-auto. | |
2562 | (Fdefine_coding_system_internal): Handle `bom' property for utf-8. | |
2563 | (syms_of_coding): Fix setting up of Vcoding_category_table. | |
2564 | ||
891bd142 SM |
2565 | 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca> |
2566 | ||
2567 | * process.c (Faccept_process_output): If `millisec' is non-nil, | |
2568 | `seconds' default to 0. | |
2569 | (wait_reading_process_output): Also return non-nil if we read output | |
2570 | from a non-running process. | |
2571 | ||
1519d52e JR |
2572 | 2008-05-29 Jason Rumney <jasonr@gnu.org> |
2573 | ||
fd9440c5 SM |
2574 | * w32font.c (w32font_open_internal): Prefer truetype fonts unless |
2575 | `raster' specified. | |
2576 | (add_font_entity_to_list): Allow non-opentype truetype fonts back | |
2577 | in the uniscribe backend, but disallow any font that has no | |
2578 | unicode subrange support. | |
1519d52e | 2579 | |
d5ab09cd JB |
2580 | 2008-05-29 Juanma Barranquero <lekktu@gmail.com> |
2581 | ||
2582 | * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face): | |
2583 | Fix typos in docstrings. | |
2584 | ||
a4eec626 KH |
2585 | 2008-05-29 Kenichi Handa <handa@m17n.org> |
2586 | ||
2587 | * xfaces.c (Fx_list_fonts): Make it return a list of font names. | |
e887f2ac | 2588 | (Fx_family_fonts): Set frame correctly. |
a4eec626 | 2589 | |
a6e0b7e5 JR |
2590 | 2008-05-28 Jason Rumney <jasonr@gnu.org> |
2591 | ||
d5ab09cd | 2592 | * w32term.c (x_draw_glyph_string): Use clipmask if specified. |
a6e0b7e5 | 2593 | |
6b3d752c SM |
2594 | 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca> |
2595 | ||
2596 | * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after | |
2597 | calling build_annotations. | |
2598 | ||
c3f9fba8 JB |
2599 | 2008-05-28 Juanma Barranquero <lekktu@gmail.com> |
2600 | ||
2601 | * coding.c (Fdecode_coding_region, Fencode_coding_region) | |
2602 | (Fencode_coding_string): | |
2603 | (syms_of_coding) <coding-system-for-read, coding-system-for-write>: | |
2604 | <latin-extra-code-table>: Fix typos in docstrings. | |
2605 | (syms_of_coding) <coding-system-alist>: Doc fix. | |
2606 | (syms_of_coding) <translation-table-for-input>: Reflow docstring. | |
2607 | ||
00c670e1 KH |
2608 | 2008-05-28 Kenichi Handa <handa@m17n.org> |
2609 | ||
b75d7f28 KH |
2610 | * fontset.c (Ffont_info): Don't call font_close_object. |
2611 | ||
2612 | * font.c (font_parse_family_registry): Use Ffont_put to validate | |
2613 | foundry and family. | |
2614 | (font_delete_unmatched): Don't check spacing. | |
2615 | (font_list_entities): Add spacing to the spec to list fonts. | |
2616 | ||
2617 | * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern. | |
d5ab09cd | 2618 | (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset. |
b75d7f28 | 2619 | |
00c670e1 KH |
2620 | * coding.c (encode_coding_raw_text): Fix previous change. |
2621 | (encode_coding_object): When the dst_object is a buffer and is | |
2622 | different from src_object, move gap to PT. | |
2623 | ||
45feca91 CY |
2624 | 2008-05-27 Chong Yidong <cyd@stupidchicken.com> |
2625 | ||
c3f9fba8 | 2626 | * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it. |
45feca91 | 2627 | |
5dd5d9eb SM |
2628 | 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> |
2629 | ||
01d45367 SM |
2630 | * coding.c (encode_coding_raw_text): Set coding->produced_char for |
2631 | all branches. Compute it differently. | |
2632 | ||
5dd5d9eb SM |
2633 | * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x. |
2634 | ||
9c623c85 JB |
2635 | 2008-05-27 Juanma Barranquero <lekktu@gmail.com> |
2636 | ||
2637 | * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }" | |
2638 | into "else if () ... else ...". | |
2639 | ||
943f2093 JR |
2640 | 2008-05-27 Jason Rumney <jasonr@gnu.org> |
2641 | ||
5dd5d9eb SM |
2642 | * w32font.c (w32font_open_internal): Determine if glyph indices |
2643 | are likely to work here. | |
943f2093 | 2644 | |
7385fe74 CY |
2645 | 2008-05-27 Chong Yidong <cyd@stupidchicken.com> |
2646 | ||
2647 | * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to | |
2648 | draw overlap glyphs with appropriate highlighting. | |
2649 | ||
4f64a164 KH |
2650 | 2008-05-27 Kenichi Handa <handa@m17n.org> |
2651 | ||
2652 | * xfont.c (xfont_open): Fix calculation of font->average_width. | |
2653 | ||
1fb5aad7 SM |
2654 | 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca> |
2655 | ||
2656 | * casefiddle.c (casify_object): Try to guess better whether the | |
2657 | argument is a byte or a char. | |
2658 | ||
f8eb1603 AS |
2659 | 2008-05-26 Andreas Schwab <schwab@suse.de> |
2660 | ||
1fb5aad7 SM |
2661 | * xselect.c (x_reply_selection_request): Properly handle format == 32. |
2662 | Always send multiples of format size. | |
5a9c35e5 | 2663 | |
f8eb1603 AS |
2664 | * xterm.c (x_set_frame_alpha): Fix type mismatch. |
2665 | ||
ba93d684 JR |
2666 | 2008-05-26 Jason Rumney <jasonr@gnu.org> |
2667 | ||
1fb5aad7 SM |
2668 | * w32font.c (w32font_text_extents): Zero whole metrics struct first. |
2669 | (compute_metrics): Don't set failure if we just cleared the cache. | |
2670 | (w32_weight_table): Remove unused variable. | |
2671 | (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for | |
2672 | backwards compatibility. | |
ba93d684 | 2673 | |
505ecc49 KH |
2674 | 2008-05-25 Kenichi Handa <handa@m17n.org> |
2675 | ||
1fb5aad7 SM |
2676 | * w32term.c (x_draw_glyph_string): |
2677 | * xterm.c (x_draw_glyph_string): Fix calculation of underline position. | |
505ecc49 KH |
2678 | |
2679 | * xfaces.c: Delete unused function prototypes. | |
2680 | (xstrlwr, font_frame): Delete them. | |
2681 | (clear_face_cache): Delete unused variable. | |
2682 | ||
1fb5aad7 SM |
2683 | * xftfont.c (xftfont_open): Delete unused variable. |
2684 | If underline_thickness is not 1, adjust underline_position. | |
505ecc49 KH |
2685 | |
2686 | * ftxfont.c (ftxfont_open): Delete unused variable. | |
2687 | ||
2688 | * fontset.c (face_for_char): Optimize for the case of no charset | |
2689 | property. | |
2690 | ||
2691 | * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE) | |
2692 | (check_gstring, check_otf_features, otf_list, otf_tag_symbol) | |
2693 | (otf_open, font_otf_capability, generate_otf_features) | |
2694 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): | |
1fb5aad7 | 2695 | Comment out by surrounding "#if 0" and "#endif" for the moment. |
505ecc49 KH |
2696 | (Ffont_drive_otf, Ffont_otf_alternates): Likewise. |
2697 | (syms_of_font): Codes for accessing above commented out. | |
2698 | ||
f481eb31 EZ |
2699 | 2008-05-24 Eli Zaretskii <eliz@gnu.org> |
2700 | ||
2701 | * w32proc.c: Include dispextern.h. | |
2702 | ||
2703 | * w32.c: Include dispextern.h. | |
2704 | ||
20746fe4 JB |
2705 | 2008-05-23 Juanma Barranquero <lekktu@gmail.com> |
2706 | ||
2707 | * charset.c (Fencode_char, Fsplit_char): Doc fixes. | |
2708 | (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset): | |
2709 | Fix typos in docstrings. | |
2710 | ||
e7150846 JR |
2711 | 2008-05-23 Jason Rumney <jasonr@gnu.org> |
2712 | ||
20746fe4 | 2713 | * xsmfns.c: Remove includes that are already included by config.h. |
e7150846 | 2714 | |
dbf46ba6 KH |
2715 | 2008-05-23 Kenichi Handa <handa@m17n.org> |
2716 | ||
6c652beb KH |
2717 | * charset.c (Qemacs, charset_emacs): New variables. |
2718 | (char_charset): Fix for non-Unicode characters. | |
2719 | (syms_of_charset): Define charset_emacs. | |
2720 | ||
baf4d3b3 | 2721 | * w32term.c (x_draw_glyph_string): Be sure to update |
328fab2a KH |
2722 | s->underline_thickness and s->underline_position. Be sure to draw |
2723 | underline within the current line area. | |
baf4d3b3 KH |
2724 | |
2725 | * xterm.c (x_draw_glyph_string): Be sure to update | |
328fab2a | 2726 | s->underline_thickness and s->underline_position. Be sure to draw |
90dc78a3 | 2727 | underline within the current line area. |
baf4d3b3 | 2728 | |
dbf46ba6 KH |
2729 | * fontset.c: Delete unused variables and add casting for char * |
2730 | throughout the file. | |
2731 | (fontset_font): Try the fallback fonts of the current fontset | |
2732 | before consulting the default fontset. | |
2733 | ||
2734 | * ftfont.c (ftfont_spec_pattern): Free charset if necessary. | |
2735 | ||
9e0e0d77 | 2736 | * xfont.c (xfont_list_pattern): Free names returned from XListFonts. |
dbf46ba6 | 2737 | |
3b780338 JR |
2738 | 2008-05-22 Jason Rumney <jasonr@gnu.org> |
2739 | ||
20746fe4 | 2740 | * font.c: Don't include strings.h. |
577eba22 | 2741 | |
9e0e0d77 | 2742 | * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp. |
05131107 | 2743 | |
20746fe4 JB |
2744 | * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: |
2745 | * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: | |
b1722a46 EZ |
2746 | * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed |
2747 | to call xstrcasecmp. | |
05131107 | 2748 | |
b1722a46 | 2749 | * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp. |
3b780338 | 2750 | |
b1722a46 | 2751 | * fontset.c (fs_query_fontset): Use xstrcasecmp. |
3b780338 | 2752 | |
b1722a46 | 2753 | * font.c (font_style_to_value, font_score): Use xstrcasecmp. |
3b780338 | 2754 | |
b1722a46 | 2755 | * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp. |
3b780338 | 2756 | |
a30e1957 KH |
2757 | 2008-05-22 Kenichi Handa <handa@m17n.org> |
2758 | ||
20746fe4 | 2759 | * puresize.h (BASE_PURESIZE): Increase to 1220000. |
955b979c | 2760 | |
20746fe4 | 2761 | * font.c (font_prop_validate_style): Adjust for the format |
64b900e3 KH |
2762 | change of font_style_table. |
2763 | ||
a30e1957 KH |
2764 | * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with |
2765 | two args. | |
2766 | ||
2767 | * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with | |
2768 | two args. | |
2769 | ||
631248e5 SM |
2770 | 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca> |
2771 | ||
2772 | * minibuf.c (keys_of_minibuf): Delete. | |
2773 | * lisp.h (keys_of_minibuf): Delete. | |
2774 | * emacs.c (main): Don't call keys_of_minibuf. | |
2775 | ||
318548be KH |
2776 | 2008-05-22 Kenichi Handa <handa@m17n.org> |
2777 | ||
631248e5 | 2778 | * ftfont.c (ftfont_resolve_generic_family): Rename from |
318548be KH |
2779 | ftfont_list_generic_family. Return a single family for each |
2780 | generic family. | |
2781 | (ftfont_spec_pattern): Add FC_FAMILY to pattern. | |
20746fe4 JB |
2782 | (ftfont_list): Adjust for the change of ftfont_resolve_generic_family. |
2783 | Call font_add_log. | |
318548be KH |
2784 | (ftfont_match): Call font_add_log. |
2785 | ||
2786 | * font.h (Ffont_xlfd_name): EXFUN adjusted. | |
2787 | (FONT_DEBUG): Define it. | |
2788 | (font_add_log): Extern it. | |
631248e5 | 2789 | (font_assert): Rename from xassert. |
318548be KH |
2790 | |
2791 | * xfont.c (xfont_get_pcm): Change xassert to font_assert. | |
2792 | (xfont_list_family): Call font_add_log. | |
2793 | (xfont_match): Likewise. | |
631248e5 | 2794 | (memq_no_quit): Delete. |
318548be KH |
2795 | |
2796 | * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in | |
2797 | call of Ffont_xlfd_name. | |
2798 | ||
2799 | * xfaces.c (struct table_entry, slant_table, weight_table) | |
631248e5 | 2800 | (swidth_table): Move to font.c. |
318548be KH |
2801 | |
2802 | * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of | |
631248e5 | 2803 | xassert are changed to font_assert. Delete many unused variables. |
20746fe4 JB |
2804 | (Vfont_weight_table, Vfont_slant_table, Vfont_width_table): |
2805 | New variables. | |
631248e5 SM |
2806 | (struct table_entry): Move from xfaces.c and modified. |
2807 | (weight_table, slant_table, width_table): Move from xfaces.c and | |
318548be | 2808 | contents adjusted for the change of struct table_entry. |
20746fe4 | 2809 | (font_style_to_value, font_style_symbolic): Adjust for the |
64b900e3 | 2810 | format change of font_style_table. |
318548be KH |
2811 | (font_parse_family_registry): Don't overwrite existing foundry and |
2812 | family of font_spec. | |
2813 | (font_score): Fix calculation of diff for sizes. | |
2814 | (font_sort_entites): Call font_add_log. | |
2815 | (font_delete_unmatched): Return a newly created list. | |
2816 | (font_list_entities): Fix previous change. Call font_add_log. | |
20746fe4 JB |
2817 | (font_matching_entity, font_open_entity, font_close_entity): |
2818 | Call font_add_log. | |
318548be | 2819 | (Ffont_xlfd_name): New arg FOLD-WILDCARDS. |
631248e5 | 2820 | (Finternal_set_font_style_table): Delete. |
318548be KH |
2821 | (BUILD_STYLE_TABLE): New macro. |
2822 | (build_style_table): New function. | |
2823 | (Vfont_log, font_log_env_checked): New variables. | |
2824 | (font_add_log): New function. | |
2825 | (syms_of_font): Delete defsubr Sinternal_set_font_style_table. | |
2826 | Declare Lisp variables "font-weight-table", "font-slant-table", | |
2827 | "font-width-table", and "font-log". Initialize font_style_table. | |
2828 | ||
6aac1c03 DN |
2829 | 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu> |
2830 | ||
bcc850aa | 2831 | * xterm.c (x_set_frame_alpha): Move declarations before statements. |
6aac1c03 | 2832 | |
7950790f GM |
2833 | 2008-05-21 Seiji Zenitani <zenitani@mac.com> |
2834 | Ryo Yoshitake <ryo@shiftmode.net> | |
a2979e8e | 2835 | |
7950790f | 2836 | * frame.c (Qalpha): Add a new frame parameter `alpha'. |
bcc850aa | 2837 | (Vframe_alpha_lower_limit): New variable. |
b9fb2c45 | 2838 | (x_set_alpha): New function. |
a2979e8e | 2839 | |
7950790f | 2840 | * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them. |
a2979e8e | 2841 | |
7950790f GM |
2842 | * xfns.c (x-create-frame, Qalpha): |
2843 | Initialize the frame parameter `alpha'. | |
b9fb2c45 GM |
2844 | * xterm.c (OPAQUE, OPACITY): New. |
2845 | (x_set_frame_alpha): New function. | |
2846 | (frame_highlight, frame_unhighlight): Call x_set_frame_alpha. | |
a2979e8e | 2847 | |
7950790f GM |
2848 | * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha. |
2849 | * w32fns.c (w32_frame_parm_handlers): Likewise. | |
a2979e8e | 2850 | |
5c2a72d9 JR |
2851 | 2008-05-20 Jason Rumney <jasonr@gnu.org> |
2852 | ||
20746fe4 JB |
2853 | * w32font.c (add_font_entity_to_list): Don't add non-opentype |
2854 | truetype fonts to opentype list. | |
5c2a72d9 | 2855 | |
eb152aa9 JB |
2856 | 2008-05-20 Juanma Barranquero <lekktu@gmail.com> |
2857 | ||
2858 | * fontset.c (Ffontset_info): Doc fix. | |
2859 | (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>: | |
2860 | <ignore-relative-composition>: Fix typos in docstrings. | |
2861 | ||
2862 | * font.c (syms-of-font) <font-encoding-alist>: | |
2863 | (Ffontp, Ffont_make_gstring): Fix typos in docstrings. | |
2864 | (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font) | |
2865 | (Ffont_otf_alternates): Doc fixes. | |
2866 | ||
ad00e1a3 KH |
2867 | 2008-05-20 Kenichi Handa <handa@m17n.org> |
2868 | ||
2869 | * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to | |
2870 | font.h through out the file. | |
9e0e0d77 | 2871 | (FONT_DRIVERS): Rename from FONTOBJ. |
12855572 | 2872 | (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o. |
ad00e1a3 KH |
2873 | (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS). |
2874 | ||
2875 | * emacs.c (main): Call syms_of_font unconditionally. | |
2876 | ||
2877 | * font.h (find_font_encoding): Extern it. | |
2878 | ||
9e0e0d77 | 2879 | * font.c (Vfont_encoding_alist, find_font_encoding): Move from |
ad00e1a3 KH |
2880 | fontset.c. |
2881 | (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1. | |
2882 | (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts, | |
2883 | FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f) | |
2884 | only when HAVE_WINDOW_SYSTEM is defined. | |
2885 | (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only | |
2886 | when HAVE_WINDOW_SYSTEM is defined. | |
2887 | ||
9e0e0d77 SM |
2888 | * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c. |
2889 | (syms_of_fontset): Move declaration of font-encoding-alist to font.c. | |
ad00e1a3 KH |
2890 | |
2891 | * xfaces.c: Include font.h unconditionally. | |
2892 | (merge_face_ref, merge_face_vectors) | |
2893 | (Finternal_set_lisp_face_attribute): Cancel the previous change. | |
2894 | ||
40a69fac SM |
2895 | 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca> |
2896 | ||
2897 | * xdisp.c (select_frame_for_redisplay): Adjust for last change to | |
2898 | indirect_variable. | |
2899 | * eval.c (lisp_indirect_variable): New fun. | |
2900 | (Fuser_variable_p): Use it. | |
2901 | ||
8c2dccbf SM |
2902 | 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca> |
2903 | ||
ad97b375 SM |
2904 | * lisp.h (indirect_variable): |
2905 | * data.c (indirect_variable, let_shadows_buffer_binding_p): | |
2906 | Use Lisp_Symbol pointers rather than Lisp_Object. | |
2907 | Adjust callers. | |
2908 | * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument. | |
2909 | To this end, change calling-convention. | |
2910 | ||
8c2dccbf SM |
2911 | * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers |
2912 | if some non-hidden buffers are selected by string&pred. | |
2913 | ||
ad97b375 SM |
2914 | 2008-05-19 Chong Yidong <cyd@stupidchicken.com> |
2915 | ||
2916 | * process.c (wait_reading_process_output): Always check status | |
2917 | when in batch mode. | |
2918 | ||
25b81df4 KH |
2919 | 2008-05-19 Kenichi Handa <handa@m17n.org> |
2920 | ||
2921 | * font.c (font_list_entities): Fix handling of cache. | |
2922 | (font_matching_entity): Likewise. | |
2923 | ||
8c2dccbf | 2924 | * ftfont.c (cs_iso8859_1): Delete. |
25b81df4 | 2925 | (ft_face_cache): New variable. |
1f204af3 | 2926 | (struct ftfont_info): New member fc_charset_idx. |
8c2dccbf | 2927 | (ftfont_build_basic_charsets): Delete. |
25b81df4 KH |
2928 | (fc_charset_table): New variable. |
2929 | (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME | |
2930 | . FC_CHARSET_IDX) as :font-entity property in the font entity. | |
2931 | Callers changed. | |
dde8403f | 2932 | (ftfont_lookup_cache, ftfont_get_charset): New functions. |
8c2dccbf SM |
2933 | (ftfont_spec_pattern): New argument fc_charset_idx. |
2934 | Check registry more rigidly. Change callers. | |
a2979e8e | 2935 | (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the |
25b81df4 KH |
2936 | change of :font-entity property of the font. |
2937 | ||
a2979e8e | 2938 | * xftfont.c (xftfont_open): Adjust for the change of :font-entity |
25b81df4 KH |
2939 | property of the font. |
2940 | ||
d4a1d553 JB |
2941 | 2008-05-18 Juanma Barranquero <lekktu@gmail.com> |
2942 | ||
2943 | * coding.c (Fcoding_system_p): Rename argument to match docstring. | |
2944 | (Funencodable_char_position, Fcheck_coding_systems_region) | |
2945 | (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings. | |
2946 | (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region) | |
2947 | (Ffind_operation_coding_system, Fset_coding_system_priority) | |
2948 | (Fcoding_system_eol_type): Doc fixes. | |
2949 | ||
07cfc4e7 GM |
2950 | 2008-05-17 Glenn Morris <rgm@gnu.org> |
2951 | ||
2952 | * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY. | |
2953 | ||
1cab27d2 EZ |
2954 | 2008-05-16 Eli Zaretskii <eliz@gnu.org> |
2955 | ||
2956 | * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid | |
2957 | and st_gid. | |
2958 | ||
dde8403f | 2959 | * frame.c (Fdelete_frame): Don't call font_update_drivers if |
1cab27d2 EZ |
2960 | HAVE_WINDOW_SYSTEM is not defined. |
2961 | ||
2962 | * xfaces.c (merge_face_ref, merge_face_vectors) | |
2963 | (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when | |
2964 | HAVE_WINDOW_SYSTEM is defined. | |
2965 | (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case. | |
2966 | ||
86b89713 SM |
2967 | 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca> |
2968 | ||
2969 | * keyboard.c (parse_menu_item): Do not cache key shortcut any more. | |
2970 | ||
6750bd93 YM |
2971 | 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
2972 | ||
62867b11 | 2973 | * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'. |
6750bd93 | 2974 | |
79f105c9 KH |
2975 | 2008-05-15 Kenichi Handa <handa@m17n.org> |
2976 | ||
2977 | * font.c (font_find_for_lface): Reflect LFACE_FONT in the font | |
2978 | preference. | |
2979 | ||
6b33da9f GM |
2980 | 2008-05-15 Glenn Morris <rgm@gnu.org> |
2981 | ||
2982 | * emacs.c (USAGE1, standard_args): Remove -disable-font-backend. | |
2983 | ||
d0e4433b CY |
2984 | 2008-05-15 Chong Yidong <cyd@stupidchicken.com> |
2985 | ||
2986 | * fns.c (init_fns): Don't initialize weak_hash_tables here. | |
2987 | (init_weak_hash_tables): New fun. Initialize weak_hash_tables. | |
2988 | ||
2989 | * alloc.c (init_alloc_once): Call init_weak_hash_tables. | |
2990 | ||
5f2d79e0 KH |
2991 | 2008-05-15 Kenichi Handa <handa@m17n.org> |
2992 | ||
fd8a1cae KH |
2993 | * ftfont.c (ftfont_list): Downcase family name to check generic |
2994 | families. | |
2995 | ||
2996 | * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a | |
2997 | font-spec for QCfont value. | |
2998 | ||
5f2d79e0 KH |
2999 | * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte |
3000 | buffer. Check the return value of it. | |
3001 | ||
e5e29349 JR |
3002 | 2008-05-14 Jason Rumney <jasonr@gnu.org> |
3003 | ||
3004 | * w32term.c (w32_get_glyph_overhangs): Remove. | |
3005 | (w32_redisplay_interface): Use x_get_glyph_overhangs instead. | |
3006 | ||
1f09f444 KH |
3007 | 2008-05-14 Kenichi Handa <handa@m17n.org> |
3008 | ||
3009 | * font.c (font_prop_validate): Make nil a valid value. | |
be9442ad KH |
3010 | (font_clear_cache): Check if the cached vector of entities is nil |
3011 | or not. | |
1f09f444 | 3012 | |
ecae6af9 | 3013 | 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
f8240abd YM |
3014 | |
3015 | * emacs.c (main_thread): Conditionalize on | |
3016 | FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. | |
3017 | (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it. | |
3018 | ||
3019 | * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define. | |
3020 | (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on | |
3021 | FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. | |
3022 | ||
c6b278e7 KH |
3023 | 2008-05-14 Kenichi Handa <handa@m17n.org> |
3024 | ||
3025 | * coding.c (detect_coding_iso_2022): Ignore a coding category that | |
3026 | has no corresponding coding system. | |
3027 | ||
3028 | 2008-05-14 Jason Rumney <jasonr@gnu.org> | |
3029 | ||
3030 | * font.h (struct font) [WINDOWSNT]: Remove codepage member. | |
3031 | ||
3032 | * w32font.h (w32font_open_internal): Update declaration. | |
3033 | ||
3034 | * w32font.c (w32font_open_internal): Change last argument from | |
3035 | w32font_info struct to font object. Fill in font object from | |
3036 | font_entity. Get Outline metrics if possible. Use them to | |
3037 | calculate underline position and thickness. Use xlfd name as name | |
3038 | property. Don't set codepage. | |
3039 | (w32font_open): Pass font_object to w32font_open_internal. Don't | |
a879ee6f | 3040 | update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width. |
c6b278e7 KH |
3041 | (w32font_draw): Use s->font. |
3042 | (clear_cached_metrics): Don't clear non-existent blocks. | |
3043 | ||
3044 | * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if | |
3045 | font was not found. | |
a879ee6f | 3046 | (x_draw_glyph_string): Use underline position and thickness from font. |
c6b278e7 KH |
3047 | |
3048 | * w32uniscribe.c (uniscribe_open): Pass font_object to | |
3049 | w32font_open_internal. | |
3050 | ||
3051 | 2008-05-14 Kenichi Handa <handa@m17n.org> | |
3052 | ||
3053 | These changes are to delete all legacy font-handling codes, and | |
3054 | make Emacs use only font-backends. | |
3055 | ||
3056 | * Makefile.in: Delete USE_FONT_BACKEND conditionals. | |
3057 | (frame.o, image.o, print.o): Depend on $(FONTSRC). | |
3058 | ||
3059 | * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O). | |
3060 | ||
3061 | * charset.h (Vcharset_non_preferred_head) | |
3062 | (Vcurrent_iso639_language): Extern them. | |
3063 | ||
3064 | * charset.c (Vcharset_non_preferred_head): New variable. | |
3065 | (Vcurrent_iso639_language): New variable. | |
3066 | (syms_of_charset): Declare it as a Lisp variable. | |
3067 | (char_charset): Don't check non preferred charsets. As a last | |
3068 | resort, return charset_unicode. | |
3069 | (Fset_charset_priority): Update Vcharset_non_preferred_head. | |
3070 | ||
3071 | * composite.c: Throughout the file, delete all USE_FONT_BACKEND | |
3072 | conditionals. Don't check enable_font_backend. Delete all codes | |
3073 | used only when USE_FONT_BACKEND is not defined. | |
3074 | ||
3075 | * dispextern.h (struct glyph_string): Change type of `font' to | |
3076 | `struct font *'. | |
3077 | (struct glyph_string): New member underline_position and | |
3078 | underline_thickness. | |
3079 | (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX. | |
3080 | (struct face): Change type of `font' to `struct font *'. Remove | |
3081 | members `font_name', `font_info_id'. | |
3082 | (per_char_metric, encode_char): Delete externs. | |
3083 | (calc_pixel_width_or_height): Adjust the prototype. | |
3084 | ||
3085 | * emacs.c (enable_font_backend): Delete extern. | |
3086 | (main): Don't set enable_font_backend. Don't check the command | |
3087 | line argument "-disable-font-backend". | |
3088 | ||
3089 | * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them. | |
3090 | (enum font_property_index): New members FONT_DPI_INDEX, | |
3091 | FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX, | |
3092 | FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX, | |
3093 | FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX. | |
3094 | (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC) | |
3095 | (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC) | |
3096 | (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE) | |
3097 | (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC) | |
3098 | (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros. | |
3099 | (struct font_spec, struct font_entity): New structs. | |
3100 | (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h. | |
3101 | (struct font): Many members from old "struct font_info" moved to | |
3102 | here. Members font and entity deleted. | |
3103 | (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for | |
3104 | the new font-related objects. | |
3105 | (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT) | |
3106 | (CHECK_FONT_GET_OBJECT): Likewise. | |
3107 | (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros. | |
3108 | (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h. | |
3109 | (struct font_driver): New members case_sensitive anc check. Type | |
3110 | of the member list and open changed. | |
3111 | (enable_font_backend, font_symbolic_weight, font_symbolic_slant) | |
3112 | (font_symbolic_width, font_find_object, font_get_spec) | |
3113 | (font_set_lface_from_name): Delete extern. | |
20746fe4 | 3114 | (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs. |
c6b278e7 KH |
3115 | |
3116 | * font.c: Include <strings.h>. | |
3117 | (enable_font_backend): Delete it. | |
3118 | (Qfont_spec, Qfont_entity, Qfont_object): New variables. | |
3119 | (CHECK_VALIDATE_FONT_SPEC): Delete it. | |
3120 | (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h. | |
3121 | (null_string): Delete it. | |
3122 | (null_vector): Make it static. | |
3123 | (font_family_alist): Delete it. | |
3124 | (Qnormal): Extern it. | |
3125 | (QCextra, QClanguage): Delete it. | |
1f204af3 | 3126 | (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables. |
c6b278e7 KH |
3127 | (font_make_spec, font_make_entity, font_make_object) |
3128 | (font_intern_prop): Renamed from intern_downcase. Don't downcase | |
3129 | the string. Callers changed. | |
3130 | (font_pixel_size): Adjusted for the format change of font-related | |
3131 | objects. | |
3132 | (prop_name_to_numeric, prop_numeric_to_name): Delete them. | |
3133 | (font_style_to_value, font_style_symbolic): New function. | |
3134 | (build_font_family_alist): Delete it. | |
3135 | (font_registry_charsets): Use Fassoc_string instead of | |
3136 | assq_no_quit. | |
3137 | (font_prop_validate_symbol): Don't return null_string. | |
3138 | (font_prop_validate_style): Adjusted for the change of | |
3139 | style-related values in a font vector. | |
20746fe4 | 3140 | (font_property_table): Delete entries for QClanguage and |
c6b278e7 KH |
3141 | QCantialias, add entries for QCavgwidth. |
3142 | (get_font_prop_index): Delete the 2nd argument FROM. | |
3143 | (font_prop_validate): Arguments changed. | |
3144 | (font_put_extra): Adjusted for the change of font-related objects. | |
3145 | (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd) | |
3146 | (font_parse_fcname, font_unparse_fcname) | |
3147 | (font_prepare_composition): Likewise. | |
3148 | (font_parse_family_registry): Renamed from font_merge_old_spec. | |
3149 | (otf_open): Delete the 1st arg entity. | |
3150 | (font_otf_capability): Adjusted for the above change. | |
3151 | (font_score): New arg alternate_families. Adjusted for the change | |
3152 | of font-related objects. | |
3153 | (font_sort_entites): New arg best_only. | |
3154 | (font_symbolic_weight, font_symbolic_slant, font_symbolic_width): | |
3155 | Delete them. | |
3156 | (font_match_p): Check alternate families. | |
3157 | (font_find_object): Delete it. | |
3158 | (font_check_object): New function. | |
c3f9fba8 | 3159 | (font_clear_cache): Adjusted for the change of font-related objects. |
c6b278e7 KH |
3160 | (font_delete_unmatched): New arg. |
3161 | (font_list_entities): Call font_driver->list with a spec that | |
3162 | doesn't specify style-related properties. | |
3163 | (font_matching_entity): Arguments changed. Caller changed. | |
c3f9fba8 | 3164 | (font_open_entity): Adjusted for the change of font-related objects. |
c6b278e7 KH |
3165 | (font_close_object, font_has_char, font_encode_char) |
3166 | (font_get_name, font_get_spec): Likewise. | |
c3f9fba8 JB |
3167 | (font_spec_from_name, font_clear_prop, font_update_lface): |
3168 | New functions. | |
3169 | (font_find_for_lface, font_open_for_lface, font_load_for_lface) | |
c6b278e7 KH |
3170 | (font_prepare_for_face, font_done_for_face, font_open_by_name) |
3171 | (font_at): Adjusted for the change of font-related objects. | |
3172 | (font_range): New function. | |
3173 | (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts) | |
c3f9fba8 | 3174 | (Ffont_xlfd_name): Adjusted for the change of font-related objects. |
c6b278e7 KH |
3175 | (Fcopy_font_spec, Fmerge_font_spec): New function. |
3176 | (Ffont_family_list): Renamed from list-families. | |
3177 | (Finternal_set_font_style_table): Arguments changed. | |
3178 | (Ffont_fill_gstring, Ffont_shape_text, Fopen_font) | |
3179 | (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the | |
3180 | change of font-related objects. | |
c3f9fba8 | 3181 | (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols. |
c6b278e7 | 3182 | |
3554e566 | 3183 | * fontset.h (struct font_info): Delete it. Most members go to |
c6b278e7 KH |
3184 | struct font. |
3185 | (FONT_ENCODING_NOT_DECIDED): Moved to font.h. | |
3186 | (enum FONT_SPEC_INDEX): Delete it. | |
3187 | (font_info, list_fonts_func, load_font_func, query_font_func) | |
3188 | (set_frame_fontset_func, find_ccl_program_func) | |
3189 | (get_font_repertory_func, new_fontset_from_font_name): Delete | |
3190 | externs. | |
3191 | (fontset_from_font_name): Extern it. | |
3192 | (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID) | |
3193 | (FONT_INFO_FROM_FACE): Deleted. | |
3194 | (face_for_font): Adjust prototype. | |
3195 | ||
3196 | * fontset.c: Throughout the file, delete all USE_FONT_BACKEND | |
3197 | conditionals. Don't check enable_font_backend. Delete all codes | |
3198 | used only when USE_FONT_BACKEND is not defined. | |
3199 | (get_font_info_func, list_font_func, load_font_func) | |
3200 | (query_font_func, set_frame_fontset_func, find_ccl_program_func) | |
3201 | (get_font_repertory_func): Delete them. | |
3202 | (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING) | |
3203 | (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE) | |
3204 | (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY) | |
3205 | (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE) | |
3206 | (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros. | |
3207 | (fontset_compare_rfontdef): New function. | |
3208 | (reorder_font_vector): Remove the argument CHARSET-ID. Sort | |
3209 | ront-defs by qsort. Adjusted for the change of font-group vector. | |
3210 | (load_font_get_repertory): Deleted. | |
3211 | (fontset_find_font): Use new macros to ref/set elements of | |
3212 | font-def and rfont-def. | |
3213 | (fontset_font): Fix the timing of remembering that no font for C. | |
3214 | (free_face_fontset): Do nothing if the face has no fontset. | |
3215 | (face_suitable_for_char_p): Use new macros to ref/set elements of | |
3216 | rfont-def. | |
3217 | (face_for_char): Likewise. Call face_for_char with font_object. | |
3218 | (fs_load_font): Delete. Delete #pragma surrounding it. | |
3219 | (fs_query_fontset): Use strcasecmp instead of strcmp. | |
3220 | (generate_ascii_font_name): Adjusted for the format change of | |
3221 | font-spec. | |
3222 | (Fset_fontset_font): Likewise. Use new macros to set elements of | |
3223 | font-def. | |
3224 | (Fnew_fontset): Use font_unparse_xlfd to generate | |
3225 | FONTSET_ASCII (fontset). | |
3226 | (new_fontset_from_font_name): Deleted. | |
3227 | (fontset_from_font): Renamed from new_fontset_from_font. Check if | |
3228 | a fontset is already created for the font. FIx updating of | |
3229 | Vfontset_alias_alist. | |
3230 | (fontset_ascii_font): Deleted. | |
3231 | (Ffont_info): Adjusted for the format change of font-spec. | |
3232 | (Finternal_char_font): Likewise. | |
3233 | (Ffontset_info): Likewise. | |
3234 | (syms_of_fontset): Don't check load_font_func. | |
3235 | ||
3236 | * fns.c (internal_equal): Handle PREV_FONT. | |
3237 | ||
3238 | * frame.h: Delete USE_FONT_BACKEND conditional. | |
3239 | ||
3240 | * frame.c: Throughout the file, delete all USE_FONT_BACKEND | |
3241 | conditionals. Don't check enable_font_backend. Delete all codes | |
3242 | used only when USE_FONT_BACKEND is not defined. | |
3243 | (x_set_font): Call x_new_font, not x_new_fontset2. | |
3244 | (x_set_font_backend): Use FRAME_FONT macro to check if a font is | |
3245 | already set for the frame. | |
3246 | ||
3247 | * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make | |
3248 | a font-entity by font_make_entity. Use font_intern_prop instead | |
3249 | of intern_downcase. Use FONT_SET_STYLE to set a style-related | |
3250 | font property. If a font is scalable, set avgwidth property to 0. | |
3251 | Set font-entity property by font_put_extra. | |
3252 | (ftfont_list_generic_family): Argument SPEC and REGISTRY removed. | |
3253 | (ffont_driver): Adjusted for the change of struct font_driver. | |
3254 | (ftfont_spec_pattern): New function. | |
3255 | (ftfont_list): Return a list, not vector. | |
3256 | (ftfont_match): Use ftfont_spec_pattern to get a pattern. | |
3257 | (ftfont_list_family): Don't downcase names. | |
3258 | (ftfont_free_entity): Deleted. | |
3259 | (ftfont_open): Return a font-ojbect. Adjusted for the change of | |
3260 | struct font. Get underline_thickness and underline_position from | |
3261 | font property. Don't update dpyinfo->smallest_font_height and | |
3262 | dpyinfo->smallest_char_width. | |
3263 | (ftfont_close): Don't free `struct font'. | |
3264 | (ftfont_has_char): Adjusted for the format change of font-entity. | |
3265 | (ftfont_encode_char, ftfont_text_extents): Likewise. | |
3266 | ||
3267 | * ftxfont.c (ftxfont_list): Return a list, not vector. | |
3268 | (ftxfont_open): Return a font-ojbect. Adjusted for the change of | |
3269 | struct font. Get underline_thickness and underline_position from | |
3270 | font property. Don't update dpyinfo->smallest_font_height and | |
3271 | dpyinfo->smallest_char_width. | |
3272 | (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts. | |
3273 | (ftxfont_draw): Adjusted for the change of struct font. | |
3274 | ||
3275 | * image.c (image_ascent): Don't include "charset.h". Include | |
3276 | "character.h" and "font.h". | |
3277 | ||
3278 | * lisp.h (enum pvec_type): New member PREV_FONT. | |
3279 | (Fassoc_string): EXFUN it. | |
3280 | ||
3281 | * print.c: Include font.h. | |
3282 | (print_object): Handle font-related objects. | |
3283 | ||
3284 | * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND | |
3285 | conditionals. Don't check enable_font_backend. Delete all codes | |
3286 | used only when USE_FONT_BACKEND is not defined. | |
3287 | (handle_auto_composed_prop): Do nothing if it->f is not on a | |
3288 | window system. Check how many following characters can be | |
3289 | displayed by the same font. | |
3290 | (calc_pixel_width_or_height): Type of the 4th arg is changed to | |
3291 | 'struct font *'. | |
3292 | (get_char_face_and_encoding): Assign the whole encoding task to | |
3293 | the `encode-char' method of a font driver. | |
3294 | (fill_composite_glyph_string): Adjusted for the change of `struct | |
3295 | face' and `struct glyph_string'. | |
3296 | (fill_glyph_string): Likewise. | |
3297 | (get_per_char_metric): Arguments changed. | |
3298 | (x_get_glyph_overhangs): Adjusted for the change of `struct face' | |
3299 | and `struct glyph_string'. | |
3300 | (produce_stretch_glyph, calc_line_height_property) | |
3301 | (x_produce_glyphs): Likewise. | |
3302 | ||
3303 | * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND | |
3304 | conditionals. Don't check enable_font_backend. Delete all codes | |
3305 | used only when USE_FONT_BACKEND is not defined. Use | |
3306 | FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx. | |
3307 | (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) | |
3308 | (Qp): Extern them. | |
3309 | (clear_font_table, load_face_font, xlfd_lookup_field_contents): | |
3310 | Deleted. | |
3311 | (struct font_name): Deleted. | |
3312 | (xlfd_numeric_value, xlfd_symbolic_value): Deleted. | |
3313 | (compare_fonts_by_sort_order): New function. | |
3314 | (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight) | |
3315 | (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth): | |
3316 | Deleted. | |
3317 | (Fx_family_fonts): Use font_list_entities, and sort fonts by | |
3318 | compare_fonts_by_sort_order. | |
3319 | (Fx_font_family_list): Call Ffont_family_list. | |
3320 | (face_numeric_value, face_numeric_weight, face_numeric_slant) | |
3321 | (face_numeric_swidth, face_symbolic_value, face_symbolic_weight) | |
3322 | (face_symbolic_slant, face_symbolic_swidth) | |
3323 | (split_font_name_into_vector, build_font_name_from_vector) | |
3324 | (xlfd_fixed_p, xlfd_point_size, pixel_point_size) | |
3325 | (font_rescale_ratio, split_font_name, build_font_name) | |
3326 | (free_font_names, sort_fonts, x_face_list_fonts) | |
3327 | (face_font_available_p, sorted_font_list, cmp_font_names) | |
3328 | (font_list_1, concat_font_list, font_list, remove_duplicates): | |
3329 | Deleted. | |
3330 | (Fx_list_fonts): Use Ffont_list. | |
3331 | (LFACE_AVGWIDTH): Deleted. | |
3332 | (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT | |
3333 | by FONTP. | |
3334 | (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. | |
3335 | (set_lface_from_font_name): Delete it. | |
3336 | (set_lface_from_font): Renamed from | |
3337 | set_lface_from_font_and_fontset. Caller changed. Don't set | |
3338 | LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable | |
3339 | for face. | |
c3f9fba8 JB |
3340 | (merge_face_vectors): Copy font-spec if necessary. |
3341 | Clear properties of the font-spec if necessary. | |
c6b278e7 KH |
3342 | (merge_face_ref): Clear properties of the font-spec if necessary. |
3343 | (Finternal_set_lisp_face_attribute): Likewise. | |
3344 | (set_font_frame_param): Use font_load_for_lface to load a | |
3345 | font-object, and call Fmodify_frame_parameters with it. | |
3346 | (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD | |
3347 | font name by Ffont_xlfd_name. | |
3348 | (Finternal_lisp_face_attribute_values): Don't check QCweight, | |
3349 | QCslant, and QCwidth. | |
3350 | (Fface_font): Get a font name from font->props[FONT_NAME_INDEX]. | |
3351 | (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH. | |
3352 | Compare fonts by EQ. | |
3353 | (lookup_non_ascii_face): Deleted. | |
3354 | (face_for_font): The 2nd argument changed. | |
c3f9fba8 JB |
3355 | (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. |
3356 | Check atomic font properties by case insensitive. | |
c6b278e7 KH |
3357 | (realize_non_ascii_face): Set face->overstrike correctly. |
3358 | (realize_x_face): Likewise. Check if LFACE_FONT is a font_object. | |
3359 | (dump_realized_face): Get font name from | |
3360 | font->props[FONT_NAME_INDEX]. Don't print font_info_id. | |
3361 | ||
3362 | * xfns.c: Throughout the file, delete all USE_FONT_BACKEND | |
3363 | conditionals. Don't check enable_font_backend. Delete all codes | |
3364 | used only when USE_FONT_BACKEND is not defined. | |
3365 | (xic_create_xfontset): Original code deleted and renamed from | |
3366 | xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT. | |
3367 | (x_make_gc): Don't set GCFont in GCs. | |
3368 | (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font | |
3369 | opened by "fixed". | |
3370 | (syms_of_xfns): Don't set get_font_info_func, load_font_func, | |
3371 | find_ccl_program_func, query_font_func, set_frame_fontset_func, | |
3372 | get_font_repertory_func. | |
3373 | ||
3374 | * xfont.c: Include <stdlib.h> and "ccl.h". | |
3375 | (struct xfont_info): New structure. | |
3376 | (xfont_query_font): Deleted. | |
3377 | (xfont_find_ccl_program): Renamed from x_find_ccl_program and | |
3378 | moved from xterm.c. | |
3379 | (xfont_driver): Adjusted for the change of struct font_driver. | |
3380 | (compare_font_names): New function. | |
3381 | (xfont_list_pattern): Sort font names case insensitively. Make | |
3382 | font_entity by calling font_make_entity. Avoid auto-scaled fonts. | |
3383 | (xfont_list): Return a list, not vector. | |
3384 | (xfont_match): If the font doesn't have QCname property, generate | |
3385 | a name from the other font properties. | |
3386 | (xfont_open): Return a font-ojbect. Adjusted for the change of | |
3387 | struct font. Get underline_thickness and underline_position from | |
3388 | font property. Don't update dpyinfo->smallest_font_height and | |
3389 | dpyinfo->smallest_char_width. | |
3390 | (xfont_close): Don't free struct font. | |
3391 | (xfont_prepare_face): Adjusted for the change of struct font. | |
3392 | (xfont_done_face): Deleted. | |
3393 | (xfont_has_char): Adjusted for the change of struct font. | |
3394 | (xfont_encode_char, xfont_draw): Likewise. | |
3395 | (xfont_check): New function. | |
3396 | ||
3397 | * xftfont.c (xftfont_list): Adjusted for the change of `list' | |
3398 | callback function. | |
3399 | (xftfont_match): Adjusted for the fontmat change of font-entity. | |
3400 | (xftfont_open): Adjusted for the format change of font-entity and | |
3401 | font-object. Adjusted for the change of struct font. Return a | |
3402 | font-object. Don't update dpyinfo->smallest_font_height and | |
3403 | dpyinfo->smallest_char_width. | |
3404 | (xftfont_close): Block input while calling XftFontClose. | |
3405 | (xftfont_prepare_face): Don't block input while calling | |
3406 | xftfont_get_colors. Adjusted for the change of struct font. | |
3407 | (xftfont_shape): Return value of error case fixed. | |
3408 | ||
3409 | * xrdb.c (x_load_resources): Don't setup a fontset resource. | |
3410 | ||
3411 | * xterm.h: Throughout the file, delete all USE_FONT_BACKEND | |
3412 | conditionals. | |
3413 | (FONT_WIDTH): Return (f)->max_width. | |
3414 | (struct x_display_info): Delete member `font'. | |
3415 | (x_list_fonts, x_get_font_info, x_load_font, x_query_font) | |
3416 | (x_find_ccl_program, x_get_font_repertory): Delete externs. | |
3417 | (struct x_output): Change type of `font' to `struct font *'. | |
3418 | ||
3419 | * xterm.c: Throughout the file, delete all USE_FONT_BACKEND | |
3420 | conditionals. Don't check enable_font_backend. Delete all codes | |
c3f9fba8 | 3421 | used only when USE_FONT_BACKEND is not defined. Don't include ccl.h. |
c6b278e7 KH |
3422 | (x_per_char_metric, x_encode_char): Deleted. |
3423 | (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. | |
3424 | (x_compute_glyph_string_overhangs): Adjusted for the change of | |
c3f9fba8 | 3425 | `struct face'. |
c6b278e7 KH |
3426 | (x_draw_glyph_string_foreground) |
3427 | (x_draw_composite_glyph_string_foreground): Likewise. | |
3428 | (x_draw_glyph_string): Likewise. Use font->underline_position and | |
3429 | font->underline_thickness. | |
3430 | (x_new_font): Renamed from x_new_fontset2. | |
3431 | (x_new_fontset, x_get_font_info, x_list_fonts): Deleted. | |
3432 | (x_check_font): Call `check' method of a font driver. | |
3433 | (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) | |
3434 | (x_query_font, x_get_font_repertory): Deleted. | |
3435 | (x_find_ccl_program): Renamed and moved to xfont.c. | |
3436 | (x_redisplay_interface): Adjusted for the change of `struct | |
3437 | redisplay_interface'. | |
3438 | ||
3439 | * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND | |
3440 | conditionals. Don't check enable_font_backend. Delete all codes | |
3441 | used only when USE_FONT_BACKEND is not defined. Surround non-used | |
3442 | code by "#ifdef OLD_FONT" and "endif". | |
3443 | (Fw32_select_font): Use FONT_COMPAT to get old font structure. | |
3444 | ||
3445 | * w32font.h (struct w32font_info): New member. | |
3446 | (FONT_COMPAT): New macro. | |
3447 | (w32font_open_internal): Prototype adjusted. | |
3448 | ||
3449 | * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if | |
3450 | OLD_FONT" and "endif". | |
3451 | ||
3452 | * w32font.c: Throughout the file, delete all USE_FONT_BACKEND | |
3453 | conditionals. Don't check enable_font_backend. Delete all codes | |
3454 | used only when USE_FONT_BACKEND is not defined. | |
3455 | (w32font_open): Return a font-object. Make a font-object by | |
3456 | font_make_object. Adjusted for the change of struct w32font_info. | |
3457 | (w32font_close): Don't free struct font. Adjusted for the change | |
3458 | of struct w32font_info. | |
3459 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
3460 | Adjusted for the change of struct w32font_info. | |
3461 | (w32font_draw): Likewise. | |
3462 | (w32font_list_internal): Return a list, not vector. | |
3463 | (w32font_open_internal): Change the 4th arg to font-object. | |
c3f9fba8 | 3464 | Adjusted for the change of struct w32font_info and font-object format. |
c6b278e7 KH |
3465 | (add_font_name_to_list): Don't downcase names. |
3466 | (w32_enumfont_pattern_entity): Make a font-entity by | |
3467 | font_make_entity. Adjusted for the format change of font-entity. | |
3468 | Use FONT_SET_STYLE to set a style-related font property. If a | |
3469 | font is scalable, set avgwidth property to 0. Set font-entity | |
3470 | property by font_put_extra. | |
c3f9fba8 | 3471 | (font_matches_spec): Adjusted for the format change of font-entity. |
c6b278e7 KH |
3472 | (w32_weight_table, w32_decode_weight): New variables. |
3473 | (w32_encode_weight): New function. | |
3474 | (fill_in_logfont): Adjusted for the format change of font-spec. | |
3475 | (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol | |
3476 | weight value. | |
3477 | (w32font_driver): Adjusted for the change of struct font_driver. | |
3478 | ||
3479 | * w32term.h: Throughout the file, delete all USE_FONT_BACKEND | |
f245f2c6 | 3480 | conditionals. Don't check enable_font_backend. Surround non-used |
c6b278e7 KH |
3481 | code by "#ifdef OLD_FONT" and "endif". |
3482 | (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT) | |
3483 | (FONT_AVG_WIDTH): Adjusted for the change of struct font. | |
3484 | ||
3485 | * w32term.c: Throughout the file, delete all USE_FONT_BACKEND | |
3486 | conditionals. Don't check enable_font_backend. Delete all codes | |
3487 | used only when USE_FONT_BACKEND is not defined. Surround non-used | |
3488 | code by "#ifdef OLD_FONT" and "endif". | |
3489 | ||
3490 | * w32uniscribe.c: Delete USE_FONT_BACKEND conditional. | |
c3f9fba8 JB |
3491 | (uniscribe_open): Return value changed to font-object. |
3492 | Adjusted for the format change of font-object. | |
3493 | (uniscribe_otf_capability): Adjusted for the change of struct font. | |
c6b278e7 KH |
3494 | (add_opentype_font_name_to_list): Don't downcase names. |
3495 | (uniscribe_font_driver): Adjusted for the change of struct | |
3496 | font_driver. | |
3497 | ||
f9d4c199 CY |
3498 | 2008-05-13 Chong Yidong <cyd@stupidchicken.com> |
3499 | ||
3500 | * dispnew.c (update_frame_1): Check if tty output is still valid | |
3501 | before flushing it. | |
3502 | ||
44f249c0 JD |
3503 | 2008-05-13 Jan Djärv <jan.h.d@swipnet.se> |
3504 | ||
3505 | * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 | |
3506 | to Gtk+ menus. | |
3507 | ||
01bb4018 SM |
3508 | 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca> |
3509 | ||
3271a8f5 SM |
3510 | * dired.c (file_name_completion): Tweak the code so as to always do it |
3511 | in a single pass. Tighten the scope of some variables. | |
3512 | ||
01bb4018 SM |
3513 | * dired.c (Qdefault_directory): New var. |
3514 | (file_name_completion): Use it instead of Fexpand_file_name. | |
3515 | (syms_of_dired): Initialize it. | |
3516 | ||
728bb8e0 SM |
3517 | 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca> |
3518 | ||
3519 | * fileio.c (double_dollars): Remove dead code. | |
3520 | ||
ed4c17bb EZ |
3521 | 2008-05-10 Eli Zaretskii <eliz@gnu.org> |
3522 | ||
6c5665e9 EZ |
3523 | * dired.c (Ffile_attributes, Fdirectory_files_and_attributes): |
3524 | Mention w32-get-true-file-attributes in doc string. | |
3525 | ||
ed4c17bb EZ |
3526 | * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix. |
3527 | ||
71e1f69d GM |
3528 | 2008-05-09 Glenn Morris <rgm@gnu.org> |
3529 | ||
3530 | * fileio.c (Fread_file_name): Remove reference to insdef, deleted | |
3531 | 2008-04-23. | |
3532 | ||
ee7a2e7a EZ |
3533 | 2008-05-09 Eli Zaretskii <eliz@gnu.org> |
3534 | ||
8aaaec6b EZ |
3535 | Support for reporting owner and group of each file on MS-Windows: |
3536 | * dired.c (stat_uname, stat_gname): New functions, with special | |
3537 | implementation for w32. | |
3538 | (Ffile_attributes): Use them instead of getpwuid and getgrgid. | |
3539 | ||
ee7a2e7a EZ |
3540 | * w32.c: Rename the_passwd_* to dflt_passwd_*. |
3541 | (dflt_group_name): New static variable. | |
728bb8e0 | 3542 | (dflt_group): Rename from the_group. |
ee7a2e7a EZ |
3543 | (init_user_info): Init dflt_group fields. Get user's group name |
3544 | from LookupAccountSid. | |
8aaaec6b EZ |
3545 | (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner) |
3546 | (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid): | |
3547 | New initialization states. | |
3548 | (globals_of_w32): Initialize them to zero. Initialize the default | |
3549 | group name to "None". | |
3550 | (GetFileSecurity_Name): New global var, the name of the function | |
3551 | to call for GetFileSecurity. | |
3552 | (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc) | |
3553 | (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs. | |
3554 | (get_file_security, get_security_descriptor_owner) | |
3555 | (get_security_descriptor_group, is_valid_sid) | |
3556 | (get_file_security_desc, get_rid, get_name_and_id) | |
3557 | (get_file_owner_and_group): New functions. | |
3558 | (stat): Use get_file_security_desc and get_file_owner_and_group to | |
3559 | report the owner and primary group of each file. Don't ignore the | |
728bb8e0 SM |
3560 | high 32 bits of file's size, now that st_size is 64-bit wide. |
3561 | Fix test when to get true file attributes. | |
8aaaec6b EZ |
3562 | (init_user_info): Use get_rid instead of equivalent inline code. |
3563 | (fstat): Don't ignore the high 32 bits of file's size. | |
ee7a2e7a | 3564 | |
b199c436 CY |
3565 | 2008-05-09 Chong Yidong <cyd@stupidchicken.com> |
3566 | ||
3567 | * image.c (png_load): Use correct bit-depth for setting background | |
3568 | color. | |
3569 | ||
86914123 EZ |
3570 | 2008-05-08 Eli Zaretskii <eliz@gnu.org> |
3571 | ||
3572 | * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to | |
3573 | epa-hook.elc. | |
3574 | ||
67b5d7de JB |
3575 | 2008-05-08 Juanma Barranquero <lekktu@gmail.com> |
3576 | ||
3577 | * font.c (Ffont_match_p): Don't use `iff' in docstring. | |
3578 | ||
1a111394 DN |
3579 | 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu> |
3580 | ||
3581 | * macfns.c (Fx_create_frame): Make a copy of frame parameters | |
3582 | because the original parameters are in pure storage now. | |
3583 | (mac_window): Remove unused params. Update callers. | |
3584 | ||
6d77fa95 SM |
3585 | 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca> |
3586 | ||
7a3d90dc SM |
3587 | * lread.c (substitute_object_recurse): Use lower-level primitives. |
3588 | Don't signal errors when traversing sub-char-tables. | |
3589 | Don't loop over all the possible characters when traversing char-tables. | |
3590 | ||
6d77fa95 SM |
3591 | * print.c (print_preprocess): Add sub-char-tables to the print-table, |
3592 | just like we do in print.c. | |
3593 | ||
140eb764 SM |
3594 | 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca> |
3595 | ||
3596 | * minibuf.c (Ftry_completion): Remove code left over from when we used | |
3597 | scmp instead of Fcompare_strings. | |
3598 | ||
e9184ccb JB |
3599 | 2008-05-04 Juanma Barranquero <lekktu@gmail.com> |
3600 | ||
3601 | * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format. | |
3602 | ||
0e9378b3 YM |
3603 | 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
3604 | ||
3605 | * image.c [USE_MAC_IMAGE_IO] (image_load_image_io): | |
3606 | Create bitmap context in native byte order. | |
3607 | ||
f67e15be MB |
3608 | * macterm.c (XDrawLine) |
3609 | (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap | |
3610 | context in native byte order. | |
064032d0 | 3611 | |
f67e15be | 3612 | 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
50eff40f YM |
3613 | |
3614 | * config.in: Regenerate. | |
3615 | ||
3616 | * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]: | |
3617 | New definitions for Image I/O support. | |
3618 | (XGetImage, XPutPixel, XGetPixel, XDestroyImage) | |
3619 | (mac_create_cg_image_from_image, x_create_x_image_and_pixmap) | |
3620 | [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. | |
3621 | (mac_data_provider_release_data, image_load_image_io) | |
3622 | [USE_MAC_IMAGE_IO]: New functions. | |
3623 | (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef. | |
3624 | (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable. | |
3625 | (init_image_func_pointer) [MAC_OSX]: Remove function. | |
3626 | (image_load_quartz2d) [MAC_OSX]: Check availability of | |
3627 | CGImageCreateWithPNGDataProvider at compile time. | |
3628 | Use lowercase `false' for boolean constant. | |
3629 | (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]: | |
3630 | Use image_load_image_io. | |
3631 | (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]: | |
3632 | Don't check MyCGImageCreateWithPNGDataProvider. | |
3633 | (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]: | |
3634 | Don't call init_image_func_pointer. | |
3635 | ||
3636 | * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O. | |
3637 | ||
3638 | * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]: | |
3639 | Make variable non-static. | |
3640 | (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap) | |
3641 | [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. | |
3642 | ||
3643 | * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros. | |
3644 | (RED_FROM_ULONG): Mask off higher bits. | |
3645 | (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern. | |
3646 | ||
3647 | * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]: | |
3648 | Include AvailabilityMacros.h. | |
3649 | (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines. | |
3650 | (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE. | |
3651 | ||
c6bff69e SM |
3652 | 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca> |
3653 | ||
3654 | * chartab.c (Fset_char_table_range): If range is t, really set all | |
3655 | chars to that value. | |
3656 | ||
7412d429 EZ |
3657 | 2008-05-03 Eli Zaretskii <eliz@gnu.org> |
3658 | ||
3659 | * dired.c (Ffile_attributes): Don't allow the device number become | |
3660 | negative. | |
3661 | ||
f83bbfac DU |
3662 | 2008-05-02 Daiki Ueno <ueno@unixuser.org> |
3663 | ||
5a81d3d7 | 3664 | * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc. |
f83bbfac | 3665 | |
2e3148e2 JL |
3666 | 2008-05-02 Juri Linkov <juri@jurta.org> |
3667 | ||
3668 | * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command) | |
728bb8e0 SM |
3669 | (Fread_variable, Fread_buffer, Fcompleting_read): Document the |
3670 | DEFAULT argument as a list of default values in docstrings. | |
2e3148e2 | 3671 | |
923fb88c CY |
3672 | 2008-05-01 Chong Yidong <cyd@stupidchicken.com> |
3673 | ||
3674 | * puresize.h (BASE_PURESIZE): Increase to 1210000. | |
3675 | ||
047aaeb9 MR |
3676 | 2008-05-01 Martin Rudalics <rudalics@gmx.at> |
3677 | ||
3678 | * dispnew.c (change_frame_size_1): Preserve small windows when | |
3679 | shrinking frames by calling set_window_height|width with third | |
3680 | arg 2. | |
3681 | ||
3682 | * window.h (struct window): Replace field too_small_ok by field | |
3683 | resize_proportionally. | |
3684 | ||
3685 | * window.c (make_window): Initialize resize_proportionally. | |
3686 | (enlarge_window): Temporarily set resize_proportionally to make | |
3687 | sure that shrink_windows does scale the window proportionally. | |
3688 | (shrink_windows): When window has resize_proportionally set try | |
3689 | to shrink it proportionally by stealing from other windows. | |
3690 | (struct saved_window, Fset_window_configuration) | |
3691 | (compare_window_configurations): Handle resize_proportionally. | |
3692 | (WINDOW_TOTAL_SIZE): New macro. | |
3693 | (window_min_size, shrink_windows, size_window): Use it. | |
c6bff69e | 3694 | (check_min_window_sizes): Remove. Invalid values of |
047aaeb9 MR |
3695 | window-min-height|width are handled by window_min_size_2 now. |
3696 | (size_window, Fsplit_window, enlarge_window) | |
3697 | (adjust_window_trailing_edge, grow_mini_window): Don't call | |
3698 | check_min_window_sizes. | |
c6bff69e SM |
3699 | (window_min_size_2, window_min_size_1, window_min_size): |
3700 | New argument safe_p for retrieving "safe" minimum sizes. | |
c3f9fba8 | 3701 | (Fdisplay_buffer, Fsplit_window, enlarge_window) |
c6bff69e SM |
3702 | (adjust_window_trailing_edge, grow_mini_window): |
3703 | Adjust arguments of window_min_size... functions. | |
047aaeb9 MR |
3704 | (shrink_windows): Argument min_size removed. New argument |
3705 | safe_p allows shrinking windows to their safe minimum sizes. | |
3706 | Calculate minimum size and decide whether a window shall be | |
3707 | deleted for each window individually. | |
3708 | (size_window): When nodelete_p equals 2, tell shrink_windows to | |
3709 | delete windows only if their new minimum size is no more safe. | |
3710 | (shrink_window_lowest_first): Call window_min_size_1 to make | |
3711 | sure to preserve modeline of bottom-most window when resizing | |
3712 | the minibuffer. | |
3713 | (Fset_window_configuration, Fcurrent_window_configuration) | |
3714 | (compare_window_configurations): Do not handle | |
3715 | window-min-height|width any more. | |
3716 | (syms_of_window): Clarify window-min-height|width doc-strings. | |
3717 | ||
2a54a229 SM |
3718 | 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca> |
3719 | ||
3720 | * dired.c (file_name_completion): Fix up the encoding/decoding issue | |
3721 | some more. Copy some of the code from Ftry_completions. | |
3722 | Remove special case code that dates back to initial revision when the | |
3723 | slash was only added when necessary and that can't trigger nowadays. | |
3724 | ||
384bc634 KH |
3725 | 2008-04-27 Kenichi Handa <handa@m17n.org> |
3726 | ||
3727 | * font.c (font_prop_validate): Signal `error' instead of `font'. | |
3728 | ||
2c2279c6 JR |
3729 | 2008-04-29 Jason Rumney <jasonr@gnu.org> |
3730 | ||
3731 | * w32fns.c (Fw32_battery_status): New defun. | |
3732 | (syms_of_w32fns): Defsubr it. | |
3733 | ||
fb4a622a AS |
3734 | 2008-04-28 Andreas Schwab <schwab@suse.de> |
3735 | ||
3736 | * dired.c (file_name_completion): Fix another mixing of encoded | |
3737 | and decoded names. | |
3738 | ||
23f250f4 JB |
3739 | 2008-04-28 Juanma Barranquero <lekktu@gmail.com> |
3740 | ||
3741 | * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring. | |
3742 | ||
d8d30dff JB |
3743 | 2008-04-27 Juanma Barranquero <lekktu@gmail.com> |
3744 | ||
3745 | * fringe.c (Fdefine_fringe_bitmap): Doc fix. | |
3746 | ||
ea6104a8 AS |
3747 | 2008-04-27 Andreas Schwab <schwab@suse.de> |
3748 | ||
9c691c00 AS |
3749 | * dired.c (file_name_completion): Fix inappropriate mixing of |
3750 | encoded and decoded names. | |
3751 | ||
ec1bf773 AS |
3752 | * xterm.c (XTread_socket): Fix use of uninitialized variable. |
3753 | ||
ea6104a8 AS |
3754 | * puresize.h (BASE_PURESIZE): Increase to 1200000. |
3755 | ||
01388a3d EZ |
3756 | 2008-04-26 Eli Zaretskii <eliz@gnu.org> |
3757 | ||
3758 | * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from | |
3759 | 2008-03-31, it's not needed anymore with `struct stat' definition | |
3760 | on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13 | |
3761 | for the same reasons. | |
3762 | ||
175aea10 | 3763 | 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change) |
27af566c CY |
3764 | |
3765 | * m/sparc.h: Additional redefinitions for GNU/Linux. | |
3766 | ||
1289aeb8 YM |
3767 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
3768 | ||
3769 | * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable. | |
3770 | (syms_of_macterm) [USE_MAC_TSM]: Defvar it. | |
3771 | (Qmouse_drag_overlay) [MAC_OSX]: New variable. | |
3772 | (syms_of_macterm) [MAC_OSX]: Intern and staticpro it. | |
3773 | (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) | |
3774 | (mac_ax_selected_text_range) [MAC_OSX]: New functions. | |
3775 | (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
3776 | Likewise. | |
3777 | ||
3778 | * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern. | |
c3f9fba8 | 3779 | (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range) |
1289aeb8 YM |
3780 | (mac_ax_number_of_characters): Add externs. |
3781 | (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars) | |
3782 | [USE_MAC_TSM]: Likewise. | |
3783 | (mac_handle_text_input_event) [MAC_OSX]: | |
3784 | Handle kEventTextInputOffsetToPos for no active input area case. | |
3785 | Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText. | |
3786 | (mac_handle_document_access_event) | |
3787 | [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function. | |
3788 | (install_application_handler) [MAC_OSX]: Register handlers for | |
3789 | kEventTextInputPosToOffset and kEventTextInputGetSelectedText. | |
3790 | (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
3791 | Register mac_handle_document_access_event. | |
3792 | ||
3793 | * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]: | |
3794 | Make functions non-static. | |
3795 | ||
dbd50d4b SM |
3796 | 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca> |
3797 | ||
3798 | * fileio.c (Vread_file_name_function, Vread_file_name_predicate) | |
3799 | (read_file_name_completion_ignore_case, insert_default_directory) | |
3800 | (Qdefault_directory): Move to minibuffer.el. | |
3801 | (Fread_file_name): Call the new `read-file-name' instead. | |
3802 | ||
9ea37b9d | 3803 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
81fe843b YM |
3804 | |
3805 | * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]: | |
3806 | Make function non-static. | |
3807 | (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: | |
3808 | Remove function. | |
3809 | (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: | |
3810 | Move to mactoolbox.c. | |
3811 | (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function. | |
3812 | ||
3813 | * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef. | |
3814 | (mac_rect_make): New macro. | |
3815 | ||
3816 | * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat | |
3817 | instead of float. | |
3818 | (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. | |
3819 | (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground) | |
3820 | (XSetBackground) [USE_CG_DRAWING]: Likewise. | |
3821 | (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of | |
3822 | CGRectMake. | |
3823 | (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise. | |
3824 | (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle) | |
3825 | (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise. | |
3826 | (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window | |
3827 | instead of WindowRef in argument type. | |
3828 | (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort. | |
3829 | (mac_invert_rectangle): Use CGContextSetBlendMode if available. | |
3830 | (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F | |
3831 | instead of DISPLAY. All uses changed. | |
3832 | (mac_handle_size_change): Don't call SET_FRAME_GARBAGED. | |
3833 | (x_calc_absolute_position): Simplify so as not to use | |
3834 | FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT. | |
81fe843b YM |
3835 | |
3836 | * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window | |
3837 | instead of WindowRef in argument type. | |
3838 | (create_apple_event_from_event_ref, create_apple_event_from_drag_ref) | |
3839 | [TARGET_API_MAC_CARBON]: Remove externs. | |
3840 | (create_apple_event, mac_event_parameters_to_lisp) | |
3841 | [TARGET_API_MAC_CARBON]: Add externs. | |
3842 | ||
d8d30dff | 3843 | * mactoolbox.c (Vmac_ts_script_language_on_focus) |
81fe843b YM |
3844 | (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs. |
3845 | (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part | |
3846 | is clicked. | |
3847 | (x_activate_menubar): Remove extern for saved_menu_event_location. | |
3848 | (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: | |
3849 | Move from mac.c. | |
3850 | ||
9ea37b9d | 3851 | 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
a1b41389 YM |
3852 | |
3853 | * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc) | |
3854 | [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex. | |
3855 | ||
9ea37b9d | 3856 | 2008-04-23 Jason Rumney <jasonr@gnu.org> |
bd735631 JR |
3857 | |
3858 | * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get | |
3859 | attributes only for local files. | |
3860 | ||
3861 | * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes | |
e9184ccb | 3862 | default to Qlocal. |
bd735631 | 3863 | |
88970542 JL |
3864 | 2008-04-22 Juri Linkov <juri@jurta.org> |
3865 | ||
3866 | * buffer.c (Fswitch_to_buffer): Change interactive spec to call | |
3867 | read-buffer-to-switch instead of using the letter "B". | |
3868 | ||
92ec67e3 SM |
3869 | 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca> |
3870 | ||
3871 | * fileio.c (Qdefault_directory): New variable. | |
3872 | (Fread_file_name): Use it to pass `dir' to the completion functions. | |
3873 | ||
a32b2382 CY |
3874 | 2008-04-20 Chong Yidong <cyd@stupidchicken.com> |
3875 | ||
2a2e8de7 | 3876 | * xdisp.c (pos_visible_p): Check if iterator stops on a display string. |
a32b2382 | 3877 | |
6c8b4f07 SM |
3878 | 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca> |
3879 | ||
ece5f847 SM |
3880 | * keyboard.c (Vpre_help_message): Remove. |
3881 | (show_help_echo): Remove default C code. | |
3882 | ||
6c8b4f07 SM |
3883 | * dired.c (directory_files_internal, file_name_completion): |
3884 | Only call ENCODE_FILE if the string is indeed decoded. | |
3885 | ||
73d798d5 SM |
3886 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
3887 | ||
3888 | * Makefile.in (TOOLKIT_DEFINES): Remove. | |
3889 | (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff. | |
3890 | ||
d8d30dff | 3891 | 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
9e13f0c3 YM |
3892 | |
3893 | * Makefile.in (MAC_OBJ): Add mactoolbox.o. | |
3894 | (mactoolbox.o): New target. | |
3895 | ||
3896 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): | |
3897 | Use mac_run_loop_run_once instead of CFRunLoopRunInMode. | |
3898 | ||
3899 | * macfns.c (x_set_background_color, mac_window, x_create_tip_frame): | |
3900 | Use mac_set_frame_window_background instead of XSetWindowBackground. | |
3901 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: | |
3902 | Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible. | |
3903 | (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title | |
3904 | instead of SetWindowTitleWithCFString. | |
3905 | (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT. | |
3906 | Move function to mactoolbox.c. | |
3907 | (mac_update_title_bar) [TARGET_API_MAC_CARBON]: | |
3908 | Use mac_set_window_modified instead of SetWindowModified. | |
3909 | Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon. | |
3910 | (mac_window, x_create_tip_frame): Use mac_create_frame_window. | |
3911 | (Fx_focus_frame): Use mac_front_non_floating_window instead of | |
3912 | FrontNonFloatingWindow. Use mac_activate_window instead of | |
3913 | ActivateWindow. Use mac_active_non_floating_window instead of | |
3914 | ActiveNonFloatingWindow. | |
3915 | (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]: | |
3916 | Use mac_show_hourglass and mac_hide_hourglass. | |
3917 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse | |
3918 | instead of GetGlobalMouse. | |
3919 | (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window | |
3920 | instead of MoveWindow/SizeWindow/ShowWindow, respectively. | |
3921 | Use mac_bring_window_to_front instead of BringToFront. | |
3922 | (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to | |
3923 | mactoolbox.c. | |
3924 | (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to | |
3925 | mac_file_dialog in mactoolbox.c. Use mac_file_dialog. | |
3926 | (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to | |
3927 | mactoolbox.c. | |
3928 | ||
3929 | * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h. | |
3930 | (XtPointer): Move typedef from macmenu.c. | |
3931 | (enum button_type): Move enum from macmenu.c. | |
3932 | (widget_value): Move typedef from macmenu.c. | |
3933 | (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID) | |
3934 | (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) | |
3935 | (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) | |
3936 | (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) | |
3937 | (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) | |
3938 | (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) | |
3939 | (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) | |
3940 | (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c. | |
3941 | (Selection): Move typedef from macselect.c. | |
3942 | (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from | |
3943 | macterm.c. | |
3944 | (mac_set_window_title, mac_set_window_modified, mac_is_window_visible) | |
3945 | (mac_is_window_collapsed, mac_bring_window_to_front) | |
3946 | (mac_send_window_behind, mac_hide_window, mac_show_window) | |
3947 | (mac_collapse_window, mac_front_non_floating_window) | |
3948 | (mac_active_non_floating_window, mac_activate_window) | |
3949 | (mac_move_window_structure, mac_move_window, mac_size_window) | |
3950 | (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines. | |
3951 | ||
3952 | * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c. | |
3953 | (enum mac_menu_kind): Move enum to mactoolbox.c. | |
3954 | (min_menu_id): Move variable to mactoolbox.c. | |
3955 | (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise. | |
3956 | (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c. | |
3957 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
3958 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
3959 | [TARGET_API_MAC_CARBON]: Likewise. | |
3960 | (XtPointer): Move typedef to macgui.h. | |
3961 | (enum button_type): Move enum to macgui.h. | |
d02fe47d MB |
3962 | (widget_value): Move typedef to macgui.h. |
3963 | (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) | |
3964 | (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH) | |
3965 | (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) | |
3966 | (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) | |
3967 | (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) | |
3968 | (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) | |
3969 | (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h. | |
3970 | (popup_activated_flag): Make variable non-static. | |
3971 | (x_activate_menubar, install_menu_quit_handler, pop_down_menu) | |
3972 | (add_menu_item, fill_menu, dispose_menus): | |
3973 | Move functions to mactoolbox.c. | |
3974 | (restore_show_help_function, menu_target_item_handler) | |
3975 | (install_menu_target_item_handler, mac_handle_dialog_event) | |
3976 | (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog) | |
3977 | [TARGET_API_MAC_CARBON]: Likewise. | |
3978 | (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise. | |
3979 | (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. | |
3980 | (find_and_call_menu_selection, name_is_separator): Make function | |
3981 | non-static. | |
3982 | (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern | |
3983 | to mactoolbox.c. | |
3984 | (set_frame_menubar): Don't call install_menu_quit_handler. | |
3985 | (menu_item_selection): New variable. | |
3986 | (mac_menu_show): Use create_and_show_popup_menu. | |
3987 | (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return | |
3988 | selection but set variable menu_item_selection. All uses changed. | |
3989 | (mac_fill_menubar): Rename from fill_menubar. All uses changed. | |
3990 | Call install_menu_quit_handler. Move to mactoolbox.c. | |
edd3ff1d | 3991 | |
d02fe47d MB |
3992 | * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h. |
3993 | (Selection): Move typedef to macgui.h. | |
3994 | (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype) | |
3995 | (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id): | |
3996 | Make variables non-static. | |
3997 | (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise. | |
3998 | (mac_handle_apple_event, cleanup_all_suspended_apple_events): | |
3999 | Make functions non-static. | |
4000 | (Vmac_service_selection) [MAC_OSX]: Likewise. | |
4001 | (mac_get_selection_from_symbol, get_flavor_type_from_symbol) | |
4002 | (mac_valid_selection_target_p, mac_clear_selection) | |
4003 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) | |
4004 | (mac_put_selection_value, mac_selection_has_target_p) | |
4005 | (mac_get_selection_value, mac_get_selection_target_list) | |
4006 | (init_apple_event_handler, install_drag_handler, remove_drag_handler): | |
4007 | Move functions to mactoolbox.c. | |
4008 | (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]: | |
4009 | Likewise. | |
4010 | (copy_scrap_flavor_data, mac_handle_service_event) | |
4011 | (install_service_handler) [MAC_OSX]: Likewise. | |
4012 | (syms_of_macselect) <Vmac_dnd_known_types>: | |
4013 | Use mac_dnd_default_known_types. | |
463f55ee | 4014 | |
d02fe47d MB |
4015 | * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): |
4016 | Move to mactoolbox.c. | |
4017 | (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15. | |
4018 | (Fx_selection_owner_p): Add EXFUN. | |
4019 | (install_window_handler, remove_window_handler, XSetWindowBackground): | |
4020 | Remove externs. | |
4021 | (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise. | |
4022 | (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise. | |
4023 | (x_raise_frame, x_lower_frame, mac_alert_sound_play) | |
4024 | (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse) | |
4025 | (mac_convert_frame_point_to_global, mac_set_frame_window_background) | |
4026 | (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush) | |
4027 | (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip) | |
4028 | (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar) | |
4029 | (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar) | |
4030 | (create_and_show_popup_menu, mac_get_selection_from_symbol) | |
4031 | (mac_valid_selection_target_p, mac_clear_selection) | |
4032 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) | |
4033 | (mac_put_selection_value, mac_selection_has_target_p) | |
4034 | (mac_get_selection_value, mac_get_selection_target_list): Add externs. | |
4035 | (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass) | |
4036 | (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog) | |
4037 | (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise. | |
4038 | (mac_run_loop_run_once) [MAC_OSX]: Likewise. | |
4039 | (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. | |
4040 | (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise. | |
4041 | (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. | |
4042 | (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. | |
463f55ee | 4043 | |
d02fe47d | 4044 | * mactoolbox.c: New file. |
af253914 | 4045 | |
d8d30dff | 4046 | 2008-04-18 Jason Rumney <jasonr@gnu.org> |
af253914 | 4047 | |
d02fe47d | 4048 | * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned. |
af253914 | 4049 | |
8ee085a4 SM |
4050 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
4051 | ||
73d798d5 SM |
4052 | * character.c (Fmultibyte_char_to_unibyte): |
4053 | Return latin1 chars unchanged. | |
5556875b | 4054 | |
8ee085a4 SM |
4055 | * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only |
4056 | relocated if it points to `name'. | |
4057 | ||
5dff5999 KH |
4058 | 2008-04-17 Kenichi Handa <handa@m17n.org> |
4059 | ||
4060 | * data.c (Faset): Allow setting a multibyte character in an | |
4061 | ASCII-only unibyte string. | |
4062 | ||
4063 | * lisp.h (STRING_SET_MULTIBYTE): New macro. | |
4064 | ||
a51f4969 SM |
4065 | 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca> |
4066 | ||
4067 | * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now | |
4068 | done in config.h. | |
4069 | ||
add553ac JB |
4070 | 2008-04-16 Juanma Barranquero <lekktu@gmail.com> |
4071 | ||
4072 | * character.c (Fchar_bytes, Fchar_width, Fstring_width) | |
4073 | (Fchar_direction): Add usage in the docstring. | |
4074 | ||
8ad7b280 CY |
4075 | 2008-04-15 Chong Yidong <cyd@stupidchicken.com> |
4076 | ||
4077 | * keyboard.c (read_key_sequence): Remove always-true checks. | |
4078 | ||
e157d7ba JR |
4079 | 2008-04-14 Jason Rumney <jasonr@gnu.org> |
4080 | ||
4081 | * w32font.c (w32font_open_internal): Set max_bounds.descent in | |
4082 | compatibility struct, for better underline positioning. | |
4083 | ||
9ec3aaef | 4084 | 2008-04-13 David Hansen <david.hansen@gmx.net> |
48f7d213 MA |
4085 | |
4086 | * dbusbind.c (dbus-get-unique-name): Remove extra copying of name | |
4087 | string. | |
4088 | ||
36c08864 DN |
4089 | 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu> |
4090 | ||
4091 | * m/hp800.h (XUINT, XSET): Remove. | |
4092 | ||
f5acc071 JB |
4093 | 2008-04-12 Juanma Barranquero <lekktu@gmail.com> |
4094 | ||
4095 | * fileio.c (Fexpand_file_name): Add declaration for `p' missing in | |
4096 | previous change. | |
4097 | ||
5b5a2ea1 SM |
4098 | 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca> |
4099 | ||
4100 | * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars. | |
4101 | Relocate `nm' after calling DECODE_FILE, in case the GC was run. | |
4102 | ||
492d9fd6 SM |
4103 | 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> |
4104 | ||
4105 | * keymap.h (map_keymap_canonical): Declare. | |
4106 | * xmenu.c (single_keymap_panes): Use it. | |
4107 | ||
dd60787c GM |
4108 | 2008-04-11 Glenn Morris <rgm@gnu.org> |
4109 | ||
4110 | * eval.c (Fdefvaralias): If the alias is bound and the target is not, | |
4111 | set the target's value to that of the alias. | |
4112 | ||
c23b5410 SM |
4113 | 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca> |
4114 | ||
4115 | * term.c (set_tty_color_mode): Left over typo. | |
4116 | ||
e89b536d MA |
4117 | 2008-04-10 Michael Albinus <michael.albinus@gmx.de> |
4118 | ||
4119 | * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK | |
f5acc071 | 4120 | only after check for file name handler functions. Signal, when |
e89b536d MA |
4121 | native functionality is not supported. |
4122 | (syms_of_fileio): Declare it unconditionally. | |
4123 | ||
40a339c8 JR |
4124 | 2008-04-10 Jason Rumney <jasonr@gnu.org> |
4125 | ||
31403b24 JR |
4126 | * w32menu.c (is_simple_dialog, simple_dialog_show): New functions. |
4127 | (Fx_popup_dialog): Handle simple yes/no questions as dialogs. | |
4128 | ||
40a339c8 JR |
4129 | * w32.c (logon_network_drive): Also logon to remote drives that |
4130 | are mapped to drive letters. | |
4131 | ||
96a7394f GM |
4132 | 2008-04-10 Glenn Morris <rgm@gnu.org> |
4133 | ||
4134 | * xdisp.c (truncate-partial-width-windows): Doc fix. | |
4135 | ||
34b67b0f SM |
4136 | 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca> |
4137 | ||
4138 | * fileio.c (read_file_name_cleanup, Fread_file_name_internal): | |
4139 | Move functions to minibuffer.el. | |
4140 | (syms_of_fileio): Don't declare them. | |
4141 | ||
c025fb0a SM |
4142 | 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
4143 | ||
ba5ff07b SM |
4144 | * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el. |
4145 | (syms_of_minibuf): Remove its initialization. | |
4146 | ||
c025fb0a SM |
4147 | * minibuf.c (temp_echo_area_glyphs): Remove unused function. |
4148 | ||
7a6a86ad JB |
4149 | 2008-04-09 Juanma Barranquero <lekktu@gmail.com> |
4150 | ||
4151 | * editfns.c (Ffield_string_no_properties): Fix typo in docstring. | |
4152 | ||
cf907d69 JR |
4153 | 2008-04-09 Jason Rumney <jasonr@gnu.org> |
4154 | ||
3dc94c30 JR |
4155 | * makefile.w32-in (distclean): Delete makefile too. |
4156 | (maintainer-clean): New target. | |
4157 | ||
8d28646b JR |
4158 | * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change. |
4159 | ||
cf907d69 JR |
4160 | * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs |
4161 | for new font backend and composite cases. | |
4162 | ||
ef5eb925 JD |
4163 | 2008-04-09 Jan Djärv <jan.h.d@swipnet.se> |
4164 | ||
4165 | * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT. | |
4166 | Most of the code moved to run_timers. | |
4167 | (do_pending_atimers): Call run_timers. | |
4168 | (run_timers): New function. | |
4169 | ||
cf907d69 JR |
4170 | * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers, |
4171 | run atimers. | |
ef5eb925 JD |
4172 | |
4173 | * process.c (wait_reading_process_output): The same as above. | |
4174 | ||
9b2cd403 SM |
4175 | 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca> |
4176 | ||
32bae13c SM |
4177 | * minibuf.c (last_exact_completion): Remove variable. |
4178 | (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete) | |
4179 | (complete_and_exit_1, complete_and_exit_2) | |
4180 | (Fminibuffer_complete_and_exit, Fminibuffer_complete_word) | |
4181 | (Fdisplay_completion_list, display_completion_list_1) | |
4182 | (Fminibuffer_completion_help, Fself_insert_and_exit) | |
8d28646b JR |
4183 | (Fexit_minibuffer, Fminibuffer_message): Move functions to |
4184 | minibuffer.el. | |
32bae13c SM |
4185 | (syms_of_minibuf): Remove corresponding initializations. |
4186 | ||
5c4cc82a SM |
4187 | * keyboard.c (Qdeactivate_mark): New var. |
4188 | (command_loop_1): Use it to call `deactivate-mark'. | |
4189 | (syms_of_keyboard): Initialize it. | |
4190 | ||
9b2cd403 SM |
4191 | * xdisp.c (redisplay_internal): Reset tty's color_mode when switching |
4192 | to another frame. | |
4193 | * frame.c (do_switch_frame): Refine the top_frame/async_visible code. | |
4194 | Don't call set_tty_color_mode. | |
4195 | (store_frame_param): Reset previous_frame rather than call | |
4196 | set_tty_color_mode. | |
4197 | * term.c (set_tty_color_mode): Rewrite. | |
4198 | * dispextern.h (set_tty_color_mode): New type. | |
4199 | * termchar.h (struct tty_display_info): Add `previous_color_mode'. | |
4200 | ||
84cb7b45 SM |
4201 | 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca> |
4202 | ||
4203 | * keymap.c (access_keymap): Remove the value 2 for t_ok which was used | |
4204 | for generic chars, which do not exist any more in emacs-unicode. | |
4205 | ||
3ed051d4 MA |
4206 | 2008-04-08 Michael Albinus <michael.albinus@gmx.de> |
4207 | ||
4208 | * coding.c (detect_coding_emacs_mule) | |
4209 | (Ffind_operation_coding_system): Fix typo. | |
4210 | ||
58c3ea42 JR |
4211 | 2008-04-08 Jason Rumney <jasonr@gnu.org> |
4212 | ||
3bf8d230 JR |
4213 | * w32uniscribe.c (SNAME): Extract only symbol name. |
4214 | ||
56a70cca JR |
4215 | * w32font.h (struct w32_metric_cache): New struct. |
4216 | (w32font_info): Use it. | |
4217 | (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL) | |
4218 | (CACHE_BLOCKSIZE): New constants. | |
3ed051d4 | 4219 | |
58c3ea42 JR |
4220 | * w32font.c (Qja, Qko, Qzh): New symbols. |
4221 | (syms_of_w32font): Initialise them. | |
4222 | (font_matches_spec): Use them to filter by language. | |
4223 | (recompute_cached_metrics): Remove function. | |
4224 | (compute_metrics, clear_cached_metrics): New functions. | |
4225 | (w32font_encode_char): Use them to manage metric cache. | |
4226 | (w32font_text_extents): Cache metrics for all glyphs on demand. | |
4227 | Delay converting glyph indices to WORD until needed. | |
4228 | (w32font_open_internal): Initialize metric cache to empty. | |
4229 | (registry_to_w32_charset): Charset should always be a symbol. | |
4230 | (fill_in_logfont, list_all_matching_fonts): Family should | |
4231 | always be a symbol. | |
4232 | ||
0ce24b2d JR |
4233 | 2008-04-06 Jason Rumney <jasonr@gnu.org> |
4234 | ||
4235 | * w32uniscribe.c (uniscribe_shape): Increase items buffer size. | |
4236 | Give up if glyph indices not supported. Use uniscribe obtained | |
4237 | ABC widths for individual metrics. Map glyph clusters back to | |
4238 | characters using fClusterStart flag. Return number of glyphs | |
4239 | produced, not chars processed. | |
b7655e0c | 4240 | (uniscribe_shape): Map char at FROM to current glyph. |
0ce24b2d | 4241 | |
5bc6ddff | 4242 | 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
56613f06 | 4243 | |
fbf57abb JB |
4244 | * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]: |
4245 | Use SetMenuItemHierarchicalMenu. | |
56613f06 | 4246 | |
5bc6ddff | 4247 | 2008-04-05 Jason Rumney <jasonr@gnu.org> |
93421a1f | 4248 | |
5bc6ddff MB |
4249 | * image.c (pbm_load): Allow color values up to 65535. |
4250 | Throw an error if max_color_idx is outside the supported range. | |
4251 | Report an error when image size is invalid. | |
4252 | Read two bytes at a time when raw images have max_color_idx above 255. | |
1f816871 | 4253 | |
5bc6ddff | 4254 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> |
5ed6ba5b | 4255 | |
5bc6ddff MB |
4256 | * w32.c (readdir): If FindFirstFile/FindNextFile return in |
4257 | cFileName a file name that includes `?' characters, use the 8+3 | |
4258 | alias in cAlternateFileName instead. | |
5ed6ba5b | 4259 | |
5bc6ddff | 4260 | 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp> |
32c06229 | 4261 | |
5bc6ddff MB |
4262 | * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't |
4263 | append "CCL: Quitted" when the CCL program is quitted. | |
4264 | (setup_ccl_program): Initialize ccl->quit_silently to zero. | |
32c06229 | 4265 | |
5bc6ddff | 4266 | * ccl.h (struct ccl_program): New member quit_silently. |
32c06229 | 4267 | |
c36e15db CY |
4268 | 2008-04-05 Chong Yidong <cyd@stupidchicken.com> |
4269 | ||
9605d567 CY |
4270 | * search.c (compile_pattern_1): Treat non-nil and non-string of |
4271 | search-spaces-regexp as nil. | |
4272 | ||
c36e15db CY |
4273 | * minibuf.c (Fassoc_string): Tweak docstring. |
4274 | ||
40beb147 EZ |
4275 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> |
4276 | ||
4277 | * dired.c (Ffile_attributes): Support inode numbers wider than 32 | |
4278 | bits. Remove ugly WINDOWSNT-specific kludge introduced on | |
4279 | 2008-03-14 to force inode be positive. | |
4280 | ||
4281 | * w32.c (sys_chown, stat, fstat): Use S_* constants instead of | |
4282 | _S_* ones, since we now use our own sys/stat.h. | |
4283 | (stat, fstat): Don't mangle the inode number. | |
aa08d1ff | 4284 | (init_user_info): Don't restrict UID and GID to 0-60000 range. |
40beb147 | 4285 | |
4591d6cb SM |
4286 | 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca> |
4287 | ||
d4417eb0 SM |
4288 | * frame.h (struct frame): Give one more bit to `visible' since we use |
4289 | values larger than 1 to indicate obscured frames on ttys. | |
4290 | ||
00f7c5ed SM |
4291 | * keymap.c (Qkeymap_canonicalize): New var. |
4292 | (Fmap_keymap_internal): New fun. | |
4293 | (describe_map): Use keymap-canonicalize. | |
4294 | ||
4591d6cb SM |
4295 | * undo.c (last_boundary_buffer, last_boundary_position): New vars. |
4296 | (Fundo_boundary): Set them. | |
4297 | (syms_of_undo): Initialize them. | |
4298 | (record_point): Use them instead of last_point_position*. | |
4299 | (last_undo_buffer): Change type. | |
4300 | ||
3187540e JR |
4301 | 2008-04-04 Jason Rumney <jasonr@gnu.org> |
4302 | ||
0ce24b2d JR |
4303 | * w32font.c (w32font_text_extents): Use font's ascent and descent. |
4304 | (recompute_cached_metrics): Don't set ascent and descent per char. | |
4305 | ||
3187540e | 4306 | * w32uniscribe.c (uniscribe_check_otf): Fix last change. |
4591d6cb | 4307 | (uniscribe_check_otf): Add GC protection before consing. |
d0bfec76 | 4308 | Rearrange loop for counting features. |
3187540e | 4309 | |
f1a6b216 SM |
4310 | 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca> |
4311 | ||
4312 | * insdel.c (insert_from_buffer_1): Don't compare bytes in destination | |
4313 | buffer with byte-size of source buffer. | |
4314 | ||
1d8dcf63 CY |
4315 | 2008-04-03 Chong Yidong <cyd@stupidchicken.com> |
4316 | ||
4317 | * callint.c (Fcall_interactively): Handle temporary region even | |
4318 | when shift-select-mode is off. | |
4319 | ||
6b8aa22a JR |
4320 | 2008-04-03 Jason Rumney <jasonr@gnu.org> |
4321 | ||
4322 | * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec. | |
4323 | ||
2f3cbb32 KH |
4324 | 2008-04-03 Kenichi Handa <handa@m17n.org> |
4325 | ||
4326 | * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO. | |
4327 | (CATEGORY_MASK_UTF_16): Likewise. | |
4328 | (detect_coding_utf_16): Add heuristics to reject utf-16 for a | |
4329 | binary file. | |
4330 | (detect_coding): Add null-byte detection for a binary file. | |
4331 | (detect_coding_system): Likewise. | |
4332 | ||
43f4f91c JR |
4333 | 2008-04-03 Jason Rumney <jasonr@gnu.org> |
4334 | ||
0c1b4ae2 JR |
4335 | * w32uniscribe.c: New file. |
4336 | ||
4337 | * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c. | |
4338 | ||
4339 | * w32font.h (uniscribe_check_otf): Declare for w32font.c. | |
4340 | ||
4341 | * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot) | |
4342 | (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi) | |
4343 | (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya) | |
4344 | (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri) | |
4345 | (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic) | |
4346 | (Qphonetic): New symbols. | |
4347 | (syms_of_w32font): Initialize them. | |
4348 | (font_supported_scripts): Use them. | |
4349 | (w32font_list_family): List all charsets. | |
4350 | (w32font_text_extents, recompute_cached_metrics): Fix metric | |
4351 | calculations. | |
4352 | (w32_enumfont_pattern_entity): Make full_type a DWORD. | |
4353 | Give opentype fonts their own format. | |
4354 | (font_matches_spec): New arguments backend and logfont. | |
4355 | Handle :otf spec for uniscribe backend. | |
4356 | (add_font_entity_to_list): Match truetype fonts in uniscribe backend. | |
4357 | (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied. | |
4591d6cb | 4358 | |
0c1b4ae2 JR |
4359 | * w32fns.c (Fx_create_frame): Conditionally register uniscribe |
4360 | font backend. | |
4361 | (globals_of_w32fns): Initialize uniscribe font backend. | |
4362 | ||
fbf57abb | 4363 | * makefile.w32-in (CONFIG_H): New variable. Use it to clean up |
0c1b4ae2 JR |
4364 | dependencies. |
4365 | (w32uniscribe.$(O)): New file to build. | |
4366 | (FONT_OBJ): Include w32uniscribe.$(O). | |
4367 | (LIBS): Add uniscribe libraries. | |
4368 | ||
43f4f91c JR |
4369 | * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val. |
4370 | ||
75043a7d CY |
4371 | 2008-04-02 Chong Yidong <cyd@stupidchicken.com> |
4372 | ||
4373 | * callint.c (Vshift_select_mode): New var. | |
4374 | (Finteractive): Document new ^ spec. | |
4375 | (Fcall_interactively): Call handle-shift-selection if the ^ spec | |
4376 | is present. | |
4377 | ||
4378 | * keyboard.c (Vthis_command_keys_shift_translated): New var. | |
4379 | (command_loop_1): Avoid running the direct display versions of | |
4380 | forward-char and backward-char if shift-selection may occur. | |
75043a7d CY |
4381 | (read_key_sequence): Set Vthis_command_keys_shift_translated if |
4382 | shift-translation takes place. | |
4383 | ||
4384 | * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to | |
4385 | avoid clobbering by define-minor-mode. | |
4386 | ||
4387 | * cmds.c (Fforward_char, Fbackward_char, Fforward_line) | |
4388 | (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec. | |
4389 | ||
4390 | * syntax.c (Fforward_word): Add ^ interactive spec. | |
4391 | ||
4392 | * window.c (Fscroll_up, Fscroll_down, Fscroll_left) | |
4393 | (Fscroll_right): Add ^ interactive spec. | |
4394 | ||
b2b7f29e SM |
4395 | 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca> |
4396 | ||
a432c0a6 SM |
4397 | * xdisp.c (try_window_id): Don't forget to reset delta_bytes. |
4398 | ||
994b75e0 SM |
4399 | * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup. |
4400 | ||
b2b7f29e SM |
4401 | * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove. |
4402 | ||
e99c7806 JL |
4403 | 2008-03-31 Juri Linkov <juri@jurta.org> |
4404 | ||
4405 | * window.c (Fdisplay_buffer): Reinitialize `tem' to nil. | |
4406 | ||
1c9c1270 JD |
4407 | 2008-03-30 Jan Djärv <jan.h.d@swipnet.se> |
4408 | ||
4409 | * gtkutil.c (xg_set_geometry): Fix indentation. | |
994b75e0 | 4410 | (xg_resize_outer_widget): Remove. |
1c9c1270 JD |
4411 | (x_wm_size_hint_off): Fix indentation. |
4412 | (xg_frame_set_char_size): Call flush_and_sync after | |
4413 | gtk_window_resize. | |
4414 | (x_wm_set_size_hint): Pass NULL as geometry window to | |
4415 | gtk_window_set_geometry_hints due to Gtk+ bug nr 68668. | |
4416 | Add menu bar and tool bar height to base height. | |
4417 | (xg_update_frame_menubar, free_frame_menubar) | |
4418 | (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) | |
994b75e0 SM |
4419 | (update_frame_tool_bar, free_frame_tool_bar): |
4420 | Change xg_resize_outer_widget to xg_frame_set_char_size. | |
1c9c1270 | 4421 | |
90b3fc84 MA |
4422 | 2008-03-30 Michael Albinus <michael.albinus@gmx.de> |
4423 | ||
4424 | * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol. | |
4425 | (Fdbus_call_method): New parameter TIMEOUT. | |
4426 | (dbus-send-signal): Optimize UNGCPRO call. | |
4427 | ||
7ae6d1d1 JL |
4428 | 2008-03-29 Juri Linkov <juri@jurta.org> |
4429 | ||
4430 | * window.c (Fdisplay_buffer): Move call to | |
4431 | Vsplit_window_preferred_function out of conditions that check | |
4432 | if window is eligible for vertical splitting. | |
4433 | When Vsplit_window_preferred_function is non-nil, call it and use | |
4434 | its non-nil return value as window. Otherwise, continue doing | |
4435 | vertical splitting using Fsplit_window with arg horflag=nil. | |
4436 | (syms_of_window) <Vsplit_window_preferred_function>: Change the | |
4437 | default value from `split-window' to nil. | |
4438 | ||
f03f8f2c JL |
4439 | 2008-03-29 Juri Linkov <juri@jurta.org> |
4440 | ||
4441 | * callint.c (Fcall_interactively): Revert 2008-03-16 change | |
4442 | for interactive code letters 'b' and 'B'. | |
4443 | ||
6d557778 EZ |
4444 | 2008-03-29 Eli Zaretskii <eliz@gnu.org> |
4445 | ||
4446 | * fileio.c (Fexpand_file_name): Convert the value of $HOME to a | |
4447 | multibyte string. | |
4448 | ||
58555d81 SM |
4449 | 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca> |
4450 | ||
4451 | * keyboard.c (pending_funcalls): New var. | |
4452 | (timer_check): Run it. | |
4453 | (syms_of_keyboard): Initialize it. | |
4454 | * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions) | |
4455 | (Vdelete_terminal_functions): New vars. | |
4456 | (syms_of_terminal): Initialize them. | |
4457 | (Fdelete_terminal): Run delete-terminal-functions. | |
4458 | * xdisp.c (safe_eval): Rewrite. | |
4459 | (safe_call2): New fun. | |
4460 | * frame.c (Qdelete_frame_functions): New var. | |
4461 | (syms_of_frame): Initialize it. | |
4462 | (Fdelete_frame): Use it and use safe_call2 and pending_funcalls. | |
4463 | * lisp.h (safe_call2, pending_funcalls): Declare. | |
4464 | ||
4c92f429 AS |
4465 | 2008-03-28 Andreas Schwab <schwab@suse.de> |
4466 | ||
4467 | * indent.c (Fmove_to_column): Move declaration before statements. | |
4468 | ||
a1567c45 SM |
4469 | 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca> |
4470 | ||
2806a183 SM |
4471 | * frame.h (enum fullscreen_type): Give it a name. Move it before use. |
4472 | (struct frame): Use bit fields for boolean vars. | |
4473 | ||
eef60308 SM |
4474 | * process.c (server_accept_connection): Simplify naming. |
4475 | (emacs_get_tty_pgrp): Use SDATA. | |
4476 | ||
a1567c45 SM |
4477 | * coding.c (decode_coding_object): Fix last change. |
4478 | ||
30076589 JR |
4479 | 2008-03-27 Jason Rumney <jasonr@gnu.org> |
4480 | ||
4481 | * w32fns.c (start_hourglass): Suppress hourglass on tty frames. | |
4482 | ||
880820fe KH |
4483 | 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp> |
4484 | ||
4485 | * charset.c (Fdefine_charset_internal): Change the way of | |
4486 | registering charsets in Vcharset_order_list. | |
4487 | (syms_of_charset): Make the charset `eight-bit' supplementary. | |
4488 | ||
3cf8cdfb CY |
4489 | 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change) |
4490 | ||
4491 | * regex.c (EXTEND_BUFFER): Change order of pointer addition | |
4492 | operations, to avoid having the difference between pointers | |
4493 | overflow. | |
4494 | ||
ef6f5c0e SM |
4495 | 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> |
4496 | ||
80e3db56 SM |
4497 | * indent.c (check_display_width): New fun. |
4498 | (scan_for_column): Use it. | |
4499 | ||
c397dc7a SM |
4500 | * data.c (syms_of_data): Mark most-positive-fixnum and |
4501 | most-negative-fixnum as constants. | |
4502 | ||
bf6b4d58 SM |
4503 | * xdisp.c (redisplay_internal): Reset selected_frame earlier. |
4504 | ||
ef6f5c0e SM |
4505 | * indent.c (scan_for_column): Extract from current_column_1. |
4506 | Merge with the same code from Fmove_to_column. | |
4507 | (current_column_1, Fmove_to_column): Use it. | |
4508 | ||
72d5003d SM |
4509 | 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca> |
4510 | ||
12270607 SM |
4511 | * keymap.c (map_keymap_internal): New fun. |
4512 | (map_keymap): Use it. | |
4513 | (Fmap_keymap_internal): New fun. | |
4514 | (Fmap_keymap): Remove left-out test from before make_save_value. | |
4515 | ||
a10cca6c SM |
4516 | * keymap.c (Fmap_keymap): Use `map-keymap-sorted. |
4517 | ||
d7b10f4c SM |
4518 | * frame.c (Fmodify_frame_parameters, x_set_frame_parameters): |
4519 | Use XCAR/XCDR. | |
4520 | ||
5431bd6a SM |
4521 | * process.h (struct Lisp_Process): Remove filter_multibyte. |
4522 | * process.c (QCfilter_multibyte): Remove. | |
4523 | (setup_process_coding_systems): Don't use filter_multibyte. | |
4524 | (Fstart_process, Fmake_network_process): Don't set filter_multibyte. | |
4525 | (read_process_output): Don't adjust multibyteness to filter_multibyte. | |
4526 | (Fset_process_filter_multibyte): Change the coding-system to | |
4527 | approximate the previous behavior. | |
4528 | (Fprocess_filter_multibyte_p): Get the multibyteness straight from the | |
4529 | coding-system. | |
4530 | ||
72d5003d SM |
4531 | * coding.c (decode_coding_object): When not decoding into a buffer, |
4532 | obey the coding system's preference of (uni|multi)byte. | |
4533 | ||
438eba3c SM |
4534 | 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca> |
4535 | ||
4536 | * casefiddle.c (casify_object): Avoid pathological N^2 worst case if | |
4537 | every char is changed and has a different byte-length. | |
4538 | (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word): | |
4539 | Fix int -> EMACS_INT. | |
4540 | ||
9ec3aaef | 4541 | 2008-03-23 David Hansen <david.hansen@gmx.net> |
a8e72f4f | 4542 | |
438eba3c | 4543 | * dbusbind.c (xd_read_message): Remove extra copying of message |
a8e72f4f MA |
4544 | strings. Check for NULL `interface' or `member'. |
4545 | ||
b07103dc EZ |
4546 | 2008-03-22 Eli Zaretskii <eliz@gnu.org> |
4547 | ||
4548 | * w32.c (readdir): If FindFirstFile/FindNextFile return in | |
4549 | cFileName a file name that includes `?' characters, use the 8+3 | |
4550 | alias in cAlternateFileName instead. | |
4551 | ||
5371d722 SM |
4552 | 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca> |
4553 | ||
4554 | * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT. | |
4555 | ||
6ba7f443 SM |
4556 | 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
4557 | ||
4558 | * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT. | |
4559 | (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg, | |
4560 | work on current_buffer only instead (that was already the case | |
4561 | for some of the code anyway). | |
4562 | * buffer.h (set_point, set_point_both): Remove buffer arg, use long int. | |
4563 | (temp_set_point, temp_set_point_both): Use EMACS_INT. | |
4564 | (SET_PT, SET_PT_BOTH): Adjust. | |
4565 | * intervals.h (set_point, temp_set_point, set_point_both) | |
4566 | (temp_set_point_both): Remove redundant declarations. | |
4567 | ||
bf1c0f27 SM |
4568 | 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> |
4569 | ||
4570 | * fileio.c (Finsert_file_contents): | |
4571 | * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT. | |
4572 | * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right | |
4573 | when buffer != current_buffer anyway. | |
4574 | ||
acab783e AS |
4575 | 2008-03-20 Andreas Schwab <schwab@suse.de> |
4576 | ||
4577 | * callint.c (Fcall_interactively) [case 'B']: Use other-buffer | |
4578 | as default. | |
4579 | ||
d148e14d JR |
4580 | 2008-03-19 Jason Rumney <jasonr@gnu.org> |
4581 | ||
4582 | * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. | |
4583 | (syms_of_w32fns): Initialize them. | |
4584 | (HOURGLASS_ID): New constant. | |
4585 | (x_window_to_frame): Don't check hourglass_window. | |
4586 | (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer. | |
4587 | (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor. | |
4588 | (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor. | |
4589 | (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor. | |
4590 | Only change the cursor if hourglass is not active. | |
4591 | (Fx_create_frame): Initialize frame's current_cursor. | |
4592 | (hourglass_atimer): Remove. | |
4593 | (hourglass_started): New function. | |
4594 | (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. | |
4595 | (show_hourglass): Adapt to w32, changing argument to frame. | |
4596 | ||
4597 | * w32term.h (struct w32_output): Remove hourglass_window. | |
4598 | Add current_cursor. | |
4599 | ||
4600 | * eval.c (call_debugger, Fsignal): | |
4601 | * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) | |
4602 | (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) | |
4603 | (Fexecute_extended_command, cancel_hourglass_unwind): | |
4604 | * minibuf.c (read_minibuf): | |
4605 | * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM. | |
63558020 | 4606 | |
a5c54077 JB |
4607 | 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca> |
4608 | ||
4609 | * window.c (run_funs): New fun. | |
4610 | (run_window_configuration_change_hook): Use it to run the buffer-local | |
4611 | and the global part of the hook. | |
4612 | ||
4613 | * xdisp.c (format_mode_line_unwind_data): Add window argument. | |
4614 | (unwind_format_mode_line): Restore selected window. | |
4615 | (x_consider_frame_title, Fformat_mode_line): Set selected window. | |
4616 | ||
f9f3238f SM |
4617 | 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca> |
4618 | ||
253c3c82 SM |
4619 | * editfns.c (Fchar_equal): Check they are valid characters. |
4620 | ||
f9f3238f SM |
4621 | * buffer.h (Fbuffer_list): Declare (for use in callint.c). |
4622 | ||
065a118d AS |
4623 | 2008-03-17 Andreas Schwab <schwab@suse.de> |
4624 | ||
0b8be006 AS |
4625 | * regex.c (re_match_2_internal): Properly match raw 8-bit bytes |
4626 | against a charset. | |
4627 | ||
065a118d AS |
4628 | * lisp.h (Fbuffer_list): Declare. |
4629 | ||
880820fe | 4630 | 2008-03-17 Jan Djärv <jan.h.d@swipnet.se> |
d3b2a6da JD |
4631 | |
4632 | * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if | |
4633 | handlebox_widget is != 0. | |
4634 | ||
6206d6c2 JL |
4635 | 2008-03-16 Juri Linkov <juri@jurta.org> |
4636 | ||
4637 | * callint.c (Fcall_interactively): For interactive code letters | |
4638 | 'b' and 'B' put the buffer list into the list of default "future" | |
4639 | values of the minibuffer. | |
4640 | ||
f5020181 AS |
4641 | 2008-03-16 Andreas Schwab <schwab@suse.de> |
4642 | ||
a864f6d6 AS |
4643 | * keyboard.c (read_key_sequence): Fix downcasing of letters with |
4644 | modifiers. | |
4645 | ||
f5020181 AS |
4646 | * regex.c (re_match_2_internal): Correct matching of a charset |
4647 | against latin-1 characters. | |
4648 | ||
03f244e2 KH |
4649 | 2008-03-16 Kenichi Handa <handa@m17n.org> |
4650 | ||
4651 | * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY) | |
4652 | (STRING_CHAR_ADVANCE_NO_UNIFY): New macros. | |
f9f3238f SM |
4653 | (coding_alloc_by_making_gap): Fix the way to preserve data in the gap. |
4654 | (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap. | |
03f244e2 KH |
4655 | (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of |
4656 | CHAR_STRING_ADVANCE. | |
4657 | (produce_chars): Fix for the case that the source and the | |
4658 | destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY | |
4659 | instead of CHAR_STRING_ADVANCE. | |
4660 | (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of | |
4661 | STRING_CHAR_ADVANCE. | |
4662 | ||
0e2501ed AS |
4663 | 2008-03-15 Andreas Schwab <schwab@suse.de> |
4664 | ||
4665 | * regex.c (re_match_2_internal): Correct matching of eight bit | |
4666 | characters in unibyte strings. | |
4667 | ||
7723e095 MR |
4668 | 2008-03-15 Martin Rudalics <rudalics@gmx.at> |
4669 | ||
4670 | * buffer.c (overlays_in, Foverlays_in): Include empty overlays | |
4671 | at end of range when it coincides with the end of the buffer. | |
4672 | ||
f507f365 EZ |
4673 | 2008-03-14 Eli Zaretskii <eliz@gnu.org> |
4674 | ||
294f1153 EZ |
4675 | * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive. |
4676 | ||
f507f365 EZ |
4677 | * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change. |
4678 | ||
64f0809d JR |
4679 | 2008-03-14 Jason Rumney <jasonr@gnu.org> |
4680 | ||
956ae531 JR |
4681 | * editfns.c (initial_tz): New variable. |
4682 | (syms_of_editfns): Initialize it. | |
4683 | (Fset_time_zone_rule): Set it when first called. | |
4684 | Use it when TZSTRING is nil. | |
4685 | ||
64f0809d JR |
4686 | * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO) |
4687 | (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions. | |
4688 | (monitor_from_point_fn, get_monitor_info_fn): New globals. | |
4689 | (globals_of_w32fns): Initialize them. | |
4690 | (compute_tip_xy): Use them to position tooltips. | |
4691 | ||
21a4ff8e GM |
4692 | 2008-03-14 Glenn Morris <rgm@gnu.org> |
4693 | ||
4694 | * emacs.c (main): Revert previous change. | |
4695 | (standard_args): Revert -internal-script back to -scriptload, | |
4696 | and remove the long-option form. | |
4697 | ||
a09a5b5b GM |
4698 | 2008-03-13 Glenn Morris <rgm@gnu.org> |
4699 | ||
4700 | * emacs.c (main, standard_args): Rename -scriptload to -internal-script. | |
4701 | Remove option -enable-font-backend. | |
4702 | ||
1c55ebd1 SM |
4703 | 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> |
4704 | ||
4705 | * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. | |
4706 | ||
880820fe | 4707 | 2008-03-11 Jan Djärv <jan.h.d@swipnet.se> |
c523e161 JD |
4708 | |
4709 | * xterm.c (x_connection_closed): For GTK: If this is the last | |
4710 | terminal just exit without closing the display. | |
4711 | ||
7145be81 JR |
4712 | 2008-03-11 Jason Rumney <jasonr@gnu.org> |
4713 | ||
4714 | * w32font.c (w32font_full_name): Use floor to round. | |
4715 | ||
e6201af3 | 4716 | 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change) |
ce9033f8 JD |
4717 | |
4718 | * sound.c (alsa_configure): Declare vol at beginning of block. | |
4719 | ||
e6201af3 | 4720 | * fontset.c (Ffontset_info): Remove extra semicolon. |
ce9033f8 | 4721 | |
390b81fa | 4722 | 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca> |
acd37560 | 4723 | |
56388398 MB |
4724 | * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum |
4725 | size of resulting string. | |
af0ad939 | 4726 | |
390b81fa | 4727 | 2008-03-10 Jason Rumney <jasonr@gnu.org> |
acd37560 | 4728 | |
56388398 | 4729 | * dispnew.c (adjust_glyph_matrix): Initialize window_height. |
acd37560 | 4730 | |
390b81fa | 4731 | 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
acd37560 | 4732 | |
56388398 MB |
4733 | * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. |
4734 | Don't pretend as if characters with display property haven't been | |
4735 | consumed for string-replacing-string case. | |
acd37560 | 4736 | |
223ed6db KS |
4737 | 2008-03-08 Kim F. Storm <storm@cua.dk> |
4738 | ||
4739 | * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. | |
4740 | (get_next_display_element, next_element_from_string) | |
4741 | (next_element_from_ellipsis, next_element_from_buffer): Use it. | |
4742 | ||
28545f7c AS |
4743 | 2008-03-08 Andreas Schwab <schwab@suse.de> |
4744 | ||
4745 | * process.h (struct Lisp_Process): Declare bit fields as unsigned. | |
4746 | ||
c960bff8 JR |
4747 | 2008-03-06 Jason Rumney <jasonr@gnu.org> |
4748 | ||
290afd83 JB |
4749 | * w32font.c (w32_registry): Take font_type argument. Use ANSI |
4750 | when charset not specified. Only translate ANSI to unicode when | |
c960bff8 JR |
4751 | font_type is truetype. |
4752 | (w32font_coverage_ok): New function. | |
4753 | (add_font_entity_to_list): Use it to filter unsuitable fonts. | |
4754 | ||
87b8ce92 KH |
4755 | 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp> |
4756 | ||
4757 | * lread.c (Fread_char): Resolve modifiers. | |
4758 | (Fread_char_exclusive): Likewise. | |
4759 | ||
4760 | * character.c (char_resolve_modifier_mask): New function. | |
4761 | (char_string): Use char_resolve_modifier_mask. | |
4762 | (Fchar_resolve_modifiers): New function. | |
4763 | (syms_of_character): Declare Fchar_resolve_modifiers as Lisp | |
4764 | function. | |
4765 | ||
cefd56f6 JR |
4766 | 2008-03-04 Jason Rumney <jasonr@gnu.org> |
4767 | ||
4768 | * makefile.w32-in: Always include w32font.c in the build. | |
4769 | * w32font.c: Wrap in USE_FONT_BACKEND conditional. | |
4770 | ||
03bd3c1f AS |
4771 | 2008-03-04 Andreas Schwab <schwab@suse.de> |
4772 | ||
4773 | * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*. | |
4774 | (versionclean): Likewise. | |
4775 | ||
6f69e89b JB |
4776 | 2008-03-04 Juanma Barranquero <lekktu@gmail.com> |
4777 | ||
4778 | * .cvsignore: Add oo. | |
4779 | ||
f4a3cc44 AS |
4780 | 2008-03-03 Andreas Schwab <schwab@suse.de> |
4781 | ||
4782 | * coding.c (decode_coding_object): Inhibit gap shrinking while | |
4783 | decoding in place. | |
4784 | ||
73f838ad DN |
4785 | 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu> |
4786 | ||
4787 | * w32term.c: Remove unused include "gnu.h". | |
6f69e89b | 4788 | * makefile.w32-in (w32term.o): Don't depend on gnu.h. |
73f838ad DN |
4789 | |
4790 | * gnu.h: Rename to ... | |
4791 | * emacs-icon.h: ... this. | |
4792 | * xterm.c: Use emacs-icon.h instead of gnu.h. | |
4793 | * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h. | |
4794 | ||
ce9c1f06 JB |
4795 | 2008-03-03 Juanma Barranquero <lekktu@gmail.com> |
4796 | ||
4797 | * w32font.c: Include math.h. | |
4798 | ||
34fd2d28 JR |
4799 | 2008-03-03 Jason Rumney <jasonr@gnu.org> |
4800 | ||
54efdcd1 JR |
4801 | * w32font.c (recompute_cached_metrics): Change font arg to w32font_info. |
4802 | Compute options separately. | |
4803 | (w32font_open_internal): Set glyph_idx before caching metrics. | |
4804 | ||
ce9c1f06 JB |
4805 | * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1): |
4806 | Define if system headers don't. | |
4807 | (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx. | |
34fd2d28 JR |
4808 | (w32font_encode_char): Don't declare here. |
4809 | ||
4810 | * w32font.c (Quniscribe, QCformat): New symbols. | |
4811 | (syms_of_w32font): Define them. | |
4812 | (w32font_has_char): Indicate uncertainty. | |
ce9c1f06 | 4813 | (w32font_encode_char): Encode as glyph point. Make static. |
34fd2d28 | 4814 | (recompute_cached_metrics): New function. |
ce9c1f06 JB |
4815 | (w32font_open_internal): Use it. Set font to use glyph points |
4816 | initially. Set format based on type of font. | |
34fd2d28 | 4817 | (w32font_text_extents, w32font_draw): Optionally use glyph points. |
ce9c1f06 JB |
4818 | (w32_enumfont_pattern_entity): Accept backend arg. Set type based |
4819 | on it. Set format based on information available here. | |
34fd2d28 JR |
4820 | (add_font_entity_to_list): Identify backend based on opentype_only. |
4821 | ||
14daee73 AS |
4822 | 2008-03-02 Andreas Schwab <schwab@suse.de> |
4823 | ||
f907fb2e AS |
4824 | * ftfont.c (ftfont_pattern_entity): Fix aliasing violations. |
4825 | ||
ce9c1f06 JB |
4826 | * coding.c (decode_coding_big5, produce_chars): |
4827 | Fix typos in last change. | |
14daee73 | 4828 | |
c9cc6462 DN |
4829 | 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp> |
4830 | ||
4831 | * gnu.h: New icon. | |
4832 | ||
119852e7 KH |
4833 | 2008-03-02 Kenichi Handa <handa@m17n.org> |
4834 | ||
4835 | * coding.c (decode_coding_utf_8): When eol-type of CODING is | |
4836 | `dos', don't decode '\r' if that is the last in the source. | |
4837 | (decode_coding_utf_16, decode_coding_emacs_mule) | |
4838 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
4839 | (decode_coding_raw_text, decode_coding_charset): Likewise. | |
4840 | (produce_chars): Don't decode EOL here. Use EMACS_INT. | |
4841 | ||
a823468b JR |
4842 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
4843 | ||
4844 | * w32font.c (w32font_full_name): Report point size for scalable fonts. | |
4845 | ||
4ddc7e30 KS |
4846 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
4847 | ||
4848 | * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face. | |
4849 | ||
67997c79 JR |
4850 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
4851 | ||
4852 | * w32font.c (w32font_full_name): New function. | |
4853 | (w32font_open_internal): Use it. | |
4854 | ||
3f4e9c35 KS |
4855 | 2008-03-01 Kim F. Storm <storm@cua.dk> |
4856 | ||
4857 | * dispnew.c (line_draw_cost): Fix invalid glyph check. | |
4858 | ||
f3b9e479 JR |
4859 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
4860 | ||
4861 | * font.c (font_unparse_fcname): Increase len when style is a symbol. | |
4862 | ||
880820fe | 4863 | 2008-03-01 Jan Djärv <jan.h.d@swipnet.se> |
7ee480ce JD |
4864 | |
4865 | * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call | |
4866 | xg_frame_resized when the event is for the edit widget. | |
4867 | ||
4868 | * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets. | |
4869 | ||
4870 | * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or | |
4871 | set_char_size. | |
4872 | (xg_frame_resized): Renamed from xg_resize_widgets. Remove all | |
4873 | operations on widgets here. Just set frame size if needed. | |
4874 | (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions. | |
4875 | (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing. | |
4876 | (x_wm_set_size_hint): Set size hints on the edit widget only, not | |
4877 | the whole frame. | |
4878 | (xg_create_tool_bar): Move attachement of the tool bar to | |
4879 | xg_pack_tool_bar. Do not attach the tool bar if there are no items. | |
4880 | (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED. | |
4881 | ||
6c8acaa1 JR |
4882 | 2008-03-01 Jason Rumney <jasonr@gnu.org> |
4883 | ||
4884 | * w32fns.c (w32_msg_pump): Disable debug code. | |
4885 | ||
51fb064b | 4886 | 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
03eb5fab | 4887 | |
51fb064b | 4888 | * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. |
cb681b34 | 4889 | |
60221a33 CY |
4890 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
4891 | ||
4892 | * xdisp.c (next_overlay_string): Don't set | |
4893 | overlay_strings_at_end_processed_p if we're currently reading from | |
4894 | a display string. | |
4895 | ||
10cbc34f SM |
4896 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> |
4897 | ||
4898 | * xdisp.c (get_overlay_strings_1): Fix typo. | |
4899 | ||
73c0054e CY |
4900 | 2008-02-29 Chong Yidong <cyd@stupidchicken.com> |
4901 | ||
4902 | * xdisp.c (get_overlay_strings_1): Add missing argument type. | |
4903 | ||
ec1c4354 KH |
4904 | 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp> |
4905 | ||
55082642 KH |
4906 | * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern. |
4907 | ||
ec1c4354 KH |
4908 | * xdisp.c (display_mode_element): Cancel the previous change. |
4909 | (decode_mode_spec): Likewise. | |
ee548a94 KH |
4910 | (handle_auto_composed_prop): Don't make composition if it->string |
4911 | is a string. | |
ec1c4354 | 4912 | |
b6d898a2 KS |
4913 | 2008-02-27 Kim F. Storm <storm@cua.dk> |
4914 | ||
4915 | * lisp.h (GLYPH): Change type from int to struct with separate char | |
4916 | and face_id members. | |
4917 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros. | |
4918 | (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg. | |
4919 | (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ... | |
4920 | (GLYPH_CHAR, GLYPH_FACE): ... these. Change users. | |
4921 | (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ... | |
4922 | (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead. | |
4923 | (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P) | |
4924 | (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to | |
4925 | handle new Lisp glyph code encoding, either an integer or a cons. | |
4926 | ||
4927 | * disptab.h (GLYPH_SIMPLE_P): Rewrite. | |
4928 | (GLYPH_ALIAS): Delete. | |
4929 | (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite. | |
4930 | (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR. | |
4931 | (GLYPH_FROM_CHAR): Replace macro by ... | |
4932 | (SET_GLYPH_FROM_CHAR): ... this macro. Change users. | |
4933 | ||
4934 | * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify. | |
4935 | (GLYPH_FROM_CHAR_GLYPH): Replace macro by ... | |
4936 | (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users. | |
4937 | (GLYPH_INVALID_P): New macro. | |
4938 | (spec_glyph_lookup_face): Update prototype. | |
4939 | ||
4940 | * dispnew.c (line_draw_cost): Adapt to new glyph type. | |
4941 | (build_frame_matrix_from_leaf_window): Adapt to new glyph type and | |
4942 | new glyph code encoding. | |
4943 | (spec_glyph_lookup_face): No return value; update passed glyph instead. | |
4944 | (init_display): Use SET_CHAR_GLYPH to initialize space_glyph. | |
4945 | ||
4946 | * xdisp.c (get_next_display_element, next_element_from_display_vector): | |
4947 | Adapt to new glyph type and new glyph code encoding. | |
4948 | ||
4949 | * term.c (encode_terminal_code, produce_special_glyphs): Likewise. | |
4950 | ||
4951 | * indent.c (current_column, current_column_1, Fmove_to_column) | |
4952 | (compute_motion): Adapt to new glyph code encoding. | |
4953 | ||
4954 | * msdos.c (IT_write_glyphs): Adapt to new glyph type. | |
4955 | ||
af2080a2 CY |
4956 | 2008-02-27 Chong Yidong <cyd@stupidchicken.com> |
4957 | ||
4958 | * process.c (wait_reading_process_output): Check for window | |
4959 | changes caused by timers. | |
880820fe | 4960 | Suggested by Johan Bockgård. |
af2080a2 | 4961 | |
253ed25e GM |
4962 | 2008-02-27 Glenn Morris <rgm@gnu.org> |
4963 | ||
4964 | * emacs.c (USAGE1): Add `--disable-font-backend'. | |
4965 | ||
18a9f8d9 SM |
4966 | 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca> |
4967 | ||
4968 | * fileio.c (Finsert_file_contents): Don't reset undo_list if no change | |
4969 | is made to the buffer. | |
4970 | ||
0f8b27ea SM |
4971 | 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca> |
4972 | ||
4973 | * dispextern.h (face_at_buffer_position, face_for_overlay_string) | |
4974 | (face_at_string_position): | |
4975 | * xfaces.c (face_at_buffer_position, face_for_overlay_string) | |
4976 | (face_at_string_position): | |
4977 | * xdisp.c (display_string, next_overlay_change): | |
4978 | * buffer.h (overlays_at): | |
4979 | * buffer.c (overlays_at): Use EMACS_INT for buffer positions. | |
4980 | Update callers. | |
4981 | ||
4e7c53ca CY |
4982 | 2008-02-26 Chong Yidong <cyd@stupidchicken.com> |
4983 | ||
4984 | * editfns.c (Fformat): Doc fix. | |
4985 | ||
51c01100 JB |
4986 | 2008-02-26 Juanma Barranquero <lekktu@gmail.com> |
4987 | ||
4988 | * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings. | |
4989 | (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf) | |
4990 | (Ffont_otf_alternates, Fquery_font): Doc fixes. | |
4991 | ||
13cda5f9 SM |
4992 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
4993 | ||
4994 | * buffer.c (Fbuffer_swap_text): New function. | |
4995 | (syms_of_buffer): Defsubr it. | |
4996 | ||
8018d430 CY |
4997 | 2008-02-25 Chong Yidong <cyd@stupidchicken.com> |
4998 | ||
4999 | * keyboard.c (command_loop_1): Revert 2006-10-09 change. | |
5000 | ||
9bde1a21 JR |
5001 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
5002 | ||
5003 | * w32font.c (w32font_draw): Draw one character at a time when padding. | |
5004 | ||
eeca6f6f SM |
5005 | 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca> |
5006 | ||
5007 | * window.c (Fdelete_window, Fadjust_window_trailing_edge): | |
5008 | Handle a nil arg. Use run_window_configuration_change_hook. | |
5009 | (delete_window, adjust_window_trailing_edge): Don't handle nil any more. | |
5010 | (Fenlarge_window, Fshrink_window, Fset_window_configuration): | |
5011 | Use run_window_configuration_change_hook. | |
5012 | ||
ec1c4354 KH |
5013 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
5014 | ||
5015 | * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least | |
5016 | 1-pixel width. | |
5017 | ||
ae185452 KH |
5018 | 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp> |
5019 | ||
5020 | * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p. | |
5021 | (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1 | |
5022 | if the glyph in the font is zero pixel with. | |
5023 | ||
5024 | * dispextern.h (struct glyph_string): New member padding_p. | |
5025 | ||
5026 | * w32font.c (w32font_draw): Pay attention to s->padding_p. | |
5027 | ||
5028 | * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p. | |
5029 | ||
5030 | * xfont.c (xfont_draw): Pay attention to s->padding_p. | |
5031 | ||
5032 | * xftfont.c (xftfont_draw): Pay attention to s->padding_p. | |
5033 | ||
eeca6f6f | 5034 | * font.c: If the font driver doesn't have `shape' function, return Qnil. |
ae185452 | 5035 | |
ffe832ea | 5036 | 2008-02-25 Jason Rumney <jasonr@gnu.org> |
c9029fe5 | 5037 | |
ffe832ea | 5038 | * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. |
16782258 | 5039 | |
06045130 SM |
5040 | 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca> |
5041 | ||
5042 | Allow fine-grained image-cache flushing. | |
5043 | * dispextern.h (struct image): Add `dependencies' field. | |
5044 | (clear_image_caches): Change arg to Lisp_Object. | |
5045 | * image.c (make_image): Initialize `dependencies' field. | |
5046 | (clear_image_cache): Change arg to allow fine-grained flushing. | |
5047 | Perform the flush even if image-cache-eviction-delay is nil. | |
5048 | (clear_image_caches): Change arg to Lisp_Object. | |
5049 | (Fclear_image_cache): Expand meaning of the argument. | |
5050 | (mark_image): Mark `dependencies' field. | |
5051 | * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches. | |
5052 | (lface_hash): Use XHASH rather than XFASTINT. | |
5053 | (face_at_buffer_position): Fix int -> EMACS_INT position. | |
5054 | * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position. | |
5055 | (select_frame_for_redisplay): Remove code duplication. | |
5056 | (redisplay_internal): Adapt arg to call to clear_image_caches. | |
5057 | ||
9d2818d6 DN |
5058 | 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu> |
5059 | ||
5060 | * s/vms4-0.h: | |
5061 | * s/vms4-2.h: | |
5062 | * s/vms4-4.h: | |
5063 | * s/vms5-5.h: Remove, unused. | |
5064 | ||
5065 | * s/irix5-2.h: | |
5066 | * s/irix6-0.h: | |
5067 | * s/riscos5.h: | |
5068 | * s/mach-bsd4-3.h: | |
2a2e8de7 | 5069 | * m/mips4.h: Remove files for obsolete systems. |
9d2818d6 DN |
5070 | |
5071 | * Makefile.in: | |
5072 | * filelock.c: | |
5073 | * unexmips.c: | |
5074 | * m/hp9000s300.h: | |
5075 | * m/iris4d.h: | |
5076 | * s/aix3-1.h: | |
5077 | * s/hpux.h: | |
5078 | * s/msdos.h: | |
5079 | * s/usg5-0.h: | |
5080 | * s/usg5-2-2.h: | |
5081 | * s/usg5-2.h: | |
5082 | * s/usg5-3.h: Remove references to obsolete variables. | |
5083 | ||
5084 | * s/irix5-0.h: Remove, move all the contents ... | |
5085 | * s/irix6-5.h: ... here. Simplify. | |
5086 | * config.in: Regenerate. | |
5087 | ||
2a36efcf JR |
5088 | 2008-02-24 Jason Rumney <jasonr@gnu.org> |
5089 | ||
c5ad7a3d | 5090 | * w32term.c (x_draw_glyph_string_background): Clear the background |
2face669 JR |
5091 | manually when cleartype is in use. |
5092 | (x_draw_glyph_string_foreground): Draw text transparently when | |
5093 | cleartype is in use. | |
5094 | ||
2a36efcf JR |
5095 | * w32font.c (w32font_text_extents): Avoid getting HDC and selecting |
5096 | a font into it unless we have to. | |
5097 | ||
b03f96dc | 5098 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
92a8ce63 | 5099 | |
b03f96dc MB |
5100 | * intervals.h (INT_LISPLIKE): Remove. It may misfire. |
5101 | (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it. | |
92a8ce63 | 5102 | |
b03f96dc | 5103 | 2008-02-18 Jason Rumney <jasonr@gnu.org> |
92a8ce63 | 5104 | |
b03f96dc | 5105 | * w32fns.c (Fw32_shell_execute): Encode parameters. |
92a8ce63 | 5106 | |
b03f96dc | 5107 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
20f1ef2e | 5108 | |
b03f96dc | 5109 | * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix. |
32d0a9dc | 5110 | |
b03f96dc | 5111 | 2008-02-05 Juanma Barranquero <lekktu@gmail.com> |
20f1ef2e | 5112 | |
b03f96dc | 5113 | * unexhp9k800.c (read_header): Replace `legal' with `valid'. |
77d1daf2 | 5114 | |
d5958163 CY |
5115 | 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) |
5116 | ||
5117 | * xterm.c (x_set_offset): Don't change the gravity if | |
5118 | CHANGE_GRAVITY is -1. | |
5119 | ||
9997701e CY |
5120 | 2008-02-23 Chong Yidong <cyd@stupidchicken.com> |
5121 | ||
5122 | * fileio.c (auto_save_error_occurred): New var. | |
5123 | (auto_save_error): Set it. | |
5124 | (Fdo_auto_save): Don't overwrite the error message if an auto-save | |
5125 | error occurred. | |
5126 | ||
9d95a291 EZ |
5127 | 2008-02-23 Eli Zaretskii <eliz@gnu.org> |
5128 | ||
5129 | * w32.c (globals_of_w32): Add initializations for | |
5130 | g_b_init_get_sid_sub_authority and | |
5131 | g_b_init_get_sid_sub_authority_count. | |
5132 | ||
43d1af23 SM |
5133 | 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca> |
5134 | ||
43a1d19b SM |
5135 | * font.c (font_match_xlfd, font_check_xlfd_parse): New funs. |
5136 | (font_parse_xlfd): Use them for sanity check. | |
608c3307 | 5137 | (Finternal_set_font_style_table): Make sure the table is bijective. |
43a1d19b | 5138 | |
354884c4 SM |
5139 | Consolidate the image_cache to the terminal struct. |
5140 | * termhooks.h (P_): Remove redundant def. | |
5141 | (struct terminal): New field `image_cache'. | |
5142 | * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place | |
5143 | of FRAME_X_IMAGE_CACHE. | |
5144 | * xterm.h (struct x_display_info): Remove image_cache field. | |
5145 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
5146 | * w32term.h (struct w32_display_info): Remove image_cache field. | |
5147 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
5148 | * macterm.h (struct mac_display_info): Remove image_cache field. | |
5149 | (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. | |
5150 | * xterm.c (x_term_init): | |
5151 | * w32term.c (w32_term_init): | |
5152 | * macterm.c (mac_term_init): Set the image_cache in the terminal. | |
5153 | * dispextern.h (clear_image_cache, forall_images_in_image_cache): | |
5154 | Remove declarations. | |
5155 | (clear_image_caches, mark_image_cache): New declarations. | |
5156 | * xfaces.c (clear_face_cache): | |
5157 | * xdisp.c (redisplay_internal): Use clear_image_caches. | |
5158 | * image.c (clear_image_cache): Don't check that a frame is on | |
5159 | a window-system before checking if it shares the same cache. | |
5160 | (clear_image_caches): New function. | |
5161 | (Fclear_image_cache): Use it. | |
5162 | (mark_image): Move from allo.c. | |
5163 | (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. | |
5164 | * alloc.c (mark_image, mark_image_cache): Move to image.c. | |
5165 | (mark_object): Don't call mark_image_cache for frames. | |
5166 | (mark_terminals): Call mark_image_cache. | |
5167 | ||
c2e42690 SM |
5168 | * lisp.h (Fdelete_terminal): Declare. |
5169 | ||
43d1af23 SM |
5170 | * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID) |
5171 | (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of | |
5172 | wrong_type_argument. | |
5173 | ||
cc8d1311 KH |
5174 | 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp> |
5175 | ||
5176 | * Makefile.in (lisp): Remove devanagari.el, kannada.el, | |
4a4bdfc7 | 5177 | malayalam.el, and tamil.el. Add sinhala.el. |
cc8d1311 | 5178 | |
6bd92640 SM |
5179 | 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca> |
5180 | ||
5181 | * xterm.c (x_connection_closed): Consolidate identical tests. | |
5182 | (x_delete_terminal): Don't crash if called via x_connection_closed. | |
5183 | ||
a73b5627 KH |
5184 | 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp> |
5185 | ||
5186 | * xdisp.c (decode_mode_spec): New arg string. | |
6bd92640 | 5187 | (display_mode_element): Adjust for the above change. |
a73b5627 | 5188 | |
1b511542 SM |
5189 | 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca> |
5190 | ||
5191 | * callint.c (Fcall_interactively): Use AREF. | |
5192 | ||
81aefea4 SM |
5193 | 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca> |
5194 | ||
5195 | * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs. | |
5196 | ||
880820fe | 5197 | 2008-02-18 Jan Djärv <jan.h.d@swipnet.se> |
2d7117fe JD |
5198 | |
5199 | * xfns.c (Fx_show_tip): Set string to " " if empty. | |
5200 | ||
a2b84f35 DN |
5201 | 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu> |
5202 | ||
5203 | * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive | |
5204 | with Qt. | |
5205 | ||
43c0454d KH |
5206 | 2008-02-17 Kenichi Handa <handa@m17n.org> |
5207 | ||
5208 | * ftfont.c (ftfont_shape): Return Lispy number. | |
5209 | ||
5210 | * xfaces.c (prepare_face_for_display): Use display_info->font->fid | |
5211 | for GCs. | |
5212 | (Finternal_set_font_selection_order): Call font_update_sort_order | |
5213 | only when enable_font_backend is set. | |
5214 | (realize_x_face): Set face->font_info to that of default face only | |
5215 | when enable_font_backend is set. | |
5216 | ||
5217 | * xdisp.c (handle_composition_prop): Set it->c to the fist | |
5218 | characte of the composed region. | |
5219 | (fill_composite_glyph_string): Set base_face->font_info to | |
5220 | s->font_info. Get a face for ascii from base_face->ascii_face. | |
5221 | (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string | |
5222 | with a face already decided. | |
5223 | (x_produce_glyphs): Be sure to set it->ascent and it->descent to | |
5224 | non-negative. | |
978bef9a JB |
5225 | (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING, |
5226 | call font_prepare_composition unconditionally. | |
43c0454d | 5227 | |
978bef9a | 5228 | * xfns.c (x_make_gc): Use the default font id of the frame for GCs. |
43c0454d KH |
5229 | |
5230 | * xterm.h (struct x_display_info): New member font. | |
5231 | ||
5232 | * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs. | |
5233 | (x_set_mouse_face_gc, x_new_font): Likewise. | |
5234 | (x_term_init): Setup display_info->font. | |
5235 | (x_delete_terminal): Free display_info->font. | |
5236 | ||
5237 | * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT. | |
5238 | ||
5239 | * ftxfont.c (ftxfont_default_fid): Delete it. | |
5240 | (ftxfont_open): Set xfont->fid to 0. | |
978bef9a | 5241 | (ftxfont_end_for_frame): Clear data specific to the frame and the |
43c0454d KH |
5242 | font-driver. |
5243 | ||
5244 | * xftfont.c (xftfont_default_fid): Delete it. | |
5245 | (xftfont_open): Set xfont->fid to 0. | |
5246 | ||
5247 | * fontset.c (FONTSET_OBJLIST): New macro. | |
5248 | (fontset_find_font): Update font-object list of the fontset. | |
5249 | (free_realized_fontset): New function. | |
5250 | (free_face_fontset): Call free_realized_fontset. | |
5251 | (Ffont_info): Call font_close_object only when enable_font_backend | |
5252 | is set. | |
5253 | ||
5254 | * font.c [HAVE_X_WINDOWS]: Include xterm.h. | |
5255 | [HAVE_NTGUI]: Include w32term.h. | |
5256 | [MAC_OS]: Include macterm.ch. | |
5257 | (font_otf_ValueRecord): Use make_number. | |
5258 | (font_finish_cache): Fix handling of reference count. | |
5259 | (font_clear_cache): Update num_fonts. | |
5260 | (font_open_entity): Update smallest_char_width and | |
5261 | smallest_font_height of the frame. | |
5262 | (font_close_object): Update num_fonts. | |
5263 | (Fclear_font_cache): Fix finding the target cache data. | |
5264 | ||
be617367 GM |
5265 | 2008-02-16 Glenn Morris <rgm@gnu.org> |
5266 | ||
5267 | * fontset.c (Finternal_char_font): Fix compilation warning. | |
5268 | ||
2930d117 EZ |
5269 | 2008-02-16 Eli Zaretskii <eliz@gnu.org> |
5270 | ||
634d3003 EZ |
5271 | * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP |
5272 | instead of char arrays. Enlarge the size of array passed to | |
5273 | get_token_information. | |
5274 | ||
2930d117 EZ |
5275 | * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation |
5276 | warnings. | |
5277 | ||
79214046 DN |
5278 | 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu> |
5279 | ||
5280 | * .gdbinit: Don't set `args', it breaks gdb --args. | |
5281 | ||
7f5d2c72 SM |
5282 | 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca> |
5283 | ||
5284 | * fileio.c (Finsert_file_contents): Adjust offsets when replacing | |
5285 | within a narrowed buffer. | |
5286 | ||
6edacc43 KH |
5287 | 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp> |
5288 | ||
b270d6af JB |
5289 | * coding.c (decode_coding_object, encode_coding_object): |
5290 | Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer. | |
6edacc43 | 5291 | |
174105f7 SM |
5292 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
5293 | ||
b270d6af JB |
5294 | * coding.c (coding_set_destination): Use BEG_BYTE rather than |
5295 | hardcoding 1. | |
13818c30 SM |
5296 | (detect_coding_system): |
5297 | * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text) | |
5298 | (string_char_to_byte, string_byte_to_char, insert_from_gap): | |
5299 | * insdel.c (insert_from_gap): | |
5300 | * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos) | |
5301 | (string_char_to_byte, string_byte_to_char, string_make_multibyte) | |
5302 | (string_to_multibyte): | |
5303 | * character.c (chars_in_text, multibyte_chars_in_text): | |
5304 | * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions. | |
5305 | ||
f1c99628 SM |
5306 | * character.h (FETCH_STRING_CHAR_ADVANCE) |
5307 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE) | |
5308 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF. | |
5309 | (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1. | |
5310 | ||
7927d8e3 SM |
5311 | * casefiddle.c (casify_region): Only call after-change and composition |
5312 | functions on the part of the region that was changed. | |
5313 | ||
adf6a429 | 5314 | * keyboard.c (read_avail_input): |
174105f7 SM |
5315 | * frame.c (Fdelete_frame): Call Fdelete_terminal. |
5316 | ||
3ee24aec SM |
5317 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
5318 | ||
5319 | * buffer.c (clone_per_buffer_values, reset_buffer_local_variables) | |
5320 | (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list. | |
5321 | ||
4ed4b975 JB |
5322 | 2008-02-11 Juanma Barranquero <lekktu@gmail.com> |
5323 | ||
5324 | * w32menu.c (push_submenu_start, push_submenu_end) | |
5325 | (push_left_right_boundary, push_menu_pane, push_menu_item): | |
5326 | * keyboard.c (read_key_sequence): Don't pass args with side effects | |
5327 | to AREF, it fails when compiling with -DENABLE_CHECKING. | |
5328 | ||
79e3bfb8 KH |
5329 | 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp> |
5330 | ||
4ed4b975 JB |
5331 | * Makefile.in (${lispsource}international/charprop.el): |
5332 | Delete this target. | |
6e76043f | 5333 | |
79e3bfb8 KH |
5334 | * search.c (boyer_moore): Fix incorrect synching of the trunk and |
5335 | emacs-unicode-2. | |
5336 | ||
5b8de9c5 SM |
5337 | 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
5338 | ||
5339 | * terminal.c (Fdelete_terminal): Clean up the `force' path. | |
5340 | ||
eac1939a SM |
5341 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
5342 | ||
c53956fe SM |
5343 | * frame.c (Qnoelisp): New symbol. |
5344 | (syms_of_frame): Initialize it. | |
5345 | (Fdelete_frame): Use it to distinguish a mere `force' passed from | |
5346 | someharmles Elisp code, from a strong `force' from x_connection_closed. | |
5347 | * frame.h (Qnoelisp): Declare. | |
5348 | * xterm.c (x_connection_closed): Pass `noelisp'. | |
5349 | ||
eac1939a SM |
5350 | * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker) |
5351 | (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd) | |
5352 | (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type | |
5353 | rather than `int' for the type of `type'. | |
5354 | ||
13f6772b DN |
5355 | 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu> |
5356 | ||
5357 | * s/gnu-linux.h: Remove support for non-ELF and linux-1.x. | |
5358 | ||
5359 | * Makefile.in (GNUC): Remove support for gcc-1.x. | |
5360 | ||
e8455367 RS |
5361 | 2008-02-10 Richard Stallman <rms@gnu.org> |
5362 | ||
5363 | * lisp.h (ASET): Use AREF, not ASLOT. | |
5364 | ||
4b75ffab SM |
5365 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> |
5366 | ||
5367 | * lisp.h (ASET): Check bounds. | |
5368 | ||
d224e8c2 GM |
5369 | 2008-02-10 Glenn Morris <rgm@gnu.org> |
5370 | ||
5371 | * buffer.c (mode-name): Doc fix. | |
5372 | ||
4624371d DN |
5373 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
5374 | ||
290afd83 JB |
5375 | * Makefile.in: |
5376 | * emacs.c: | |
5377 | * gmalloc.c: | |
5378 | * keyboard.c: | |
5379 | * lisp.h: | |
5380 | * m/ibm370aix.h: | |
5381 | * process.c: | |
5382 | * regex.c: | |
5383 | * s/hpux.h: | |
5384 | * sysdep.c: | |
5385 | * sysselect.h: | |
5386 | * systty.h: | |
5387 | * unexec.c: | |
5388 | * w32term.c: | |
5389 | * xsmfns.c: | |
5390 | * xterm.c: Remove code that deals with obsolete variables. | |
4624371d DN |
5391 | |
5392 | * s/msdos.h (DONT_NEED_ENVIRON): Don't define. | |
5393 | ||
5394 | * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, | |
5395 | nothing else needs it anymore. | |
5396 | ||
274ec34b EZ |
5397 | 2008-02-09 Eli Zaretskii <eliz@gnu.org> |
5398 | ||
5399 | * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table | |
5400 | instead of unibyte_char_to_multibyte. | |
5401 | ||
deeaffe1 DN |
5402 | 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu> |
5403 | ||
5404 | * s/gnu-linux.h: Remove commented out code. | |
5405 | ||
4ed4b975 | 5406 | * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. |
deeaffe1 DN |
5407 | |
5408 | * Makefile.in: Update what RMS says about using autoconf. | |
4ed4b975 | 5409 | (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable. |
c3f9fba8 | 5410 | (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1) |
deeaffe1 DN |
5411 | (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) |
5412 | (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional. | |
5413 | ||
68b587a6 SM |
5414 | 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca> |
5415 | ||
9141ca5e SM |
5416 | * keymap.c (Fkey_description): Move side effect outside of macro call. |
5417 | ||
dfae5f9a | 5418 | * xfaces.c (Finternal_make_lisp_face): |
b1ebcadb SM |
5419 | * keyboard.c (add_command_key, parse_menu_item): Use ASET. |
5420 | ||
ff7a2223 SM |
5421 | * fontset.c (free_face_fontset): Use FONTSET_FROM_ID. |
5422 | (syms_of_fontset): Use ASET. | |
5423 | ||
68b587a6 SM |
5424 | * fns.c (concat): Move side effect outside of macro call. |
5425 | (hash_clear): Use ASET. | |
5426 | ||
a31787b1 RS |
5427 | 2008-02-08 Richard Stallman <rms@gnu.org> |
5428 | ||
5429 | * frame.c (Fdelete_frame): If FORCE, don't call hooks. | |
5430 | If FORCE, and frame has a surrogate minibuffer for another frame, | |
5431 | delete the other frame first. | |
5432 | ||
987be29b | 5433 | 2008-02-07 Timo Savola <timo.savola@iki.fi> |
1540a61a JD |
5434 | |
5435 | * xterm.c (x_detect_focus_change): Handle embed client message. | |
5436 | (handle_one_xevent): Ditto. | |
5437 | (handle_one_xevent): If embedded and we get a button press/release, | |
5438 | request focus. | |
5439 | (xembed_set_info, xembed_send_message): New functions. | |
5440 | (x_make_frame_visible): Call xembed_set_info if embedded. | |
5441 | (x_make_frame_invisible): Call xembed_set_info if embedded. | |
5442 | (x_term_init): Initialize Xatom_XEMBED. | |
5443 | (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also. | |
5444 | (x_iconify_frame): Ditto. | |
5445 | ||
5446 | * xterm.h (struct x_display_info): Add AtomXatom_XEMBED. | |
5447 | (enum xembed_info, enum xerm srmbed_message, enum xembed_focus) | |
5448 | (enum xembed_modifier, enum xembed_accelerator): New. | |
5449 | (xembed_set_info, xembed_send_message): Declare. | |
5450 | (FRAME_X_EMBEDDED_P): New. | |
5451 | ||
5452 | * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call | |
5453 | gtk_plug_new. | |
5454 | ||
5455 | * xfns.c (Fx_create_frame): Do not override the explicitly set parent | |
5456 | window ID of a frame. | |
5457 | (x_window): Reparent frame if embedded. | |
5458 | (Fx_create_frame): Don't set border width if embedded. | |
5459 | ||
1f204af3 | 5460 | * emacs.c (USAGE3): Add --parent-id. |
1540a61a JD |
5461 | (standard_args): Ditto. |
5462 | ||
880820fe | 5463 | 2008-02-07 Jan Djärv <jan.h.d@swipnet.se> |
f937a7db JD |
5464 | |
5465 | * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". | |
5466 | ||
92413ef3 JD |
5467 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
5468 | ||
6f69e89b | 5469 | Use "do...while (0)", not "if (1)...else" in macro definitions. |
987be29b RF |
5470 | The latter provokes a warning from gcc about the empty else, when |
5471 | followed by ";". Also, without that trailing semicolon, it would | |
5472 | silently swallow up any following statement. | |
c3f9fba8 | 5473 | * syntax.h (SETUP_SYNTAX_TABLE) |
987be29b RF |
5474 | (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise. |
5475 | * buffer.h (DECODE_POSITION): Likewise. | |
5476 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. | |
5477 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise. | |
5478 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise. | |
5479 | (FETCH_CHAR_ADVANCE): Likewise. | |
5480 | (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise. | |
92413ef3 | 5481 | |
03fa5713 GM |
5482 | 2008-02-07 Jim Meyering <meyering@redhat.com> |
5483 | ||
5484 | * lread.c [lint]: Don't include <sys/inode.h>. | |
5485 | ||
3ae565b3 SM |
5486 | 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca> |
5487 | ||
5488 | * xselect.c (x_handle_dnd_message): | |
5489 | * xmenu.c (digest_single_submenu, xmenu_show): | |
5490 | * xdisp.c (with_echo_area_buffer_unwind_data) | |
5491 | (format_mode_line_unwind_data, unwind_format_mode_line) | |
5492 | (display_menu_bar): | |
5493 | * eval.c (Ffetch_bytecode): | |
5494 | * doc.c (store_function_docstring): | |
5495 | * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code) | |
5496 | (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map): | |
5497 | * buffer.c (add_overlay_mod_hooklist): Use ASET. | |
5498 | ||
146b6e55 KH |
5499 | 2008-02-07 Kenichi Handa <handa@m17n.org> |
5500 | ||
5501 | * ftxfont.c (ftxfont_open): Don't set | |
5502 | dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. | |
5503 | ||
5504 | * ftfont.c (ftfont_open): Fix previous change. | |
5505 | ||
46a923ac JR |
5506 | 2008-02-06 Jason Rumney <jasonr@gnu.org> |
5507 | ||
5508 | * w32font.c (w32font_text_extents): Fill in lbearing metric. | |
5509 | Use cached metrics for ASCII characters. | |
3ae565b3 SM |
5510 | (w32font_open_internal): Don't set font's owning_frame. |
5511 | Cache metrics for ASCII characters. | |
46a923ac JR |
5512 | |
5513 | * w32font.h (struct w32font_info): Add ascii_metrics. | |
5514 | Remove owning_frame. | |
5515 | ||
da7d7c21 KH |
5516 | 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp> |
5517 | ||
5518 | * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent | |
5519 | to negative value. | |
5520 | ||
5521 | * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info. | |
5522 | ||
3ae565b3 | 5523 | * ftfont.c (ftfont_open): Fix calculation of font->font.average_width. |
da7d7c21 KH |
5524 | |
5525 | * charset.c (syms_of_charset): Set QCtest and Qeq. | |
5526 | ||
c62c8ddb SM |
5527 | 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> |
5528 | ||
ca319910 SM |
5529 | * process.c (Fstart_process): |
5530 | * callproc.c (Fcall_process): Handle the case where | |
5531 | Funhandled_file_name_directory returns nil. | |
5532 | ||
76860cbb SM |
5533 | * font.h (enum lgstring_indices, enum lglyph_indices): New enums. |
5534 | (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros. | |
f9ffa1ea SM |
5535 | * font.c (check_gstring): Use them and AREF to access the vector before |
5536 | we know it's really a gstring. | |
5537 | (Ffont_shape_text): Fix typo. | |
5538 | (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups. | |
76860cbb | 5539 | |
15139d67 SM |
5540 | * composite.h (Fcompose_region_internal, Fcompose_string_internal): |
5541 | Declare. | |
5542 | ||
c62c8ddb SM |
5543 | * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement. |
5544 | ||
04b65d2b JR |
5545 | 2008-02-05 Jason Rumney <jasonr@gnu.org> |
5546 | ||
5547 | * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth. | |
5548 | Set smallest_font_height and smallest_char_width in display info. | |
5549 | ||
fccaebfd KH |
5550 | 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp> |
5551 | ||
5552 | * coding.c (decode_eol): Pay attention to coding->dst_multibyte. | |
5553 | ||
e7d7fd8c MB |
5554 | 2008-02-05 Miles Bader <miles@gnu.org> |
5555 | ||
5556 | * xfaces.c (get_lface_attributes, merge_named_face) | |
5557 | (lookup_named_face, lookup_derived_face, realize_named_face): | |
5558 | Revert 2008-02-01 change by cyd@stupidchicken.com. | |
5559 | ||
3d4448a8 KH |
5560 | 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp> |
5561 | ||
5562 | * fontset.c (Ffontset_info): Handle the case of inhibitting the | |
5563 | fallback fonts. | |
15139d67 | 5564 | (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names. |
3d4448a8 | 5565 | |
5ace1ec1 JR |
5566 | 2008-02-04 Jason Rumney <jasonr@gnu.org> |
5567 | ||
5568 | * w32font.c (w32font_open_internal): Use font_unparse_fcname to | |
5569 | set full_name. | |
e3a77b22 | 5570 | (w32font_open_internal): Use xmalloc, xrealloc, xfree. |
5ace1ec1 | 5571 | |
ffe42183 JR |
5572 | 2008-02-03 Jason Rumney <jasonr@gnu.org> |
5573 | ||
5574 | * makefile.w32-in (OBJ1): Include font.o here. | |
5575 | (FONTOBJ) [USE_FONTBACKEND]: Instead of here. | |
5576 | ||
526dc3b3 JR |
5577 | 2008-02-02 Jason Rumney <jasonr@gnu.org> |
5578 | ||
a0fece35 | 5579 | * makefile.w32-in (temacs): Bump EMHEAP to 21. |
526dc3b3 | 5580 | |
af805c82 JR |
5581 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
5582 | ||
5583 | * s/cygwin.h: Define VIRT_ADDR_VARIES. | |
5584 | ||
5585 | * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition. | |
5586 | ||
7f6519c5 AS |
5587 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
5588 | ||
1f45f627 | 5589 | * Makefile.in (shortlisp, lisp): Update for rename of |
7f6519c5 | 5590 | ../lisp/language/myanmar.el. |
7f6519c5 | 5591 | |
26f8aa27 CY |
5592 | 2008-02-01 Chong Yidong <cyd@stupidchicken.com> |
5593 | ||
1f45f627 | 5594 | * xfaces.c (get_lface_attributes): Delete function. |
26f8aa27 CY |
5595 | (merge_named_face, lookup_named_face, lookup_derived_face) |
5596 | (realize_named_face): Call lface_from_face_name directly, and use | |
5597 | the fact that merge_face_vectors does not alter its FROM argument. | |
5598 | ||
73acf815 | 5599 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5600 | |
5601 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode | |
1f45f627 | 5602 | input in the default locale. Handle non-Unicode multibyte input. |
aca7a3d2 | 5603 | |
73acf815 | 5604 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5605 | |
5606 | * fontset.c (reorder_font_vector): Exclude nil elements from the | |
5607 | font group. Don't try multiple fonts. | |
15139d67 | 5608 | (fontset_font): Adjust for the above change. |
aca7a3d2 MB |
5609 | (Finternal_char_font): Return nil if the found font doesn't |
5610 | contain the character ch. | |
5611 | ||
4c4475a8 | 5612 | * Makefile.in (lisp, shortlisp): Add cham.el. |
aca7a3d2 | 5613 | |
73acf815 | 5614 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5615 | |
5616 | * font.h (FONTP): Make it return 1 also for a font-object. | |
5617 | ||
5618 | * .gdbinit (xfontset): New function. | |
5619 | ||
5620 | * font.c (font_find_for_lface): Check if the character C is | |
5621 | supported or not only for the first font. | |
5622 | ||
5623 | * fontset.c (reorder_font_vector): Fix typo. | |
5624 | (fontset_find_font): Don't add a font-spec specifying a script. | |
5625 | Use 0 (not Qt) for the indication of empty font-group. Change the | |
5626 | format of RFONT-DEF. Return Qt if no font in the font-group | |
5627 | support the character. | |
15139d67 | 5628 | (fontset_font): Adjust for the above change. If no font was |
aca7a3d2 | 5629 | found the character, remember that. |
15139d67 | 5630 | (face_for_char): Adjust for the change of RFONT-DEF. |
aca7a3d2 MB |
5631 | (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify |
5632 | no font for the target. | |
15139d67 | 5633 | (Finternal_char_font): Adjust for the change of RFONT-DEF. |
aca7a3d2 | 5634 | |
73acf815 | 5635 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5636 | |
5637 | * font.c (font_load_for_face): Handle the case that the font in | |
5638 | face->lface is a string. | |
5639 | ||
73acf815 | 5640 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 5641 | |
1f45f627 | 5642 | * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface. |
aca7a3d2 | 5643 | |
73acf815 | 5644 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5645 | |
5646 | * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: | |
5647 | Fix previous change. If the frame is not on a window system, | |
5648 | signal an error. | |
5649 | ||
73acf815 | 5650 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 5651 | |
4c4475a8 GM |
5652 | * coding.c (decode_coding_object, encode_coding_object): Adjust |
5653 | marker positions after conversion. | |
aca7a3d2 MB |
5654 | |
5655 | * lisp.h (struct Lisp_Marker): New member need_adjustment. | |
5656 | ||
73acf815 | 5657 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5658 | |
5659 | * font.c (font_find_for_lface): Fix the handling of the return | |
5660 | value of font_has_char. | |
5661 | (Ffont_shape_text): Fix previous change. | |
5662 | ||
5663 | * fontset.c (FONTSET_REF_AND_RANGE): Delete it. | |
5664 | (fontset_ref_and_range): Delete it. | |
5665 | (fontset_find_font): Call char_table_ref_and_range instead of | |
5666 | FONTSET_REF_AND_RANGE. | |
5667 | (make_fontset): Don't setup font groups of Latin here. | |
5668 | (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII. | |
5669 | (new_fontset_from_font): Make the specified font the default for | |
5670 | all Latin characters. | |
5671 | ||
73acf815 | 5672 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5673 | |
5674 | * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame | |
5675 | is on a window system before accessing the fontset of the frame. | |
5676 | ||
73acf815 | 5677 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 5678 | |
1f45f627 | 5679 | * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el. |
aca7a3d2 MB |
5680 | |
5681 | * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only | |
5682 | when both HAVE_M17N_FLT and HAVE_LIBOTF are defined. | |
5683 | ||
5684 | * font.c (Ffont_shape_text): If the font driver doesn't have a | |
5685 | shaper function, make zero-width glyphs to have at least one-pixel | |
5686 | width. Fix setting of `to' field of glyphs. | |
5687 | ||
73acf815 | 5688 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5689 | |
5690 | * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of | |
5691 | glyphs. | |
5692 | ||
1f45f627 | 5693 | * font.h (struct font_driver): Improve docstring of member `shape'. |
aca7a3d2 | 5694 | |
73acf815 | 5695 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5696 | |
5697 | * composite.c (syms_of_composite): Fix docstring of | |
5698 | auto-composition-function. | |
5699 | ||
5700 | * font.h (LGLYPH_SIZE): New macro. | |
5701 | ||
5702 | * font.c (Ffont_fill_gstring): Stop filling when a character not | |
5703 | supported by the font is found. | |
5704 | (Ffont_shape_text): When a shape callback function returns nil, | |
5705 | try at most two more times with larger gstring. | |
15139d67 | 5706 | (Ffont_at): Fix getting of w. Call font_at with correct 5th argument. |
aca7a3d2 MB |
5707 | |
5708 | * xdisp.c (handle_auto_composed_prop): Change the argument to | |
5709 | auto-composition-function. | |
5710 | ||
5711 | * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
5712 | (ftfont_shape_by_flt): If an element of lgstring is nil, make a | |
5713 | Lispy glyph and store it in the lgstring. | |
5714 | ||
5715 | * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE. | |
5716 | ||
5717 | * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE. | |
5718 | ||
73acf815 | 5719 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5720 | |
5721 | * font.c (Ffont_shape_text): Avoid unnecessary composition. | |
5722 | ||
5723 | * fontset.c (Vfont_encoding_charset_alist): New variable. | |
5724 | (syms_of_fontset): DEFVAR it. | |
4c4475a8 GM |
5725 | (reorder_font_vector, fontset_find_font): Optimize for the case of |
5726 | no need of reordering. | |
aca7a3d2 MB |
5727 | (face_for_char): Map the charset property by |
5728 | Vfont_encoding_charset_alist. | |
5729 | ||
73acf815 | 5730 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5731 | |
5732 | * w32font.c (logfonts_match): Don't check adstyle here. | |
5733 | (font_matches_spec): Check here against physical font instead. | |
5734 | (add_font_entity_to_list): Avoid some substitutions. | |
5735 | ||
5736 | * font.c (font_parse_fcname): Default weight and slant to normal. | |
5737 | (font_score): Prefer normal fonts if weight or slant unspecified. | |
5738 | (font_score) [WINDOWSNT]: Scale weight difference down to closer | |
5739 | match freetype scores. | |
5740 | ||
73acf815 | 5741 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5742 | |
5743 | * w32font.c (w32font_text_extents): Don't use the frame stored in the | |
5744 | font, as it may have been deleted. | |
5745 | (w32_enumfont_pattern_entity): Map generic family to adstyle using | |
5746 | most common hyphenless variation. | |
5747 | (logfonts_match): Check generic family. | |
5748 | (font_matches_spec): Don't check generic family here. | |
5749 | (fill_in_logfont): Set generic family based on adstyle. | |
5750 | ||
5751 | * w32font.h (w32font_get_cache): Update declaration. | |
5752 | ||
73acf815 | 5753 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5754 | |
5755 | * ftfont.c (ftfont_get_cache): Adjust the argument type. | |
5756 | ||
15139d67 | 5757 | * frame.c (x_set_font_backend): Don't call Fclear_font_cache. |
dde8403f | 5758 | If none of the new drivers are available, call font_update_drivers |
aca7a3d2 MB |
5759 | with the old drivers. |
5760 | ||
5761 | * w32font.c (w32font_get_cache): Adjust the argument type. | |
5762 | ||
5763 | * xfont.c (xfont_get_cache): Adjust the argument type. | |
5764 | ||
5765 | * font.h (struct font_driver): Change argument type of get_cache. | |
5766 | ||
5767 | * xftfont.c (xftfont_start_for_frame): Delete prototype. | |
5768 | ||
5769 | * font.c (Ffont_get): Fix arguments to Fassoc. | |
15139d67 | 5770 | (font_prepare_cache, font_finish_cache, font_get_cache): New functions. |
aca7a3d2 | 5771 | (font_clear_cache): New function. |
4c4475a8 | 5772 | (font_list_entities, font_matching_entity): Use font_get_cache. |
15139d67 | 5773 | (font_update_drivers): Call font_clear_cache when finishing a driver. |
aca7a3d2 MB |
5774 | |
5775 | * fontset.c (fontset_find_font): Fix previous change. | |
5776 | ||
73acf815 | 5777 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5778 | |
5779 | * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access | |
5780 | dpyinfo->font_table. | |
5781 | (x_delete_display) [USE_FONT_BACKEND]: Likewise. | |
15139d67 | 5782 | (x_delete_terminal) [USE_FONT_BACKEND]: Likewise. |
aca7a3d2 MB |
5783 | |
5784 | * font.c (font_at): Handle the case that the arg C is negative. | |
5785 | Handle the unibyte case. | |
5786 | (Ffont_at): Call font_at with the arg C -1. | |
5787 | ||
5788 | * xdisp.c (handle_auto_composed_prop): Don't get a character at | |
15139d67 SM |
5789 | the position here, and call font_at with the arg C -1. |
5790 | Don't check the range of the existing composition at the point. | |
aca7a3d2 | 5791 | |
73acf815 | 5792 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 5793 | |
15139d67 | 5794 | * fontset.c (fontset_add): New args charset_id and family. |
1f45f627 | 5795 | Change caller. |
4c4475a8 GM |
5796 | (load_font_get_repertory, fontset_find_font): Assume that |
5797 | font_spec is always a font-spec object. | |
aca7a3d2 MB |
5798 | (Fset_fontset_font): Always store a font-spec object in a fontset. |
5799 | ||
5800 | * xdisp.c (handle_auto_composed_prop): Use Fget_text_property | |
5801 | instead of get_property_and_range. | |
5802 | ||
73acf815 | 5803 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5804 | |
5805 | * xftfont.c (struct xftfont_info): Delete the member ft_face. | |
5806 | (xftfont_open): Don't keep locking face. | |
5807 | (xftfont_close): Don't unlock face. | |
4c4475a8 | 5808 | (xftfont_anchor_point, xftfont_shape): Lock and unlock face. |
aca7a3d2 MB |
5809 | |
5810 | * fontset.c (fontset_find_font): Don't prefer a font of | |
5811 | supplementary charset. | |
5812 | ||
73acf815 | 5813 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5814 | |
1f45f627 GM |
5815 | * ftfont.c (struct OpenTypeSpec): Rename members script_tag to |
5816 | script, langsys_tag to langsys, new member script. | |
aca7a3d2 MB |
5817 | (OTF_TAG_STR): Terminate by '\0'. |
5818 | (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the | |
5819 | listing to the script specified in that property. Fix arg to | |
5820 | OTF_check_features. | |
5821 | ||
73acf815 | 5822 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5823 | |
5824 | * w32font.h: New file. | |
5825 | ||
5826 | * w32font.c: Include it. | |
5827 | (struct w32font_info): Add owning_frame field. Move to w32font.h. | |
5828 | (w32font_open): Set owning_frame. | |
5829 | (w32font_text_extents): Use owning_frame. | |
5830 | (struct font_callback_data): Add opentype_only field. | |
5831 | (add_font_entity_to_list): Use it to filter fonts. | |
5832 | Don't check against full name. | |
5833 | (w32font_list_internal): New function. | |
5834 | (w32font_list): Use it. | |
5835 | (w32font_match_internal): New function. | |
5836 | (w32font_match): Use it. | |
5837 | (w32font_open_internal): New function. | |
5838 | (w32font_open): Use it. | |
5839 | (w32font_get_cache, w32font_close, w32font_has_char) | |
5840 | (w32font_encode_char, w32font_text_extents, w32font_draw): | |
5841 | Make non-static. | |
5842 | ||
5843 | * makefile.w32-in (w32font.o): Depend on w32font.h. | |
5844 | ||
73acf815 | 5845 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5846 | |
5847 | * charset.c (Fdefine_charset_internal): Record a supplementary | |
5848 | charset at the tail of Vcharset_order_list. | |
5849 | ||
5850 | * font.c (Ffont_shape_text): Fix the return value. | |
5851 | ||
5852 | * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names. | |
5853 | ||
5854 | * xdisp.c (handle_auto_composed_prop): Fix previous change. | |
5855 | ||
73acf815 | 5856 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5857 | |
5858 | * ftfont.c (struct OpenTypeSpec): New struct. | |
5859 | (OTF_SYM_TAG, OTF_TAG_STR): New macros. | |
5860 | (ftfont_get_open_type_spec): New function. | |
5861 | (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property. | |
5862 | ||
15139d67 | 5863 | * lread.c (read1): Redo the previous change with checking Vpurify_flag. |
aca7a3d2 | 5864 | |
73acf815 | 5865 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5866 | |
5867 | * w32font.c (add_font_entity_to_list): Compare only the beginning | |
5868 | of full name. | |
5869 | ||
73acf815 | 5870 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 5871 | |
15139d67 SM |
5872 | * xdisp.c (handle_auto_composed_prop): Simplify the code. |
5873 | Never return HANDLED_RECOMPUTE_PROPS. | |
aca7a3d2 | 5874 | |
73acf815 | 5875 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
5876 | |
5877 | * font.c (font_gstring_produce): Delete it. | |
5878 | ||
15139d67 SM |
5879 | * composite.h (COMPOSITION_METHOD): |
5880 | Handle COMPOSITION_WITH_GLYPH_STRING. | |
aca7a3d2 | 5881 | |
73acf815 | 5882 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 5883 | |
15139d67 | 5884 | * xfont.c (Qx): Delete. |
aca7a3d2 MB |
5885 | (syms_of_xfont): Don't initialize Qx. |
5886 | ||
15139d67 SM |
5887 | * composite.h (enum composition_method): |
5888 | Define COMPOSITION_WITH_GLYPH_STRING unconditionally. | |
aca7a3d2 | 5889 | |
73acf815 | 5890 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
5891 | |
5892 | * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally. | |
5893 | (choose_face_font): Accept new form of font-spec. | |
5894 | ||
5895 | * frame.h (font_driver_list): Declare it unconditionally. | |
5896 | (struct frame): Define members font_driver_list and font_data_list | |
5897 | unconditionally. | |
5898 | ||
5899 | * fontset.c: Include "font.h" unconditionally. | |
15139d67 | 5900 | (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd. |
aca7a3d2 MB |
5901 | (Fset_fontset_font): Accept a font-spec object. |
5902 | ||
5903 | * font.c (font_unparse_xlfd): If pixel_size is zero, make the | |
5904 | PIXEL_SIZE part a wild card. | |
5905 | ||
5906 | * dispextern.h (struct glyph_string): Define members clip and | |
5907 | num_clips unconditionally. | |
5908 | (struct face): Define members font_info and extra unconditionally. | |
5909 | ||
5910 | * ftfont.c (ftfont_open): Set members maybe_otf and otf of | |
5911 | ftfont_info only when HAVE_LIBOTF is defined. | |
5912 | ||
73acf815 | 5913 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
5914 | |
5915 | * xdisp.c (back_to_previous_visible_line_start): Fix type of beg | |
5916 | and end. | |
5917 | ||
73acf815 | 5918 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
5919 | |
5920 | * w32font.c (w32font_driver): Add new fields. | |
5921 | ||
73acf815 | 5922 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 | 5923 | |
aca7a3d2 MB |
5924 | * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@. |
5925 | (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally. | |
5926 | (LIBES): Add @M17N_FLT_CFLAGS@. | |
5927 | ||
5928 | * composite.c (compose_text): Don't treat the new style | |
5929 | composition specially. | |
5930 | ||
5931 | * emacs.c (main): Call syms_of_font unconditionally. | |
5932 | ||
5933 | * font.h (FONT_ENTITY_NOT_LOADABLE) | |
5934 | (FONT_ENTITY_SET_NOT_LOADABLE): New macros. | |
15139d67 | 5935 | (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring. |
aca7a3d2 | 5936 | (struct font_driver): New member shape. |
1f45f627 | 5937 | (font_registry_charsets): Extern it. |
4c4475a8 | 5938 | (font_find_for_lface, font_prepare_composition): Adjust prototype. |
aca7a3d2 MB |
5939 | (font_otf_capability, font_drive_otf): Delete their externs. |
5940 | ||
5941 | * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>. | |
4c4475a8 GM |
5942 | (font_charset_alist, font_registry_charsets): Move from xfont.c |
5943 | and rename. | |
aca7a3d2 MB |
5944 | (font_prop_validate_otf): New function. |
5945 | (font_property_table): Register it for QCotf. | |
5946 | (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER) | |
15139d67 | 5947 | (font_drive_otf): Delete. |
1f45f627 | 5948 | (font_prepare_composition): New arg F. Adjust for the change of |
aca7a3d2 MB |
5949 | lispy gstring. |
5950 | (font_find_for_lface): New arg C. | |
15139d67 | 5951 | (font_load_for_face): Adjust for the change of font_find_for_lface. |
4c4475a8 GM |
5952 | (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of |
5953 | lispy gstring. | |
aca7a3d2 MB |
5954 | (Ffont_shape_text): New function. |
5955 | (Fopen_font): If the font size is not given, use 12-pixel. | |
5956 | (Ffont_at): New arg STRING. | |
15139d67 SM |
5957 | (syms_of_font): Initalize font_charset_alist. |
5958 | Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont | |
aca7a3d2 MB |
5959 | conditionally. |
5960 | ||
5961 | * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple | |
5962 | fonts of the same font-spec. Change the format of RFONT-DEF. | |
4c4475a8 GM |
5963 | (face_for_char, make_fontset_for_ascii_face, Finternal_char_font): |
5964 | Adjust for the change of RFONT-DEF. | |
15139d67 | 5965 | (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec. |
aca7a3d2 MB |
5966 | |
5967 | * ftfont.h: New file. | |
5968 | ||
5969 | * ftfont.c: Don't include Freetype headers. Include "ftfont.h". | |
5970 | (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. | |
5971 | (ftfont_open) [HAVE_LIBOTF]: Initialize the above members. | |
5972 | (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set | |
5973 | font_otf_capability and font_drive_otf, set ftfont_shape. | |
15139d67 | 5974 | (ftfont_list): Adjust for the change of :otf property value. |
aca7a3d2 MB |
5975 | (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct. |
5976 | (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf) | |
5977 | (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt) | |
1f204af3 | 5978 | (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. |
aca7a3d2 MB |
5979 | (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro. |
5980 | (otf_gstring, gstring, m17n_flt_initialized): New variables. | |
5981 | ||
15139d67 SM |
5982 | * w32term.c (x_draw_composite_glyph_string_foreground): |
5983 | Adjust for the change of lispy gstring. | |
aca7a3d2 | 5984 | |
15139d67 | 5985 | * xdisp.c (handle_composition_prop): Adjust for the change of |
aca7a3d2 | 5986 | lispy gstring. Call a function for auto-composition with the |
15139d67 SM |
5987 | third arg it->window. |
5988 | (fill_composite_glyph_string): Adjust for the change of lispy string. | |
5989 | (x_produce_glyphs): Adjust for the change of font_prepare_compositionl. | |
aca7a3d2 | 5990 | |
15139d67 | 5991 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
5992 | font_find_for_lface. |
5993 | ||
1f45f627 GM |
5994 | * xfont.c (x_font_charset_alist): Move to font.c and rename. |
5995 | (xfont_registry_charsets): Likewise. Change caller. | |
aca7a3d2 MB |
5996 | (syms_of_xfont): Don't handle x_font_charset_alist. |
5997 | ||
5998 | * xftfont.c: Include "ftfont.h". | |
15139d67 | 5999 | (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. |
aca7a3d2 MB |
6000 | (xftfont_open) [HAVE_LIBOTF]: Initialize the above members. |
6001 | (xftfont_close) [HAVE_LIBOTF]: Close otf. | |
6002 | (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. | |
15139d67 SM |
6003 | (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]: |
6004 | Set xftfont_driver.shape to xftfont_shape. | |
aca7a3d2 | 6005 | |
15139d67 | 6006 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
6007 | the change of lispy gstring. |
6008 | ||
73acf815 | 6009 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
6010 | |
6011 | * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error. | |
6012 | ||
73acf815 | 6013 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6014 | |
6015 | * w32font.c (w32font_draw): Fill background manually. | |
6016 | ||
73acf815 | 6017 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6018 | |
6019 | * font.c (Qfontp): Remove unused symbol. | |
6020 | (QCantialias): New symbol. | |
6021 | (syms_of_font): Define it. | |
6022 | (font_property_table): Set a validator for QCantialias. | |
6023 | ||
15139d67 SM |
6024 | * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY): |
6025 | Define if not already. | |
aca7a3d2 MB |
6026 | (QCfamily): Share with xfaces.c. |
6027 | (Qstandard, Qsubpixel, Qnatural): New symbols. | |
1f45f627 | 6028 | (syms_of_w32font): Define them. Don't define QCfamily here. |
aca7a3d2 MB |
6029 | (w32_antialias_type, lispy_antialias_type): New functions. |
6030 | (w32_enumfont_pattern_entity): New arg requested_font. | |
6031 | Set antialias parameter if non-default was requested. | |
6032 | (fill_in_logfont): Fill in lfQuality if :antialias specified. | |
6033 | ||
73acf815 | 6034 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
6035 | |
6036 | * lread.c (read1): Undo the previous change. | |
6037 | ||
73acf815 | 6038 | 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change) |
aca7a3d2 MB |
6039 | |
6040 | * frame.c (Fdelete_frame): Call font_update_drivers only when | |
6f69e89b | 6041 | USE_FONT_BACKEND is defined. |
aca7a3d2 | 6042 | |
73acf815 | 6043 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
6044 | |
6045 | * font.h (struct font_bitmap): New member bits_per_pixel. | |
6046 | (struct font_driver): New members start_for_frame and end_for_frame. | |
6047 | (struct font_data_list): New struct. | |
6048 | (font_put_frame_data, font_get_frame_data): Extern them. | |
6049 | ||
6050 | * frame.h (struct frame): New member font_data_list. | |
6051 | ||
6052 | * font.c (font_update_drivers): Call driver->start_for_frame and | |
6053 | driver->end_for_frame at proper timings. | |
6054 | (font_put_frame_data, font_get_frame_data): New functions. | |
6055 | (Ffont_spec): Add usage in the docstring. | |
6056 | ||
6057 | * frame.c (make_frame): Initialize f->font_data_list to NULL. | |
6058 | (Fdelete_frame): Call font_update_drivers. | |
6059 | ||
6060 | * xftfont.c (struct xftface_info): Delete the member xft_draw. | |
4c4475a8 | 6061 | (xftfont_prepare_face, xftfont_done_face): Adjust for the above change. |
aca7a3d2 MB |
6062 | (xftfont_get_xft_draw): New function. |
6063 | (xftfont_draw): Get XftDraw by xftfont_get_xft_draw. | |
6064 | (xftfont_end_for_frame): New function. | |
6065 | (syms_of_xftfont): Set xftfont_driver.end_for_frame. | |
6066 | ||
15139d67 | 6067 | * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs. |
1f45f627 | 6068 | Change argument. Cache GCs in the per-frame data. |
aca7a3d2 MB |
6069 | (struct ftxfont_frame_data): New struct. |
6070 | (ftxfont_draw_bitmap): New arg gc_fore and flush. | |
6071 | (ftxfont_prepare_face, ftxfont_done_face): Delete them. | |
15139d67 | 6072 | (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs. |
aca7a3d2 MB |
6073 | (ftxfont_end_for_frame): New function. |
6074 | (syms_of_ftxfont): Set ftxfont_driver.end_for_frame. | |
6075 | ||
6076 | * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel. | |
6077 | ||
73acf815 | 6078 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6079 | |
6080 | * xselect.c (Vselection_coding_system) | |
6081 | (Vnext_selection_coding_system): Delete them. | |
6082 | (syms_of_xselect): Don't declare selection-coding-system and | |
6083 | next-selection-coding-system. They are declared in select.el. | |
6084 | ||
73acf815 | 6085 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6086 | |
6087 | * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already. | |
6088 | ||
6089 | * w32fns.c: Include imm.h. | |
6090 | (get_composition_string_fn, get_ime_context_fn): New optional | |
6091 | system functions. | |
6092 | (globals_of_w32fns): Load them from imm32.dll. | |
6093 | (ignore_ime_char): New flag. | |
6094 | (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and | |
6095 | WM_IME_ENDCOMPOSITION messages. | |
6096 | ||
6097 | * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as | |
6098 | MULTIBYTE_CHAR_KEYSTROKE_EVENT. | |
6099 | ||
73acf815 | 6100 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
6101 | |
6102 | * lread.c (READCHAR): Call readchar with the 2nd arg NULL. | |
6103 | (READCHAR_REPORT_MULTIBYTE): New macro. | |
6104 | (readchar): New 2nd arg MULTIBYTE. | |
15139d67 SM |
6105 | (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. |
6106 | Make symbol's name multibyte according to the multibyteness of the | |
aca7a3d2 MB |
6107 | source. |
6108 | ||
73acf815 | 6109 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
6110 | |
6111 | * xfaces.c (face_for_overlay_string): Call lookup_face with | |
6112 | correct arguments (fix of synching with the trunk). | |
6113 | ||
73acf815 | 6114 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6115 | |
4c4475a8 GM |
6116 | * font.c (font_prop_validate_symbol, font_prop_validate_style) |
6117 | (font_prop_validate_non_neg, font_prop_validate_spacing): | |
6118 | Delete argument prop_index. | |
15139d67 SM |
6119 | (font_property_table): Change arguments to validater. Change Callers. |
6120 | (font_lispy_object): Delete. | |
aca7a3d2 MB |
6121 | (font_at): Use font_find_object instead fo font_lispy_object. |
6122 | ||
73acf815 | 6123 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
aca7a3d2 MB |
6124 | |
6125 | * fileio.c (Fexpand_file_name): Adjust multibyteness of directory | |
6126 | and file names. | |
6127 | ||
73acf815 | 6128 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6129 | |
6130 | * w32font.c (add_font_name_to_list): Avoid vertical fonts. | |
6131 | (font_matches_spec): Remove debug output. | |
6132 | (add_font_entity_to_list): Avoid using substituted fonts. | |
6133 | ||
73acf815 | 6134 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6135 | |
6136 | * doc.c (Fsnarf_documentation): | |
6137 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change. | |
6138 | ||
73acf815 | 6139 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 6140 | |
290afd83 | 6141 | * dispextern.h (struct glyph_row): Only define "clip" field if |
aca7a3d2 MB |
6142 | HAVE_WINDOW_SYSTEM is defined. |
6143 | ||
73acf815 | 6144 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
6145 | |
6146 | Fix up multi-tty merge. | |
6147 | ||
6148 | * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting | |
6149 | and indentation. | |
6150 | ||
6151 | * xfaces.c (free_realized_face, clear_face_gcs): | |
6152 | Include font_done_for_face in the input_blocked section, just in case. | |
6153 | ||
6154 | * xdisp.c (decode_mode_spec): Use terminal-local coding systems. | |
6155 | (get_char_face_and_encoding): Undo last change and remove the *other* | |
6156 | duplicate definition (i.e. keep the one that's better scoped and that | |
6157 | includes code for the font-backend). | |
6158 | ||
6159 | * terminal.c (create_terminal): Default keyboard_coding to | |
6160 | `no-conversion' and terminal_coding to `undecided'. | |
6161 | ||
6162 | * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag. | |
6163 | ||
6164 | * fontset.c (free_realized_fontsets): Check that the table entry does | |
6165 | contain a fontset before trying to compare it to `base'. | |
6166 | ||
6167 | * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc, | |
6168 | syms_of_charset, and syms_of_coding earlier because init_window_once | |
6169 | now needs Vcoding_system_hash_table to be setup. | |
6170 | ||
6171 | * coding.h (default_buffer_file_coding): Remove. | |
6172 | ||
6173 | * coding.c (default_buffer_file_coding): Remove. | |
6174 | (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather | |
6175 | than ->symbol, and use the terminal-local coding system. | |
6176 | (syms_of_coding): Don't setup the coding-systems that are not | |
6177 | terminal-local. | |
6178 | (Fdefine_coding_system_internal): Use XCAR/XCDR. | |
6179 | ||
6180 | * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table): | |
6181 | Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore. | |
6182 | ||
6183 | * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now | |
6184 | in chartab.c and were re-added here by mistake. | |
6185 | (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector. | |
6186 | ||
6187 | * doc.c (Fsnarf_documentation): | |
6188 | * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from | |
6189 | src to etc. | |
6190 | ||
6191 | * ChangeLog.10: Add mistakenly removed entry. | |
6192 | ||
73acf815 | 6193 | 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu> |
aca7a3d2 MB |
6194 | |
6195 | * Makefile.in (fringe.o, minibuf.o): Fix dependencies. | |
6196 | ||
73acf815 | 6197 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
6198 | |
6199 | * xdisp.c (get_char_face_and_encoding): Remove extraneous definition. | |
6200 | Add extra args to FACE_FOR_CHAR. | |
6201 | ||
73acf815 | 6202 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6203 | |
6204 | * keymap.c (where_is_internal_1): If key is a cons, store the copy | |
6205 | in sequence. | |
6206 | ||
4c4475a8 GM |
6207 | * chartab.c (map_sub_char_table, map_char_table): If the range |
6208 | contains just one character, call the function with that character | |
6209 | even if the depth is not 3. | |
aca7a3d2 | 6210 | |
73acf815 | 6211 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6212 | |
6213 | * w32font.c (w32font_text_extents): Calculate metrics for the | |
6214 | whole string. | |
6215 | ||
73acf815 | 6216 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6217 | |
6218 | * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages. | |
6219 | ||
73acf815 | 6220 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6221 | |
6222 | * w32term.c (x_set_glyph_string_clipping): Use | |
6223 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
6224 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
6225 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
6226 | |
6227 | * w32font.c (w32font_draw): Do clipping here. | |
6228 | ||
73acf815 | 6229 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6230 | |
1f45f627 | 6231 | * xftfont.c (xftfont_draw): Adjust for the change of struct |
aca7a3d2 MB |
6232 | glyph_string. |
6233 | ||
6234 | * xterm.c (x_set_glyph_string_clipping): Use | |
6235 | get_glyph_string_clip_rects. | |
4c4475a8 GM |
6236 | (x_set_glyph_string_clipping_exactly, x_draw_glyph_string): |
6237 | Adjust for the change of struct glyph_string. | |
aca7a3d2 MB |
6238 | |
6239 | * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to | |
6240 | the resulting clip(s}. | |
1f45f627 | 6241 | (expose_overlaps): Add arg r. Change callers. Set it to |
aca7a3d2 MB |
6242 | row->clip temporarily. |
6243 | (expose_window): Redraw rows overlapping the exposed area. | |
6244 | ||
6245 | * dispextern.h (struct glyph_row): New member clip. | |
6246 | (struct glyph_string): Delete members clip_x, clip_y, clip_width, | |
6247 | clip_height, new member clip, and num_clips. | |
6248 | ||
73acf815 | 6249 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6250 | |
6251 | * data.c (Fchar_or_string_p): Fix docstring. | |
6252 | ||
73acf815 | 6253 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6254 | |
6255 | * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info, | |
6256 | create a temporal XftDraw object. | |
6257 | ||
73acf815 | 6258 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6259 | |
6260 | * font.c (Ffontp): Fix docstring. | |
6261 | ||
6262 | * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a | |
6263 | strong evidence of ISO-2022. | |
6264 | ||
73acf815 | 6265 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6266 | |
6267 | * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not | |
6268 | SYNTAX_ENTRY_FOLLOW_PARENT. | |
6269 | ||
73acf815 | 6270 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
aca7a3d2 MB |
6271 | |
6272 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change | |
6273 | its type. | |
6274 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
6275 | Update to the new type of weak_hash_tables and next_weak. | |
6276 | ||
6277 | * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to | |
6278 | a plain C pointer to Lisp_Hash_Table. | |
6279 | ||
6280 | * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP) | |
6281 | (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP) | |
6282 | (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP) | |
6283 | (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP) | |
6284 | (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP) | |
6285 | (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP) | |
6286 | (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP) | |
6287 | (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP) | |
6288 | (GC_EQ): Remove since they've been identical to their non-GC_ | |
6289 | alter-egos ever since the markbit was eradicated. | |
6290 | ||
290afd83 JB |
6291 | * alloc.c: |
6292 | * buffer.c: | |
6293 | * buffer.h: | |
6294 | * data.c: | |
6295 | * fileio.c: | |
6296 | * filelock.c: | |
6297 | * fns.c: | |
6298 | * frame.h: | |
6299 | * lisp.h: | |
6300 | * macterm.c: | |
6301 | * print.c: | |
6302 | * process.c: | |
6303 | * w32fns.c: | |
6304 | * w32menu.c: | |
6305 | * w32term.c: | |
6306 | * xfns.c: | |
6307 | * xmenu.c: | |
6308 | * xterm.c: Replace uses of GC_* macros with the non-GC_ versions. | |
aca7a3d2 | 6309 | |
73acf815 | 6310 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6311 | |
6312 | * chartab.c (map_sub_char_table): Make it work for the top-level | |
6313 | char-table. Fix handling of parent char-table. | |
c5ad7a3d | 6314 | (map_char_table): Adjust for the above change. |
aca7a3d2 | 6315 | |
73acf815 | 6316 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6317 | |
6318 | * w32font.c (Qgdi): Rename from Qw32. | |
6319 | ||
73acf815 | 6320 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6321 | |
6322 | * w32bdf.c (get_quoted_string): Make function static. | |
6323 | ||
73acf815 | 6324 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6325 | |
6326 | * xftfont.c (xftfont_open): If one of font's ASCII glyph has | |
6327 | bigger ascent and descent than those of the font, use them as | |
6328 | font's ascent and descent. | |
6329 | ||
73acf815 | 6330 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6331 | |
6332 | * Makefile.in (${lispsource}international/charprop.el): Move this | |
6333 | target within "#ifdef HAVE_UNIDATA" and "#endif". | |
6334 | ||
73acf815 | 6335 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6336 | |
6337 | * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el. | |
6338 | (shortlisp): Add ../lisp/language/tai-viet.el. | |
6339 | ||
1f45f627 | 6340 | 2008-02-01 Ulrich Mueller <ulm@gentoo.org> |
aca7a3d2 MB |
6341 | |
6342 | * Makefile.in (${lispsource}international/charprop.el): Depend on | |
6343 | temacs${EXEEXT}. | |
6344 | ||
73acf815 | 6345 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6346 | |
6347 | * w32font.c (w32font_close): Delete the GDI font object. | |
6348 | ||
6f69e89b | 6349 | * w32menu.c: Include character.h. |
aca7a3d2 MB |
6350 | |
6351 | * w32proc.c: Likewise. | |
6352 | ||
6353 | * w32select.c: Likewise. | |
6354 | ||
6f69e89b | 6355 | * makefile.w32-in (w32proc.o): Depend on character.h. |
aca7a3d2 | 6356 | |
73acf815 | 6357 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6358 | |
6359 | * w32fns.c (syms_of_w32fns): Use DEFSYM macro. | |
6360 | ||
6361 | * w32menu.c (syms_of_w32menu): Likewise. | |
6362 | ||
6363 | * w32proc.c (syms_of_ntproc): Likewise. | |
6364 | ||
6365 | * w32select.c (syms_of_w32select): Likewise. | |
6366 | ||
6367 | * w32term.c (syms_of_w32term): Likewise. | |
6368 | ||
73acf815 | 6369 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6370 | |
6371 | * w32font.c (w32font_draw): Delete brush after using it. | |
6372 | ||
73acf815 | 6373 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6374 | |
6375 | * w32font.c (w32font_open): Don't set font_idx. | |
6376 | (w32font_text_extents): Try GetTextExtentPoint32W before defaulting | |
6377 | to font settings. | |
6378 | (w32font_draw): Fill background explicitly. | |
6379 | ||
73acf815 | 6380 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6381 | |
6382 | * w32term.c (w32_initialize): Don't call w32font_initialize. | |
6383 | ||
6384 | * w32font.c (w32font_info): Remove subranges. | |
6385 | (QCsubranges, Qmodern, Qswiss, Qroman): Remove. | |
6386 | (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif) | |
6387 | (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian) | |
6388 | (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali) | |
6389 | (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada) | |
6390 | (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian) | |
6391 | (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham) | |
6392 | (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan) | |
6393 | (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun) | |
6394 | (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical): | |
6395 | New symbols. | |
6396 | (font_callback_data): New struct. | |
6397 | (w32font_list, w32font_match): Use it. | |
6398 | (w32font_open): Don't populate subranges. | |
6399 | (w32font_has_char): Use script Lisp symbols, not subrange bitmask. | |
6400 | (w32font_encode_char): Always return unicode code-point as-is. | |
6401 | (w32font_text_extents): Supply a tranformation matrix to | |
1f45f627 GM |
6402 | GetGlyphOutline. Never look up by glyph index. Avoid looping |
6403 | twice. Use unicode version of GetTexExtentPoint32 instead of | |
aca7a3d2 | 6404 | glyph index version. |
1f204af3 | 6405 | (set_fonts_frame): Remove. |
aca7a3d2 | 6406 | (w32_enumfont_pattern_entity): Add frame parameter, use it to |
1f45f627 GM |
6407 | set frame parameter. Use backward compatible fake foundries. |
6408 | Save generic family in extra slot under QCfamily. Make width slot | |
6409 | constant. Save QCspacing value. Save list of scripts instead of | |
aca7a3d2 MB |
6410 | binary subranges. |
6411 | (w32_generic_family, logfonts_match, font_matches_spec): New functions. | |
1f45f627 | 6412 | (add_font_entity_to_list): Use font_callback_data struct. Filter |
aca7a3d2 MB |
6413 | unwanted fonts. |
6414 | (add_one_font_entity_to_list): Use font_callback_data struct. | |
1f45f627 GM |
6415 | (w32_registry): Default to iso10646_1. |
6416 | (fill_in_logfont): Use dpi from extra slot. Don't bother with | |
6417 | string font registries. Don't fill in font name if it is a generic | |
6418 | family name, fill family instead. Use spacing, family and script | |
aca7a3d2 MB |
6419 | extra info to fill pitch, family and charset fields. |
6420 | (list_all_matching_fonts): Use font_callback_data struct. | |
6421 | (unicode_range_for_char): Remove. | |
6422 | (font_supported_scripts): New function. | |
6423 | (w32font_initialize): Remove. | |
6424 | (syms_of_w32font): Update which symbols are defined. | |
6425 | ||
73acf815 | 6426 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6427 | |
6428 | * font.c (font_pixel_size): Reverse assq_no_quit args. | |
6429 | ||
6430 | * w32term.h (FONT_WIDTH): Report max width, not average. | |
6431 | (FONT_MAX_WIDTH): Remove. | |
6432 | (FONT_AVG_WIDTH): New macro. | |
6433 | ||
6434 | * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only | |
6435 | redefinition of FONT_WIDTH. | |
6436 | ||
6437 | * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH. | |
6438 | (w32_cache_char_metrics): Use FONT_WIDTH. | |
6439 | ||
6440 | * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH. | |
6441 | ||
73acf815 | 6442 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6443 | |
6444 | * w32font.c (w32font_open): Make lfHeight negative. | |
6445 | ||
6446 | * w32fns.c (x_default_font_parameter): Use new style font name. | |
6447 | (Fx_create_frame, x_create_tip_frame): Initialize resx and resy. | |
6448 | ||
73acf815 | 6449 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6450 | |
6451 | * w32font.c (QCsubranges): New symbol. | |
6452 | (w32font_open, w32font_has_char): Get subranges from subproperty | |
6453 | of extra. | |
6454 | (w32_enumfont_pattern_entity): Set subranges as subproperty of extra. | |
6455 | (syms_of_w32font): Define :subranges symbol. | |
6456 | ||
6457 | * font.c (font_put_extra): Expose externally. | |
6458 | ||
1f45f627 | 6459 | * font.h (font_put_extra): Move declaration from font.c. |
aca7a3d2 MB |
6460 | |
6461 | * font.c (Ffont_get): Use font driver to determine otf capability. | |
6462 | (adjust_anchor): Check if driver defines anchor_point before using. | |
6463 | ||
6464 | * w32font.c (w32font_open): Handle size, height and pixel_size better. | |
6465 | (w32font_draw): Use options. | |
6466 | (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts. | |
6467 | Fix detection of truetype fonts. | |
6468 | (registry_to_w32_charset): Handle charsets other than iso8859-1 | |
6469 | expressed as lisp symbols. | |
6470 | (w32_registry): Express charset as lisp symbol. | |
6471 | (fill_in_logfont): Reverse pixel and point height logic. | |
1f45f627 | 6472 | Don't set width here. Set quality to default. |
aca7a3d2 MB |
6473 | |
6474 | * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts. | |
6475 | (x_to_w32_font): Fill in lfPitchAndFamily correctly. | |
6476 | ||
6477 | * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: | |
6478 | Remove redundant loop and allocation. | |
6479 | ||
6480 | * makefile.w32-in (font.o, w32font.o): New objects. | |
6f69e89b | 6481 | (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h. |
aca7a3d2 MB |
6482 | (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND. |
6483 | ||
6484 | * xdisp.c (fill_composite_glyph_string): Make the first arg to | |
6485 | STORE_XCHARB a valid l-value. | |
6486 | ||
6487 | * w32term.c (w32_native_per_char_metric): Swap width and rbearing | |
6488 | calculations for non-Truetype fonts. | |
6489 | (x_draw_glyph_string): Sync with xterm.c. | |
c3f9fba8 JB |
6490 | (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: |
6491 | Remove redundant code. | |
aca7a3d2 MB |
6492 | (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize. |
6493 | ||
6494 | * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member. | |
6495 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h. | |
6496 | ||
6497 | * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c. | |
6498 | (x_to_w32_charset, w32_to_x_charset): Expose externally. | |
6499 | ||
6500 | * w32font.c: New file for w32 font backend. | |
6501 | ||
73acf815 | 6502 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6503 | |
6504 | * term.c: Don't include "buffer.h" twice. | |
6505 | ||
73acf815 | 6506 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6507 | |
6508 | * character.c (Funibyte_string): New function. | |
6509 | (syms_of_character): Defsubr it. | |
6510 | ||
73acf815 | 6511 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
6512 | |
6513 | * w32term.c [USE_FONT_BACKEND]: | |
c3f9fba8 JB |
6514 | (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc) |
6515 | (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly) | |
6516 | (x_draw_glyph_string, x_draw_glyph_string_foreground) | |
6517 | (x_draw_composite_glyph_string_foreground, x_new_fontset2) | |
aca7a3d2 MB |
6518 | (x_free_frame_resources): Sync with xterm.c. |
6519 | ||
73acf815 | 6520 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
6521 | |
6522 | * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate | |
6523 | char-table size. | |
6524 | ||
73acf815 | 6525 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6526 | |
c3f9fba8 | 6527 | * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF. |
aca7a3d2 | 6528 | |
73acf815 | 6529 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6530 | |
6531 | * ftfont.c (ftfont_driver): Delete font_otf_gsub and | |
6532 | font_otf_gpos, add font_drive_otf. | |
6533 | ||
6534 | * fontset.c (fontset_find_font): Pay attention to font size | |
6535 | specified for a font. | |
6536 | (reorder_font_vector): Check contents of font_def. | |
6537 | ||
6538 | * font.c (struct otf_list): Delete it. | |
6f69e89b | 6539 | (otf_list): Make it a lisp variable. |
aca7a3d2 | 6540 | (otf_open): Use lispy otf_list. |
1f45f627 | 6541 | (generate_otf_features): Rename from parse_gsub_gpos_spec. |
aca7a3d2 | 6542 | (check_otf_features): New function. |
c3f9fba8 JB |
6543 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): |
6544 | New functions. | |
aca7a3d2 MB |
6545 | (font_drive_otf): New function merging font_otf_gsub and |
6546 | font_otf_gpos. | |
6547 | (font_open_for_lface): New arg spec. Change argument order. | |
1f45f627 | 6548 | (font_load_for_face): Adjust for the change of font_open_for_lface. |
aca7a3d2 MB |
6549 | (Ffont_drive_otf): New function merging Ffont_otf_gsub and |
6550 | Ffont_otf_gpos. | |
6551 | (syms_of_font): Staticpro otf_list. Delete defsubr of | |
6552 | Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf. | |
6553 | ||
1f45f627 | 6554 | * xfaces.c (set_font_frame_param): Adjust for the change of |
aca7a3d2 MB |
6555 | font_open_for_lface. |
6556 | ||
6557 | * font.h (font_open_for_lface): Adjust prototype. | |
6558 | (struct font_driver): Delete members otf_gsub and otf_gpos, add | |
6559 | member otf_drive. | |
6560 | (font_otf_gsub, font_otf_gpos): Delete externs. | |
6561 | (font_drive_otf): Extern it. | |
6562 | ||
73acf815 | 6563 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6564 | |
6565 | * font.c (font_at): If the window W is not on a window system, | |
6566 | return Qnil. | |
6567 | ||
4c4475a8 GM |
6568 | * coding.c (produce_chars, encode_coding): Don't call |
6569 | insert_from_gap if no characters to produce. | |
aca7a3d2 | 6570 | |
73acf815 | 6571 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6572 | |
6573 | * fontset.c (free_realized_fontsets): Avoid unnecessary call of | |
6574 | Fclear_face_cache. | |
6575 | ||
6576 | * xfaces.c (face_for_font): Check also face->font==font->font.font. | |
6577 | ||
73acf815 | 6578 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
6579 | |
6580 | * emacs.c (main): Change default value of `enable_font_backend' to 1. | |
6581 | Parse "--disable-font-backend" option. | |
6582 | (standard_args): Add "--disable-font-backend" option. | |
6583 | ||
73acf815 | 6584 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6585 | |
6586 | * fontset.c (fontset_find_font): New function. | |
6587 | (fontset_font): Use fontset_find_font. | |
6588 | (make_fontset_for_ascii_face): Don't set face ID in rfont_def. | |
6589 | Register the specified font for all Latin characters. | |
6590 | (new_fontset_from_font): Register the specified font for all Latin | |
6591 | characters. | |
6592 | (dump_fontset): For a realized fontset, include the base fontset | |
6593 | name in the returned vector. | |
6594 | ||
73acf815 | 6595 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6596 | |
6597 | * character.h (CHAR_STRING): Cast C to unsigned on calling | |
6598 | char_string. | |
6599 | ||
6600 | * character.c (char_string): Type of arg C changed to unsigned. | |
6601 | Signal an error if C is an invalid character code. | |
6602 | ||
4c4475a8 GM |
6603 | * editfns.c (general_insert_function, Fchar_to_string): |
6604 | Use CHARACTERP, not INTEGERP. | |
aca7a3d2 | 6605 | |
73acf815 | 6606 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6607 | |
6608 | * character.h (MIN_MULTIBYTE_LEADING_CODE) | |
6609 | (MAX_MULTIBYTE_LEADING_CODE): New macros. | |
6610 | ||
6611 | * regex.c (analyse_first): Fix for multibyte characters in "case | |
6612 | charset:" and "case categoryspec:". | |
6613 | ||
73acf815 | 6614 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
6615 | |
6616 | * Makefile.in (LIBES): Move standard libraries to the end. | |
6617 | ||
73acf815 | 6618 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6619 | |
6620 | * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is | |
6621 | nonzero, don't shrink the buffer nextb. | |
6622 | ||
6623 | * buffer.h (struct buffer_text): New member inhibit_shrinking. | |
6624 | ||
6625 | * coding.c (coding_alloc_by_making_gap): New arg offset. | |
6626 | (alloc_destination): Call coding_alloc_by_making_gap with the arg | |
6627 | offset. | |
6628 | (decode_coding_iso_2022): Update coding->safe_charsets. | |
6629 | (decode_coding_gap): Temporarily set | |
6630 | current_buffer->text->inhibit_shrinking to 1. | |
6631 | ||
73acf815 | 6632 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6633 | |
6634 | * xterm.c (x_draw_composite_glyph_string_foreground): Fix | |
6635 | indexing into elements of s->cmp and s->char2b. | |
6636 | ||
73acf815 | 6637 | 2008-02-01 Juanma Barranquero <lekktu@gmail.com> |
aca7a3d2 MB |
6638 | |
6639 | * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'. | |
6640 | ||
73acf815 | 6641 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6642 | |
6643 | * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable | |
6644 | target_multibyte instead of multibyte. | |
6645 | (re_match_2_internal): Call bcmp_translate with target_multibyte. | |
6646 | (bcmp_translate): Change the argument name from multibyte to | |
6647 | target_multibyte. | |
6648 | ||
73acf815 | 6649 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6650 | |
6651 | These changes are to compile a regexp into a pattern that can be | |
6652 | used both for multibyte and unibyte targets. | |
6653 | ||
6654 | * Makefile.in (search.o): Depend on charset.h. | |
6655 | ||
6656 | * character.c (multibyte_char_to_unibyte_safe): New function. | |
6657 | ||
6658 | * search.c: Include "charset.h". | |
6659 | (compile_pattern_1): Delete argument multibyte. Don't set | |
6660 | cp->buf.target_multibyte here. Set cp->buf.charset_unibyte. | |
6661 | (compile_pattern): Don't compare cp->buf.target_multibyte. | |
6662 | Compare cp->buf.charset_unibyte. | |
6663 | (compile_pattern): Set cp->buf.target_multibyte. | |
6664 | ||
6665 | * lisp.h (multibyte_char_to_unibyte_safe): Extern it. | |
6666 | ||
6667 | * regex.h (struct re_pattern_buffer): New member charset_unibyte. | |
6668 | ||
6669 | * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg | |
1f45f627 | 6670 | multibyte. Change callers. |
aca7a3d2 | 6671 | (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. |
1f45f627 GM |
6672 | (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers |
6673 | to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively. | |
aca7a3d2 MB |
6674 | (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. |
6675 | (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table. | |
6676 | (regex_compile): Make the compiled pattern usable both for | |
6677 | multibyte and unibyte targets. | |
6678 | (analyse_first): Make the fastmap usable both for multibyte and | |
6679 | unibyte targets. | |
1f45f627 | 6680 | (TRANSLATE_VIA_MULTIBYTE): Delete. |
aca7a3d2 MB |
6681 | (re_match_2_internal): Pay attention to the case that the |
6682 | multibyteness of bufp and target may be different. | |
6683 | ||
73acf815 | 6684 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6685 | |
6686 | * xdisp.c (x_produce_glyphs): When a font is not found, make the | |
6687 | empty box occupy at least one column width. | |
6688 | ||
73acf815 | 6689 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
6690 | |
6691 | * Makefile.in: Remove redundant HAVE_XFT clause. | |
6692 | ||
73acf815 | 6693 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6694 | |
6695 | * xrdb.c (x_load_resources): Setup the default fontSet X reource. | |
6696 | ||
73acf815 | 6697 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6698 | |
6699 | * fontset.c (Finternal_char_font): Fix for the case of POSITION | |
6700 | being nil. | |
6701 | ||
73acf815 | 6702 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6703 | |
6704 | * xftfont.c (xftfont_open): Call FcConfigSubstitute. | |
6705 | ||
73acf815 | 6706 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6707 | |
6708 | * xftfont.c (xftfont_open): Don't enable antialias explicitly. | |
6709 | ||
73acf815 | 6710 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6711 | |
6712 | * search.c (simple_search): Fix previous change. | |
6713 | ||
73acf815 | 6714 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6715 | |
6716 | * xftfont.c (ftfont_font_format): Extern declaration. | |
6717 | ||
6718 | * frame.c (x_set_font): Fix the second arg to fs_query_fontset. | |
6719 | ||
6720 | * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0. | |
6721 | (xfont_list): Don't directly use Lisp_Object as an operand of &&. | |
6722 | ||
6723 | * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0. | |
6724 | (ftfont_font_format): Fix previous change. | |
6725 | ||
6726 | * font.h (Ffont_xlfd_name): EXFUN it. | |
6727 | ||
6728 | * font.c (font_parse_xlfd): Fix the array size of `f'. | |
6729 | (register_font_driver): Use EQ to compare driver->type. | |
6730 | ||
6731 | * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function. | |
6732 | (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2. | |
6733 | (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise. | |
6734 | ||
73acf815 | 6735 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6736 | |
4c4475a8 GM |
6737 | * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family) |
6738 | (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined. | |
aca7a3d2 | 6739 | |
73acf815 | 6740 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6741 | |
6742 | * xfont.c (xfont_open): Set font->format. | |
6743 | ||
6744 | * xftfont.c (xftfont_open): Set font->format. | |
6745 | ||
6746 | * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern. | |
6747 | (ftfont_list): Include FC_FONTFORMAT in FcObject. | |
6748 | (ftfont_open): Set font->format. | |
6749 | (ftfont_font_format): New function. | |
6750 | ||
6751 | * font.h (struct font): New memeber format. | |
6752 | ||
6753 | * font.c (Qopentype): New variable. | |
6754 | (syms_of_font): Defsym it. | |
6755 | (Fquery_font): Change the format of the last element of the return | |
6756 | value. | |
6757 | ||
73acf815 | 6758 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6759 | |
6760 | * xfns.c (xic_create_xfontset): Try the default fontset name as a | |
6761 | last resort. | |
6762 | ||
73acf815 | 6763 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6764 | |
6765 | * coding.c (detect_coding_charset): Fix detection of multi-byte | |
6766 | charset. | |
6767 | ||
73acf815 | 6768 | 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change) |
aca7a3d2 MB |
6769 | |
6770 | * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0. | |
6771 | ||
73acf815 | 6772 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6773 | |
6774 | * xdisp.c (get_next_display_element): Set it->face_id for the | |
6775 | first component of a composition. | |
1f45f627 | 6776 | (x_produce_glyphs): Check if the font is changed or not for composition. |
aca7a3d2 | 6777 | |
73acf815 | 6778 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6779 | |
6780 | * fontset.c (Qlatin): New variable. | |
6781 | (syms_of_fontset): Define it as a lisp symbol. | |
1f45f627 | 6782 | (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII. |
aca7a3d2 | 6783 | |
73acf815 | 6784 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6785 | |
6786 | * font.c (font_unparse_fcname): Pay attention to the case that | |
6787 | some of font property is a null string. | |
6788 | ||
73acf815 | 6789 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6790 | |
6791 | * term.c: Include "composite.h". | |
6792 | (encode_terminal_code): Output all components of composition. | |
6793 | Check the size of encode_terminal_src. | |
424c157f | 6794 | (produce_glyphs): For composition, call produce_composite_glyph. |
aca7a3d2 MB |
6795 | (append_composite_glyph, produce_composite_glyph): New functions. |
6796 | ||
6797 | * xdisp.c (x_produce_glyphs): In handling composition, if a font | |
6798 | is not found, get font_info from the current ascii face. | |
6799 | ||
73acf815 | 6800 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6801 | |
6802 | * fileio.c (Finsert_file_contents): On replacing, temporarily bind | |
6803 | buffer-file-name to Qnil before calling insert_from_buffer. | |
6804 | ||
6805 | * font.c (font_unparse_fcname): Pay attention to the case that | |
6806 | foundry is a null string. | |
6807 | ||
73acf815 | 6808 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6809 | |
6810 | * ftfont.c (ftfont_list): Allow registry "unicode-sip". | |
6811 | ||
6812 | * font.c (Qunicode_sip): New variable. | |
6813 | (syms_of_font): Declare it as a Lisp symbol. | |
6814 | ||
6815 | * font.h (Qunicode_sip): Extern it. | |
6816 | ||
73acf815 | 6817 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6818 | |
1f45f627 | 6819 | * composite.c (get_composition_id): Pay attention to TAB component. |
aca7a3d2 MB |
6820 | |
6821 | * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw | |
1f45f627 | 6822 | TAB. Adjust for the change of s->char2b which always points to |
aca7a3d2 MB |
6823 | the first elememnt of allocated memory. |
6824 | ||
1f45f627 | 6825 | * xftfont.c (xftfont_text_extents): Fix calculation of descent value. |
aca7a3d2 MB |
6826 | |
6827 | * xdisp.c (handle_composition_prop): Set it->c to the first | |
6828 | non-TAB component. | |
1f45f627 GM |
6829 | (fill_composite_glyph_string): Change argument. |
6830 | (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change. | |
aca7a3d2 MB |
6831 | (x_produce_glyphs): Fix handling of left/right padding. |
6832 | ||
73acf815 | 6833 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6834 | |
6835 | * coding.c (detect_coding_system): Fix for handling off | |
6836 | inhibit_iso_escape_detection. Fix for the case that no coding | |
6837 | system is defined for a specific coding category. | |
6838 | ||
73acf815 | 6839 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6840 | |
1f45f627 | 6841 | * font.c (font_matching_entity): Delete unused local var. |
aca7a3d2 MB |
6842 | |
6843 | * xftfont.c (xftfont_open): Call XftDefaultSubstitute before | |
6844 | opening a font. | |
6845 | ||
6846 | * fileio.c (Finsert_file_contents): On recovering a file, assume | |
6847 | Unix-like eol. | |
6848 | (choose_write_coding_system): On auto-saving a file, force | |
6849 | Unix-like eol. | |
6850 | ||
6851 | * coding.c (setup_coding_system): Fix setting of | |
6852 | coding->common_flags based on eol_type. | |
6853 | (coding_inherit_eol_type): If PARENT is not nil, be sure to | |
6854 | inherit from it. | |
6855 | ||
73acf815 | 6856 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6857 | |
1f45f627 | 6858 | * alloc.c (NSTATICS): Increas to 0x600. |
aca7a3d2 | 6859 | |
73acf815 | 6860 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 6861 | |
1f45f627 | 6862 | * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match. |
aca7a3d2 MB |
6863 | (ftfont_list): Don't check :name property. |
6864 | (ftfont_match): New function. | |
6865 | (ftfont_pattern_entity): If the pattern doesn't contain | |
6866 | FC_SPACING, don't assuce FC_MONO. | |
6867 | ||
6868 | * font.h (struct font_driver): New member `match'. | |
1f45f627 | 6869 | (font_update_drivers): Adjust prototype. |
aca7a3d2 | 6870 | |
4c4475a8 GM |
6871 | * font.c (font_parse_fcname, font_parse_name): Don't change :name |
6872 | property of FONT. | |
aca7a3d2 MB |
6873 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define |
6874 | them unconditionally. | |
6875 | (font_matching_entity): New function. | |
6876 | (font_open_by_name): Try font_matching_entity if exact match is | |
6877 | not found. | |
6878 | (font_update_drivers): Delete the arg FONT. Return a list of | |
6879 | actually used backends. Don't free faces, font caches here. | |
6880 | Don't store data in frame parameters. Don't call x_set_font. | |
6881 | (Ffont_spec): Store :name property as is. | |
6882 | (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability. | |
1f45f627 GM |
6883 | (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub. |
6884 | (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos. | |
aca7a3d2 MB |
6885 | (Ffont_otf_alternates): Check if the driver has otf_gsub function. |
6886 | Call font->driver->otf_gsub instead of font_otf_gsub. | |
6887 | ||
6888 | * frame.c (x_set_font_backend): Do more works that were done in | |
6889 | font_update_drivers before. | |
6890 | ||
6891 | * xfont.c (xfont_match): New function. | |
6892 | (xfont_driver): Set xfont_driver.match to xfont_match. | |
6893 | (xfont_draw): Set font in GC if necessary. | |
6894 | ||
6895 | * ftxfont.c (ftxfont_match): New function. | |
6896 | (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match. | |
6897 | ||
6898 | * xftfont.c (xftfont_match): New function. | |
6899 | (syms_of_xftfont): Set xftfont_driver.match to xftfont_match. | |
6900 | ||
73acf815 | 6901 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6902 | |
6903 | * font.h (struct font): New member scalable. | |
6904 | (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub. | |
1f45f627 | 6905 | (font_otf_gsub): Adjust prototype. |
aca7a3d2 | 6906 | |
1f45f627 GM |
6907 | * font.c (font_otf_capability): Fix handling of the default langsys. |
6908 | (parse_gsub_gpos_spec): Change type to void. New arg nbytes. | |
aca7a3d2 MB |
6909 | Check the contents of SPEC. |
6910 | (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros. | |
6911 | (check_gstring): New function. | |
6912 | (REPLACEMENT_CHARACTER): New macro. | |
6913 | (font_otf_gsub): New arg alternate_subst. Be sure to set all | |
6914 | glyph codes of GSTRING. | |
6915 | (font_otf_gpos): Be sure to set all glyph codes of GSTRING. | |
6916 | (font_prepare_composition): Set cmp->glyph_len. | |
6917 | (font_open_entity): Set font->scalable. | |
6918 | (Ffont_get): Handle :otf property. | |
6919 | (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New | |
6920 | functions. | |
6921 | (Fquery_font): Use font->font.full_name. | |
6922 | (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and | |
6923 | Sfont_otf_alternates. | |
6924 | ||
6925 | * ftfont.c (ftfont_open): Set font->font.full_name and | |
6926 | font->font.name properly. Fix calculation of font->font.height | |
6927 | and font->min_width. | |
6928 | ||
6929 | * ftxfont.c (ftxfont_create_gcs): New function. | |
6930 | (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap. | |
6931 | (ftxfont_draw_backgrond): Fix filling region. | |
6932 | (ftxfont_default_fid): New function. | |
6933 | (ftxfont_open): Set xfotn->fid to the return value of | |
6934 | ftxfont_default_fid. | |
6935 | (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs. | |
6936 | (ftxfont_done_face): Free only GCs that are created by | |
6937 | ftxfont_create_gcs. | |
6938 | (ftxfont_draw): If face->gc != s->gc, create proper GCs. | |
6939 | ||
6940 | * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]: | |
6941 | Clip to src->width, etc (not src->clip_XXX). | |
6942 | ||
6943 | * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle | |
6944 | FontBackend frame parameter. | |
6945 | ||
73acf815 | 6946 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6947 | |
6948 | * font.h (struct font_driver_list): New member `on'. | |
6949 | (Fclear_font_cache): EXFUN it. | |
6950 | (font_update_drivers): Extern it. | |
6951 | ||
6952 | * font.c (font_unparse_fcname): Fix typo (swidth->width). | |
6953 | (font_list_entities): Check driver_list->on. | |
6954 | (register_font_driver): Initalize `on' member to 0. | |
6955 | (font_update_drivers): New function. | |
6956 | (Fclear_font_cache): Check driver_list->on. | |
6957 | ||
6958 | * frame.h (Qfont_backend): Extern it. | |
6959 | (x_set_font_backend): Extern it. | |
6960 | ||
6961 | * frame.c (Qfont_backend): New variable. | |
6962 | (frame_parms): New element for font-backend. | |
6963 | (x_set_font_backend): New function. | |
6964 | ||
6965 | * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle | |
6966 | FontBackend frame parameter. | |
6967 | (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element | |
6968 | x_set_font_backend. | |
6969 | ||
6970 | * xfont.c (xfont_list): Don't try listing by :name property if the | |
6971 | name is not for XLFD. | |
6972 | ||
73acf815 | 6973 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
6974 | |
6975 | * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM) | |
6976 | (LGLYPH_SET_TO): New macros. | |
6977 | (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment | |
6978 | element of G is vector or not. | |
6979 | (font_at): Extern it. | |
6980 | ||
6981 | * font.c: Include window.h. | |
6982 | (font_lispy_object): New function. | |
6983 | (font_prepare_composition): Check LGLYPH_FORM (g) to detect the | |
6984 | end of valid glyph. | |
6985 | (font_close_object): Fix getting (struct font *). | |
6986 | (font_at): New function. | |
6987 | (Ffont_get): If FONT is a font-object, get entity from it. | |
6988 | (Ffont_make_gstring): Initialize elements of glyphs with nil. | |
6989 | (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix | |
6990 | range check. | |
6991 | (Ffont_at): New function. | |
6992 | (syms_of_font): Defsubr Sfont_at. | |
6993 | ||
6994 | * xdisp.c (it_props): Move the entry for Qauto_composed to just | |
424c157f | 6995 | before the entry for Qcomposition. |
1f45f627 | 6996 | (handle_auto_composed_prop): Call auto-composition-function with 4 args. |
aca7a3d2 MB |
6997 | (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from |
6998 | the font in gstring. | |
6999 | (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check | |
7000 | LGLYPH_FORM (g) to detect the end of valid glyph. | |
7001 | (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if | |
7002 | we are composing with gstring. | |
7003 | ||
7004 | * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]: | |
7005 | Check if adjustment is vector or not. | |
7006 | ||
7007 | * Makefile.in (font.o): Make it depends on window.h. | |
7008 | ||
73acf815 | 7009 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7010 | |
7011 | * xterm.c (x_draw_composite_glyph_string_foreground): Check if | |
7012 | adjustment is vector or not. | |
7013 | ||
73acf815 | 7014 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
7015 | |
7016 | * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE. | |
7017 | ||
73acf815 | 7018 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7019 | |
7020 | * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) | |
7021 | (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. | |
7022 | (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. | |
7023 | ||
1f45f627 | 7024 | * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card. |
aca7a3d2 | 7025 | (DEVICE_DELTA): Fix typo. |
4c4475a8 GM |
7026 | (font_otf_gpos, font_prepare_compositio): Adjust for the change of |
7027 | LGLYPH format. | |
aca7a3d2 | 7028 | |
1f45f627 | 7029 | * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for |
aca7a3d2 MB |
7030 | the change of LGLYPH format. |
7031 | ||
73acf815 | 7032 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7033 | |
7034 | * ftfont.c (ftfont_list): Fix typo. | |
1f45f627 | 7035 | (ftfont_build_basic_charsets): Don't include letters with diacritics. |
aca7a3d2 | 7036 | |
880820fe | 7037 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
7038 | |
7039 | * xfaces.c (realize_non_ascii_face): Set face->extra to NULL. | |
7040 | ||
7041 | * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if | |
7042 | xftface_info is non-NULL. | |
7043 | ||
880820fe | 7044 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 | 7045 | |
1f45f627 | 7046 | * ftfont.c (ftfont_list): Move misplaced #endif. |
aca7a3d2 | 7047 | |
73acf815 | 7048 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7049 | |
7050 | * ftfont.c (ftfont_list): Pay attention to the case that | |
7051 | FC_CAPABILITY is not defined. | |
7052 | ||
73acf815 | 7053 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7054 | |
7055 | * xftfont.c (xftfont_open): Set charset related members to -1. | |
7056 | ||
1f45f627 GM |
7057 | * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of |
7058 | QCname. | |
aca7a3d2 MB |
7059 | (ftfont_open): Set charset related members to -1. |
7060 | ||
7061 | * fontset.c (Votf_script_alist): New variable. | |
7062 | (syms_of_fontset): Initialize it. | |
7063 | (fontset_font): Delete unused variable. | |
7064 | ||
7065 | * fontset.h (Votf_script_alist): Extern it. | |
7066 | ||
1f45f627 | 7067 | * font.c (font_find_for_lface): Optimize code. |
aca7a3d2 MB |
7068 | |
7069 | * font.h (font_close_object, font_merge_old_spec): Extern them. | |
7070 | ||
73acf815 | 7071 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7072 | |
7073 | * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables. | |
7074 | (syms_of_font): Initialize them. | |
7075 | (font_pixel_size): Allow float value in dpi. | |
1f45f627 GM |
7076 | (font_prop_validate_type): Delete. |
7077 | (font_prop_validate_symbol, font_prop_validate_style): Change argument. | |
7078 | Change caller. | |
7079 | (font_prop_validate_non_neg): Rename from font_prop_validate_size. | |
7080 | (font_prop_validate_extra): Delete. | |
aca7a3d2 MB |
7081 | (font_prop_validate_spacing): New function. |
7082 | (font_property_table): Add elements for all known properties. | |
1f45f627 GM |
7083 | (get_font_prop_index): Rename from check_font_prop_name. New |
7084 | argument FROM. Change caller. | |
aca7a3d2 | 7085 | (font_prop_validate): Validate all known properties. |
1f45f627 | 7086 | (font_put_extra): Delete argument force. Change caller. |
aca7a3d2 MB |
7087 | (font_expand_wildcards): Make it static. Fix the way of shrinking |
7088 | the possible range. | |
1f45f627 | 7089 | (font_parse_xlfd): Delete argument merge. Fix handling of RESX, |
aca7a3d2 | 7090 | RESY, SPACING, and AVGWIDTH. Don't validate property values here. |
1f45f627 | 7091 | Change caller. |
aca7a3d2 | 7092 | (font_unparse_xlfd): Handle dpi, spacing, and scalable properties. |
1f45f627 GM |
7093 | (font_parse_fcname): Delete argument merge. Fix parsing of point |
7094 | size. Don't validate properties values here. Change caller. | |
7095 | (font_unparse_fcname): Handle dpi, spacing, and scalable properties. | |
aca7a3d2 MB |
7096 | (font_open_by_name): Delete unused variable. |
7097 | (Ffont_spec): Likewise. Validate property values. | |
7098 | (Ffont_match_p): New function. | |
7099 | ||
7100 | * font.h (QCscalable): Extern it. | |
1f45f627 | 7101 | (font_parse_xlfd, font_parse_fcname): Adjust prototype. |
aca7a3d2 | 7102 | |
1f45f627 | 7103 | * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable. |
aca7a3d2 | 7104 | |
1f45f627 | 7105 | * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd. |
aca7a3d2 MB |
7106 | (xfont_list_pattern): New function. |
7107 | (xfont_list): Use xfont_list_pattern. | |
7108 | ||
73acf815 | 7109 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7110 | |
7111 | * font.h (Flist_fonts): EXFUN it. | |
7112 | ||
73acf815 | 7113 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
7114 | |
7115 | * w32term.c (w32_initialize): Add back smoothing_type and | |
7116 | smoothing_enabled definitions. | |
7117 | ||
73acf815 | 7118 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7119 | |
7120 | * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check | |
7121 | s->face->font on determining underline position. | |
7122 | ||
73acf815 | 7123 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7124 | |
7125 | * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field. | |
7126 | (font_has_char): Accept font-object too. | |
7127 | (font_find_for_lface): Try at first with a size specified in face. | |
7128 | ||
73acf815 | 7129 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7130 | |
7131 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to | |
7132 | font_open_by_name. | |
7133 | ||
73acf815 | 7134 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7135 | |
7136 | * font.h (QCspacing, QCdpi): Extern them. | |
7137 | (enum font_spacing): New enum. | |
7138 | (FONT_PIXEL_SIZE_QUANTUM): New macro. | |
7139 | ||
7140 | * font.c (POINT_TO_PIXEL): Don't divice POINT by 10. | |
7141 | (QCspacing, QCdpi): New variables. | |
7142 | (syms_of_font): Initialize them. | |
7143 | (font_pixel_size): New function. | |
7144 | (font_put_extra): New function. | |
7145 | (font_parse_xlfd): Fix handling of font size. Add QCdpi property | |
7146 | in FONT_EXTRA. | |
e9184ccb JB |
7147 | (font_parse_fcname): Handle enumenrated values (e.g. bold). |
7148 | Fix handling font size. Add QCname property that contains only | |
aca7a3d2 | 7149 | unknown properties. |
1f45f627 | 7150 | (font_score): Change argument. Change caller. Pay attention to |
aca7a3d2 | 7151 | FONT_PIXEL_SIZE_QUANTUM. |
4c4475a8 GM |
7152 | (font_sort_entites, font_list_entities, font_find_for_lface) |
7153 | (font_open_for_lface, font_open_by_name): Fix handling of font size. | |
1f45f627 | 7154 | (Ffont_spec): Add QCname property that contains only unknown properties. |
aca7a3d2 MB |
7155 | |
7156 | * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't | |
7157 | include weight in listing pattern, instead check weight of each | |
7158 | listed font. Don't include scalable in pattern. Pay attention to | |
7159 | FONT_PIXEL_SIZE_QUANTUM. | |
7160 | ||
73acf815 | 7161 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7162 | |
aca7a3d2 | 7163 | * font.c (font_parse_fcname): Fix parsing of point-size. |
1f45f627 | 7164 | (font_unparse_fcname): Produce symbolic names for style properties. |
aca7a3d2 MB |
7165 | (font_list_entities): Handle float size correctly. |
7166 | (font_open_by_name): Prefer `normal' property values if the name | |
7167 | doesn't specify them. | |
7168 | ||
7169 | * fontset.c (Finternal_char_font): Use font_get_name, not | |
7170 | Ffont_xlfd_name. | |
7171 | ||
7172 | * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for | |
7173 | FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing | |
7174 | pattern. Don't force scalable. | |
7175 | ||
7176 | * xftfont.c (xftfont_open): For generating a name, start from | |
7177 | 96-byte buffer. | |
7178 | ||
880820fe | 7179 | 2008-02-01 Jan Djärv <jan.h.d@swipnet.se> |
aca7a3d2 MB |
7180 | |
7181 | * frame.h (x_new_fontset2): Fix prototype. | |
7182 | ||
73acf815 | 7183 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7184 | |
1f45f627 | 7185 | * font.h (struct font_driver): Delete member parse_name. |
aca7a3d2 MB |
7186 | (font_match_p, font_get_spec, font_parse_fcname) |
7187 | (font_unparse_fcname): Extern them. | |
1f45f627 | 7188 | (font_get_name): Adjust prototype. |
aca7a3d2 MB |
7189 | |
7190 | * font.c (XLFD_SMALLNUM_MASK): Delete this macro. | |
7191 | (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it. | |
7192 | (font_expand_wildcards): Fix handling ENCODING field. Avoid | |
7193 | unnecessary checks for weight, slant, and swidth. | |
7194 | (font_parse_fcname): New function. | |
7195 | (font_unparse_fcname): New function. | |
7196 | (font_parse_name): New function. | |
7197 | (font_match_p): New function. | |
1f45f627 | 7198 | (font_get_name): Change return value to Lisp string. |
aca7a3d2 MB |
7199 | (font_get_spec): New function. |
7200 | (Qunspecified, Qignore_defface): Don't extern them. | |
7201 | (font_find_for_lface): Assume that LFACE is fully specified. | |
7202 | (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font | |
7203 | object, use it for FACE. | |
7204 | (font_open_by_name): Call Ffont_spec with QCname prop. Don't call | |
7205 | driver->parse_name. | |
7206 | (Ffont_spec): Call font_parse_name, not font_parse_xlfd. | |
7207 | ||
1f45f627 GM |
7208 | * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust |
7209 | prototype. | |
aca7a3d2 | 7210 | |
1f45f627 GM |
7211 | * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete |
7212 | argument F. Don't call Fnew_fontset. Instead, directly call | |
aca7a3d2 MB |
7213 | make_fontset. |
7214 | ||
1f45f627 | 7215 | * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype. |
aca7a3d2 | 7216 | |
1f45f627 | 7217 | * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change |
aca7a3d2 MB |
7218 | of x_new_fontset2. |
7219 | ||
7220 | * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans) | |
7221 | (Qsans__serif): New variables. | |
7222 | (ftfont_generic_family_list): New variable. | |
7223 | (syms_of_ftfont): Initialize the above variables. | |
1f45f627 | 7224 | (ftfont_pattern_entity): Delete argument NAME. |
aca7a3d2 MB |
7225 | (ftfont_list_generic_family): New function. |
7226 | (ftfont_parse_name): Delete this function. | |
1f45f627 | 7227 | (ftfont_list): Try generic family only when FcFontList found no font. |
aca7a3d2 MB |
7228 | (ftfont_list_family): Fix args to FcObjectSetBuild. |
7229 | ||
7230 | * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font | |
7231 | object in attrs[LFACE_FONT_INDEX]. | |
7232 | (set_lface_from_font_name): Cancel all changes for font-backend. | |
7233 | (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New | |
7234 | function. | |
7235 | (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a | |
7236 | font object in QCfont attribute. | |
7237 | (set_font_frame_param) [USE_FONT_BACKEND]: Likewise. | |
7238 | (realize_default_face) [USE_FONT_BACKEND]: Call | |
7239 | set_lface_from_font_and_fontset. | |
7240 | ||
7241 | * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also | |
7242 | "fixed", and signal error here if no suitable font was found. | |
7243 | ||
7244 | * xfont.c (xfont_parse_name): Delete this function. | |
7245 | ||
7246 | * xftfont.c (xftfont_open): Change coding style of error | |
7247 | handling. Generate fontconfig's fontname pattern. | |
7248 | ||
7249 | * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp. | |
7250 | (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro. | |
7251 | ||
7252 | * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments. | |
7253 | Both args FONTSET and FONT_OBJECT must be existing ones. | |
7254 | ||
73acf815 | 7255 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
7256 | |
7257 | * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR. | |
7258 | ||
73acf815 | 7259 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7260 | |
7261 | * xfont.c (xfont_open, xfont_encode_char): Fix typo. | |
7262 | ||
7263 | * font.h (struct font): Fix typo. | |
7264 | ||
7265 | * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to | |
7266 | XLFD_XXX_INDEX. | |
7267 | (enum xlfd_field_mask): New enum. | |
1f45f627 | 7268 | (intern_font_field): Changed argument. Change caller. If digits |
aca7a3d2 MB |
7269 | are followed by non-digits, return a symbol. |
7270 | (font_expand_wildcards): New function. | |
7271 | (font_parse_xlfd): Fix wildcard handling. | |
7272 | (Ffont_spec): If :name is specified, reflect the info in the other | |
7273 | properties. | |
7274 | ||
7275 | * ftfont.c (ftfont_pattern_entity): Fix typo. | |
7276 | (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of | |
7277 | locale. | |
7278 | ||
73acf815 | 7279 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7280 | |
7281 | * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them. | |
7282 | ||
1f45f627 | 7283 | * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c. |
aca7a3d2 MB |
7284 | (font_unparse_xlfd): Fix argument type declaration. Append "*" if |
7285 | registry doesn't specify encoding part. | |
7286 | (font_find_for_lface): Pay attention to LFACE_FONT_INDEX. | |
7287 | (font_open_by_name): At first try parsing the name. | |
7288 | (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp | |
7289 | as Lisp symbols. | |
7290 | ||
7291 | * fontset.c (reorder_font_vector): Pay attention to the case that | |
7292 | the 3rd element of font_def is nil. | |
7293 | (fontset_font): For the default fontset, append one more fontset | |
7294 | elements for a script-based font specification. Don't add script | |
7295 | attribute on finding a font. | |
7296 | (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the | |
7297 | font name. | |
7298 | (fontset_ascii_font): If a font can't be opened, return nil. | |
7299 | ||
1f45f627 | 7300 | * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c. |
aca7a3d2 MB |
7301 | (ftfont_pattern_entity): New function. |
7302 | (ftfont_get_cache): Assume that freetype_font_cache is already | |
7303 | initialized. | |
7304 | (ftfont_list): Handle the case that a file is specified in font | |
7305 | name. Use ftfont_pattern_entity to generate entities. | |
7306 | (ftfont_has_char): Check if the pattern contains FC_CHARSET. | |
7307 | (syms_of_ftfont): Initialize freetype_font_cache. | |
7308 | ||
7309 | * xftfont.c (xftfont_open): Make the font name fontconfig's | |
7310 | style. Add BLOCK_INPUT and UNBLOCK_INPUT. | |
7311 | (xftfont_close): Free font->font.name if not NULL. | |
7312 | ||
7313 | * xfont.c (xfont_list): If script is specified for a font, return | |
7314 | null_vector. | |
7315 | (xfont_list_family): Declare argument type. | |
7316 | ||
7317 | * xfaces.c (set_lface_from_font_name): If a font doesn't have a | |
7318 | name, set LFACE_FONT (lface) to nil. | |
7319 | ||
7320 | * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded, | |
7321 | return Qnil. | |
7322 | ||
73acf815 | 7323 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7324 | |
1f45f627 | 7325 | * emacs.c (main): Check -enable-font-backend arg after the check of -nl. |
aca7a3d2 MB |
7326 | (standard_args): Add "-enable-font-backend". |
7327 | ||
73acf815 | 7328 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7329 | |
7330 | * xftfont.c (xftfont_default_fid): Set fid_known to 1. | |
7331 | (struct xftdraw_list, xftdraw_list): Delete them. | |
7332 | (register_xftdraw, check_xftdraw): Delete them. | |
7333 | (xftfont_prepare_face): Don't call register_xftdraw. | |
7334 | (xftfont_done_face): Don't call check_xftdraw. | |
7335 | (xftfont_draw): Get backroudn color only when with_background is | |
7336 | nonzero. | |
7337 | ||
7338 | * xfont.c (xfont_encode_char): Fix calculation of char2b. | |
7339 | ||
73acf815 | 7340 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7341 | |
7342 | These changes are for the new font handling codes. | |
7343 | ||
7344 | * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@, | |
7345 | @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. | |
7346 | (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@. | |
7347 | (FONTSRC, FONTOBJ): New variables. | |
7348 | (obj): Add $(FONTOBJ). | |
7349 | (SOME_MACHINE_OBJECTS): Lib_X11_Lib. | |
7350 | (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and | |
7351 | @LIBOTF_LIBS@. | |
7352 | (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets. | |
1f45f627 | 7353 | (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC). |
aca7a3d2 | 7354 | |
1f45f627 | 7355 | * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files. |
aca7a3d2 MB |
7356 | |
7357 | * character.h (Vscript_representative_chars): Extern it. | |
7358 | ||
7359 | * character.c (Vscript_representative_chars): New variable. | |
7360 | (syms_of_character): Declare it as a Lisp variable. | |
7361 | ||
7362 | * composite.c (get_composition_id) [USE_FONT_BACKEND]: If | |
7363 | enable_font_backend is nonzero, accept the composition method | |
7364 | COMPOSITION_WITH_GLYPH_STRING. | |
7365 | ||
7366 | * composite.h (enum composition_method) [USE_FONT_BACKEND]: New | |
7367 | enumeration COMPOSITION_WITH_GLYPH_STRING. | |
7368 | ||
aca7a3d2 MB |
7369 | * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New |
7370 | members clip_x, clip_y, clip_width, and clip_height. | |
7371 | (struct face) [USE_FONT_BACKEND]: New members font_info and extra. | |
7372 | ||
7373 | * emacs.c (main) [USE_FONT_BACKEND]: Handle arg | |
7374 | --enable-font-backend. Call syms_of_font. | |
7375 | ||
7376 | * fns.c (assoc_no_quit): New function. | |
7377 | ||
7378 | * fontset.h (FONT_INFO_FROM_FACE): New macro. | |
7379 | (face_for_font, new_fontset_from_font) | |
7380 | (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them. | |
7381 | ||
7382 | * fontset.c [USE_FONT_BACKEND]: Include "font.h". | |
7383 | (fontset_font, fontset_ascii, face_for_char) | |
7384 | (make_fontset_for_ascii_face, Ffont_info) | |
7385 | (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend | |
7386 | is nonzero, use font-backend mechanism. | |
7387 | (find_font_encoding): Make it non-static. | |
7388 | (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]: | |
7389 | New functions. | |
7390 | ||
7391 | * frame.h (struct frame): New members resx and resy. | |
7392 | (struct frame) [USE_FONT_BACKEND]: New member font_driver_list. | |
7393 | (x_new_fontset2) [USE_FONT_BACKEND]: Extern it. | |
7394 | ||
7395 | * frame.c [USE_FONT_BACKEND]: Include "font.h". | |
1f45f627 | 7396 | (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism. |
aca7a3d2 MB |
7397 | |
7398 | * lisp.h (assoc_no_quit): Extern it. | |
7399 | ||
7400 | * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h". | |
7401 | Through out the file, use FONT_INFO_FROM_FACE instead of | |
7402 | FONT_INFO_FROM_ID, use get_per_char_metric instead of | |
7403 | rif->per_char_metric. | |
7404 | (handle_composition_prop) [USE_FONT_BACKEND]: If the composition | |
7405 | method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '. | |
7406 | (get_glyph_face_and_encoding, fill_composite_glyph_string) | |
7407 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
7408 | (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is | |
7409 | nonzero, use font-backend mechanism. | |
7410 | (get_per_char_metric): New function. | |
7411 | ||
7412 | * xfaces.c [USE_FONT_BACKEND]: Include "font.h". | |
7413 | (set_lface_from_font_name) | |
7414 | (set_font_frame_param, free_realized_face) | |
7415 | (prepare_face_for_display, clear_face_gcs) | |
7416 | (Finternal_set_font_selection_order, realize_x_face) | |
7417 | [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use | |
7418 | font-backend mechanism. | |
1f45f627 | 7419 | (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table. |
aca7a3d2 MB |
7420 | (load_face_font) [USE_FONT_BACKEND]: Abort. |
7421 | (face_symbolic_value, face_symbolic_weight, face_symbolic_slant) | |
1f45f627 | 7422 | (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions. |
aca7a3d2 MB |
7423 | |
7424 | * xfns.c [USE_FONT_BACKEND]: Include "font.h". | |
7425 | (x_default_font_parameter) [USE_FONT_BACKEND]: New function. | |
7426 | (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is | |
7427 | nonzero, register all available font drivers. Call | |
7428 | x_default_font_parameter for deciding a font. | |
7429 | (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise. | |
7430 | ||
7431 | * xterm.c [USE_FONT_BACKEND]: Include "font.h". | |
7432 | (x_set_mouse_face_gc, x_set_glyph_string_clipping) | |
7433 | (x_set_glyph_string_clipping_exactly) | |
7434 | (x_compute_glyph_string_overhangs) | |
7435 | (x_draw_glyph_string_foreground) | |
7436 | (x_draw_composite_glyph_string_foreground, x_draw_glyph_string) | |
7437 | (x_free_frame_resources) [USE_FONT_BACKEND]: If | |
7438 | enable_font_backend is nonzero, use font-backend mechanism. | |
7439 | (x_new_fontset2) [USE_FONT_BACKEND]: New function. | |
7440 | ||
73acf815 | 7441 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7442 | |
fcb314b2 | 7443 | * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from |
aca7a3d2 MB |
7444 | system_eol_type. |
7445 | (syms_of_coding): Initialize system_eol_type. | |
7446 | ||
fcb314b2 GM |
7447 | * process.c (Fset_process_coding_system): Inherit system's eol |
7448 | format if necessary. | |
aca7a3d2 | 7449 | |
73acf815 | 7450 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
7451 | |
7452 | * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch. | |
7453 | ||
73acf815 | 7454 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7455 | |
7456 | * coding.c (decode_eol): Pay attention to buffer relocation in | |
7457 | del_range_2. | |
7458 | (decode_coding): Call decode_eol before restoring undo_list. | |
7459 | ||
73acf815 | 7460 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7461 | |
7462 | * charset.c (Fdefine_charset_internal): Fix setting of | |
7463 | emacs_mule_bytes. | |
7464 | ||
73acf815 | 7465 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7466 | |
7467 | * keyboard.c (read_char): Check if C is a character or not before | |
7468 | looking up Vkeyboard_translate_table. | |
7469 | ||
73acf815 | 7470 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7471 | |
7472 | * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix | |
7473 | condition to terminate the loop. | |
7474 | ||
73acf815 | 7475 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7476 | |
7477 | * coding.c (produce_composition): Compare charbuf[i] instead of | |
7478 | args[i] against 0. | |
7479 | (Fterminal_coding_system): Use EQ to compare Lisp objects. | |
7480 | ||
73acf815 | 7481 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7482 | |
7483 | * coding.c (DECODE_COMPOSITION_START): If the source is short, set | |
7484 | coding->result to CODING_RESULT_INSUFFICIENT_SRC. | |
7485 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of | |
7486 | detect_coding. | |
7487 | (emacs_mule_char): Handle old style (Emacs 20) component character | |
7488 | of a composition. | |
4c4475a8 GM |
7489 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20) |
7490 | (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a | |
7491 | composition rule. | |
aca7a3d2 MB |
7492 | (decode_coding_emacs_mule): Handle invalid bytes correctly. |
7493 | ||
73acf815 | 7494 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7495 | |
7496 | * coding.c (encode_coding_ccl): Allocate destination dynamically | |
7497 | when necessary. | |
7498 | ||
73acf815 | 7499 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7500 | |
7501 | * ccl.c (Fccl_execute_on_string): Fix the condition of terminating | |
7502 | the loop. When quitted, show a proper error message. | |
7503 | ||
73acf815 | 7504 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7505 | |
aca7a3d2 MB |
7506 | * xterm.c (x_set_glyph_string_clipping_exactly): Set |
7507 | src->clip_head and src->clip_tail temporarily instead of src->hl. | |
7508 | ||
7509 | * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte | |
7510 | character sequence. | |
7511 | (Fccl_execute_on_string): Use ASET, not XSET. | |
7512 | ||
73acf815 | 7513 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7514 | |
1f45f627 | 7515 | * search.c (search_buffer): Fix handling of "\\" in a trivial regexp. |
aca7a3d2 | 7516 | |
73acf815 | 7517 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7518 | |
7519 | * coding.c (decode_coding): Fix the condition of terminating the | |
7520 | decoding loop. | |
7521 | ||
73acf815 | 7522 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7523 | |
7524 | * data.c (Faset): On setting a character bigger than 255 in a | |
1f45f627 | 7525 | unibyte string, signal an error instead of make the string multibyte. |
aca7a3d2 | 7526 | |
73acf815 | 7527 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7528 | |
7529 | * charset.c (map_charset_chars): Fix for ascii-compatible charset | |
7530 | made by a mapping table. | |
7531 | ||
73acf815 | 7532 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7533 | |
7534 | * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or | |
7535 | not. | |
7536 | (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. | |
7537 | (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. | |
7538 | ||
7539 | * xterm.c (x_draw_composite_glyph_string_foreground): Check | |
7540 | s->face is NULL or not. | |
7541 | ||
73acf815 | 7542 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7543 | |
7544 | * xterm.c (x_set_glyph_string_clipping_exactly): New function. | |
7545 | (x_draw_glyph_string): Fix drawing of right_overhang and | |
7546 | left_overhang around/on cursor. | |
7547 | ||
1f45f627 | 7548 | * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs. |
aca7a3d2 | 7549 | |
73acf815 | 7550 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7551 | |
7552 | * xdisp.c (x_produce_glyphs): Handle composition with TAB. | |
7553 | ||
73acf815 | 7554 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7555 | |
4c4475a8 GM |
7556 | * coding.c (Fdefine_coding_system_internal) |
7557 | (Fdefine_coding_system_alias): Avoid a duplicated element in | |
7558 | Vcoding_system_alist. | |
aca7a3d2 | 7559 | |
73acf815 | 7560 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7561 | |
7562 | * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. | |
7563 | ||
fcb314b2 | 7564 | * coding.c (Qcoding_system_define_form): New variable. |
aca7a3d2 MB |
7565 | (syms_of_coding): Intern and staticpro it. |
7566 | (Fcoding_system_p): Check Qcoding_system_define_form. | |
1f45f627 | 7567 | (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM. |
aca7a3d2 MB |
7568 | |
7569 | * coding.h (CODING_SYSTEM_P): If ID is not available, call | |
7570 | Fcoding_system_p. | |
7571 | (CHECK_CODING_SYSTEM): If ID is not available, call | |
7572 | Fcheck_coding_system. | |
4c4475a8 GM |
7573 | (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID): |
7574 | Try also Fcheck_coding_system. | |
aca7a3d2 | 7575 | |
73acf815 | 7576 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7577 | |
aca7a3d2 MB |
7578 | * coding.c (code_conversion_restore): GCPRO arg. |
7579 | ||
73acf815 | 7580 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7581 | |
7582 | * character.c (lisp_string_width): Check multibyteness of STRING. | |
7583 | ||
73acf815 | 7584 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
7585 | |
7586 | * macterm.c (mac_encode_char): Call ccl_driver with the last arg | |
7587 | Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. | |
7588 | (decode_mac_font_name): Use decode_coding_c_string instead of | |
7589 | decode_coding. | |
7590 | (x_load_font): Initialize fontp->fontset to -1. Set | |
7591 | fontp->encoding_type. | |
7592 | ||
73acf815 | 7593 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7594 | |
7595 | * search.c (search_buffer): Give up BM search on case-fold-search | |
7596 | if one of a target character has a case-equivalence of different | |
7597 | byte length even if that target charcter is an ASCII. | |
1f45f627 GM |
7598 | (simple_search): Fix calculation of byte length of matched text. |
7599 | (boyer_moore): Fix handling of case-equivalent multibyte characters. | |
aca7a3d2 | 7600 | |
73acf815 | 7601 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7602 | |
7603 | * coding.c (decode_coding): Fix handling of invalid bytes. | |
7604 | ||
73acf815 | 7605 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7606 | |
7607 | * xterm.c (handle_one_xevent): Handle keysyms directly mapped to | |
7608 | Unicode characters. | |
7609 | ||
73acf815 | 7610 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7611 | |
7612 | * coding.c (encode_coding_object): If a pre-write-conversion | |
7613 | function makes a new buffer, kill it. | |
7614 | ||
73acf815 | 7615 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7616 | |
7617 | * coding.c (QCascii_compatible_p): New variable. | |
7618 | (syms_of_coding): Initialize it. | |
4c4475a8 GM |
7619 | (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before |
7620 | calling string_char. | |
aca7a3d2 MB |
7621 | (record_conversion_result): Add `default:' case. |
7622 | (coding_charset_list): Delete unused variable `coding_type'. | |
7623 | (Fdefine_coding_system_internal): Add `ascii-compatible-p' | |
7624 | property in the plist of the coding system. | |
7625 | (Fcoding_system_put): Check QCascii_compatible_p. | |
7626 | ||
73acf815 | 7627 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 MB |
7628 | |
7629 | * xfaces.c (Finternal_lisp_face_equal_p): Restore previously | |
7630 | removed calculation of frame `f', as it's now used. | |
7631 | ||
73acf815 | 7632 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7633 | |
1f45f627 | 7634 | * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined. |
aca7a3d2 MB |
7635 | (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. |
7636 | (UNIDATA): New variable. | |
7637 | (${lispsource}international/charprop.el): Depends on ${UNIDATA}. | |
7638 | (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run | |
7639 | $(RUN_TEMACS) unconditionally. | |
7640 | ||
73acf815 | 7641 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7642 | |
1f45f627 | 7643 | * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary. |
aca7a3d2 MB |
7644 | (admindir): New variable. |
7645 | ($(lispsource)international/charprop.el): New target. | |
7646 | ||
73acf815 | 7647 | 2008-02-01 Miles Bader <miles@gnu.org> |
aca7a3d2 | 7648 | |
1f45f627 | 7649 | * character.c (chars-in-region): Remove obsolete function. |
aca7a3d2 MB |
7650 | (syms_of_character): Remove its initialization. |
7651 | ||
73acf815 | 7652 | 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net> |
aca7a3d2 MB |
7653 | |
7654 | * w32select.c (validate_coding_system) | |
7655 | (setup_windows_coding_system): New functions. | |
7656 | (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use | |
7657 | setup_windows_coding_system. | |
7658 | (setup_config, Fw32_get_clipboard_data): Use | |
7659 | validate_coding_system. | |
7660 | (Fx_selection_exists): Move call to setup_config to a place | |
1f45f627 | 7661 | where signals are allowed. |
aca7a3d2 MB |
7662 | |
7663 | * lisp.h (Fcoding_system_base, Fcoding_system_eol_type) | |
7664 | (Fcheck_coding_system): Add declarations. | |
7665 | ||
73acf815 | 7666 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7667 | |
1f45f627 | 7668 | * charset.c (load_charset_map_from_vector): Fix for the first iteration. |
aca7a3d2 | 7669 | |
73acf815 | 7670 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
7671 | |
7672 | * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp | |
7673 | string as the second argument for x_new_fontset. | |
7674 | ||
73acf815 | 7675 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7676 | |
7677 | * coding.c (decode_coding_object): Use safe_call1 instead of call1. | |
7678 | (encode_coding_object): Use safe_call instead of call2. | |
7679 | ||
73acf815 | 7680 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7681 | |
1f45f627 | 7682 | * fontset.c (Fset_fontset_font): Check family element of a given vector. |
aca7a3d2 MB |
7683 | |
7684 | * Makefile.in (lisp): Include charprop.el. | |
7685 | ||
73acf815 | 7686 | 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
aca7a3d2 MB |
7687 | |
7688 | * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash. | |
7689 | Not sure if it's unnecessary. | |
7690 | ||
73acf815 | 7691 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
7692 | |
7693 | * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out | |
7694 | some possibly unnecessary fontset checking code that crashed | |
1f45f627 | 7695 | when creating a new frame. |
aca7a3d2 | 7696 | |
73acf815 | 7697 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7698 | |
7699 | * xfaces.c (merge_faces): Fix argument to lookup_derived_face and | |
7700 | lookup_face. | |
7701 | ||
7702 | * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face. | |
7703 | ||
1f45f627 | 7704 | * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face. |
aca7a3d2 | 7705 | |
73acf815 | 7706 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7707 | |
73acf815 | 7708 | * coding.c: Cancel the change done in HEAD on 2008-02-01. |
aca7a3d2 MB |
7709 | (coding_charset_list): New function. |
7710 | ||
7711 | * coding.h (coding_charset_list): Extern it. | |
7712 | ||
73acf815 | 7713 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7714 | |
7715 | * fontset.c (Fset_fontset_font): Call find_font_encoding with | |
7716 | concatenation of family and registry. | |
7717 | ||
73acf815 | 7718 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7719 | |
7720 | * character.h (BYTE8_STRING): Fix typo. | |
7721 | ||
7722 | * editfns.c (Ftranslate_region_internal): Don't convert unibyte | |
7723 | string to multibyte (sync to HEAD). | |
7724 | ||
7725 | * casefiddle.c (casify_region): Handle changes in byte-length | |
7726 | using replace_range_2 (sync to HEAD). | |
7727 | ||
73acf815 | 7728 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
7729 | |
7730 | * chartab.c (map_char_table): GCPRO table and arg. | |
7731 | ||
73acf815 | 7732 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7733 | |
7734 | * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is | |
7735 | already at limit. | |
7736 | ||
73acf815 | 7737 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7738 | |
7739 | * fontset.c (fs_load_font): Use fast_string_match_ignore_case | |
7740 | instead of fast_c_string_match_ignore_case. | |
1f45f627 | 7741 | (find_font_encoding): Change argument to Lisp_Object. Use |
aca7a3d2 | 7742 | fast_string_match_ignore_case instead of |
1f45f627 | 7743 | fast_c_string_match_ignore_case. Change caller. |
aca7a3d2 | 7744 | |
73acf815 | 7745 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7746 | |
7747 | * xdisp.c (get_next_display_element): In unibyte case, decide to | |
7748 | display in octal form by checking a chacter by | |
7749 | UNIBYTE_CHAR_HAS_MULTIBYTE_P. | |
7750 | ||
1f45f627 | 7751 | * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table. |
aca7a3d2 MB |
7752 | |
7753 | * character.c (unibyte_has_multibyte_table): New variable. | |
7754 | ||
7755 | * character.h (unibyte_has_multibyte_table): Extern it. | |
7756 | (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro. | |
7757 | ||
73acf815 | 7758 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7759 | |
7760 | * coding.c (encode_coding_iso_2022): Fix handling of charset | |
7761 | annotation. | |
7762 | ||
73acf815 | 7763 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7764 | |
7765 | * coding.c (setup_coding_system): If coding_system is nil, use | |
7766 | Qundecided. | |
7767 | (Fterminal_coding_system): Return nil if terminal coding system is | |
7768 | `undecided'. | |
7769 | (syms_of_coding): Define coding-system `undecided' here. Setup | |
7770 | terminal_coding as `undecided'. | |
7771 | ||
73acf815 | 7772 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7773 | |
7774 | * xdisp.c (message_dolog, set_message_1): Call | |
7775 | unibyte_char_to_multibyte with arg type int. | |
7776 | ||
aca7a3d2 MB |
7777 | * lread.c (read1): Fix reading of a char-table. |
7778 | ||
7779 | * print.c (print_object): Include sub char-table in cicularities | |
7780 | detection. | |
7781 | ||
73acf815 | 7782 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7783 | |
7784 | * keymap.c (where_is_internal_2): Fix for the case that KEY is a | |
1f45f627 | 7785 | cons. Append the found sequences in car of ARGS instead of prepending. |
aca7a3d2 | 7786 | |
73acf815 | 7787 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7788 | |
7789 | * fileio.c (report_file_error): Make a unibyte string from | |
7790 | strerror (errorno). | |
7791 | (Fsubstitute_in_file_name): Fix the arg to | |
7792 | unibyte_char_to_multibyte. It is evaluated twice. | |
7793 | ||
73acf815 | 7794 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7795 | |
7796 | * charset.h (CHAR_CHARSET): Shortcut for ASCII case. | |
7797 | ||
73acf815 | 7798 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7799 | |
7800 | * coding.c (detect_coding_utf_16): Don't set detect_info->found if | |
7801 | BOM is not found. | |
4c4475a8 GM |
7802 | (detect_coding, detect_coding_system): Optimization for ISO-2022 |
7803 | when no 8-bit data is found. | |
aca7a3d2 | 7804 | |
73acf815 | 7805 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
7806 | |
7807 | * w32fns.c (x_to_w32_font): Update to use new coding struct. | |
7808 | ||
73acf815 | 7809 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7810 | |
4c4475a8 GM |
7811 | * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of |
7812 | CHARS. | |
aca7a3d2 | 7813 | |
73acf815 | 7814 | 2008-02-01 Steven Tamm <steventamm@mac.com> |
aca7a3d2 MB |
7815 | |
7816 | * macterm.c (mac_encode_char): Add charset argument and update | |
7817 | to use encoding_type. | |
2a2e8de7 | 7818 | (x_new_font, x_new_fontset): Merge in changes from xterm.c; |
1f45f627 GM |
7819 | switch to pure fontset. |
7820 | (decode_mac_font_name): Temporarily remove decoding. | |
7821 | (x_font_name_to_mac_font_name): Temporarily remove encoding. | |
7822 | (x_load_font): Temporarily remove encoding. | |
aca7a3d2 | 7823 | |
73acf815 | 7824 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7825 | |
7826 | * xfaces.c (Fface_font): If frame is not on a window system, | |
7827 | ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't | |
7828 | refer to face->font. | |
7829 | (split_font_name_into_vector, build_font_name_from_vector) | |
7830 | (lookup_non_ascii_face, realize_non_ascii_face): Define them only | |
7831 | whne HAVE_WINDOW_SYSTEM is defined. | |
7832 | ||
73acf815 | 7833 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7834 | |
7835 | * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. | |
7836 | (x_produce_glyphs): Fix setting of members of cmp in case | |
1f45f627 | 7837 | cmp->glyph_len is zero. |
aca7a3d2 | 7838 | |
1f45f627 | 7839 | * fontset.c (Fset_fontset_font): Fix docstring. |
aca7a3d2 MB |
7840 | (Ffontset_info): Make it backward compatible. New arg ALL. |
7841 | ||
73acf815 | 7842 | 2008-02-01 Kim F. Storm <storm@cua.dk> |
aca7a3d2 MB |
7843 | |
7844 | * process.c (read_process_output): Grow decoding_buf when needed; | |
7845 | this could cause a crash in allocate_string and compact_small_strings. | |
7846 | ||
73acf815 | 7847 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7848 | |
1f45f627 | 7849 | * fileio.c (WRITE_BUF_SIZE): Delete this macro. |
aca7a3d2 | 7850 | |
73acf815 | 7851 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7852 | |
7853 | * coding.c (setup_coding_system): Set coding->common_flags | |
7854 | correctly for raw-text. | |
7855 | (consume_chars): On encoding unibyte text by raw-text, don't check | |
7856 | multibyte form. | |
1f45f627 | 7857 | (encode_coding): On encoding by raw-text, never use translation tables. |
aca7a3d2 MB |
7858 | |
7859 | * fileio.c (e_write): Short cut for the case of no encoding. | |
7860 | ||
73acf815 | 7861 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7862 | |
4c4475a8 GM |
7863 | * coding.c (detect_coding, detect_coding_system): Delete unused |
7864 | variables. | |
aca7a3d2 | 7865 | |
73acf815 | 7866 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7867 | |
7868 | * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. | |
7869 | (consume_chars): Fix handling of 8-bit bytes in unibyte source. | |
7870 | ||
73acf815 | 7871 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7872 | |
7873 | * coding.c (Ffind_coding_systems_region_internal): Include | |
7874 | raw-text and no-conversion in the result. | |
7875 | ||
73acf815 | 7876 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7877 | |
1f45f627 | 7878 | * fontset.c (find_font_encoding): Return `ascii' for unknown encoding. |
aca7a3d2 MB |
7879 | (load_font_get_repertory): Delete unnecessary check of ENCODING of |
7880 | FONT_DEF. | |
7881 | (font_def_arg, add_arg, from_arg, to_arg): New args. | |
1f45f627 | 7882 | (set_fontset_font): Change argument. |
aca7a3d2 MB |
7883 | (Fset_fontset_font): Fix for the case that TARGET is a script |
7884 | name and charset name. | |
7885 | (new_fontset_from_font_name): Fix argument to Fnew_fontset. | |
7886 | ||
73acf815 | 7887 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7888 | |
1f45f627 GM |
7889 | * fontset.c (fontset_font): Rename from fontset_face. Change return |
7890 | value. | |
4c4475a8 GM |
7891 | (face_suitable_for_char_p, face_for_char): Adjust for the change |
7892 | of fontset_font. | |
aca7a3d2 MB |
7893 | (make_fontset_for_ascii_face): Fix setting of the fontset element |
7894 | for ASCII. | |
7895 | (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR | |
7896 | to get a font name. | |
1f45f627 | 7897 | (Ffontset_info): Adjust for the change of fontset_font. |
aca7a3d2 | 7898 | |
fcb314b2 | 7899 | * coding.c (emacs_mule_char): Check invalid code more regidly. |
aca7a3d2 MB |
7900 | |
7901 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
7902 | (LEADING_CODE_LATIN_1_MAX): Delete these macros. | |
7903 | ||
73acf815 | 7904 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7905 | |
fcb314b2 | 7906 | * editfns.c (check_translation): New function. |
aca7a3d2 MB |
7907 | (Ftranslate_region_internal): Handle M:N mapping. |
7908 | ||
73acf815 | 7909 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7910 | |
7911 | * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. | |
7912 | ||
73acf815 | 7913 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7914 | |
7915 | * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of | |
7916 | goto invalid_code. | |
7917 | (decode_coding_iso_2022): Fix handling of invalid designation. | |
7918 | ||
7919 | * fileio.c (Finsert_file_contents): Be sure to call unbind_to | |
7920 | after calling code_conversion_save. | |
7921 | ||
73acf815 | 7922 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7923 | |
7924 | * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. | |
7925 | ||
7926 | * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. | |
7927 | ||
7928 | * fontset.c: Include "intervals.h". | |
7929 | (fontset_face): Fix comparing of Lisp_Objects. | |
4c4475a8 GM |
7930 | (free_face_fontset, new_fontset_from_font_name): Fix |
7931 | Lisp_Object/int mixup. | |
aca7a3d2 MB |
7932 | |
7933 | * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. | |
7934 | ||
7935 | * coding.c: Add many prototypes for static functions. | |
7936 | (get_translation_table): Allow max_lookup to be NULL. | |
2a2e8de7 | 7937 | (decode_coding, Ffind_coding_systems_region_internal) |
4c4475a8 GM |
7938 | (Funencodable_char_position, Fcheck_coding_systems_region): Call |
7939 | get_translation_table with max_lookup NULL. | |
aca7a3d2 | 7940 | |
73acf815 | 7941 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7942 | |
7943 | * coding.c (get_translation_table): Declare it as Lisp_Object. | |
7944 | (LOOKUP_TRANSLATION_TABLE): New macro. | |
4c4475a8 GM |
7945 | (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE |
7946 | instead of CHAR_TABLE_REF. | |
aca7a3d2 | 7947 | |
73acf815 | 7948 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 7949 | |
1f45f627 | 7950 | * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of |
aca7a3d2 MB |
7951 | annotation data format. |
7952 | (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): | |
1f45f627 | 7953 | Change arguments FROM and TO to single argument NCHARS. Change caller. |
4c4475a8 | 7954 | (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule) |
aca7a3d2 | 7955 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) |
4c4475a8 GM |
7956 | (decode_coding_ccl, decode_coding_charset): Pay attention to |
7957 | coding->charbuf_used. | |
aca7a3d2 MB |
7958 | (get_translation): New function. |
7959 | (produce_chars): New arguments translation_table and last_block. | |
7960 | Translate characters here. Return number of carryover chars. | |
1f45f627 GM |
7961 | Change caller. |
7962 | (produce_composition): New argument pos. Change caller. | |
7963 | Adjust for the change of annotation data format. | |
aca7a3d2 MB |
7964 | (produce_charset, produce_annotation): Likewise. |
7965 | (decode_coding, encode_coding): Don't call translate_chars. | |
1f45f627 GM |
7966 | (consume_chars): New arg translation_table. Change caller. |
7967 | (translate_chars): Delete. | |
7968 | (syms_of_coding): Make translation-table's number of extra slots 2. | |
aca7a3d2 | 7969 | |
73acf815 | 7970 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7971 | |
7972 | * search.c (simple_search): Fix setting this_pos_byte in backward | |
7973 | search. | |
7974 | ||
7975 | * coding.c (detect_coding_emacs_mule): Fix counting of encoded | |
7976 | byte sequence. | |
7977 | (detect_coding_ccl): Fix setting of the variable valids. | |
7978 | ||
73acf815 | 7979 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7980 | |
7981 | * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. | |
7982 | ||
7983 | * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. | |
7984 | ||
1f45f627 | 7985 | * editfns.c (Ftranslate_region_internal): Rename from |
aca7a3d2 MB |
7986 | Ftranslate_region. Accept a char-table in TABLE. |
7987 | (syms_of_editfns): Defsubr Stranslate_region_internal. | |
7988 | ||
7989 | * xfaces.c (set_lface_from_font_name): If a font is specified for | |
7990 | a frame, generate a fontset from the font. | |
7991 | (build_scalable_font_name): If the scalable font is requested for | |
7992 | a specific size, don't change that size. | |
7993 | (try_font_list): Try a scalable font also in the case that a | |
1f45f627 | 7994 | pattern string is specified. |
aca7a3d2 | 7995 | |
73acf815 | 7996 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
7997 | |
7998 | * xfaces.c (Fface_font): New optional arg CHARACTER. | |
7999 | ||
73acf815 | 8000 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8001 | |
8002 | * charset.h (CHARSET_OFFSET): New macro. | |
8003 | ||
73acf815 | 8004 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8005 | |
8006 | * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. | |
8007 | ||
8008 | * fontset.c (fontset_face): Handle the case that repertory is a | |
8009 | char-table. | |
8010 | (find_font_encoding): Return nil for unknown encoding. | |
8011 | (Fset_fontset_font): Ignore a font of unknown encoding. | |
8012 | ||
73acf815 | 8013 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8014 | |
1f45f627 | 8015 | * keymap.c (describe_vector): Handle default value of a char table. |
aca7a3d2 MB |
8016 | |
8017 | * fontset.c (fontset_face): Handle fallback fonts correctly. | |
8018 | (Ffontset_info): Return infomation about fallback fonts. | |
8019 | ||
73acf815 | 8020 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8021 | |
8022 | * fontset.c (FONTSET_DEFAULT): New macro. | |
4c4475a8 | 8023 | (FONTSET_ADD, fontset_add): Handle the case that range is nil. |
aca7a3d2 MB |
8024 | (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle |
8025 | the case that it is nil. | |
8026 | (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK. | |
1f45f627 | 8027 | (syms_of_fontset): Set char-table-extra-slots property of fontset to 9. |
aca7a3d2 MB |
8028 | |
8029 | * charset.h (CHAR_CHARSET_P): Fix for the case that the method is | |
8030 | subset or superset. | |
8031 | ||
73acf815 | 8032 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8033 | |
8034 | * emacs.c (main): Call init_charset after syms_of_XXX. | |
8035 | ||
1f45f627 | 8036 | * charset.c (Vcharset_map_directory): Delete. |
1f204af3 | 8037 | (Vcharset_map_path): New variable. |
aca7a3d2 MB |
8038 | (load_charset_map_from_file): Use Vcharset_map_path instead. |
8039 | (init_charset): Initialize Vcharset_map_path. | |
8040 | (syms_of_charset): Delete declaration of "charset-map-directory", | |
8041 | add declaration of "charset-map-path". | |
8042 | ||
73acf815 | 8043 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8044 | |
4c4475a8 GM |
8045 | * fns.c (string_char_to_byte, string_byte_to_char): Optimize for |
8046 | ASCII only string. | |
aca7a3d2 MB |
8047 | |
8048 | * fileio.c (Finsert_file_contents): Avoid detecting a code twice. | |
8049 | ||
8050 | * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. | |
6f69e89b | 8051 | (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte. |
aca7a3d2 | 8052 | |
73acf815 | 8053 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8054 | |
8055 | * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. | |
8056 | ||
8057 | * coding.c (QCmnemonic, QCdefalut_char) | |
8058 | (QCdecode_translation_table, QCencode_translation_table) | |
8059 | (QCpost_read_conversion, QCpre_write_conversion): New variables. | |
8060 | (get_translation_table): Return a list of translation tables if | |
8061 | necessary. | |
8062 | (decode_coding): Call get_translation_table with ENCODEP 0. | |
8063 | (char_encodable_p): If translation_table is non-nil, always call | |
8064 | translate_char. | |
8065 | (Fdefine_coding_system_internal): Accept list of translation | |
8066 | tables as :encode-translation-table and :decode-translation-table. | |
8067 | (Fcoding_system_put): New function. | |
8068 | (syms_of_coding): Declare new symbols. Defsubr | |
8069 | Scoding_system_put. | |
4c4475a8 GM |
8070 | (decode_coding_sjis, encode_coding_sjis): Handle 4th charset, |
8071 | typically JISX0212. | |
aca7a3d2 MB |
8072 | |
8073 | * charset.c (map_charset_chars): Fix arg to map_charset_chars in | |
8074 | when the charset is superset type. | |
8075 | ||
8076 | * character.c (translate_char): Accept list of translation tables. | |
8077 | ||
73acf815 | 8078 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8079 | |
1f45f627 | 8080 | * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl. |
aca7a3d2 MB |
8081 | (CODING_ATTR_TRANS_TBL): New macro. |
8082 | ||
8083 | * coding.c (get_translation_table): New function. | |
8084 | (translate_chars): Fix the bug of skipping annotation data. | |
4c4475a8 GM |
8085 | (decode_coding, encode_coding): Utilize get_translation_table. |
8086 | (char_encodable_p, Funencodable_char_position): Translate char if | |
8087 | necessary. | |
8088 | (Ffind_coding_systems_region_internal) | |
8089 | (Fcheck_coding_systems_region): Setup translation table for encode | |
8090 | in a coding system attribute vector in advance. | |
aca7a3d2 MB |
8091 | (Fdefine_coding_system_internal): Allow a symbol as translation |
8092 | table. For shift-jis type coding system, allow 4th charset. | |
8093 | ||
73acf815 | 8094 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8095 | |
8096 | * coding.c (decode_coding_sjis): Check the first byte rigidly. | |
8097 | ||
8098 | * xdisp.c (get_next_display_element): Pass -1 as POS to | |
8099 | FACE_FOR_CHAR if displaying a C-string. | |
8100 | ||
73acf815 | 8101 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8102 | |
8103 | * composite.c (get_composition_id): Handle xoff and yoff in a | |
8104 | composition rule. | |
8105 | ||
8106 | * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. | |
8107 | (struct composition): New member lbearing and rbearing. | |
8108 | ||
8109 | * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y). | |
8110 | (x_get_glyph_overhangs): Handle a composition glyph. | |
1f45f627 | 8111 | (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph. |
aca7a3d2 MB |
8112 | |
8113 | * xterm.c (x_compute_glyph_string_overhangs): Handle also a | |
8114 | composition glyph. | |
8115 | ||
73acf815 | 8116 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8117 | |
8118 | * print.c: Include charset.h. | |
8119 | (Vprint_charset_text_property): New variable. | |
8120 | (Qdefault): Extern it. | |
8121 | (PRINT_STRING_NON_CHARSET_FOUND) | |
8122 | (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros. | |
8123 | (print_check_string_result): New variable. | |
8124 | (print_check_string_charset_prop): New function. | |
8125 | (print_prune_charset_plist): New variable. | |
8126 | (print_prune_string_charset): New function. | |
8127 | (print_object): Call print_prune_string_charset if | |
8128 | Vprint_charset_text_property is not t. | |
8129 | (print_interval): Print nothing if itnerval->plist is nil. | |
8130 | (syms_of_print): Declare Vprint_charset_text_property as a lisp | |
8131 | variable. Init and staticpro print_prune_charset_plist. | |
8132 | ||
73acf815 | 8133 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8134 | |
8135 | * fontset.c (new_fontset_from_font_name): Use the specified font | |
8136 | for all characters in the new fontset. | |
8137 | ||
8138 | * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
8139 | OBJECT args. | |
8140 | ||
8141 | * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and | |
8142 | OBJECT args for composition too. | |
8143 | ||
8144 | * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
8145 | OBJECT args. | |
8146 | ||
73acf815 | 8147 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8148 | |
8149 | * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. | |
8150 | ||
1f45f627 | 8151 | * fontset.c (reorder_font_vector): Adjust for the change of |
aca7a3d2 | 8152 | FONT_DEF format. |
1f45f627 | 8153 | (fontset_face): New arg id. Change caller. |
aca7a3d2 | 8154 | (face_for_char): New args pos and object. |
1f204af3 | 8155 | (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format. |
aca7a3d2 MB |
8156 | (fs_query_fontset): Check NAME by Fassoc too. |
8157 | (Fset_fontset_font): Allow non-XLFD font name. | |
1f45f627 | 8158 | (Ffontset_info): Adjust for the change of FONT_DEF format. |
aca7a3d2 | 8159 | |
1f45f627 | 8160 | * fontset.h (face_for_char): Adjust prototype. |
aca7a3d2 | 8161 | |
4c4475a8 GM |
8162 | * xdisp.c (face_before_or_after_it_pos, get_next_display_element) |
8163 | (append_space, extend_face_to_end_of_line) | |
8164 | (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) | |
8165 | (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args. | |
aca7a3d2 MB |
8166 | |
8167 | * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with | |
8168 | POS and OBJECT args. | |
8169 | ||
8170 | * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with | |
8171 | POS and OBJECT args. | |
8172 | ||
73acf815 | 8173 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
8174 | |
8175 | * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc | |
8176 | of GlobalAlloc'ed memory. | |
8177 | ||
73acf815 | 8178 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8179 | |
8180 | * ccl.c (Fccl_execute_on_string): Fix the condition of loop. | |
8181 | ||
8182 | * charset.h (charset_table_used): Delete extern. | |
8183 | ||
8184 | * charset.c (charset_table_used): Make it static. | |
8185 | (map_charset_chars): Fix args to c_function with. | |
8186 | ||
8187 | * chartab.c (map_sub_char_table_for_charset): Fix args to | |
8188 | c_function with. | |
8189 | ||
8190 | * coding.h (enum coding_result_code): Delete | |
8191 | CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. | |
8192 | ||
8193 | * coding.c (Qinsufficient_source, Qinconsistent_eol) | |
1f45f627 | 8194 | (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. |
aca7a3d2 MB |
8195 | (Vlast_code_conversion_error): New variables. |
8196 | (syms_of_coding): DEFSYM or DEFVAR_LISP them. | |
8197 | (ONE_MORE_BYTE): Record error if any instead of signaling an | |
8198 | error. If non-ASCII multibyte char is found, return the negative | |
8199 | value of the code. All callers changed to check it. | |
8200 | (ONE_MORE_BYTE_NO_CHECK): Likewise. | |
1f45f627 GM |
8201 | (record_conversion_result): New function. Change all codes setting |
8202 | coding->result to call this function. | |
4c4475a8 GM |
8203 | (detect_coding_utf_8, decode_coding_utf_8) |
8204 | (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5): | |
8205 | Don't use the local variable incomplete. | |
aca7a3d2 | 8206 | (emacs_mule_char): Change the second arg to `const'. |
aca7a3d2 MB |
8207 | (decode_coding): Fix of flushing out unprocessed data. |
8208 | (make_conversion_work_buffer): Fix making of a work buffer. | |
2a2e8de7 | 8209 | (decode_coding_object): Return coding->dst_object. |
aca7a3d2 MB |
8210 | |
8211 | * fontset.c (set_fontset_font): Fix args. | |
8212 | ||
8213 | * lisp.h (CHARACTERBITS): Define as 22. | |
8214 | ||
8215 | * process.c (send_process): Be sure to set coding->src_multibyte. | |
8216 | ||
8217 | * xdisp.c (handle_auto_composed_prop): Fix setting of limit. | |
8218 | ||
73acf815 | 8219 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8220 | |
8221 | * xdisp.c (handle_auto_composed_prop): Give limit to | |
8222 | Fnext_single_char_property_change. | |
8223 | ||
73acf815 | 8224 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8225 | |
424c157f | 8226 | * composite.c (syms_of_composite): Don't make the composition hash |
1f45f627 | 8227 | table weak. |
aca7a3d2 MB |
8228 | |
8229 | * fontset.c (Fset_fontset_font): Fix docstring. | |
8230 | ||
8231 | * lisp.h (detect_coding_system): Adjust prototype. | |
8232 | ||
8233 | * fileio.c (kill_workbuf_unwind): Delete this function. | |
8234 | (Finsert_file_contents): Adjust the call of detect_coding_system. | |
8235 | Get conversion_buffer by code_conversion_save. Use the macor | |
8236 | CODING_MAY_REQUIRE_DECODING. After decoding, update | |
8237 | coding_system. | |
8238 | ||
8239 | * coding.h (make_conversion_work_buffer): Delete extern. | |
8240 | (code_conversion_save): Extern it. | |
8241 | ||
8242 | * coding.c (enum iso_code_class_type): Delete ISO_carriage_return. | |
1f45f627 | 8243 | (CODING_GET_INFO): Delete argument eol_type. Change callers. |
aca7a3d2 MB |
8244 | (decode_coding_utf_8): Don't do eol converion. |
8245 | (detect_coding_utf_16): Check coding->src_chars, not | |
1f45f627 | 8246 | coding->src_bytes. Add heuristics for those that have no signature. |
4c4475a8 GM |
8247 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
8248 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
8249 | Don't do eol converion. | |
aca7a3d2 MB |
8250 | (adjust_coding_eol_type): Return a new coding system. |
8251 | (detect_coding): Don't detect eol. Fix for utf-16 detection. | |
8252 | (decode_eol): In case of CRLF->LF conversion, use del_range_2 on | |
8253 | each change. | |
8254 | (decode_coding): Pay attention to undo_list. Do eol convesion for | |
8255 | all types of coding-systems (if necessary). | |
8256 | (Vcode_conversion_work_buf_list): Delete it. | |
1f45f627 | 8257 | (Vcode_conversion_reused_workbuf): Rename from |
aca7a3d2 MB |
8258 | Vcode_conversion_reused_work_buf. |
8259 | (Vcode_conversion_workbuf_name): New variable. | |
8260 | (reused_workbuf_in_use): New variable. | |
8261 | (make_conversion_work_buffer): Delete the arg DEPTH. | |
4c4475a8 | 8262 | (code_conversion_restore): Change argument to cons. |
1f45f627 GM |
8263 | (code_conversion_save): Delete the argument BUFFER. Change callers. |
8264 | (detect_coding_system): New argument src_chars. Change callers. | |
aca7a3d2 MB |
8265 | Fix for utf-16 detection. |
8266 | (init_coding_once): Don't use ISO_carriage_return. | |
1f45f627 | 8267 | (syms_of_coding): Initialize Vcode_conversion_workbuf_name and |
aca7a3d2 MB |
8268 | reused_workbuf_in_use. |
8269 | ||
73acf815 | 8270 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8271 | |
8272 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
8273 | is a cons specifying a character range. | |
8274 | ||
73acf815 | 8275 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8276 | |
8277 | * xdisp.c (handle_auto_composed_prop): Fix the case of returning | |
8278 | HANDLED_RECOMPUTE_PROPS. | |
8279 | ||
8280 | * coding.c (Fdefine_coding_system_internal): Fix checking of | |
8281 | ascii compatibility. | |
8282 | ||
73acf815 | 8283 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8284 | |
1f45f627 | 8285 | * charset.c (find_charsets_in_text): Delete unused locale variable. |
aca7a3d2 MB |
8286 | (Fset_charset_priority): Update Vemacs_mule_charset_list too. |
8287 | ||
8288 | * coding.c (encode_coding_emacs_mule): Emit bytes with MSB. | |
8289 | Resync charset_list to Vemacs_mule_charset_list. | |
8290 | ||
8291 | * keymap.c (store_in_keymap): Pay attention to the case that idx | |
8292 | is a cons specifying a character range. | |
8293 | ||
73acf815 | 8294 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8295 | |
8296 | * composite.c (update_compositions): Bind inhibit-read-only, etc | |
8297 | to t before calling remove-list-of-text-properties. | |
8298 | ||
8299 | * print.c (print_object): Always print ASCII chars as is. | |
8300 | ||
73acf815 | 8301 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8302 | |
1f45f627 | 8303 | * keymap.c (Fdefine_key): Fix handling of Lucid style event type list. |
aca7a3d2 | 8304 | |
4c4475a8 GM |
8305 | * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE |
8306 | is a char table. | |
aca7a3d2 | 8307 | |
73acf815 | 8308 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8309 | |
1f45f627 | 8310 | * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary. |
aca7a3d2 | 8311 | |
73acf815 | 8312 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8313 | |
8314 | * xfaces.c (set_lface_from_font_name): Fix for the case that | |
8315 | FONTNAME is not fontset name. | |
8316 | ||
73acf815 | 8317 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8318 | |
8319 | * fns.c (base64_encode_1): Fix previous change. | |
8320 | ||
73acf815 | 8321 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8322 | |
8323 | * fontset.c (set_fontset_font): New function. | |
8324 | (Fset_fontset_font): If a font is specified for a charset, use | |
8325 | map_charset_chars to store the font spec in a fontset. | |
8326 | ||
73acf815 | 8327 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8328 | |
1f204af3 | 8329 | * fontset.c (fontset_face): Create a fallback fontset on demand. |
aca7a3d2 MB |
8330 | (make_fontset): Don't create a fallback fontset here. |
8331 | (free_face_fontset): Free a fallback fontset (if any) too. | |
8332 | (n_auto_fontsets): Delete this variable. | |
8333 | (auto_fontset_alist): New variable. | |
8334 | (new_fontset_from_font_name): Check auto_fontset_alist. | |
8335 | (dump_fontset) [FONTSET_DEBUG]: Fully re-written. | |
8336 | (Ffontset_list_all) [FONTSET_DEBUG]: New function. | |
8337 | (syms_of_fontset): Initialize and staticpro auto_fontset_alist. | |
8338 | Defsubr Sfontset_list_all. | |
8339 | ||
73acf815 | 8340 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8341 | |
8342 | * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. | |
8343 | ||
73acf815 | 8344 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8345 | |
8346 | * fontset.c (Fnew_fontset): Check NAME more rigidly. | |
8347 | ||
73acf815 | 8348 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8349 | |
8350 | * editfns.c (Fgoto_char): Fix docstring. | |
8351 | ||
73acf815 | 8352 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8353 | |
8354 | * insdel.c (insert_from_gap): Adjust intervals correctly. | |
8355 | ||
73acf815 | 8356 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
8357 | |
8358 | * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. | |
8359 | (pfnGetFontUnicodeRanges): New dynamically loaded function. | |
8360 | (w32_initialize): Try to load it. | |
8361 | (x_get_font_repertory): Use it if available. | |
8362 | (w32_encode_char): Add shortcut for unicode output. | |
8363 | ||
8364 | * w32fns.c (w32_load_system_font): Default charset to -1. | |
8365 | (x_to_w32_charset): Match all fonts for unicode. | |
1f45f627 | 8366 | (w32_to_x_charset): New parameter matching. Don't return partial |
aca7a3d2 MB |
8367 | or wildcard charsets. |
8368 | (w32_to_all_x_charsets): Don't return partial or wildcard charsets. | |
8369 | (w32_codepage_for_font): Return CP_UNICODE for unicode. | |
8370 | (w32_to_x_font): Match charset to real charset. | |
8371 | (enum_font_cb2): Always list unicode versions. | |
8372 | ||
8373 | * makefile.w32-in (temacs): Increase EMHEAP. | |
8374 | ||
73acf815 | 8375 | 2008-02-01 Jason Rumney <jasonr@gnu.org> |
aca7a3d2 MB |
8376 | |
8377 | * w32term.c (w32_encode_char): New charset parameter. | |
8378 | font_info.encoding becomes encoding_type. | |
1f45f627 | 8379 | (x_get_font_repertory): New function. Warning: stub only! |
aca7a3d2 MB |
8380 | (x_new_font): Return quickly if font already set. |
8381 | (x_new_fontset): fontsetname parameter is Lisp_Object. | |
2a2e8de7 JB |
8382 | Use new fs_query_fontset. Try new_fontset_from_font_name. |
8383 | Use fontset_name for return value. | |
aca7a3d2 MB |
8384 | |
8385 | * w32term.h: Declare x_get_font_repertory. | |
8386 | ||
8387 | * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in | |
1f45f627 | 8388 | place of find_charset_in_text. Use encode_coding_object in place |
aca7a3d2 MB |
8389 | of encode_coding. |
8390 | (Fw32_get_clipboard_data): Use decode_coding_c_string in place of | |
8391 | decode_coding. | |
8392 | ||
8393 | * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version | |
8394 | of x_new_fontset. | |
8395 | (w32_load_system_font): Initialize charset as unicode. | |
8396 | font_info.encoding becomes encoding_type. | |
1f45f627 GM |
8397 | (w32_to_x_font): Use decode_coding_c_string in place of decode_coding. |
8398 | (x_to_w32_font): Use encode_coding_object in place of encode_coding. | |
aca7a3d2 MB |
8399 | (syms_of_w32fns): Set get_font_repertory_func. |
8400 | ||
1f45f627 | 8401 | * w32console.c: Include character.h. Use terminal_encode_buffer |
aca7a3d2 | 8402 | from term.c. |
1f45f627 | 8403 | (write_glyphs): Use new version of encode_terminal_code. Use |
aca7a3d2 MB |
8404 | encode_coding_object in place of encode_coding. |
8405 | ||
8406 | * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. | |
8407 | encoding becomes encoding_type. | |
8408 | ||
8409 | * term.c (terminal_encode_buffer): Make externally visible. | |
8410 | ||
8411 | * makefile.w32-in: Add character.h dependancies. | |
8412 | (character.o, chartab.o): New targets. | |
8413 | ||
73acf815 | 8414 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8415 | |
8416 | * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro | |
1f45f627 | 8417 | CODING_ID_EOL_TYPE. |
aca7a3d2 | 8418 | |
73acf815 | 8419 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 MB |
8420 | |
8421 | * coding.c (produce_chars): Revert last change. | |
8422 | ||
73acf815 | 8423 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8424 | |
8425 | * charset.h (charset_unicode): Extern it. | |
8426 | ||
8427 | * charset.c (string_xstring_p): Check by (C >= 0x100). | |
1f45f627 | 8428 | (find_charsets_in_text): Change format of the arc CHARSETS. New |
aca7a3d2 | 8429 | arg MULTIBYTE. |
1f45f627 | 8430 | (Ffind_charset_region, Ffind_charset_string): Adjust for the |
aca7a3d2 MB |
8431 | change of find_charsets_in_text. |
8432 | (Fsplit_char): Fix doc. Never return unknown. | |
8433 | ||
8434 | * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP. | |
8435 | ||
8436 | * coding.c (Fdefine_coding_system_alias): Update | |
8437 | Vcoding_system_list. | |
8438 | ||
8439 | * fontset.c (load_font_get_repertory): Pay attention to the case | |
8440 | that ENCODING of a font is specified by a char-table. | |
8441 | ||
8442 | * xterm.c (x_get_font_repertory): Handle the case that the | |
8443 | encoding of font is other than Unicode. | |
8444 | ||
73acf815 | 8445 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8446 | |
8447 | * term.c (encode_terminal_code): Don't handle glyph-table. Check | |
8448 | if a character is encodable by the terminal coding system. If | |
8449 | not, produces proper number of `?'s. Update | |
8450 | terminal_encode_buffer and terminal_encode_buf_size if necessary. | |
8451 | (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. | |
8452 | ||
73acf815 | 8453 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8454 | |
8455 | * term.c (terminal_encode_buffer, terminal_encode_buf_size): New | |
8456 | variables. | |
1f45f627 | 8457 | (encode_terminal_code): Change argument. Encode multiple |
aca7a3d2 MB |
8458 | characters at once. Store the result of encoding in |
8459 | terminal_encode_buffer. | |
4c4475a8 GM |
8460 | (write_glyphs, insert_glyphs): Adjust for the change of |
8461 | encode_terminal_code. | |
aca7a3d2 MB |
8462 | (term_init): Initialize terminal_encode_buffer and |
8463 | terminal_encode_buf_size. | |
8464 | ||
8465 | * coding.c (consume_chars): If coding->src_object is nil, don't | |
8466 | check annotation. | |
8467 | ||
73acf815 | 8468 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8469 | |
8470 | * character.c (char_string): Use ASCII_CHAR_P instead of | |
8471 | SINGLE_BYTE_CHAR_P. | |
8472 | ||
73acf815 | 8473 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8474 | |
8475 | * xdisp.c (handle_auto_composed_prop): Check if the last | |
8476 | characters of auto-composed region is newly composed with the | |
8477 | following characters. | |
8478 | (handle_composition_prop): Fix checking of point being inside | |
8479 | composition. | |
8480 | ||
73acf815 | 8481 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8482 | |
8483 | * fns.c (concat): Don't change multibyteness of the result by | |
8484 | concatenating an 8-bit character. | |
8485 | ||
8486 | * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change | |
8487 | multibyteness of the result when newelt is an 8-bit character. | |
8488 | ||
73acf815 | 8489 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8490 | |
8491 | * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used | |
8492 | EMACS_INT. | |
8493 | ||
8494 | * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. | |
8495 | ||
8496 | * xfaces.c (face_numeric_value): Declare dim size_t. | |
8497 | (Finternal_lisp_face_equal_p): Remove unused f. | |
8498 | ||
8499 | * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) | |
8500 | (MATRIX_ROW): Remove unused vars. | |
8501 | (draw_glyphs, x_insert_glyphs, fast_find_position) | |
8502 | (fast_find_position, fast_find_string_pos): Use EMACS_INT for | |
8503 | byte/char counts. | |
8504 | ||
8505 | * regex.c (regex_compile): Remove unused var. | |
8506 | ||
8507 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
8508 | ||
8509 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) | |
8510 | (Faccessible_keymaps, where_is_internal): Remove unused vars. | |
8511 | ||
8512 | * keyboard.c (cancel_hourglass_unwind): Return Qnil. | |
8513 | ||
8514 | * frame.c (frame_name_fnn_p): Make len EMACS_INT. | |
8515 | ||
8516 | * fileio.c (Fwrite_region): Remove unused var. | |
8517 | ||
8518 | * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) | |
8519 | (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. | |
8520 | ||
8521 | * composite.c (Fremove_list_of_text_properties): Declare. | |
8522 | ||
1f45f627 GM |
8523 | * coding.c (inhibit_pre_post_conversion): Remove (unused). |
8524 | (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts. | |
aca7a3d2 MB |
8525 | (coding_inherit_eol_type): Remove unused attrs. |
8526 | (detect_coding): Cast arg of detect_eol. | |
8527 | ||
8528 | * charset.c (syms_of_charset): Remove unused var p. | |
8529 | (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for | |
8530 | byte/char counts. | |
8531 | ||
8532 | * casetab.c (set_case_table): Remove unused var. | |
8533 | ||
8534 | * window.c (Fdisplay_buffer, Fframe_selected_window): Remove | |
1f45f627 | 8535 | unused vars. |
aca7a3d2 | 8536 | |
73acf815 | 8537 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8538 | |
8539 | * xterm.c (x_bitmap_mask): Declare. | |
8540 | ||
73acf815 | 8541 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8542 | |
8543 | * xterm.c (x_term_init): Fix type error. | |
8544 | ||
8545 | * lisp.h: Add Funibyte_char_to_multibyte. | |
8546 | ||
8547 | * coding.c (Fread_coding_system): Fix arg of XSETSTRING. | |
8548 | (Fset_coding_system_priority): Doc fix. | |
8549 | ||
aca7a3d2 MB |
8550 | * ccl.c (ccl_driver): Fix arg of CHARACTERP. |
8551 | ||
8552 | * indent.c (check_composition): Make start and end EMACS_INT. | |
8553 | ||
8554 | * character.c (lisp_string_width): Make ignore and end EMACS_INT. | |
8555 | ||
8556 | * xdisp.c (handle_composition_prop, check_point_in_composition): | |
8557 | Make buffer positions EMACS_INT. | |
8558 | ||
8559 | * composite.c (find_composition, run_composition_function) | |
8560 | (update_compositions, Ffind_composition_internal): Make buffer | |
8561 | positions EMACS_INT. | |
8562 | ||
8563 | * composite.h (find_composition, update_compositions): Make | |
8564 | position args EMACS_INT. | |
8565 | ||
1f45f627 | 8566 | * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT. |
aca7a3d2 MB |
8567 | |
8568 | * intervals.c (get_property_and_range): | |
8569 | * intervals.h (get_property_and_range): Make start and end EMACS_INT. | |
8570 | ||
8571 | * unexalpha.c: Don't include varargs.h. | |
8572 | ||
73acf815 | 8573 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8574 | |
8575 | * coding.h (ENCODE_UTF_8): New. | |
8576 | ||
8577 | * Makefile.in (gtkutil.o): Depend on coding.h. | |
8578 | ||
8579 | * coding.c (Fset_coding_system_priority): Doc fix. | |
8580 | ||
73acf815 | 8581 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8582 | |
8583 | * fileio.c (Finsert_file_contents): Call setup_coding_system in | |
8584 | the case of auto saving. | |
8585 | ||
73acf815 | 8586 | 2008-02-01 Andreas Schwab <schwab@suse.de> |
aca7a3d2 | 8587 | |
4c4475a8 GM |
8588 | * chartab.c (map_char_table, map_char_table_for_charset): Protect |
8589 | `range' from GC. | |
aca7a3d2 | 8590 | |
73acf815 | 8591 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8592 | |
8593 | * coding.c (decode_coding_sjis): Check bytes more rigidly. | |
8594 | ||
73acf815 | 8595 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8596 | |
1f45f627 | 8597 | * fileio.c (choose_write_coding_system): Return a decided coding system. |
aca7a3d2 MB |
8598 | (Fwrite_region): Set Vlast_coding_system_used to the return value |
8599 | of choose_write_coding_system. | |
8600 | ||
73acf815 | 8601 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8602 | |
8603 | * charset.c (Fset_charset_priority): Pay attention to duplicated | |
8604 | arguments. | |
8605 | ||
8606 | * coding.c (QCcategory): New variable. | |
8607 | (syms_of_coding): Defsym it. Set all elements of | |
8608 | Vcoding_category_table and their symbol values. | |
8609 | (Fset_coding_system_priority): Doc fix. Update symbol qvalues of | |
8610 | coding-category-XXX, and coding-category-list. | |
8611 | (Fdefine_coding_system_internal): Add category in the plist. | |
8612 | ||
73acf815 | 8613 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8614 | |
8615 | * callproc.c (Fcall_process): Handle carryover correctly. | |
8616 | ||
1f45f627 | 8617 | * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes. |
aca7a3d2 MB |
8618 | (raw_text_coding_system): Check NILP (coding_system). |
8619 | (coding_inherit_eol_type): Check NILP (coding_system) and | |
8620 | NILP (parent). | |
8621 | (consume_chars): Fix for the case of raw-text. | |
8622 | ||
8623 | * process.c (read_process_output): Handle carryover correctly. | |
8624 | ||
73acf815 | 8625 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8626 | |
8627 | * regex.c (re_search_2): Fix last change. | |
8628 | ||
73acf815 | 8629 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8630 | |
8631 | * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not | |
8632 | target_multibyte. Even in a unibyte case, return a converted | |
8633 | multibyte char. | |
8634 | (GET_CHAR_AFTER): New macro. | |
8635 | (PATFETCH): Translate via multibyte char. | |
8636 | (HANDLE_UNIBYTE_RANGE): Delete this macro. | |
8637 | (SETUP_MULTIBYTE_RANGE): New macro. | |
8638 | (regex_compile): Setup compiled code so that its multibyteness | |
8639 | matches that of a target. Fix the handling of "[X-YZ]" using | |
8640 | SETUP_MULTIBYTE_RANGE. | |
8641 | (analyse_first) <charset>: For filling fastmap for all multibyte | |
8642 | characters, don't check by BASE_LEADING_CODE_P. | |
8643 | (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is | |
8644 | the same as RE_MULTIBYTE_P (bufp) now. | |
1f45f627 | 8645 | (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)). |
aca7a3d2 MB |
8646 | (TARGET_CHAR_AND_LENGTH): Delete this macro. |
8647 | (TRANSLATE_VIA_MULTIBYTE): New macro. | |
8648 | (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). | |
8649 | It is the same as RE_MULTIBYTE_P (bufp) now. | |
8650 | <exactn>: Translate via multibyte. | |
8651 | <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't | |
8652 | translate it. | |
8653 | <charset, charset_not>: Fetch a character by | |
8654 | RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. | |
8655 | <duplicate>: Call bcmp_translate with the last arg `multibyte'. | |
8656 | <wordbound, notwordbound, wordbeg, wordend, syntaxspec, | |
8657 | notsyntaxspec, categoryspec, notcategoryspec> Fetch a character | |
8658 | by GET_CHAR_AFTER. | |
c5ad7a3d | 8659 | (bcmp_translate): Likewise. |
aca7a3d2 MB |
8660 | |
8661 | * search.c (compile_pattern): Check the member target_multibyte, | |
8662 | not the member multibyte of buf. | |
8663 | ||
8664 | * lread.c (read1): While reading a string, set force_singlebyte | |
8665 | and force_multibyte correctly. | |
8666 | ||
4c4475a8 GM |
8667 | * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting |
8668 | up of unibyte_to_multibyte_table. | |
aca7a3d2 | 8669 | |
73acf815 | 8670 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8671 | |
8672 | * coding.c (setup_coding_system): If coding has | |
8673 | post-read-conversion or pre-write-conversion, set | |
8674 | CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK | |
8675 | respectively. | |
8676 | (decode_coding_gap): Run post-read-conversion if any. | |
8677 | ||
8678 | * fileio.c (Finsert_file_contents): Even if we read into a | |
8679 | unibyte buffer, check if we must decode the result or not. | |
8680 | ||
73acf815 | 8681 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8682 | |
8683 | * coding.c (make_conversion_work_buffer): Change the work buffer | |
8684 | name to the same one as that of Emacs 21. | |
8685 | ||
73acf815 | 8686 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8687 | |
1f45f627 | 8688 | * coding.h (make_conversion_work_buffer): Adjust prototype. |
aca7a3d2 MB |
8689 | (code_conversion_restore): Don't extern it. |
8690 | ||
8691 | * coding.c (detected_mask): Delete unused variable. | |
8692 | (decode_coding_iso_2022): Pay attention to the byte sequence of | |
8693 | CTEXT extended segment, and retain those bytes as is. | |
8694 | (decode_coding_ccl): Delete unused variable `valids'. | |
8695 | (setup_coding_system): Delete unused variable `category'. | |
8696 | (consume_chars): Delete unused variable `category'. Make it work | |
8697 | for non-multibyte case. | |
1f45f627 | 8698 | (make_conversion_work_buffer): Change argument. |
aca7a3d2 MB |
8699 | (saved_coding): Delete unused variable. |
8700 | (code_conversion_restore): Don't check saved_coding->destination. | |
8701 | (code_conversion_save): New function. | |
8702 | (decode_coding_gap, encode_coding_gap): Call code_conversion_save | |
8703 | instead of record_unwind_protect. | |
1f45f627 | 8704 | (decode_coding_object, encode_coding_object): Likewise. Recover PT. |
aca7a3d2 | 8705 | (detect_coding_system): Delete unused variable `mask'. |
1f45f627 | 8706 | (Fdefine_coding_system_internal): Delete unused vaiable id. |
aca7a3d2 MB |
8707 | |
8708 | * fileio.c (kill_workbuf_unwind): New function. | |
8709 | (Finsert_file_contents): On replacing, call | |
8710 | make_conversion_work_buffer with correct args, and call | |
8711 | record_unwind_protect with the first arg kill_workbuf_unwind. | |
8712 | ||
8713 | * lisp.h (Fgenerate_new_buffer_name): EXFUN it. | |
8714 | ||
73acf815 | 8715 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 8716 | |
1f45f627 | 8717 | * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME. |
aca7a3d2 MB |
8718 | (fontset_add): Fix for the case that TO is less than TO1. |
8719 | (Ffontset_info): Don't use fallback fontset on checking the | |
8720 | default fontset. | |
8721 | (dump_fontset): New function for debugging. | |
8722 | ||
8723 | * coding.c (Fdefine_coding_system_internal): Fix for the case that | |
8724 | coding_type is Qcharset. | |
8725 | ||
73acf815 | 8726 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8727 | |
8728 | * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. | |
8729 | (map_char_table): Don't inherit the value from the parent on | |
1f45f627 | 8730 | initializing VAL. Adjust for the above change. |
aca7a3d2 | 8731 | |
73acf815 | 8732 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8733 | |
8734 | * coding.c (Qsignature, Qendian): Delete these variables. | |
8735 | (syms_of_coding): Don't initialize them. | |
8736 | (CATEGORY_MASK_UTF_16_AUTO): New macro. | |
8737 | (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in | |
8738 | detect_info->found. | |
8739 | (decode_coding_utf_16): Don't detect BOM here. | |
8740 | (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) | |
8741 | is NOT utf_16_without_bom. | |
8742 | (setup_coding_system): For a coding system of type utf-16, check | |
8743 | if the attribute :endian is Qbig or not (not nil or not), and set | |
8744 | CODING_REQUIRE_DETECTION_MASK if BOM detection is required. | |
8745 | (detect_coding): If coding type is utf-16 and BOM detection is | |
8746 | required, detect it. | |
8747 | (Fdefine_coding_system_internal): For a coding system of type | |
1f45f627 | 8748 | utf-16, check if the attribute :endian is Qbig or not (not nil or not). |
aca7a3d2 | 8749 | |
73acf815 | 8750 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8751 | |
8752 | * coding.c (coding_set_source): Fix for the case that the current | |
8753 | buffer is different from coding->src_object. | |
8754 | (decode_coding_object): Don't use the conversion work buffer if | |
8755 | DST_OBJECT is a buffer. | |
8756 | ||
73acf815 | 8757 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8758 | |
8759 | * lread.c (read_emacs_mule_char) [len==2]: Index | |
8760 | emacs_mule_charset correctly. | |
8761 | ||
73acf815 | 8762 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8763 | |
8764 | * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) | |
8765 | (detect_coding_big5, decode_coding_big5, encode_coding_big5) | |
1f45f627 | 8766 | (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer |
aca7a3d2 MB |
8767 | treated specially.) |
8768 | (setup_coding_system, coding_category, CATEGORY_MASK_ANY) | |
8769 | (detected_mask): Remove Big5 bits. | |
8770 | ||
73acf815 | 8771 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8772 | |
8773 | The following changes are to make the font rescaling facility | |
8774 | compatible with Emacs 21. | |
8775 | ||
1f45f627 | 8776 | * xfaces.c (Vface_font_rescale_alist): Rename from |
aca7a3d2 MB |
8777 | Vface_resizing_fonts. |
8778 | (struct font_name): Rename member resizing_ratio to rescale_ratio. | |
1f45f627 | 8779 | (font_rescale_ratio): Rename from font_resizing_ratio. |
aca7a3d2 MB |
8780 | (split_font_name): Set font->rescale_ratio. |
8781 | (better_font_p): Pay attention to font->rescale_ratio. | |
8782 | (build_scalable_font_name): Likewise. Change RESX, and RESY | |
8783 | fields. | |
1f45f627 | 8784 | (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable. |
aca7a3d2 | 8785 | |
73acf815 | 8786 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8787 | |
8788 | * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) | |
8789 | (Qutf_16_le): Remove these variables. | |
8790 | (syms_of_coding): Don't DEFSYM them. | |
8791 | (decode_coding_utf_16): Fix handling of BOM. | |
8792 | (encode_coding_utf_16): Fix handling of BOM. | |
8793 | ||
73acf815 | 8794 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8795 | |
8796 | * fileio.c (Finsert_file_contents): On replacing, before decoding | |
1f45f627 | 8797 | the file into the work buffer, set point of the work buffer to the end. |
aca7a3d2 | 8798 | |
73acf815 | 8799 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8800 | |
8801 | * coding.c (Fcheck_coding_systems_region): Fix type errors. | |
8802 | ||
73acf815 | 8803 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8804 | |
8805 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
8806 | and fix C types. | |
8807 | ||
73acf815 | 8808 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8809 | |
8810 | * xdisp.c (SKIP_GLYPHS): New macro. | |
8811 | (set_cursor_from_row): Pay attention to string display properties. | |
8812 | ||
8813 | * category.c (copy_category_entry): Fix for the case that RANGE | |
8814 | is an integer. | |
8815 | ||
8816 | * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. | |
8817 | ||
1f45f627 | 8818 | * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil. |
aca7a3d2 | 8819 | |
73acf815 | 8820 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8821 | |
8822 | * charset.c (Fcharset_id_internal): New function. | |
8823 | (syms_of_charset): Defsubr it. | |
8824 | ||
8825 | * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver | |
8826 | with the last arg charset_list acquired from coding. | |
8827 | (Fdefine_coding_system_internal): For ccl-based coding system, fix | |
8828 | the attribute coding_attr_ccl_valids. | |
8829 | ||
8830 | * coding.h (enum define_coding_ccl_arg_index): Set the first | |
8831 | member coding_arg_ccl_decoder to coding_arg_max. | |
8832 | ||
1f45f627 | 8833 | * ccl.h (ccl_driver): Adjust prototype. |
aca7a3d2 MB |
8834 | |
8835 | * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. | |
8836 | (ccl_driver): New arg CHARSET_LIST. Use the above macros instead | |
8837 | of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. | |
4c4475a8 GM |
8838 | (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the |
8839 | last arg Qnil. | |
aca7a3d2 | 8840 | |
73acf815 | 8841 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8842 | |
8843 | * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, | |
8844 | call encode_char. | |
8845 | ||
1f45f627 | 8846 | * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET. |
aca7a3d2 | 8847 | |
73acf815 | 8848 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 8849 | |
1f45f627 | 8850 | * composite.c (syms_of_composite): Make composition_hash_table weak. |
aca7a3d2 | 8851 | |
73acf815 | 8852 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8853 | |
8854 | * dispextern.h (check_face_attributes, generate_ascii_font_name) | |
8855 | (font_name_registry): Don't extern them. | |
1f45f627 | 8856 | (split_font_name_into_vector, build_font_name_from_vector): Extern them. |
aca7a3d2 MB |
8857 | |
8858 | * fontset.h (Qfontset): Don't extern it. | |
8859 | (new_fontset_from_font_name): Extern it. | |
8860 | ||
8861 | * fontset.c: Give 8 extra slots to fontset objects. | |
8862 | (Qfontset_info): New variable. | |
8863 | (syms_of_fontset): Defsym it. | |
8864 | (FONTSET_FALLBACK): New macro. | |
8865 | (fontset_face): Try also the default fontset. | |
1f45f627 GM |
8866 | (make_fontset): Realize a fallback fontset from the default fontset. |
8867 | (generate_ascii_font_name): Move from xfaces.c. Rewritten by | |
aca7a3d2 MB |
8868 | using split_font_name_into_vector and build_font_name_from_vector. |
8869 | (Fset_fontset_font): Access the elements of font_spec by enum | |
8870 | FONT_SPEC_INDEX. If font_spec is a string, extract the registry | |
8871 | name by using split_font_name_into_vector. | |
8872 | (Fnew_fontset): If no ASCII font is specified in FONTLIST, | |
8873 | generate a proper font name from the fontset name. Update | |
8874 | Vfontset_alias_alist. | |
8875 | (n_auto_fontsets): New variable. | |
8876 | (new_fontset_from_font_name): New function. | |
8877 | (Ffont_info): Store the information about fonts generated from the | |
1f45f627 | 8878 | default fontset in the first extra slot of the returned char-table. |
aca7a3d2 | 8879 | |
1f45f627 GM |
8880 | * xfaces.c (generate_ascii_font_name): Move to fontset.c. |
8881 | (font_name_registry): Delete function. | |
aca7a3d2 MB |
8882 | (split_font_name_into_vector): New function. |
8883 | (build_font_name_from_vector): New function. | |
1f45f627 | 8884 | (font_list): The argument REGISTRY is now a list of registry names. |
aca7a3d2 MB |
8885 | (choose_face_font): If we are choosing an ASCII font, and ATTRS |
8886 | specifies an explicit font name, return the name as is. Make a | |
8887 | list of registy names. | |
8888 | ||
1f45f627 | 8889 | * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change |
aca7a3d2 MB |
8890 | of x_new_fontset. |
8891 | (Fx_create_frame): Don't call x_new_fontset here. Just use | |
8892 | x_list_fonts to check the existence of fonts. | |
8893 | ||
1f45f627 | 8894 | * xterm.h (x_new_fontset): Adjust prototype. |
aca7a3d2 MB |
8895 | |
8896 | * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp | |
8897 | string. Use new_fontset_from_font_name to create a fontset from a | |
8898 | font name. | |
8899 | ||
1c8658b9 GM |
8900 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
8901 | ||
8902 | * syntax.c (Vfind_word_boundary_function_table): New name for | |
8903 | Vnext_word_boundary_function_table. | |
8904 | (find-word-boundary-function-table): New name for | |
8905 | next-word-boundary-function-table. | |
8906 | ||
73acf815 | 8907 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8908 | |
8909 | * Makefile.in: Fix some dependencies. | |
8910 | ||
8911 | * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but | |
8912 | set it to nil before returning. | |
8913 | ||
8914 | * composite.c (update_compositions): Fix type error. | |
8915 | ||
8916 | * syntax.c (skip_chars, skip_syntaxes): Fix type errors. | |
8917 | ||
73acf815 | 8918 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8919 | |
8920 | * xterm.c (x_new_font): Optimize for the case that the font is | |
8921 | already set for the frame. | |
8922 | ||
73acf815 | 8923 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8924 | |
8925 | * chartab.c (char_table_ascii): Check if the char table contents | |
8926 | is sub-char-table or not. | |
4c4475a8 GM |
8927 | (char_table_set, char_table_set_range): Fix argument to |
8928 | char_table_ascii. | |
aca7a3d2 MB |
8929 | |
8930 | * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. | |
8931 | (detect_coding_utf_8, detect_coding_utf_16) | |
8932 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
8933 | (detect_coding_sjis, detect_coding_big5) | |
8934 | (detect_coding_ccl, detect_coding_charset): Change argument MASK | |
8935 | to DETECT_INFO. Update DETECT_INFO and return 1 if the byte | |
1f45f627 | 8936 | sequence is valid in this coding system. Change callers. |
aca7a3d2 MB |
8937 | (MAX_ANNOTATION_LENGTH): New macro. |
8938 | (ADD_ANNOTATION_DATA): New macro. | |
1f45f627 GM |
8939 | (ADD_COMPOSITION_DATA): Change argument. Change callers. Call |
8940 | ADD_ANNOTATION_DATA. Change the format of annotation data. | |
aca7a3d2 | 8941 | (ADD_CHARSET_DATA): New macro. |
1f45f627 | 8942 | (emacs_mule_char): New argument ID. Change callers. |
aca7a3d2 MB |
8943 | (decode_coding_emacs_mule, decode_coding_iso_2022) |
8944 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
8945 | Produce charset annotation data in coding->charbuf. | |
8946 | (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention | |
8947 | to charset annotation data in coding->charbuf. | |
8948 | (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK | |
8949 | coding->common_flags if the coding system is iso-2022 based and | |
8950 | uses designation. | |
1f45f627 | 8951 | (produce_composition): Adjust for the new annotation data format. |
aca7a3d2 MB |
8952 | (produce_charset): New function. |
8953 | (produce_annotation): Handle charset annotation. | |
8954 | (handle_composition_annotation, handle_charset_annotation): New | |
8955 | functions. | |
8956 | (consume_chars): Handle charset annotation. Utilize the above two | |
8957 | functions. | |
8958 | (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same | |
8959 | buffer, get the deleted text as a string and set | |
8960 | coding->src_object to that string. | |
8961 | (detect_coding, detect_coding_system): Use the new struct | |
8962 | coding_detection_info. | |
8963 | ||
8964 | * coding.h (struct coding_detection_info): New structure. | |
1f45f627 | 8965 | (struct coding_system): Adjust prototype of the member `detector'. |
aca7a3d2 MB |
8966 | (CODING_ANNOTATE_CHARSET_MASK): New macro. |
8967 | ||
73acf815 | 8968 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8969 | |
8970 | * insdel.c (insert_from_gap): Fix argument to offset_intervals. | |
8971 | ||
73acf815 | 8972 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 8973 | |
1f45f627 | 8974 | * keymap.c (apropos_predicate, apropos_accumulate): Declare static. |
aca7a3d2 MB |
8975 | (Fapropos_internal): Don't gcpro apropos_accumulate. Set result |
8976 | to new local and nullify apropos_accumulate before returning. | |
8977 | (syms_of_keymap): Staticpro and initialize apropos_accumulate. | |
8978 | ||
73acf815 | 8979 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8980 | |
8981 | * charset.c (Fdefine_charset_internal): Setup charset.fast_map | |
8982 | correctly. | |
8983 | ||
73acf815 | 8984 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
8985 | |
8986 | * fns.c (Flanginfo): Call synchronize_system_time_locale. | |
8987 | ||
73acf815 | 8988 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
8989 | |
8990 | The following changes are to make character composition happen | |
8991 | automatically on displaying. | |
8992 | ||
2a2e8de7 | 8993 | * Makefile.in (lisp, shortlisp): Add composite.elc. |
aca7a3d2 | 8994 | |
1f45f627 GM |
8995 | * composite.h (Qauto_composed, Vauto_composition_function) |
8996 | (Qauto_composition_function): Extern them. | |
aca7a3d2 | 8997 | |
1f45f627 GM |
8998 | * composite.c (Vcomposition_function_table) |
8999 | (Qcomposition_function_table): Delete variables. | |
9000 | (Qauto_composed, Vauto_composition_function) | |
9001 | (Qauto_composition_function): New variables. | |
aca7a3d2 MB |
9002 | (run_composition_function): Don't call |
9003 | compose-chars-after-function. | |
9004 | (update_compositions): Clear `auto-composed' text property. | |
9005 | (compose_chars_in_text): Delete this function. | |
9006 | (syms_of_composite): Staticpro Qauto_composed and | |
9007 | Qauto_composition_function. Declare Vauto_composition_function as | |
9008 | a Lisp variable. | |
9009 | ||
9010 | * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. | |
9011 | ||
9012 | * xdisp.c (it_props): Add an entry for Qauto_composed. | |
9013 | (handle_auto_composed_prop): New function. | |
9014 | ||
9015 | * xselect.c (selection_data_to_lisp_data): Don't call | |
9016 | compose_chars_in_text. | |
9017 | ||
73acf815 | 9018 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9019 | |
9020 | * keyboard.c (read_char): Modify checking around use of | |
9021 | Vkeyboard_translate_table. | |
9022 | ||
9023 | * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
9024 | and fix C types. | |
9025 | ||
73acf815 | 9026 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9027 | |
4c4475a8 GM |
9028 | * coding.c (decode_coding_utf_8, decode_coding_emacs_mule) |
9029 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
9030 | (decode_coding_charset, produce_chars): When eol_type is Qdos, handle | |
aca7a3d2 | 9031 | the case that the last byte is '\r' correctly. |
1f45f627 GM |
9032 | (decode_coding): Flush out the unprocessed data correctly. |
9033 | (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode. | |
aca7a3d2 | 9034 | |
73acf815 | 9035 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 9036 | |
f245f2c6 JB |
9037 | * xterm.c (XTread_socket): Fix changes for defined keysyms. |
9038 | Add XK_ISO... case. | |
aca7a3d2 MB |
9039 | (xaw_scroll_callback): Revert last change. |
9040 | ||
73acf815 | 9041 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9042 | |
1f45f627 | 9043 | * charset.c (Fset_charset_priority): Update Viso_2022_charset_list. |
aca7a3d2 | 9044 | |
73acf815 | 9045 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9046 | |
9047 | * xfaces.c (Vface_resizing_fonts): New variable. | |
9048 | (struct font_name): New member `resizing_ratio'. | |
9049 | (font_resizing_ratio): New function. | |
9050 | (split_font_name): Set font->resizing_ratio. | |
9051 | (better_font_p): Pay attention to font->resizing_ratio. | |
9052 | (build_scalable_font_name): Likewise. Don't change POINT_SIZE, | |
9053 | RESX, and RESY fields. | |
9054 | (try_alternative_families): Try scalable fonts if | |
9055 | Vscalable_fonts_allowed is not Qt. | |
9056 | (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. | |
9057 | ||
73acf815 | 9058 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9059 | |
9060 | * xterm.c (xaw_scroll_callback): Cast correctly. | |
9061 | ||
73acf815 | 9062 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9063 | |
9064 | * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. | |
9065 | (lispy_kana_keys): Comment out. | |
9066 | (make_lispy_event) [XK_kana_A]: Comment out. | |
9067 | ||
9068 | * xterm.c (xaw_scroll_callback): Cast call_data. | |
9069 | (XTread_socket): Deal with ASCII keysyms. | |
9070 | (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. | |
9071 | ||
73acf815 | 9072 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9073 | |
9074 | * xterm.c (Vx_keysym_table): New. | |
9075 | (syms_of_xterm): Initialize it. | |
9076 | (XTread_socket): Use it. | |
9077 | From head: Eliminate incorrect optimization that tried to avoid | |
9078 | decoding the output of X*LookupString. | |
9079 | (x_get_font_repertory): Delete charset declaration. | |
9080 | ||
73acf815 | 9081 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9082 | |
1f45f627 GM |
9083 | * coding.c (detect_coding_charset): If only ASCII bytes are found, |
9084 | return 0. | |
aca7a3d2 MB |
9085 | (Fdefine_coding_system_internal): Setup |
9086 | CODING_ATTR_ASCII_COMPAT (attrs) correctly. | |
9087 | ||
73acf815 | 9088 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9089 | |
9090 | * coding.c (Fcheck_coding_system): Doc fix. | |
9091 | ||
9092 | * editfns.c (Finsert_byte): Return a proper value. | |
9093 | ||
73acf815 | 9094 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9095 | |
9096 | * coding.c (decode_coding): Fix args to translate_chars. Pay | |
9097 | attention to Vstandard_translation_table_for_decode. | |
9098 | (encode_coding): Fix args to translate_chars. Pay attention to | |
9099 | Vstandard_translation_table_for_encode. | |
9100 | ||
9101 | * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by | |
9102 | SINGLE_BYTE_CHAR_P. | |
9103 | ||
9104 | * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, | |
9105 | not by SINGLE_BYTE_CHAR_P. | |
9106 | ||
9107 | * fns.c (concat): Check CH by ASCII_CHAR_P, not by | |
9108 | SINGLE_BYTE_CHAR_P. | |
9109 | ||
9110 | * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by | |
9111 | SINGLE_BYTE_CHAR_P. | |
9112 | ||
9113 | * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not | |
9114 | by SINGLE_BYTE_CHAR_P. | |
9115 | ||
9116 | * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by | |
9117 | SINGLE_BYTE_CHAR_P. | |
9118 | ||
73acf815 | 9119 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9120 | |
9121 | * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. | |
9122 | ||
73acf815 | 9123 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9124 | |
9125 | * fns.c (Flanginfo): Fix typo. | |
9126 | ||
9127 | * unexelf.c (unexec): Make last change conditional on Irix 6.5. | |
9128 | ||
73acf815 | 9129 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9130 | |
4c4475a8 GM |
9131 | * coding.c (detect_coding_utf_8, detect_coding_utf_16) |
9132 | (detect_coding_emacs_mule, detect_coding_iso_2022) | |
9133 | (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check | |
9134 | incomplete byte sequence. Don't update *mask when correctly detected. | |
aca7a3d2 | 9135 | (decode_coding_sjis): Fix decoding of katakana-jisx0201. |
1f45f627 | 9136 | (detect_eol): Delete the argument CODING, and add the argument CATEGORY. |
4c4475a8 | 9137 | (detect_coding, detect_coding_system): Adjust for the changes above. |
aca7a3d2 | 9138 | |
73acf815 | 9139 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9140 | |
1f45f627 GM |
9141 | * character.c (char_string): Rename from |
9142 | char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK. | |
9143 | (string_char): Rename from string_char. | |
aca7a3d2 | 9144 | |
4c4475a8 GM |
9145 | * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string |
9146 | if C is greater than MAX_3_BYTE_CHAR. | |
9147 | (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call | |
9148 | string_char instead of string_char_with_unification. | |
aca7a3d2 | 9149 | |
73acf815 | 9150 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9151 | |
9152 | * coding.c (decode_coding_utf_8): Treat surrogates as invalid. | |
9153 | ||
73acf815 | 9154 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9155 | |
1f45f627 | 9156 | * keymap.c (push_key_description): Pay attention to force_multibyte. |
aca7a3d2 MB |
9157 | |
9158 | * regex.c (re_search_2): Fix for the case of unibyte buffer. | |
9159 | ||
73acf815 | 9160 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9161 | |
9162 | * charset.c (define_charset_internal): Rename `supprementary'. | |
9163 | ||
9164 | * Makefile.in (lisp, shortlisp): Remove latin-N. | |
9165 | ||
73acf815 | 9166 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9167 | |
9168 | * xfns.c (x_window, x_window): Use use_xim. | |
9169 | ||
9170 | * xterm.c (use_xim): Initialize. | |
9171 | (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. | |
9172 | (x_term_init): Maybe set use_xim. | |
9173 | ||
9174 | * xterm.h (use_xim) [HAVE_X_I18N]: Declare. | |
9175 | ||
73acf815 | 9176 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9177 | |
9178 | * search.c (search_buffer): Fix case-fold-search of multibyte | |
9179 | characters. | |
9180 | (boyer_moore): Rename the last argument to char_high_bits. | |
9181 | ||
73acf815 | 9182 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9183 | |
9184 | * xdisp.c (display_string): Fix for the case of zero width glyph. | |
9185 | ||
9186 | * xfns.c (x_set_font): Change the error message of the case that | |
9187 | x_new_fontset returns Qt. | |
9188 | ||
9189 | * xfaces.c (set_lface_from_font_name): Reject the default fontset. | |
9190 | (Finternal_set_lisp_face_attribute): Use signal_error for the | |
9191 | error of invalid fontset. | |
9192 | ||
9193 | * xterm.c (x_new_fontset): If FONTSETNAME specifies the default | |
9194 | fontset, return Qt. | |
9195 | ||
73acf815 | 9196 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 9197 | |
aca7a3d2 MB |
9198 | * unexelf.c (unexec): Make .got handling not SGI-specific. |
9199 | ||
9200 | * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. | |
9201 | ||
9202 | * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. | |
9203 | ||
9204 | * keyboard.c (read_key_sequence): Fix type error. | |
9205 | ||
9206 | * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix | |
9207 | type error. | |
9208 | ||
9209 | * fontset.c (fontset_add): Return Lisp_Object. | |
9210 | ||
73acf815 | 9211 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9212 | |
9213 | * charset.h (charset_ordered_list_tick): Declare extern. | |
9214 | ||
73acf815 | 9215 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9216 | |
73acf815 | 9217 | The following changes (and some of 2008-02-01 changes of mine) are |
aca7a3d2 MB |
9218 | for handling syntax, category, and case conversion for unibyte |
9219 | characters by converting them to multibyte on the fly. With these | |
9220 | changes, we don't have to setup syntax and case tables for unibyte | |
9221 | characters in each language environment. | |
9222 | ||
9223 | * abbrev.c (Fexpand_abbrev): Convert a unibyte character to | |
9224 | multibyte if necessary. | |
9225 | ||
9226 | * bytecode.c (Fbyte_code): Likewise. | |
9227 | ||
9228 | * character.h (LEADING_CODE_LATIN_1_MIN) | |
9229 | (LEADING_CODE_LATIN_1_MAX): New macros. | |
9230 | (unibyte_to_multibyte_table): Extern it. | |
9231 | (unibyte_char_to_multibyte): New macro. | |
9232 | (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. | |
9233 | (CHAR_LEADING_CODE): New macro. | |
9234 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. | |
9235 | ||
9236 | * character.c (unibyte_to_multibyte_table): New variable. | |
1f45f627 | 9237 | (unibyte_char_to_multibyte): Move to character.h and define as macro. |
aca7a3d2 MB |
9238 | (multibyte_char_to_unibyte): If C is an eight-bit character, |
9239 | convert it to the corresponding byte value. | |
9240 | ||
9241 | * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is | |
9242 | not 1, singals an error. Update the elements of | |
9243 | unibyte_to_multibyte_table. | |
9244 | (init_charset_once): Initialize unibyte_to_multibyte_table. | |
9245 | (syms_of_charset): Define the charset `iso-8859-1'. | |
9246 | ||
aca7a3d2 MB |
9247 | * cmds.c (internal_self_insert): In a multibyte buffer, insert C |
9248 | as is without converting it to unibyte. In a unibyte buffer, | |
9249 | convert C to multibyte before checking the syntax. | |
9250 | ||
1f45f627 | 9251 | * lisp.h (unibyte_char_to_multibyte): Delete extern. |
aca7a3d2 MB |
9252 | |
9253 | * minibuf.c (Fminibuffer_complete_word): Use the macro | |
9254 | FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. | |
9255 | ||
9256 | * regex.h (struct re_pattern_buffer): New member target_multibyte. | |
9257 | ||
9258 | * regex.c (RE_TARGET_MULTIBYTE_P): New macro. | |
9259 | (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If | |
9260 | that is zero, convert an eight-bit char to multibyte. | |
9261 | (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for | |
9262 | non-emacs case. | |
9263 | (PATFETCH): Convert an eight-bit char to multibyte. | |
9264 | (HANDLE_UNIBYTE_RANGE): New macro. | |
9265 | (regex_compile): Setup the compiled pattern for multibyte chars | |
9266 | even if the given regex string is unibyte. Use PATFETCH_RAW | |
9267 | instead of PATFETCH in many places. To handle `charset' | |
c5ad7a3d | 9268 | specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap |
aca7a3d2 | 9269 | only for ASCII chars. |
1f45f627 | 9270 | (analyse_first) <exactn>: Simplify because the compiled pattern |
aca7a3d2 MB |
9271 | is multibyte. |
9272 | <charset_not>: Setup fastmap from bitmap only for ASCII chars. | |
9273 | <charset>: Use CHAR_LEADING_CODE to get leading codes. | |
1f45f627 | 9274 | <categoryspec>: If multibyte, setup fastmap only for ASCII chars here. |
aca7a3d2 MB |
9275 | (re_compile_fastmap) [emacs]: Call analyse_first with the arg |
9276 | multibyte always 1. | |
9277 | (re_search_2): In emacs, set the locale variable multibyte to 1, | |
9278 | otherwise to 0. New local variable target_multibyte. Check it | |
9279 | to decide the multibyteness of STR1 and STR2. If | |
9280 | target_multibyte is zero, convert unibyte chars to multibyte | |
9281 | before translating and checking fastmap. | |
9282 | (TARGET_CHAR_AND_LENGTH): New macro. | |
9283 | (re_match_2_internal): In emacs, set the locale variable multibyte | |
9284 | to 1, otherwise to 0. New local variable target_multibyte. Check | |
9285 | it to decide the multibyteness of STR1 and STR2. Use | |
9286 | TARGET_CHAR_AND_LENGTH to fetch a character from D. | |
9287 | <charset, charset_not>: If multibyte is nonzero, check fastmap | |
c5ad7a3d | 9288 | only for ASCII chars. Call bcmp_translate with |
aca7a3d2 MB |
9289 | target_multibyte, not with multibyte. |
9290 | <begline>: Declare the local variable C as `unsigned'. | |
9291 | (bcmp_translate): Change the last arg name to target_multibyte. | |
9292 | ||
9293 | * search.c (compile_pattern_1): Don't adjust the multibyteness of | |
9294 | the regexp pattern and the matching target. Set cp->buf.multibyte | |
9295 | to the multibyteness of the regexp pattern. Set | |
1f45f627 | 9296 | cp->but.target_multibyte to the multibyteness of the matching target. |
aca7a3d2 MB |
9297 | (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of |
9298 | FETCH_STRING_CHAR_ADVANCE. | |
9299 | (Freplace_match): Convert unibyte chars to multibyte. | |
9300 | ||
4c4475a8 GM |
9301 | * syntax.c (char_quoted, back_comment, scan_words) |
9302 | (Fforward_comment, scan_lists, Fbackward_prefix_chars) | |
9303 | (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert | |
aca7a3d2 | 9304 | unibyte chars to multibyte. |
1f45f627 GM |
9305 | (skip_chars): Delete the arg syntaxp, and move the code for |
9306 | handling syntaxes to skip_syntaxes. Change callers. | |
aca7a3d2 MB |
9307 | Fix the case that the multibyteness of STRING and the current |
9308 | buffer doesn't match. | |
9309 | (skip_syntaxes): New function. | |
9310 | (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by | |
9311 | SINGLE_BYTE_CHAR_P. | |
aca7a3d2 | 9312 | |
73acf815 | 9313 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9314 | |
9315 | * xfaces.c (QCfontset): New variable. | |
9316 | (LFACE_FONTSET): New macro. | |
9317 | (check_lface_attrs): Check also LFACE_FONTSET_INDEX. | |
9318 | (set_lface_from_font_name): Setup LFACE_FONTSET (lface). | |
4c4475a8 GM |
9319 | (Finternal_set_lisp_face_attribute) |
9320 | (Finternal_get_lisp_face_attribute): Handle QCfontset. | |
aca7a3d2 MB |
9321 | (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, |
9322 | check also LFACE_FONTSET_INDEX. | |
9323 | (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not | |
9324 | attrs[LFACE_FONT_INDEX]. | |
9325 | (syms_of_xfaces): Intern and staticpro QCfontset. | |
9326 | ||
9327 | * dispextern.h (enum lface_attribute_index): New member | |
9328 | LFACE_FONTSET_INDEX. | |
9329 | ||
9330 | * fns.c (base64_encode_1): Handle eight-bit chars correctly. | |
9331 | ||
73acf815 | 9332 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9333 | |
9334 | * coding.c (coding_set_destination): Fix coding->destination for | |
9335 | the case converting a region. | |
9336 | (encode_coding_utf_8): Encode eight-bit chars as single byte. | |
9337 | (encode_coding_object): Fix coding->dst_pos and | |
9338 | coding->dst_pos_byte for the case converting a region. | |
9339 | ||
9340 | * insdel.c (insert_from_gap): Make it work even if PT != GTP. | |
9341 | ||
9342 | * character.h (BYTE8_STRING): New macro. | |
9343 | ||
9344 | * fns.c (base64_decode_1): Insert eight-bit chars correctly. | |
9345 | ||
73acf815 | 9346 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9347 | |
9348 | * xdisp.c (get_next_display_element): Don't display unibyte 8-bit | |
9349 | characters by octal form. | |
9350 | ||
9351 | * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. | |
9352 | ||
1f45f627 | 9353 | * buffer.h (_fetch_multibyte_char_len): Delete extern. |
4c4475a8 GM |
9354 | (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use |
9355 | _fetch_multibyte_char_len. | |
aca7a3d2 MB |
9356 | (FETCH_CHAR_AS_MULTIBYTE): New macro. |
9357 | ||
1f45f627 | 9358 | * casetab.c (set_canon, set_identity, shuffle): Simplify. |
aca7a3d2 | 9359 | |
1f45f627 | 9360 | * casefiddle.c (casify_object): Simplify. Handle the case that |
aca7a3d2 | 9361 | the case conversion change the byte length. |
1f45f627 | 9362 | (casify_region): Likewise. |
aca7a3d2 | 9363 | |
1f45f627 | 9364 | * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros. |
aca7a3d2 | 9365 | |
1f45f627 | 9366 | * character.c (_fetch_multibyte_char_len): Delet this variable. |
aca7a3d2 MB |
9367 | (syms_of_character): Setup Vprintable_chars. |
9368 | ||
9369 | * editfns.c (Fchar_equal): Fix for the unibyte case. | |
9370 | (Finsert_byte): New function. | |
9371 | (syms_of_editfns): Defsubr it. | |
9372 | ||
9373 | * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead | |
9374 | of direct code 0x3ffff. | |
9375 | ||
9376 | * search.c (Freplace_match): Fix for the unibyte case. | |
9377 | ||
73acf815 | 9378 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9379 | |
9380 | * lread.c (safe_to_load_p): Fix the logic. | |
9381 | ||
9382 | * syntax.c (scan_words): Don't treat characters belonging to | |
9383 | different scripts as constituting a word. | |
9384 | ||
9385 | * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
9386 | ||
1f45f627 | 9387 | * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script. |
aca7a3d2 MB |
9388 | |
9389 | * emacs.c (main): In the case of --unibyte, instead of aborting on | |
9390 | finding non-empty buffer, make it unibyte. | |
9391 | ||
73acf815 | 9392 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9393 | |
9394 | * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' | |
9395 | to create a fontset. | |
9396 | ||
73acf815 | 9397 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9398 | |
9399 | * character.c (Funibyte_char_to_multibyte): Doc fix. | |
9400 | ||
9401 | * xfns.c [HAVE_STDLIB_H]: Fix last change. | |
9402 | ||
73acf815 | 9403 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9404 | |
9405 | * fontset.c (fontset_add): Make the type `int'. | |
9406 | (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. | |
9407 | ||
4c4475a8 GM |
9408 | * character.c (unibyte_char_to_multibyte) |
9409 | (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to | |
aca7a3d2 | 9410 | charset_unibyte, not charset_primary. |
aca7a3d2 | 9411 | |
1f45f627 | 9412 | * charset.h (charset_unibyte): Extern it instead of charset_primary. |
aca7a3d2 | 9413 | |
1f45f627 GM |
9414 | * charset.c (charset_unibyte): Rename from charset_primary. |
9415 | (Funibyte_charset): Rename from Fprimary_charset. | |
9416 | (Fset_unibyte_charset): Rename from Fset_primary_charset. | |
9417 | (syms_of_charset): Adjust for the above changes. | |
aca7a3d2 MB |
9418 | |
9419 | * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
9420 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
9421 | it->multibyte_p is zero. | |
9422 | ||
9423 | * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): | |
1f45f627 | 9424 | Delete extern. |
aca7a3d2 | 9425 | |
73acf815 | 9426 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9427 | |
9428 | * coding.c (Fdefine_coding_system_internal): Fix category setting | |
9429 | for a coding system of type iso-2022. | |
9430 | ||
73acf815 | 9431 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9432 | |
1f45f627 | 9433 | * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1. |
aca7a3d2 | 9434 | |
73acf815 | 9435 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9436 | |
9437 | * syntax.c (Vnext_word_boundary_function_table): New variable. | |
1c8658b9 GM |
9438 | (next-word-boundary-function-table): Declare it as a Lisp variable |
9439 | in syms_of_syntax. | |
aca7a3d2 MB |
9440 | (scan_words): Call functions in Vnext_word_boundary_function_table |
9441 | if any. | |
9442 | ||
9443 | * xterm.c (x_load_font): Initialize fontp->fontset to -1. | |
9444 | ||
9445 | * fontset.c (fs_load_font): If fontp->charset is not negative, | |
9446 | return fontp without setting its members. | |
9447 | ||
73acf815 | 9448 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 9449 | |
aca7a3d2 MB |
9450 | * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). |
9451 | ||
9452 | * m/sparc.h (HAVE_ALLOCA): Delete. | |
9453 | ||
9454 | * s/irix6-5.h: Don't include strings.h. | |
9455 | (bcopy, bzero, bcmp): Don't undef. | |
9456 | ||
9457 | * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. | |
9458 | ||
9459 | * s/usg5-4.h (NO_SIOCTL_H): Don't define. | |
9460 | (TIOCSIGSEND): Don't test IRIX6. | |
9461 | (bcopy, bzero, bcmp): Define conditionally. | |
9462 | ||
73acf815 | 9463 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9464 | |
9465 | * buffer.c (Qas, Qmake, Qto): New variables. | |
1f45f627 | 9466 | (Fset_buffer_multibyte): New optional arg METHOD. Change caller. |
aca7a3d2 MB |
9467 | (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. |
9468 | ||
9469 | * callproc.c (Fcall_process): Don't call insert_1_both directly if | |
9470 | we are inserting a process output into a multibyte buffer. | |
9471 | ||
9472 | * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call | |
9473 | multibyte_char_to_unibyte. | |
9474 | ||
9475 | * character.c (Funibyte_char_to_multibyte): If C can't be decoded | |
9476 | by the primary charset, make it eight-bit char. | |
9477 | (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. | |
9478 | ||
1f45f627 GM |
9479 | * charset.c (charset_eight_bit, Qeight_bit_control): New variables. |
9480 | (charset_8_bit__control, charset_8_bit_graphic) | |
9481 | (Qeight_bit_control, Qeight_bit_graphic): Delete these variables. | |
aca7a3d2 MB |
9482 | (define_charset_internal): New function. |
9483 | (syms_of_charset): Call define_charset_internal for pre-defined | |
9484 | charsets. | |
9485 | ||
9486 | * charset.h (charset_8_bit): Extern it. | |
9487 | ||
1f45f627 | 9488 | * coding.c (make_conversion_work_buffer): Adjust for the change |
aca7a3d2 MB |
9489 | of Fset_buffer_multibyte. |
9490 | (encode_coding_raw_text): Increment p0 in the loop. | |
9491 | ||
1f45f627 | 9492 | * lisp.h (Fset_buffer_multibyte): Adjust prototype. |
aca7a3d2 | 9493 | |
1f45f627 | 9494 | * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust |
aca7a3d2 MB |
9495 | for the change of Fset_buffer_multibyte. |
9496 | ||
9497 | * fns.c (Fstring_to_multibyte): New function. | |
9498 | (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. | |
9499 | ||
73acf815 | 9500 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9501 | |
9502 | * xfns.c (x_put_x_image): Declare args. | |
9503 | ||
1f45f627 | 9504 | * xfaces.c (font_name_registry, choose_face_font): Delete unused vars. |
aca7a3d2 MB |
9505 | (try_font_list): Declare an arg. |
9506 | ||
9507 | * xdisp.c (message2_nolog, set_message): Declare an arg. | |
9508 | ||
9509 | * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. | |
9510 | ||
9511 | * syntax.c (scan_sexps_forward): Declare an arg. | |
9512 | ||
9513 | * scroll.c (calculate_scrolling, calculate_direct_scrolling): | |
9514 | Declare an arg. | |
9515 | ||
9516 | * lisp.h (Fnew_fontset): Declare. | |
9517 | ||
9518 | * keymap.c (push_key_description): Call CHARACTERP correctly. | |
9519 | ||
1f45f627 | 9520 | * fontset.c (fontset_add): Declare args. Call make_number correctly. |
aca7a3d2 MB |
9521 | (face_for_char): Delete unused vars. |
9522 | (Fset_fontset_font): Doc fix. Delete unused vars. | |
9523 | ||
9524 | * doc.c (Fsubstitute_command_keys): Delete unused vars. | |
9525 | ||
9526 | * composite.c (update_compositions): Declare arg. | |
9527 | ||
9528 | * cm.c (calccost, cmgoto): Declare args. | |
9529 | ||
9530 | * charset.c: Remove `emacs' conditional. Doc fixes. | |
9531 | (map_char_table_for_charset): Declare. | |
9532 | ||
1f45f627 | 9533 | * character.c (syms_of_character) <translation-table-vector>: Doc fix. |
aca7a3d2 | 9534 | |
1f45f627 | 9535 | * ccl.c: Remove `emacs' conditional. |
aca7a3d2 | 9536 | |
73acf815 | 9537 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9538 | |
9539 | The following changes are to allow specifying multiple font | |
9540 | patterns for a character range (specified by script or charset). | |
9541 | ||
9542 | * Makefile.in (abbrev.o): Depend on syntax.h. | |
9543 | (xfaces.o): Depend on charset.h. | |
9544 | ||
9545 | * alloc.c (Fmake_string): Use ASCII_CHAR_P, not | |
9546 | SINGLE_BYTE_CHAR_P. | |
9547 | ||
9548 | * ccl.c (Fccl_execute_on_string): Add `const' to local variables. | |
9549 | ||
9550 | * character.h (Vchar_script_table): Extern it. | |
9551 | ||
1f45f627 | 9552 | * character.c (Vscript_alist): Delete. |
aca7a3d2 MB |
9553 | (Vchar_script_table, Qchar_script_table): New variable. |
9554 | (syms_of_character): Declare Vchar_script_table as a lisp variable | |
9555 | and initialize it. | |
9556 | ||
1f45f627 | 9557 | * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't |
aca7a3d2 MB |
9558 | have property char-table-extra-slots, make no extra slot. |
9559 | ||
1f45f627 | 9560 | * dispextern.h (struct face): Delete member `charset'. |
4c4475a8 GM |
9561 | (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not |
9562 | SINGLE_BYTE_CHAR_P. | |
1f45f627 GM |
9563 | (choose_face_font, lookup_non_ascii_face, font_name_registry): |
9564 | Add prototypes. | |
9565 | (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype. | |
9566 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
9567 | |
9568 | * fontset.h (get_font_repertory_func): New prototype. | |
1f45f627 | 9569 | (make_fontset_for_ascii_face, fs_load_font): Fix prototypes. |
aca7a3d2 MB |
9570 | (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. |
9571 | ||
9572 | * fontset.c (Qprepend, Qappend): New variables. | |
1f45f627 | 9573 | (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete. |
aca7a3d2 MB |
9574 | (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. |
9575 | (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. | |
9576 | (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. | |
9577 | (fontset_ref_and_range, fontset_add, reorder_font_vector) | |
9578 | (load_font_get_repertory): New functions. | |
1f45f627 | 9579 | (fontset_set): Delete. |
aca7a3d2 | 9580 | (fontset_face): New arg FACE. Return face ID, not face. |
1f45f627 | 9581 | Complete re-write to handle new fontset structure. Change caller. |
aca7a3d2 MB |
9582 | (free_face_fontset): Use ASET istead of AREF (X) = Y. |
9583 | (face_for_char): Don't call lookup_face. | |
9584 | (make_fontset_for_ascii_face): New arg FACE. | |
9585 | (fs_load_font): New arg CHARSET_ID. Don't check | |
9586 | Vfont_encoding_alist here. | |
9587 | (find_font_encoding): New function. | |
9588 | (list_fontsets): Use STRINGP, not ! NILP. | |
9589 | (accumulate_script_ranges): New function. | |
9590 | (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely | |
9591 | re-written to handle new fontset structure. | |
9592 | (Ffontset_font): Return a copy of element. | |
9593 | (syms_of_fontset): Define symbols Qprepend and Qappend. Fix | |
9594 | docstring of font-encoding-alist. | |
9595 | ||
9596 | * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). | |
9597 | (Fset_fotset_font): Fix arguments to 5. | |
9598 | ||
1f45f627 | 9599 | * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face. |
aca7a3d2 MB |
9600 | |
9601 | * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): | |
9602 | Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
1f45f627 | 9603 | (highlight_trailing_whitespace): Adjust for the change of |
aca7a3d2 MB |
9604 | lookup_named_face. |
9605 | ||
9606 | * xfaces.c: Include charset.h. | |
1f45f627 GM |
9607 | (load_face_font): Delete argument C. Change caller. |
9608 | (generate_ascii_font_name): Rename from generate_ascii_font. | |
aca7a3d2 MB |
9609 | (font_name_registry): New function. |
9610 | (cache_face): Store ascii faces before non-ascii faces in buckets. | |
1f45f627 | 9611 | (lookup_face): Delete arguments C and BASE_FACE. Change caller. |
aca7a3d2 MB |
9612 | Lookup only ascii faces. |
9613 | (lookup_non_ascii_face): New function. | |
1f45f627 GM |
9614 | (lookup_named_face): Delete argument C. Change caller. |
9615 | (lookup_derived_face): Delete argument C. Change caller. | |
9616 | (try_font_list): New arg PATTERN. Change caller. If PATTERN is | |
aca7a3d2 | 9617 | a string, just call font_list with it. |
1f45f627 GM |
9618 | (choose_face_font): Delete arguments FACE and C. New arg |
9619 | FONT_SPEC. Change caller. | |
4c4475a8 GM |
9620 | (realize_face, realize_x_face): Delete arguments C and BASE_FACE. |
9621 | Change caller. | |
aca7a3d2 MB |
9622 | (realize_non_ascii_face): New function. |
9623 | (realize_x_face): Call load_face_font here. | |
1f45f627 | 9624 | (realize_tty_face): Delete argument C. Change caller. |
aca7a3d2 MB |
9625 | (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to |
9626 | get a face ID. | |
9627 | (dump_realized_face): Don't print charset of FACE. | |
9628 | ||
9629 | * xfns.c (x_set_font): Always call x_new_fontset and | |
9630 | store_frame_parameter. | |
9631 | (Fx_create_frame): Call x_new_fontset, not x_new_font. | |
1f45f627 | 9632 | (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory. |
aca7a3d2 MB |
9633 | |
9634 | * xterm.h (x_get_font_repertory): Extern it. | |
9635 | ||
9636 | * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
9637 | SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
9638 | it->multibyte_p is zero. | |
9639 | (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
9640 | (x_new_fontset): If FONTSETNAME doesn't match any existing | |
9641 | fontsets, create a new one. | |
9642 | (x_get_font_repertory): New function. | |
9643 | ||
73acf815 | 9644 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9645 | |
9646 | * coding.c (Ffind_coding_systems_region_internal): Detect an | |
9647 | ASCII only string correctly. | |
9648 | ||
9649 | * lread.c (Fload): Don't load with Qload_force_doc_strings t if | |
9650 | version is 0. | |
9651 | ||
73acf815 | 9652 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9653 | |
9654 | * lread.c: Include "coding.h". | |
1f45f627 GM |
9655 | (Qget_emacs_mule_file_char, Qload_force_doc_strings) |
9656 | (load_each_byte, unread_char): New variables. | |
9657 | (readchar_backlog): Delete. | |
aca7a3d2 MB |
9658 | (readchar): Return a character unless load_each_byte is nonzero. |
9659 | Handle the case that readcharfun is Qget_emacs_mule_file_char or a | |
9660 | cons. If unread_char is not -1, simply return it. | |
9661 | (unreadchar): Handle the case that readcharfun is | |
1f45f627 GM |
9662 | Qget_emacs_mule_file_char or a cons. Set unread_char if necessary. |
9663 | (read_multibyte): Delete. | |
aca7a3d2 MB |
9664 | (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) |
9665 | (read_emacs_mule_char): New functions. | |
9666 | (Fload): Even if the file doesn't have the extention ".elc", if | |
9667 | safe_to_load_p returns a positive version number, assume that the | |
9668 | file contains bytecompiled code. If the version is less than 22, | |
9669 | load the file while decoding multibyte sequences by emacs-mule. | |
9670 | (readevalloop): Don't use readchar_backlog. | |
1f45f627 GM |
9671 | (Fread): Likewise. Pay attention to the case that STREAM is a cons. |
9672 | (Fread_from_string): Pay attention to the case that STREAM is a cons. | |
9673 | (read_escape): Delete the arg BYTEREP. | |
aca7a3d2 MB |
9674 | (read1): Set load_each_byte to 1 temporarily while handling |
9675 | #@NUMBER. Don't call read_multibyte. | |
9676 | (read_vector): Call Fread with a cons. If readcharfun is | |
9677 | Qget_emacs_mule_file_char, decode the read string by emacs-mule. | |
1f45f627 | 9678 | (read_list): If doc_reference is 2, make the cdr part string as unibyte. |
aca7a3d2 MB |
9679 | (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char |
9680 | and Qload_force_doc_strings. | |
9681 | ||
73acf815 | 9682 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9683 | |
9684 | * xdisp.c (face_before_or_after_it_pos): Call | |
9685 | FETCH_MULTIBYTE_CHAR with byte postion, not char position. | |
9686 | ||
73acf815 | 9687 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9688 | |
9689 | * character.h (TRAILING_CODE_P): New macro. | |
1f45f627 | 9690 | (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
9691 | (string_char_with_unification): Fix prototype. |
9692 | (Vscript_alist): Extern it. | |
9693 | ||
9694 | * character.c (Vscript_alist): New variable. | |
4c4475a8 GM |
9695 | (string_char_with_unification, str_as_unibyte) |
9696 | (string_escape_byte8): Add `const' to local variables. | |
aca7a3d2 MB |
9697 | (syms_of_character): Declare script-alist as a Lisp variable. |
9698 | ||
9699 | * charset.h (Vcharset_ordered_list): Extern it. | |
9700 | (charset_ordered_list_tick): Extern it. | |
9701 | (EMACS_MULE_LEADING_CODE_PRIVATE_11) | |
9702 | (EMACS_MULE_LEADING_CODE_PRIVATE_12) | |
9703 | (EMACS_MULE_LEADING_CODE_PRIVATE_21) | |
1f204af3 | 9704 | (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros. |
1f45f627 | 9705 | (Funify_charset): Adjust for the change of Funify_charset. |
aca7a3d2 MB |
9706 | |
9707 | * charset.c (charset_ordered_list_tick): New variable. | |
9708 | (Fdefine_charset_internal): Increment charset_ordered_list_tick. | |
9709 | (Funify_charset): New optional arg DEUNIFY. If it is non-nil, | |
9710 | deunify intead of unify a charset. | |
9711 | (string_xstring_p): Add `const' to local variables. | |
1f45f627 GM |
9712 | (find_charsets_in_text): Add `const' to arguemnts and local variables. |
9713 | (encode_char): Adjust for the change of Funify_charset. Fix | |
aca7a3d2 MB |
9714 | detecting of invalid code. |
9715 | (Fset_charset_priority): Increment charset_ordered_list_tick. | |
9716 | (Fmap_charset_chars): Fix handling of default value for FROM_CODE | |
9717 | and TO_CODE. | |
9718 | ||
9719 | * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) | |
1f45f627 GM |
9720 | (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros. |
9721 | Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. | |
4c4475a8 GM |
9722 | (decode_coding_ccl, consume_chars) |
9723 | (Ffind_coding_systems_region_internal) | |
9724 | (Fcheck_coding_systems_region): Add `const' to local variables. | |
aca7a3d2 MB |
9725 | |
9726 | * print.c (print_object): Use octal form for printing the | |
9727 | contents of a bool vector. | |
9728 | ||
73acf815 | 9729 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9730 | |
9731 | * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. | |
9732 | <version == 20>: Refuse to load. | |
9733 | ||
73acf815 | 9734 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9735 | |
9736 | * fns.c: Move coding.h. | |
9737 | (Qcodeset, Qdays, Qmonths): New. | |
9738 | (concat): Use CHARACTERP instead of INTERGERP. | |
1f45f627 | 9739 | (Flocale_codeset): Delete. |
aca7a3d2 | 9740 | (Flanginfo): New function. |
1f45f627 | 9741 | (syms_of_fns): Change accordingly. |
aca7a3d2 MB |
9742 | |
9743 | * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. | |
9744 | ||
73acf815 | 9745 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9746 | |
9747 | * casetab.c (init_casetab_once, init_casetab_once): Fix | |
9748 | CHAR_TABLE_SET call. | |
9749 | ||
9750 | * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. | |
9751 | ||
9752 | * character.c (syms_of_character): Fix CHAR_TABLE_SET call. | |
9753 | ||
9754 | * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. | |
9755 | (load_charset_map, Fdeclare_equiv_charset, Fencode_char) | |
9756 | (Fset_charset_priority, syms_of_charset): Convert Lisp types. | |
9757 | ||
9758 | * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. | |
9759 | ||
9760 | * coding.c (ENCODE_DESIGNATION, decode_eol) | |
9761 | (make_conversion_work_buffer, code_conversion_restore) | |
9762 | (Fdefine_coding_system_internal): Convert Lisp types. | |
9763 | (code_conversion_restore): Use EQ, not ==. | |
9764 | (Fencode_coding_string): Fix code_convert_string call. | |
9765 | ||
9766 | * coding.h (code_convert_region): Fix prototype. | |
9767 | ||
1f45f627 | 9768 | * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove. |
aca7a3d2 MB |
9769 | |
9770 | * fontset.c (fontset_ref, fontset_set, fs_load_font) | |
9771 | (Ffontset_info): Convert Lisp types. | |
9772 | ||
9773 | * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. | |
9774 | ||
9775 | * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. | |
9776 | ||
9777 | * xdisp.c (display_mode_element): Fix call of Fset_text_properties. | |
9778 | ||
9779 | * chartab.c: Include "...h", not <...h> in some cases. | |
9780 | ||
9781 | * callproc.c (Fcall_process): Remove unused variables. | |
9782 | ||
73acf815 | 9783 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9784 | |
9785 | * coding.c (Fset_coding_system_priority): Allow null arg list. | |
9786 | ||
73acf815 | 9787 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9788 | |
9789 | * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
9790 | (Fself_insert_and_exit): Use CHARACTERP. | |
9791 | ||
9792 | * callproc.c (Fcall_process): Remove unused vars. | |
9793 | ||
9794 | * xterm.c (XTread_socket): Add extra dead keysyms. | |
9795 | ||
9796 | * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. | |
9797 | ||
9798 | * dispextern.h: Remove prototypes for redraw_frame, | |
9799 | redraw_garbaged_frames. | |
9800 | ||
9801 | * cmds.c (Fself_insert_command): Use CHARACTERP. | |
9802 | ||
9803 | * chartab.c (make_sub_char_table): Remove unused var. | |
9804 | (Fset_char_table_default, Fmap_char_table): Doc fix. | |
9805 | ||
9806 | * keymap.c (access_keymap): Remove generic char code. | |
9807 | (push_key_description): Use CHARACTERP. | |
9808 | ||
73acf815 | 9809 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9810 | |
9811 | * charset.c: Doc fixes. | |
9812 | (Funify_charset): Extra checking. | |
9813 | ||
73acf815 | 9814 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9815 | |
9816 | * lread.c: Remove some unused variables. | |
9817 | (safe_to_load_p): If safe, return the magic number version byte. | |
9818 | (Fload): Maybe use load-with-code-conversion. | |
9819 | ||
73acf815 | 9820 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9821 | |
9822 | * category.c (Fmodify_category_entry): Don't modify the contents | |
9823 | of category_set for characters out of the range. Avoid | |
9824 | unnecessary modification. | |
9825 | ||
1f45f627 | 9826 | * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of |
aca7a3d2 MB |
9827 | Vchar_unify_table. The default value of the table is now nil. |
9828 | ||
9829 | * character.c (syms_of_character): Setup Vchar_width_table for | |
9830 | eight-bit-control and raw-byte chars. | |
9831 | ||
9832 | * charset.h (enum define_charset_arg_index): Delete | |
9833 | charset_arg_parents and add charset_arg_subset and | |
9834 | charset_arg_superset. | |
9835 | (enum charset_attr_index): Delete charset_parents and add | |
9836 | charset_subset and charset_superset. | |
9837 | (enum charset_method): Delete CHARSET_METHOD_INHERIT and add | |
9838 | CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. | |
1f45f627 | 9839 | (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete. |
aca7a3d2 MB |
9840 | (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) |
9841 | (CHARSET_SUPERSET): New macros. | |
9842 | (charset_work): Extern it. | |
9843 | (ENCODE_CHAR): Use charset_work. | |
1f45f627 | 9844 | (CHAR_CHARSET_P): Adjust for the change of encoder format. |
aca7a3d2 MB |
9845 | (map_charset_chars): Extern it. |
9846 | ||
9847 | * charset.c (load_charset_map): Set the default value of encoder | |
9848 | and deunifier char-tables to nil. | |
1f45f627 | 9849 | (map_charset_chars): Change argument. Change callers. Use |
aca7a3d2 MB |
9850 | map_char_table_for_charset instead of map_char_table. |
9851 | (Fmap_charset_chars): New optional args from_code and to_code. | |
1f45f627 | 9852 | (Fdefine_charset_internal): Adjust for the change of |
aca7a3d2 MB |
9853 | `define-charset' (:parents -> :subset or :superset). |
9854 | (charset_work): New variable. | |
4c4475a8 GM |
9855 | (encode_char, syms_of_charset): Adjust for the change of |
9856 | Fdefine_charset_internal. | |
aca7a3d2 MB |
9857 | (Ffind_charset_string): Setup the vector `charsets' correctly. |
9858 | ||
1f45f627 | 9859 | * chartab.c (sub_char_table_ref_and_range): New arg default. Fix |
aca7a3d2 | 9860 | the previous change. |
1f45f627 | 9861 | (char_table_ref_and_range): Adjust for the above change. |
aca7a3d2 MB |
9862 | (map_sub_char_table_for_charset): New function. |
9863 | (map_char_table_for_charset): New function. | |
9864 | ||
9865 | * keymap.c (describe_vector): Handle a char-table directly here. | |
1f45f627 | 9866 | (describe_char_table): Delete. |
aca7a3d2 | 9867 | |
1f45f627 | 9868 | * lisp.h (map_charset_chars): Delete. |
aca7a3d2 | 9869 | |
73acf815 | 9870 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9871 | |
9872 | * fns.c (count_combining): Comment out (unused). | |
9873 | (Flocale_codeset): New. | |
9874 | (syms_of_fns): Defsubr it. | |
9875 | ||
9876 | * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. | |
1f45f627 | 9877 | (size_t): Remove. |
aca7a3d2 | 9878 | |
73acf815 | 9879 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 | 9880 | |
6f69e89b | 9881 | * Makefile.in (chartab.o): Depend on charset.h. |
aca7a3d2 | 9882 | |
73acf815 | 9883 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9884 | |
9885 | * character.c (syms_of_character): Set the default value of | |
9886 | Vprintable_chars to Qnil. | |
9887 | ||
73acf815 | 9888 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9889 | |
9890 | * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. | |
9891 | ||
73acf815 | 9892 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9893 | |
9894 | * charset.c (load_charset_map): Handle the case that from < to | |
9895 | correctly. | |
9896 | ||
4c4475a8 GM |
9897 | * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022) |
9898 | (encode_coding_sjis, encode_coding_big5, encode_coding_charset): | |
9899 | Pay attention to raw-8-bit chars. | |
aca7a3d2 | 9900 | |
73acf815 | 9901 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9902 | |
4c4475a8 GM |
9903 | * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el. |
9904 | It is not bytecompiled now. | |
aca7a3d2 MB |
9905 | |
9906 | * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) | |
9907 | (charset_jisx0208): New variables. | |
9908 | (Fdefine_charset_internal): Setup them if appropriate. | |
9909 | (init_charset_once): Initialize them to -1. | |
9910 | ||
1f45f627 GM |
9911 | * charset.h (charset_jisx0201_roman, charset_jisx0208_1978) |
9912 | (charset_jisx0208): Extern them. | |
aca7a3d2 | 9913 | |
1f204af3 | 9914 | * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro. |
aca7a3d2 | 9915 | (CODING_ISO_FLAG_USE_OLDJIS): New macro. |
1f45f627 GM |
9916 | (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition. |
9917 | (setup_iso_safe_charsets): Fix arguments to Fassq. | |
4c4475a8 GM |
9918 | (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1) |
9919 | (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to | |
9920 | CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS. | |
aca7a3d2 MB |
9921 | (encode_coding_iso_2022): Change the 1st arg to |
9922 | ENCODE_ISO_CHARACTER to a variable. | |
9923 | ||
73acf815 | 9924 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
9925 | |
9926 | * charset.h (enum define_charset_arg_index): New enums | |
9927 | charset_arg_min_code and charset_arg_max_code. | |
9928 | (struct charset): New member char_index_offset. | |
9929 | ||
4c4475a8 GM |
9930 | * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT): |
9931 | Take charset->char_index_offset into account. | |
aca7a3d2 MB |
9932 | (Fdefine_charset_internal): Handle args[charset_arg_min_code] and |
9933 | args[charset_arg_max_code]. Setup charset.char_index_offset. | |
9934 | (syms_of_charset): Fix args to Fdefine_charset_internal. | |
9935 | ||
73acf815 | 9936 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9937 | |
9938 | * coding.c (decode_coding_utf_8): Reject overlong sequences. | |
9939 | ||
73acf815 | 9940 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9941 | |
9942 | * coding.c: Doc fixes. | |
9943 | (Fcoding_system_aliases): Fix return value. | |
9944 | (Qmac): Remove (duplicated) definition. | |
9945 | ||
73acf815 | 9946 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9947 | |
9948 | * charset.c (Fcharset_priority_list, Fset_charset_priority): New | |
9949 | functions. | |
9950 | ||
9951 | * character.c (Fstring): Doc fix. | |
9952 | ||
9953 | * charset.c (Fdefine_charset_alias): Update Vcharset_list. | |
9954 | ||
9955 | * fontset.c (Ffontset_info): Doc fix. Return charset names, not | |
9956 | ids. | |
9957 | (font-encoding-alist): Doc fix. | |
9958 | ||
73acf815 | 9959 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9960 | |
9961 | * term.c (costs_set): Declare static, non-initialized for pcc. | |
1f45f627 | 9962 | (encode_terminal_code): Remove unused var. |
aca7a3d2 MB |
9963 | |
9964 | * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | |
9965 | for K&R. | |
9966 | ||
9967 | * xterm.c (xlwmenu_window_p): Fix prototype for K&R. | |
9968 | ||
9969 | * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. | |
1f45f627 | 9970 | (suffixes): Move out of make_subsidiaries for K&R. |
aca7a3d2 | 9971 | |
1f45f627 | 9972 | * charset.c (map_charset_chars): Fix c_function declaration for K&R. |
aca7a3d2 MB |
9973 | |
9974 | * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. | |
9975 | ||
73acf815 | 9976 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
9977 | |
9978 | * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. | |
9979 | ||
1f45f627 | 9980 | * category.c (Fmodify_category_entry): Doc fix. Remove unused vars. |
aca7a3d2 | 9981 | |
2a2e8de7 | 9982 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 MB |
9983 | |
9984 | * charset.c (Fdefine_charset_internal): Fix argument to bzero. | |
9985 | ||
1f45f627 | 9986 | * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96. |
aca7a3d2 | 9987 | |
73acf815 | 9988 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9989 | |
4c4475a8 | 9990 | * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el, |
aca7a3d2 | 9991 | vietnamese.elc to vietnamese.el. They are not bytecompiled now. |
aca7a3d2 | 9992 | |
73acf815 | 9993 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 9994 | |
1f45f627 | 9995 | * coding.c (decode_coding_charset): Adjust for the change of |
aca7a3d2 MB |
9996 | Fdefine_coding_system_internal. |
9997 | (Fdefine_coding_system_internal): For a coding system of | |
9998 | `charset' type, store a list of charset IDs in | |
9999 | `charset_attr_charset_valids' element of coding attributes. | |
10000 | ||
73acf815 | 10001 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10002 | |
10003 | * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. | |
1f45f627 GM |
10004 | (emacs_mule_char): New arg src. Delete arg `composition'. Change |
10005 | caller. Handle 2-byte and 3-byte charsets correctly. | |
10006 | (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from | |
10007 | DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller. | |
aca7a3d2 MB |
10008 | (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. |
10009 | (DECODE_EMACS_MULE_21_COMPOSITION): Call | |
10010 | DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation | |
10011 | sequence. | |
10012 | (decode_coding_emacs_mule): Handle composition correctly. Rewind | |
1f45f627 | 10013 | `src' and `consumed_chars' correctly before calling emacs_mule_char. |
aca7a3d2 MB |
10014 | (DECODE_COMPOSITION_START): Correctly handle the case of altchar |
10015 | and alt&rule composition. | |
10016 | (decode_coding_iso_2022): Handle composition correctly. | |
10017 | (init_coding_once): Setup emacs_mule_bytes for private charsets. | |
10018 | ||
10019 | * charset.c (Fdefine_charset_internal): Fix bug for the case of | |
10020 | re-defining a charset. If the charset has :emacs-mule-id, setup | |
10021 | emacs_mule_bytes. | |
1f45f627 | 10022 | (Fmake_char): If CODE1 is nil, use the minimum code of the charset. |
aca7a3d2 | 10023 | |
73acf815 | 10024 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 | 10025 | |
4c4475a8 GM |
10026 | * coding.c (encode_coding_iso_2022, encode_coding_sjis) |
10027 | (encode_coding_big5, encode_coding_charset): If coding requires safe | |
aca7a3d2 MB |
10028 | encoding, produce a character specified by |
10029 | CODING_INHIBIT_CHARACTER_SUBSTITUTION. | |
aca7a3d2 | 10030 | |
73acf815 | 10031 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
10032 | |
10033 | * xterm.c (XSetIMValues): Declare. | |
10034 | ||
10035 | * process.c: Conditionally include sys/wait.h, pty.h. | |
10036 | ||
1f45f627 | 10037 | * print.c (print_object): Fix print format for 64-bit systems. |
aca7a3d2 | 10038 | |
1f45f627 | 10039 | * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems. |
aca7a3d2 MB |
10040 | |
10041 | * buffer.c (emacs_strerror): Declare. | |
aca7a3d2 MB |
10042 | |
10043 | * fontset.c (Fclear_face_cache): Declare. | |
1f45f627 | 10044 | (accumulate_font_info): Comment-out (unused). |
aca7a3d2 MB |
10045 | (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused |
10046 | variables. | |
10047 | ||
10048 | * character.h (string_escape_byte8): Declare. | |
10049 | ||
10050 | * charset.c (load_charset_map, load_charset_map_from_file): Remove | |
10051 | unused vars. | |
10052 | (Fdefine_charset_internal, Fsplit_char, syms_of_charset) | |
10053 | (Fmap_charset_chars): Doc fix. | |
10054 | ||
1f45f627 | 10055 | * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove. |
aca7a3d2 MB |
10056 | (Fset_coding_system_priority, Fset_coding_system_priority) |
10057 | (Fdefine_coding_system_internal): Doc fix. | |
10058 | ||
73acf815 | 10059 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
10060 | |
10061 | * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. | |
10062 | ||
73acf815 | 10063 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10064 | |
10065 | * character.c (string_escape_byte8): Make multibyte string with | |
10066 | correct size. | |
10067 | ||
10068 | * charset.c (Fmake_char): Delete unnecessary code. | |
10069 | ||
73acf815 | 10070 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10071 | |
10072 | * xfns.c (x_encode_text): Allocate coding.destination here, and | |
10073 | call encode_coding_object with dst_object Qnil. | |
10074 | ||
10075 | * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | |
10076 | multibyte form correctly. | |
10077 | ||
10078 | * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | |
10079 | against Vfont_encoding_alist. | |
10080 | ||
10081 | * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | |
10082 | handling of charset list. | |
10083 | (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | |
10084 | (decode_coding_object): Move point to coding->dst_pos before | |
10085 | calling post-read-conversion function. | |
10086 | (encode_coding_object): Give correct arguments to | |
10087 | pre-write-conversion. Ignore the return value of | |
10088 | pre-write-conversion function. Pay attention to the case that | |
10089 | pre-write-conversion changes the current buffer. If dst_object is | |
10090 | Qt, even if coding->src_bytes is zero, allocate at least one byte | |
10091 | to coding->destination. | |
10092 | ||
10093 | * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | |
10094 | ||
10095 | * charset.c (Fmake_char): Make it more backward compatible. | |
10096 | (Fmap_charset_chars): Fix docstring. | |
10097 | ||
73acf815 | 10098 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
10099 | |
10100 | * coding.c: Doc fixes. | |
10101 | (Fdefine_coding_system_alias): Use names, not symbols, in | |
10102 | coding-system-alist. | |
10103 | ||
73acf815 | 10104 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10105 | |
10106 | * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead | |
10107 | of calling free_realized_face. | |
10108 | ||
2a2e8de7 | 10109 | 2008-02-01 Yong Lu <lyongu@asia-infonet.com> |
aca7a3d2 | 10110 | |
1f45f627 GM |
10111 | * charset.c (read_hex): Don't treat SPC as a comment starter. |
10112 | (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1. | |
aca7a3d2 MB |
10113 | (Fdecode_char): Fix typo. |
10114 | ||
73acf815 | 10115 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10116 | |
10117 | * charset.h (struct charset): New member `code_space_mask'. | |
10118 | ||
1f45f627 | 10119 | * coding.c (coding_set_source): Delete the local variable beg_byte. |
4c4475a8 GM |
10120 | (encode_coding_charset, Fdefine_coding_system_internal): |
10121 | Delete the local variable charset. | |
aca7a3d2 MB |
10122 | (Fdefine_coding_system_internal): Setup |
10123 | attrs[coding_attr_charset_valids] correctly. | |
10124 | ||
10125 | * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' | |
10126 | member to check if CODE is valid or not. | |
10127 | (Fdefine_charset_internal): Initialize `code_space_mask' member. | |
10128 | (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE | |
10129 | is within the range of charset->min_code and carset->max_code. | |
10130 | ||
73acf815 | 10131 | 2008-02-01 Dave Love <fx@gnu.org> |
aca7a3d2 MB |
10132 | |
10133 | * syntax.h (syntax_temp) [!__GNUC__]: Declare. | |
10134 | ||
10135 | * dispextern.h (generate_ascii_font): Fix return type. | |
10136 | ||
10137 | * xfaces.c (generate_ascii_font): Fix arg declaration. | |
10138 | ||
10139 | * coding.c (coding_inherit_eol_type) | |
10140 | (Fset_terminal_coding_system_internal) | |
10141 | (Fset_safe_terminal_coding_system_internal): Fix arg declarations. | |
10142 | ||
73acf815 | 10143 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10144 | |
10145 | * coding.c (decode_coding_charset, encode_coding_charset): Handle | |
10146 | multiple charsets correctly. | |
10147 | ||
73acf815 | 10148 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10149 | |
10150 | * search.c (boyer_moore): Fix handling of mulitbyte character | |
10151 | translation. | |
10152 | ||
10153 | * xdisp.c (display_mode_element): When the variable `elt' is | |
10154 | changed, update `this' and `lisp_string'. | |
10155 | ||
73acf815 | 10156 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10157 | |
10158 | * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. | |
10159 | ||
10160 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
1f45f627 | 10161 | to decode_coding_c_string. Update PT and PT_BYTE after the insertion. |
aca7a3d2 MB |
10162 | |
10163 | * charset.c (struct charset_map_entries): New struct. | |
1f45f627 GM |
10164 | (load_charset_map): Rename from parse_charset_map. New args |
10165 | entries and n_entries. Change caller. | |
10166 | (load_charset_map_from_file): Rename from load_charset_map. | |
10167 | Change caller. New arg control_flag. Call load_charset_map at | |
aca7a3d2 MB |
10168 | the tail. |
10169 | (load_charset_map_from_vector): New function. | |
10170 | (Fdefine_charset_internal): Setup charset.compact_codes_p. | |
10171 | (encode_char): If the charset is compact, change a character index | |
10172 | to a code point. | |
10173 | ||
10174 | * coding.c (coding_alloc_by_making_gap): Check the case that the | |
10175 | source and destination are the same correctly. | |
10176 | (decode_coding_raw_text): Set coding->consumed_char and | |
10177 | coding->consumed to 0. | |
10178 | (produce_chars): If coding->chars_at_source is nonzero, update | |
10179 | coding->consumed_char and coding->consumed before calling | |
10180 | alloc_destination. | |
10181 | (Fdefine_coding_system_alias): Register ALIAS in | |
10182 | Vcoding_system_alist. | |
10183 | (syms_of_coding): Define `no-convesion' coding system at the tail. | |
10184 | ||
10185 | * fileio.c (Finsert_file_contents): Set coding_system instead of | |
10186 | val. If the current buffer is multibyte, always call | |
10187 | decode_coding_gap. | |
10188 | ||
10189 | * xfaces.c (try_font_list): Give higher priority to fontset's | |
10190 | family than face's family. | |
10191 | ||
73acf815 | 10192 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10193 | |
10194 | * callproc.c (Fcall_process): Be sure to give the current buffer | |
10195 | to decode_coding_c_string. | |
10196 | ||
10197 | * xfaces.c (try_font_list): Give a family specified in a fontset | |
10198 | higher priority than a family specified in a face. | |
10199 | ||
73acf815 | 10200 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10201 | |
10202 | * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. | |
10203 | Fix arguments to insert_from_buffer. | |
10204 | ||
10205 | * xdisp.c (display_mode_element): Fix calculation of `bytepos'. | |
10206 | ||
73acf815 | 10207 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10208 | |
10209 | * coding.c (produce_chars): Set the variable `multibytep' correctly. | |
10210 | (decode_coding_gap): Set coding->dst_multibyte correctly. | |
10211 | ||
73acf815 | 10212 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10213 | |
10214 | * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. | |
1f45f627 | 10215 | (decode_coding_utf_16): Fix converting high and low bytes to code-point. |
aca7a3d2 MB |
10216 | (encode_coding_utf_16): Substitute coding->default_char for |
10217 | non-Unicode characters. | |
10218 | (decode_coding): Don't call record_insert here. | |
10219 | (setup_coding_system): Initialize `surrogate' of | |
10220 | coding->spec.utf_16 to 0. | |
10221 | (EMIT_ONE_BYTE): Fix for multibyte case. | |
10222 | ||
10223 | * insdel.c (insert_from_gap): Call record_insert. | |
10224 | ||
73acf815 | 10225 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10226 | |
10227 | * casefiddle.c (casify_region): Fix multibyte case. | |
10228 | ||
10229 | * character.c (c_string_width): Add return type `int'. | |
1f45f627 | 10230 | (char_string_with_unification): Delete arg ADVANCED. |
aca7a3d2 MB |
10231 | |
10232 | * character.h (CHAR_VALID_P): Don't call CHARACTERP. | |
1f45f627 | 10233 | (CHAR_STRING): Adjust for the change of char_string_with_unification. |
aca7a3d2 MB |
10234 | (CHAR_STRING_ADVANCE): Make it do-while statement. |
10235 | ||
1f45f627 | 10236 | * chartab.c (sub_char_table_set_range): Optimize for the case |
aca7a3d2 MB |
10237 | DEPTH == 3. Add workaround code for a GCC optimization bug. |
10238 | ||
10239 | * charset.c (parse_charset_map): Remove an unused variable. | |
10240 | ||
10241 | * coding.c: Delete unused variables. | |
10242 | ||
10243 | * fileio.c (Finsert_file_contents): Set coding_system to Qnil | |
10244 | earlier. If inserted is zero and the coding system doesn't | |
10245 | require flushing, don't call decode_coding_gap. | |
10246 | ||
10247 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. | |
10248 | ||
73acf815 | 10249 | 2008-02-01 Kenichi Handa <handa@m17n.org> |
aca7a3d2 MB |
10250 | |
10251 | The following changes are for using Unicode as an internal | |
10252 | character model, and use UTF-8 format for buffer/string | |
10253 | representation. | |
10254 | ||
1f45f627 | 10255 | * .gdbinit (xchartable): Adjust for the change of char table structure. |
aca7a3d2 MB |
10256 | (xsubchartable, xcoding, xcharset, xcurbuf): New commands. |
10257 | ||
10258 | * Makefile.in (obj): Add character.o and chartab.o. | |
c3f9fba8 | 10259 | (lisp, shortlisp): Remove utf-8.elc. |
aca7a3d2 MB |
10260 | (*.o): For many files, change dependency on charset.h to |
10261 | character.h, and add dependency on character.h. | |
10262 | (character.o, chartab.o): New targets. | |
10263 | ||
1f45f627 GM |
10264 | * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c: |
10265 | * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c: | |
10266 | * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
aca7a3d2 MB |
10267 | of "charset.h". |
10268 | ||
10269 | * dired.c, filelock.c: Include "character.h". | |
10270 | ||
10271 | * alloc.c: Include "character.h" instead of "charset.h". | |
4c4475a8 | 10272 | (Fmake_char_table, make_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
10273 | (syms_of_alloc): Remove defsubr for Smake_char_table. |
10274 | ||
10275 | * buffer.c: Include "character.h" instead of "charset.h", don't | |
10276 | include "coding.h". | |
1f45f627 | 10277 | (Fset_buffer_multibyte): Adjust for UTF-8. |
aca7a3d2 MB |
10278 | |
10279 | * buffer.h: EXFUN Fbuffer_live_p. | |
10280 | ||
10281 | * callproc.c: Include "character.h" instead of "charset.h". | |
10282 | (Fcall_process): Big change for the new code-conversion APIs. | |
10283 | ||
10284 | * casetab.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 10285 | (set_canon, set_identity, shuffle): Adjust for the new |
aca7a3d2 MB |
10286 | map_char_table spec. |
10287 | (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
10288 | accessing the char table structure. | |
10289 | ||
10290 | * chartab.c: New file that implements char table. | |
10291 | ||
10292 | * category.c: Include "character.h". | |
10293 | (copy_category_entry): New function. | |
10294 | (copy_category_table): Call map_char_table and copy_category_entry. | |
10295 | (Fmake_category_table): Initialize all top-vel slots. | |
10296 | (char_category_set): New function. | |
1f45f627 | 10297 | (modify_lower_category_set): Delete. |
aca7a3d2 MB |
10298 | (Fmodify_category_entry): Call char_table_ref_and_range. |
10299 | ||
10300 | * category.h (CATEGORY_SET): Just call char_category_set. | |
10301 | ||
10302 | * ccl.c: Include "character.h". | |
10303 | (Qccl, Qcclp): New variables. | |
10304 | (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
10305 | it's less than 256. | |
1f45f627 GM |
10306 | (CCL_WRITE_MULTIBYTE_CHAR): Delete. |
10307 | (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC | |
aca7a3d2 | 10308 | and DST type. |
1f45f627 GM |
10309 | (ccl_driver): Change types of argument, adjust code accordingly. |
10310 | (Fccl_execute, Fccl_execute_on_string): Adjust for the change of | |
aca7a3d2 MB |
10311 | ccl_driver. |
10312 | (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
10313 | ||
1f45f627 GM |
10314 | * ccl.h (struct ccl_program): Delete members eol_type and multibyte. |
10315 | New members src_multibyte, dst_multibyte, consumed, and produced. | |
10316 | (struct ccl_spec): Delete members decoder and encoder. New member ccl. | |
aca7a3d2 | 10317 | (CODING_SPEC_CCL_PROGRAM): New macro. |
1f45f627 | 10318 | (ccl_driver): Update prototype. |
aca7a3d2 MB |
10319 | (Qccl, Qcclp, Fccl_program_p): Extern them. |
10320 | (CHECK_CCL_PROGRAM): New macro. | |
10321 | ||
10322 | * character.c, character.h, chartab.c: New files. | |
10323 | ||
1f45f627 GM |
10324 | * charset.c: Mostly re-written. Move character and multibyte sequence |
10325 | handling codes to character.c. | |
aca7a3d2 | 10326 | |
1f45f627 GM |
10327 | * charset.h: Mostly re-written. Move character and multibyte sequence |
10328 | handling codes to character.h. | |
aca7a3d2 MB |
10329 | |
10330 | * coding.c, coding.h: Mostly re-written. | |
10331 | ||
10332 | * composite.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
10333 | (CHAR_WIDTH): Move to character.h. |
10334 | (HASH_KEY, HASH_VALUE): Delete. | |
aca7a3d2 | 10335 | |
1f45f627 GM |
10336 | * composite.h (enum composition_method): Change order of enumeration |
10337 | symbols. | |
aca7a3d2 MB |
10338 | |
10339 | * data.c: Include "character.h" instead of "charset.h". | |
10340 | (Faref): Call CHAR_TABLE_REF for a char table. | |
10341 | (Faset): Call CHAR_TABLE_SET for a char table. | |
10342 | ||
1f45f627 GM |
10343 | * dispextern.h (free_realized_face, check_face_attribytes) |
10344 | (generate_ascii_font): Extern them. | |
10345 | (free_realized_multibyte_face): Delete extern. | |
aca7a3d2 | 10346 | |
1f45f627 | 10347 | * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char |
aca7a3d2 MB |
10348 | table structure. |
10349 | ||
10350 | * editfns.c: Include "character.h" instead of "charset.h". | |
10351 | (Fchar_to_string): Always call CHAR_STRING. | |
10352 | ||
10353 | * emacs.c (main): Call init_charset_once, init_charset, | |
10354 | syms_of_chartab, and syms_of_character. | |
10355 | ||
10356 | * fileio.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 10357 | (Finsert_file_contents): Big change for the new code-conversion API. |
4c4475a8 | 10358 | (choose_write_coding_system, Fwrite_region): Likewise. |
1f45f627 | 10359 | (build_annotations_2): Delete. |
aca7a3d2 MB |
10360 | (e_write): Big change for the new code-conversion API. |
10361 | ||
10362 | * fns.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 10363 | (copy_sub_char_table): Move to chartab.c. |
aca7a3d2 MB |
10364 | (Fcopy_sequence): Call copy_char_table for a char table. |
10365 | (concat): Delete codes calling count_multibyte. | |
4c4475a8 GM |
10366 | (string_char_to_byte, string_byte_to_char): Adjust for the new |
10367 | multibyte form. | |
1f45f627 GM |
10368 | (internal_equal): Adjust for the change of char table structure. |
10369 | (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent) | |
10370 | (Fchar_table_extra_slot, Fset_char_table_extra_slot) | |
10371 | (Fchar_table_range, Fset_char_table_range, Fset_char_table_default) | |
10372 | (char_table_translate, optimize_sub_char_table) | |
10373 | (Foptimize_char_table, map_char_table, Fmap_char_table): Move to | |
aca7a3d2 | 10374 | chartab.c. |
1f45f627 GM |
10375 | (char_table_ref_and_index): Delete. |
10376 | (HASH_KEY, HASH_VALUE): Move to lisp.h. | |
aca7a3d2 | 10377 | (Fmd5): Call preferred_coding_system instead of accessing |
1f45f627 GM |
10378 | Vcoding_category_list. Adjust for the new code-conversion API. |
10379 | (syms_of_fns): Move defsubr for char table related functions to | |
aca7a3d2 MB |
10380 | chartab.c. |
10381 | ||
10382 | * fontset.c: Mostly re-written. | |
10383 | ||
1f45f627 | 10384 | * fontset.h (struct font_info): Change type of the member encoding_type. |
aca7a3d2 | 10385 | (enum FONT_SPEC_INDEX): New enum. |
1f45f627 GM |
10386 | (fontset_font_pattern, fs_load_font): Update prototype. |
10387 | (FS_LOAD_FONT): Adjust for the change of fs_load_font. | |
aca7a3d2 MB |
10388 | |
10389 | * indent.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 10390 | (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD. |
aca7a3d2 MB |
10391 | |
10392 | * insdel.c: Include "character.h" instead of "charset.h". | |
10393 | (copy_text): Don't refer to Vnonascii_translation_table. | |
10394 | (insert_from_gap): New function. | |
10395 | ||
10396 | * keyboard.c: Include "character.h" instead of "charset.h". | |
10397 | (command_loop_1): Never call direct_output_forward_char before | |
10398 | a non-ASCII character. | |
10399 | (read_char): If Vkeyboard_translate_table is a char table, always | |
1f45f627 | 10400 | translate a character. |
aca7a3d2 MB |
10401 | |
10402 | * keymap.c: Include "character.h". | |
10403 | (store_in_keymap): Handle the case that IDX is a cons. | |
10404 | (Fdefine_key): Handle the case that KEY is a cons and the car part | |
10405 | is also a cons (range). | |
1f45f627 | 10406 | (push_key_description): Adjust for the new character code. |
aca7a3d2 MB |
10407 | (describe_vector): Call describe_char_table for a char table. |
10408 | (describe_char_table): New function. | |
10409 | ||
10410 | * keymap.h (describe_char_table): Extern it. | |
10411 | ||
10412 | * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
10413 | (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
1f45f627 GM |
10414 | (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS) |
10415 | (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
10416 | Delete. | |
10417 | (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table | |
aca7a3d2 MB |
10418 | structure. |
10419 | (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
1f45f627 GM |
10420 | (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2) |
10421 | (CHARTAB_SIZE_BITS_3): New macros. | |
aca7a3d2 | 10422 | (chartab_size): Extern it. |
1f45f627 | 10423 | (struct Lisp_Char_Table): Re-design. |
aca7a3d2 | 10424 | (struct Lisp_Sub_Char_Table): New structure. |
1f45f627 GM |
10425 | (HASH_KEY, HASH_VALUE): Move from fns.c. |
10426 | (CHARACTERBITS): Define as 22. | |
10427 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change. | |
aca7a3d2 MB |
10428 | (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. |
10429 | (GC_SUB_CHAR_TABLE_P): New macro. | |
1f45f627 GM |
10430 | (Fencode_coding_string, Fdecode_coding_string): Update EXFUN. |
10431 | (code_convert_string_norecord): Deleted extern. | |
10432 | (init_character_once, syms_of_character, init_charset) | |
10433 | (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
aca7a3d2 MB |
10434 | |
10435 | * lread.c: Include "character.h". | |
10436 | (read_multibyte): New arg NBYTES. | |
1f45f627 GM |
10437 | (read_escape): Change the meaning of returned *BYTEREP. |
10438 | (to_multibyte): Delete. | |
10439 | (read1): Adjust the handling of char table and string. | |
aca7a3d2 MB |
10440 | |
10441 | * print.c: Include "character.h" instead of "charset.h". | |
10442 | (print_string): Convert 8-bit raw bytes to octal form by | |
10443 | string_escape_byte8. | |
1f45f627 | 10444 | (print_object): Adjust for the new multibyte form. Print 8-bit |
aca7a3d2 MB |
10445 | raw bytes always in octal form. Handle sub char table correctly. |
10446 | ||
10447 | * process.c: Include "character.h" instead of "charset.h". | |
4c4475a8 GM |
10448 | (read_process_output, send_process): Adjust for the new |
10449 | code-conversion API. | |
aca7a3d2 | 10450 | |
1f45f627 | 10451 | * puresize.h (BASE_PURESIZE): Increase. |
aca7a3d2 MB |
10452 | |
10453 | * regex.c: Include "character.h" instead of "charset.h". | |
10454 | (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
10455 | (regex_compile): Accept a range whose starting and ending | |
10456 | character have different leading bytes. | |
1f45f627 | 10457 | (analyse_first): Adjust for the above change. |
aca7a3d2 MB |
10458 | |
10459 | * search.c: Include "character.h" instead of "charset.h". | |
1f45f627 GM |
10460 | (search_buffer, boyer_moore): Adjust for the new multibyte form. |
10461 | (Freplace_match): Adjust for the change of multibyte_char_to_unibyte. | |
aca7a3d2 MB |
10462 | |
10463 | * syntax.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 10464 | (syntax_parent_lookup): Delete. |
aca7a3d2 | 10465 | (Fmodify_syntax_entry): Accept a cons as CHAR. |
1f45f627 | 10466 | (skip_chars): Adjust for the new multibyte form. |
aca7a3d2 MB |
10467 | (init_syntax_once): Call char_table_set_range instead of directly |
10468 | accessing the structure of a char table. | |
10469 | ||
10470 | * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
1f45f627 | 10471 | (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro. |
aca7a3d2 MB |
10472 | (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. |
10473 | (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
10474 | ||
10475 | * term.c: Include "buffer.h" and "character.h". | |
4c4475a8 GM |
10476 | (encode_terminal_code, write_glyphs): Adjust for the new |
10477 | code-conversion API. | |
aca7a3d2 MB |
10478 | (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. |
10479 | ||
1f45f627 | 10480 | * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT. |
aca7a3d2 MB |
10481 | |
10482 | * xdisp.c: Include "character.h". | |
1f45f627 GM |
10483 | (get_next_display_element): Adjust for the new multibyte form. |
10484 | (disp_char_vector): Adjust for the new char table structure. | |
10485 | (decode_mode_spec_coding): Adjust for the new structure of | |
aca7a3d2 | 10486 | coding system. |
1f45f627 | 10487 | (decode_mode_spec): Adjust for the new code-conversion API. |
aca7a3d2 MB |
10488 | |
10489 | * xfaces.c: Include "character.h" instead of "charset.h". | |
1f45f627 | 10490 | (load_face_font): Adjust for the change of choose_face_font and |
aca7a3d2 MB |
10491 | FS_LOAD_FONT. |
10492 | (generate_ascii_font): New function. | |
1f45f627 GM |
10493 | (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT. |
10494 | (set_font_frame_param): Adjust for the change of choose_face_font. | |
aca7a3d2 | 10495 | (free_realized_face): Make it public. |
1f45f627 | 10496 | (free_realized_faces_for_fontset): Rename from |
aca7a3d2 | 10497 | free_realized_multibyte_face. Free also faces realized for ASCII. |
1f45f627 | 10498 | (choose_face_font): Change arguments. Adjust for the change of |
aca7a3d2 MB |
10499 | fontset_font_pattern and FS_LOAD_FONT. |
10500 | ||
10501 | * xfns.c: Include "character.h". | |
1f45f627 | 10502 | (x_encode_text): Adjust for the new code-conversion API. |
aca7a3d2 MB |
10503 | |
10504 | * xselect.c: Don't include "charset.h". | |
1f45f627 | 10505 | (selection_data_to_lisp_data): Adjust for the new code conversion API. |
aca7a3d2 MB |
10506 | |
10507 | * xterm.c: Include "character.h". | |
1f45f627 | 10508 | (x_encode_char): New argument CHARSET. Change caller. |
4c4475a8 GM |
10509 | (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding): |
10510 | Call ENCODE_CHAR instead of SPLIT_CHAR. | |
aca7a3d2 MB |
10511 | (x_produce_glyphs): Don't check Vnonascii_translation_table Call |
10512 | CHAR_WIDTH instead of CHARSET_WIDTH. | |
1f45f627 GM |
10513 | (XTread_socket): Adjust for the new code-conversion API. |
10514 | (x_new_font): Adjust for the change of FS_LOAD_FONT. | |
10515 | (x_load_font): Adjust for the change of struct font. | |
aca7a3d2 | 10516 | |
d6abfc14 SM |
10517 | 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca> |
10518 | ||
10519 | * xfaces.c (face_at_buffer_position): Remove unused vars. | |
10520 | ||
0acdaf8d KH |
10521 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
10522 | ||
4c4475a8 GM |
10523 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR): |
10524 | Fix overflow checking. | |
0acdaf8d | 10525 | |
6c8a0ebf GM |
10526 | 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp> |
10527 | ||
10528 | * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver): | |
10529 | Cancel previous change. | |
10530 | ||
10531 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> | |
10532 | ||
10533 | * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when | |
10534 | ccl->eight_bit_control. Fix check for buffer overflow. | |
10535 | (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow. | |
10536 | (ccl_driver): Initialize extra_bytes to 0. | |
10537 | ||
a32aad64 KH |
10538 | 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp> |
10539 | ||
10540 | * keyboard.c (make_ctrl_char): If C is a multibyte character, just | |
10541 | return it ORed with ctrl_modifier. | |
10542 | ||
8b329dba MB |
10543 | 2008-01-29 Miles Bader <miles@gnu.org> |
10544 | ||
10545 | * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake. | |
10546 | ||
548667aa JR |
10547 | 2008-01-28 Jason Rumney <jasonr@gnu.org> |
10548 | ||
10549 | * w32.c (stat): Don't double check for networked drive. | |
10550 | ||
0975aa24 SM |
10551 | 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca> |
10552 | ||
ef264c42 SM |
10553 | * window.c (run_window_configuration_change_hook): New function. |
10554 | Code extracted from set_window_buffer. Set the selected frame. | |
10555 | (set_window_buffer): Use it. | |
10556 | * window.h (run_window_configuration_change_hook): Declare. | |
10557 | * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer. | |
10558 | ||
0975aa24 SM |
10559 | * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM). |
10560 | ||
9c28b587 DN |
10561 | 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu> |
10562 | ||
10563 | * Makefile.in: Remove references to unused macros. | |
10564 | ||
c617afce EZ |
10565 | 2008-01-26 Eli Zaretskii <eliz@gnu.org> |
10566 | ||
10567 | * w32.c (g_b_init_get_sid_sub_authority) | |
10568 | (g_b_init_get_sid_sub_authority_count): New static variables. | |
10569 | (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs. | |
10570 | (get_sid_sub_authority, get_sid_sub_authority_count): New functions. | |
0975aa24 SM |
10571 | (init_user_info): Use them to retrieve uid and gid. |
10572 | Use 500/513, the Windows defaults, as Administrator's uid/gid. | |
248c21c5 EZ |
10573 | (fstat): Use pw_uid and pw_gid from the_passwd structure for |
10574 | st_uid and st_gid of the file. | |
c617afce | 10575 | |
302d7d54 JR |
10576 | 2008-01-26 Jason Rumney <jasonr@gnu.org> |
10577 | ||
10578 | * w32.c (logon_network_drive): New function. | |
10579 | (stat): Use it. | |
10580 | ||
3ac7a21e CY |
10581 | 2008-01-26 Chong Yidong <cyd@stupidchicken.com> |
10582 | ||
10583 | * xdisp.c (pos_visible_p): Handle the case where charpos falls on | |
10584 | invisible text covered with an ellipsis. | |
10585 | ||
bbb9fc1f RS |
10586 | 2008-01-25 Richard Stallman <rms@gnu.org> |
10587 | ||
10588 | * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and | |
10589 | jump back to beginning. Move some other initializations after that. | |
10590 | (Qwindow_text_change_functions, Vwindow_text_change_functions): | |
10591 | New variables. | |
10592 | (syms_of_xdisp): Init them. | |
10593 | ||
10594 | * keyboard.c (read_char): Restore echo_message_buffer after redisplay. | |
10595 | ||
0975aa24 SM |
10596 | * buffer.c (reset_buffer_local_variables): |
10597 | Implement `permanent-local-hook'. | |
bbb9fc1f | 10598 | (Qpermanent_local_hook): New variable. |
0975aa24 | 10599 | (syms_of_buffer): Init and staticpro it. |
bbb9fc1f | 10600 | |
79235cbe MA |
10601 | 2008-01-25 Michael Albinus <michael.albinus@gmx.de> |
10602 | ||
10603 | * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux. | |
10604 | ||
ccd8f7fe TTN |
10605 | 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org> |
10606 | ||
10607 | * fns.c (Fclrhash): Return TABLE. | |
10608 | ||
dfbe40f2 | 10609 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
223b3d1d YM |
10610 | |
10611 | * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. | |
10612 | (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p | |
10613 | is set even without positional changes. | |
10614 | (x_scroll_bar_clear): Set bar->redraw_needed_p. | |
10615 | ||
10616 | * macterm.h (struct scroll_bar): New member `redraw_needed_p'. | |
10617 | ||
dfbe40f2 | 10618 | 2008-01-23 Jason Rumney <jasonr@gnu.org> |
602e142f | 10619 | |
d6169680 JR |
10620 | * xterm.c (handle_one_xevent): Revert to counting chars not bytes. |
10621 | ||
602e142f JR |
10622 | * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside |
10623 | the unicode range available in MULE by locale-coding-system. | |
c041e2d1 | 10624 | Improve dbcs lead byte detection. Set event timestamp and modifiers |
602e142f JR |
10625 | earlier. |
10626 | ||
dfbe40f2 | 10627 | 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
5ee4de53 YM |
10628 | |
10629 | * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. | |
10630 | [MAC_OSX] (init_mac_osx_environment): Initialize it. | |
6f69e89b | 10631 | [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 |
5ee4de53 YM |
10632 | when used on child processes. |
10633 | ||
8c7a4ac5 MA |
10634 | 2008-01-21 Michael Albinus <michael.albinus@gmx.de> |
10635 | ||
e0df1b73 | 10636 | * dbusbind.c (Fdbus_method_return_internal): Rename from |
8c7a4ac5 | 10637 | Fdbus_method_return. |
e0df1b73 | 10638 | (Fdbus_unregister_object): Move to dbus.el. |
8c7a4ac5 | 10639 | (Fdbus_call_method, Fdbus_method_return_internal) |
e0df1b73 | 10640 | (Fdbus_send_signal): Improve debug messages. |
8c7a4ac5 | 10641 | |
8abe0f97 MR |
10642 | 2008-01-20 Martin Rudalics <rudalics@gmx.at> |
10643 | ||
10644 | * undo.c (undo_inhibit_record_point): New variable. | |
10645 | (syms_of_undo): Initialize it. | |
10646 | (record_point): Don't record point when undo_inhibit_record_point | |
10647 | is set. | |
10648 | ||
c3b232e4 SM |
10649 | 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca> |
10650 | ||
e69c4cae SM |
10651 | * process.c (list_processes_1): Don't use SCHARS on a nil buffer name. |
10652 | ||
823e0ebb SM |
10653 | * xdisp.c (Qauto_hscroll_mode): New var. |
10654 | (syms_of_xdisp): Initialize it. | |
10655 | (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each | |
10656 | window's buffer. | |
10657 | (hscroll_windows): Don't check automatic_hscrolling_p here. | |
10658 | ||
c3b232e4 SM |
10659 | * window.c (set_window_buffer): Don't unnecessarily reset hscroll and |
10660 | vscroll if we're setting window-buffer to the value it already has. | |
10661 | ||
76ed5e01 DN |
10662 | 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu> |
10663 | ||
10664 | * m/intel386.h: Remove references to XENIX. | |
10665 | ||
55e6d9b2 AS |
10666 | 2008-01-17 Andreas Schwab <schwab@suse.de> |
10667 | ||
10668 | * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR | |
10669 | instead of HAVE_X86_64_LIB64_DIR. | |
10670 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise. | |
10671 | ||
b16ed52d GM |
10672 | 2008-01-17 Glenn Morris <rgm@gnu.org> |
10673 | ||
10674 | * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according | |
10675 | to HAVE_X86_64_LIB64_DIR. | |
10676 | ||
6bed5c4a DN |
10677 | 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu> |
10678 | ||
10679 | * s/irix3-3.h: | |
10680 | * s/irix4-0.h: | |
10681 | * s/386-ix.h: | |
10682 | * s/domain.h: | |
10683 | * s/hpux9-x11r4.h: | |
10684 | * s/hpux9shxr4.h: Remove files for systems no longer supported. | |
10685 | ||
10686 | * sysdep.c: Remove code containing references to symbols defined | |
10687 | by unsupported systems. | |
10688 | ||
fdecf907 GM |
10689 | 2008-01-16 Glenn Morris <rgm@gnu.org> |
10690 | ||
10691 | * coding.c (select-safe-coding-system-function): Doc fix. | |
10692 | ||
9292328f GM |
10693 | 2008-01-15 Glenn Morris <rgm@gnu.org> |
10694 | ||
10695 | * config.in: Revert 2008-01-13 change: this is a generated file. | |
10696 | ||
944df511 MO |
10697 | 2008-01-13 Tom Tromey <tromey@redhat.com> |
10698 | ||
10699 | * lisp.h: Fix typo. | |
10700 | ||
8111ec05 DN |
10701 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
10702 | ||
f40f5dc3 DN |
10703 | * m/sequent-ptx.h: |
10704 | * m/sequent.h: | |
10705 | * s/ptx.h: | |
10706 | * s/ptx4-2.h: | |
10707 | * s/ptx4.h: Remove files for systems no longer supported. | |
10708 | ||
ce20b664 | 10709 | * callproc.c (Fcall_process): Fix previous change. |
8111ec05 | 10710 | |
e39a993c DN |
10711 | 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu> |
10712 | ||
052e457f | 10713 | * unexsunos4.c: Remove file, system not supported anymore. |
e39a993c | 10714 | |
290afd83 JB |
10715 | * m/mips.h: |
10716 | * m/intel386.h: | |
e39a993c DN |
10717 | * callproc.c: |
10718 | * config.in: | |
10719 | * ecrt0.c: | |
10720 | * emacs.c: | |
10721 | * fileio.c: | |
10722 | * frame.c: | |
10723 | * getpagesize.h: | |
10724 | * keyboard.c: | |
10725 | * lread.c: | |
10726 | * process.c: | |
10727 | * puresize.h: | |
10728 | * sysdep.c: | |
10729 | * systty.h: | |
10730 | * syswait.h: | |
10731 | * unexec.c: | |
10732 | * xdisp.c: | |
10733 | * alloc.c: Remove code containing references to symbols defined by | |
10734 | unsupported systems. | |
10735 | ||
81cd7687 KH |
10736 | 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp> |
10737 | ||
10738 | * coding.c (detect_coding_mask): Fix previous change. | |
10739 | ||
218b3b76 KH |
10740 | 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp> |
10741 | ||
10742 | * coding.c (detect_coding_iso2022): New arg | |
10743 | latin_extra_code_state. Allow Latin extra codes only | |
10744 | when *latin_extra_code_state is nonzero. | |
10745 | (detect_coding_mask): If there is a NULL byte, detect the encoding | |
10746 | as UTF-16 or binary. If Latin extra codes exist, detect the | |
10747 | encoding as ISO-2022 only when there's no other proper encoding is | |
10748 | found. | |
10749 | ||
59ce725a | 10750 | 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
081f2203 | 10751 | |
59ce725a MB |
10752 | * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of |
10753 | #ifdef MAC_OS. | |
048addec | 10754 | |
59ce725a | 10755 | 2008-01-08 Richard Stallman <rms@gnu.org> |
048addec | 10756 | |
59ce725a | 10757 | * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes. |
048addec | 10758 | |
8290574e NR |
10759 | 2008-01-06 Nick Roberts <nickrob@snap.net.nz> |
10760 | ||
a0a3805c | 10761 | * keyboard.c (parse_menu_item): Don't enclose key bindings on |
8290574e NR |
10762 | menu bar in parentheses. |
10763 | ||
f3041af1 DN |
10764 | 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu> |
10765 | ||
10766 | * m/7300.h: | |
10767 | * m/acorn.h: | |
10768 | * m/alliant-2800.h: | |
10769 | * m/alliant.h: | |
10770 | * m/alliant1.h: | |
10771 | * m/alliant4.h: | |
10772 | * m/altos.h: | |
10773 | * m/amdahl.h: | |
10774 | * m/apollo.h: | |
10775 | * m/att3b.h: | |
10776 | * m/aviion-intel.h: | |
10777 | * m/aviion.h: | |
10778 | * m/celerity.h: | |
10779 | * m/clipper.h: | |
10780 | * m/cnvrgnt.h: | |
10781 | * m/convex.h: | |
10782 | * m/cydra5.h: | |
10783 | * m/delta88k.h: | |
10784 | * m/dpx2.h: | |
10785 | * m/dual.h: | |
10786 | * m/elxsi.h: | |
10787 | * m/f301.h: | |
10788 | * m/gould-np1.h: | |
10789 | * m/gould.h: | |
10790 | * m/i860.h: | |
10791 | * m/ibmps2-aix.h: | |
10792 | * m/ibmrt-aix.h: | |
10793 | * m/ibmrt.h: | |
10794 | * m/irist.h: | |
10795 | * m/is386.h: | |
10796 | * m/isi-ov.h: | |
10797 | * m/mega68.h: | |
10798 | * m/mg1.h: | |
10799 | * m/news-r6.h: | |
10800 | * m/news-risc.h: | |
10801 | * m/news.h: | |
10802 | * m/nh3000.h: | |
10803 | * m/nh4000.h: | |
10804 | * m/ns16000.h: | |
10805 | * m/ns32000.h: | |
10806 | * m/nu.h: | |
10807 | * m/orion.h: | |
10808 | * m/orion105.h: | |
10809 | * m/paragon.h: | |
10810 | * m/pfa50.h: | |
10811 | * m/plexus.h: | |
10812 | * m/pyramid.h: | |
10813 | * m/pyrmips.h: | |
10814 | * m/sh3el.h: | |
10815 | * m/sps7.h: | |
10816 | * m/sr2k.h: | |
10817 | * m/stride.h: | |
10818 | * m/sun1.h: | |
10819 | * m/sun2.h: | |
10820 | * m/sun3-68881.h: | |
10821 | * m/sun3-fpa.h: | |
10822 | * m/sun3-soft.h: | |
10823 | * m/sun3.h: | |
10824 | * m/sun386.h: | |
10825 | * m/symmetry.h: | |
10826 | * m/tad68k.h: | |
10827 | * m/tahoe.h: | |
10828 | * m/targon31.h: | |
10829 | * m/tek4300.h: | |
10830 | * m/tekxd88.h: | |
10831 | * m/tower32.h: | |
10832 | * m/tower32v3.h: | |
10833 | * m/ustation.h: | |
10834 | * m/wicat.h: | |
10835 | * m/xps100.h: | |
10836 | * s/cxux.h: | |
10837 | * s/cxux7.h: | |
10838 | * s/dgux.h: | |
10839 | * s/dgux4.h: | |
10840 | * s/dgux5-4-3.h: | |
10841 | * s/dgux5-4r2.h: | |
10842 | * s/esix.h: | |
10843 | * s/esix5r4.h: | |
10844 | * s/hiuxmpp.h: | |
10845 | * s/hiuxwe2.h: | |
10846 | * s/iris3-5.h: | |
10847 | * s/iris3-6.h: | |
10848 | * s/isc2-2.h: | |
10849 | * s/isc3-0.h: | |
10850 | * s/isc4-0.h: | |
10851 | * s/isc4-1.h: | |
10852 | * s/newsos5.h: | |
10853 | * s/newsos6.h: | |
10854 | * s/osf1.h: | |
10855 | * s/osf5-0.h: | |
10856 | * s/riscix1-1.h: | |
10857 | * s/riscix12.h: | |
10858 | * s/sco4.h: | |
10859 | * s/sco5.h: | |
10860 | * s/sunos4-0.h: | |
10861 | * s/sunos4-1.h: | |
10862 | * s/sunos413.h: | |
10863 | * s/sunos4shr.h: | |
10864 | * s/umax.h: | |
10865 | * s/unipl5-2.h: | |
10866 | * s/xenix.h: | |
10867 | * cxux-crt0.s: | |
10868 | * unexapollo.c: | |
10869 | * unexconvex.c: | |
10870 | * unexenix.c: | |
10871 | * unexsni.c: Remove files for systems no longer supported. | |
10872 | ||
10873 | * m/intel386.h: Remove references to unsupported systems. | |
10874 | ||
10875 | * w32.c (get_emacs_configuration): Remove reference to i860. | |
10876 | ||
10877 | * sysdep.c: Remove dead code. | |
10878 | ||
d35e1cd7 DN |
10879 | 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu> |
10880 | ||
10881 | * s/rtu.h: | |
a0a3805c | 10882 | * m/masscomp.h: Remove files. Platform is obsolete. |
d35e1cd7 | 10883 | |
abe136ee MA |
10884 | 2008-01-04 Michael Albinus <michael.albinus@gmx.de> |
10885 | ||
10886 | * dbusbind.c (Fdbus_method_return): New function. | |
10887 | (xd_read_message): Add the serial number to the event. | |
10888 | (Fdbus_register_method): Activate the function. | |
10889 | ||
87df3c32 SM |
10890 | 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca> |
10891 | ||
10892 | * keyboard.c (read_key_sequence): Fix typo. | |
10893 | ||
5125905e MA |
10894 | 2008-01-03 Michael Albinus <michael.albinus@gmx.de> |
10895 | ||
10896 | * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE. | |
10897 | (xd_signature, xd_append_arg): Handle element type detection for | |
10898 | empty arrays. | |
10899 | (Fdbus_call_method, Fdbus_send_signal): Undo type casting for | |
10900 | SDATA () calls; this must be solved more general. | |
10901 | (Fdbus_register_signal): Use SBYTES instead of strlen. | |
10902 | ||
8bba1b5c MH |
10903 | 2008-01-03 Magnus Henoch <magnus@zemdatav> |
10904 | ||
10905 | * dbusbind.c (xd_append_arg): Use unsigned char instead of | |
10906 | unsigned int for byte values (necessary for big-endian platform). | |
2c3a8b27 | 10907 | (Fdbus_call_method): Handle the case of no returned arguments. |
8bba1b5c | 10908 | |
a0a3805c | 10909 | 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change) |
15f16c1b MA |
10910 | |
10911 | * dbusbind.c (xd_read_message): Use non-static input_event struct. | |
10912 | ||
a271e124 MH |
10913 | 2007-12-31 Magnus Henoch <mange@freemail.hu> |
10914 | ||
10915 | * dbusbind.c (xd_signature): Signature of variant is just "v". | |
10916 | ||
17bc8f94 MA |
10917 | 2007-12-30 Michael Albinus <michael.albinus@gmx.de> |
10918 | ||
87df3c32 | 10919 | * dbusbind.c: Fix several errors and compiler warnings. |
1f204af3 | 10920 | Reported by Tom Tromey <tromey@redhat.com>. |
17bc8f94 MA |
10921 | (XD_ERROR, XD_DEBUG_MESSAGE) |
10922 | (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)". | |
10923 | (xd_append_arg): Part for basic D-Bus types rewitten. | |
10924 | (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and | |
10925 | DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not | |
10926 | appropriate. | |
10927 | (xd_read_message): Return Qnil. Don't signal an error; it is not | |
10928 | useful during event reading. | |
10929 | (Fdbus_register_signal): Signal an error if the check for | |
10930 | FUNCTIONP fails. | |
10931 | (Fdbus_register_method): New function. The implementation is not | |
10932 | complete, the call of the function signals an error therefore. | |
10933 | (Fdbus_unregister_object): New function, renamed from | |
10934 | Fdbus_unregister_signal. The initial check signals an error, if | |
5125905e | 10935 | the object is not well formed. |
17bc8f94 | 10936 | |
dd6f2802 RS |
10937 | 2007-12-30 Richard Stallman <rms@gnu.org> |
10938 | ||
10939 | * textprop.c (get_char_property_and_overlay): | |
10940 | Signal error if POSITION is out of range in a buffer. | |
10941 | ||
1da8a031 MR |
10942 | 2007-12-29 Martin Rudalics <rudalics@gmx.at> |
10943 | ||
10944 | * w32fns.c (Fx_create_frame): Make copy of frame parameters | |
10945 | because the original parameters are in pure storage now. | |
10946 | ||
5742be86 YM |
10947 | 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
10948 | ||
10949 | * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area. | |
10950 | ||
b014713c EZ |
10951 | 2007-12-22 Eli Zaretskii <eliz@gnu.org> |
10952 | ||
b17f53ab MB |
10953 | * callint.c (syms_of_callint) <command-history>: Add reference to |
10954 | history-length in the doc string. | |
048addec | 10955 | |
b17f53ab | 10956 | 2007-12-17 Jason Rumney <jasonr@gnu.org> |
048addec | 10957 | |
b17f53ab MB |
10958 | * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned |
10959 | before passing as wParam. | |
048addec | 10960 | |
9af5078b MA |
10961 | 2007-12-22 Michael Albinus <michael.albinus@gmx.de> |
10962 | ||
10963 | * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE, | |
10964 | DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64, | |
10965 | DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE. | |
10966 | Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit | |
10967 | as number. | |
10968 | (Fdbus_call_method): Fix docstring. | |
10969 | ||
87cf1a39 MA |
10970 | 2007-12-21 Michael Albinus <michael.albinus@gmx.de> |
10971 | ||
10972 | * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE): | |
10973 | New macros. | |
87df3c32 | 10974 | (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE. |
a0a3805c JB |
10975 | (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE. |
10976 | Simplify. | |
87cf1a39 MA |
10977 | (xd_signature): New function. |
10978 | (xd_append_arg): Compute also signatures. Major rewrite. | |
10979 | (xd_retrieve_arg): Make debug messages friendly. | |
87df3c32 SM |
10980 | (Fdbus_call_method, Fdbus_send_signal): Extend docstring. |
10981 | Check for signatures of arguments. | |
87cf1a39 | 10982 | |
54371585 MA |
10983 | 2007-12-19 Michael Albinus <michael.albinus@gmx.de> |
10984 | ||
10985 | * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean) | |
10986 | (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32) | |
10987 | (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64) | |
10988 | (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path) | |
10989 | (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant) | |
87df3c32 | 10990 | (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols. |
54371585 MA |
10991 | (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro. |
10992 | (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types. | |
87df3c32 | 10993 | (xd_retrieve_value): Remove. Functionality included in ... |
54371585 MA |
10994 | (xd_append_arg): New function. |
10995 | (Fdbus_call_method, Fdbus_send_signal): Apply it. | |
10996 | ||
f5306ca3 MA |
10997 | 2007-12-16 Michael Albinus <michael.albinus@gmx.de> |
10998 | ||
10999 | * dbusbind.c (top): Include <stdio.h>. | |
11000 | (Fdbus_call_method, Fdbus_send_signal): Apply type cast in | |
11001 | dbus_message_new_method_call and dbus_message_new_signal. | |
87df3c32 SM |
11002 | (Fdbus_register_signal): Rename unique_name to uname. |
11003 | Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of | |
f5306ca3 MA |
11004 | non-existing unique name. Fix typos in matching rule. Return an |
11005 | object which is useful in Fdbus_unregister_signal. | |
11006 | (Fdbus_unregister_signal): Reimplementation, in order to remove | |
11007 | only the corresponding entry. | |
11008 | (Vdbus_registered_functions_table): Change the order of entries. | |
11009 | Apply these changes in xd_read_message and Fdbus_register_signal. | |
11010 | ||
77a28bbf AS |
11011 | 2007-12-16 Andreas Schwab <schwab@suse.de> |
11012 | ||
11013 | * fileio.c (Finsert_file_contents): Fix overflow check to not | |
11014 | depend on undefined integer overflow. | |
11015 | ||
2e3566d8 JR |
11016 | 2007-12-14 Jason Rumney <jasonr@gnu.org> |
11017 | ||
11018 | * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT | |
11019 | for characters above 127. | |
11020 | ||
bf254037 JR |
11021 | 2007-12-13 Jason Rumney <jasonr@gnu.org> |
11022 | ||
11023 | * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check | |
11024 | before dereferencing array. | |
11025 | (lookup_vk_code): Remove zero comparison. | |
11026 | ||
eb7c7bf5 MA |
11027 | 2007-12-14 Michael Albinus <michael.albinus@gmx.de> |
11028 | ||
11029 | * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) | |
87df3c32 SM |
11030 | (Fdbus_call_method, Fdbus_send_signal, xd_read_message): |
11031 | Use `unsigned int' instead of `uint'. | |
eb7c7bf5 MA |
11032 | (xd_read_message, Fdbus_register_signal): Split expressions into |
11033 | multiple lines before operators "&&" and "||", according to the | |
11034 | GNU Coding Standards. | |
11035 | ||
34fb0fc9 EZ |
11036 | 2007-12-14 Eli Zaretskii <eliz@gnu.org> |
11037 | ||
11038 | * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT. | |
11039 | ||
c7d97628 JL |
11040 | 2007-12-12 Juri Linkov <juri@jurta.org> |
11041 | ||
11042 | * buffer.c (Frename_buffer): In interactive spec replace | |
11043 | `read-buffer' with `read-string' that uses `buffer-name-history' | |
11044 | as history, and the current buffer's name as default. | |
11045 | ||
3709505e SM |
11046 | 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> |
11047 | ||
11048 | * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of | |
11049 | manipulating the backtrace manually. | |
11050 | (make_lispy_event): Merge the ASCII and MULTIBYTE cases. | |
11051 | (struct backtrace, backtrace_list): Remove. | |
11052 | (command_loop_1): Remove dead var `no_direct'. | |
11053 | ||
11054 | * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also | |
11055 | preserve non-built-in buffer-local variables. | |
11056 | (Fkill_all_local_variables): Don't re-create&re-set permanent | |
11057 | buffer-local variables. | |
11058 | ||
e2bec886 JL |
11059 | 2007-12-09 Juri Linkov <juri@jurta.org> |
11060 | ||
11061 | * buffer.c (Frename_buffer): Change interactive spec from "s" to | |
11062 | Lisp code that uses `read-buffer' with current buffer as default. | |
11063 | ||
a31d47c7 MA |
11064 | 2007-12-08 Michael Albinus <michael.albinus@gmx.de> |
11065 | ||
11066 | * dbusbind.c (xd_read_message): Generate an event for every | |
11067 | registered handler. There might be several handlers registered | |
11068 | for the same signal. | |
11069 | (Fdbus_register_signal): Don't overwrite a registration for the | |
11070 | same signal. Add a new registration if handlers are different. | |
11071 | (Vdbus_registered_functions_table): Rework doc string. | |
11072 | ||
52da95fa MA |
11073 | 2007-12-07 Michael Albinus <michael.albinus@gmx.de> |
11074 | ||
11075 | * dbusbind.c (Fdbus_get_unique_name, xd_read_message) | |
11076 | (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and | |
11077 | DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths. | |
11078 | (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal): | |
11079 | Unify argument lists. | |
a0a3805c | 11080 | (xd_read_message, Fdbus_register_signal): Reorder and extend event |
52da95fa MA |
11081 | arguments and hash table keys. Use unique name for service. |
11082 | (Fdbus_unregister_signal): Remove checks. | |
11083 | (Vdbus_registered_functions_table): Fix doc string. | |
11084 | ||
e5e76c04 | 11085 | 2007-12-05 Magnus Henoch <mange@freemail.hu> |
0277bfa1 RS |
11086 | |
11087 | * process.c (make_process): Initialize pty_flag to 0. | |
11088 | ||
e5e76c04 | 11089 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
44b1dc2e JR |
11090 | |
11091 | * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly | |
11092 | specified XBMs. | |
11093 | ||
e5e76c04 | 11094 | 2007-12-05 Richard Stallman <rms@gnu.org> |
048addec | 11095 | |
e5e76c04 | 11096 | * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix. |
048addec | 11097 | |
e5e76c04 | 11098 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 11099 | |
e5e76c04 MB |
11100 | * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]: |
11101 | New variable. | |
11102 | (mac_try_close_socket) [MAC_OSX]: New function. | |
11103 | [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: | |
11104 | Update cfsockets_for_select. Replace invalid CFRunLoop source. | |
048addec | 11105 | |
e5e76c04 MB |
11106 | * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]: |
11107 | Use mac_try_close_socket. | |
048addec | 11108 | |
e5e76c04 | 11109 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 11110 | |
e5e76c04 MB |
11111 | * unexmacosx.c (unrelocate): New argument BASE. Use it instead of |
11112 | reloc_base. | |
11113 | (copy_dysymtab): Compute relocation base here. | |
11114 | (rebase_reloc_address) [__ppc64__]: New function. | |
11115 | (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be | |
11116 | changed. | |
048addec | 11117 | |
e5e76c04 | 11118 | 2007-12-05 Jason Rumney <jasonr@gnu.org> |
048addec | 11119 | |
e5e76c04 | 11120 | * w32proc.c (sys_spawnve): Quote args with wildcards. |
048addec | 11121 | |
e5e76c04 | 11122 | 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
048addec | 11123 | |
e5e76c04 MB |
11124 | * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and |
11125 | __objc_* sections. | |
11126 | (unrelocate) [_LP64]: Set relocation base to address of data segment. | |
048addec | 11127 | |
96faeb40 MA |
11128 | 2007-12-05 Michael Albinus <michael.albinus@gmx.de> |
11129 | ||
11130 | * dbusbind.c (xd_read_message): Return value is a Lisp_Object. | |
11131 | Move check for Vdbus_registered_functions_table to | |
11132 | xd_read_queued_messages. | |
11133 | (xd_read_queued_messages): Protect xd_read_message calls by | |
11134 | internal_condition_case_1. | |
11135 | ||
39abdd4a MA |
11136 | 2007-12-04 Michael Albinus <michael.albinus@gmx.de> |
11137 | ||
87df3c32 | 11138 | * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from |
39abdd4a | 11139 | Qdbus_system_bus and Qdbus_session_bus, respectively. |
87df3c32 | 11140 | (Vdbus_intern_symbols): Remove. |
39abdd4a | 11141 | (Vdbus_registered_functions_table): New hash table. |
87df3c32 | 11142 | (XD_SYMBOL_INTERN_SYMBOL): Remove. |
39abdd4a | 11143 | (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal): |
87df3c32 | 11144 | Rewrite in order to manage registered functions by hash table |
39abdd4a MA |
11145 | Vdbus_registered_functions_table. |
11146 | ||
880820fe | 11147 | 2007-12-03 Jan Djärv <jan.h.d@swipnet.se> |
7ba30657 JD |
11148 | |
11149 | * xterm.c: Update URL to Window Manager Specification in comment. | |
11150 | ||
033b73e2 MA |
11151 | 2007-12-02 Michael Albinus <michael.albinus@gmx.de> |
11152 | ||
11153 | * config.in (HAVE_DBUS): Add. | |
11154 | ||
a0a3805c | 11155 | * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined. |
033b73e2 MA |
11156 | (ALL_CFLAGS): Add ${DBUS_CFLAGS}. |
11157 | (obj): Add $(DBUS_OBJ). | |
11158 | (LIBES): Add $(DBUS_LIBS). | |
11159 | (dbusbind.o): New target. | |
11160 | ||
11161 | * dbusbind.c: New file. | |
11162 | ||
11163 | * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined. | |
11164 | ||
11165 | * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS". | |
a0a3805c | 11166 | (Qdbus_event): New Lisp symbol. |
033b73e2 | 11167 | (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT. |
87df3c32 | 11168 | (gobble_input): Call xd_read_queued_messages, reading D-Bus messages. |
033b73e2 MA |
11169 | (keys_of_keyboard ): Define dbus-event. |
11170 | ||
11171 | * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined. | |
11172 | ||
39d0bf74 RS |
11173 | 2007-12-01 Richard Stallman <rms@gnu.org> |
11174 | ||
11175 | * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix. | |
11176 | ||
f3157c65 JR |
11177 | 2007-11-30 Jason Rumney <jasonr@gnu.org> |
11178 | ||
11179 | * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window. | |
11180 | (w32con_reset_terminal_modes): Clear screen buffer. | |
f1e8dcf1 JR |
11181 | (w32_face_attributes): Don't use color indexes that are out of range. |
11182 | Only reverse the default colors. | |
f3157c65 JR |
11183 | |
11184 | * xfaces.c (map_tty_color, tty_color_name): Remove special case for | |
11185 | WINDOWSNT. | |
11186 | ||
11187 | * w32console.c, w32term.h (vga_stdcolor_name): Remove. | |
11188 | ||
b510360c JR |
11189 | 2007-11-29 Jason Rumney <jasonr@gnu.org> |
11190 | ||
11191 | * w32console.c: Leave HAVE_WINDOW_SYSTEM defined. | |
11192 | (w32_face_attributes): Use Vtty_defined_color_alist to determine | |
11193 | if the terminal colors are initialized. | |
11194 | (unspecified_fg, unspecified_bg): Remove unused declarations. | |
11195 | ||
4b7ab1c4 AS |
11196 | 2007-11-29 Andreas Schwab <schwab@suse.de> |
11197 | ||
11198 | * keyboard.c (apply_modifiers): Fix typo. | |
11199 | ||
4bb6c266 RS |
11200 | 2007-11-29 Richard Stallman <rms@gnu.org> |
11201 | ||
11202 | * keymap.c (Fcurrent_local_map): Doc fix. | |
11203 | ||
aa44cd84 GM |
11204 | 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change) |
11205 | ||
11206 | * s/gnu-kfreebsd.h: New file. | |
11207 | ||
21ec2c43 SM |
11208 | 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca> |
11209 | ||
cc648cef SM |
11210 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): |
11211 | Don't cast redundantly. | |
11212 | ||
21ec2c43 SM |
11213 | * keyboard.c (KEY_TO_CHAR): New macro. |
11214 | (parse_modifiers, apply_modifiers): Accept integer arguments. | |
11215 | (read_key_sequence): Use them to unify the "shift->unshift" mapping | |
11216 | for chars and symbol keys. | |
11217 | After doing such remapping, apply function-key-map again. | |
11218 | ||
73e72da4 DN |
11219 | 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu> |
11220 | ||
11221 | * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not | |
11222 | compiled anymore. | |
11223 | ||
254693ff AS |
11224 | 2007-11-26 Andreas Schwab <schwab@suse.de> |
11225 | ||
11226 | * process.c (list_processes_1): Fix indentation level of the | |
11227 | command column. | |
11228 | ||
ff6e6ac8 AS |
11229 | 2007-11-23 Andreas Schwab <schwab@suse.de> |
11230 | ||
11231 | * editfns.c (Fformat): Handle %c specially since it requires the | |
11232 | argument to be of type int. | |
11233 | ||
f7cf8b20 SM |
11234 | 2007-11-23 Markus Triska <markus.triska@gmx.at> |
11235 | ||
11236 | * emacs.c (main): Call init_editfns before init_process, since | |
2a2e8de7 | 11237 | init_process sets Vprocess_connection_type depending on OS release. |
f7cf8b20 | 11238 | |
569c11e3 SM |
11239 | 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca> |
11240 | ||
8787dd73 SM |
11241 | * data.c (do_symval_forwarding): Use same code as in find_symbol_value. |
11242 | (find_symbol_value): Use do_symval_forwarding. | |
11243 | ||
569c11e3 SM |
11244 | * data.c (set_internal): Set the value in the `cons-cell' (for |
11245 | Buffer_Local_values) not only for frame-local variables. | |
11246 | ||
6af1696d AS |
11247 | 2007-11-22 Andreas Schwab <schwab@suse.de> |
11248 | ||
11249 | * data.c (Fnumber_to_string): Add cast when passing EMACS_INT | |
11250 | values to sprintf. | |
11251 | * keymap.c (Fsingle_key_description): Likewise. | |
11252 | * print.c (print_object): Likewise. | |
11253 | ||
880820fe | 11254 | 2007-11-22 Jan Djärv <jan.h.d@swipnet.se> |
d4ad8c04 JD |
11255 | |
11256 | * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if | |
11257 | file for image is nil. | |
11258 | ||
7c401d15 DN |
11259 | 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu> |
11260 | ||
11261 | * term.c: Include stdarg.h. | |
569c11e3 | 11262 | (fatal): Implement using varargs. |
a0a3805c | 11263 | * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change). |
7c401d15 | 11264 | |
64e16c3c SM |
11265 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
11266 | ||
11267 | * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field. | |
11268 | * data.c (store_symval_forwarding): Get type from buffer_objfwd. | |
11269 | Update call to buffer_slot_type_mismatch. | |
11270 | * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove. | |
11271 | (buffer_slot_type_mismatch): Update. | |
11272 | * buffer.c (buffer_local_types): Remove. | |
11273 | (buffer_slot_type_mismatch): Get the symbol and type as arguments. | |
11274 | (defvar_per_buffer): Set the type in the buffer_objfwd. | |
11275 | ||
d4aa48db | 11276 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
5f42a7eb | 11277 | |
64e16c3c SM |
11278 | * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): |
11279 | CreateFileMapping returns NULL on failure. | |
5f42a7eb | 11280 | |
d4aa48db | 11281 | 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
048addec | 11282 | |
d4aa48db MB |
11283 | * search.c (Fset_match_data): Remove the `evaporate' feature. |
11284 | (unwind_set_match_data): Don't use the `evaporate' feature. | |
437dfb9f | 11285 | |
bdae0540 JR |
11286 | 2007-11-21 Jason Rumney <jasonr@gnu.org> |
11287 | ||
11288 | * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type. | |
11289 | ||
11290 | * w32console.c (w32con_write_glyphs): Remove unused variables. | |
11291 | ||
202c09a8 DN |
11292 | 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu> |
11293 | ||
b951420f DN |
11294 | * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor. |
11295 | ||
202c09a8 DN |
11296 | * s/darwin.h (MULTI_KBOARD): Remove. |
11297 | ||
11298 | * macfns.c (x_create_tip_frame, Fx_create_frame) | |
11299 | (x_create_tip_frame): Don't deal with MULTI_KBOARD. | |
11300 | ||
bae72c12 SM |
11301 | 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca> |
11302 | ||
e7c10f83 SM |
11303 | * buffer.c (Fbuffer_local_value): Remove redundant test. |
11304 | (swap_out_buffer_local_variables): Swap out binding in `buffer' rather | |
11305 | than in `current-buffer' to match the comment. | |
11306 | Do the swap using swap_in_global_binding. | |
11307 | ||
136eb6ed SM |
11308 | * data.c (store_symval_forwarding, set_internal): |
11309 | * eval.c (specbind): Remove dead code. | |
11310 | ||
bae72c12 SM |
11311 | * coding.c (detect_coding, Fupdate_coding_systems_internal): |
11312 | * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE | |
11313 | Since we do not want to see internal Lisp_*fwd objects here. | |
11314 | ||
880820fe | 11315 | 2007-11-18 Jan Djärv <jan.h.d@swipnet.se> |
95fbaefc | 11316 | |
3d66b985 JD |
11317 | * sysdep.c (init_system_name): Use getaddrinfo if available. |
11318 | ||
95fbaefc JD |
11319 | * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click) |
11320 | (x_scroll_bar_note_movement): start, end, with, height in struct | |
11321 | scroll_bar are integers and not Lisp_Object, so remove XINT for them. | |
11322 | ||
6c1d8cb6 DN |
11323 | 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu> |
11324 | ||
11325 | * puresize.h (BASE_PURESIZE): Increase to 1190000. | |
11326 | ||
30f95089 SM |
11327 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
11328 | ||
66b04bd4 SM |
11329 | * buffer.h (struct buffer): Move `undo_list' back to before `name'. |
11330 | This undoes Richard's change of 14-Oct-2002. | |
11331 | ||
6d3f2bb2 SM |
11332 | * alloc.c (allocate_other_vector): |
11333 | * lisp.h (allocate_other_vector): Remove. | |
11334 | ||
b05b4e27 SM |
11335 | * window.c (struct save_window_data): Move non-lisp data to the end |
11336 | and make it `int' rather than Lisp_Object. | |
11337 | (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. | |
11338 | Done wrap/unwrap integer values. | |
11339 | (Fset_window_configuration, compare_window_configurations): | |
11340 | Update use of fields to their new types. | |
11341 | ||
056ce195 SM |
11342 | * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. |
11343 | Turn integer fields into `int'. Merge x_window_low and x_window_high. | |
11344 | (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW) | |
11345 | (SET_SCROLL_BAR_X_WINDOW): Remove. | |
11346 | (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET): | |
11347 | Access the new x_window field directly. | |
11348 | * xterm.c (x_scroll_bar_create): Use a pseudovector. | |
11349 | Don't wrap/unwrap integers into Lisp_Objects. | |
11350 | (XTset_vertical_scroll_bar, x_scroll_bar_handle_click) | |
11351 | (x_scroll_bar_report_motion): | |
11352 | Don't wrap/unwrap integers into Lisp_Objects. | |
11353 | (x_term_init): Use SDATA. | |
11354 | (x_window_to_scroll_bar, x_create_toolkit_scroll_bar) | |
11355 | (x_scroll_bar_set_handle, x_scroll_bar_remove) | |
11356 | (XTset_vertical_scroll_bar, x_scroll_bar_expose) | |
11357 | (x_scroll_bar_report_motion, x_scroll_bar_clear): | |
11358 | * xfns.c (x_set_background_color): | |
11359 | * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb): | |
11360 | Access the new x_window field directly. | |
11361 | ||
30f95089 SM |
11362 | * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. |
11363 | (allocate_pseudovector): Make non-static. | |
6d3f2bb2 | 11364 | |
30f95089 SM |
11365 | * lisp.h (enum pvec_type): New tag PVEC_OTHER. |
11366 | (allocate_pseudovector): Declare. | |
6f69e89b | 11367 | (ALLOCATE_PSEUDOVECTOR): Move from alloc.c. |
30f95089 | 11368 | |
9b6112e8 AS |
11369 | 2007-11-15 Andreas Schwab <schwab@suse.de> |
11370 | ||
30f95089 SM |
11371 | * editfns.c (Fformat): Correctly format EMACS_INT values. |
11372 | Also take precision into account when formatting an integer. | |
0f860bd7 | 11373 | |
9b6112e8 AS |
11374 | * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration. |
11375 | ||
262fcd41 SM |
11376 | 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca> |
11377 | ||
58da34c7 SM |
11378 | * keyboard.c (Fevent_symbol_parse_modifiers): New function. |
11379 | (syms_of_keyboard): Defsubr it. | |
11380 | ||
262fcd41 SM |
11381 | * data.c (swap_in_global_binding): Fix longstanding bug where |
11382 | store_symval_forwarding was not called with the right second argument, | |
11383 | thus causing objfwd-ing from being dropped. | |
11384 | ||
d29a9848 JB |
11385 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
11386 | ||
11387 | * macfns.c (Fx_create_frame, Fx_display_pixel_width) | |
11388 | (Fx_display_pixel_height, Fx_display_planes) | |
11389 | (Fx_display_color_cells, Fx_server_max_request_size) | |
11390 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
11391 | (Fx_display_visual_class, Fx_display_save_under): | |
11392 | * w32fns.c (Fx_create_frame, Fx_display_pixel_width) | |
11393 | (Fx_display_pixel_height, Fx_display_planes) | |
11394 | (Fx_display_color_cells, Fx_server_max_request_size) | |
11395 | (Fx_server_vendor, Fx_server_version, Fx_display_screens) | |
11396 | (Fx_display_mm_height, Fx_display_mm_width) | |
11397 | (Fx_display_backing_store, Fx_display_visual_class) | |
11398 | (Fw32_select_font, Fx_display_save_under): | |
11399 | * xfns.c (Fx_create_frame, Fx_display_pixel_width) | |
11400 | (Fx_display_pixel_height, Fx_display_planes) | |
11401 | (Fx_display_color_cells, Fx_server_max_request_size) | |
11402 | (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) | |
11403 | (Fx_display_save_under): Fix typos in docstrings. | |
11404 | ||
74084731 JB |
11405 | 2007-11-14 Juanma Barranquero <lekktu@gmail.com> |
11406 | ||
11407 | * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values | |
11408 | corresponding to deleted entries; they are an implementation detail. | |
11409 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): | |
11410 | Remove variables. | |
11411 | (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames) | |
11412 | (w32_pass_multimedia_buttons_to_system, w32_strict_painting) | |
11413 | (Vw32_charset_info_alist, w32_to_x_color, w32_init_class) | |
11414 | (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers) | |
11415 | (w32_grabbed_keys, cancel_all_deferred_msgs): Make static. | |
d29a9848 | 11416 | (Fw32_define_rgb_color, Fw32_load_color_file) |
74084731 | 11417 | (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>: |
02b39a28 JB |
11418 | Fix typos in docstrings. |
11419 | (Fx_server_version): Reflow docstring. | |
11420 | (Fw32_shell_execute): Doc fixes. | |
74084731 | 11421 | |
fb053a1f JB |
11422 | 2007-11-13 Juanma Barranquero <lekktu@gmail.com> |
11423 | ||
11424 | * w32fns.c (Fw32_register_hot_key): Don't try to register hot key | |
11425 | if w32_parse_hot_key returned nil. | |
11426 | ||
a457417e | 11427 | 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
9ec1bdb6 | 11428 | |
a457417e | 11429 | * xdisp.c (load_overlay_strings): Fix copy&paste typo. |
9ec1bdb6 | 11430 | |
4b219faa JR |
11431 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
11432 | ||
11433 | * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define. | |
11434 | ||
11435 | * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT. | |
11436 | ||
11437 | * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]: | |
11438 | Remove W32_SCROLL_BAR_CLICK_EVENT. | |
11439 | ||
11440 | * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise. | |
11441 | Add MULTIMEDIA_KEY_EVENT. | |
11442 | ||
11443 | * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys. | |
11444 | (lispy_multimedia_keys) [WINDOWSNT]: New array. | |
11445 | (make_lispy_event) [WINDOWSNT]: Use it to translate | |
11446 | MULTIMEDIA_KEY_EVENT. | |
11447 | ||
11448 | * w32term.h (WM_APPCOMMAND): Define if not already. | |
11449 | (GET_APPCOMMAND_LPARAM): Likewise. | |
11450 | ||
11451 | * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from | |
11452 | WM_APPCOMMAND. | |
11453 | ||
11454 | * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option. | |
11455 | (syms_of_w32fns): Export and initialize it. | |
11456 | (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket. | |
11457 | ||
c12ecb0a | 11458 | 2007-11-09 Chong Yidong <cyd@stupidchicken.com> |
d388d2ac CY |
11459 | |
11460 | * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE | |
11461 | twice. | |
11462 | ||
11463 | * xdisp.c (handle_face_prop): Fix last change. | |
11464 | ||
c12ecb0a | 11465 | 2007-11-09 Richard Stallman <rms@gnu.org> |
048addec | 11466 | |
c12ecb0a MB |
11467 | * xdisp.c (handle_face_prop): Test for strings that came from overlays, |
11468 | not just for after-strings and before-strings. | |
11469 | Call face_for_overlay_string and pass the overlay to it. | |
11470 | (handle_display_prop): Determine whether property came from an overlay. | |
11471 | Pass OVERLAY arg to handle_single_display_spec. | |
11472 | (handle_single_display_spec): New arg OVERLAY sets it->from_overlay. | |
11473 | (load_overlay_strings): Fill in it->string_overlays. | |
11474 | (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays. | |
b5cb6072 | 11475 | |
c12ecb0a MB |
11476 | * xfaces.c (face_for_overlay_string): Function renamed from |
11477 | face_at_buffer_position_no_overlays, and add arg OVERLAY. | |
b5cb6072 | 11478 | |
c12ecb0a MB |
11479 | * dispextern.h (struct it): New elt string_overlays. |
11480 | New elt from_overlay, also in stack. | |
11481 | Rearrange a few elements. | |
11482 | (face_for_overlay_string): Decl renamed from | |
11483 | face_at_buffer_position_no_overlays, and add argument. | |
15fff01d | 11484 | |
c12ecb0a | 11485 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0065bb74 | 11486 | |
c12ecb0a MB |
11487 | * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays |
11488 | to get the base face for an overlay string. | |
0d8466cc | 11489 | |
c12ecb0a | 11490 | * dispextern.h (face_at_buffer_position_no_overlays): Add decl. |
15fff01d | 11491 | |
c12ecb0a | 11492 | * xfaces.c (face_at_buffer_position_no_overlays): New function. |
2fae9111 | 11493 | |
c12ecb0a | 11494 | * xdisp.c (handle_stop): Move some code out of loop. |
2d6c1fc0 | 11495 | |
c12ecb0a | 11496 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
07025a55 | 11497 | |
c12ecb0a MB |
11498 | * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes): |
11499 | Fix conversion from Lisp object to ATSUFontID. | |
07025a55 | 11500 | |
c12ecb0a | 11501 | 2007-11-09 Jason Rumney <jasonr@gnu.org> |
07025a55 | 11502 | |
c12ecb0a | 11503 | * xdisp.c (Fformat_mode_line): Do nothing when noninteractive. |
3a232704 | 11504 | |
c12ecb0a | 11505 | 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
539e92ad | 11506 | |
c12ecb0a MB |
11507 | * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge): |
11508 | Don't assume regions are aligned to page boundary. | |
11509 | (print_load_command_name): Add LC_UUID if defined. | |
3a232704 | 11510 | |
c12ecb0a | 11511 | 2007-11-09 Richard Stallman <rms@gnu.org> |
0cb8bb48 | 11512 | |
c12ecb0a | 11513 | * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring. |
539e92ad | 11514 | |
b8ddfbcc JR |
11515 | 2007-11-07 Jason Rumney <jasonr@gnu.org> |
11516 | ||
11517 | * s/windows95.h: Remove. | |
11518 | ||
880820fe | 11519 | 2007-11-06 Jan Djärv <jan.h.d@swipnet.se> |
e624c3f9 JD |
11520 | |
11521 | * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and | |
11522 | abort with a message on unhandled store_type values. | |
11523 | ||
880820fe | 11524 | 2007-11-01 Jan Djärv <jan.h.d@swipnet.se> |
ac1278c1 JD |
11525 | |
11526 | * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h: | |
11527 | Remove HAVE_X11R5 and HAVE_X11R4. | |
11528 | ||
04a697fe DN |
11529 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
11530 | ||
11531 | * Makefile.in: Remove references to sunfns.c and sunfns.o. | |
11532 | ||
880820fe | 11533 | 2007-11-01 Johan Bockgård <bojohan@gnu.org> |
56dad874 GM |
11534 | |
11535 | * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): | |
fb053a1f | 11536 | Don't set s->stippled_p here, since it has already been set by |
56dad874 GM |
11537 | x_set_glyph_string_gc from x_draw_glyph_string. |
11538 | ||
07e5c0b0 DN |
11539 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
11540 | ||
2a2e8de7 | 11541 | * sunfns.c: Remove file. |
07e5c0b0 DN |
11542 | |
11543 | * m/sun386.h: | |
11544 | * m/sun2.h: | |
11545 | * m/sparc.h: Remove Sun windows code. | |
11546 | ||
1bc973c2 SM |
11547 | 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca> |
11548 | ||
11549 | * keyboard.c (syms_of_keyboard): Initialize the initial_kboard. | |
11550 | (init_keyboard): Set current_kboard's window-system to nil. | |
11551 | (tty_read_avail_input): Typo. | |
11552 | * frame.c (make_initial_frame): Don't initialize the initial_kboard. | |
11553 | ||
c22140f6 DN |
11554 | 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu> |
11555 | ||
11556 | * s/usg5-4.h: | |
11557 | * s/usg5-3.h: | |
11558 | * s/ptx.h: | |
11559 | * m/is386.h: | |
11560 | * m/ibmps2-aix.h: | |
2a2e8de7 | 11561 | * Makefile.in: Remove all mentions of X10. |
c22140f6 DN |
11562 | |
11563 | * dispnew.c (syms_of_display): Don't mention version 10. | |
11564 | ||
660a8219 JB |
11565 | 2007-10-28 Juanma Barranquero <lekktu@gmail.com> |
11566 | ||
11567 | * makefile.w32-in (OBJ1): Remove abbrev.$(O). | |
11568 | ($(BLD)/abbrev.$(O)): Remove. | |
11569 | ||
e047f448 SM |
11570 | 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca> |
11571 | ||
11572 | Rewrite abbrev.c in Elisp. | |
11573 | * image.c (Qcount): Don't declare as extern. | |
11574 | (syms_of_image): Initialize and staticpro `Qcount'. | |
11575 | * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. | |
11576 | * emacs.c (main): Don't call syms_of_abbrev. | |
11577 | * Makefile.in (obj): Remove abbrev.o. | |
11578 | (abbrev.o): Remove. | |
11579 | * abbrev.c: Remove. | |
11580 | ||
67b73e3a MR |
11581 | 2007-10-26 Martin Rudalics <rudalics@gmx.at> |
11582 | ||
11583 | * window.c (window_min_size_2): Don't count header-line. | |
11584 | ||
e3d7bd83 DN |
11585 | 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu> |
11586 | ||
11587 | * frame.h (struct frame): Move all bit fields after the first bit | |
660a8219 | 11588 | field to take advantage of the available space. Group all the |
e3d7bd83 DN |
11589 | chars together to reduce wasted space due to padding. |
11590 | ||
a3547743 JB |
11591 | 2007-10-26 Juanma Barranquero <lekktu@gmail.com> |
11592 | ||
e298936f JB |
11593 | * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings. |
11594 | ||
d3d47262 JB |
11595 | * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings) |
11596 | (Vdead, dont_register_blocks, staticvec, staticidx, interval_block) | |
11597 | (n_interval_blocks, init_strings, check_string_bytes, check_sblock) | |
11598 | (init_float, free_float, n_cons_blocks, init_cons, all_vectors) | |
11599 | (n_vectors, symbol_block, symbol_block_index, symbol_free_list) | |
11600 | (n_symbol_blocks, init_symbol, marker_block, marker_free_list) | |
11601 | (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float) | |
11602 | (last_marked, mark_object_loop_halt): Make static. | |
11603 | ||
a3547743 JB |
11604 | * frame.c (syms_of_frame) <delete-frame-functions>: |
11605 | Fix typo in docstring. | |
11606 | ||
14c71d8b JB |
11607 | 2007-10-25 Juanma Barranquero <lekktu@gmail.com> |
11608 | ||
11609 | * w32.c (init_environment): Fix tiny memory leak. | |
66199f74 | 11610 | (w32_get_resource): Remove unused variable `ok'. |
14c71d8b | 11611 | |
70b8d0a4 SM |
11612 | 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca> |
11613 | ||
11614 | Make `window-system' into a keyboard-local variable (rather than | |
11615 | frame-local as done originally by multi-tty). | |
11616 | ||
11617 | * keyboard.h (struct kboard): Add Vwindow_system. | |
11618 | * keyboard.c (init_kboard): Set a default for Vwindow_system. | |
11619 | (mark_kboards): Mark Vwindow_system. | |
11620 | ||
11621 | * dispnew.c (syms_of_display) <window-system>: Declare terminal-local. | |
11622 | (init_display): Don't set the obsolete `window-system' frame-param. | |
11623 | ||
11624 | * xterm.c (x_term_init): | |
11625 | * w32term.c (w32_create_terminal): | |
11626 | * term.c (init_tty): Set Vwindow_system. | |
11627 | * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the | |
11628 | multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system. | |
11629 | ||
11630 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
11631 | * w32fns.c (Fx_create_frame, x_create_tip_frame): | |
11632 | * macfns.c (Fx_create_frame): | |
11633 | Don't set the obsolete `window-system' frame-param. | |
11634 | ||
11635 | * frame.h (Qwindow_system): Remove. | |
11636 | * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well. | |
11637 | (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param. | |
11638 | ||
fdc90613 | 11639 | 2007-10-24 Richard Stallman <rms@gnu.org> |
4521d1fc | 11640 | |
fdc90613 MB |
11641 | * frame.c (x_figure_window_size): For fullscreen case, |
11642 | set USPosition | PPosition without clobbering rest of window_prompting. | |
7c75be36 | 11643 | |
fdc90613 | 11644 | * keyboard.c (Fcurrent_idle_time): Doc fix. |
4521d1fc | 11645 | |
fdc90613 | 11646 | * print.c (Fwith_output_to_temp_buffer): Doc fix. |
4521d1fc | 11647 | |
7357cb04 SM |
11648 | 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
11649 | ||
98228e72 SM |
11650 | * process.c (unwind_request_sigio): Only define if __ultrix__. |
11651 | ||
1baf6db9 SM |
11652 | * callproc.c (child_setup): Remove spurious *. |
11653 | ||
4d0ac3d7 SM |
11654 | * lisp.h (Fget_text_property): Declare. |
11655 | (have_menus_p): Declare it here rather than in sys-dep header files. | |
11656 | * macterm.h (have_menus_p): | |
11657 | * msdos.h (have_menus_p): | |
11658 | * xterm.h (have_menus_p): Remove. | |
11659 | ||
7357cb04 SM |
11660 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable) |
11661 | (Fmake_variable_frame_local): Just check the variable's const-ness | |
11662 | rather than checking nil or t. | |
11663 | ||
866e6dd6 JR |
11664 | 2007-10-22 Jason Rumney <jasonr@gnu.org> |
11665 | ||
b00afeae JR |
11666 | * w32fns.c: Include math.h. |
11667 | (w32_abort): Declaration moved to nt/config.nt. | |
0f7f11b7 | 11668 | |
c8f7c76b JR |
11669 | * s/ms-w32.h (HAVE_STDLIB_H): Define. |
11670 | (abort): Redefinition moved to nt/config.nt. | |
11671 | ||
866e6dd6 JR |
11672 | * m/windowsnt.h: Remove. |
11673 | ||
e79beb56 JB |
11674 | 2007-10-22 Juanma Barranquero <lekktu@gmail.com> |
11675 | ||
11676 | * emacs.c (Fdump_emacs): Fix typo in message. | |
11677 | (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring. | |
11678 | <installation-directory>: Reflow docstring. | |
11679 | ||
fb30dfd2 JL |
11680 | 2007-10-22 Juri Linkov <juri@jurta.org> |
11681 | ||
11682 | * minibuf.c: Allow minibuffer default to be a list of default values. | |
11683 | With empty input use the first element of this list as returned default. | |
e79beb56 | 11684 | (string_to_object) |
0f7f11b7 | 11685 | (read_minibuf_noninteractive): If defalt is cons, set val to its car. |
fb30dfd2 JL |
11686 | (read_minibuf): If defalt is cons, set histstring to its car. |
11687 | (Fread_string): If default_value is cons, set val to its car. | |
11688 | (Fread_buffer): If def is cons, use its car. | |
11689 | (Fcompleting_read): If defalt is cons, set val to its car. | |
11690 | ||
1f163f28 MA |
11691 | 2007-10-21 Michael Albinus <michael.albinus@gmx.de> |
11692 | ||
11693 | * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. | |
11694 | ||
db3534c3 JB |
11695 | 2007-10-20 Juanma Barranquero <lekktu@gmail.com> |
11696 | ||
11697 | * doc.c (Fdocumentation): Check for advice in all cases. | |
11698 | ||
c6f18a07 CY |
11699 | 2007-10-19 Chong Yidong <cyd@stupidchicken.com> |
11700 | ||
11701 | * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags. | |
11702 | ||
2a1534d3 RS |
11703 | 2007-10-19 Richard Stallman <rms@gnu.org> |
11704 | ||
11705 | * doc.c (Fdocumentation): Check for and handle an advised function. | |
11706 | ||
7b82c3b6 JB |
11707 | 2007-10-19 Juanma Barranquero <lekktu@gmail.com> |
11708 | ||
11709 | * process.c (Fset_process_filter): Doc fix. | |
11710 | ||
3278f20e SM |
11711 | 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> |
11712 | ||
11713 | * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty | |
11714 | which caused key-translation-map to applied repeatedly (thus breaking | |
11715 | double-mode). | |
11716 | ||
99784d63 SM |
11717 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
11718 | ||
11719 | * xselect.c (x_own_selection, x_handle_selection_clear) | |
11720 | (x_clear_frame_selections): | |
11721 | * w32menu.c (list_of_panes, list_of_items): | |
11722 | * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): | |
11723 | * textprop.c (validate_plist, interval_has_all_properties) | |
11724 | (interval_has_some_properties, interval_has_some_properties_list) | |
11725 | (add_properties, text_property_list): | |
11726 | * process.c (Fget_buffer_process, list_processes_1, status_notify): | |
11727 | * minibuf.c (Fassoc_string): | |
11728 | * macselect.c (x_own_selection, x_clear_frame_selections) | |
11729 | (Fx_disown_selection_internal): | |
11730 | * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): | |
11731 | Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r. | |
11732 | ||
44bb704d CY |
11733 | 2007-10-17 Chong Yidong <cyd@stupidchicken.com> |
11734 | ||
11735 | * process.c: Link to libs for calling res_init() if available. | |
11736 | (Fmake_network_process): Call res_init() before getaddrinfo or | |
11737 | gethostbyname, if possible. | |
11738 | ||
d314756e SM |
11739 | 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
11740 | ||
2504022a SM |
11741 | * lread.c (read1): Set pvectype for char_tables. |
11742 | ||
19fa82b9 SM |
11743 | * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY) |
11744 | (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE): | |
11745 | Add type checks. | |
11746 | (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove. | |
11747 | ||
d314756e SM |
11748 | * alloc.c (free_misc): Use XMISCTYPE. |
11749 | (live_misc_p, gc_sweep): Use Lisp_Misc_Any. | |
11750 | ||
94b9aaa2 GM |
11751 | 2007-10-17 Glenn Morris <rgm@gnu.org> |
11752 | ||
11753 | * minibuf.c (Qcompletion_ignore_case): New Lisp_Object. | |
11754 | (syms_of_minibuf): Add Qcompletion_ignore_case. | |
11755 | * dired.c (Qcompletion_ignore_case): Change to external. | |
11756 | (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case. | |
11757 | * fileio.c (Qcompletion_ignore_case): New external Lisp_Object. | |
11758 | (Fread_file_name): Use it rather than intern'ing. | |
11759 | ||
11760 | * coding.c (Qcompletion_ignore_case): New external Lisp_Object. | |
11761 | (Fread_coding_system): Ignore case of user input. | |
11762 | ||
da6658e8 YM |
11763 | 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
11764 | ||
11765 | * xdisp.c (handle_display_prop): Ignore display specs after | |
11766 | replacing one when string text is being replaced. | |
11767 | (handle_single_display_spec): Pretend as if characters with display | |
11768 | property haven't been consumed only when buffer text is being replaced. | |
11769 | ||
11fb4bdb SM |
11770 | 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> |
11771 | ||
9beb8baa SM |
11772 | * xfns.c (Fx_create_frame, Fx_display_list): |
11773 | * window.c (window_fixed_size_p, enlarge_window) | |
11774 | (shrink_window_lowest_first): | |
11775 | * macterm.c (init_font_name_table): | |
11776 | * macfns.c (Fx_create_frame, Fx_display_list): | |
11777 | * lread.c (close_load_descs): | |
11778 | * keyboard.c (read_char_x_menu_prompt): | |
11779 | * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent): | |
11780 | * coding.c (code_convert_region_unwind): Test the type of an object | |
11781 | rather than just !NILP before extracting data from it. | |
11782 | ||
d3f41ff5 SM |
11783 | * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors. |
11784 | ||
67ee9f6e SM |
11785 | * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. |
11786 | (XMISCANY): New macro. | |
11787 | (XMISCTYPE): Use it. | |
11788 | (struct Lisp_Misc_Any): New type. | |
11789 | (union Lisp_Misc): Use it. | |
11790 | (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit. | |
11791 | * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding) | |
11792 | (find_symbol_value, set_internal, default_value, Fset_default) | |
11793 | (Fmake_variable_buffer_local, Fmake_local_variable) | |
11794 | (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p) | |
11795 | (Flocal_variable_if_set_p, Fvariable_binding_locus): | |
11796 | The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set. | |
11797 | * alloc.c (allocate_buffer): Set the size and tag. | |
11798 | (allocate_misc, mark_maybe_object, mark_object, survives_gc_p): | |
11799 | Use XMISCANY. | |
11800 | (die): Follow the GNU convention for error messages. | |
11801 | * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set. | |
11802 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the | |
11803 | tag any more. | |
11804 | (set_buffer_internal_1): | |
11805 | * frame.c (store_frame_param): | |
11806 | * eval.c (specbind): | |
11807 | * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP. | |
11808 | ||
11fb4bdb SM |
11809 | * doc.c (Fsnarf_documentation): Simplify. |
11810 | ||
decb374a JB |
11811 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
11812 | ||
11813 | * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static. | |
11814 | (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring. | |
11815 | ||
b5a40ee7 SM |
11816 | 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca> |
11817 | ||
11818 | * buffer.c (Fmake_indirect_buffer): Set the buffer's tag. | |
11819 | ||
35277b03 JB |
11820 | 2007-10-14 Juanma Barranquero <lekktu@gmail.com> |
11821 | ||
11822 | * eval.c (do_autoload): Don't save autoloads. | |
11823 | ||
11824 | * data.c (Ffset): Save autoload of the function being set. | |
11825 | ||
35fdaa62 GM |
11826 | 2007-10-07 John Paul Wallington <jpw@pobox.com> |
11827 | ||
11828 | * xfns.c (x_create_tip_frame): Set the `display-type' frame | |
11829 | parameter before setting up faces. | |
11830 | ||
1ea40aa2 EZ |
11831 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
11832 | ||
35fdaa62 | 11833 | * ccl.c (Fregister_code_conversion_map): |
96a5affb EZ |
11834 | * keyboard.c (append_tool_bar_item): Reformat last change. |
11835 | ||
1ea40aa2 EZ |
11836 | * lisp.h (eabs): Rename from `abs'. All callers changed. |
11837 | ||
35277b03 | 11838 | 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru> |
71d00ce4 EZ |
11839 | |
11840 | * buffer.c (add_overlay_mod_hooklist): | |
11841 | * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map): | |
11842 | * fontset.c (make_fontset): | |
11843 | * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item) | |
11844 | (append_tool_bar_item): | |
11845 | * macmenu.c (grow_menu_items): | |
35fdaa62 | 11846 | * w32menu.c (grow_menu_items): |
71d00ce4 | 11847 | * xmenu.c (grow_menu_items): Use larger_vector. |
35fdaa62 | 11848 | |
bc82f120 EZ |
11849 | 2007-10-13 Eli Zaretskii <eliz@gnu.org> |
11850 | ||
11851 | * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving | |
11852 | selected frame'' on MSDOS). | |
11853 | ||
d57d5a78 MR |
11854 | 2007-10-12 Martin Rudalics <rudalics@gmx.at> |
11855 | ||
11856 | * frame.c (Qexplicit_name): New variable. | |
11857 | (x_report_frame_params): Report it in parameter alist. | |
11858 | (syms_of_frame): Intern and staticpro it. | |
11859 | ||
35277b03 | 11860 | 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change) |
04710ebd JR |
11861 | |
11862 | * macfns.c (x_create_tip_frame): Set terminal for frame. | |
11863 | ||
c7a4b95b SM |
11864 | 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca> |
11865 | ||
26f9c7b7 SM |
11866 | * frame.c (Qenvironment): Remove. |
11867 | (syms_of_frame) <Qenvironment>: Don't initialize. | |
11868 | (Fdelete_frame): Don't treat the `environment' param specially. | |
11869 | * frame.h (Qenvironment): Don't declare. | |
11870 | * callproc.c (set_initial_environment): Don't set unused frame param. | |
11871 | ||
c7a4b95b SM |
11872 | * frame.c (Fframe_with_environment): Remove. |
11873 | (syms_of_frame) <Sframe_with_environment>: Don't declare. | |
26f9c7b7 | 11874 | |
c7a4b95b SM |
11875 | * lisp.h (Fframe_with_environment): Don't declare. |
11876 | ||
c86f7377 JB |
11877 | 2007-10-10 Juanma Barranquero <lekktu@gmail.com> |
11878 | ||
11879 | * indent.c (indent_tabs_mode, last_known_column) | |
11880 | (last_known_column_modified): Make static. | |
11881 | (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring. | |
11882 | ||
d1b3a122 KY |
11883 | 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org> |
11884 | ||
11885 | * puresize.h (BASE_PURESIZE): Increase to 1170000. | |
11886 | ||
d57d5a78 MR |
11887 | 2007-10-09 Jason Rumney <jasonr@gnu.org> |
11888 | ||
11889 | * w32term.c (x_set_window_size): Disable code that attempts to tell | |
11890 | Lisp code about a size change before it actually happens. | |
11891 | ||
81d3d428 | 11892 | 2007-10-09 Richard Stallman <rms@gnu.org> |
91175673 | 11893 | |
81d3d428 MB |
11894 | * xdisp.c (handle_invisible_prop): After setting up an ellipsis, |
11895 | return HANDLED_RETURN. | |
91175673 | 11896 | |
1af74d06 | 11897 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
4f1b1854 | 11898 | |
1af74d06 MB |
11899 | * keyboard.c (kbd_buffer_get_event): Break loop waiting for input |
11900 | when there's an unread command event. | |
e0fead5d | 11901 | |
c7a4b95b | 11902 | * frame.c (focus_follows_mouse): Move here from frame.el to allow |
1af74d06 MB |
11903 | window autoselection act appropriately when leaving selected frame. |
11904 | (syms_of_frame): Initialize focus_follows_mouse. | |
11905 | * frame.h (focus_follows_mouse): Extern it. | |
11906 | * macterm.c (XTread_socket): When focus_follows_mouse is nil | |
c7a4b95b | 11907 | make SELECT_WINDOW_EVENT only if we don't leave the selected frame. |
1af74d06 MB |
11908 | * msdos.c (dos_rawgetc): Likewise. |
11909 | * w32term.c (w32_read_socket): Likewise. | |
11910 | * xterm.c (handle_one_xevent): Likewise. | |
11911 | * xdisp.c (syms_of_xdisp): In doc-string of | |
11912 | mouse-autoselect-window mention focus-follows-mouse. | |
e0fead5d | 11913 | |
1af74d06 | 11914 | 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
e0fead5d | 11915 | |
1af74d06 MB |
11916 | * macterm.c (mac_load_query_font): Fix missing return value. |
11917 | [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): | |
11918 | Add BLOCK_INPUT. | |
c186cdb3 | 11919 | |
1af74d06 | 11920 | 2007-10-08 Richard Stallman <rms@gnu.org> |
c186cdb3 | 11921 | |
1af74d06 MB |
11922 | * xdisp.c (get_window_cursor_type): Implement documented behavior |
11923 | for cursor-in-non-selected-windows = t. | |
c186cdb3 | 11924 | |
1af74d06 | 11925 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
c186cdb3 | 11926 | |
1af74d06 | 11927 | * w32.c (w32_get_resource): Always close registry keys. |
58cfce98 | 11928 | |
1af74d06 | 11929 | 2007-10-08 Jason Rumney <jasonr@gnu.org> |
58cfce98 | 11930 | |
1af74d06 | 11931 | * makefile.w32-in (LIBS): Add COMCTL32. |
62854fe2 | 11932 | |
1af74d06 | 11933 | * w32fns.c (globals_of_w32fns): Init common controls. |
62854fe2 | 11934 | |
1af74d06 | 11935 | 2007-10-08 Richard Stallman <rms@gnu.org> |
a3c83618 | 11936 | |
c7a4b95b | 11937 | * image.c (our_memory_buffer): Rename from omfib_buffer. |
656f46bb | 11938 | |
1af74d06 | 11939 | 2007-10-08 Richard Stallman <rms@gnu.org> |
656f46bb | 11940 | |
1af74d06 | 11941 | * buffer.c (Foverlays_at): Doc fix. |
036e218d | 11942 | |
1af74d06 | 11943 | 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca> |
036e218d | 11944 | |
1af74d06 | 11945 | * fns.c (Fplist_put): Preserve uneven tail data. |
7ddb2c16 | 11946 | |
1af74d06 | 11947 | 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) |
7ddb2c16 | 11948 | |
1af74d06 | 11949 | * termhooks.h (enum event_kind): Remove trailing comma. |
ace9b298 | 11950 | |
1af74d06 | 11951 | * frame.h (enum): Remove trailing comma. |
90647b07 | 11952 | |
8993ad2e | 11953 | 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change) |
90647b07 | 11954 | |
1af74d06 | 11955 | * w32proc.c (delete_child): Don't terminate threads of zombies. |
ace9b298 | 11956 | |
1af74d06 | 11957 | 2007-10-08 Martin Rudalics <rudalics@gmx.at> |
ace9b298 | 11958 | |
1af74d06 | 11959 | * keyboard.h (struct kboard): New elt Vlast_repeatable_command. |
ace9b298 | 11960 | |
1af74d06 MB |
11961 | * keyboard.c (syms_of_keyboard): Set up new Lisp variable |
11962 | last-repeatable-command. | |
11963 | (init_kboard): Initialize Vlast_repeatable_command. | |
11964 | (command_loop_1): Set it to real_this_command unless that was | |
11965 | bound to an input event. | |
11966 | (mark_kboards): Mark it. | |
9fbc32aa | 11967 | |
1af74d06 | 11968 | 2007-10-08 Richard Stallman <rms@gnu.org> |
036e218d | 11969 | |
1af74d06 | 11970 | * eval.c (condition-case): Doc fix. |
9fbc32aa | 11971 | |
1af74d06 | 11972 | 2007-10-08 Masatake YAMATO <jet@gyve.org> |
9fbc32aa | 11973 | |
1af74d06 MB |
11974 | * xfaces.c (tty_supports_face_attributes_p): Fix code |
11975 | for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code | |
11976 | was copied and not edited. | |
9fbc32aa | 11977 | |
beb9f745 SM |
11978 | 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca> |
11979 | ||
c86f7377 | 11980 | Add new `input-decode-map' keymap and use it for terminal |
4f4a84ec SM |
11981 | escape sequences. |
11982 | * keyboard.h (struct kboard): Add Vinput_decode_map. | |
11983 | Remove Vlocal_key_translation_map. | |
11984 | * keyboard.c (read_key_sequence): Add support for input-decode-map. | |
11985 | (init_kboard): Init input-decode-map. | |
11986 | Replace local-key-translation-map back with key-translation-map. | |
11987 | (syms_of_keyboard): Declare input-decode-map. | |
11988 | Remove local-key-translation-map. Update docstrings. | |
11989 | (mark_kboards): Mark Vinput_decode_map. | |
11990 | Don't mark Vlocal_key_translation_map. | |
11991 | * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map. | |
11992 | Replace local-key-translation-map back with key-translation-map. | |
11993 | * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN): | |
11994 | Bind in input-decode-map rather than function-key-map. | |
11995 | ||
beb9f745 SM |
11996 | * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore. |
11997 | This was made redundant by the previous introduction of XSETPVECTYPE. | |
11998 | ||
65342ae3 RS |
11999 | 2007-10-09 Richard Stallman <rms@gnu.org> |
12000 | ||
beb9f745 | 12001 | * image.c (free_bitmap_record): Rename from Free_Bitmap_Record. |
65342ae3 RS |
12002 | |
12003 | 2007-09-29 Richard Stallman <rms@gnu.org> | |
12004 | ||
12005 | * eval.c (internal_condition_case_2, internal_condition_case_1) | |
12006 | (internal_condition_case): Reenable abort if x_catching_errors () | |
12007 | to see if that really happens and why. | |
12008 | ||
6cff77fd AS |
12009 | 2007-10-06 Andreas Schwab <schwab@suse.de> |
12010 | ||
12011 | * fileio.c (Fwrite_region): Ignore EINVAL error from fsync. | |
12012 | ||
bbe6f2aa JB |
12013 | 2007-10-04 Juanma Barranquero <lekktu@gmail.com> |
12014 | ||
12015 | * image.c (syms_of_image) <image-types>: Fix typo in docstring. | |
12016 | ||
a390930c SM |
12017 | 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca> |
12018 | ||
12019 | * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used. | |
12020 | ||
d6aa1876 SM |
12021 | 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca> |
12022 | ||
d0fdb6da SM |
12023 | * window.h (struct window): |
12024 | * window.c (struct save_window_data, struct saved_window): | |
12025 | * termhooks.h (struct terminal): | |
12026 | * process.h (struct Lisp_Process): | |
12027 | * frame.h (struct frame): | |
12028 | * buffer.h (struct buffer): | |
12029 | * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table) | |
12030 | (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table): | |
12031 | The size field of (pseudo)vectors is now unsigned. | |
12032 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly. | |
12033 | ||
878f97ff SM |
12034 | * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end. |
12035 | Turn `count' into an integer. | |
d0fdb6da | 12036 | |
878f97ff SM |
12037 | * fns.c (make_hash_table, hash_put, hash_remove, hash_clear) |
12038 | (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count): | |
12039 | * print.c (print_object) <HASH_TABLE_P>: `count' is an int. | |
12040 | * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR. | |
12041 | (mark_object) <HASH_TABLE_P>: Use mark_vectorlike. | |
12042 | ||
d2029e5b SM |
12043 | * alloc.c (allocate_pseudovector): New fun. |
12044 | (ALLOCATE_PSEUDOVECTOR): New macro. | |
12045 | (allocate_window, allocate_terminal, allocate_frame) | |
12046 | (allocate_process): Use it. | |
12047 | (mark_vectorlike): New function. | |
12048 | (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it. | |
12049 | (mark_terminals): Use it. | |
12050 | (Fmake_bool_vector, Fmake_char_table, make_sub_char_table) | |
12051 | (Fmake_byte_code): Use XSETPVECTYPE. | |
12052 | ||
12053 | * frame.c (Fframe_parameters): Minor simplification. | |
12054 | ||
12055 | * insdel.c (adjust_markers_for_insert): Generalize assertion checks. | |
12056 | ||
12057 | * marker.c (Fmarker_buffer): Make test for odd case into a failure. | |
12058 | ||
12059 | * buffer.c (Fget_buffer_create, init_buffer_once): | |
12060 | * lread.c (defsubr): | |
12061 | * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE. | |
12062 | ||
12063 | * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be | |
12064 | defined differently in the m/*.h files. | |
12065 | (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking. | |
12066 | (XSETPVECTYPE): New macro. | |
12067 | (XSETPSEUDOVECTOR): Use it. | |
12068 | ||
d6aa1876 SM |
12069 | * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c. |
12070 | (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. | |
d2029e5b | 12071 | |
d6aa1876 SM |
12072 | * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): |
12073 | * lread.c (defvar_per_buffer): | |
12074 | * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c. | |
12075 | ||
12076 | * window.c (candidate_window_p): Only consider as visible frames that | |
12077 | are on the same terminal. | |
12078 | ||
12079 | * m/ibms390x.h (MARKBIT): Remove unused macro. | |
12080 | ||
88852d45 JB |
12081 | 2007-10-01 Juanma Barranquero <lekktu@gmail.com> |
12082 | ||
12083 | * lread.c (Fload): Fix typo in docstring. | |
12084 | ||
880820fe | 12085 | 2007-10-01 Michaël Cadilhac <michael@cadilhac.name> |
2742fe30 MC |
12086 | |
12087 | * floatfns.c (Fexpt): Manually check for overflows, so that a power | |
12088 | of a non-zero value can't yield zero. | |
12089 | ||
ed0c79c6 SM |
12090 | 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca> |
12091 | ||
b870aa61 SM |
12092 | * term.c (term_clear_mouse_face, term_mouse_highlight) |
12093 | (tty_write_glyphs_with_face): Only define is HAVE_GPM. | |
12094 | ||
4c37a414 SM |
12095 | * print.c (safe_debug_print): Use XHASH. |
12096 | ||
b9466edb SM |
12097 | * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of |
12098 | Lisp elements such as tags. | |
12099 | (XHASH): New macro. | |
12100 | (EQ): Use it. | |
12101 | (SREF, SSET, STRING_COPYIN): Use SDATA. | |
12102 | (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove. | |
12103 | ||
9c545a55 SM |
12104 | * alloc.c (mark_terminal): Remove left-over declaration. |
12105 | (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE. | |
12106 | (allocate_vectorlike): Remove type argument. Adjust callers. | |
12107 | (live_vector_p, mark_maybe_pointer, valid_lisp_object_p): | |
12108 | Only handle the one remaining MEM_TYPE_VECTORLIKE. | |
12109 | ||
dafc79fa SM |
12110 | * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros |
12111 | to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used. | |
12112 | (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc) | |
12113 | (lisp_align_free, make_interval, allocate_string, allocate_string_data) | |
12114 | (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc): | |
12115 | Use them. | |
12116 | ||
ed0c79c6 SM |
12117 | * xfaces.c (load_face_font, free_realized_face, clear_face_gcs): |
12118 | Don't let signal handlers run when a GC is freed but not yet NULL'ed. | |
12119 | (x_free_gc): Remove BLOCK_INPUT since it's now redundant. | |
12120 | ||
3c81afd4 DN |
12121 | 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu> |
12122 | ||
12123 | * Makefile.in (lisp, shortlisp): Delete server.elc, it is not | |
12124 | loaded by default. | |
12125 | ||
6178ce5e SM |
12126 | 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca> |
12127 | ||
4ce5ab77 SM |
12128 | * term.c (Fgpm_mouse_start): Don't signal an error if already activated |
12129 | on this tty. | |
12130 | (Fgpm_mouse_stop): Only deactivate if it was activated on this tty. | |
12131 | ||
6178ce5e SM |
12132 | * term.c (mouse_face_window): Rename from Qmouse_face_window. |
12133 | Update all users. | |
12134 | (handle_one_term_event): Use Gpm_DrawPointer. | |
12135 | (Fgpm_mouse_start): Rename from Fterm_open_connection. | |
12136 | Signal errors instead of returning nil. Always return nil. | |
12137 | (Fgpm_mouse_stop): Rename from Fterm_close_connection. | |
12138 | Make it a noop if gpm-mouse was not activated. | |
12139 | (syms_of_term): Update names. | |
12140 | ||
bdf5f8ef SM |
12141 | 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca> |
12142 | ||
75a8734b SM |
12143 | * sysdep.c (narrow_foreground_group, widen_foreground_group): Static. |
12144 | (init_sys_modes): Check that gpm_tty is the current tty. | |
12145 | ||
13559ee0 SM |
12146 | * alloc.c (allocate_terminal): Set the vector size to only count the |
12147 | lisp fields. Initialize those to nil. | |
12148 | (mark_object): Don't treat terminals specially. | |
12149 | (mark_terminal): Remove. | |
12150 | (mark_terminals): Use mark_object instead. | |
12151 | ||
ff16b875 SM |
12152 | * termhooks.h (struct terminal): Move all Lisp_Object fields traced by |
12153 | the GC to the beginning. | |
12154 | ||
83155776 SM |
12155 | * indent.h: |
12156 | * indent.c: Use EMACS_INT for ints coming from Elisp data. | |
12157 | ||
bdf5f8ef SM |
12158 | * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions. |
12159 | ||
ec8705b6 JR |
12160 | 2007-09-25 Jason Rumney <jasonr@gnu.org> |
12161 | ||
12162 | * frame.c (make_terminal_frame): Remove special case for WINDOWSNT. | |
12163 | ||
12164 | * w32console.c (create_w32cons_output): Remove. | |
12165 | ||
12166 | * term.c (init_tty): Call init_sys_modes on WINDOWSNT also. | |
12167 | ||
12168 | * sysdep.c (init_sys_modes): Use set_terminal_modes_hook. | |
12169 | (reset_sys_modes): Use reset_terminal_modes_hook. | |
12170 | ||
7351b242 SM |
12171 | 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca> |
12172 | ||
12173 | * eval.c (do_autoload): Don't output any message. | |
12174 | ||
16706228 JL |
12175 | 2007-09-24 Juri Linkov <juri@jurta.org> |
12176 | ||
12177 | * emacs.c (standard_args): Change priority of "--no-splash" | |
12178 | from 40 to 3. Add "--no-desktop" with the same priority. | |
12179 | ||
3ae2e3a3 RS |
12180 | 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru> |
12181 | ||
12182 | * alloc.c (gc_sweep): Check cons cell mark bits word by word | |
12183 | and optimize the case where they are all 1. | |
12184 | ||
7a58fb43 GM |
12185 | 2007-09-23 Johannes Weiner <hannes@saeurebad.de> |
12186 | ||
3ae2e3a3 RS |
12187 | * lisp.h (abs): Define if not defined. |
12188 | * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c: | |
12189 | Don't define `abs', since it's defined in lisp.h. | |
7a58fb43 | 12190 | |
78048085 EZ |
12191 | 2007-09-22 Eli Zaretskii <eliz@gnu.org> |
12192 | ||
c7a4b95b | 12193 | * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows. |
78048085 EZ |
12194 | (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero. |
12195 | (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty) | |
12196 | (init_tty): Use DEV_TTY instead of "/dev/tty". | |
12197 | [WINDOWSNT]: No need to protect from NAME arg being null. | |
12198 | ||
23d4cba5 DN |
12199 | 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu> |
12200 | ||
12201 | * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning | |
12202 | up the tty state. | |
12203 | ||
71f44e7a SM |
12204 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
12205 | ||
12206 | * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
12207 | (gpm_tty): Change its type. | |
12208 | * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead. | |
12209 | (gpm_tty): Change its type and initialize it. | |
12210 | (Fterm_open_connection): Check the frame is indeed a tty. | |
12211 | Use the new gpm_tty. | |
12212 | (Fterm_close_connection): Use the new gpm_tty. | |
12213 | * keyboard.c (tty_read_avail_input): Use the new gpm_tty. | |
12214 | * sysdep.c (init_sys_modes): term_gpm -> gpm_tty. | |
12215 | ||
def7fa34 JB |
12216 | 2007-09-21 Juanma Barranquero <lekktu@gmail.com> |
12217 | ||
12218 | * w32term.c (x_draw_glyph_string): Use strike_through_color, not | |
12219 | underline_color, to draw strike-through. | |
12220 | ||
d2bb6598 SM |
12221 | 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca> |
12222 | ||
273f164c SM |
12223 | * lisp.h (allocate_terminal): Declare. |
12224 | ||
ca2d5566 SM |
12225 | * window.c (candidate_window_p): Consider frames that are being placed |
12226 | by the user as somewhere between visible and iconified. | |
12227 | (window_loop): Prefer windows on the current frame. | |
12228 | (Fselect_window): Move the use of select-frame to the beginning so we | |
12229 | can just delegate all the work (it'll call us back anyway). | |
12230 | ||
6168122d SM |
12231 | * frame.c (Qdisplay_environment_variable): |
12232 | * frame.h (Qdisplay_environment_variable): Delete. | |
12233 | ||
c51842ec SM |
12234 | * .gdbinit (xbacktrace): Print the arg's address rather than the value |
12235 | of the first arg, since that value may be a union. | |
12236 | ||
d2bb6598 SM |
12237 | * callproc.c (child_setup, getenv_internal): Use the frame's `display' |
12238 | parameter rather than Qdisplay_environment_variable. If all else | |
12239 | fails, look for DISPLAY in initial-environment. | |
12240 | ||
6f022c19 GM |
12241 | 2007-09-21 Glenn Morris <rgm@gnu.org> |
12242 | ||
12243 | * Makefile.in (emacstool): Remove target. | |
f466320b | 12244 | (lisp, shortlisp): Remove termdev.elc. |
6f022c19 | 12245 | |
ea1bf8c7 GM |
12246 | 2007-09-21 Markus Triska <markus.triska@gmx.at> |
12247 | ||
d2bb6598 | 12248 | * xterm.c (x_delete_display): Compile session management conditionally. |
ea1bf8c7 | 12249 | |
d30a25b3 SM |
12250 | 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
12251 | ||
db699fc6 SM |
12252 | * callproc.c (getenv_internal_1): New function. |
12253 | (getenv_internal): Use it. | |
12254 | (Fgetenv_internal): Use it. Accept an env-list as optional arg. | |
12255 | ||
d2bb6598 | 12256 | * terminal.c (get_terminal): Don't accept ints to represent terminals. |
c5911e55 SM |
12257 | (Fterminal_name, Fterminal_parameters, Fterminal_parameter) |
12258 | (Fset_terminal_parameter): Work with dead terminals as well. | |
12259 | (Fmodify_terminal_parameters): Remove. | |
12260 | ||
d30a25b3 SM |
12261 | * terminal.c (get_terminal): Handle terminals. |
12262 | Make sure the terminal returned is live. | |
12263 | (create_terminal): Use allocate_terminal. | |
12264 | (mark_terminals): Move to alloc.c. | |
12265 | (delete_terminal): Use terminal->name as liveness status. | |
12266 | NULL out fields after freeing their contents. | |
12267 | Don't deallocate the object. | |
12268 | (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object | |
12269 | rather than an int. | |
12270 | (Fterminal_live_p): Accept non-integer arguments. | |
12271 | (Fterminal_list): Return terminal objects rather than an ints. | |
12272 | ||
12273 | * alloc.c (enum mem_type): New member for `terminal' objects. | |
12274 | (allocate_terminal): New function. | |
d2bb6598 SM |
12275 | (mark_maybe_pointer, valid_lisp_object_p, mark_object): |
12276 | Handle terminals. | |
d30a25b3 SM |
12277 | (mark_terminal): New fun. |
12278 | (mark_terminals): Move from terminal.c. | |
12279 | ||
12280 | * term.c (get_tty_terminal): Don't treat output_initial specially. | |
12281 | (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints. | |
12282 | (delete_tty): Use terminal->name as liveness status. | |
12283 | ||
12284 | * termhooks.h (struct terminal): Make it into a pseudovector. | |
12285 | Remove `deleted' replaced by checking `name's nullness. | |
12286 | ||
12287 | * print.c (print_object): Handle terminals. | |
12288 | ||
12289 | * lisp.h (enum pvec_type): New `terminal' pseudovector. | |
12290 | (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros. | |
12291 | ||
12292 | * frame.c (make_terminal_frame): | |
12293 | * keyboard.c (tty_read_avail_input): | |
12294 | * w32term.c (x_delete_terminal): | |
12295 | * xfns.c (Fx_create_frame, x_create_tip_frame): | |
12296 | * xterm.c (x_delete_terminal): Use terminal->name as liveness status. | |
12297 | ||
eba25e7c GM |
12298 | 2007-09-20 Glenn Morris <rgm@gnu.org> |
12299 | ||
12300 | * process.c (Fmake_network_process): Doc fix. | |
12301 | ||
2a29c3c1 JR |
12302 | 2007-09-19 Jason Rumney <jasonr@gnu.org> |
12303 | ||
12304 | * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument. | |
12305 | ||
880820fe | 12306 | 2007-09-19 Michaël Cadilhac <michael@cadilhac.name> |
ba1cbad7 MC |
12307 | |
12308 | * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): | |
12309 | Fix a C warning regarding variable constness. | |
12310 | ||
12311 | * xterm.c (handle_one_xevent): Fix a C warning. | |
12312 | ||
334a1195 JR |
12313 | 2007-09-18 Jason Rumney <jasonr@gnu.org> |
12314 | ||
12315 | * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. | |
12316 | ||
880820fe | 12317 | 2007-09-17 Jan Djärv <jan.h.d@swipnet.se> |
879ffad9 JD |
12318 | |
12319 | * gtkutil.c (gdpy_def): New variable. | |
12320 | (xg_initialize): Initialize gdpy_def. | |
12321 | (xg_display_close): If no other display exists, set gdpy_def to a | |
12322 | new connection. | |
12323 | ||
880820fe | 12324 | 2007-09-16 Jan Djärv <jan.h.d@swipnet.se> |
45c94881 JD |
12325 | |
12326 | * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf | |
12327 | when we have no file name for the icon. | |
12328 | (xg_tool_bar_expose_callback): Remove. | |
12329 | (xg_create_tool_bar): Don't connect expose signal to | |
12330 | xg_tool_bar_expose_callback. | |
12331 | (xg_get_file_with_chooser): Move GCPRO1 after declarations. | |
12332 | ||
4d580af2 AS |
12333 | 2007-09-16 Andreas Schwab <schwab@suse.de> |
12334 | ||
12335 | * alloc.c (reset_malloc_hooks): Set the hooks to the previous | |
12336 | values instead of zapping them. | |
12337 | ||
aca946f3 GM |
12338 | 2007-09-14 Glenn Morris <rgm@gnu.org> |
12339 | ||
12340 | * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope. | |
12341 | * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. | |
12342 | * image.c (our_memory_fill_input_buffer) <buffer>: Move to file | |
12343 | scope and rename to omfib_buffer for clarity. | |
12344 | (gif_load) <interlace_start, interlace_increment>: Move to file scope. | |
12345 | ||
25c460e5 KH |
12346 | 2007-09-14 Kenichi Handa <handa@m17n.org> |
12347 | ||
12348 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. | |
12349 | ||
09b69f01 JR |
12350 | 2007-09-13 Jason Rumney <jasonr@gnu.org> |
12351 | ||
12352 | * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument. | |
12353 | ||
12354 | * w32term.c (w32_term_init): Pass rif to w32_init_fringe. | |
12355 | ||
12356 | * macterm.c (mac_initialize): Don't call mac_init_fringe here. | |
12357 | (mac_term_init): Call here instead, passing rif. | |
12358 | ||
442218db GM |
12359 | 2007-09-13 Glenn Morris <rgm@gnu.org> |
12360 | ||
12361 | * s/hpux.h: No longer define `static' as nothing. | |
12362 | ||
880820fe | 12363 | 2007-09-13 Johan Bockgård <bojohan@gnu.org> |
4795c40f GM |
12364 | |
12365 | * callint.c (Fcall_interactively): Remove unused var `fun'. | |
12366 | ||
1971a872 RF |
12367 | 2007-09-12 Romain Francoise <romain@orebokech.com> |
12368 | ||
12369 | * window.c (prefer_window_split_horizontally, display_buffer): | |
12370 | Revert 2007-09-08 change. | |
12371 | ||
2d33f506 GM |
12372 | 2007-09-12 Glenn Morris <rgm@gnu.org> |
12373 | ||
585474ae | 12374 | * alloca.c: Remove file. |
ca7af97a GM |
12375 | * Makefile.in (alloca): Do not undef. |
12376 | (allocaobj, alloca.o): Remove. | |
12377 | (otherobj): Remove allocaobj. | |
12378 | * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block. | |
12379 | * regex.c (C_ALLOCA): Remove all references and code that was only | |
12380 | used when this was defined. | |
12381 | * search.c (boyer_moore): Remove #ifdef C_ALLOCA block. | |
12382 | * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block. | |
99dfbaf1 GM |
12383 | * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this. |
12384 | ||
2d33f506 | 12385 | * Makefile.in (SOURCES, unlock, relock): Delete. |
ca7af97a GM |
12386 | |
12387 | * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. | |
12388 | (menu_grab_callback): All uses changed. | |
12389 | ||
12390 | * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. | |
12391 | (x_reply_selection_request): All uses changed. | |
2d33f506 | 12392 | |
18a4a65e SM |
12393 | 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca> |
12394 | ||
12395 | * lread.c (load_warn_old_style_backquotes): Change message to look | |
12396 | better when it appears in the middle of byte-compiler messages. | |
12397 | ||
47cc8819 DN |
12398 | 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu> |
12399 | ||
b7ea0894 DN |
12400 | * s/darwin.h (MULTI_KBOARD): Only define for Carbon. |
12401 | ||
47cc8819 DN |
12402 | * xterm.c (x_create_terminal): Add comment. |
12403 | ||
12404 | * term.c (clear_tty_hooks, set_tty_hooks): Add comments. | |
12405 | ||
5632bd0f RS |
12406 | 2007-09-10 Richard Stallman <rms@gnu.org> |
12407 | ||
12408 | * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME. | |
12409 | ||
880820fe | 12410 | 2007-09-10 Michaël Cadilhac <michael@cadilhac.name> |
ccb5c14f | 12411 | |
4bca9161 MC |
12412 | * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. |
12413 | (DEFUN): Document `intspec', use it instead of `prompt'. | |
12414 | ||
04724b69 MC |
12415 | * eval.c (Fcommandp): Change `->prompt' to `->intspec'. |
12416 | ||
8a6d230a MC |
12417 | * data.c (Finteractive_form): If the interactive specification starts |
12418 | with a `(', use it as a Lisp form. | |
12419 | ||
09fbdf6c MC |
12420 | * fileio.c (Fset_file_modes): Add an interactive spec that reads a file |
12421 | name and file modes. | |
12422 | ||
ccb5c14f MC |
12423 | * callint.c (Fcall_interactively): Comment fixes. |
12424 | ||
023accd6 SM |
12425 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
12426 | ||
12427 | * callint.c (Fcall_interactively): Use Finteractive_form also for subrs | |
12428 | and compiled functions. | |
12429 | ||
f26b9544 EZ |
12430 | 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com> |
12431 | ||
12432 | * window.c (prefer_window_split_horizontally): New variable. | |
12433 | (display_buffer): Consider splitting window horizontally depending | |
12434 | on prefer_window_split_horizontally. | |
12435 | ||
4d395425 EZ |
12436 | 2007-09-08 Eli Zaretskii <eliz@gnu.org> |
12437 | ||
97ddc760 | 12438 | * sysdep.c [WINDOWSNT]: Don't include sysselect.h. |
4d395425 | 12439 | |
08c1d235 SM |
12440 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
12441 | ||
179cef48 SM |
12442 | * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking. |
12443 | ||
08c1d235 SM |
12444 | * frame.c (x_set_frame_parameters): Check number is positive before |
12445 | using XFASTINT. | |
12446 | ||
12447 | * window.c (freeze_window_start): Don't presume selected_window holds | |
12448 | a window object. | |
92f94a12 | 12449 | (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd. |
08c1d235 | 12450 | |
97ddc760 | 12451 | 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change) |
de52dcbb DN |
12452 | |
12453 | * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. | |
12454 | ||
90ab5c62 SM |
12455 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
12456 | ||
12457 | * window.c (Vsplit_window_preferred_function): New var. | |
12458 | (Fdisplay_buffer): Use it. | |
12459 | (syms_of_window): Export, and initialize it. | |
12460 | ||
1ab2cd43 TTN |
12461 | 2007-09-06 Pixel <pixel@mandriva.com> (tiny change) |
12462 | ||
12463 | * image.c (gif_load): Fix bug: Handle nonexistent colormap. | |
12464 | ||
0b0515bc GM |
12465 | 2007-09-06 Glenn Morris <rgm@gnu.org> |
12466 | ||
57fd5c55 | 12467 | * gtkutil.c (menu_grab_callback) <cnt>: |
0b0515bc GM |
12468 | * xselect.c (x_reply_selection_request) <cnt>: Move static |
12469 | variable to file scope. | |
12470 | ||
98594580 SM |
12471 | 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca> |
12472 | ||
12473 | * xdisp.c (redisplay_internal): Make sure Elisp code always sees | |
12474 | consistent values of selected_frame and selected_window. | |
12475 | ||
0f4c7aef JR |
12476 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
12477 | ||
12478 | * w32console.c (initialize_w32_display): Zero unused hooks. | |
12479 | ||
e4019195 DN |
12480 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
12481 | ||
12482 | * term.c (Vsuspend_tty_functions, Vresume_tty_functions) | |
12483 | (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change. | |
12484 | ||
bce179b5 JR |
12485 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
12486 | ||
a0236551 JR |
12487 | * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible |
12488 | in w32console.c. Set up input. Remove XXX comments that have been | |
12489 | confirmed as correct. | |
12490 | ||
a4926668 JR |
12491 | * s/ms-w32.h (MULTI_KBOARD): Define. |
12492 | ||
953bf0dc JR |
12493 | * w32console.c (one_and_only_w32cons): Remove. |
12494 | (initialize_w32_display): Take terminal argument. | |
12495 | ||
12496 | * term.c (init_tty) [WINDOWSNT]: Pass terminal to | |
12497 | initialize_w32_display. | |
12498 | (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. | |
12499 | ||
bce179b5 JR |
12500 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. |
12501 | ||
12502 | * keyboard.c (discard_mouse_events): Discard it. | |
12503 | (make_lispy_event): Translate it to a lisp event. | |
12504 | (lispy_wheel_names): Add wheel-left and right events. | |
12505 | (syms_of_keyboard): Enlarge wheel_syms. | |
12506 | ||
12507 | * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. | |
12508 | <WM_MOUSEHWHEEL>: Pass new system message to lisp. | |
12509 | ||
12510 | * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't. | |
12511 | ||
12512 | * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT | |
12513 | from WM_MOUSEHWHEEL. | |
12514 | (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL. | |
12515 | ||
12516 | * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from | |
12517 | terminal. | |
12518 | ||
12519 | * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new | |
12520 | keyboard for the terminal. | |
12521 | ||
92cd6a7c DN |
12522 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
12523 | ||
12524 | * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. | |
12525 | (Vresume_tty_hook): Rename from Vresume_tty_functions. | |
12526 | (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook | |
12527 | and resume-tty-function to resume-tty-hook. | |
12528 | (Fsuspend_tty, Fresume_tty): Use new names. | |
12529 | ||
880820fe | 12530 | 2007-09-02 Jan Djärv <jan.h.d@swipnet.se> |
2154c964 JD |
12531 | |
12532 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon | |
12533 | if it starts with "n:". | |
12534 | ||
880820fe | 12535 | 2007-08-31 Jan Djärv <jan.h.d@swipnet.se> |
b42ff099 JD |
12536 | |
12537 | * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL. | |
12538 | ||
6b8e474c SM |
12539 | 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> |
12540 | ||
92d9c1d4 SM |
12541 | * frame.h: |
12542 | * frame.c (Qterm_environment_variable): Remove. | |
12543 | (syms_of_frame): Don't init and staticpro it. | |
12544 | ||
92d9c1d4 SM |
12545 | * callproc.c (getenv_internal): Remove special case for $TERM. |
12546 | ||
6b8e474c SM |
12547 | * callproc.c (Vinitial_environment): New variable. |
12548 | (set_initial_environment): Initialize it. | |
12549 | (syms_of_callproc): Declare it. | |
12550 | (child_setup): Don't mess with TERM via Qterm_environment_variable; the | |
12551 | TERM under which a process runs is never related to the TERM in which | |
12552 | Emacs is running. | |
12553 | ||
0f1444e1 DN |
12554 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
12555 | ||
12556 | * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here... | |
12557 | * s/darwin.h: ... do it here. | |
12558 | ||
b8866860 SM |
12559 | 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
12560 | ||
12561 | * lisp.h (set_initial_environment): Rename from set_global_environment. | |
12562 | ||
12563 | * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been | |
12564 | removed by mistake on the multi-tty branch. | |
12565 | ||
12566 | * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. | |
12567 | (Fmodify_frame_parameters): Return a value. | |
12568 | ||
12569 | * image.c (png_load): Comment-out var only used in commented-out code. | |
12570 | ||
12571 | * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) | |
12572 | before passing it to mark_object. | |
12573 | ||
12574 | * xfaces.c (internal_resolve_face_name): Return a value. | |
12575 | (internal_resolve_face_name, resolve_face_name_error): Comment out. | |
12576 | ||
12577 | * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. | |
12578 | (x_icon): Comment-out var only used in commented-out code. | |
12579 | ||
0a42be6d RF |
12580 | 2007-08-29 Romain Francoise <romain@orebokech.com> |
12581 | ||
12582 | * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if | |
12583 | QUIT hasn't been provided. | |
12584 | ||
8d9cc0b7 MB |
12585 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
12586 | ||
12587 | * callproc.c (child_setup, getenv_internal): Use the | |
ce20b664 | 12588 | display-environment-variable and term-environment-variable frame params. |
8d9cc0b7 MB |
12589 | (set_initial_environment): Initialise Vprocess_environment. |
12590 | ||
12591 | * config.in: Disable multi-keyboard support on a mac. | |
12592 | ||
12593 | * frame.c (Qterm_environment_variable) | |
12594 | (Qdisplay_environment_variable): New variables. | |
12595 | (syms_of_frame): Intern and staticpro them. | |
12596 | (Fmake_terminal_frame): Disable output method test. | |
12597 | ||
12598 | * frame.h: Declare them here. | |
12599 | ||
12600 | * macfns.c (x_set_mouse_color): Get rif from the frame. | |
12601 | (x_set_tool_bar_lines): Don't use updating_frame. | |
12602 | (mac_window): Add 2 new parameters for consistency with other systems. | |
12603 | (Fx_create_frame): Fix doc string. Rename the parameter. Set the | |
12604 | frame parameters following what is done in X11 and w32. Don't use | |
12605 | FRAME_MAC_DISPLAY_INFO. | |
12606 | (Fx_open_connection, start_hourglass): Remove window-system check. | |
12607 | (x_create_tip_frame): Get the keyboard from the terminal. | |
12608 | ||
12609 | * macmenu.c: Reorder includes. | |
12610 | (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
12611 | ||
12612 | * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a | |
12613 | terminal parameter. | |
12614 | (x_clear_frame): Add a frame parameter. | |
12615 | (note_mouse_movement): Get rif from the frame. | |
12616 | (mac_term_init): Initialize the terminal. | |
12617 | (mac_initialize): Make static and move terminal initialization ... | |
12618 | (mac_create_terminal): ... to this new function. | |
12619 | ||
12620 | * macterm.h (struct mac_display_info): Add terminal. | |
7196c970 | 12621 | (mac_initialize): Delete declaration. |
8d9cc0b7 | 12622 | |
381864b2 | 12623 | * puresize.h (BASE_PURESIZE): Increase base value to 1164000. |
8d9cc0b7 MB |
12624 | |
12625 | * sysdep.c: Comment out text after #endif. | |
12626 | ||
12627 | * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD | |
12628 | is defined. Better initialize ttys in windows. Use terminal | |
12629 | specific mouse_position_hook. | |
12630 | ||
12631 | * termhooks.h (union display_info): Add mac_display_info. | |
12632 | ||
b8866860 SM |
12633 | * w32fns.c (Fx_create_frame): Use kboard from the terminal. |
12634 | Set the default minibuffer frame, window_system and the rest of the | |
8d9cc0b7 MB |
12635 | frame parameters following what is done in X11. |
12636 | ||
12637 | * w32term.c (w32_initialize): Make static. | |
12638 | ||
12639 | * xselect.c (x_handle_selection_clear): Only access | |
12640 | terminal->kboard when MULTI_KBOARD is defined. | |
12641 | ||
12642 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. | |
12643 | (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. | |
12644 | ||
12645 | 2007-08-29 Jason Rumney <jasonr@gnu.org> | |
12646 | ||
12647 | * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. | |
12648 | (make_terminal_frame) [WINDOWSNT]: Initialize terminal. | |
12649 | ||
12650 | * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]: | |
12651 | (mac_init_fringe) [MAC_OS]: Get rif from selected_frame. | |
12652 | ||
12653 | * keyboard.c (restore_kboard_configuration): Only define when | |
12654 | MULTI_KBOARD defined. | |
12655 | ||
35277b03 | 12656 | * makefile.w32-in: Update dependancies from Makefile.in. |
8d9cc0b7 MB |
12657 | (OBJ1): Add terminal.$(O) |
12658 | ||
b8866860 SM |
12659 | * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: |
12660 | Don't define function body. | |
8d9cc0b7 MB |
12661 | (init_tty) [WINDOWSNT]: Use selected_frame for initializing. |
12662 | ||
12663 | * termhooks.h (display_info) [WINDOWSNT]: Add w32. | |
12664 | ||
12665 | * w32.c (request_sigio, unrequest_sigio): Remove. | |
12666 | ||
12667 | * w32console.c (w32con_move_cursor, w32con_clear_to_end) | |
12668 | (w32con_clear_frame, w32con_clear_end_of_line) | |
12669 | (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) | |
12670 | (w32con_delete_glyphs, w32con_set_terminal_window) | |
12671 | (scroll_line, w32_sys_ring_bell): Add frame arg. | |
b8866860 SM |
12672 | (w32con_set_terminal_modes, w32con_reset_terminal_modes): |
12673 | Add terminal arg. | |
8d9cc0b7 MB |
12674 | (PICK_FRAME): Remove. |
12675 | (w32con_write_glyphs): Use frame specific terminal coding. | |
12676 | (one_and_only_w32cons): New global variable. | |
12677 | (initialize_w32_display): Use it for storing hooks. | |
12678 | (create_w32cons_output): New function. | |
12679 | ||
12680 | * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first | |
12681 | arg a frame. | |
12682 | ||
b8866860 SM |
12683 | * w32fns.c (x_create_tip_frame): Set terminal and ref count. |
12684 | Set window_system. | |
8d9cc0b7 MB |
12685 | (x_set_tool_bar_lines): Don't use updating_frame. |
12686 | (Fx_create_frame): Set terminal and ref count. | |
12687 | (Fx_open_connection): Remove window-system check. | |
12688 | ||
12689 | * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
12690 | ||
12691 | * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor. | |
12692 | (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg. | |
12693 | (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines): | |
12694 | Add frame arg. | |
12695 | (x_delete_terminal, w32_create_terminal): New functions. | |
12696 | (w32_term_init): Create a terminal. | |
12697 | (w32_initialize): Move terminal specific initialization to | |
12698 | w32_create_terminal. | |
12699 | ||
b8866860 | 12700 | * w32term.h (x_output): Remove foreground_pixel and background_pixel. |
8d9cc0b7 MB |
12701 | (w32_clear_rect, w32_clear_area): Use background from frame. |
12702 | (w32_display_info): Add terminal. | |
12703 | (w32_sys_ring_bell, x_delete_display): Declare here. | |
12704 | ||
12705 | * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. | |
12706 | ||
12707 | * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. | |
12708 | ||
12709 | 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change) | |
12710 | ||
12711 | * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): | |
12712 | Fix get_named_tty calls for the controlling tty. | |
12713 | ||
12714 | 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) | |
12715 | ||
12716 | * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. | |
12717 | ||
12718 | 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) | |
12719 | ||
12720 | * term.c (tty_insert_glyphs): Add missing first parameter. | |
12721 | ||
880820fe | 12722 | 2007-08-29 Károly Lőrentey <karoly@lorentey.hu> |
8d9cc0b7 | 12723 | |
b8866860 SM |
12724 | * buffer.c (Fbuffer_list, Fbury_buffer): |
12725 | Take frame->buried_buffer_list into account. | |
8d9cc0b7 MB |
12726 | |
12727 | * cm.c (current_tty): New variable, for cmputc(). | |
12728 | (cmputc): Use it. | |
12729 | (cmcheckmagic): Add tty parameter, look up terminal streams there. | |
12730 | (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). | |
b8866860 SM |
12731 | (cmgoto): Add tty parameter. Pass it on to calccost(). |
12732 | Use emacs_tputs() instead of tputs(). | |
8d9cc0b7 MB |
12733 | |
12734 | * cm.h (emacs_tputs): New macro to set current_tty, and then call | |
12735 | tputs(). | |
12736 | (current_tty): New variable, for cmputc(). | |
12737 | (cmcheckmagic, cmputc, cmgoto): Add prototypes. | |
12738 | ||
12739 | * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. | |
12740 | (internal_condition_case, internal_condition_case_1) | |
12741 | (internal_condition_case_2): Don't abort when x_catching_errors. | |
12742 | ||
12743 | * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals. | |
12744 | (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to | |
12745 | prevent crashes caused by bogus longjmps in read_char. | |
12746 | ||
12747 | * keymap.h (Fset_keymap_parent): Add EXFUN. | |
12748 | ||
12749 | * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
12750 | * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): | |
12751 | Remove redundant definition. | |
12752 | ||
b8866860 SM |
12753 | * macfns.c (x_set_mouse_color, x_make_gc): |
12754 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 | 12755 | |
b8866860 SM |
12756 | * w32term.c (x_free_frame_resources): |
12757 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
12758 | (w32_initialize): Use the accessor macros for terminal characteristics. |
12759 | ||
12760 | * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. | |
12761 | Use the accessor macros for terminal characteristics. | |
12762 | * msdos.c (internal_terminal_init): Use the accessor macros for | |
12763 | terminal characteristics. | |
b8866860 SM |
12764 | (ScreenVisualBell, internal_terminal_init): |
12765 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
12766 | |
12767 | * termopts.h (no_redraw_on_reenter): Declare. | |
12768 | ||
12769 | * alloc.c (emacs_blocked_malloc): Disable mallopt call. | |
03f06e5c | 12770 | (mark_terminals, mark_ttys): Declare. |
8d9cc0b7 | 12771 | (Fgarbage_collect): Call them. |
03f06e5c | 12772 | (mark_object): Mark buried_buffer_list. |
8d9cc0b7 MB |
12773 | |
12774 | * prefix-args.c: Include stdlib.h for exit. | |
12775 | ||
12776 | * syssignal.h: Add comment. | |
12777 | ||
12778 | * indent.c: Include stdio.h. | |
12779 | ||
12780 | * window.h (Vinitial_window_system): Declare. | |
12781 | (Vwindow_system): Delete declaration. | |
12782 | ||
12783 | * fontset.c (Finternal_char_font): Use FRAME_RIF. | |
12784 | ||
12785 | * image.c (lookup_image): Don't initialize `c' until the xasserts | |
12786 | have been run. | |
12787 | ||
12788 | * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and | |
12789 | FRAME_FOREGROUND_PIXEL. | |
12790 | ||
12791 | * print.c (print_preprocess): Don't lose print_depth levels while | |
12792 | iterating. | |
12793 | ||
b8866860 SM |
12794 | * widget.c (update_from_various_frame_slots): |
12795 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
12796 | |
12797 | * window.c (set_window_buffer): Don't call clear_mouse_face on tty | |
12798 | frames. | |
12799 | (window_internal_height): Remove bogus make_number call. | |
b8866860 | 12800 | (init_window_once): Call make_terminal_frame with two zero parameters. |
8d9cc0b7 MB |
12801 | |
12802 | * fileio.c (Fread_file_name): Update comment. | |
12803 | ||
b8866860 SM |
12804 | * callint.c (Fcall_interactively): |
12805 | Use temporarily_switch_to_single_kboard instead of single_kboard_state. | |
8d9cc0b7 MB |
12806 | Make sure it is correctly unwound. |
12807 | ||
12808 | * xsmfns.c (x_session_close): New function. | |
12809 | ||
03f06e5c | 12810 | * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): |
8d9cc0b7 MB |
12811 | Delete declarations. |
12812 | ||
12813 | * xterm.h: Remove declaration for x_fully_uncatch_errors. | |
12814 | (x_output): Remove background_pixel and foreground_pixel fields. | |
03f06e5c | 12815 | (x_display_info): Add new field TERMINAL. Remove KBOARD field. |
c3f9fba8 | 12816 | (x_delete_device, x_session_close): Declare. |
8d9cc0b7 MB |
12817 | |
12818 | * lread.c: Include setjmp.h. Update declaration of `read_char'. | |
12819 | (read_filtered_event): Call `read_char' with a local | |
12820 | `wrong_kboard_jmpbuf'. | |
12821 | ||
b8866860 SM |
12822 | * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. |
12823 | Don't call single_kboard_state. Use FRAME_RIF. | |
8d9cc0b7 MB |
12824 | |
12825 | * process.c (Fmake_network_process): Don't unrequest_sigio on modern | |
12826 | systems. | |
12827 | ||
b8866860 | 12828 | * lisp.h (set_process_environment): Rename to `set_global_environment'. |
03f06e5c | 12829 | (Fframe_with_environment, Fset_input_meta_mode) |
8d9cc0b7 | 12830 | (Fset_quit_char): EXFUN. |
03f06e5c | 12831 | (x_create_device, tty_output, terminal, tty_display_info): Declare. |
8d9cc0b7 MB |
12832 | (init_sys_modes, reset_sys_modes): Update prototypes. |
12833 | (init_all_sys_modes, reset_all_sys_modes): New prototypes. | |
12834 | ||
b8866860 SM |
12835 | * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, |
12836 | Vlocal_key_translation_map, and Vkeyboard_translate_table. | |
03f06e5c | 12837 | (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): |
8d9cc0b7 | 12838 | Delete declarations. |
03f06e5c JB |
12839 | (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) |
12840 | (temporarily_switch_to_single_kboard, tty_read_avail_input): | |
8d9cc0b7 MB |
12841 | New declarations. |
12842 | ||
12843 | * emacs.c (main): Don't call init_sys_modes(), the new term_init() | |
12844 | already does that during init_display(). Call syms_of_keymap | |
b8866860 SM |
12845 | before syms_of_keyboard. Call `syms_of_terminal'. |
12846 | Call set_initial_environment, not set_process_environment. | |
8d9cc0b7 MB |
12847 | (shut_down_emacs): Call reset_all_sys_modes() instead of |
12848 | reset_sys_modes(). | |
12849 | ||
12850 | * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. | |
03f06e5c JB |
12851 | (internal_resolve_face_name, resolve_face_name_error): New functions. |
12852 | (resolve_face_name): Protect against loops and errors thrown by Fget. | |
12853 | (realize_default_face): Don't use FRAME_FONT unless frame is an X frame. | |
8d9cc0b7 MB |
12854 | (Ftty_supports_face_attributes_p): Update tty_capable_p call. |
12855 | ||
12856 | * scroll.c: Replace CURTTY() with local variables throughout the | |
12857 | file (where applicable). | |
12858 | (calculate_scrolling, calculate_direct_scrolling) | |
12859 | (scrolling_1, scroll_cost): Use the accessor macros for terminal | |
12860 | characteristics. | |
12861 | ||
12862 | * keymap.c (Vfunction_key_map): Remove. | |
b8866860 | 12863 | (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. |
8d9cc0b7 MB |
12864 | (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. |
12865 | (Vkey_translation_map): Remove. | |
12866 | (syms_of_keymap): Remove DEFVAR for key-translation-map. | |
c3f9fba8 | 12867 | (Fdescribe_buffer_bindings) |
8d9cc0b7 MB |
12868 | (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): |
12869 | Update for terminal-local key-translation-map. | |
12870 | ||
12871 | * Makefile.in (callproc.o): Update dependencies. | |
12872 | (lisp, shortlisp): Add termdev.elc. | |
12873 | (obj): Add terminal.o. | |
12874 | (terminal.o): Add dependencies. | |
12875 | [HAVE_CARBON]: Make terminal.o depend on macgui.h. | |
12876 | (data.o, fns.o): Add termhooks.h dependency. | |
12877 | (SOME_MACHINE_LISP): Add dnd.elc. | |
12878 | (minibuf.o): Fix typo. | |
12879 | Update dependencies. | |
12880 | ||
12881 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
12882 | (find_symbol_value): Use the selected frame's keyboard, not | |
12883 | current_kboard. | |
12884 | ||
12885 | * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of | |
12886 | Vwindow_system. | |
12887 | ||
12888 | * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from | |
12889 | Fmenu_bar_open. | |
12890 | (syms_of_xmenu): Update defsubr. | |
12891 | (mouse_position_for_popup, Fx_popup_menu) | |
12892 | (Fx_popup_dialog, x_activate_menubar, update_frame_menubar) | |
12893 | (set_frame_menubar, free_frame_menubar) | |
12894 | (create_and_show_popup_menu, xmenu_show, ) | |
12895 | (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not | |
12896 | an X frame. | |
12897 | ||
12898 | * xselect.c (x_own_selection): Abort if not an X frame. | |
12899 | (some_frame_on_display): Check if it is an X frame. | |
12900 | (x_handle_selection_clear): Deal with MULTI_KBOARD. | |
12901 | ||
12902 | * coding.c: Include frame.h and termhooks.h. | |
03f06e5c | 12903 | (terminal_coding, keyboard_coding): Delete. |
c3f9fba8 JB |
12904 | (Fset_terminal_coding_system_internal) |
12905 | (Fset_keyboard_coding_system_internal) | |
12906 | (Fkeyboard_coding_system) | |
03f06e5c JB |
12907 | (Fterminal_coding_system): Add a terminal parameter. |
12908 | Get terminal_coding from the terminal. | |
8d9cc0b7 MB |
12909 | (init_coding_once): Don't call setup_coding_system here. |
12910 | ||
12911 | * dispextern.h (set_scroll_region, turn_off_insert) | |
12912 | (turn_off_highlight, background_highlight, clear_end_of_line_raw) | |
12913 | (tty_clear_end_of_line, tty_setup_colors) | |
03f06e5c | 12914 | (delete_tty, updating_frame) |
8d9cc0b7 MB |
12915 | (produce_special_glyphs, produce_glyphs, write_glyphs) |
12916 | (insert_glyphs): Remove. | |
12917 | (raw_cursor_to, clear_to_end, tty_turn_off_insert) | |
03f06e5c | 12918 | (tty_turn_off_highlight, get_tty_size): Add declaration. |
b8866860 | 12919 | (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. |
8d9cc0b7 MB |
12920 | |
12921 | * frame.h (enum output_method): Add output_initial. | |
12922 | (struct x_output): Delete. | |
b8866860 SM |
12923 | (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
12924 | Access foreground_pixel and background_pixel directly from the frame. | |
8d9cc0b7 MB |
12925 | (tty_display): Delete. |
12926 | (struct frame): Add buried_buffer_list, foreground_pixel, | |
1f204af3 | 12927 | background_pixel and terminal. Delete kboard. |
8d9cc0b7 MB |
12928 | (union output_data): Add tty. |
12929 | (FRAME_KBOARD): Get the kboard from the terminal. | |
12930 | (FRAME_INITIAL_P): New macro. | |
12931 | (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) | |
12932 | (Qterm_environment_variable, Qdisplay_environment_variable) | |
b8866860 SM |
12933 | (make_terminal_frame, Qburied_buffer_list, Qwindow_system): |
12934 | New declarations. | |
8d9cc0b7 MB |
12935 | |
12936 | * termchar.h (tty_output, tty_display_info): New structures. | |
12937 | (tty_list): Declare. | |
12938 | (FRAME_TTY, CURTTY): New macros. | |
12939 | (must_write_spaces, min_padding_speed, fast_clear_end_of_line) | |
12940 | (line_ins_del_ok, char_ins_del_ok, scroll_region_ok) | |
12941 | (scroll_region_cost, memory_below_frame, fast_clear_end_of_line) | |
12942 | (dont_calculate_costs, no_redraw_on_reenter): Remove declarations. | |
12943 | ||
12944 | * callproc.c: Include frame.h and termhooks.h, for terminal | |
12945 | parameters. | |
12946 | (add_env): New function. | |
12947 | (child_setup): Use it. | |
b8866860 | 12948 | (child_setup, getenv_internal): Handle the new Vprocess_environment. |
8d9cc0b7 MB |
12949 | (getenv_internal): Fix get_terminal_param call. |
12950 | (Fgetenv_internal, egetenv): Update doc. | |
12951 | (syms_of_callproc): Initialize Vprocess_environment to nil. | |
03f06e5c | 12952 | Register and initialize them. Remove obsolete defvars. Update doc |
8d9cc0b7 MB |
12953 | strings. |
12954 | (child_setup): Handle Vlocal_environment_variables. | |
b8866860 SM |
12955 | (getenv_internal): Add terminal parameter. |
12956 | Handle Vlocal_environment_variables. | |
8d9cc0b7 MB |
12957 | (Fgetenv_internal): Add terminal parameter. |
12958 | (child_setup, getenv_internal, Fgetenv_internal): Store the local | |
b8866860 | 12959 | environment in a frame (not terminal) parameter. Update doc strings. |
8d9cc0b7 MB |
12960 | (set_initial_environment): Rename from set_global_environment. |
12961 | Store Emacs environment in initial frame parameter. | |
12962 | ||
12963 | * xdisp.c (redisplay_internal): Update references to | |
12964 | `previous_terminal_frame'. | |
12965 | (display_mode_line, Fformat_mode_line): Replace calls to | |
12966 | `push_frame_kboard' with `push_kboard'. | |
12967 | (get_glyph_string_clip_rects): Add extra parentheses and | |
12968 | braces to prevent compiler warnings. | |
12969 | (calc_pixel_width_or_height): Add xassert to check that the | |
12970 | frame is alive. Don't call `lookup_image' on a termcap frame. | |
12971 | (message2_nolog, message3_nolog, redisplay_internal) | |
12972 | (set_vertical_scroll_bar, redisplay_window, check_x_display_info) | |
12973 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background) | |
12974 | (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) | |
12975 | (Fx_display_pixel_width, Fx_display_pixel_height) | |
12976 | (Fx_display_planes, Fx_display_color_cells) | |
12977 | (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) | |
12978 | (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) | |
12979 | (Fx_display_backing_store, Fx_display_visual_class) | |
12980 | (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): | |
97ddc760 | 12981 | Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. |
8d9cc0b7 MB |
12982 | |
12983 | * xfns.c (x_set_foreground_color x_set_background_color) | |
b8866860 SM |
12984 | (x_set_mouse_color, x_set_cursor_color, x_make_gc): |
12985 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
12986 | (Fx_create_frame, x_create_tip_frame, build_string, x_window) |
12987 | (Fx_create_frame, x_create_tip_frame): Don't create frames on a | |
12988 | terminal that is being deleted. | |
12989 | (Fx_create_frame): Use `store_frame_param' to set `window-system' | |
b8866860 | 12990 | frame parameter, and make sure it overrides any user-supplied setting. |
8d9cc0b7 MB |
12991 | (Fx_close_connection, Fx_synchronize): Unify argument names with |
12992 | the rest of the DEFUNs. | |
12993 | ||
12994 | * dispnew.c (Fsend_string_to_terminal): Update call to | |
12995 | `get_tty_terminal'. | |
12996 | (Fredraw_frame, Fsend_string_to_terminal) | |
2d33f506 | 12997 | (Fsend_string_to_terminal, init_display): Use FRAME_RIF, |
8d9cc0b7 MB |
12998 | FRAME_TERMCAP_P and FRAME_TTY. |
12999 | (window_change_signal): Don't believe width/height values that are | |
13000 | impossibly small. | |
13001 | (Vinitial_window_system): Rename from Vwindow_system. | |
13002 | (termscript, Wcm, rif): Delete. | |
13003 | ||
13004 | * termhooks.h (struct terminal): New struct containing the | |
13005 | previously global text display hooks and new members NAME, | |
13006 | DELETED and PARAM_ALIST. | |
13007 | (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING) | |
13008 | (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P) | |
13009 | (FRAME_RIF): New macros. | |
13010 | (get_terminal_param, get_device): New declarations. | |
13011 | (termscript): Delete declaration. | |
13012 | ||
13013 | * xterm.c (x_initialize): Use Fset_input_interrupt_mode. | |
13014 | (XTflash, x_free_frame_resources, x_scroll_bar_create) | |
13015 | (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and | |
13016 | FRAME_FOREGROUND_PIXEL. | |
13017 | (x_fully_uncatch_errors): Disable definition. | |
13018 | (x_scroll_bar_expose): Fix reference to foreground pixel. | |
13019 | (XTread_socket): Disable loop on all X displays. | |
13020 | (x_delete_terminal): Don't set terminal->deleted and let | |
13021 | delete_terminal delete the frames on the terminal. | |
13022 | (x_delete_display): Doc update to reflect changes in | |
13023 | delete_terminal. | |
13024 | (x_display_info) <terminal>: Move member earlier in the struct. | |
8d9cc0b7 MB |
13025 | (deleting_tty): Remove old variable. |
13026 | (Fsuspend_tty): Call clear_tty_hooks. | |
13027 | (Fresume_tty, init_tty): Call set_tty_hooks. | |
8d9cc0b7 MB |
13028 | (Ftty_display_color_p, Ftty_display_color_cells): Don't throw |
13029 | errors on X frames. | |
13030 | (x_catch_errors_unwind): Abort if x_error_message is NULL. | |
13031 | (handle_one_xevent): Initialize `f' to NULL. | |
9cab96b0 | 13032 | (x_delete_terminal, x_create_terminal): New functions. |
8d9cc0b7 MB |
13033 | (XTset_terminal_modes, XTreset_terminal_modes) |
13034 | (XTread_socket, x_connection_closed, x_term_init) | |
13035 | (x_term_init, x_delete_display): Add terminal parameter. | |
13036 | (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary | |
13037 | X connections. | |
13038 | ||
bf380f53 GM |
13039 | * frame.c: Include termchar.h. |
13040 | (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type) | |
13041 | (Qwindow_system, Qenvironment, Qterm_environment_variable) | |
13042 | (Qdisplay_environment_variable): New vars. | |
13043 | (Fframep): Deal with output_initial. | |
13044 | (Fframe-live-p): Doc fix. | |
13045 | (Fwindow-system): New function. | |
8d9cc0b7 MB |
13046 | (x_set_screen_gamma, store_frame_param): Fix compilation errors. |
13047 | (make_terminal_frame): Don't create frames on a terminal that is | |
bf380f53 | 13048 | being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
b8866860 | 13049 | (store_frame_param): Check for found_for_frame before calling XFRAME. |
8d9cc0b7 MB |
13050 | (Fmake_terminal_frame): Handle NULL tty names correctly. |
13051 | (syms_of_frame): Enhance doc string of `default-frame-alist'. | |
bf380f53 GM |
13052 | (Fdelete_frame): Remove unused variable `count'. Don't allow other |
13053 | frames to refer to a deleted frame in their 'environment parameter. | |
8d9cc0b7 | 13054 | (Fframe_with_environment): New function. |
b8866860 | 13055 | (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. |
8d9cc0b7 MB |
13056 | (get_future_frame_param): New function. |
13057 | (Fmake_terminal_frame): Use it. | |
2d33f506 | 13058 | (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF. |
8d9cc0b7 MB |
13059 | |
13060 | * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. | |
13061 | * sysdep.c (reset_sys_modes): Update for renames. | |
13062 | ||
13063 | * keyboard.c (tty_read_avail_input): New function. | |
03f06e5c | 13064 | (Fset_input_interrupt_mode, Fset_output_flow_control): New functions. |
8d9cc0b7 MB |
13065 | (syms_of_keyboard): Defsubr them. |
13066 | (Fset_input_meta_mode, Fset_quit_char): New functions. | |
13067 | (Fset_input_mode): Split to above functions. | |
8d9cc0b7 MB |
13068 | (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf |
13069 | parameter. Use it in call to `read_char'. | |
b8866860 SM |
13070 | (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. |
13071 | Set wrong_kboard_jmpbuf correctly in recursive calls. | |
13072 | Use current_kboard to access Vkeyboard_translate_table. | |
13073 | Enhance comment before extra longjmp to wrong_kboard_jmpbuf. | |
13074 | Add wrong_kboard_jmpbuf parameter to allow for recursive calls. | |
13075 | Update longjmp invocations. Remember the original current_kboard, | |
13076 | and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel | |
13077 | changes it. Comment out unnecessary calls to | |
13078 | `record_single_kboard_state' and `any_kboard_state'. | |
13079 | Update recursive calls. | |
8d9cc0b7 MB |
13080 | (wrong_kboard_jmpbuf): Remove global variable. |
13081 | (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. | |
13082 | Handle deleted interrupted_kboards correctly; that is a legal | |
13083 | case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp | |
b8866860 | 13084 | and read_char calls. Abort if interrupted_kboard died in read_char. |
8d9cc0b7 MB |
13085 | (any_kboard_state, single_kboard_state) |
13086 | (push_frame_kboard): Remove function. | |
13087 | (pop_kboard): Switch out of single_kboard mode if the kboard has | |
03f06e5c JB |
13088 | been deleted. Remove unused variable. Help debugging by not |
13089 | changing current_kboard unnecessarily. Set current_kboard to the | |
8d9cc0b7 MB |
13090 | kboard of the selected frame when the stored kboard object has |
13091 | been deleted before pop_kboard. | |
13092 | (temporarily_switch_to_single_kboard): Change first parameter to a | |
13093 | frame pointer. Throw an error when caller wants to change kboards | |
13094 | while in single_kboard mode. Don't push_kboard if we weren't in | |
13095 | single kboard state. Don't pop_kboard if we popped into any | |
13096 | kboard state. | |
13097 | (restore_kboard_configuration): Abort if pop_kboard changed the | |
03f06e5c | 13098 | kboard in single_kboard mode. Call pop_kboard only after setting |
8d9cc0b7 MB |
13099 | up single_kboard mode. |
13100 | (Frecursive_edit): Switch to single_kboard mode only in nested | |
13101 | command loops. | |
b8866860 SM |
13102 | (cmd_error, command_loop, command_loop_1, timer_check): |
13103 | Comment out unnecessary call to `any_kboard_state' and | |
8d9cc0b7 MB |
13104 | `record_single_kboard_state'. |
13105 | (delete_kboard): Exit single_kboard mode if we have just deleted | |
03f06e5c | 13106 | that kboard. Use FRAME_KBOARD. |
8d9cc0b7 MB |
13107 | (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not |
13108 | `fatal_error_signal'. | |
13109 | (record_single_kboard_state): Don't push_kboard if we weren't in | |
13110 | single kboard state. Don't pop_kboard if we popped into any | |
13111 | kboard state. | |
13112 | (push_frame_kboard): Rename to push_kboard. | |
13113 | (kbd_buffer_get_event): Use FRAME_TERMINAL. | |
13114 | (read_avail_input): Read input from all terminals. | |
13115 | (mark_kboards): Also mark Vkeyboard_translate_table. | |
13116 | (kbd_buffer_store_event_hold): Simplify condition. | |
13117 | (read_key_sequence): Reinitialize fkey and keytran at each replay. | |
13118 | (Vkeyboard_translate_table): Move to struct kboard. | |
13119 | (init_kboard): Initialize Vkeyboard_translate_table. | |
13120 | (syms_of_keyboard): Use DEFVAR_KBOARD to define | |
13121 | Vkeyboard_translate_table. Update doc strings. Update docs of | |
13122 | local-function-key-map and function-key-map. | |
13123 | ||
13124 | * terminal.c: New file. | |
13125 | ||
13126 | * term.c: Include errno.h. | |
13127 | (Vring_bell_function, device_list, initial_device) | |
13128 | (next_device_id, ring_bell, update_begin, update_end) | |
13129 | (set_terminal_window, cursor_to, raw_cursor_to) | |
13130 | (clear_to_end, clear_frame, clear_end_of_line) | |
13131 | (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) | |
13132 | (Fdisplay_name, create_device, delete_device): Move to terminal.c. | |
13133 | (syms_of_term): Move their initialization to terminal.c. | |
13134 | (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p) | |
13135 | (Ftty_display_color_cells) | |
13136 | (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) | |
9cab96b0 | 13137 | (clear_tty_hooks, set_tty_hooks) |
8d9cc0b7 MB |
13138 | (init_tty, maybe_fatal): New functions. |
13139 | (Ftty_type): Return nil if terminal is not on a tty instead of | |
13140 | throwing an error. Doc update. | |
13141 | (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>: | |
03f06e5c | 13142 | Doc update. Initialize new subrs and variables. |
8d9cc0b7 MB |
13143 | (delete_tty): Use terminal->deleted. |
13144 | (tty_set_terminal_modes): Rename from set_terminal_modes. | |
13145 | (tty_reset_terminal_modes): Rename from reset_terminal_modes. | |
13146 | (set_scroll_region): Rename to `tty_set_scroll_region'. | |
13147 | (turn_on_insert): Rename to `tty_turn_on_insert'. | |
13148 | (turn_off_insert): Rename to `tty_turn_off_insert'. | |
13149 | (turn_off_highlight): Rename to `tty_turn_off_highlight'. | |
13150 | (turn_on_highlight): Rename to `tty_turn_on_highlight'. | |
13151 | (toggle_highligh): Rename to `tty_toggle_highlight'. | |
13152 | (background_highlight): Rename to `tty_background_highlight'. | |
13153 | (highlight_if_desired): Rename to `tty_highlight_if_desired'. | |
13154 | (tty_ring_bell, tty_update_end, tty_set_terminal_window) | |
13155 | (tty_set_scroll_region, tty_background_highlight) | |
13156 | (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) | |
13157 | (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) | |
13158 | (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) | |
13159 | (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty): | |
13160 | Add static modifier. | |
13161 | (tty_reset_terminal_modes, tty_set_terminal_window) | |
13162 | (tty_set_scroll_region, tty_background_highlight) | |
13163 | (tty_highlight_if_desired, tty_cursor_to) | |
13164 | (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) | |
13165 | (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) | |
13166 | (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for | |
13167 | renames. | |
13168 | ||
880820fe | 13169 | 2007-08-28 Jan Djärv <jan.h.d@swipnet.se> |
cf0590c4 JD |
13170 | |
13171 | * keyboard.c: Qrtl is new. | |
13172 | (parse_tool_bar_item): Handle :rtl keyword. | |
13173 | (syms_of_keyboard): Intern :rtl keyword. | |
13174 | ||
13175 | * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. | |
13176 | ||
13177 | * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED | |
13178 | so no Lisp code is executed. | |
13179 | (file_for_image, find_rtl_image): New functions. | |
1f204af3 | 13180 | (xg_get_image_for_pixmap): Use file_for_image. |
cf0590c4 JD |
13181 | (update_frame_tool_bar): If direction is RTL, use RTL image if |
13182 | defined. Use Gtk stock images if defined. | |
13183 | ||
83cc8d35 YM |
13184 | 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13185 | ||
13186 | * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle | |
13187 | for nonexistent or zero-width glyph in composition glyph. | |
13188 | ||
e60c4e15 SM |
13189 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> |
13190 | ||
d7e2a28f SM |
13191 | * m/amdx86-64.h: Redirect to intel386.h if compiling for i386. |
13192 | ||
e60c4e15 SM |
13193 | * xdisp.c (Finvisible_p): New function. |
13194 | (syms_of_xdisp): defsubr it. | |
13195 | ||
ee163e6d JB |
13196 | 2007-08-24 Juanma Barranquero <lekktu@gmail.com> |
13197 | ||
13198 | * image.c (syms_of_image) <image-library-alist, cross-disabled-images>: | |
13199 | Doc fixes. | |
13200 | ||
90fa408d YM |
13201 | 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13202 | ||
35277b03 | 13203 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. |
90fa408d | 13204 | |
cac4219c MR |
13205 | 2007-08-24 Martin Rudalics <rudalics@gmx.at> |
13206 | ||
13207 | * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell | |
13208 | whether decoding has modified buffer contents. | |
13209 | ||
5fc9fdeb JR |
13210 | 2007-08-24 Jason Rumney <jasonr@gnu.org> |
13211 | ||
13212 | * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG. | |
13213 | (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols. | |
13214 | (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them. | |
13215 | (init_svg_functions) [HAVE_NTGUI]: New function. | |
13216 | (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines. | |
13217 | (svg_load_image): Use them. | |
13218 | (svg_load_image) [HAVE_NTGUI]: Implement background. | |
13219 | ||
93b23406 YM |
13220 | 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13221 | ||
13222 | * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables. | |
13223 | (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@. | |
13224 | (LIBX): Remove @RSVG_LIBS@. | |
13225 | (LIBES): Add $(RSVG_LIBS). | |
13226 | ||
13227 | * image.c (svg_load_image): Blend with specified background if exists. | |
13228 | Use IMAGE_BACKGROUND. Add Mac OS Support. | |
13229 | ||
13230 | * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. | |
13231 | (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: | |
13232 | Remove macros. | |
13233 | [MAC_OSX] (socket_callback): Do nothing. | |
13234 | [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of | |
13235 | ReceiveNextEvent. | |
13236 | [MAC_OSX] (sys_select): Likewise. Don't set context as argument to | |
13237 | socket_callback. | |
13238 | (mac_wakeup_from_rne) [MAC_OSX]: Do nothing. | |
13239 | ||
2467875c GM |
13240 | 2007-08-22 Glenn Morris <rgm@gnu.org> |
13241 | ||
ff8da443 | 13242 | * image.c (x_find_image_file): Search in etc/images/ rather than etc/. |
2467875c | 13243 | |
4ab27a43 GM |
13244 | 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net> |
13245 | ||
13246 | * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS. | |
ff8da443 | 13247 | |
666e0eda GM |
13248 | * image.c: Add support for SVG images. Some additional comments |
13249 | by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined: | |
13250 | (svg_image_p): New function to test for SVG image. | |
13251 | (svg_load): New function to load SVG image. | |
13252 | (svg_load_image): New function, helper for svg_load. | |
13253 | (Qsvg): New Lisp_object. | |
13254 | (svg_keyword_index): New enum. | |
13255 | (svg_format): New static `image_keyword' struct. | |
13256 | (svg_type): New static `image_type' struct. | |
13257 | (librsvg/rsvg.h): Include it. | |
4ab27a43 | 13258 | |
b636b4c1 SM |
13259 | 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> |
13260 | ||
13261 | * lread.c (load_warn_old_style_backquotes): Fix up array size typo. | |
13262 | ||
9ecb827b SM |
13263 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
13264 | ||
1d064697 SM |
13265 | * lread.c (Qold_style_backquotes): New var. |
13266 | (syms_of_lread): Init and staticpro it. | |
13267 | (load_warn_old_style_backquotes): New fun. | |
13268 | (Fload): Use them to warn about old style backquotes. | |
13269 | (end_of_file_error, Fload): Remove unused vars. | |
13270 | ||
5772ed4b SM |
13271 | * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. |
13272 | ||
9ecb827b | 13273 | * lread.c (Vold_style_backquotes): New var. |
5aa273b0 | 13274 | (syms_of_lread): Init and export it to Elisp. |
9ecb827b SM |
13275 | (read1): Set it when we find an old-style (back)quote. |
13276 | ||
32e1c7b1 JR |
13277 | 2007-08-22 Jason Rumney <jasonr@gnu.org> |
13278 | ||
13279 | * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. | |
13280 | ||
b8fa755b KY |
13281 | 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org> |
13282 | ||
13283 | * puresize.h (BASE_PURESIZE): Increase to 1140000. | |
13284 | ||
1283140e RS |
13285 | 2007-08-19 Richard Stallman <rms@gnu.org> |
13286 | ||
13287 | * eval.c (Ffunction, Fquote): Signal error if not 1 argument. | |
13288 | ||
2c4685ee AS |
13289 | 2007-08-19 Andreas Schwab <schwab@suse.de> |
13290 | ||
13291 | * alloc.c (pure): Round PURESIZE up. | |
13292 | ||
880820fe | 13293 | 2007-08-17 Jan Djärv <jan.h.d@swipnet.se> |
e8953ebf JD |
13294 | |
13295 | * xterm.c (handle_one_xevent): Remove check that mouse click is in | |
13296 | active frame. | |
13297 | ||
6e33efc4 RS |
13298 | 2007-08-16 Richard Stallman <rms@gnu.org> |
13299 | ||
13300 | * eval.c (Fcommandp): Add parens to clarify. | |
13301 | ||
13302 | * minibuf.c (Fall_completions): Use enum for type of table. | |
13303 | ||
13304 | * emacs.c (USAGE2): Improve text. | |
13305 | ||
fcf8ff2e GM |
13306 | 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> |
13307 | ||
5205ee62 GM |
13308 | * term.c (tty_default_color_capabilities): Declare static |
13309 | variables in file scope, to avoid HPUX compiler problem. | |
fcf8ff2e | 13310 | |
880820fe | 13311 | 2007-08-13 Jan Djärv <jan.h.d@swipnet.se> |
81d13a51 JD |
13312 | |
13313 | * gtkutil.c (update_frame_tool_bar): Use -1 as index | |
13314 | to gtk_toolbar_insert. | |
13315 | ||
4a181359 SM |
13316 | 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca> |
13317 | ||
1bc99c9c SM |
13318 | * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. |
13319 | ||
4a181359 SM |
13320 | * insdel.c (reset_var_on_error): New fun. |
13321 | (signal_before_change, signal_after_change): | |
13322 | Use it to reset (after|before)-change-functions to nil in case of error. | |
13323 | Bind inhibit-modification-hooks to t. | |
13324 | Don't bind (after|before)-change-functions to nil while they run. | |
13325 | ||
6c28435c YM |
13326 | 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13327 | ||
13328 | * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when | |
13329 | filling pixmap with stippled background. | |
13330 | ||
ad3b3e02 YM |
13331 | 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13332 | ||
13333 | * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): | |
13334 | Don't use invisible frame as parent window for repositioning. | |
13335 | ||
a22dec27 SM |
13336 | 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> |
13337 | ||
13338 | * print.c (new_backquote_output): Rename from old_backquote_output. | |
13339 | (print): Inverse its logic (according to its name) so as to match the | |
13340 | behavior of new_backquote_flag in lread.c. | |
13341 | ||
7b7d07bb YM |
13342 | 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13343 | ||
13344 | * gmalloc.c (posix_memalign): New function. | |
13345 | ||
13346 | * macterm.c (frame_highlight, frame_unhighlight): Don't call | |
13347 | ActivateControl/DeactivateControl here. | |
13348 | [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when | |
13349 | frame-notice-user-settings is non-nil. | |
13350 | [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter | |
13351 | for kEventParamFMFontStyle. | |
13352 | [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check | |
13353 | mac_pass_command_to_system and mac_pass_control_to_system here. | |
13354 | (XTread_socket): Call ActivateControl/DeactivateControl here. | |
13355 | (XTread_socket) [TARGET_API_MAC_CARBON]: | |
13356 | Check mac_pass_command_to_system and mac_pass_control_to_system here. | |
f9426479 YM |
13357 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround |
13358 | for window repositioning. | |
7b7d07bb | 13359 | |
22e9fe24 GM |
13360 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
13361 | ||
13362 | * Replace `iff' in doc-strings and comments. | |
13363 | ||
ae494350 CY |
13364 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> |
13365 | ||
13366 | * xdisp.c (move_it_by_lines): Remove incorrect optimization. | |
13367 | ||
6f2528d8 MR |
13368 | 2007-08-07 Martin Rudalics <rudalics@gmx.at> |
13369 | ||
13370 | * fileio.c (Finsert_file_contents): Run format-decode and | |
13371 | after_insert_file_functions on entire buffer when REPLACE is | |
13372 | non-nil and inhibit modification_hooks and point_motion_hooks. | |
13373 | For consistency, run after_insert_file_functions iff something | |
13374 | got inserted. Move signal_after_change and update_compositions | |
13375 | after code running after_insert_file_functions. Make sure that | |
6b8e474c | 13376 | undo_list doesn't record intermediate steps of the decoding process. |
6f2528d8 | 13377 | |
3ceeb306 YM |
13378 | 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13379 | ||
13380 | * emacs.c (main) | |
13381 | [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | |
13382 | Call malloc_enable_thread on interactive startup. | |
13383 | ||
13384 | * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. | |
7b7d07bb YM |
13385 | (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) |
13386 | [USE_PTHREAD]: Conditionalize with it. | |
3ceeb306 YM |
13387 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) |
13388 | (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: | |
13389 | New functions. | |
13390 | ||
ca5e6fd5 CY |
13391 | 2007-08-06 Chong Yidong <cyd@stupidchicken.com> |
13392 | ||
32bfce5d CY |
13393 | * xdisp.c (redisplay_window): When restoring original buffer |
13394 | position, make sure it is still valid. | |
13395 | ||
ca5e6fd5 CY |
13396 | * image.c (png_load): Ignore png-supplied background color. |
13397 | ||
a5b11587 YM |
13398 | 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13399 | ||
13400 | * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. | |
13401 | Use kCFAbsoluteTimeIntervalSince1970. | |
13402 | ||
13403 | * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: | |
13404 | New variable. | |
13405 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog | |
13406 | event loop should be quit. | |
13407 | [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: | |
13408 | Quit dialog event loop if quit_dialog_event_loop is set. | |
13409 | ||
13410 | * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h. | |
13411 | (Selection): New typedef. Use instead of ScrapRef. | |
13412 | (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol. | |
13413 | (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p. | |
13414 | (mac_clear_selection): Rename from clear_scrap. | |
13415 | (get_flavor_type_from_symbol): New argument SEL and subsume function of | |
ff8da443 | 13416 | scrap_has_target_type. All uses changed. |
a5b11587 YM |
13417 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) |
13418 | (mac_selection_has_target_p): New functions. | |
13419 | (mac_put_selection_value): Rename from put_scrap_string. | |
13420 | (mac_get_selection_value): Rename from get_scrap_string. | |
13421 | (mac_get_selection_target_list): Rename from get_scrap_target_type_list. | |
13422 | (put_scrap_private_timestamp, scrap_has_target_type) | |
13423 | (get_scrap_private_timestamp): Remove functions. | |
13424 | (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define. | |
13425 | (x_own_selection, x_get_local_selection): | |
13426 | Use mac_valid_selection_value_p. | |
13427 | (x_own_selection): Don't use put_scrap_private_timestamp. | |
13428 | Record OWNERSHIP-INFO into Vselection_alist instead. | |
13429 | (x_get_local_selection): Don't check type if request is local. | |
13430 | (Fx_selection_owner_p): Don't use get_scrap_private_timestamp. | |
13431 | Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead. | |
13432 | ||
880820fe | 13433 | 2007-08-04 Jan Djärv <jan.h.d@swipnet.se> |
991bde0d JD |
13434 | |
13435 | * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s, | |
13436 | add comment explaining why. | |
13437 | ||
73ff9d42 RS |
13438 | 2007-08-03 Richard Stallman <rms@gnu.org> |
13439 | ||
13440 | * fileio.c (Fvisited_file_modtime): Use make_time. | |
13441 | ||
54ed9a2d | 13442 | 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) |
cdf5c17a VJL |
13443 | |
13444 | * mac.c (init_mac_osx_environment): Adjust load-path on self-contained | |
13445 | build. | |
13446 | ||
65a9c8e2 SM |
13447 | 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> |
13448 | ||
13449 | * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT. | |
13450 | ||
c5925799 KY |
13451 | 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org> |
13452 | ||
13453 | * puresize.h (BASE_PURESIZE): Increase to 1130000. | |
13454 | ||
adef3de7 RS |
13455 | 2007-07-30 Richard Stallman <rms@gnu.org> |
13456 | ||
13457 | * lread.c (readevalloop, read1): Treat NBSP as whitespace. | |
13458 | ||
880820fe | 13459 | 2007-07-29 Jan Djärv <jan.h.d@swipnet.se> |
784c1472 JD |
13460 | |
13461 | * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. | |
13462 | ||
a10421a1 NR |
13463 | 2007-07-28 Nick Roberts <nickrob@snap.net.nz> |
13464 | ||
13465 | * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for | |
13466 | remote default-directory. | |
13467 | ||
13468 | * buffer.c (mode-line-format): Update doc string. | |
13469 | ||
0cb1ae20 YM |
13470 | 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13471 | ||
13472 | * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to | |
13473 | scroll bar gap. | |
13474 | (x_scroll_bar_create): Set bar->fringe_extended_p. | |
13475 | (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars | |
13476 | on frame edge. Check fringe background extension. Don't clear | |
13477 | extended fringe background area. | |
13478 | ||
13479 | * w32term.h (struct scroll_bar): New member fringe_extended_p. | |
13480 | (w32_fill_area): Enclose multiple statements with do ... while (0). | |
13481 | ||
13482 | * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: | |
13483 | Extend fringe background to scroll bar gap. | |
13484 | (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: | |
13485 | Set bar->fringe_extended_p. | |
13486 | (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
13487 | Put leftmost/rightmost scroll bars on frame edge. Check fringe | |
13488 | background extension. Don't clear extended fringe background area. | |
13489 | ||
13490 | * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
13491 | New member fringe_extended_p. | |
13492 | ||
cacc7b51 GM |
13493 | 2007-07-25 Glenn Morris <rgm@gnu.org> |
13494 | ||
13495 | * Relicense all FSF files to GPLv3 or later. | |
13496 | ||
13497 | * COPYING: Switch to GPLv3. | |
13498 | ||
89835619 SM |
13499 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> |
13500 | ||
c4f46926 SM |
13501 | * eval.c (Fcommandp): Pay attention to the `interactive-form' property. |
13502 | ||
13503 | * data.c (Finteractive_form): Check for the presence of an | |
13504 | `interactive-form' symbol property more thoroughly. | |
13505 | ||
13506 | * data.c (Finteractive_form): Use an `interactive-form' property if | |
89835619 SM |
13507 | present, analogous to the function-documentation property. |
13508 | ||
ee04257d JR |
13509 | 2007-07-24 Jason Rumney <jasonr@gnu.org> |
13510 | ||
13511 | * w32fns.c (x_real_positions): Get real position from OS instead of | |
13512 | calculating it. | |
13513 | ||
50624218 JR |
13514 | 2007-07-23 Jason Rumney <jasonr@gnu.org> |
13515 | ||
13516 | * filelock.c (current_lock_owner): Allow for @ sign in username. | |
13517 | ||
3650f60e NR |
13518 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> |
13519 | ||
13520 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for | |
13521 | remote default-directory. | |
13522 | ||
13523 | * buffer.c (mode-line-format): Describe above case in doc string. | |
13524 | ||
1e899515 | 13525 | 2007-07-20 Eli Zaretskii <eliz@gnu.org> |
b395d6e1 | 13526 | |
75be5258 EZ |
13527 | * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): |
13528 | Define if not defined. | |
13529 | ||
2b6e2f4d JR |
13530 | 2007-07-18 Jason Rumney <jasonr@gnu.org> |
13531 | ||
13532 | * w32proc.c (w32_executable_type): Handle 64 bit executables. | |
13533 | ||
23dacf80 JB |
13534 | 2007-07-18 Richard Stallman <rms@gnu.org> |
13535 | ||
13536 | * data.c (Fsetq_default): Doc fix. | |
13537 | ||
13538 | * eval.c (Fsetq): Doc fix. | |
13539 | ||
13540 | 2007-07-18 Juanma Barranquero <lekktu@gmail.com> | |
13541 | ||
13542 | * coding.c (Ffind_operation_coding_system): | |
13543 | * eval.c (For, Fand): Doc fixes. | |
880820fe | 13544 | Reported by Johan Bockgård. |
23dacf80 | 13545 | |
880820fe | 13546 | 2007-07-18 Jan Djärv <jan.h.d@swipnet.se> |
656de71a | 13547 | |
23dacf80 | 13548 | * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame. |
656de71a | 13549 | |
23dacf80 | 13550 | * xterm.h: Declare x_ewmh_activate_frame. |
656de71a JD |
13551 | |
13552 | * xterm.c (x_ewmh_activate_frame): New function. | |
13553 | (XTframe_raise_lower): Move code to x_ewmh_activate_frame. | |
13554 | ||
71ec17e6 MR |
13555 | 2007-07-17 Martin Rudalics <rudalics@gmx.at> |
13556 | ||
13557 | * window.c (Fdisplay_buffer): If largest or LRU window is the | |
13558 | only window, split it even if it is not eligible for splitting. | |
13559 | This restores the original behavior broken by the 2007-07-15 | |
13560 | change. | |
13561 | ||
e9818042 GM |
13562 | 2007-07-17 Glenn Morris <rgm@gnu.org> |
13563 | ||
13564 | * abbrev.c (abbrev_check_chars): New function. | |
6b8e474c SM |
13565 | (Fdefine_global_abbrev, Fdefine_mode_abbrev): |
13566 | Call abbrev_check_chars to check abbrev characters are word | |
e9818042 GM |
13567 | constituents. Doc fix. |
13568 | ||
e6fca843 SM |
13569 | 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca> |
13570 | ||
13571 | * process.c (Fstart_process, Fmake_network_process) | |
13572 | (read_process_output): Fix up last changes. | |
13573 | ||
b5d2b4ab EZ |
13574 | 2007-07-16 Eli Zaretskii <eliz@gnu.org> |
13575 | ||
13576 | * makefile.w32-in (clean): Don't delete *~. | |
13577 | ||
413a79ad AS |
13578 | 2007-07-16 Andreas Schwab <schwab@suse.de> |
13579 | ||
13580 | * window.c (Fdisplay_buffer): Use NILP. | |
13581 | (Fset_window_scroll_bars): Likewise. | |
13582 | ||
f1de8c77 MR |
13583 | 2007-07-15 Martin Rudalics <rudalics@gmx.at> |
13584 | ||
13585 | * window.c (window_min_size_2): New function. | |
13586 | (window_min_size_1, size_window, Fdisplay_buffer) | |
13587 | (Fsplit_window, adjust_window_trailing_edge): Use it to avoid | |
13588 | windows without mode- or header-lines when window-min-height is | |
13589 | too small. | |
13590 | (size_window): Reset nodelete_p after testing it, following an | |
13591 | earlier note by Kim F. Storm. | |
13592 | (display_buffer): Do not set split_height_threshold to twice the | |
13593 | value of window_min_height to avoid changing the value of a | |
13594 | customizable variable. Rather explicitly check whether the | |
13595 | height of the window that shall be splitted is at least as large | |
13596 | as split_height_threshold. | |
1af74d06 MB |
13597 | (Fwindow_full_width_p): New defun. |
13598 | (syms_of_window): Defsubr it. | |
d31053f9 | 13599 | |
1af74d06 | 13600 | * window.h: Add EXFUN for Fwindow_full_width_p. |
f1de8c77 | 13601 | |
5e1ab613 JR |
13602 | 2007-07-14 Jason Rumney <jasonr@gnu.org> |
13603 | ||
13604 | * process.c [WINDOWSNT]: Don't undefine AF_INET6. | |
13605 | ||
f01cbfdd RS |
13606 | 2007-07-14 Richard Stallman <rms@gnu.org> |
13607 | ||
13608 | * eval.c (maybe_call_debugger): New function. | |
13609 | (find_handler_clause): Use maybe_call_debugger. | |
13610 | Call it when the handler says `debug'. | |
13611 | Eliminate DEBUGGER_VALUE_PTR. | |
13612 | (Fsignal): Eliminate debugger_value. | |
13613 | (Qdebug): New variable. | |
13614 | (syms_of_eval): Initialize it. | |
13615 | ||
1bab435a JB |
13616 | 2007-07-14 Juanma Barranquero <lekktu@gmail.com> |
13617 | ||
13618 | * eval.c (Fprogn): | |
13619 | * keyboard.c (Ftrack_mouse): | |
13620 | * print.c (Fwith_output_to_temp_buffer): | |
13621 | * window.c (Fsave_window_excursion): Doc fix. | |
13622 | ||
be436d23 SM |
13623 | 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca> |
13624 | ||
13625 | * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. | |
13626 | ||
60f0fb11 SM |
13627 | 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca> |
13628 | ||
13629 | * process.h (struct Lisp_Process): Turn slots infd, outfd, | |
13630 | kill_without_query, pty_flag, tick, update_tick, decoding_carryover, | |
13631 | inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering, | |
13632 | read_output_delay, and read_output_skip from Lisp_Objects to ints. | |
13633 | Remove unused encoding_carryover. | |
13634 | * process.c: Adjust all functions accordingly. | |
13635 | ||
d8b18043 RS |
13636 | 2007-07-12 Richard Stallman <rms@gnu.org> |
13637 | ||
13638 | * term.c: Include unistd.h only if HAVE_UNISTD_H. | |
13639 | ||
d5781bb6 JR |
13640 | 2007-07-11 Jason Rumney <jasonr@gnu.org> |
13641 | ||
13642 | * makefile.w32-in (LIBS): Include OLE32. | |
13643 | ||
13644 | * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM. | |
13645 | (w32_msg_pump) <WM_DESTROY>: Uninitialize COM. | |
13646 | ||
5bb7dfee SM |
13647 | 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca> |
13648 | ||
13649 | * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer. | |
13650 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned | |
13651 | from a Lisp_Object into a bare pointer. | |
13652 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
13653 | Adjust the code correspondingly. | |
13654 | ||
13655 | * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'. | |
13656 | ||
13657 | * term.c: Include unistd.h for ttyname, used in handle_one_term_event. | |
13658 | (term_show_mouse_face): Remove unused var `j'. | |
13659 | (handle_one_term_event): Remove unused vars `i' and `j'. | |
13660 | Don't cast return value of ttyname since it's not necessary. | |
13661 | ||
a1be1ce8 SM |
13662 | 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca> |
13663 | ||
5045e68e SM |
13664 | * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using |
13665 | USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. | |
13666 | ||
8071c00f SM |
13667 | * fns.c (map_char_table): Use an array of int for `indices' rather than |
13668 | an array of Lisp_Objects (which are only ever integers anyway). | |
13669 | (Fmap_char_table): Update caller. | |
13670 | * lisp.h: Update prototype. | |
13671 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap): | |
13672 | * fontset.c (Ffontset_info): | |
13673 | * casetab.c (set_case_table): Update callers. | |
13674 | ||
13675 | * editfns.c (Ftranspose_regions): Use EMACS_INT for positions. | |
13676 | ||
fab84e3c SM |
13677 | * keymap.c (struct accessible_keymaps_data) |
13678 | (struct where_is_internal_data): New structures. | |
13679 | (accessible_keymaps_1, where_is_internal_1): Use them to change | |
13680 | interface to adhere to the one used by map_keymap. | |
13681 | (Faccessible_keymaps, where_is_internal): Use map_keymap. | |
13682 | (accessible_keymaps_char_table, where_is_internal_2): Remove. | |
13683 | ||
a1be1ce8 SM |
13684 | * keymap.h (map_keymap_function_t): More informative prototype. |
13685 | ||
ef887810 RS |
13686 | 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com> |
13687 | ||
13688 | * search.c (Vinhibit_changing_match_data, search_regs_1): New vars. | |
13689 | (looking_at_1): Don't change search_regs and last_thing_searched | |
13690 | if `inhibit-changing-match-data' is non-nil. | |
13691 | (string_match_1, search_buffer, set_search_regs): Likewise. | |
13692 | (syms_of_search): Add Lisp level definition for | |
13693 | `inhibit-changing-match-data' and set it to nil. | |
8071c00f SM |
13694 | (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute |
13695 | start and end of the match, instead of using values in search_regs. | |
ef887810 | 13696 | |
4d02fc25 SM |
13697 | 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca> |
13698 | ||
13699 | * minibuf.c (Fcompleting_read): New value `confirm-only' | |
13700 | for `require-match'. | |
13701 | ||
fe45b81f SM |
13702 | 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca> |
13703 | ||
13704 | * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as | |
13705 | part of the 2007-06-27 change to syms_of_fileio. | |
13706 | ||
a56dd283 YM |
13707 | 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13708 | ||
13709 | * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): | |
13710 | Check WINDOWP before using XWINDOW. Consolidate return statements. | |
13711 | ||
0cf9f5b5 RS |
13712 | 2007-06-27 Richard Stallman <rms@gnu.org> |
13713 | ||
13714 | * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix. | |
13715 | ||
a66f285a JB |
13716 | 2007-06-27 Juanma Barranquero <lekktu@gmail.com> |
13717 | ||
13718 | * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring. | |
13719 | ||
8d0d84d2 YM |
13720 | 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13721 | ||
13722 | * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. | |
13723 | (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. | |
13724 | (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. | |
13725 | (_free_internal, memalign): Use them. | |
13726 | (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: | |
13727 | Initialize to PTHREAD_MUTEX_INITIALIZER. | |
13728 | (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. | |
13729 | (morecore_nolock): Rename from morecore. All uses changed. | |
13730 | Use only nolock versions of internal allocation functions. | |
13731 | (_malloc_internal_nolock, _realloc_internal_nolock) | |
13732 | (_free_internal_nolock): New functions created from | |
13733 | _malloc_internal, _realloc_internal, and _free_internal. | |
13734 | (_malloc_internal, _realloc_internal, _free_internal): Use them. | |
13735 | Copy hook value to automatic variable before its use. | |
13736 | (memalign): Copy hook value to automatic variable before its use. | |
13737 | ||
5a0bbd9a KH |
13738 | 2007-06-26 Kenichi Handa <handa@m17n.org> |
13739 | ||
13740 | * coding.c (Ffind_operation_coding_system): Docstring improved. | |
13741 | (syms_of_coding): Docstring of `file-coding-system-alist' improved. | |
13742 | ||
9a51747b DK |
13743 | 2007-06-25 David Kastrup <dak@gnu.org> |
13744 | ||
13745 | * keymap.c (Fcurrent_active_maps): Add `position' argument. | |
13746 | (Fwhere_is_internal): Adjust call to `current-active-maps' to | |
13747 | cater for additional parameter. | |
13748 | ||
13749 | * keymap.h: Adjust number of parameters to `current-active-maps'. | |
13750 | ||
13751 | * doc.c (Fsubstitute_command_keys): Adjust call of | |
13752 | `current-active-maps'. | |
13753 | ||
e4305426 DK |
13754 | 2007-06-25 David Kastrup <dak@gnu.org> |
13755 | ||
13756 | * callint.c (Fcall_interactively): Make the parsing of interactive | |
13757 | specs somewhat more readable. | |
13758 | ||
511a18d9 YM |
13759 | 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13760 | ||
13761 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background | |
13762 | to scroll bar gap also when bitmap fills fringe. Draw only foreground | |
13763 | if extended background has already been filled. | |
13764 | ||
512eb161 YM |
13765 | 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13766 | ||
13767 | * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI. | |
13768 | (USE_MAC_TOOLBAR): Require USE_CG_DRAWING. | |
13769 | ||
13770 | * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: | |
13771 | Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p | |
13772 | in #if 0 as it is not compatible with y-or-n-p-with-timeout. | |
13773 | (timer_check) [TARGET_API_MAC_CARBON]: Add extern. | |
13774 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop | |
13775 | instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls. | |
13776 | (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function. | |
13777 | [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind. | |
13778 | Run timers during dialog popup. | |
13779 | (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated. | |
13780 | ||
2386b1f1 JR |
13781 | 2007-06-21 Jason Rumney <jasonr@gnu.org> |
13782 | ||
13783 | * image.c (convert_mono_to_color_image): Swap fore and background. | |
13784 | ||
fab8b787 JR |
13785 | 2007-06-20 Jason Rumney <jasonr@gnu.org> |
13786 | ||
13787 | * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. | |
13788 | (w32_free_bdf_font): Unmap memory not handle. | |
13789 | ||
15bdd7a0 | 13790 | 2007-06-20 Sam Steingold <sds@gnu.org> |
3cacba85 SS |
13791 | |
13792 | * gmalloc.c (__morecore): Fix the declaration to comply with the | |
13793 | definition. | |
13794 | ||
1bb8a291 JB |
13795 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
13796 | ||
13797 | * w32term.c (w32_delete_display): Remove leftover declaration. | |
13798 | (w32_define_cursor, w32_initialize): Make static. | |
13799 | ||
13800 | * w32.c (_wsa_errlist): Fix typo in error message. | |
13801 | (init_environment): Ignore any environment variable from the | |
13802 | registry having a null value. | |
13803 | ||
92648dea GM |
13804 | 2007-06-20 Glenn Morris <rgm@gnu.org> |
13805 | ||
13806 | * Makefile.in (LIBGIF): Default to -lgif. | |
13807 | ||
ff25d115 JR |
13808 | 2007-06-17 Jason Rumney <jasonr@gnu.org> |
13809 | ||
13810 | * w32menu.c (add_menu_item): Don't use multibyte string functions on | |
13811 | unicode strings. | |
13812 | ||
a1a578a5 JB |
13813 | 2007-06-16 Juanma Barranquero <lekktu@gmail.com> |
13814 | ||
13815 | * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>: | |
13816 | Fix typo in docstring. | |
13817 | ||
af41f8a8 EZ |
13818 | 2007-06-16 Eli Zaretskii <eliz@gnu.org> |
13819 | ||
13820 | * w32menu.c (add_menu_item): Escape `&' characters in menu items | |
13821 | and their keybindings. | |
13822 | ||
8b29cab9 CY |
13823 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> |
13824 | ||
13825 | * composite.c (update_compositions): Fix last fix. | |
13826 | ||
c433c134 JR |
13827 | 2007-06-14 Jason Rumney <jasonr@gnu.org> |
13828 | ||
13829 | * w32.c (get_process_times_fn): New function pointer. | |
13830 | (globals_of_w32): Intialize it if present in kernel32.dll. | |
13831 | (w32_get_internal_run_time): New function. | |
13832 | ||
13833 | * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. | |
13834 | ||
553d3164 KH |
13835 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> |
13836 | ||
13837 | * composite.c (update_compositions): Check the validness of | |
13838 | compositions. | |
13839 | ||
446ba96f YM |
13840 | 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13841 | ||
13842 | * frame.h (struct frame) [MAC_OS]: New member external_tool_bar. | |
13843 | (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it. | |
13844 | ||
13845 | * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity. | |
13846 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR. | |
13847 | ||
13848 | * macgui.h (USE_MAC_TOOLBAR): New define. | |
13849 | ||
13850 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
13851 | Return immediately unless popup is activated. | |
13852 | ||
13853 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe | |
13854 | background to scroll bar gap. | |
13855 | (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p. | |
13856 | (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost | |
13857 | scroll bars on frame edge. Check fringe background extension. | |
13858 | Don't clear extended fringe background area. | |
13859 | (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) | |
13860 | (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) | |
13861 | (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID): | |
13862 | [USE_MAC_TOOLBAR]: New macros. | |
13863 | (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) | |
13864 | (mac_handle_toolbar_event, mac_image_spec_to_cg_image) | |
13865 | (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar) | |
13866 | (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) | |
13867 | [USE_MAC_TOOLBAR]: New functions. | |
13868 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window | |
13869 | manually if previous repositioning has failed. | |
13870 | (mac_handle_keyboard_event): Use precomputed event kind. | |
13871 | (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region | |
13872 | as tool bar item click. Handle mouse movement over tool bar items. | |
13873 | ||
13874 | * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member | |
13875 | toolbar_win_gravity. | |
13876 | (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. | |
13877 | (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: | |
13878 | Add externs. | |
13879 | ||
13880 | * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window) | |
13881 | [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display. | |
13882 | ||
9720173f CY |
13883 | 2007-06-14 Chong Yidong <cyd@stupidchicken.com> |
13884 | ||
13885 | * image.c (search_image_cache): Remove unused variable. | |
13886 | ||
1217dd00 CY |
13887 | 2007-06-13 Chong Yidong <cyd@stupidchicken.com> |
13888 | ||
13889 | * xfns.c, xmenu.c: Link to xaw3d if available. | |
13890 | ||
c5b8e0ea YM |
13891 | 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13892 | ||
13893 | * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members | |
13894 | frame_foreground and frame_background. | |
13895 | ||
13896 | * image.c (lookup_image): Save frame foreground and background colors. | |
13897 | (search_image_cache): Check if saved and current frame colors match. | |
13898 | ||
c69b0314 SM |
13899 | 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca> |
13900 | ||
13901 | * regex.c (regex_compile): Remove the `regnum' counter. | |
13902 | Use bufp->re_nsub instead. Add support for \(?N:RE\). | |
13903 | ||
c9612b8e SM |
13904 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
13905 | ||
13906 | * term.c: Include intervals.h to declare Fget_text_property. | |
13907 | ||
843d2458 JR |
13908 | 2007-06-10 Jason Rumney <jasonr@gnu.org> |
13909 | ||
13910 | * w32fns.c (Fx_file_dialog): Take size from struct not pointer. | |
13911 | ||
1e0d2d60 | 13912 | 2007-06-08 Juanma Barranquero <lekktu@gmail.com> |
977f6cfb JB |
13913 | |
13914 | * callint.c (Fcall_interactively): | |
13915 | * editfns.c (Fdelete_and_extract_region): | |
13916 | * fileio.c (Fread_file_name): | |
13917 | * fns.c (Fmapconcat): | |
13918 | * keyboard.c (cmd_error_internal): | |
13919 | * keymap.c (Fkey_description): | |
13920 | * lread.c (openp): | |
13921 | * minibuf.c (read_minibuf): | |
13922 | * search.c (wordify): | |
13923 | * sunfns.c (sel_read): | |
13924 | * xdisp.c (Fformat_mode_line, syms_of_xdisp): | |
13925 | * xfns.c (x_default_scroll_bar_color_parameter): | |
13926 | * xmenu.c (menu_help_callback): | |
13927 | * xselect.c (Fx_get_atom_name): | |
13928 | * xterm.c (x_term_init): Use empty_unibyte_string. | |
13929 | ||
15bdd7a0 | 13930 | 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change) |
977f6cfb JB |
13931 | |
13932 | * alloc.c (init_strings): Initialize canonical empty strings. | |
13933 | (make_uninit_string, make_uninit_multibyte_string): Return appropriate | |
13934 | canonical empty string when the requested size is 0. | |
13935 | ||
13936 | * emacs.c (empty_unibyte_string): Rename from empty_string. | |
13937 | (empty_multibyte_string): New canonical empty string. | |
13938 | (syms_of_emacs): Don't initialize empty_string. | |
13939 | ||
13940 | * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte | |
13941 | string, if appropriate. | |
13942 | (empty_unibyte_string, empty_multibyte_string): New externs. | |
13943 | (empty_string): Remove extern. | |
13944 | ||
13945 | * lread.c (syms_of_lread): Use empty_unibyte_string. | |
13946 | ||
42c4c67a JR |
13947 | 2007-06-07 Jason Rumney <jasonr@gnu.org> |
13948 | ||
13949 | * s/ms-w32.h: Don't define HAVE_TZNAME. | |
13950 | ||
13951 | * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows. | |
13952 | ||
aa8280d3 YM |
13953 | 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
13954 | ||
13955 | * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. | |
13956 | ||
13957 | * macfns.c (mac_get_window_bounds): Move extern to macterm.h. | |
13958 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. | |
13959 | ||
13960 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
13961 | Don't call next handler. | |
13962 | [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): | |
13963 | Remove argument. Install handler to application. | |
13964 | (set_frame_menubar): Don't change deep_p. | |
1e0d2d60 | 13965 | (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and |
aa8280d3 YM |
13966 | FRAME_OUTER_TO_INNER_DIFF_Y. |
13967 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
13968 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
13969 | [HAVE_DIALOGS]: New macros. | |
13970 | [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): | |
13971 | Use them. | |
13972 | (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. | |
13973 | ||
13974 | * macselect.c [MAC_OSX] (install_service_handler): Rename from | |
13975 | init_service_handler. All callers changed. Return OSStatus value. | |
13976 | ||
13977 | * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. | |
13978 | All callers changed so as not to call SetPortWindowPort. | |
13979 | (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. | |
13980 | (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from | |
13981 | mac_draw_string_common. | |
13982 | (mac_draw_image_string_qd): Likewise. | |
13983 | (mac_draw_string_common): Use them. Add INLINE. | |
13984 | (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: | |
13985 | Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and | |
13986 | GetGlobalMouse. | |
13987 | (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X | |
13988 | and FRAME_OUTER_TO_INNER_DIFF_Y. | |
13989 | [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. | |
13990 | [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. | |
13991 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for | |
13992 | repositioning window to mac_handle_window_event. | |
13993 | (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for | |
13994 | saving window location to mac_handle_window_event | |
13995 | [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. | |
13996 | (install_menu_target_item_handler): Remove argument in extern. | |
13997 | [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): | |
13998 | Also accept command events. | |
13999 | (do_keystroke): New function created from XTread_socket. | |
14000 | (init_command_handler): Remove functions. | |
14001 | [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window | |
14002 | and save window location by kEventWindowShowing and kEventWindowHiding | |
14003 | handlers here. Don't call next handler for window state change and | |
14004 | focus events. | |
14005 | (mac_handle_application_event, mac_handle_keyboard_event) | |
14006 | [TARGET_API_MAC_CARBON]: New functions. | |
14007 | (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for | |
14008 | kEventWindowShowing and kEventWindowHiding events. Move installation | |
14009 | of mouse, font, text input and menu target item handlers to | |
14010 | install_application_handler. | |
14011 | (install_application_handler) [TARGET_API_MAC_CARBON]: New function. | |
14012 | (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
14013 | New function. | |
14014 | (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
14015 | Register it. | |
c9612b8e SM |
14016 | (XTread_socket) [TARGET_API_MAC_CARBON]: |
14017 | Consolidate SendEventToEventTarget calls. | |
14018 | Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y. | |
14019 | Move application activation handler to mac_handle_application_event. | |
14020 | Move keyboard handler to mac_handle_keyboard_event. | |
aa8280d3 YM |
14021 | (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. |
14022 | (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call | |
14023 | init_command_handler. Call install_application_handler. | |
14024 | ||
14025 | * macterm.h (mac_get_window_bounds): Move extern from macfns.c. | |
14026 | (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. | |
14027 | ||
6926c954 GM |
14028 | 2007-06-07 Glenn Morris <rgm@gnu.org> |
14029 | ||
14030 | * emacs.c (main): Use `emacs-copyright' in --version output. | |
14031 | ||
6fe04c89 CY |
14032 | 2007-06-06 Chong Yidong <cyd@stupidchicken.com> |
14033 | ||
c9612b8e | 14034 | * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. |
6fe04c89 | 14035 | |
7eb0d727 YM |
14036 | 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
14037 | ||
14038 | * macfns.c (mac_window): Replace WindowPtr with WindowRef. | |
14039 | ||
14040 | * macgui.h: Replace WindowPtr with WindowRef. | |
14041 | ||
14042 | * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
14043 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
14044 | Replace ControlHandle with ControlRef. | |
14045 | (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. | |
14046 | ||
14047 | * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
14048 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
14049 | Replace ControlHandle with ControlRef. | |
14050 | (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. | |
14051 | [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. | |
14052 | ||
14053 | * macterm.h (struct scroll_bar): Rename member control_handle_low | |
14054 | and control_handle_high to control_ref_low and control_ref_high. | |
14055 | All uses changed. | |
14056 | (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from | |
14057 | SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, | |
14058 | respectively. All uses changed. | |
14059 | (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) | |
14060 | (install_window_handler, remove_window_handler): Replace WindowPtr | |
14061 | with WindowRef in externs. | |
14062 | ||
65fddb74 JB |
14063 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> |
14064 | ||
14065 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. | |
14066 | ||
db1213a9 NR |
14067 | 2007-06-03 Nick Roberts <nickrob@snap.net.nz> |
14068 | ||
14069 | * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case. | |
14070 | ||
65fddb74 | 14071 | * frame.c (Fmouse_position, Fmouse_pixel_position): |
db1213a9 NR |
14072 | Condition on HAVE_GPM too. |
14073 | ||
14074 | * term.c (term_mouse_highlight): Remove unused variables. | |
14075 | (Fterm_open_connection): Set gpm_zerobased to 1. | |
14076 | (term_mouse_movement, term_mouse_click, handle_one_term_event): | |
14077 | Use zero based co-ordinates. | |
14078 | (handle_one_term_event): Report a drag as mouse movement too. | |
14079 | ||
14080 | * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM. | |
14081 | ||
d94df25b CY |
14082 | 2007-06-03 Chong Yidong <cyd@stupidchicken.com> |
14083 | ||
14084 | * image.c (search_image_cache): New function. Require background | |
14085 | color match if background color is unspecified in the image spec. | |
14086 | (uncache_image, lookup_image): Use it. | |
14087 | ||
4797b6d9 JB |
14088 | 2007-06-01 Juanma Barranquero <lekktu@gmail.com> |
14089 | ||
14090 | * window.c (Fshrink_window): Reflow docstring. | |
14091 | ||
1ffe7343 NR |
14092 | 2007-06-02 Chong Yidong <cyd@stupidchicken.com> |
14093 | ||
14094 | * Version 22.1 released. | |
14095 | ||
14096 | 2007-06-01 Richard Stallman <rms@gnu.org> | |
14097 | ||
14098 | * xfns.c (x_encode_text): Add GCPRO. | |
14099 | ||
14100 | 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14101 | ||
14102 | * xfns.c (x_set_name_internal): Save encoded name before | |
14103 | x_encode_text in case string data is relocated. | |
14104 | ||
14105 | 2007-05-31 Richard Stallman <rms@gnu.org> | |
14106 | ||
14107 | * buffer.c (syms_of_buffer): Doc fix. | |
14108 | ||
14109 | 2007-05-30 Nick Roberts <nickrob@snap.net.nz> | |
14110 | ||
14111 | * sysdep.c (init_sys_modes): Add rather than replace with | |
14112 | O_NONBLOCK. | |
14113 | ||
14114 | * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to | |
14115 | term_mouse_moveto. | |
14116 | ||
14117 | * termhooks.h (term_mouse_moveto): New extern. | |
14118 | ||
14119 | * term.c (mouse_face_window): Rename... | |
14120 | (Qmouse_face_window): ...to this. | |
14121 | (term_show_mouse_face, term_clear_mouse_face) | |
14122 | (term_mouse_highlight): Use Qmouse_face_window. | |
14123 | (term_mouse_moveto): New function. | |
14124 | (term_mouse_position): Make it work. | |
14125 | (syms_of_term): Uncomment assignment to mouse_position_hook. | |
14126 | Staticpro Qmouse_face_window. | |
14127 | ||
14128 | 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14129 | ||
14130 | * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t | |
14131 | around current_column call. | |
14132 | ||
14133 | 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu> | |
14134 | ||
14135 | * xfaces.c (syms_of_xfaces): Delete stray semicolon. | |
14136 | * xdisp.c (next_element_from_buffer): | |
14137 | * window.c (delete_window): | |
14138 | * term.c (term_mouse_highlight): | |
14139 | * msdos.c (getdefdir): | |
14140 | * macterm.c (mac_create_bitmap_from_bitmap_data) | |
14141 | (init_font_name_table): | |
14142 | * fns.c (Fsxhash): | |
14143 | * data.c (Fmake_local_variable): | |
14144 | * ccl.c (ccl_driver): Likewise. | |
14145 | ||
14146 | 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14147 | ||
14148 | * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event): | |
14149 | Call mac_wakeup_from_rne on window size change. | |
14150 | ||
14151 | 2007-05-25 Chong Yidong <cyd@stupidchicken.com> | |
14152 | ||
14153 | * image.c (uncache_image): Fix typo. | |
14154 | ||
14155 | 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change) | |
14156 | ||
14157 | * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too. | |
14158 | ||
14159 | 2007-05-22 Richard Stallman <rms@gnu.org> | |
14160 | ||
14161 | * xterm.c (x_connection_closed): Remove NO_RETURN. | |
14162 | ||
14163 | 2007-05-22 Martin Rudalics <rudalics@gmx.at> | |
14164 | ||
14165 | * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. | |
14166 | ||
14167 | 2007-05-21 Chong Yidong <cyd@stupidchicken.com> | |
14168 | ||
14169 | * image.c (uncache_image): New function. | |
14170 | (Fimage_refresh): New function. | |
14171 | ||
880820fe | 14172 | 2007-05-20 Jan Djärv <jan.h.d@swipnet.se> |
1ffe7343 NR |
14173 | |
14174 | * Makefile.in: Move GPM check outside HAVE_X_WINDOWS. | |
14175 | ||
14176 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
14177 | ||
14178 | * config.in, keyboard.c, Makefile.in, sysdep.c, term.c, | |
14179 | * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H. | |
14180 | ||
14181 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
14182 | ||
14183 | * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT | |
14184 | conditional on [HAVE_GPM_H]. | |
14185 | ||
14186 | 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca> | |
14187 | ||
14188 | * syntax.c (skip_chars): Update syntax-table only after we checked that | |
14189 | the new location is valid. | |
14190 | ||
14191 | 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14192 | ||
14193 | * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around | |
14194 | mac_get_window_bounds. | |
14195 | ||
14196 | 2007-05-20 Nick Roberts <nickrob@snap.net.nz> | |
14197 | ||
14198 | * Makefile.in (LIBGPM): Allow it to be set from configure. | |
14199 | If set then link Emacs with it. | |
14200 | ||
14201 | * config.in: Regenerate. | |
14202 | ||
14203 | * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): | |
14204 | New externs. | |
14205 | ||
14206 | * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT. | |
14207 | Include gpm.h. | |
14208 | (handle_one_term_event, term_gpm): New externs. | |
14209 | ||
14210 | * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking | |
14211 | and allow it to be interrupted by SIGIO. | |
14212 | ||
14213 | * process.c (gpm_wait_mask, max_gpm_desc): New variables. | |
14214 | (wait_reading_process_output): Wait on gpm_fd too. | |
14215 | (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions. | |
14216 | (add_gpm_wait_descriptor_called_flag): New variable. | |
14217 | (delete_keyboard_wait_descriptor): Check gpm_wait_mask. | |
14218 | ||
14219 | * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message) | |
14220 | (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved) | |
14221 | (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard): | |
14222 | Extend HAVE_MOUSE ifdefs to HAVE_GPM_H. | |
14223 | (make_lispy_event): Add case GPM_CLICK_EVENT. | |
14224 | (read_avail_input): Handle mouse input. | |
14225 | ||
14226 | * term.c (write_glyphs_with_face): New function. | |
14227 | [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h. | |
14228 | (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row) | |
14229 | (mouse_face_end_col, mouse_face_past_end, mouse_face_window) | |
14230 | (mouse_face_face_id, term_gpm, pos_x, pos_y) | |
14231 | (last_mouse_x, last_mouse_y): New variables. | |
14232 | (term_show_mouse_face, term_clear_mouse_face, fast_find_position) | |
14233 | (term_mouse_highlight, term_mouse_movement, term_mouse_position) | |
14234 | (term_mouse_click, handle_one_term_event, Fterm_open_connection) | |
14235 | (Fterm_close_connection): New functions. | |
14236 | (term_init): Initialise mouse_face_window. | |
14237 | ||
14238 | 2007-05-19 Chong Yidong <cyd@stupidchicken.com> | |
14239 | ||
14240 | * xdisp.c (redisplay_window): If first window line is a | |
14241 | continuation line, recompute the new window start instead of | |
14242 | recentering. | |
14243 | ||
14244 | 2007-05-18 Glenn Morris <rgm@gnu.org> | |
14245 | ||
14246 | * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD. | |
14247 | Suggested by Alfred M. Szmidt <ams@gnu.org>. | |
14248 | ||
14249 | 2007-05-17 Glenn Morris <rgm@gnu.org> | |
14250 | ||
14251 | * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. | |
14252 | ||
14253 | 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14254 | ||
14255 | * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert | |
14256 | dead key repeat and up events. | |
14257 | ||
14258 | 2007-05-14 Chong Yidong <cyd@stupidchicken.com> | |
14259 | ||
14260 | * image.c (pbm_load): Check image size for monochrome pbm. | |
14261 | ||
14262 | 2007-05-13 Chong Yidong <cyd@stupidchicken.com> | |
14263 | ||
14264 | * xterm.c (XTread_socket): Revert last change. | |
14265 | ||
14266 | 2007-05-12 Chong Yidong <cyd@stupidchicken.com> | |
14267 | ||
14268 | * image.c (pbm_load): Correctly check image size for greyscale pbm. | |
14269 | ||
14270 | * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). | |
14271 | ||
14272 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
14273 | ||
14274 | * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object | |
14275 | mixup (YAILOM). | |
14276 | ||
14277 | 2007-05-07 Andreas Schwab <schwab@suse.de> | |
14278 | ||
14279 | * keymap.c (Flookup_key): Fix typo in last change. | |
14280 | ||
14281 | 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | |
14282 | ||
14283 | * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier | |
14284 | mapping for unibyte strings. | |
14285 | ||
14286 | 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14287 | ||
14288 | * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. | |
14289 | (Fx_popup_dialog) [MAC_OSX]: Likewise. | |
14290 | ||
14291 | 2007-04-29 Richard Stallman <rms@gnu.org> | |
14292 | ||
14293 | * insdel.c (replace_range): For undo, record insertion first. | |
14294 | ||
14295 | 2007-04-29 Andreas Schwab <schwab@suse.de> | |
14296 | ||
14297 | * lisp.h (VECSIZE): Use OFFSETOF. | |
14298 | ||
14299 | 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | |
14300 | ||
14301 | * xdisp.c (try_window_reusing_current_matrix): Fix number of | |
14302 | disabled lines. | |
14303 | ||
14304 | 2007-04-28 Richard Stallman <rms@gnu.org> | |
14305 | ||
14306 | * lread.c (read_escape): In a string, \s is always space. | |
14307 | ||
880820fe | 14308 | 2007-04-27 Jan Djärv <jan.h.d@swipnet.se> |
1ffe7343 NR |
14309 | |
14310 | * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. | |
14311 | ||
14312 | * gtkutil.c (xg_update_menubar, create_menus): Create empty | |
14313 | submenu for menu bar items. | |
14314 | ||
382c648d | 14315 | See ChangeLog.10 for earlier changes. |
6922b018 KH |
14316 | |
14317 | ;; Local Variables: | |
880820fe | 14318 | ;; coding: utf-8 |
33462dfa | 14319 | ;; add-log-time-zone-rule: t |
67e8d28a | 14320 | ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s" |
6922b018 | 14321 | ;; End: |
2a34a036 | 14322 | |
59ce725a | 14323 | Copyright (C) 2007, 2008 Free Software Foundation, Inc. |
7f6d64f8 GM |
14324 | |
14325 | This file is part of GNU Emacs. | |
14326 | ||
5a1dde61 | 14327 | GNU Emacs is free software: you can redistribute it and/or modify |
7f6d64f8 | 14328 | it under the terms of the GNU General Public License as published by |
5a1dde61 GM |
14329 | the Free Software Foundation, either version 3 of the License, or |
14330 | (at your option) any later version. | |
7f6d64f8 GM |
14331 | |
14332 | GNU Emacs is distributed in the hope that it will be useful, | |
14333 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14334 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14335 | GNU General Public License for more details. | |
14336 | ||
14337 | You should have received a copy of the GNU General Public License | |
5a1dde61 | 14338 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
ab5796a9 | 14339 | |
28f60c3d | 14340 | ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40 |