revert changes to getloadavg.c
[bpt/emacs.git] / src / ChangeLog
CommitLineData
db94bf9c
AR
12008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * getloadavg.c: Revert last change (2008-07-15).
4
06b62770
AR
52008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6
7 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
9 from configure.
10
2749d28e
DN
112008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12
35ad0545
DN
13 * s/sol2.h:
14 * s/sol2-4.h: Reorganize conditionals.
15
2749d28e
DN
16 * ecrt0.c: Remove code depending on m68000, not used anymore.
17
18 * fns.c (hash_remove): Make static.
19 * lisp.h (hash_remove): Don't prototype.
20
21 * m/ibmrs6000.h:
22 * m/ibms390x.h:
23 * m/macppc.h: Remove boilerplate comments.
24
25 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
26 Solaris, which does not need them.
27
28 * m/vax.h: Remove comments about unsupported systems.
29
30 * s/darwin.h: Reorganize ifdefs.
31
322008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6fb5f7da
AR
33
34 * config.in
35 * dispextern.h
36 * frame.c
37 * image.c
38 * nsfns.m
39 * nsfont.m
40 * nsgui.h
41 * nsmenu.m
42 * nsterm.h
43 * nsterm.m
44 * s/darwin.h
45 * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or
46 XXX.
47
32cc3925
AS
482008-07-17 Andreas Schwab <schwab@suse.de>
49
50 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
51
facfbbbd
SM
522008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
53
54 Use SDATA. Follow coding convention of placing operators at
55 beginning of next line rather than end of previous line, and placing
56 spaces around infix operators.
57
58 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
59 in case it was defined already.
60 USE @GNUSTEP_MAKEFILES@ rather than envvars.
61 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
62 ns_default.
63 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
64 Lisp_Objects.
65 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
66 (ns_defined_color, ns_color_to_lisp): Declare.
67 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
68 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
69 it's accepted even with USE_LISP_UNION_TYPE.
70 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
71 (update_frame_tool_bar): Remove apparently obsolete tests for
72 non-integerness of f->tool_bar_lines.
73 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
74 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
75 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
76 (nsfont_open): Don't confuse NULL for Qnil.
77 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
78 * menu.h (find_and_call_menu_selection):
79 * menu.c (find_and_call_menu_selection): Use just int for vector size.
80 (find_and_return_menu_selection): Always return something.
81 * frame.h: Include dispextern.h for Display_Info.
82 (display_x_get_resource): Declare.
83
122e9f8f
AR
842008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
85
86 * syntax.c: Remove stdio.h include accidentally introduced in
87 Emacs.app commit.
88 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
89 NS_IMPL_COCOA.
90 * keyboard.c (handle_async_input, input_available_signal): Remove
91 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
92
0bcfd7d7
SM
932008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
94
6882361b
SM
95 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
96 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
97 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
98 Use SDATA.
99
0bcfd7d7
SM
100 * keymap.c: Remove all NS-specific code.
101 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
102 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
103 where_is_preferred_modifier, return a different value depending on how
104 preferred is the binding.
105 (where_is_internal): Adjust accordingly.
106 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
107 Adjust to new preferred_sequence_p.
108 (syms_of_keymap): Declare `where-is-preferred-modifier'.
109 * keyboard.c (parse_solitary_modifier): Not static any more.
110 * keyboard.h (parse_solitary_modifier): Declare.
111
720f3147
AS
1122008-07-16 Andreas Schwab <schwab@suse.de>
113
114 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
115 of easymenu.
116
01e19fea
CY
1172008-07-16 Chong Yidong <cyd@stupidchicken.com>
118
119 * xdisp.c (move_it_in_display_line): Account for word wrap, so
120 that we don't move off the line.
121
4c89a3e0
SM
1222008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
123
124 * keyboard.c (Qsuper): Remove.
125 (parse_menu_item): Don't call where_is_internal specially for NS.
126
586b975c
DN
1272008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
128
3ec8ef33
DN
129 * s/gnu-linux.h: Remove boilerplate comments.
130
d4d080b6
DN
131 * m/alpha.h (__ELF__): Consolidate conditions.
132
7ab56cc4
DN
133 * m/m68k.h (linux): Use GNU_LINUX instead.
134 Remove boilerplate comments.
135
586b975c 136 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
137 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
138 too, remove dead code.
139 (linux): Use GNU_LINUX instead.
586b975c 140
5cc9d48a
JR
1412008-07-16 Jason Rumney <jasonr@gnu.org>
142
4c89a3e0 143 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 144
6b0273cd
DN
1452008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
146
132d0475
DN
147 * systty.h: Remove code for Aix on 386, unsupported platform.
148
149 * s/ms-w32.h: Remove boilerplate comments.
150 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
151
152 * s/gnu-linux.h (TERM): Remove support.
153 (HAVE_SYSVIPC): Remove, unused.
154 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
155 for this system.
156
157 * process.c: Remove support for IRIS, unused.
158 Remove support for TERM, not relevant anymore.
159
160 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
161 used with the definition.
162
163 * s/aix4-2.h (static): Do not undef.
164
165 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
166 only used on Aix.
167 (HAVE_SYSVIPC): Remove, unused.
168
169 * m/hp800.h (CANNOT_DUMP): Do not undef.
170
171 * m/alpha.h: Fix comment.
172
8111c2d8
DN
173 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
174 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
175 used by this configuration.
176 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
177 * unexec.c: Remove code depending on HPUX and
178 USG_SHARED_LIBRARIES, not used with this file. Remove code
179 depending on IRIS, unused. Remove if 0-ed code.
180
e9a57a88
DN
181 * s/template.h: Remove comments about static.
182
4c89a3e0
SM
183 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
184 Remove if 0-ed code.
c7607b94
DN
185 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
186 were the same as the default.
187 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
188 Remove boilerplate comments.
189 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
190 (HAVE_SYSVIPC): Remove, unused.
191 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
192
ff841b30
DN
193 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
194 Remove boilerplate comments.
195 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
196 Remove boilerplate comments.
197 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
198 Remove boilerplate comments.
199 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
200
586b975c
DN
201 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
202 USG systems which do not use DATA_SEG_BITS.
203 Refactor code. Remove boilerplate comments.
204
dc89925b 205 * m/ibms390.h:
dc89925b
DN
206 * m/m68k.h:
207 * s/bsd-common.h:
208 * s/cygwin.h:
209 * s/darwin.h:
210 * s/freebsd.h:
211 * s/gnu.h:
212 * s/msdos.h: Remove boilerplate comments.
213
96b72211
DN
214 * m/iris4d.h: Remove boilerplate comments and code for systems that
215 do not use this file.
216 (IRIS_4D): Remove, unused.
217
c3b5f109
DN
218 * m/mips.h: Remove boilerplate comments and code for systems that
219 do not use this file.
96b72211 220 (SIGN_EXTEND_CHAR):
c3b5f109
DN
221 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
222 * unexmips.c: Remove file, unused.
223
6b0273cd
DN
224 * editfns.c (Fuser_full_name): Replace the only use of
225 USER_FULL_NAME with its value.
226 * config.in: Regenerate.
227
6fbcfb6f
DR
2282008-07-16 David Reitter <david.reitter@gmail.com>
229
230 * Makefile.in: add ns-win, ns-carbon-compat, easy-mmode and
231 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port
232
44ac2d3e
GM
2332008-07-16 Glenn Morris <rgm@gnu.org>
234
235 * emacs.c (system-type): Doc fix.
236
0a170079
SM
2372008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
240 If the cache doesn't work, let's fix it, rather than work around it.
241
a68fda4a
AR
2422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
243
244 * Makefile.in: Correct additions for nsfont.o in last commit.
245 * nsfont.m: New file (forgot last commit).
246
edfda783
AR
2472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
248
249 Changes and additions for NeXTstep windowing system (Cocoa and
250 GNUstep) support.
251
252 * Makefile.in
253 * config.in: Support defines and build commands for NS port.
254 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
255 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
256 * callproc.c (set_initial_environment): Initialize
257 Vprocess_environment under CANNOT_DUMP (fixes crash when
258 batch-compiling for bootstrap, due to Chris Hall).
259 * dispextern.h: Include nsgui.h and add needed typedefs under NS
260 windowing.
261 (struct face): Add synth_ital field.
262 * dispnew.c: Include nsterm.h when compiling under NS windowing.
263 (init_display): Initialize Vinitial_window_system to "ns" when so
264 compiled.
265 * emacs.c: Include GSConfig.h when compiling under GNUstep.
266 (display_arg): Use under NS.
267 (main): Under NS, allocate autorelease pool and handle command line
268 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
269 (standard_args): Add NS-specific args.
270 (shut_down_emacs): Shut down NS terminal if compiled under NS.
271 * font.c (DEFAULT_ENCODING): New variable.
272 (font_find_for_lface): Use it.
273 (syms_of_font): Load syms_of_nsfont under NS.
274 * font.h: Declare nsfont_driver when compiled under NS.
275 * fontset.c: When compiling under NS, include nsterm.h.
276 (fontset_from_font): Autoconstruct fontset under NS.
277 * frame.c (various): Under NS, include nsterm.h, add Qns window system
278 symbol, document and use it.
279 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
280 patch to fix crash due to different init order, due to Chris Hall and
281 Yamamoto Mitsuharu.
282 (do_switch_frame): When for_deletion under Cocoa, add
283 Fraise_frame(Qnil).
284 (x_set_frame_parameters): Ensure font attribute changes are picked up.
285 (x_get_arg): Allow "yes" and "no" as boolean values.
286 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
287 Qright under Cocoa.
288 (focus-follows-mouse): Default to 0 under NS.
289 * frame.h (enum output_method): Add output_ns.
290 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
291 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
292 (FRAME_WINDOW_P): NS-specific definition.
293 * fringe.c (max_used_fringe_bitmap): Make public.
294 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
295 (getloadavg): Use NeXT code under descendant OS's.
296 * image.c (includes and header section, x_create_bitmap_from_data)
297 (x_create_bitmap_from_file, free_bitmap_record, image_background)
298 (image_background_transparent, x_clear_image_1)
299 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
300 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
301 (x_to_xcolors, x_from_xcolors, x_disable_image)
302 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
303 other GUIs, including XPM support using code originally written for
304 Carbon GUI.
0a170079 305 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
306 using NS API.
307 (image_ascent): Use font metrics macros instead of direct struct field
308 access.
309 * keyboard.c (includes): Add nsterm.h when compiling under NS.
310 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
311 Also, handle NS as GTK for menu bar purposes.
312 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
313 toolkit where they differ.
314 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
315 use cachelist, still needed under NS.
6ddc6cca 316 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
317 (struct widget_value): Define it here for menu.c.
318 * keymap.c (includes): Include modifier internals.
319 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
320 NS.
321 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
322 support for preferring sequences using certain modifiers, specified by
323 the FIRSTONLY argument.
324 * lisp.h (hash_remove): Rename to avoid name clash when compiling
325 under NS GNUstep implementation.
326 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
327 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
328 * menu.c: Include nsterm.h under NS.
329 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
330 (free_menubar_widget_tree_value, update_submenu_strings)
331 (find_and_call_menu_selection): Treat NS as X and NT.
332 (find_and_return_menu_selection): New function, used for popup menus.
333 * nsgui.h
334 * nsterm.h
335 * nsfns.m
336 * nsimage.m
337 * nsmenu.m
338 * nsselect.m
339 * nsterm.m: New files.
340 * process.c (wait_reading_process_output): Under NS, call ns_select()
341 instead of plain select().
342 * syntax.c (char_quoted): Under NS, avoid a crash when called near
343 beginning of buffer.
344 * sysselect.h (init_process): Rename when compiling under Cocoa to
345 avoid name conflict.
346 * termhooks.h (display_info): Add ns_display_info to union.
347 * terminal.c (Fterminal_live_p): Add ns to terminal types.
348 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
349 COCOA environment.
350 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
351 unexec() signature. (Note, this will dump, but the resulting file
352 crashes; unexosx is used instead; keeping around for reference and
353 possible aid in getting dump working under GNUstep.)
354 * w32gui.h (button_type, widget_value): Remove definitions (now in
355 keyboard.h).
356 * window.c: Include nsterm.h when compiling under NS.
357 * xdisp.c (includes): Include nsterm.h when compiling under NS.
358 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
359 other GUI windowing systems.
360 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
361 GTK.
362 (x_consider_frame_title): Under NS, set icon type and frame
363 modified-state indicator; use ns_set_name_as_filename() when using
364 formatted title.
365 (update_window_cursor): Make public when compiling under NS.
366 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
367 (hourglass_atimer, Vhourglass_delay
368 * xfaces.c (header section, init_frame_faces, clear_font_table)
369 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
370 (prepare_face_for_display): Add NS support parallel to other GUIs.
371 Emulate GCs like other non-X GUIs.
edfda783
AR
372 (split_font_name): Don't lowercase font name under NS.
373 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
374 under NS.
375 * s/darwin.h: Add support for compilation under NS.
376
1391cd54
JR
3772008-07-15 Jason Rumney <jasonr@gnu.org>
378
6ddc6cca
SM
379 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
380 (w32_show_hourglass): Rename from show_hourglass.
381 (w32_hide_hourglass): Rename from hide_hourglass.
382 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
383 (Vhourglass_delay): Declare extern.
384 (hourglass_started): Remove.
1391cd54 385
6ddc6cca
SM
386 * xdisp.c (Vhourglass_delay): Remove static.
387 (hourglass_started, start_hourglass, cancel_hourglass):
388 Don't include these versions on WINDOWSNT.
1391cd54 389
1885ab29
AR
3902008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
391
6ddc6cca 392 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 393 variables (formerly in xfns.c).
1885ab29
AR
394 (show_hourglass, hide_hourglass): New prototypes (same).
395 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
396 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 397 in xfns.c).
1885ab29
AR
398 (syms_of_xdisp): Declare/initialize display-hourglass,
399 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
400 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 401 formerly in xfns.c.
1885ab29
AR
402 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
403 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
404 (start_hourglass, cancel_hourglass): Remove.
405 (show_hourglass, hide_hourglass): Remove prototypes and static
406 modifiers.
407 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
408 hourglass_atimer, hourglass_shown_p declaration/initialization.
409 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
410 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
411 (start_hourglass, cancel_hourglass): Remove.
412 (show_hourglass, hide_hourglass): Remove prototypes and static
413 modifiers.
414 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
415 hourglass_atimer, hourglass_shown_p declaration/initialization.
416 * w32fns.c (display_hourglass_p, Vhourglass_delay)
417 (DEFAULT_HOURGLASS_DELAY): Remove.
418 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
419 hourglass_shown_p declaration/initialization.
420
3faa984f
JR
4212008-07-14 Jason Rumney <jasonr@gnu.org>
422
6ddc6cca
SM
423 * w32fns.c (w32_get_arg): Remove wrapper function.
424 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
425 directly.
426 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 427
2f73901f
KH
4282008-07-14 Kenichi Handa <handa@m17n.org>
429
430 * xfont.c (xfont_open): Add workaround for X's bug.
431
11da284d
KH
4322008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
433
434 * fontset.c: Include <stdio.h> unconditionally.
435
944cc4a8
MA
4362008-07-13 Michael Albinus <michael.albinus@gmx.de>
437
438 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
439 for filtering.
440
bdee2ef3
DN
4412008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
442
443 * s/vms.h: Use __GNUC__ instead of _GNUC_.
444
445 * m/macppc.h:
446 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
447
448 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
449 (SPECIAL_EMACS_INT):
450 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
451 * m/amdx86-64.h (SPECIAL_EMACS_INT):
452 * s/gnu.h (NLIST_STRUCT):
453 * aix4-2.h (X11R5_INHIBIT_I18N):
454 * s/gnu-linux.h (LINUX):
455 * s/msdos.h (HAVE_FACES):
456 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
457
944cc4a8 458 * systty.h:
bdee2ef3
DN
459 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
460 anymore.
461
bba104c1
DN
4622008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
463
464 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
465 always defined as int.
466
467 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
468 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
469 * s/gnu-linux.h (HAVE_WAIT_HEADER):
470 * s/freebsd.h (HAVE_WAIT_HEADER):
471 * s/bsd-common.h (HAVE_UNION_WAIT):
472 * s/aix4-2.h (HAVE_WAIT_HEADER):
473 * m/mips.h (HAVE_UNION_WAIT):
474 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
475 (COFF, static): Do not define, they are undefined later in the file.
476
477 * process.c (update_status): Don't use a union.
478 (status_convert):
479 (sigchld_handler): Use int instead of WAITTYPE.
480
e433031a
CY
4812008-07-12 Chong Yidong <cyd@stupidchicken.com>
482
483 * indent.c (Fvertical_motion): Restore hscroll before moving to
484 goal column.
485
3bfb4d48
DN
4862008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
487
488 * lisp.h: Remove left over code.
489
e7c9048f
AS
4902008-07-11 Andreas Schwab <schwab@suse.de>
491
7e770c85
AS
492 * lisp.h: Fix logic in last change.
493
e7c9048f
AS
494 * menu.h: New file.
495 * menu.c: Include it.
496 * xmenu.c: Likewise.
497 * Makefile.in: Update dependencies.
498
38aaf336
KH
4992008-07-11 Kenichi Handa <handa@m17n.org>
500
501 * fontset.c (fontset_from_font): Cancel the previous change.
502
6e5cb96f
DN
5032008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
504
505 * lisp.h:
506 * w32heap.c:
507 * emacs.c:
508 * alloc.c: Replace all references of NO_UNION_TYPE with
509 USE_LISP_UNION_TYPE.
510
511 * m/xtensa.h (NO_UNION_TYPE):
512 * m/vax.h (NO_UNION_TYPE):
513 * m/template.h (NO_UNION_TYPE):
514 * m/sparc.h (NO_UNION_TYPE):
515 * m/mips.h (NO_UNION_TYPE):
516 * m/macppc.h (NO_UNION_TYPE):
517 * m/m68k.h (NO_UNION_TYPE):
518 * m/iris4d.h (NO_UNION_TYPE):
519 * m/intel386.h (NO_UNION_TYPE):
520 * m/ibms390x.h (NO_UNION_TYPE):
521 * m/ibms390.h (NO_UNION_TYPE):
522 * m/ibmrs6000.h (NO_UNION_TYPE):
523 * m/ia64.h (NO_UNION_TYPE):
524 * m/hp800.h (NO_UNION_TYPE):
525 * m/arm.h (NO_UNION_TYPE):
526 * m/amdx86-64.h (NO_UNION_TYPE):
527 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
528 defining it the same.
529
e0f47a68
CY
5302008-07-10 Chong Yidong <cyd@stupidchicken.com>
531
532 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped
533 line.
534
c5e7567d
DN
5352008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
536
537 * src/fileio.c:
538 * src/sysdep.c
539 * src/systty.h:
540 * src/m/ibmrs6000.h:
541 * src/m/iris4d.h:
542 * src/s/aix4-2.h:
543 * src/s/freebsd.h:
544 * src/s/gnu-linux.h:
545 * src/s/hpux10-20.h:
546 * src/s/hpux11.h:
547 * src/s/netbsd.h:
548 * src/s/sol2-3.h:
549 * src/s/sol2-4.h:
550 * src/s/sol2.h:
551 * src/s/usg5-4.h:
552 * src/s/vms.h: Remove references to unused variables.
553
bb658864
AS
5542008-07-10 Andreas Schwab <schwab@suse.de>
555
556 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
557 pattern before matching the generic family.
558
3d3db608
DN
5592008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
560
a0ce9ab7 561 * unexec.c:
3460e0b9
DN
562 * s/vms.h:
563 * s/usg5-4-2.h:
564 * s/sol2-5.h:
565 * s/freebsd.h:
566 * s/darwin.h: Remove dead code.
567
ad76189a
DN
568 * m/template.h:
569 * m/sparc.h:
570 * m/mips.h:
571 * m/m68k.h:
572 * m/iris4d.h:
573 * m/intel386.h:
574 * m/ibms390x.h:
575 * m/ibms390.h:
576 * m/ia64.h:
577 * m/hp800.h:
578 * m/arm.h:
579 * m/amdx86-64.h: Remove dead code and references to unused
580 and compiler defined symbols.
581
d2b5bbda
DN
582 * unexmips.c:
583 * unexelf.c: Remove references to desupported systems.
584
40dde9d1
DN
585 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
586
21133394
DN
587 * m/powermac.h: Remove boilerplate comments.
588 (NO_REMAP): Remove unused definition.
589
3d3db608
DN
590 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
591 define them.
592
c8e0e16d
KH
5932008-07-10 Kenichi Handa <handa@m17n.org>
594
595 * xfont.c (xfont_open): Log the reason of failure.
596
3cba9369
SM
5972008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
598
599 * fontset.c (fontset_get_font_group):
600 * font.c (font_check_otf): Specify argument types.
601
73353585
KH
6022008-07-09 Kenichi Handa <handa@m17n.org>
603
0e17387a
KH
604 * coding.c (detect_coding_utf_8): Set detect_info->found only when
605 non-ASCII char is found.
606
73353585
KH
607 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
608 (reorder_font_vector): Change the arg preferred_family to font.
609 Prefer the spec matching with font.
610 (fontset_get_font_group): New function.
611 (fontset_find_font): Change the format of an element of a realized
612 fontset. Use fontset_get_font_group.
613 (fontset_font): Try the current fontset, the default fontset, the
614 fallbacks of the current fonset, and the fallbacks of the default
615 fontset in this order.
616 (face_for_char): Delete the shortcut to use the current font.
617 (fontset_from_font): Don't set fonts for Latin in the fontset.
618
619 * font.h (font_make_object, font_match_p): Adjust prototypes.
620
621 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
622
623 * font.c (font_make_object): New arg entity and pixelsize.
624 (font_check_otf_features, font_check_otf): New functions.
625 (font_match_p): Check :lang, :script, and :otf properties.
626
627 * xfont.c (xfont_open): Adjust it for the change of
628 font_make_object.
e5d05978 629 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
630
631 * ftfont.c (struct ftfont_info): New member index, delete member
632 fc_charset_idx. Make the member order compatible with struct
633 xftfont_info.
634 (fc_charset_table): Change charset names to registry names.
635 (ftfont_pattern_entity): Delete the args registry and
636 fc_charset_idx. Change the value of :font-entity property
637 to (FONTNAME . INDEX). Always set :registry property to
638 `iso10646-1'.
639 (struct ftfont_cache_data): New struct.
640 (ftfont_lookup_cache): New arg for_face.
641 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
642 (ftfont_driver): Set the member otf_capability.
643 (ftfont_get_charset): Adjust it for the change of
644 fc_charset_table.
645 (OTF_TAG_SYM): New macro.
646 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
647 for the change of fc_charset_table.
648 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
649 ftfont_pattern_entity. Add FC_INDEX to objset.
650 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
651 and ftfont_pattern_entity.
652 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
653 font_make_object, struct ftfont_info.
654 (ftfont_has_char): Use ftfont_get_fc_charset.
655 (ftfont_otf_features, ftfont_otf_capability): New functions.
656 (ftfont_shape): Use ftfont_get_otf.
e5d05978 657 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
658
659 * xftfont.c (struct xftfont_info): New member ft_size. Make the
660 member order compatible with struct ftfont_info.
661 (xftfont_open): Add FC_CHARSET to the pattern. Set
662 xftfont_info->ft_size. Don't unlock the face. Check BDF
663 properties if appropriate.
664 (xftfont_close): Unlock the face.
665 (xftfont_anchor_point, xftfont_shape): Deleted.
666 (syms_of_xftfont): Don't set members anchor_point and shape of
667 xftfont_driver.
668
669 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
670 font_make_object.
671
672 * w32font.c (w32font_open): Adjust it for the change of
673 font_make_object.
674 (w32font_open_internal): Don't set properties of font_object here.
675
7f000038
CY
6762008-07-08 Chong Yidong <cyd@stupidchicken.com>
677
830aab93
CY
678 * macfns.c (x_create_tip_frame):
679 * w32fns.c (x_create_tip_frame):
680 * xfns.c (x_create_tip_frame): Pass parameter argument to
681 face-set-after-frame-default.
682
7f000038
CY
683 * xfaces.c (Finternal_merge_in_global_face): Save merged
684 attributes for the default face back into the face vector.
685
85cf8992
AS
6862008-07-08 Andreas Schwab <schwab@suse.de>
687
688 * fontset.h: Declare fontset_from_font. Don't declare
689 new_fontset_from_font and fontset_from_font_name.
690 * xterm.c: Include "fontset.h".
691 * Makefile.in (xterm.o): Update dependencies.
692
4a00783e
GM
6932008-07-08 Glenn Morris <rgm@gnu.org>
694
695 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
696 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
697
4d2d5f5f
CY
6982008-07-07 Chong Yidong <cyd@stupidchicken.com>
699
700 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
701 (x_set_frame_parameters): Don't bind it.
702
dfe66c5b
JB
7032008-07-07 Juanma Barranquero <lekktu@gmail.com>
704
705 * w32fns.c (map_w32_filename): Declare extern.
706
ec7e221c
JR
7072008-07-07 Jason Rumney <jasonr@gnu.org>
708
dfe66c5b 709 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 710
fe5d61c4
CY
7112008-07-06 Chong Yidong <cyd@stupidchicken.com>
712
713 * xfaces.c (set_font_frame_param): Don't try to set the font
714 parameter if it is still unspecified in the lface.
715
9204cb8b
CY
7162008-07-05 Chong Yidong <cyd@stupidchicken.com>
717
0a143d3a
CY
718 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
719 face if it didn't already exist.
720
9204cb8b
CY
721 * xdisp.c (try_window_id): Give up if word-wrapping is on.
722
6c95e70d
AS
7232008-07-05 Andreas Schwab <schwab@suse.de>
724
dfe66c5b 725 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 726
59230395
CY
7272008-07-05 Chong Yidong <cyd@stupidchicken.com>
728
729 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
730 word-wrapping.
731 (IT_DISPLAYING_WHITESPACE): New macro.
732 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
733 when word-wrapping. Simplify word-wrapping logic. Use correct
734 pixel positions when saving copies of the iterator.
735 (display_line): Use proper wrap point if the last character on a
736 line was preceded by whitespace.
737
d7c664f3
SM
7382008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
739
740 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
741
9ffc8a3a
KH
7422008-07-04 Kenichi Handa <handa@m17n.org>
743
744 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
745
746 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
747
946598bf
JR
7482008-07-02 Jason Rumney <jasonr@gnu.org>
749
d7c664f3
SM
750 * xfns.c (syms_of_xfns): Only define x-select-font when both
751 HAVE_FREETYPE and USE_GTK
946598bf 752
d7c664f3
SM
753 * xdisp.c (next_element_from_display_vector): Move assignment out
754 of if statement.
946598bf 755
6cf29fe8
JR
7562008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
757
d7c664f3 758 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 759
d7c664f3
SM
760 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
761 (syms_of_fileio): Initialize and export them.
762 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 763
d7c664f3
SM
764 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
765 (Fsystem_move_file_to_trash): New function.
766 (syms_of_w32fns): Export it to lisp.
6cf29fe8 767
79ca7db1
JR
7682008-07-01 Jason Rumney <jasonr@gnu.org>
769
d7c664f3
SM
770 * w32font.c (w32font_text_extents): Don't count overhang as part
771 of width.
79ca7db1 772
c2786a3d 7732008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
774
775 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
776 Add `avoid_cursor_p' field.
777
778 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
779 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
780 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
781 (append_stretch_glyph): Initialize avoid_cursor_p.
782 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
783 (x_produce_glyphs): Use get_it_property.
784 (handle_line_prefix, push_display_prop): New functions.
785 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
786 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
787 New variables.
c4f4682b
MB
788 (syms_of_xdisp): Initialize them.
789
7d7ad10e
KH
7902008-06-30 Kenichi Handa <handa@m17n.org>
791
792 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
793 XftDefaultSubstitute (they are called in XftFontMatch).
794 (xftfont_open): Fix args to ftfont_font_format.
795
796 * ftfont.c (fc_charset_table): New member lang.
797 (ftfont_resolve_generic_family): New arg pattern.
798 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
799 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
800 (ftfont_open): Fix args to ftfont_font_format.
801 (ftfont_font_format): New arg filename.
802
44b754c7
CY
8032008-06-30 Chong Yidong <cyd@stupidchicken.com>
804
805 * xfaces.c (Finternal_merge_in_global_face): If default face was
806 modified, realize it again. Update the font face attribute.
807
a4521b03
JR
8082008-06-29 Jason Rumney <jasonr@gnu.org>
809
c2786a3d 810 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 811
fe44f009
KH
8122008-06-29 Kenichi Handa <handa@m17n.org>
813
814 * fontset.c (Finternal_char_font): Return font-object instead of
815 font-name.
816
c2786a3d 817 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 818
baed8445
SM
8192008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
820
821 * indent.c (Fvertical_motion): Properly handle float column arg.
822
8b61a891
JR
8232008-06-28 Jason Rumney <jasonr@gnu.org>
824
baed8445
SM
825 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
826 (pfnSetLayeredWindowAttributes): New function pointer.
827 (w32_initialize): Initialize it when supported.
828 (x_set_frame_alpha): New function.
8b61a891 829
baed8445
SM
830 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
831 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 832
baed8445 833 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 834
57016d37
JR
8352008-06-27 Jason Rumney <jasonr@gnu.org>
836
baed8445
SM
837 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
838 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
839 (w32_to_x_charset, x_to_w32_charset)
840 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
841 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
842 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
843 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
844 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
845 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
846 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
847 (Qw32_charset_unicode): Remove.
848 (syms_of_w32fns): Update for above changes.
849
850 * w32font.c (w32_to_x_charset, x_to_w32_charset)
851 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
852 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
853 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
854 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
855 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
856 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
857 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
858 (syms_of_w32font): Update for above changes.
57016d37 859
d6bf1bdb
DN
8602008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
861
862 * s/usg5-4.h: Fix previous change: keep the correct branch of a
863 removed #if.
9fa1c445 864 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 865
43db14bb
JB
8662008-06-26 Juanma Barranquero <lekktu@gmail.com>
867 Eli Zaretskii <eliz@gnu.org>
868
869 * makefile.w32-in (LOCAL_FLAGS):
870 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
871
872 * sysdep.c (_spawnlp, _getpid):
873 Declare with explicit _cdecl instead of _CRTAPI1.
874
875 * editfns.c (Fget_internal_run_time):
876 Check for WINDOWSNT with #ifdef, not #if.
877
c35f9821
JR
8782008-06-26 Jason Rumney <jasonr@gnu.org>
879
43db14bb 880 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 881
57016d37 882 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
883 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
884 Use FONT_HANDLE macro.
885 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 886
57016d37 887 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 888 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 889
43db14bb
JB
890 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
891 (w32font_text_extents): Use precast w32_font.
892 (w32font_close): Free cached metrics.
893 (w32font_open_internal): Allocate space for name on stack.
c35f9821 894
1f8ad719
CY
8952008-06-26 Chong Yidong <cyd@stupidchicken.com>
896
897 * xdisp.c (extend_face_to_end_of_line): Fix last change.
898
97e71655
JR
8992008-06-26 Jason Rumney <jasonr@gnu.org>
900
43db14bb
JB
901 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
902 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 903
c9fc02c7
JB
9042008-06-26 Juanma Barranquero <lekktu@gmail.com>
905
906 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
907
1b5defe6
JR
9082008-06-26 Jason Rumney <jasonr@gnu.org>
909
c9fc02c7 910 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 911
c9fc02c7 912 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 913
c9fc02c7
JB
914 * w32gui.h: Don't include w32bdf.h.
915 (XCharStruct, enum w32_char_font_type, W32FontStruct):
916 Remove obsolete font support.
1b5defe6 917
c9fc02c7
JB
918 * w32font.h (struct w32font_info): Remove compat_w32_font.
919 Add hfont member.
920 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 921
c9fc02c7
JB
922 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
923 (w32font_encode_char, w32font_text_extents): Use new hfont member.
924 (w32font_open_internal): Remove compat code. Set new hfont member.
925 (Fx_select_font): Use new hfont member.
1b5defe6 926
57016d37 927 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 928 (uniscribe_encode_char): Use new hfont member.
1b5defe6 929
57016d37 930 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
931 (x_draw_composite_glyph_string_foreground): Use new hfont member.
932 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 933
1fc66bca
KH
9342008-06-26 Kenichi Handa <handa@m17n.org>
935
936 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
937
f2a77c3a
DN
9382008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
939
940 * unexnext.c:
941 * m/ews4800.h:
942 * m/hp9000s300.h:
943 * m/ibm370aix.h:
944 * m/mips-siemens.h:
945 * m/ncr386.h:
946 * m/next.h:
947 * m/pmax.h:
948 * m/powerpcle.h:
949 * m/tandem-s2.h:
950 * s/386bsd.h:
951 * s/bsd386.h:
952 * s/bsd4-1.h:
953 * s/bsd4-2.h:
954 * s/bsdos2-1.h:
955 * s/bsdos2.h:
956 * s/bsdos3.h:
957 * s/bsdos4.h:
958 * s/nextstep.h:
959 * s/ultrix4-3.h:
960 * s/usg5-0.h:
961 * s/usg5-2-2.h:
962 * s/usg5-2.h:
963 * s/usg5-4-3.h:
964 * s/ux4800.h:
965 * s/uxpds.h:
966 * s/uxpv.h: Remove support for obsolete systems.
967 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
968 Remove, insert contents in s/hpux-10.20.h
969 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
970 Remove, insert contents in s/aix-4.2.h
971 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
972 * s/bsd4-3.h: Rename to ..
973 * s/bsd-common.h: ... this.
974 * src/data.c:
975 * src/doc.c:
976 * src/ecrt0.c:
977 * src/emacs.c:
978 * src/fileio.c:
979 * src/floatfns.c:
980 * src/keyboard.c:
981 * src/mem-limits.h:
982 * src/print.c:
983 * src/process.c:
984 * src/sysdep.c:
985 * src/syssignal.h:
986 * src/systty.h:
987 * src/syswait.h:
988 * src/term.c:
989 * src/unexec.c:
990 * src/unexelf.c:
991 * src/unexhp9k800.c:
992 * src/m/hp800.h:
993 * src/m/ibmrs6000.h:
994 * src/m/mips.h:
995 * src/m/vax.h:
996 * src/s/darwin.h:
997 * src/s/freebsd.h:
998 * src/s/gnu.h:
999 * src/s/ms-w32.h:
1000 * src/s/msdos.h:
1001 * src/s/netbsd.h:
1002 * src/s/template.h: Remove references to obsolete variables.
1003
1004 * Makefile.in: Add dependencies for all unexec files.
1005 (admindir): Remove unused variable.
1006 (UNEXEC_SRC): Remove references.
1007
bd02793a
CY
10082008-06-25 Chong Yidong <cyd@stupidchicken.com>
1009
1010 * xfns.c (x_default_font_parameter): If Xft is available, first
1011 try Monospace-12 for the default font.
1012
ccedd259
JR
10132008-06-25 Jason Rumney <jasonr@gnu.org>
1014
c9fc02c7 1015 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 1016
fbe062b7
SM
10172008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
1018
603a0937
SM
1019 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1020
fbe062b7
SM
1021 * buffer.c (syms_of_buffer): Remove default-word-wrap.
1022
69785ad0
JB
10232008-06-25 Juanma Barranquero <lekktu@gmail.com>
1024
1025 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1026 <scroll-conservatively>: Fix typo in docstring.
1027
1028 * xselect.c (Fx_send_client_event): Doc fix.
1029
249e6f76
KH
10302008-06-25 Kenichi Handa <handa@m17n.org>
1031
34e97272
KH
1032 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1033
1034 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
1035 (font_sort_entites): Delete the arg SPEC. Caller changed.
1036 Fix for the case of ! best_only.
34e97272
KH
1037 (font_delete_unmatched): Check DPI and AVGWIDTH too.
1038
249e6f76
KH
1039 * lisp.h (Fstring_to_unibyte): EXFUN it.
1040
69785ad0 1041 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
1042
1043 * character.c (str_to_unibyte): New function.
1044
1045 * fns.c (Fstring_to_unibyte): New function.
1046 (syms_of_fns): Defsubr it.
1047
65c108e4
KH
10482008-06-24 Kenichi Handa <handa@m17n.org>
1049
1050 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
1051 DPI too.
1052 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
1053
4c3f18fe
AS
10542008-06-24 Andreas Schwab <schwab@suse.de>
1055
69785ad0 1056 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 1057 ../lisp/loaddefs.el.
fd13748d
AS
1058 (bootstrap-clean): Do what distclean does but don't remove
1059 Makefile.
1060 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 1061
faa6190f
CY
10622008-06-24 Chong Yidong <cyd@stupidchicken.com>
1063
1064 * buffer.h (struct buffer): New member word_wrap.
1065
1066 * buffer.c (syms_of_buffer): New variables default-word-wrap and
1067 word-wrap.
1068 (init_buffer_once): Initialize them.
1069
1070 * dispextern.h (struct it): Replace bool truncate_lines_p with a
1071 line_wrap enum possessing three possible values.
1072
1073 * termopts.h: Replace truncate_partial_width_windows with
1074 Vtruncate_partial_width_windows.
1075
1076 * dispnew.c (direct_output_for_insert): Avoid direct output when
1077 inserting a space with word wrap on.
1078
1079 * indent.c (compute_motion): Obey integer values of
1080 truncate-partial-width-windows.
1081
1082 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
1083 replacing truncate_partial_width_windows.
1084 (init_iterator): If Vtruncate_partial_width_windows is an integer,
1085 truncate only if the window width is below that integer.
1086 (start_display. resize_mini_window, produce_stretch_glyph)
1087 (display_string, move_it_in_display_line_to): Use line_wrap.
1088 (back_to_previous_visible_line_start, reseat_1): Reset
1089 string_from_display_prop_p.
1090 (display_line): Extend default face to end of line when wrapping.
1091
10922008-06-24 Kim F. Storm <storm@cua.dk>
1093
1094 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
1095 to wrap continued lines at word boundaries.
1096
c3bb5465
JR
10972008-06-24 Jason Rumney <jasonr@gnu.org>
1098
69785ad0
JB
1099 * font.c (Ffont_face_attributes): Multiply pixel size before point
1100 conversion to avoid multiplying rounding error.
c3bb5465 1101
0b07ad98
JR
11022008-06-23 Jason Rumney <jasonr@gnu.org>
1103
f245f2c6
JB
1104 * w32term.c (x_draw_glyph_string_background)
1105 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 1106
69785ad0 1107 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 1108
22459668
KH
11092008-06-22 Kenichi Handa <handa@m17n.org>
1110
1111 * font.c (font_find_for_lface): Try the adstyle specified in
1112 the property of LFACE_FONT of LFACE (if any).
1113
d925a426 11142008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 1115 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
1116
1117 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
1118
b4945b95
SM
11192008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
1122 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
1123 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
1124 (witness-emacs): Remove.
1125 (lisp, shortlisp): Move loaddefs.el earlier.
1126 (mostlyclean): Forget about witness-emacs.
1127
64124279
GM
11282008-06-22 Glenn Morris <rgm@gnu.org>
1129
1130 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 1131 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 1132
768efd84
SM
11332008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1134
1135 * Makefile.in (PRECOMP): Remove.
1136 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
1137 (witness-emacs): Run `compile-first'.
1138 (.el.elc): Use the new compile-onefile target.
1139
808dd567
KH
11402008-06-21 Kenichi Handa <handa@m17n.org>
1141
1142 * xftfont.c (xftfont_open): Handle QCembolden only when
1143 FC_EMBOLDEN is defined.
1144
0de59eae
AS
11452008-06-21 Andreas Schwab <schwab@suse.de>
1146
1147 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 1148 (.el.elc): Likewise.
0de59eae 1149
fb38e9c9
MB
11502008-06-21 Miles Bader <miles@gnu.org>
1151
1152 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
1153 build dir, not the lisp source dir.
1154
fc46d219
SM
11552008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1156
1157 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
1158 (bootstrapclean): Remove.
1159 (.el.elc): New rule.
1160 (PRECOMP): New var.
1161 (../lisp/subdirs.el): Remove.
1162 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
1163 (witness-emacs): New target.
1164 (mostlyclean): Remove witness-emacs as well.
1165 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
1166 Add witness-emacs dependency.
1167
eaf1f6e7
CY
11682008-06-20 Chong Yidong <cyd@stupidchicken.com>
1169
1170 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
1171 defined by the font.
1172
49f6eb95
SM
11732008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1174
1175 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
1176 (bootstrap-clean): New target that keeps TAGS around.
1177 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
1178 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
1179
4c100a01
JR
11802008-06-20 Jason Rumney <jasonr@gnu.org>
1181
49f6eb95
SM
1182 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
1183 Remove obsolete font code.
db61a7f8 1184
49f6eb95
SM
1185 * w32font.c (font_matches_spec): Use csb bitfield from font signature
1186 to determine language support.
4c100a01 1187
759d3f32
SM
11882008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1189
1190 * sysdep.c (cfsetspeed): New fun extracted from the code.
1191 (cfmakeraw): Move before first use.
1192
25241b4d
SM
11932008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
1194
1195 * sysdep.c (cfmakeraw): Provide fallback implementation.
1196 (serial_configure): Provide fallback implementation of cfsetspeed.
1197
d7afccca
KH
11982008-06-20 Kenichi Handa <handa@m17n.org>
1199
dc2226d0
KH
1200 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
1201 the pattern.
1202
9b9cd864
KH
1203 * fontset.c (fontset_from_font): Copy font_spec before changing
1204 the elements.
1205
d7afccca
KH
1206 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
1207
770e2e6e
SM
12082008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1209
1210 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
1211 for explicit `font' parameters.
1212
1213 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
1214
22e64f7c
KH
12152008-06-19 Kenichi Handa <handa@m17n.org>
1216
1217 * frame.c: Include <ctype.h>.
1218 (x_set_font_backend): Allow spacing characters in the X resource
1219 for FontBackend.
1220
27129af9
SM
12212008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
1222
1223 * w32fns.c, xfns.c (Qfont_param): New var.
1224 (syms_of_w32fns): Initialize it.
22e64f7c
KH
1225 (x_default_font_parameter): Record explicit `font' into
1226 `font-parameter'.
27129af9 1227
d26424c5
KH
12282008-06-18 Kenichi Handa <handa@m17n.org>
1229
1230 * font.c (font_parse_xlfd): Fix previous change.
1231 (font_parse_fcname): Don't use :fc-unknown-spec.
1232 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1233 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1234 (font_add_log): Prepend the driver name to the resulting fonts.
1235
1236 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
1237 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1238 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1239
1240 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1241 (QCembolden): New variables.
1242 (syms_of_xftfont): DEFSYM them.
1243 (xftfont_open): Call XftFontMatch. Don't trust the result of
1244 XftTextExtents8 if the pixel_size is less than 5.
1245
51cf11be
AS
12462008-06-18 Andreas Schwab <schwab@suse.de>
1247
f245f2c6 1248 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
1249 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1250
07d9ba9b
JR
12512008-06-18 Jason Rumney <jasonr@gnu.org>
1252
27129af9 1253 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 1254
27129af9 1255 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 1256
0c36bc4e
CY
12572008-06-17 Chong Yidong <cyd@stupidchicken.com>
1258
1259 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
1260 unknown-spec list. For known key symbols, intern using correct
1261 symbol name.
0c36bc4e 1262
70d6ecc6
KH
12632008-06-17 Kenichi Handa <handa@m17n.org>
1264
1265 * xfaces.c (realize_default_face): If the frame is not on window
1266 system, set the fontset of face to nil.
1267
821bc4db
KH
12682008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1269
f245f2c6 1270 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 1271
3554e566
JB
12722008-06-16 Juanma Barranquero <lekktu@gmail.com>
1273
1274 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
1275 (build_font_name_from_vector): Delete externs.
1276
1277 * xfaces.c (struct font_name): Don't declare.
1278
93eed26b
SM
12792008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1280
1281 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
1282
d756bcd0
CY
12832008-06-16 Chong Yidong <cyd@stupidchicken.com>
1284
1285 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
1286
7a18a178
JB
12872008-06-16 Juanma Barranquero <lekktu@gmail.com>
1288
1289 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 1290 (Ffont_face_attributes): Doc fix.
7a18a178 1291
6f568955
AS
12922008-06-16 Andreas Schwab <schwab@suse.de>
1293
1294 * font.c (Ffont_face_attributes): Fix definition.
1295
3ef8c1b4
JR
12962008-06-16 Jason Rumney <jasonr@gnu.org>
1297
93eed26b 1298 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 1299
93eed26b
SM
1300 * font.c (font_style_symbolic_from_value): Remove.
1301 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 1302
93eed26b
SM
1303 * w32font.c (w32_to_fc_weight): New function.
1304 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 1305
5e634ec9
KH
13062008-06-16 Kenichi Handa <handa@m17n.org>
1307
1308 * font.c (font_check_object): Delete it.
1309 (font_clear_cache): Check if a font-object is alive.
1310 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
1311 font-object to nil.
1312 (font_close_object): Don't check FONT_CLOSE_OBJECT.
1313 (font_at): Don't call font_check_object.
2babb359 1314 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 1315
6409a955
KY
13162008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
1317
1318 * puresize.h (BASE_PURESIZE): Increase to 1230000.
1319
ce4eaddb
CY
13202008-06-16 Chong Yidong <cyd@stupidchicken.com>
1321
1322 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
1323
523dbe64
CY
13242008-06-15 Chong Yidong <cyd@stupidchicken.com>
1325
54b2ab27 1326 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
1327 (font_unparse_fcname): Handle data in family and foundry indices
1328 as symbols, not strings.
1329 (font_unparse_gtkname, Ffont_face_attributes): New functions.
1330
54b2ab27 1331 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
1332
1333 * font.h (font_unparse_gtkname): Add prototype.
1334
9f296082
KH
13352008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1336
54b2ab27 1337 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 1338
3306c6dc
AS
13392008-06-15 Andreas Schwab <schwab@suse.de>
1340
1341 * font.c (font_update_drivers): Fix crash when no drivers match.
1342
a099c27a
SM
13432008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
1344
1345 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
1346 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
1347
a8aa344d
SM
13482008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
1349
1350 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
1351
a879ee6f
SM
13522008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1353
1354 * process.c (Fserial_process_configure, Fprocess_send_eof):
1355 Use EQ to compare Lisp_Objects.
1356
6fe9826d
JR
13572008-06-13 Jason Rumney <jasonr@gnu.org>
1358
a879ee6f 1359 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 1360
a879ee6f
SM
1361 * w32font.c (logfont_to_fcname): New function.
1362 (Fx_select_font): New font dialog function compatible with
1363 GTK/fontconfig version.
6fe9826d 1364
a879ee6f
SM
1365 * font.c (font_style_symbolic_from_value): New function.
1366 (font_style_symbolic): Use it.
6fe9826d 1367
a879ee6f 1368 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 1369
17ab8f5d
JB
13702008-06-13 Juanma Barranquero <lekktu@gmail.com>
1371
1372 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
1373 <font-width-table>: Fix typos in docstrings.
1374
d888760c
GM
13752008-06-13 Daniel Engeler <engeler@gmail.com>
1376
1377 These changes add serial port access.
1378 * process.c: Add HAVE_SERIAL.
1379 (Fdelete_process, Fprocess_status, Fset_process_buffer)
1380 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
1381 (list_processes_1, select_wrapper, Fstop_process)
1382 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
1383 (status_notify): Modify to handle serial processes.
1384 [HAVE_SERIAL] (Fserial_process_configure)
1385 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
1386 New functions.
1387 * process.h (struct Lisp_Process): Add `type'.
1388 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
1389 New functions.
1390 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
1391 serial ports.
1392 (serial_open, serial_configure) New functions.
1393 * w32.h: Add FILE_SERIAL.
1394 (struct _child_process): Add ovl_read, ovl_write.
1395
f4cc0153
KH
13962008-06-13 Kenichi Handa <handa@m17n.org>
1397
1398 * dispextern.h (enum lface_attribute_index): New member
1399 LFACE_FOUNDRY_INDEX.
1400
1401 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 1402 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 1403 style symbols.
7a18e381 1404 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
1405 order of font-driver to scores.
1406 (font_list_entities): Don't check alternate_familes here.
1407 (font_clear_prop): Handle foundry.
1408 (font_update_lface): Don't parse "foundry-family" form here.
1409 Handle FONT_FOUNDRY_INDEX.
1410 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 1411 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 1412 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 1413 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
1414 (free_font_driver_list): Delete it.
1415 (font_update_drivers): Preserve the order of backends.
1416 (syms_of_font): Setting of sort_shift_bits adjusted for the change
1417 of font_score and font_sort_entites.
1418 (font_update_sort_order): Likewise.
1419
1420 * xfaces.c (LFACE_FOUNDRY): New macro.
1421 (check_lface_attrs): Check foundry.
7a18e381 1422 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
1423 (merge_face_vectors): Check foundry.
1424 (merge_face_ref): Likewise.
1425 (Finternal_set_lisp_face_attribute): Likewise.
1426 (x_update_menu_appearance): Likewise.
1427 (Finternal_get_lisp_face_attribute): Likewise.
1428 (lface_hash): Likewise.
1429 (lface_same_font_attributes_p): Likewise.
1430 (x_supports_face_attributes_p): Likewise.
1431 (tty_supports_face_attributes_p): Likewise.
1432 (Finternal_set_alternative_font_family_alist): Intern strings.
1433 (Finternal_set_alternative_font_registry_alist): Downcase strings.
1434 (realize_default_face): Set LFACE_FOUNDRY (lface).
1435
1436 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
1437 font-driver at first.
1438
1439 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
1440
d434fef5 14412008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
1442
1443 * lread.c (Fload): Use xfree, not free on saved_doc_string.
1444
9c5e177e
JM
14452008-06-12 Jim Meyering <meyering@redhat.com>
1446
d434fef5 1447 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
1448 * unexmacosx.c (unexec_free): Ignore a NULL argument.
1449
2afc21f5
SM
14502008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1451
1452 * character.h (CHAR_TO_BYTE_SAFE): New macro.
1453 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
1454 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
1455 (WEAK_ALIAS): Simplify.
1456 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
1457 when searching a unibyte buffer.
1458
76c0de62
CY
14592008-06-12 Chong Yidong <cyd@stupidchicken.com>
1460
1461 * xfns.c (Fx_select_font): Rename from x-font-dialog.
1462
0500dcc9
JB
14632008-06-12 Juanma Barranquero <lekktu@gmail.com>
1464
1465 * w32font.c: Include ctype.h.
1466
f42adef6
JR
14672008-06-11 Jason Rumney <jasonr@gnu.org>
1468
2afc21f5
SM
1469 * w32font.c (w32font_encode_char): Detect missing glyphs that are
1470 misreported as space.
1471 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
1472 as aliases for registry iso10646-1.
f42adef6 1473
4b7cdc0e
SM
14742008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1475
1476 * buffer.c (clone_per_buffer_values): Skip `name'.
1477
cc02ebe1
CY
14782008-06-11 Chong Yidong <cyd@stupidchicken.com>
1479
1480 * font.c (font_parse_fcname): Fix last change; accept decimal
1481 points in font size.
1482
351ccb76
JR
14832008-06-10 Jason Rumney <jasonr@gnu.org>
1484
0500dcc9
JB
1485 * w32uniscribe.c (add_opentype_font_name_to_list):
1486 Skip non unicode fonts.
351ccb76 1487
f473ed6f
CY
14882008-06-10 Chong Yidong <cyd@stupidchicken.com>
1489
1490 * xfns.c (Fx_font_dialog): New function.
1491
5d6333d5 1492 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
1493 xg_file_response_callback.
1494 (pop_down_dialog): Rename from pop_down_file_dialog.
1495 (xg_get_file_name): Callers changed.
1496 (xg_get_font_name): New function.
1497
5d6333d5 1498 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 1499
2a3bd2e1
SM
15002008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1501
1502 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
1503 x_underline_minimum_display_offset.
1504 (syms_of_xdisp): Declare it here rather than in xterm.c.
1505 * dispextern.h (underline_minimum_offset): Declare it.
1506 * w32term.c (x_draw_glyph_string): Use it.
1507 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
1508 (syms_of_xterm): Don't declare it any more.
1509 (x_draw_glyph_string): Adjust to the new name.
1510
d5dc6163
SM
15112008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
1512
1513 * xterm.c (x_underline_minimum_display_offset): New var.
1514 (x_draw_glyph_string): Use it.
1515 (syms_of_xterm): Declare it.
1516
0abdd197
CY
15172008-06-10 Chong Yidong <cyd@stupidchicken.com>
1518
1519 * font.c (font_parse_fcname): Accept GTK-style font names too.
1520
a1562258
SM
15212008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1522
928b5acc
SM
1523 * dired.c (file_name_completion): Don't return t if the match is exact
1524 but with different capitalization.
1525 * minibuf.c (Ftry_completion): Simplify.
1526
a1562258
SM
1527 * window.c (Vwindow_point_insertion_type): New var.
1528 (set_window_buffer): Use it.
1529 (syms_of_window): Init and export it to Lisp.
1530
9552dbd1
KH
15312008-06-10 Kenichi Handa <handa@m17n.org>
1532
1533 * font.h (font_intern_prop): Prototype adjusted.
1534
1535 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
1536 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1537 Adjust for the change of font_intern_prop.
9552dbd1 1538
a1562258
SM
1539 * ftfont.c (ftfont_pattern_entity):
1540 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1541 (w32_registry):
1542 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
1543 the change of font_intern_prop.
1544
8993ad2e
JB
15452008-06-09 Juanma Barranquero <lekktu@gmail.com>
1546
1547 * w32menu.c (digest_single_submenu): Declare extern.
1548
0c2258fc
JR
15492008-06-09 Jason Rumney <jasonr@gnu.org>
1550
a1562258 1551 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 1552
a1562258
SM
1553 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1554 (parse_single_submenu): Remove.
1555 (digest_single_submenu): Remove.
1556 (syms_of_w32menu): Don't initialise variables that have moved
1557 to menu.c.
1558 (set_frame_menubar): Sync with version in xmenu.c.
1559 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 1560
8993ad2e
JB
1561 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1562 Make static again.
0c2258fc 1563
02246cb8
JR
15642008-06-09 Jason Rumney <jasonr@gnu.org>
1565
8993ad2e
JB
1566 Changes to w32 files related to the move of common menu code
1567 to menu.c on 2008-06-08 by Chong Yidong.
1568
1569 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1570 defs to w32gui.h.
1571 (single_keymap_panes, push_menu_item, push_menu_pane):
1572 Make globally visible.
1573
d434fef5
JB
1574 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1575 (local_free, malloc_widget_value, free_widget_value)
1576 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1577 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1578 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 1579 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 1580 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
1581 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1582 (init_menu_items, finish_menu_items, discard_menu_items)
1583 (grow_menu_items, push_submenu_start, push_submenu_end)
1584 (push_left_right_boundary, push_menu_pane, push_menu_item)
1585 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 1586 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
1587 (update_submenu_strings): Remove functions.
1588 (xmalloc_widget_value): Remove and declare extern.
1589
1590 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1591 (OBJ1): Build it.
1592
1593 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1594 (local_heap, local_alloc, local_free, malloc_widget_value)
1595 (free_widget_value): Define here.
02246cb8 1596
9e1bb909
KH
15972008-06-09 Kenichi Handa <handa@m17n.org>
1598
366664ad
KH
1599 * font.h (Qascii_0): Extern it.
1600
9e1bb909
KH
1601 * font.c (Qascii_0): New variable.
1602 (syms_of_font): DEFSYM it.
1603 (font_open_by_name): If the registry "iso8859-1" fails, try also
1604 "ascii-0".
1605
1606 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
1607
b2ee479e
KH
16082008-06-08 Kenichi Handa <handa@m17n.org>
1609
8f440b79 1610 * .gdbinit (xfont): New command.
b2ee479e 1611
01ef9d36
AS
16122008-06-08 Andreas Schwab <schwab@suse.de>
1613
a4240420
AS
1614 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
1615 * Makefile.in (menu.o): Update dependencies.
1616
0181bf66 1617 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
1618 * emacs.c (main): Always call syms_of_menu.
1619 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
1620
c07cbae6
CY
16212008-06-08 Chong Yidong <cyd@stupidchicken.com>
1622
1623 * Makefile.in: Compile menu.c.
1624
1625 * lisp.h: Declare syms_of_menu.
1626
1627 * emacs.c (main): Call syms_of_menu.
1628
1629 * keyboard.h: Relocate platform-independent menu definitions from
1630 xmenu.c.
1631
1632 * menu.c: New file. Relocate platform-independent menu
904d8c69 1633 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
1634
1635 * xmenu.c: Remove platform-independent menu definitions.
1636 (menu_items menu_items_inuse, menu_items_allocated)
1637 (menu_items_used, menu_items_n_panes)
1638 (menu_items_submenu_depth): Move to keyboard.h.
1639 (init_menu_items, finish_menu_items, unuse_menu_items)
1640 (discard_menu_items, restore_menu_items, save_menu_items)
1641 (grow_menu_items, push_submenu_start, push_submenu_end)
1642 (push_left_right_boundary, push_menu_pane, push_menu_item)
1643 (keymap_panes, single_keymap_panes, single_menu_item)
1644 (list_of_panes, list_of_items, find_and_call_menu_selection)
1645 (xmalloc_widget_value, free_menubar_widget_value_tree)
1646 (parse_single_submenu, digest_single_submenu)
1647 (update_submenu_strings): Move to menu.c.
1648
4958ed94
SM
16492008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
1650
1651 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
1652
408b8ab4
MB
16532008-06-06 Miles Bader <miles@gnu.org>
1654
1655 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
1656 face, not frame default.
1657
87478b52
SM
16582008-06-05 Martin Rudalics <rudalics@gmx.at>
1659
1660 * window.c (pop_up_windows, pop_up_frames)
1661 (display_buffer_reuse_frames, Vpop_up_frame_function)
1662 (Vdisplay_buffer_function, Veven_window_heights)
1663 (Vspecial_display_buffer_names, Vspecial_display_regexps)
1664 (Vspecial_display_function, Vsame_window_buffer_names)
1665 (Vsame_window_regexps, split_height_threshold)
1666 (Vsplit_window_preferred_function): Move those vars to window.el.
1667 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
1668 (Fdisplay_buffer): Move those functions to window.el.
1669 (syms_of_window): Remove corresponding declarations.
1670 (display_buffer): New function.
1671 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
1672 * dispnew.c (Flast_nonminibuf_frame): New function.
1673 * buffer.c (Fpop_to_buffer): Move to window.el.
1674
9e0e0d77
SM
16752008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1676
1677 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
1678
4a485df8
KH
16792008-06-05 Kenichi Handa <handa@m17n.org>
1680
1681 * coding.c (detect_coding): Fix previous change.
1682 (detect_coding_system): Likewise.
1683
8ba31f36
SM
16842008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1685
c0dc8f64
SM
1686 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
1687
8ba31f36
SM
1688 * keymap.c (Vminibuffer_local_filename_must_match_map):
1689 Rename from Vminibuffer_local_must_match_filename_map.
1690 (syms_of_keymap):
1691 * minibuf.c (Fcompleting_read): Adjust accordingly.
1692 * commands.h: Rename declaration as well.
1693
7740d2c7
KH
16942008-06-05 Kenichi Handa <handa@m17n.org>
1695
e7438ece
KH
1696 * font.c (Ffont_spec): Don't use font_parse_family_registry for
1697 family name.
1698 (Ffont_put): Likewise.
1699
1700 * fontset.c (fontset_find_font): Call font_open_for_lface with the
1701 current font-spec.
1702
7740d2c7
KH
1703 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
1704 is unspecified.
1705
1706 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
1707 are the same as those of default face, realize a new fontset from
1708 default->fontset.
9e0e0d77 1709 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 1710
c876b227
SM
17112008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1712
1713 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
1714 (move_it_in_display_line): New wrapper.
1715
1716 * window.c (window_scroll_pixel_based_preserve_x)
1717 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1718 (window_scroll_pixel_based, window_scroll_line_based):
1719 Use them to preserve column positions.
1720 (syms_of_window): Initialize them.
1721
1722 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1723 (HPOS . VPOS) pair.
1724
1725 * dispextern.h (move_it_in_display_line): Declare.
1726
927abf37
JB
17272008-06-05 Juanma Barranquero <lekktu@gmail.com>
1728
1729 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1730 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
1731 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
1732
9d14503e
JB
17332008-06-04 Juanma Barranquero <lekktu@gmail.com>
1734
1735 * window.c (Fset_window_parameter): Doc fix.
1736 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
1737
e6841c3b
JB
17382008-06-04 Joakim Verona <joakim@verona.se>
1739
1740 * window.h (struct window): Add new member window_parameters.
1741
1742 * window.c (Fwindow_parameters, Fwindow_parameter)
1743 (Fset_window_parameter): New defuns.
1744 (syms_of_window): Defsubr the new defuns.
1745 (make_window): Initialize window_parameters to nil.
1746
4ba50634
JPW
17472008-06-04 John Paul Wallington <jpw@pobox.com>
1748
1749 * eval.c (Fdefmacro): Doc fix.
1750
c0e16b14
KH
17512008-06-04 Kenichi Handa <handa@m17n.org>
1752
1753 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 1754 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
1755 (detect_coding_system): Fix handling of coding->head_ascii.
1756
0615d903
AS
17572008-06-03 Andreas Schwab <schwab@suse.de>
1758
1759 * font.c (font_prop_validate_spacing): Fix last change.
1760
8a1816bb
KH
17612008-06-03 Kenichi Handa <handa@m17n.org>
1762
eea9c5c4
KH
1763 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
1764 (font_parse_fcname): Fix handling of unknown key.
1765
1766 * xfont.c (xfont_list): Try an alias.
1767
8a1816bb
KH
1768 * charset.c (char_charset): Return NULL if the arg charset_list is
1769 specified and C doesn't belong to any of them.
1770
2f593f4c 17712008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
1772
1773 * font.c (font_pixel_size): Don't take cdr of an integer.
1774
c2cd06e6
JM
17752008-06-02 Jim Meyering <meyering@redhat.com>
1776
70fdbb46
JM
1777 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1778 * alloc.c (xfree): Return right away for a NULL arg.
1779 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1780 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1781 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
1782 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1783 Likewise.
70fdbb46
JM
1784 * doprnt.c (doprnt1): Likewise.
1785 * frame.c (frame): Likewise.
1786 * keyboard.c (wipe_kboard): Likewise.
1f204af3 1787 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
1788 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1789 * term.c (tty_default_color_capabilities, maybe_fatal)
1790 (delete_tty): Likewise.
1791 * w16select.c (string): Likewise.
1792 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1793 * w32bdf.c (w32_free_bdf_font): Likewise.
1794 * w32fns.c (w32_unload_font): Likewise.
1795 * w32font.c (w32font_close): Likewise.
1796 * window.c (size_window): Likewise.
1797 * xselect.c (receive_incremental_selection): Likewise.
1798 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1799 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1800 * w32.c (stat): Likewise.
1801
2f593f4c 1802 Remove useless if-before-free tests.
70fdbb46
JM
1803 * editfns.c (Fset_time_zone_rule): Likewise.
1804 * lread.c (nosuffix): Likewise.
1805 * ralloc.c (get_bloc): Likewise.
1806 * regex.c (reg_free): Likewise.
1807 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1808 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1809 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 1810
4fc1984a
KH
18112008-06-02 Kenichi Handa <handa@m17n.org>
1812
1d1e1245
KH
1813 * font.c (font_find_for_lface): Handle float font size.
1814 (font_open_for_lface): Likewise.
1815
4fc1984a
KH
1816 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1817 comparing the properties.
1818
aee986fd
JR
18192008-06-01 Jason Rumney <jasonr@gnu.org>
1820
e6841c3b
JB
1821 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1822 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1823 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1824 Don't add empty script list.
1825 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 1826
60a3d7ee
DN
18272008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1828
aee986fd 1829 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
1830 ".." has been used elsewhere in the file for a long time.
1831 (LIBXT_STATIC): Remove conditional based on unused variable.
1832
f2cec7a9
MB
18332008-06-01 Miles Bader <miles@gnu.org>
1834
1835 * xfaces.c (Vface_remapping_alist): New variable.
1836 (syms_of_xfaces): Initialize it.
1837 (enum named_merge_point_kind): New type.
1838 (struct named_merge_point): Add `named_merge_point_kind' field.
1839 (push_named_merge_point): Make cycle detection respect different
1840 named-merge-point kinds.
c876b227 1841 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
1842 Remove face-name alias resolution.
1843 (lface_from_face_name): New definition using
1844 `lface_from_face_name_no_resolve'.
c876b227 1845 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
1846 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1847 (get_lface_attributes): New definition that layers face-remapping on
1848 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1849 (lookup_basic_face): New function.
1850 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1851 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1852 `get_lface_attributes'.
1853 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1854 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1855 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1856
1857 * xdisp.c (init_iterator): Pass base_face_id through
1858 `lookup_basic_face' when we actually use it as a face-id.
1859 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1860 DEFAULT_FACE_ID.
1861
1862 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1863 lookup the initial face-id.
1864
1865 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1866
518c0b83
JB
18672008-06-01 Juanma Barranquero <lekktu@gmail.com>
1868
1869 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1870 (Fremove_text_properties): Fix typos in docstrings.
1871
719b3d63
KH
18722008-05-31 Kenichi Handa <handa@m17n.org>
1873
e4c93315
KH
1874 * font.c (font_list_entities): Fix the car part of data to be
1875 stored in the cache.
1876
719b3d63
KH
1877 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1878
d0827857
SM
18792008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1882 Add a `test' argument so another predicate than `equal' can be used.
1883 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1884 (map_char_table): Remove unused vars `c' and `i'.
1885 * lisp.h (Foptimize_char_table): Adjust declaration.
1886 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1887
a266686a
KH
18882008-05-30 Kenichi Handa <handa@m17n.org>
1889
d0827857 1890 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
1891 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1892 defined.
1893
fd9440c5
SM
18942008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1895
1896 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1897 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1898 frame-local settings for the same variable.
1899
fd2ae9b2
KH
19002008-05-30 Kenichi Handa <handa@m17n.org>
1901
9e0e0d77 1902 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
1903 (syms_of_fontset): Delete defsubr of Sfont_info.
1904
1905 * font.c (font_style_to_value, font_score): Delete casting of the
1906 args to xstcasecmp.
1907 (register_font_driver): Increment num_font_drivers only when
1908 registering the driver globally.
9e0e0d77 1909 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
1910 (syms_of_font): Defsubr Sfont_info.
1911
eaf11618
KH
19122008-05-29 Kenichi Handa <handa@m17n.org>
1913
1914 * coding.h (enum define_coding_utf8_arg_index): New enum.
1915 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1916 coding_attr_utf_bom.
fd9440c5
SM
1917 (enum utf_bom_type): Rename from utf_16_bom_type.
1918 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
1919 (struct coding_system): Add utf_8_bom in `spec' union.
1920
1921 * coding.c (CODING_UTF_8_BOM): New macro.
1922 (enum coding_category): Delete coding_category_utf_8, add
1923 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1924 coding_category_utf_8_sig.
1925 (CATEGORY_MASK_UTF_8): Delete it.
1926 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1927 (CATEGORY_MASK_UTF_8_SIG): New macros.
1928 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1929 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1930 CATEGORY_MASK_UTF_8_SIG.
1931 (CATEGORY_MASK_UTF_8): New macro.
1932 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1933 (detect_coding_utf_8): Check BOM.
1934 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 1935 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
1936 (encode_coding_utf_16): Likewise.
1937 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1938 (detect_coding, detect_coding_system): Handle utf-8-auto.
1939 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1940 (syms_of_coding): Fix setting up of Vcoding_category_table.
1941
891bd142
SM
19422008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1943
1944 * process.c (Faccept_process_output): If `millisec' is non-nil,
1945 `seconds' default to 0.
1946 (wait_reading_process_output): Also return non-nil if we read output
1947 from a non-running process.
1948
1519d52e
JR
19492008-05-29 Jason Rumney <jasonr@gnu.org>
1950
fd9440c5
SM
1951 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1952 `raster' specified.
1953 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1954 in the uniscribe backend, but disallow any font that has no
1955 unicode subrange support.
1519d52e 1956
d5ab09cd
JB
19572008-05-29 Juanma Barranquero <lekktu@gmail.com>
1958
1959 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1960 Fix typos in docstrings.
1961
a4eec626
KH
19622008-05-29 Kenichi Handa <handa@m17n.org>
1963
1964 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 1965 (Fx_family_fonts): Set frame correctly.
a4eec626 1966
a6e0b7e5
JR
19672008-05-28 Jason Rumney <jasonr@gnu.org>
1968
d5ab09cd 1969 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 1970
6b3d752c
SM
19712008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1972
1973 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1974 calling build_annotations.
1975
c3f9fba8
JB
19762008-05-28 Juanma Barranquero <lekktu@gmail.com>
1977
1978 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1979 (Fencode_coding_string):
1980 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1981 <latin-extra-code-table>: Fix typos in docstrings.
1982 (syms_of_coding) <coding-system-alist>: Doc fix.
1983 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1984
00c670e1
KH
19852008-05-28 Kenichi Handa <handa@m17n.org>
1986
b75d7f28
KH
1987 * fontset.c (Ffont_info): Don't call font_close_object.
1988
1989 * font.c (font_parse_family_registry): Use Ffont_put to validate
1990 foundry and family.
1991 (font_delete_unmatched): Don't check spacing.
1992 (font_list_entities): Add spacing to the spec to list fonts.
1993
1994 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 1995 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 1996
00c670e1
KH
1997 * coding.c (encode_coding_raw_text): Fix previous change.
1998 (encode_coding_object): When the dst_object is a buffer and is
1999 different from src_object, move gap to PT.
2000
45feca91
CY
20012008-05-27 Chong Yidong <cyd@stupidchicken.com>
2002
c3f9fba8 2003 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 2004
5dd5d9eb
SM
20052008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2006
01d45367
SM
2007 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2008 all branches. Compute it differently.
2009
5dd5d9eb
SM
2010 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2011
9c623c85
JB
20122008-05-27 Juanma Barranquero <lekktu@gmail.com>
2013
2014 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2015 into "else if () ... else ...".
2016
943f2093
JR
20172008-05-27 Jason Rumney <jasonr@gnu.org>
2018
5dd5d9eb
SM
2019 * w32font.c (w32font_open_internal): Determine if glyph indices
2020 are likely to work here.
943f2093 2021
7385fe74
CY
20222008-05-27 Chong Yidong <cyd@stupidchicken.com>
2023
2024 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2025 draw overlap glyphs with appropriate highlighting.
2026
4f64a164
KH
20272008-05-27 Kenichi Handa <handa@m17n.org>
2028
2029 * xfont.c (xfont_open): Fix calculation of font->average_width.
2030
1fb5aad7
SM
20312008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2032
2033 * casefiddle.c (casify_object): Try to guess better whether the
2034 argument is a byte or a char.
2035
f8eb1603
AS
20362008-05-26 Andreas Schwab <schwab@suse.de>
2037
1fb5aad7
SM
2038 * xselect.c (x_reply_selection_request): Properly handle format == 32.
2039 Always send multiples of format size.
5a9c35e5 2040
f8eb1603
AS
2041 * xterm.c (x_set_frame_alpha): Fix type mismatch.
2042
ba93d684
JR
20432008-05-26 Jason Rumney <jasonr@gnu.org>
2044
1fb5aad7
SM
2045 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2046 (compute_metrics): Don't set failure if we just cleared the cache.
2047 (w32_weight_table): Remove unused variable.
2048 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2049 backwards compatibility.
ba93d684 2050
505ecc49
KH
20512008-05-25 Kenichi Handa <handa@m17n.org>
2052
1fb5aad7
SM
2053 * w32term.c (x_draw_glyph_string):
2054 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
2055
2056 * xfaces.c: Delete unused function prototypes.
2057 (xstrlwr, font_frame): Delete them.
2058 (clear_face_cache): Delete unused variable.
2059
1fb5aad7
SM
2060 * xftfont.c (xftfont_open): Delete unused variable.
2061 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
2062
2063 * ftxfont.c (ftxfont_open): Delete unused variable.
2064
2065 * fontset.c (face_for_char): Optimize for the case of no charset
2066 property.
2067
2068 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
2069 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
2070 (otf_open, font_otf_capability, generate_otf_features)
2071 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 2072 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
2073 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
2074 (syms_of_font): Codes for accessing above commented out.
2075
f481eb31
EZ
20762008-05-24 Eli Zaretskii <eliz@gnu.org>
2077
2078 * w32proc.c: Include dispextern.h.
2079
2080 * w32.c: Include dispextern.h.
2081
20746fe4
JB
20822008-05-23 Juanma Barranquero <lekktu@gmail.com>
2083
2084 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
2085 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
2086 Fix typos in docstrings.
2087
e7150846
JR
20882008-05-23 Jason Rumney <jasonr@gnu.org>
2089
20746fe4 2090 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 2091
dbf46ba6
KH
20922008-05-23 Kenichi Handa <handa@m17n.org>
2093
6c652beb
KH
2094 * charset.c (Qemacs, charset_emacs): New variables.
2095 (char_charset): Fix for non-Unicode characters.
2096 (syms_of_charset): Define charset_emacs.
2097
baf4d3b3 2098 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
2099 s->underline_thickness and s->underline_position. Be sure to draw
2100 underline within the current line area.
baf4d3b3
KH
2101
2102 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 2103 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 2104 underline within the current line area.
baf4d3b3 2105
dbf46ba6
KH
2106 * fontset.c: Delete unused variables and add casting for char *
2107 throughout the file.
2108 (fontset_font): Try the fallback fonts of the current fontset
2109 before consulting the default fontset.
2110
2111 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
2112
9e0e0d77 2113 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 2114
3b780338
JR
21152008-05-22 Jason Rumney <jasonr@gnu.org>
2116
20746fe4 2117 * font.c: Don't include strings.h.
577eba22 2118
9e0e0d77 2119 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 2120
20746fe4
JB
2121 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
2122 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
2123 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
2124 to call xstrcasecmp.
05131107 2125
b1722a46 2126 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 2127
b1722a46 2128 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 2129
b1722a46 2130 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 2131
b1722a46 2132 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 2133
a30e1957
KH
21342008-05-22 Kenichi Handa <handa@m17n.org>
2135
20746fe4 2136 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 2137
20746fe4 2138 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
2139 change of font_style_table.
2140
a30e1957
KH
2141 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
2142 two args.
2143
2144 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
2145 two args.
2146
631248e5
SM
21472008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2148
2149 * minibuf.c (keys_of_minibuf): Delete.
2150 * lisp.h (keys_of_minibuf): Delete.
2151 * emacs.c (main): Don't call keys_of_minibuf.
2152
318548be
KH
21532008-05-22 Kenichi Handa <handa@m17n.org>
2154
631248e5 2155 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
2156 ftfont_list_generic_family. Return a single family for each
2157 generic family.
2158 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
2159 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
2160 Call font_add_log.
318548be
KH
2161 (ftfont_match): Call font_add_log.
2162
2163 * font.h (Ffont_xlfd_name): EXFUN adjusted.
2164 (FONT_DEBUG): Define it.
2165 (font_add_log): Extern it.
631248e5 2166 (font_assert): Rename from xassert.
318548be
KH
2167
2168 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
2169 (xfont_list_family): Call font_add_log.
2170 (xfont_match): Likewise.
631248e5 2171 (memq_no_quit): Delete.
318548be
KH
2172
2173 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
2174 call of Ffont_xlfd_name.
2175
2176 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 2177 (swidth_table): Move to font.c.
318548be
KH
2178
2179 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 2180 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
2181 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
2182 New variables.
631248e5
SM
2183 (struct table_entry): Move from xfaces.c and modified.
2184 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 2185 contents adjusted for the change of struct table_entry.
20746fe4 2186 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 2187 format change of font_style_table.
318548be
KH
2188 (font_parse_family_registry): Don't overwrite existing foundry and
2189 family of font_spec.
2190 (font_score): Fix calculation of diff for sizes.
2191 (font_sort_entites): Call font_add_log.
2192 (font_delete_unmatched): Return a newly created list.
2193 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
2194 (font_matching_entity, font_open_entity, font_close_entity):
2195 Call font_add_log.
318548be 2196 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 2197 (Finternal_set_font_style_table): Delete.
318548be
KH
2198 (BUILD_STYLE_TABLE): New macro.
2199 (build_style_table): New function.
2200 (Vfont_log, font_log_env_checked): New variables.
2201 (font_add_log): New function.
2202 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
2203 Declare Lisp variables "font-weight-table", "font-slant-table",
2204 "font-width-table", and "font-log". Initialize font_style_table.
2205
6aac1c03
DN
22062008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
2207
bcc850aa 2208 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 2209
7950790f
GM
22102008-05-21 Seiji Zenitani <zenitani@mac.com>
2211 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 2212
7950790f 2213 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 2214 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 2215 (x_set_alpha): New function.
a2979e8e 2216
7950790f 2217 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 2218
7950790f
GM
2219 * xfns.c (x-create-frame, Qalpha):
2220 Initialize the frame parameter `alpha'.
b9fb2c45
GM
2221 * xterm.c (OPAQUE, OPACITY): New.
2222 (x_set_frame_alpha): New function.
2223 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 2224
7950790f
GM
2225 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
2226 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 2227
5c2a72d9
JR
22282008-05-20 Jason Rumney <jasonr@gnu.org>
2229
20746fe4
JB
2230 * w32font.c (add_font_entity_to_list): Don't add non-opentype
2231 truetype fonts to opentype list.
5c2a72d9 2232
eb152aa9
JB
22332008-05-20 Juanma Barranquero <lekktu@gmail.com>
2234
2235 * fontset.c (Ffontset_info): Doc fix.
2236 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2237 <ignore-relative-composition>: Fix typos in docstrings.
2238
2239 * font.c (syms-of-font) <font-encoding-alist>:
2240 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2241 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2242 (Ffont_otf_alternates): Doc fixes.
2243
ad00e1a3
KH
22442008-05-20 Kenichi Handa <handa@m17n.org>
2245
2246 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
2247 font.h through out the file.
9e0e0d77 2248 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 2249 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
2250 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2251
2252 * emacs.c (main): Call syms_of_font unconditionally.
2253
2254 * font.h (find_font_encoding): Extern it.
2255
9e0e0d77 2256 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
2257 fontset.c.
2258 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
2259 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
2260 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
2261 only when HAVE_WINDOW_SYSTEM is defined.
2262 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
2263 when HAVE_WINDOW_SYSTEM is defined.
2264
9e0e0d77
SM
2265 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
2266 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
2267
2268 * xfaces.c: Include font.h unconditionally.
2269 (merge_face_ref, merge_face_vectors)
2270 (Finternal_set_lisp_face_attribute): Cancel the previous change.
2271
40a69fac
SM
22722008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2273
2274 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
2275 indirect_variable.
2276 * eval.c (lisp_indirect_variable): New fun.
2277 (Fuser_variable_p): Use it.
2278
8c2dccbf
SM
22792008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2280
ad97b375
SM
2281 * lisp.h (indirect_variable):
2282 * data.c (indirect_variable, let_shadows_buffer_binding_p):
2283 Use Lisp_Symbol pointers rather than Lisp_Object.
2284 Adjust callers.
2285 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
2286 To this end, change calling-convention.
2287
8c2dccbf
SM
2288 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
2289 if some non-hidden buffers are selected by string&pred.
2290
ad97b375
SM
22912008-05-19 Chong Yidong <cyd@stupidchicken.com>
2292
2293 * process.c (wait_reading_process_output): Always check status
2294 when in batch mode.
2295
25b81df4
KH
22962008-05-19 Kenichi Handa <handa@m17n.org>
2297
2298 * font.c (font_list_entities): Fix handling of cache.
2299 (font_matching_entity): Likewise.
2300
8c2dccbf 2301 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 2302 (ft_face_cache): New variable.
1f204af3 2303 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 2304 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
2305 (fc_charset_table): New variable.
2306 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
2307 . FC_CHARSET_IDX) as :font-entity property in the font entity.
2308 Callers changed.
dde8403f 2309 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
2310 (ftfont_spec_pattern): New argument fc_charset_idx.
2311 Check registry more rigidly. Change callers.
a2979e8e 2312 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
2313 change of :font-entity property of the font.
2314
a2979e8e 2315 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
2316 property of the font.
2317
d4a1d553
JB
23182008-05-18 Juanma Barranquero <lekktu@gmail.com>
2319
2320 * coding.c (Fcoding_system_p): Rename argument to match docstring.
2321 (Funencodable_char_position, Fcheck_coding_systems_region)
2322 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
2323 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
2324 (Ffind_operation_coding_system, Fset_coding_system_priority)
2325 (Fcoding_system_eol_type): Doc fixes.
2326
07cfc4e7
GM
23272008-05-17 Glenn Morris <rgm@gnu.org>
2328
2329 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
2330
1cab27d2
EZ
23312008-05-16 Eli Zaretskii <eliz@gnu.org>
2332
2333 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
2334 and st_gid.
2335
dde8403f 2336 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
2337 HAVE_WINDOW_SYSTEM is not defined.
2338
2339 * xfaces.c (merge_face_ref, merge_face_vectors)
2340 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
2341 HAVE_WINDOW_SYSTEM is defined.
2342 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
2343
86b89713
SM
23442008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2345
2346 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
2347
6750bd93
YM
23482008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2349
62867b11 2350 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 2351
79f105c9
KH
23522008-05-15 Kenichi Handa <handa@m17n.org>
2353
2354 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
2355 preference.
2356
6b33da9f
GM
23572008-05-15 Glenn Morris <rgm@gnu.org>
2358
2359 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
2360
d0e4433b
CY
23612008-05-15 Chong Yidong <cyd@stupidchicken.com>
2362
2363 * fns.c (init_fns): Don't initialize weak_hash_tables here.
2364 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
2365
2366 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
2367
5f2d79e0
KH
23682008-05-15 Kenichi Handa <handa@m17n.org>
2369
fd8a1cae
KH
2370 * ftfont.c (ftfont_list): Downcase family name to check generic
2371 families.
2372
2373 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
2374 font-spec for QCfont value.
2375
5f2d79e0
KH
2376 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
2377 buffer. Check the return value of it.
2378
e5e29349
JR
23792008-05-14 Jason Rumney <jasonr@gnu.org>
2380
2381 * w32term.c (w32_get_glyph_overhangs): Remove.
2382 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
2383
1f09f444
KH
23842008-05-14 Kenichi Handa <handa@m17n.org>
2385
2386 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
2387 (font_clear_cache): Check if the cached vector of entities is nil
2388 or not.
1f09f444 2389
ecae6af9 23902008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
2391
2392 * emacs.c (main_thread): Conditionalize on
2393 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2394 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
2395
2396 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
2397 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
2398 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2399
c6b278e7
KH
24002008-05-14 Kenichi Handa <handa@m17n.org>
2401
2402 * coding.c (detect_coding_iso_2022): Ignore a coding category that
2403 has no corresponding coding system.
2404
24052008-05-14 Jason Rumney <jasonr@gnu.org>
2406
2407 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
2408
2409 * w32font.h (w32font_open_internal): Update declaration.
2410
2411 * w32font.c (w32font_open_internal): Change last argument from
2412 w32font_info struct to font object. Fill in font object from
2413 font_entity. Get Outline metrics if possible. Use them to
2414 calculate underline position and thickness. Use xlfd name as name
2415 property. Don't set codepage.
2416 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 2417 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
2418 (w32font_draw): Use s->font.
2419 (clear_cached_metrics): Don't clear non-existent blocks.
2420
2421 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
2422 font was not found.
a879ee6f 2423 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
2424
2425 * w32uniscribe.c (uniscribe_open): Pass font_object to
2426 w32font_open_internal.
2427
24282008-05-14 Kenichi Handa <handa@m17n.org>
2429
2430 These changes are to delete all legacy font-handling codes, and
2431 make Emacs use only font-backends.
2432
2433 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
2434 (frame.o, image.o, print.o): Depend on $(FONTSRC).
2435
2436 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
2437
2438 * charset.h (Vcharset_non_preferred_head)
2439 (Vcurrent_iso639_language): Extern them.
2440
2441 * charset.c (Vcharset_non_preferred_head): New variable.
2442 (Vcurrent_iso639_language): New variable.
2443 (syms_of_charset): Declare it as a Lisp variable.
2444 (char_charset): Don't check non preferred charsets. As a last
2445 resort, return charset_unicode.
2446 (Fset_charset_priority): Update Vcharset_non_preferred_head.
2447
2448 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
2449 conditionals. Don't check enable_font_backend. Delete all codes
2450 used only when USE_FONT_BACKEND is not defined.
2451
2452 * dispextern.h (struct glyph_string): Change type of `font' to
2453 `struct font *'.
2454 (struct glyph_string): New member underline_position and
2455 underline_thickness.
2456 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
2457 (struct face): Change type of `font' to `struct font *'. Remove
2458 members `font_name', `font_info_id'.
2459 (per_char_metric, encode_char): Delete externs.
2460 (calc_pixel_width_or_height): Adjust the prototype.
2461
2462 * emacs.c (enable_font_backend): Delete extern.
2463 (main): Don't set enable_font_backend. Don't check the command
2464 line argument "-disable-font-backend".
2465
2466 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
2467 (enum font_property_index): New members FONT_DPI_INDEX,
2468 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
2469 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
2470 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
2471 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
2472 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
2473 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
2474 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
2475 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
2476 (struct font_spec, struct font_entity): New structs.
2477 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
2478 (struct font): Many members from old "struct font_info" moved to
2479 here. Members font and entity deleted.
2480 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
2481 the new font-related objects.
2482 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
2483 (CHECK_FONT_GET_OBJECT): Likewise.
2484 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
2485 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
2486 (struct font_driver): New members case_sensitive anc check. Type
2487 of the member list and open changed.
2488 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
2489 (font_symbolic_width, font_find_object, font_get_spec)
2490 (font_set_lface_from_name): Delete extern.
20746fe4 2491 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
2492
2493 * font.c: Include <strings.h>.
2494 (enable_font_backend): Delete it.
2495 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
2496 (CHECK_VALIDATE_FONT_SPEC): Delete it.
2497 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
2498 (null_string): Delete it.
2499 (null_vector): Make it static.
2500 (font_family_alist): Delete it.
2501 (Qnormal): Extern it.
2502 (QCextra, QClanguage): Delete it.
1f204af3 2503 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
2504 (font_make_spec, font_make_entity, font_make_object)
2505 (font_intern_prop): Renamed from intern_downcase. Don't downcase
2506 the string. Callers changed.
2507 (font_pixel_size): Adjusted for the format change of font-related
2508 objects.
2509 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
2510 (font_style_to_value, font_style_symbolic): New function.
2511 (build_font_family_alist): Delete it.
2512 (font_registry_charsets): Use Fassoc_string instead of
2513 assq_no_quit.
2514 (font_prop_validate_symbol): Don't return null_string.
2515 (font_prop_validate_style): Adjusted for the change of
2516 style-related values in a font vector.
20746fe4 2517 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
2518 QCantialias, add entries for QCavgwidth.
2519 (get_font_prop_index): Delete the 2nd argument FROM.
2520 (font_prop_validate): Arguments changed.
2521 (font_put_extra): Adjusted for the change of font-related objects.
2522 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
2523 (font_parse_fcname, font_unparse_fcname)
2524 (font_prepare_composition): Likewise.
2525 (font_parse_family_registry): Renamed from font_merge_old_spec.
2526 (otf_open): Delete the 1st arg entity.
2527 (font_otf_capability): Adjusted for the above change.
2528 (font_score): New arg alternate_families. Adjusted for the change
2529 of font-related objects.
2530 (font_sort_entites): New arg best_only.
2531 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2532 Delete them.
2533 (font_match_p): Check alternate families.
2534 (font_find_object): Delete it.
2535 (font_check_object): New function.
c3f9fba8 2536 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
2537 (font_delete_unmatched): New arg.
2538 (font_list_entities): Call font_driver->list with a spec that
2539 doesn't specify style-related properties.
2540 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 2541 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
2542 (font_close_object, font_has_char, font_encode_char)
2543 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
2544 (font_spec_from_name, font_clear_prop, font_update_lface):
2545 New functions.
2546 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
2547 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2548 (font_at): Adjusted for the change of font-related objects.
2549 (font_range): New function.
2550 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 2551 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
2552 (Fcopy_font_spec, Fmerge_font_spec): New function.
2553 (Ffont_family_list): Renamed from list-families.
2554 (Finternal_set_font_style_table): Arguments changed.
2555 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2556 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2557 change of font-related objects.
c3f9fba8 2558 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 2559
3554e566 2560 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
2561 struct font.
2562 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2563 (enum FONT_SPEC_INDEX): Delete it.
2564 (font_info, list_fonts_func, load_font_func, query_font_func)
2565 (set_frame_fontset_func, find_ccl_program_func)
2566 (get_font_repertory_func, new_fontset_from_font_name): Delete
2567 externs.
2568 (fontset_from_font_name): Extern it.
2569 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2570 (FONT_INFO_FROM_FACE): Deleted.
2571 (face_for_font): Adjust prototype.
2572
2573 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2574 conditionals. Don't check enable_font_backend. Delete all codes
2575 used only when USE_FONT_BACKEND is not defined.
2576 (get_font_info_func, list_font_func, load_font_func)
2577 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2578 (get_font_repertory_func): Delete them.
2579 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2580 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2581 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2582 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2583 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2584 (fontset_compare_rfontdef): New function.
2585 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2586 ront-defs by qsort. Adjusted for the change of font-group vector.
2587 (load_font_get_repertory): Deleted.
2588 (fontset_find_font): Use new macros to ref/set elements of
2589 font-def and rfont-def.
2590 (fontset_font): Fix the timing of remembering that no font for C.
2591 (free_face_fontset): Do nothing if the face has no fontset.
2592 (face_suitable_for_char_p): Use new macros to ref/set elements of
2593 rfont-def.
2594 (face_for_char): Likewise. Call face_for_char with font_object.
2595 (fs_load_font): Delete. Delete #pragma surrounding it.
2596 (fs_query_fontset): Use strcasecmp instead of strcmp.
2597 (generate_ascii_font_name): Adjusted for the format change of
2598 font-spec.
2599 (Fset_fontset_font): Likewise. Use new macros to set elements of
2600 font-def.
2601 (Fnew_fontset): Use font_unparse_xlfd to generate
2602 FONTSET_ASCII (fontset).
2603 (new_fontset_from_font_name): Deleted.
2604 (fontset_from_font): Renamed from new_fontset_from_font. Check if
2605 a fontset is already created for the font. FIx updating of
2606 Vfontset_alias_alist.
2607 (fontset_ascii_font): Deleted.
2608 (Ffont_info): Adjusted for the format change of font-spec.
2609 (Finternal_char_font): Likewise.
2610 (Ffontset_info): Likewise.
2611 (syms_of_fontset): Don't check load_font_func.
2612
2613 * fns.c (internal_equal): Handle PREV_FONT.
2614
2615 * frame.h: Delete USE_FONT_BACKEND conditional.
2616
2617 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
2618 conditionals. Don't check enable_font_backend. Delete all codes
2619 used only when USE_FONT_BACKEND is not defined.
2620 (x_set_font): Call x_new_font, not x_new_fontset2.
2621 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
2622 already set for the frame.
2623
2624 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
2625 a font-entity by font_make_entity. Use font_intern_prop instead
2626 of intern_downcase. Use FONT_SET_STYLE to set a style-related
2627 font property. If a font is scalable, set avgwidth property to 0.
2628 Set font-entity property by font_put_extra.
2629 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
2630 (ffont_driver): Adjusted for the change of struct font_driver.
2631 (ftfont_spec_pattern): New function.
2632 (ftfont_list): Return a list, not vector.
2633 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
2634 (ftfont_list_family): Don't downcase names.
2635 (ftfont_free_entity): Deleted.
2636 (ftfont_open): Return a font-ojbect. Adjusted for the change of
2637 struct font. Get underline_thickness and underline_position from
2638 font property. Don't update dpyinfo->smallest_font_height and
2639 dpyinfo->smallest_char_width.
2640 (ftfont_close): Don't free `struct font'.
2641 (ftfont_has_char): Adjusted for the format change of font-entity.
2642 (ftfont_encode_char, ftfont_text_extents): Likewise.
2643
2644 * ftxfont.c (ftxfont_list): Return a list, not vector.
2645 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
2646 struct font. Get underline_thickness and underline_position from
2647 font property. Don't update dpyinfo->smallest_font_height and
2648 dpyinfo->smallest_char_width.
2649 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
2650 (ftxfont_draw): Adjusted for the change of struct font.
2651
2652 * image.c (image_ascent): Don't include "charset.h". Include
2653 "character.h" and "font.h".
2654
2655 * lisp.h (enum pvec_type): New member PREV_FONT.
2656 (Fassoc_string): EXFUN it.
2657
2658 * print.c: Include font.h.
2659 (print_object): Handle font-related objects.
2660
2661 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
2662 conditionals. Don't check enable_font_backend. Delete all codes
2663 used only when USE_FONT_BACKEND is not defined.
2664 (handle_auto_composed_prop): Do nothing if it->f is not on a
2665 window system. Check how many following characters can be
2666 displayed by the same font.
2667 (calc_pixel_width_or_height): Type of the 4th arg is changed to
2668 'struct font *'.
2669 (get_char_face_and_encoding): Assign the whole encoding task to
2670 the `encode-char' method of a font driver.
2671 (fill_composite_glyph_string): Adjusted for the change of `struct
2672 face' and `struct glyph_string'.
2673 (fill_glyph_string): Likewise.
2674 (get_per_char_metric): Arguments changed.
2675 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
2676 and `struct glyph_string'.
2677 (produce_stretch_glyph, calc_line_height_property)
2678 (x_produce_glyphs): Likewise.
2679
2680 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
2681 conditionals. Don't check enable_font_backend. Delete all codes
2682 used only when USE_FONT_BACKEND is not defined. Use
2683 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
2684 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
2685 (Qp): Extern them.
2686 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
2687 Deleted.
2688 (struct font_name): Deleted.
2689 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
2690 (compare_fonts_by_sort_order): New function.
2691 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
2692 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
2693 Deleted.
2694 (Fx_family_fonts): Use font_list_entities, and sort fonts by
2695 compare_fonts_by_sort_order.
2696 (Fx_font_family_list): Call Ffont_family_list.
2697 (face_numeric_value, face_numeric_weight, face_numeric_slant)
2698 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
2699 (face_symbolic_slant, face_symbolic_swidth)
2700 (split_font_name_into_vector, build_font_name_from_vector)
2701 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
2702 (font_rescale_ratio, split_font_name, build_font_name)
2703 (free_font_names, sort_fonts, x_face_list_fonts)
2704 (face_font_available_p, sorted_font_list, cmp_font_names)
2705 (font_list_1, concat_font_list, font_list, remove_duplicates):
2706 Deleted.
2707 (Fx_list_fonts): Use Ffont_list.
2708 (LFACE_AVGWIDTH): Deleted.
2709 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
2710 by FONTP.
2711 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2712 (set_lface_from_font_name): Delete it.
2713 (set_lface_from_font): Renamed from
2714 set_lface_from_font_and_fontset. Caller changed. Don't set
2715 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
2716 for face.
c3f9fba8
JB
2717 (merge_face_vectors): Copy font-spec if necessary.
2718 Clear properties of the font-spec if necessary.
c6b278e7
KH
2719 (merge_face_ref): Clear properties of the font-spec if necessary.
2720 (Finternal_set_lisp_face_attribute): Likewise.
2721 (set_font_frame_param): Use font_load_for_lface to load a
2722 font-object, and call Fmodify_frame_parameters with it.
2723 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2724 font name by Ffont_xlfd_name.
2725 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2726 QCslant, and QCwidth.
2727 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2728 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2729 Compare fonts by EQ.
2730 (lookup_non_ascii_face): Deleted.
2731 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
2732 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
2733 Check atomic font properties by case insensitive.
c6b278e7
KH
2734 (realize_non_ascii_face): Set face->overstrike correctly.
2735 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
2736 (dump_realized_face): Get font name from
2737 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
2738
2739 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
2740 conditionals. Don't check enable_font_backend. Delete all codes
2741 used only when USE_FONT_BACKEND is not defined.
2742 (xic_create_xfontset): Original code deleted and renamed from
2743 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
2744 (x_make_gc): Don't set GCFont in GCs.
2745 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
2746 opened by "fixed".
2747 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
2748 find_ccl_program_func, query_font_func, set_frame_fontset_func,
2749 get_font_repertory_func.
2750
2751 * xfont.c: Include <stdlib.h> and "ccl.h".
2752 (struct xfont_info): New structure.
2753 (xfont_query_font): Deleted.
2754 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
2755 moved from xterm.c.
2756 (xfont_driver): Adjusted for the change of struct font_driver.
2757 (compare_font_names): New function.
2758 (xfont_list_pattern): Sort font names case insensitively. Make
2759 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
2760 (xfont_list): Return a list, not vector.
2761 (xfont_match): If the font doesn't have QCname property, generate
2762 a name from the other font properties.
2763 (xfont_open): Return a font-ojbect. Adjusted for the change of
2764 struct font. Get underline_thickness and underline_position from
2765 font property. Don't update dpyinfo->smallest_font_height and
2766 dpyinfo->smallest_char_width.
2767 (xfont_close): Don't free struct font.
2768 (xfont_prepare_face): Adjusted for the change of struct font.
2769 (xfont_done_face): Deleted.
2770 (xfont_has_char): Adjusted for the change of struct font.
2771 (xfont_encode_char, xfont_draw): Likewise.
2772 (xfont_check): New function.
2773
2774 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2775 callback function.
2776 (xftfont_match): Adjusted for the fontmat change of font-entity.
2777 (xftfont_open): Adjusted for the format change of font-entity and
2778 font-object. Adjusted for the change of struct font. Return a
2779 font-object. Don't update dpyinfo->smallest_font_height and
2780 dpyinfo->smallest_char_width.
2781 (xftfont_close): Block input while calling XftFontClose.
2782 (xftfont_prepare_face): Don't block input while calling
2783 xftfont_get_colors. Adjusted for the change of struct font.
2784 (xftfont_shape): Return value of error case fixed.
2785
2786 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2787
2788 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2789 conditionals.
2790 (FONT_WIDTH): Return (f)->max_width.
2791 (struct x_display_info): Delete member `font'.
2792 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2793 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2794 (struct x_output): Change type of `font' to `struct font *'.
2795
2796 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2797 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 2798 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
2799 (x_per_char_metric, x_encode_char): Deleted.
2800 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2801 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 2802 `struct face'.
c6b278e7
KH
2803 (x_draw_glyph_string_foreground)
2804 (x_draw_composite_glyph_string_foreground): Likewise.
2805 (x_draw_glyph_string): Likewise. Use font->underline_position and
2806 font->underline_thickness.
2807 (x_new_font): Renamed from x_new_fontset2.
2808 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2809 (x_check_font): Call `check' method of a font driver.
2810 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2811 (x_query_font, x_get_font_repertory): Deleted.
2812 (x_find_ccl_program): Renamed and moved to xfont.c.
2813 (x_redisplay_interface): Adjusted for the change of `struct
2814 redisplay_interface'.
2815
2816 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2817 conditionals. Don't check enable_font_backend. Delete all codes
2818 used only when USE_FONT_BACKEND is not defined. Surround non-used
2819 code by "#ifdef OLD_FONT" and "endif".
2820 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2821
2822 * w32font.h (struct w32font_info): New member.
2823 (FONT_COMPAT): New macro.
2824 (w32font_open_internal): Prototype adjusted.
2825
2826 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2827 OLD_FONT" and "endif".
2828
2829 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2830 conditionals. Don't check enable_font_backend. Delete all codes
2831 used only when USE_FONT_BACKEND is not defined.
2832 (w32font_open): Return a font-object. Make a font-object by
2833 font_make_object. Adjusted for the change of struct w32font_info.
2834 (w32font_close): Don't free struct font. Adjusted for the change
2835 of struct w32font_info.
2836 (w32font_encode_char, w32font_text_extents, w32font_draw):
2837 Adjusted for the change of struct w32font_info.
2838 (w32font_draw): Likewise.
2839 (w32font_list_internal): Return a list, not vector.
2840 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 2841 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
2842 (add_font_name_to_list): Don't downcase names.
2843 (w32_enumfont_pattern_entity): Make a font-entity by
2844 font_make_entity. Adjusted for the format change of font-entity.
2845 Use FONT_SET_STYLE to set a style-related font property. If a
2846 font is scalable, set avgwidth property to 0. Set font-entity
2847 property by font_put_extra.
c3f9fba8 2848 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
2849 (w32_weight_table, w32_decode_weight): New variables.
2850 (w32_encode_weight): New function.
2851 (fill_in_logfont): Adjusted for the format change of font-spec.
2852 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2853 weight value.
2854 (w32font_driver): Adjusted for the change of struct font_driver.
2855
2856 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 2857 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
2858 code by "#ifdef OLD_FONT" and "endif".
2859 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2860 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2861
2862 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2863 conditionals. Don't check enable_font_backend. Delete all codes
2864 used only when USE_FONT_BACKEND is not defined. Surround non-used
2865 code by "#ifdef OLD_FONT" and "endif".
2866
2867 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
2868 (uniscribe_open): Return value changed to font-object.
2869 Adjusted for the format change of font-object.
2870 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
2871 (add_opentype_font_name_to_list): Don't downcase names.
2872 (uniscribe_font_driver): Adjusted for the change of struct
2873 font_driver.
2874
f9d4c199
CY
28752008-05-13 Chong Yidong <cyd@stupidchicken.com>
2876
2877 * dispnew.c (update_frame_1): Check if tty output is still valid
2878 before flushing it.
2879
44f249c0
JD
28802008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2881
2882 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2883 to Gtk+ menus.
2884
01bb4018
SM
28852008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2886
3271a8f5
SM
2887 * dired.c (file_name_completion): Tweak the code so as to always do it
2888 in a single pass. Tighten the scope of some variables.
2889
01bb4018
SM
2890 * dired.c (Qdefault_directory): New var.
2891 (file_name_completion): Use it instead of Fexpand_file_name.
2892 (syms_of_dired): Initialize it.
2893
728bb8e0
SM
28942008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2895
2896 * fileio.c (double_dollars): Remove dead code.
2897
ed4c17bb
EZ
28982008-05-10 Eli Zaretskii <eliz@gnu.org>
2899
6c5665e9
EZ
2900 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2901 Mention w32-get-true-file-attributes in doc string.
2902
ed4c17bb
EZ
2903 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2904
71e1f69d
GM
29052008-05-09 Glenn Morris <rgm@gnu.org>
2906
2907 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2908 2008-04-23.
2909
ee7a2e7a
EZ
29102008-05-09 Eli Zaretskii <eliz@gnu.org>
2911
8aaaec6b
EZ
2912 Support for reporting owner and group of each file on MS-Windows:
2913 * dired.c (stat_uname, stat_gname): New functions, with special
2914 implementation for w32.
2915 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2916
ee7a2e7a
EZ
2917 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2918 (dflt_group_name): New static variable.
728bb8e0 2919 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
2920 (init_user_info): Init dflt_group fields. Get user's group name
2921 from LookupAccountSid.
8aaaec6b
EZ
2922 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2923 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2924 New initialization states.
2925 (globals_of_w32): Initialize them to zero. Initialize the default
2926 group name to "None".
2927 (GetFileSecurity_Name): New global var, the name of the function
2928 to call for GetFileSecurity.
2929 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2930 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2931 (get_file_security, get_security_descriptor_owner)
2932 (get_security_descriptor_group, is_valid_sid)
2933 (get_file_security_desc, get_rid, get_name_and_id)
2934 (get_file_owner_and_group): New functions.
2935 (stat): Use get_file_security_desc and get_file_owner_and_group to
2936 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
2937 high 32 bits of file's size, now that st_size is 64-bit wide.
2938 Fix test when to get true file attributes.
8aaaec6b
EZ
2939 (init_user_info): Use get_rid instead of equivalent inline code.
2940 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 2941
b199c436
CY
29422008-05-09 Chong Yidong <cyd@stupidchicken.com>
2943
2944 * image.c (png_load): Use correct bit-depth for setting background
2945 color.
2946
86914123
EZ
29472008-05-08 Eli Zaretskii <eliz@gnu.org>
2948
2949 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2950 epa-hook.elc.
2951
67b5d7de
JB
29522008-05-08 Juanma Barranquero <lekktu@gmail.com>
2953
2954 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2955
1a111394
DN
29562008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2957
2958 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2959 because the original parameters are in pure storage now.
2960 (mac_window): Remove unused params. Update callers.
2961
6d77fa95
SM
29622008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2963
7a3d90dc
SM
2964 * lread.c (substitute_object_recurse): Use lower-level primitives.
2965 Don't signal errors when traversing sub-char-tables.
2966 Don't loop over all the possible characters when traversing char-tables.
2967
6d77fa95
SM
2968 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2969 just like we do in print.c.
2970
140eb764
SM
29712008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2972
2973 * minibuf.c (Ftry_completion): Remove code left over from when we used
2974 scmp instead of Fcompare_strings.
2975
e9184ccb
JB
29762008-05-04 Juanma Barranquero <lekktu@gmail.com>
2977
2978 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2979
0e9378b3
YM
29802008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2981
2982 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2983 Create bitmap context in native byte order.
2984
f67e15be
MB
2985 * macterm.c (XDrawLine)
2986 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2987 context in native byte order.
064032d0 2988
f67e15be 29892008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
2990
2991 * config.in: Regenerate.
2992
2993 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2994 New definitions for Image I/O support.
2995 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2996 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2997 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2998 (mac_data_provider_release_data, image_load_image_io)
2999 [USE_MAC_IMAGE_IO]: New functions.
3000 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3001 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3002 (init_image_func_pointer) [MAC_OSX]: Remove function.
3003 (image_load_quartz2d) [MAC_OSX]: Check availability of
3004 CGImageCreateWithPNGDataProvider at compile time.
3005 Use lowercase `false' for boolean constant.
3006 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3007 Use image_load_image_io.
3008 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3009 Don't check MyCGImageCreateWithPNGDataProvider.
3010 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3011 Don't call init_image_func_pointer.
3012
3013 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3014
3015 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3016 Make variable non-static.
3017 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3018 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3019
3020 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3021 (RED_FROM_ULONG): Mask off higher bits.
3022 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3023
3024 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3025 Include AvailabilityMacros.h.
3026 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3027 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3028
c6bff69e
SM
30292008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
3030
3031 * chartab.c (Fset_char_table_range): If range is t, really set all
3032 chars to that value.
3033
7412d429
EZ
30342008-05-03 Eli Zaretskii <eliz@gnu.org>
3035
3036 * dired.c (Ffile_attributes): Don't allow the device number become
3037 negative.
3038
f83bbfac
DU
30392008-05-02 Daiki Ueno <ueno@unixuser.org>
3040
5a81d3d7 3041 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 3042
2e3148e2
JL
30432008-05-02 Juri Linkov <juri@jurta.org>
3044
3045 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
3046 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3047 DEFAULT argument as a list of default values in docstrings.
2e3148e2 3048
923fb88c
CY
30492008-05-01 Chong Yidong <cyd@stupidchicken.com>
3050
3051 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3052
047aaeb9
MR
30532008-05-01 Martin Rudalics <rudalics@gmx.at>
3054
3055 * dispnew.c (change_frame_size_1): Preserve small windows when
3056 shrinking frames by calling set_window_height|width with third
3057 arg 2.
3058
3059 * window.h (struct window): Replace field too_small_ok by field
3060 resize_proportionally.
3061
3062 * window.c (make_window): Initialize resize_proportionally.
3063 (enlarge_window): Temporarily set resize_proportionally to make
3064 sure that shrink_windows does scale the window proportionally.
3065 (shrink_windows): When window has resize_proportionally set try
3066 to shrink it proportionally by stealing from other windows.
3067 (struct saved_window, Fset_window_configuration)
3068 (compare_window_configurations): Handle resize_proportionally.
3069 (WINDOW_TOTAL_SIZE): New macro.
3070 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 3071 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
3072 window-min-height|width are handled by window_min_size_2 now.
3073 (size_window, Fsplit_window, enlarge_window)
3074 (adjust_window_trailing_edge, grow_mini_window): Don't call
3075 check_min_window_sizes.
c6bff69e
SM
3076 (window_min_size_2, window_min_size_1, window_min_size):
3077 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 3078 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
3079 (adjust_window_trailing_edge, grow_mini_window):
3080 Adjust arguments of window_min_size... functions.
047aaeb9
MR
3081 (shrink_windows): Argument min_size removed. New argument
3082 safe_p allows shrinking windows to their safe minimum sizes.
3083 Calculate minimum size and decide whether a window shall be
3084 deleted for each window individually.
3085 (size_window): When nodelete_p equals 2, tell shrink_windows to
3086 delete windows only if their new minimum size is no more safe.
3087 (shrink_window_lowest_first): Call window_min_size_1 to make
3088 sure to preserve modeline of bottom-most window when resizing
3089 the minibuffer.
3090 (Fset_window_configuration, Fcurrent_window_configuration)
3091 (compare_window_configurations): Do not handle
3092 window-min-height|width any more.
3093 (syms_of_window): Clarify window-min-height|width doc-strings.
3094
2a54a229
SM
30952008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
3096
3097 * dired.c (file_name_completion): Fix up the encoding/decoding issue
3098 some more. Copy some of the code from Ftry_completions.
3099 Remove special case code that dates back to initial revision when the
3100 slash was only added when necessary and that can't trigger nowadays.
3101
384bc634
KH
31022008-04-27 Kenichi Handa <handa@m17n.org>
3103
3104 * font.c (font_prop_validate): Signal `error' instead of `font'.
3105
2c2279c6
JR
31062008-04-29 Jason Rumney <jasonr@gnu.org>
3107
3108 * w32fns.c (Fw32_battery_status): New defun.
3109 (syms_of_w32fns): Defsubr it.
3110
fb4a622a
AS
31112008-04-28 Andreas Schwab <schwab@suse.de>
3112
3113 * dired.c (file_name_completion): Fix another mixing of encoded
3114 and decoded names.
3115
23f250f4
JB
31162008-04-28 Juanma Barranquero <lekktu@gmail.com>
3117
3118 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
3119
d8d30dff
JB
31202008-04-27 Juanma Barranquero <lekktu@gmail.com>
3121
3122 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3123
ea6104a8
AS
31242008-04-27 Andreas Schwab <schwab@suse.de>
3125
9c691c00
AS
3126 * dired.c (file_name_completion): Fix inappropriate mixing of
3127 encoded and decoded names.
3128
ec1bf773
AS
3129 * xterm.c (XTread_socket): Fix use of uninitialized variable.
3130
ea6104a8
AS
3131 * puresize.h (BASE_PURESIZE): Increase to 1200000.
3132
01388a3d
EZ
31332008-04-26 Eli Zaretskii <eliz@gnu.org>
3134
3135 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
3136 2008-03-31, it's not needed anymore with `struct stat' definition
3137 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
3138 for the same reasons.
3139
175aea10 31402008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
3141
3142 * m/sparc.h: Additional redefinitions for GNU/Linux.
3143
1289aeb8
YM
31442008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3145
3146 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
3147 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3148 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
3149 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
3150 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3151 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
3152 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3153 Likewise.
3154
3155 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 3156 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
3157 (mac_ax_number_of_characters): Add externs.
3158 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3159 [USE_MAC_TSM]: Likewise.
3160 (mac_handle_text_input_event) [MAC_OSX]:
3161 Handle kEventTextInputOffsetToPos for no active input area case.
3162 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3163 (mac_handle_document_access_event)
3164 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
3165 (install_application_handler) [MAC_OSX]: Register handlers for
3166 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3167 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3168 Register mac_handle_document_access_event.
3169
3170 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
3171 Make functions non-static.
3172
dbd50d4b
SM
31732008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3174
3175 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
3176 (read_file_name_completion_ignore_case, insert_default_directory)
3177 (Qdefault_directory): Move to minibuffer.el.
3178 (Fread_file_name): Call the new `read-file-name' instead.
3179
9ea37b9d 31802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
3181
3182 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
3183 Make function non-static.
3184 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
3185 Remove function.
3186 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3187 Move to mactoolbox.c.
3188 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
3189
3190 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
3191 (mac_rect_make): New macro.
3192
3193 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
3194 instead of float.
3195 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3196 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
3197 (XSetBackground) [USE_CG_DRAWING]: Likewise.
3198 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
3199 CGRectMake.
3200 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3201 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
3202 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
3203 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3204 instead of WindowRef in argument type.
3205 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
3206 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
3207 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
3208 instead of DISPLAY. All uses changed.
3209 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
3210 (x_calc_absolute_position): Simplify so as not to use
3211 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
3212
3213 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3214 instead of WindowRef in argument type.
3215 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
3216 [TARGET_API_MAC_CARBON]: Remove externs.
3217 (create_apple_event, mac_event_parameters_to_lisp)
3218 [TARGET_API_MAC_CARBON]: Add externs.
3219
d8d30dff 3220 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
3221 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
3222 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
3223 is clicked.
3224 (x_activate_menubar): Remove extern for saved_menu_event_location.
3225 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3226 Move from mac.c.
3227
9ea37b9d 32282008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
3229
3230 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
3231 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3232
9ea37b9d 32332008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
3234
3235 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3236 attributes only for local files.
3237
3238 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 3239 default to Qlocal.
bd735631 3240
88970542
JL
32412008-04-22 Juri Linkov <juri@jurta.org>
3242
3243 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3244 read-buffer-to-switch instead of using the letter "B".
3245
92ec67e3
SM
32462008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3247
3248 * fileio.c (Qdefault_directory): New variable.
3249 (Fread_file_name): Use it to pass `dir' to the completion functions.
3250
a32b2382
CY
32512008-04-20 Chong Yidong <cyd@stupidchicken.com>
3252
2a2e8de7 3253 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 3254
6c8b4f07
SM
32552008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
3256
ece5f847
SM
3257 * keyboard.c (Vpre_help_message): Remove.
3258 (show_help_echo): Remove default C code.
3259
6c8b4f07
SM
3260 * dired.c (directory_files_internal, file_name_completion):
3261 Only call ENCODE_FILE if the string is indeed decoded.
3262
73d798d5
SM
32632008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3264
3265 * Makefile.in (TOOLKIT_DEFINES): Remove.
3266 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
3267
d8d30dff 32682008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
3269
3270 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
3271 (mactoolbox.o): New target.
3272
3273 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
3274 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
3275
3276 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
3277 Use mac_set_frame_window_background instead of XSetWindowBackground.
3278 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
3279 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
3280 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
3281 instead of SetWindowTitleWithCFString.
3282 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
3283 Move function to mactoolbox.c.
3284 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3285 Use mac_set_window_modified instead of SetWindowModified.
3286 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
3287 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
3288 (Fx_focus_frame): Use mac_front_non_floating_window instead of
3289 FrontNonFloatingWindow. Use mac_activate_window instead of
3290 ActivateWindow. Use mac_active_non_floating_window instead of
3291 ActiveNonFloatingWindow.
3292 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
3293 Use mac_show_hourglass and mac_hide_hourglass.
3294 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
3295 instead of GetGlobalMouse.
3296 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
3297 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
3298 Use mac_bring_window_to_front instead of BringToFront.
3299 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
3300 mactoolbox.c.
3301 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
3302 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
3303 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
3304 mactoolbox.c.
3305
3306 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
3307 (XtPointer): Move typedef from macmenu.c.
3308 (enum button_type): Move enum from macmenu.c.
3309 (widget_value): Move typedef from macmenu.c.
3310 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
3311 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3312 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3313 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3314 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3315 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3316 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3317 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
3318 (Selection): Move typedef from macselect.c.
3319 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
3320 macterm.c.
3321 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
3322 (mac_is_window_collapsed, mac_bring_window_to_front)
3323 (mac_send_window_behind, mac_hide_window, mac_show_window)
3324 (mac_collapse_window, mac_front_non_floating_window)
3325 (mac_active_non_floating_window, mac_activate_window)
3326 (mac_move_window_structure, mac_move_window, mac_size_window)
3327 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
3328
3329 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
3330 (enum mac_menu_kind): Move enum to mactoolbox.c.
3331 (min_menu_id): Move variable to mactoolbox.c.
3332 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
3333 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
3334 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3335 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3336 [TARGET_API_MAC_CARBON]: Likewise.
3337 (XtPointer): Move typedef to macgui.h.
3338 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
3339 (widget_value): Move typedef to macgui.h.
3340 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3341 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3342 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3343 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3344 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3345 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3346 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
3347 (popup_activated_flag): Make variable non-static.
3348 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
3349 (add_menu_item, fill_menu, dispose_menus):
3350 Move functions to mactoolbox.c.
3351 (restore_show_help_function, menu_target_item_handler)
3352 (install_menu_target_item_handler, mac_handle_dialog_event)
3353 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
3354 [TARGET_API_MAC_CARBON]: Likewise.
3355 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
3356 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3357 (find_and_call_menu_selection, name_is_separator): Make function
3358 non-static.
3359 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
3360 to mactoolbox.c.
3361 (set_frame_menubar): Don't call install_menu_quit_handler.
3362 (menu_item_selection): New variable.
3363 (mac_menu_show): Use create_and_show_popup_menu.
3364 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
3365 selection but set variable menu_item_selection. All uses changed.
3366 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
3367 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 3368
d02fe47d
MB
3369 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
3370 (Selection): Move typedef to macgui.h.
3371 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
3372 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
3373 Make variables non-static.
3374 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3375 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
3376 Make functions non-static.
3377 (Vmac_service_selection) [MAC_OSX]: Likewise.
3378 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
3379 (mac_valid_selection_target_p, mac_clear_selection)
3380 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3381 (mac_put_selection_value, mac_selection_has_target_p)
3382 (mac_get_selection_value, mac_get_selection_target_list)
3383 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
3384 Move functions to mactoolbox.c.
3385 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
3386 Likewise.
3387 (copy_scrap_flavor_data, mac_handle_service_event)
3388 (install_service_handler) [MAC_OSX]: Likewise.
3389 (syms_of_macselect) <Vmac_dnd_known_types>:
3390 Use mac_dnd_default_known_types.
463f55ee 3391
d02fe47d
MB
3392 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
3393 Move to mactoolbox.c.
3394 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
3395 (Fx_selection_owner_p): Add EXFUN.
3396 (install_window_handler, remove_window_handler, XSetWindowBackground):
3397 Remove externs.
3398 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
3399 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
3400 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
3401 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
3402 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
3403 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
3404 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
3405 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
3406 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
3407 (create_and_show_popup_menu, mac_get_selection_from_symbol)
3408 (mac_valid_selection_target_p, mac_clear_selection)
3409 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3410 (mac_put_selection_value, mac_selection_has_target_p)
3411 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
3412 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
3413 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
3414 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3415 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
3416 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3417 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
3418 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3419 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 3420
d02fe47d 3421 * mactoolbox.c: New file.
af253914 3422
d8d30dff 34232008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 3424
d02fe47d 3425 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 3426
8ee085a4
SM
34272008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3428
73d798d5
SM
3429 * character.c (Fmultibyte_char_to_unibyte):
3430 Return latin1 chars unchanged.
5556875b 3431
8ee085a4
SM
3432 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
3433 relocated if it points to `name'.
3434
5dff5999
KH
34352008-04-17 Kenichi Handa <handa@m17n.org>
3436
3437 * data.c (Faset): Allow setting a multibyte character in an
3438 ASCII-only unibyte string.
3439
3440 * lisp.h (STRING_SET_MULTIBYTE): New macro.
3441
a51f4969
SM
34422008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
3443
3444 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
3445 done in config.h.
3446
add553ac
JB
34472008-04-16 Juanma Barranquero <lekktu@gmail.com>
3448
3449 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
3450 (Fchar_direction): Add usage in the docstring.
3451
8ad7b280
CY
34522008-04-15 Chong Yidong <cyd@stupidchicken.com>
3453
3454 * keyboard.c (read_key_sequence): Remove always-true checks.
3455
e157d7ba
JR
34562008-04-14 Jason Rumney <jasonr@gnu.org>
3457
3458 * w32font.c (w32font_open_internal): Set max_bounds.descent in
3459 compatibility struct, for better underline positioning.
3460
9ec3aaef 34612008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
3462
3463 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
3464 string.
3465
36c08864
DN
34662008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3467
3468 * m/hp800.h (XUINT, XSET): Remove.
3469
f5acc071
JB
34702008-04-12 Juanma Barranquero <lekktu@gmail.com>
3471
3472 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
3473 previous change.
3474
5b5a2ea1
SM
34752008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3476
3477 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
3478 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
3479
492d9fd6
SM
34802008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3481
3482 * keymap.h (map_keymap_canonical): Declare.
3483 * xmenu.c (single_keymap_panes): Use it.
3484
dd60787c
GM
34852008-04-11 Glenn Morris <rgm@gnu.org>
3486
3487 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
3488 set the target's value to that of the alias.
3489
c23b5410
SM
34902008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3491
3492 * term.c (set_tty_color_mode): Left over typo.
3493
e89b536d
MA
34942008-04-10 Michael Albinus <michael.albinus@gmx.de>
3495
3496 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 3497 only after check for file name handler functions. Signal, when
e89b536d
MA
3498 native functionality is not supported.
3499 (syms_of_fileio): Declare it unconditionally.
3500
40a339c8
JR
35012008-04-10 Jason Rumney <jasonr@gnu.org>
3502
31403b24
JR
3503 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
3504 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
3505
40a339c8
JR
3506 * w32.c (logon_network_drive): Also logon to remote drives that
3507 are mapped to drive letters.
3508
96a7394f
GM
35092008-04-10 Glenn Morris <rgm@gnu.org>
3510
3511 * xdisp.c (truncate-partial-width-windows): Doc fix.
3512
34b67b0f
SM
35132008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
3514
3515 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
3516 Move functions to minibuffer.el.
3517 (syms_of_fileio): Don't declare them.
3518
c025fb0a
SM
35192008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3520
ba5ff07b
SM
3521 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
3522 (syms_of_minibuf): Remove its initialization.
3523
c025fb0a
SM
3524 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
3525
7a6a86ad
JB
35262008-04-09 Juanma Barranquero <lekktu@gmail.com>
3527
3528 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3529
cf907d69
JR
35302008-04-09 Jason Rumney <jasonr@gnu.org>
3531
3dc94c30
JR
3532 * makefile.w32-in (distclean): Delete makefile too.
3533 (maintainer-clean): New target.
3534
8d28646b
JR
3535 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3536
cf907d69
JR
3537 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3538 for new font backend and composite cases.
3539
ef5eb925
JD
35402008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3541
3542 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3543 Most of the code moved to run_timers.
3544 (do_pending_atimers): Call run_timers.
3545 (run_timers): New function.
3546
cf907d69
JR
3547 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3548 run atimers.
ef5eb925
JD
3549
3550 * process.c (wait_reading_process_output): The same as above.
3551
9b2cd403
SM
35522008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3553
32bae13c
SM
3554 * minibuf.c (last_exact_completion): Remove variable.
3555 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3556 (complete_and_exit_1, complete_and_exit_2)
3557 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3558 (Fdisplay_completion_list, display_completion_list_1)
3559 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
3560 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3561 minibuffer.el.
32bae13c
SM
3562 (syms_of_minibuf): Remove corresponding initializations.
3563
5c4cc82a
SM
3564 * keyboard.c (Qdeactivate_mark): New var.
3565 (command_loop_1): Use it to call `deactivate-mark'.
3566 (syms_of_keyboard): Initialize it.
3567
9b2cd403
SM
3568 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3569 to another frame.
3570 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3571 Don't call set_tty_color_mode.
3572 (store_frame_param): Reset previous_frame rather than call
3573 set_tty_color_mode.
3574 * term.c (set_tty_color_mode): Rewrite.
3575 * dispextern.h (set_tty_color_mode): New type.
3576 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3577
84cb7b45
SM
35782008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3579
3580 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3581 for generic chars, which do not exist any more in emacs-unicode.
3582
3ed051d4
MA
35832008-04-08 Michael Albinus <michael.albinus@gmx.de>
3584
3585 * coding.c (detect_coding_emacs_mule)
3586 (Ffind_operation_coding_system): Fix typo.
3587
58c3ea42
JR
35882008-04-08 Jason Rumney <jasonr@gnu.org>
3589
3bf8d230
JR
3590 * w32uniscribe.c (SNAME): Extract only symbol name.
3591
56a70cca
JR
3592 * w32font.h (struct w32_metric_cache): New struct.
3593 (w32font_info): Use it.
3594 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3595 (CACHE_BLOCKSIZE): New constants.
3ed051d4 3596
58c3ea42
JR
3597 * w32font.c (Qja, Qko, Qzh): New symbols.
3598 (syms_of_w32font): Initialise them.
3599 (font_matches_spec): Use them to filter by language.
3600 (recompute_cached_metrics): Remove function.
3601 (compute_metrics, clear_cached_metrics): New functions.
3602 (w32font_encode_char): Use them to manage metric cache.
3603 (w32font_text_extents): Cache metrics for all glyphs on demand.
3604 Delay converting glyph indices to WORD until needed.
3605 (w32font_open_internal): Initialize metric cache to empty.
3606 (registry_to_w32_charset): Charset should always be a symbol.
3607 (fill_in_logfont, list_all_matching_fonts): Family should
3608 always be a symbol.
3609
0ce24b2d
JR
36102008-04-06 Jason Rumney <jasonr@gnu.org>
3611
3612 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
3613 Give up if glyph indices not supported. Use uniscribe obtained
3614 ABC widths for individual metrics. Map glyph clusters back to
3615 characters using fClusterStart flag. Return number of glyphs
3616 produced, not chars processed.
b7655e0c 3617 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 3618
5bc6ddff 36192008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 3620
fbf57abb
JB
3621 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
3622 Use SetMenuItemHierarchicalMenu.
56613f06 3623
5bc6ddff 36242008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 3625
5bc6ddff
MB
3626 * image.c (pbm_load): Allow color values up to 65535.
3627 Throw an error if max_color_idx is outside the supported range.
3628 Report an error when image size is invalid.
3629 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 3630
5bc6ddff 36312008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 3632
5bc6ddff
MB
3633 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3634 cFileName a file name that includes `?' characters, use the 8+3
3635 alias in cAlternateFileName instead.
5ed6ba5b 3636
5bc6ddff 36372008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 3638
5bc6ddff
MB
3639 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
3640 append "CCL: Quitted" when the CCL program is quitted.
3641 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 3642
5bc6ddff 3643 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 3644
c36e15db
CY
36452008-04-05 Chong Yidong <cyd@stupidchicken.com>
3646
9605d567
CY
3647 * search.c (compile_pattern_1): Treat non-nil and non-string of
3648 search-spaces-regexp as nil.
3649
c36e15db
CY
3650 * minibuf.c (Fassoc_string): Tweak docstring.
3651
40beb147
EZ
36522008-04-05 Eli Zaretskii <eliz@gnu.org>
3653
3654 * dired.c (Ffile_attributes): Support inode numbers wider than 32
3655 bits. Remove ugly WINDOWSNT-specific kludge introduced on
3656 2008-03-14 to force inode be positive.
3657
3658 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
3659 _S_* ones, since we now use our own sys/stat.h.
3660 (stat, fstat): Don't mangle the inode number.
aa08d1ff 3661 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 3662
4591d6cb
SM
36632008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
3664
d4417eb0
SM
3665 * frame.h (struct frame): Give one more bit to `visible' since we use
3666 values larger than 1 to indicate obscured frames on ttys.
3667
00f7c5ed
SM
3668 * keymap.c (Qkeymap_canonicalize): New var.
3669 (Fmap_keymap_internal): New fun.
3670 (describe_map): Use keymap-canonicalize.
3671
4591d6cb
SM
3672 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
3673 (Fundo_boundary): Set them.
3674 (syms_of_undo): Initialize them.
3675 (record_point): Use them instead of last_point_position*.
3676 (last_undo_buffer): Change type.
3677
3187540e
JR
36782008-04-04 Jason Rumney <jasonr@gnu.org>
3679
0ce24b2d
JR
3680 * w32font.c (w32font_text_extents): Use font's ascent and descent.
3681 (recompute_cached_metrics): Don't set ascent and descent per char.
3682
3187540e 3683 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 3684 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 3685 Rearrange loop for counting features.
3187540e 3686
f1a6b216
SM
36872008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3688
3689 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
3690 buffer with byte-size of source buffer.
3691
1d8dcf63
CY
36922008-04-03 Chong Yidong <cyd@stupidchicken.com>
3693
3694 * callint.c (Fcall_interactively): Handle temporary region even
3695 when shift-select-mode is off.
3696
6b8aa22a
JR
36972008-04-03 Jason Rumney <jasonr@gnu.org>
3698
3699 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
3700
2f3cbb32
KH
37012008-04-03 Kenichi Handa <handa@m17n.org>
3702
3703 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
3704 (CATEGORY_MASK_UTF_16): Likewise.
3705 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
3706 binary file.
3707 (detect_coding): Add null-byte detection for a binary file.
3708 (detect_coding_system): Likewise.
3709
43f4f91c
JR
37102008-04-03 Jason Rumney <jasonr@gnu.org>
3711
0c1b4ae2
JR
3712 * w32uniscribe.c: New file.
3713
3714 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
3715
3716 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3717
3718 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3719 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3720 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3721 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3722 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3723 (Qphonetic): New symbols.
3724 (syms_of_w32font): Initialize them.
3725 (font_supported_scripts): Use them.
3726 (w32font_list_family): List all charsets.
3727 (w32font_text_extents, recompute_cached_metrics): Fix metric
3728 calculations.
3729 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3730 Give opentype fonts their own format.
3731 (font_matches_spec): New arguments backend and logfont.
3732 Handle :otf spec for uniscribe backend.
3733 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
3734 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 3735
0c1b4ae2
JR
3736 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
3737 font backend.
3738 (globals_of_w32fns): Initialize uniscribe font backend.
3739
fbf57abb 3740 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
3741 dependencies.
3742 (w32uniscribe.$(O)): New file to build.
3743 (FONT_OBJ): Include w32uniscribe.$(O).
3744 (LIBS): Add uniscribe libraries.
3745
43f4f91c
JR
3746 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
3747
75043a7d
CY
37482008-04-02 Chong Yidong <cyd@stupidchicken.com>
3749
3750 * callint.c (Vshift_select_mode): New var.
3751 (Finteractive): Document new ^ spec.
3752 (Fcall_interactively): Call handle-shift-selection if the ^ spec
3753 is present.
3754
3755 * keyboard.c (Vthis_command_keys_shift_translated): New var.
3756 (command_loop_1): Avoid running the direct display versions of
3757 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
3758 (read_key_sequence): Set Vthis_command_keys_shift_translated if
3759 shift-translation takes place.
3760
3761 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
3762 avoid clobbering by define-minor-mode.
3763
3764 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
3765 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
3766
3767 * syntax.c (Fforward_word): Add ^ interactive spec.
3768
3769 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3770 (Fscroll_right): Add ^ interactive spec.
3771
b2b7f29e
SM
37722008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3773
a432c0a6
SM
3774 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3775
994b75e0
SM
3776 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3777
b2b7f29e
SM
3778 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3779
e99c7806
JL
37802008-03-31 Juri Linkov <juri@jurta.org>
3781
3782 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3783
1c9c1270
JD
37842008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3785
3786 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 3787 (xg_resize_outer_widget): Remove.
1c9c1270
JD
3788 (x_wm_size_hint_off): Fix indentation.
3789 (xg_frame_set_char_size): Call flush_and_sync after
3790 gtk_window_resize.
3791 (x_wm_set_size_hint): Pass NULL as geometry window to
3792 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3793 Add menu bar and tool bar height to base height.
3794 (xg_update_frame_menubar, free_frame_menubar)
3795 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
3796 (update_frame_tool_bar, free_frame_tool_bar):
3797 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 3798
90b3fc84
MA
37992008-03-30 Michael Albinus <michael.albinus@gmx.de>
3800
3801 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3802 (Fdbus_call_method): New parameter TIMEOUT.
3803 (dbus-send-signal): Optimize UNGCPRO call.
3804
7ae6d1d1
JL
38052008-03-29 Juri Linkov <juri@jurta.org>
3806
3807 * window.c (Fdisplay_buffer): Move call to
3808 Vsplit_window_preferred_function out of conditions that check
3809 if window is eligible for vertical splitting.
3810 When Vsplit_window_preferred_function is non-nil, call it and use
3811 its non-nil return value as window. Otherwise, continue doing
3812 vertical splitting using Fsplit_window with arg horflag=nil.
3813 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3814 default value from `split-window' to nil.
3815
f03f8f2c
JL
38162008-03-29 Juri Linkov <juri@jurta.org>
3817
3818 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3819 for interactive code letters 'b' and 'B'.
3820
6d557778
EZ
38212008-03-29 Eli Zaretskii <eliz@gnu.org>
3822
3823 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3824 multibyte string.
3825
58555d81
SM
38262008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3827
3828 * keyboard.c (pending_funcalls): New var.
3829 (timer_check): Run it.
3830 (syms_of_keyboard): Initialize it.
3831 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3832 (Vdelete_terminal_functions): New vars.
3833 (syms_of_terminal): Initialize them.
3834 (Fdelete_terminal): Run delete-terminal-functions.
3835 * xdisp.c (safe_eval): Rewrite.
3836 (safe_call2): New fun.
3837 * frame.c (Qdelete_frame_functions): New var.
3838 (syms_of_frame): Initialize it.
3839 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3840 * lisp.h (safe_call2, pending_funcalls): Declare.
3841
4c92f429
AS
38422008-03-28 Andreas Schwab <schwab@suse.de>
3843
3844 * indent.c (Fmove_to_column): Move declaration before statements.
3845
a1567c45
SM
38462008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3847
2806a183
SM
3848 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3849 (struct frame): Use bit fields for boolean vars.
3850
eef60308
SM
3851 * process.c (server_accept_connection): Simplify naming.
3852 (emacs_get_tty_pgrp): Use SDATA.
3853
a1567c45
SM
3854 * coding.c (decode_coding_object): Fix last change.
3855
30076589
JR
38562008-03-27 Jason Rumney <jasonr@gnu.org>
3857
3858 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3859
880820fe
KH
38602008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3861
3862 * charset.c (Fdefine_charset_internal): Change the way of
3863 registering charsets in Vcharset_order_list.
3864 (syms_of_charset): Make the charset `eight-bit' supplementary.
3865
3cf8cdfb
CY
38662008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3867
3868 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3869 operations, to avoid having the difference between pointers
3870 overflow.
3871
ef6f5c0e
SM
38722008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3873
80e3db56
SM
3874 * indent.c (check_display_width): New fun.
3875 (scan_for_column): Use it.
3876
c397dc7a
SM
3877 * data.c (syms_of_data): Mark most-positive-fixnum and
3878 most-negative-fixnum as constants.
3879
bf6b4d58
SM
3880 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3881
ef6f5c0e
SM
3882 * indent.c (scan_for_column): Extract from current_column_1.
3883 Merge with the same code from Fmove_to_column.
3884 (current_column_1, Fmove_to_column): Use it.
3885
72d5003d
SM
38862008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3887
12270607
SM
3888 * keymap.c (map_keymap_internal): New fun.
3889 (map_keymap): Use it.
3890 (Fmap_keymap_internal): New fun.
3891 (Fmap_keymap): Remove left-out test from before make_save_value.
3892
a10cca6c
SM
3893 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3894
d7b10f4c
SM
3895 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3896 Use XCAR/XCDR.
3897
5431bd6a
SM
3898 * process.h (struct Lisp_Process): Remove filter_multibyte.
3899 * process.c (QCfilter_multibyte): Remove.
3900 (setup_process_coding_systems): Don't use filter_multibyte.
3901 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3902 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3903 (Fset_process_filter_multibyte): Change the coding-system to
3904 approximate the previous behavior.
3905 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3906 coding-system.
3907
72d5003d
SM
3908 * coding.c (decode_coding_object): When not decoding into a buffer,
3909 obey the coding system's preference of (uni|multi)byte.
3910
438eba3c
SM
39112008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3912
3913 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3914 every char is changed and has a different byte-length.
3915 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3916 Fix int -> EMACS_INT.
3917
9ec3aaef 39182008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 3919
438eba3c 3920 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
3921 strings. Check for NULL `interface' or `member'.
3922
b07103dc
EZ
39232008-03-22 Eli Zaretskii <eliz@gnu.org>
3924
3925 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3926 cFileName a file name that includes `?' characters, use the 8+3
3927 alias in cAlternateFileName instead.
3928
5371d722
SM
39292008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3930
3931 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3932
6ba7f443
SM
39332008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3934
3935 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3936 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3937 work on current_buffer only instead (that was already the case
3938 for some of the code anyway).
3939 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3940 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3941 (SET_PT, SET_PT_BOTH): Adjust.
3942 * intervals.h (set_point, temp_set_point, set_point_both)
3943 (temp_set_point_both): Remove redundant declarations.
3944
bf1c0f27
SM
39452008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3946
3947 * fileio.c (Finsert_file_contents):
3948 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3949 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3950 when buffer != current_buffer anyway.
3951
acab783e
AS
39522008-03-20 Andreas Schwab <schwab@suse.de>
3953
3954 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3955 as default.
3956
d148e14d
JR
39572008-03-19 Jason Rumney <jasonr@gnu.org>
3958
3959 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3960 (syms_of_w32fns): Initialize them.
3961 (HOURGLASS_ID): New constant.
3962 (x_window_to_frame): Don't check hourglass_window.
3963 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3964 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3965 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3966 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3967 Only change the cursor if hourglass is not active.
3968 (Fx_create_frame): Initialize frame's current_cursor.
3969 (hourglass_atimer): Remove.
3970 (hourglass_started): New function.
3971 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3972 (show_hourglass): Adapt to w32, changing argument to frame.
3973
3974 * w32term.h (struct w32_output): Remove hourglass_window.
3975 Add current_cursor.
3976
3977 * eval.c (call_debugger, Fsignal):
3978 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3979 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3980 (Fexecute_extended_command, cancel_hourglass_unwind):
3981 * minibuf.c (read_minibuf):
3982 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 3983
a5c54077
JB
39842008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3985
3986 * window.c (run_funs): New fun.
3987 (run_window_configuration_change_hook): Use it to run the buffer-local
3988 and the global part of the hook.
3989
3990 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3991 (unwind_format_mode_line): Restore selected window.
3992 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3993
f9f3238f
SM
39942008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3995
253c3c82
SM
3996 * editfns.c (Fchar_equal): Check they are valid characters.
3997
f9f3238f
SM
3998 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3999
065a118d
AS
40002008-03-17 Andreas Schwab <schwab@suse.de>
4001
0b8be006
AS
4002 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4003 against a charset.
4004
065a118d
AS
4005 * lisp.h (Fbuffer_list): Declare.
4006
880820fe 40072008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
4008
4009 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4010 handlebox_widget is != 0.
4011
6206d6c2
JL
40122008-03-16 Juri Linkov <juri@jurta.org>
4013
4014 * callint.c (Fcall_interactively): For interactive code letters
4015 'b' and 'B' put the buffer list into the list of default "future"
4016 values of the minibuffer.
4017
f5020181
AS
40182008-03-16 Andreas Schwab <schwab@suse.de>
4019
a864f6d6
AS
4020 * keyboard.c (read_key_sequence): Fix downcasing of letters with
4021 modifiers.
4022
f5020181
AS
4023 * regex.c (re_match_2_internal): Correct matching of a charset
4024 against latin-1 characters.
4025
03f244e2
KH
40262008-03-16 Kenichi Handa <handa@m17n.org>
4027
4028 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4029 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
4030 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4031 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
4032 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4033 CHAR_STRING_ADVANCE.
4034 (produce_chars): Fix for the case that the source and the
4035 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
4036 instead of CHAR_STRING_ADVANCE.
4037 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4038 STRING_CHAR_ADVANCE.
4039
0e2501ed
AS
40402008-03-15 Andreas Schwab <schwab@suse.de>
4041
4042 * regex.c (re_match_2_internal): Correct matching of eight bit
4043 characters in unibyte strings.
4044
7723e095
MR
40452008-03-15 Martin Rudalics <rudalics@gmx.at>
4046
4047 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4048 at end of range when it coincides with the end of the buffer.
4049
f507f365
EZ
40502008-03-14 Eli Zaretskii <eliz@gnu.org>
4051
294f1153
EZ
4052 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4053
f507f365
EZ
4054 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
4055
64f0809d
JR
40562008-03-14 Jason Rumney <jasonr@gnu.org>
4057
956ae531
JR
4058 * editfns.c (initial_tz): New variable.
4059 (syms_of_editfns): Initialize it.
4060 (Fset_time_zone_rule): Set it when first called.
4061 Use it when TZSTRING is nil.
4062
64f0809d
JR
4063 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
4064 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
4065 (monitor_from_point_fn, get_monitor_info_fn): New globals.
4066 (globals_of_w32fns): Initialize them.
4067 (compute_tip_xy): Use them to position tooltips.
4068
21a4ff8e
GM
40692008-03-14 Glenn Morris <rgm@gnu.org>
4070
4071 * emacs.c (main): Revert previous change.
4072 (standard_args): Revert -internal-script back to -scriptload,
4073 and remove the long-option form.
4074
a09a5b5b
GM
40752008-03-13 Glenn Morris <rgm@gnu.org>
4076
4077 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
4078 Remove option -enable-font-backend.
4079
1c55ebd1
SM
40802008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4081
4082 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
4083
880820fe 40842008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
4085
4086 * xterm.c (x_connection_closed): For GTK: If this is the last
4087 terminal just exit without closing the display.
4088
7145be81
JR
40892008-03-11 Jason Rumney <jasonr@gnu.org>
4090
4091 * w32font.c (w32font_full_name): Use floor to round.
4092
e6201af3 40932008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
4094
4095 * sound.c (alsa_configure): Declare vol at beginning of block.
4096
e6201af3 4097 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 4098
390b81fa 40992008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 4100
56388398
MB
4101 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4102 size of resulting string.
af0ad939 4103
390b81fa 41042008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 4105
56388398 4106 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 4107
390b81fa 41082008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 4109
56388398
MB
4110 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
4111 Don't pretend as if characters with display property haven't been
4112 consumed for string-replacing-string case.
acd37560 4113
223ed6db
KS
41142008-03-08 Kim F. Storm <storm@cua.dk>
4115
4116 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
4117 (get_next_display_element, next_element_from_string)
4118 (next_element_from_ellipsis, next_element_from_buffer): Use it.
4119
28545f7c
AS
41202008-03-08 Andreas Schwab <schwab@suse.de>
4121
4122 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
4123
c960bff8
JR
41242008-03-06 Jason Rumney <jasonr@gnu.org>
4125
290afd83
JB
4126 * w32font.c (w32_registry): Take font_type argument. Use ANSI
4127 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
4128 font_type is truetype.
4129 (w32font_coverage_ok): New function.
4130 (add_font_entity_to_list): Use it to filter unsuitable fonts.
4131
87b8ce92
KH
41322008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
4133
4134 * lread.c (Fread_char): Resolve modifiers.
4135 (Fread_char_exclusive): Likewise.
4136
4137 * character.c (char_resolve_modifier_mask): New function.
4138 (char_string): Use char_resolve_modifier_mask.
4139 (Fchar_resolve_modifiers): New function.
4140 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
4141 function.
4142
cefd56f6
JR
41432008-03-04 Jason Rumney <jasonr@gnu.org>
4144
4145 * makefile.w32-in: Always include w32font.c in the build.
4146 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
4147
03bd3c1f
AS
41482008-03-04 Andreas Schwab <schwab@suse.de>
4149
4150 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
4151 (versionclean): Likewise.
4152
6f69e89b
JB
41532008-03-04 Juanma Barranquero <lekktu@gmail.com>
4154
4155 * .cvsignore: Add oo.
4156
f4a3cc44
AS
41572008-03-03 Andreas Schwab <schwab@suse.de>
4158
4159 * coding.c (decode_coding_object): Inhibit gap shrinking while
4160 decoding in place.
4161
73f838ad
DN
41622008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
4163
4164 * w32term.c: Remove unused include "gnu.h".
6f69e89b 4165 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
4166
4167 * gnu.h: Rename to ...
4168 * emacs-icon.h: ... this.
4169 * xterm.c: Use emacs-icon.h instead of gnu.h.
4170 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
4171
ce9c1f06
JB
41722008-03-03 Juanma Barranquero <lekktu@gmail.com>
4173
4174 * w32font.c: Include math.h.
4175
34fd2d28
JR
41762008-03-03 Jason Rumney <jasonr@gnu.org>
4177
54efdcd1
JR
4178 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
4179 Compute options separately.
4180 (w32font_open_internal): Set glyph_idx before caching metrics.
4181
ce9c1f06
JB
4182 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
4183 Define if system headers don't.
4184 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
4185 (w32font_encode_char): Don't declare here.
4186
4187 * w32font.c (Quniscribe, QCformat): New symbols.
4188 (syms_of_w32font): Define them.
4189 (w32font_has_char): Indicate uncertainty.
ce9c1f06 4190 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 4191 (recompute_cached_metrics): New function.
ce9c1f06
JB
4192 (w32font_open_internal): Use it. Set font to use glyph points
4193 initially. Set format based on type of font.
34fd2d28 4194 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
4195 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
4196 on it. Set format based on information available here.
34fd2d28
JR
4197 (add_font_entity_to_list): Identify backend based on opentype_only.
4198
14daee73
AS
41992008-03-02 Andreas Schwab <schwab@suse.de>
4200
f907fb2e
AS
4201 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
4202
ce9c1f06
JB
4203 * coding.c (decode_coding_big5, produce_chars):
4204 Fix typos in last change.
14daee73 4205
c9cc6462
DN
42062008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
4207
4208 * gnu.h: New icon.
4209
119852e7
KH
42102008-03-02 Kenichi Handa <handa@m17n.org>
4211
4212 * coding.c (decode_coding_utf_8): When eol-type of CODING is
4213 `dos', don't decode '\r' if that is the last in the source.
4214 (decode_coding_utf_16, decode_coding_emacs_mule)
4215 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4216 (decode_coding_raw_text, decode_coding_charset): Likewise.
4217 (produce_chars): Don't decode EOL here. Use EMACS_INT.
4218
a823468b
JR
42192008-03-01 Jason Rumney <jasonr@gnu.org>
4220
4221 * w32font.c (w32font_full_name): Report point size for scalable fonts.
4222
4ddc7e30
KS
42232008-03-01 Kim F. Storm <storm@cua.dk>
4224
4225 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
4226
67997c79
JR
42272008-03-01 Jason Rumney <jasonr@gnu.org>
4228
4229 * w32font.c (w32font_full_name): New function.
4230 (w32font_open_internal): Use it.
4231
3f4e9c35
KS
42322008-03-01 Kim F. Storm <storm@cua.dk>
4233
4234 * dispnew.c (line_draw_cost): Fix invalid glyph check.
4235
f3b9e479
JR
42362008-03-01 Jason Rumney <jasonr@gnu.org>
4237
4238 * font.c (font_unparse_fcname): Increase len when style is a symbol.
4239
880820fe 42402008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
4241
4242 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4243 xg_frame_resized when the event is for the edit widget.
4244
4245 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4246
4247 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4248 set_char_size.
4249 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
4250 operations on widgets here. Just set frame size if needed.
4251 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4252 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4253 (x_wm_set_size_hint): Set size hints on the edit widget only, not
4254 the whole frame.
4255 (xg_create_tool_bar): Move attachement of the tool bar to
4256 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
4257 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
4258
6c8acaa1
JR
42592008-03-01 Jason Rumney <jasonr@gnu.org>
4260
4261 * w32fns.c (w32_msg_pump): Disable debug code.
4262
51fb064b 42632008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 4264
51fb064b 4265 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 4266
60221a33
CY
42672008-02-29 Chong Yidong <cyd@stupidchicken.com>
4268
4269 * xdisp.c (next_overlay_string): Don't set
4270 overlay_strings_at_end_processed_p if we're currently reading from
4271 a display string.
4272
10cbc34f
SM
42732008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
4274
4275 * xdisp.c (get_overlay_strings_1): Fix typo.
4276
73c0054e
CY
42772008-02-29 Chong Yidong <cyd@stupidchicken.com>
4278
4279 * xdisp.c (get_overlay_strings_1): Add missing argument type.
4280
ec1c4354
KH
42812008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
4282
55082642
KH
4283 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
4284
ec1c4354
KH
4285 * xdisp.c (display_mode_element): Cancel the previous change.
4286 (decode_mode_spec): Likewise.
ee548a94
KH
4287 (handle_auto_composed_prop): Don't make composition if it->string
4288 is a string.
ec1c4354 4289
b6d898a2
KS
42902008-02-27 Kim F. Storm <storm@cua.dk>
4291
4292 * lisp.h (GLYPH): Change type from int to struct with separate char
4293 and face_id members.
4294 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
4295 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
4296 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
4297 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
4298 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
4299 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
4300 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
4301 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
4302 handle new Lisp glyph code encoding, either an integer or a cons.
4303
4304 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
4305 (GLYPH_ALIAS): Delete.
4306 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
4307 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
4308 (GLYPH_FROM_CHAR): Replace macro by ...
4309 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
4310
4311 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
4312 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
4313 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
4314 (GLYPH_INVALID_P): New macro.
4315 (spec_glyph_lookup_face): Update prototype.
4316
4317 * dispnew.c (line_draw_cost): Adapt to new glyph type.
4318 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
4319 new glyph code encoding.
4320 (spec_glyph_lookup_face): No return value; update passed glyph instead.
4321 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
4322
4323 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4324 Adapt to new glyph type and new glyph code encoding.
4325
4326 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
4327
4328 * indent.c (current_column, current_column_1, Fmove_to_column)
4329 (compute_motion): Adapt to new glyph code encoding.
4330
4331 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
4332
af2080a2
CY
43332008-02-27 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * process.c (wait_reading_process_output): Check for window
4336 changes caused by timers.
880820fe 4337 Suggested by Johan Bockgård.
af2080a2 4338
253ed25e
GM
43392008-02-27 Glenn Morris <rgm@gnu.org>
4340
4341 * emacs.c (USAGE1): Add `--disable-font-backend'.
4342
18a9f8d9
SM
43432008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
4344
4345 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
4346 is made to the buffer.
4347
0f8b27ea
SM
43482008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4349
4350 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
4351 (face_at_string_position):
4352 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4353 (face_at_string_position):
4354 * xdisp.c (display_string, next_overlay_change):
4355 * buffer.h (overlays_at):
4356 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
4357 Update callers.
4358
4e7c53ca
CY
43592008-02-26 Chong Yidong <cyd@stupidchicken.com>
4360
4361 * editfns.c (Fformat): Doc fix.
4362
51c01100
JB
43632008-02-26 Juanma Barranquero <lekktu@gmail.com>
4364
4365 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
4366 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
4367 (Ffont_otf_alternates, Fquery_font): Doc fixes.
4368
13cda5f9
SM
43692008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4370
4371 * buffer.c (Fbuffer_swap_text): New function.
4372 (syms_of_buffer): Defsubr it.
4373
8018d430
CY
43742008-02-25 Chong Yidong <cyd@stupidchicken.com>
4375
4376 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
4377
9bde1a21
JR
43782008-02-25 Jason Rumney <jasonr@gnu.org>
4379
4380 * w32font.c (w32font_draw): Draw one character at a time when padding.
4381
eeca6f6f
SM
43822008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4383
4384 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
4385 Handle a nil arg. Use run_window_configuration_change_hook.
4386 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
4387 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
4388 Use run_window_configuration_change_hook.
4389
ec1c4354
KH
43902008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4391
4392 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
4393 1-pixel width.
4394
ae185452
KH
43952008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4396
4397 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
4398 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
4399 if the glyph in the font is zero pixel with.
4400
4401 * dispextern.h (struct glyph_string): New member padding_p.
4402
4403 * w32font.c (w32font_draw): Pay attention to s->padding_p.
4404
4405 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
4406
4407 * xfont.c (xfont_draw): Pay attention to s->padding_p.
4408
4409 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
4410
eeca6f6f 4411 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 4412
ffe832ea 44132008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 4414
ffe832ea 4415 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 4416
06045130
SM
44172008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
4418
4419 Allow fine-grained image-cache flushing.
4420 * dispextern.h (struct image): Add `dependencies' field.
4421 (clear_image_caches): Change arg to Lisp_Object.
4422 * image.c (make_image): Initialize `dependencies' field.
4423 (clear_image_cache): Change arg to allow fine-grained flushing.
4424 Perform the flush even if image-cache-eviction-delay is nil.
4425 (clear_image_caches): Change arg to Lisp_Object.
4426 (Fclear_image_cache): Expand meaning of the argument.
4427 (mark_image): Mark `dependencies' field.
4428 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
4429 (lface_hash): Use XHASH rather than XFASTINT.
4430 (face_at_buffer_position): Fix int -> EMACS_INT position.
4431 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
4432 (select_frame_for_redisplay): Remove code duplication.
4433 (redisplay_internal): Adapt arg to call to clear_image_caches.
4434
9d2818d6
DN
44352008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
4436
4437 * s/vms4-0.h:
4438 * s/vms4-2.h:
4439 * s/vms4-4.h:
4440 * s/vms5-5.h: Remove, unused.
4441
4442 * s/irix5-2.h:
4443 * s/irix6-0.h:
4444 * s/riscos5.h:
4445 * s/mach-bsd4-3.h:
2a2e8de7 4446 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
4447
4448 * Makefile.in:
4449 * filelock.c:
4450 * unexmips.c:
4451 * m/hp9000s300.h:
4452 * m/iris4d.h:
4453 * s/aix3-1.h:
4454 * s/hpux.h:
4455 * s/msdos.h:
4456 * s/usg5-0.h:
4457 * s/usg5-2-2.h:
4458 * s/usg5-2.h:
4459 * s/usg5-3.h: Remove references to obsolete variables.
4460
4461 * s/irix5-0.h: Remove, move all the contents ...
4462 * s/irix6-5.h: ... here. Simplify.
4463 * config.in: Regenerate.
4464
2a36efcf
JR
44652008-02-24 Jason Rumney <jasonr@gnu.org>
4466
c5ad7a3d 4467 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
4468 manually when cleartype is in use.
4469 (x_draw_glyph_string_foreground): Draw text transparently when
4470 cleartype is in use.
4471
2a36efcf
JR
4472 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
4473 a font into it unless we have to.
4474
b03f96dc 44752008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 4476
b03f96dc
MB
4477 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
4478 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 4479
b03f96dc 44802008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 4481
b03f96dc 4482 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 4483
b03f96dc 44842008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 4485
b03f96dc 4486 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 4487
b03f96dc 44882008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 4489
b03f96dc 4490 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 4491
d5958163
CY
44922008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
4493
4494 * xterm.c (x_set_offset): Don't change the gravity if
4495 CHANGE_GRAVITY is -1.
4496
9997701e
CY
44972008-02-23 Chong Yidong <cyd@stupidchicken.com>
4498
4499 * fileio.c (auto_save_error_occurred): New var.
4500 (auto_save_error): Set it.
4501 (Fdo_auto_save): Don't overwrite the error message if an auto-save
4502 error occurred.
4503
9d95a291
EZ
45042008-02-23 Eli Zaretskii <eliz@gnu.org>
4505
4506 * w32.c (globals_of_w32): Add initializations for
4507 g_b_init_get_sid_sub_authority and
4508 g_b_init_get_sid_sub_authority_count.
4509
43d1af23
SM
45102008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4511
43a1d19b
SM
4512 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
4513 (font_parse_xlfd): Use them for sanity check.
608c3307 4514 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 4515
354884c4
SM
4516 Consolidate the image_cache to the terminal struct.
4517 * termhooks.h (P_): Remove redundant def.
4518 (struct terminal): New field `image_cache'.
4519 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
4520 of FRAME_X_IMAGE_CACHE.
4521 * xterm.h (struct x_display_info): Remove image_cache field.
4522 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4523 * w32term.h (struct w32_display_info): Remove image_cache field.
4524 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4525 * macterm.h (struct mac_display_info): Remove image_cache field.
4526 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4527 * xterm.c (x_term_init):
4528 * w32term.c (w32_term_init):
4529 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4530 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4531 Remove declarations.
4532 (clear_image_caches, mark_image_cache): New declarations.
4533 * xfaces.c (clear_face_cache):
4534 * xdisp.c (redisplay_internal): Use clear_image_caches.
4535 * image.c (clear_image_cache): Don't check that a frame is on
4536 a window-system before checking if it shares the same cache.
4537 (clear_image_caches): New function.
4538 (Fclear_image_cache): Use it.
4539 (mark_image): Move from allo.c.
4540 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4541 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4542 (mark_object): Don't call mark_image_cache for frames.
4543 (mark_terminals): Call mark_image_cache.
4544
c2e42690
SM
4545 * lisp.h (Fdelete_terminal): Declare.
4546
43d1af23
SM
4547 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4548 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4549 wrong_type_argument.
4550
cc8d1311
KH
45512008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4552
4553 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 4554 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 4555
6bd92640
SM
45562008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4557
4558 * xterm.c (x_connection_closed): Consolidate identical tests.
4559 (x_delete_terminal): Don't crash if called via x_connection_closed.
4560
a73b5627
KH
45612008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4562
4563 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 4564 (display_mode_element): Adjust for the above change.
a73b5627 4565
1b511542
SM
45662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4567
4568 * callint.c (Fcall_interactively): Use AREF.
4569
81aefea4
SM
45702008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4571
4572 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4573
880820fe 45742008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
4575
4576 * xfns.c (Fx_show_tip): Set string to " " if empty.
4577
a2b84f35
DN
45782008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4579
4580 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4581 with Qt.
4582
43c0454d
KH
45832008-02-17 Kenichi Handa <handa@m17n.org>
4584
4585 * ftfont.c (ftfont_shape): Return Lispy number.
4586
4587 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4588 for GCs.
4589 (Finternal_set_font_selection_order): Call font_update_sort_order
4590 only when enable_font_backend is set.
4591 (realize_x_face): Set face->font_info to that of default face only
4592 when enable_font_backend is set.
4593
4594 * xdisp.c (handle_composition_prop): Set it->c to the fist
4595 characte of the composed region.
4596 (fill_composite_glyph_string): Set base_face->font_info to
4597 s->font_info. Get a face for ascii from base_face->ascii_face.
4598 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
4599 with a face already decided.
4600 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
4601 non-negative.
978bef9a
JB
4602 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
4603 call font_prepare_composition unconditionally.
43c0454d 4604
978bef9a 4605 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
4606
4607 * xterm.h (struct x_display_info): New member font.
4608
4609 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
4610 (x_set_mouse_face_gc, x_new_font): Likewise.
4611 (x_term_init): Setup display_info->font.
4612 (x_delete_terminal): Free display_info->font.
4613
4614 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
4615
4616 * ftxfont.c (ftxfont_default_fid): Delete it.
4617 (ftxfont_open): Set xfont->fid to 0.
978bef9a 4618 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
4619 font-driver.
4620
4621 * xftfont.c (xftfont_default_fid): Delete it.
4622 (xftfont_open): Set xfont->fid to 0.
4623
4624 * fontset.c (FONTSET_OBJLIST): New macro.
4625 (fontset_find_font): Update font-object list of the fontset.
4626 (free_realized_fontset): New function.
4627 (free_face_fontset): Call free_realized_fontset.
4628 (Ffont_info): Call font_close_object only when enable_font_backend
4629 is set.
4630
4631 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
4632 [HAVE_NTGUI]: Include w32term.h.
4633 [MAC_OS]: Include macterm.ch.
4634 (font_otf_ValueRecord): Use make_number.
4635 (font_finish_cache): Fix handling of reference count.
4636 (font_clear_cache): Update num_fonts.
4637 (font_open_entity): Update smallest_char_width and
4638 smallest_font_height of the frame.
4639 (font_close_object): Update num_fonts.
4640 (Fclear_font_cache): Fix finding the target cache data.
4641
be617367
GM
46422008-02-16 Glenn Morris <rgm@gnu.org>
4643
4644 * fontset.c (Finternal_char_font): Fix compilation warning.
4645
2930d117
EZ
46462008-02-16 Eli Zaretskii <eliz@gnu.org>
4647
634d3003
EZ
4648 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
4649 instead of char arrays. Enlarge the size of array passed to
4650 get_token_information.
4651
2930d117
EZ
4652 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
4653 warnings.
4654
79214046
DN
46552008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
4656
4657 * .gdbinit: Don't set `args', it breaks gdb --args.
4658
7f5d2c72
SM
46592008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
4660
4661 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
4662 within a narrowed buffer.
4663
6edacc43
KH
46642008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
4665
b270d6af
JB
4666 * coding.c (decode_coding_object, encode_coding_object):
4667 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 4668
174105f7
SM
46692008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4670
b270d6af
JB
4671 * coding.c (coding_set_destination): Use BEG_BYTE rather than
4672 hardcoding 1.
13818c30
SM
4673 (detect_coding_system):
4674 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
4675 (string_char_to_byte, string_byte_to_char, insert_from_gap):
4676 * insdel.c (insert_from_gap):
4677 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
4678 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
4679 (string_to_multibyte):
4680 * character.c (chars_in_text, multibyte_chars_in_text):
4681 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
4682
f1c99628
SM
4683 * character.h (FETCH_STRING_CHAR_ADVANCE)
4684 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
4685 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
4686 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
4687
7927d8e3
SM
4688 * casefiddle.c (casify_region): Only call after-change and composition
4689 functions on the part of the region that was changed.
4690
adf6a429 4691 * keyboard.c (read_avail_input):
174105f7
SM
4692 * frame.c (Fdelete_frame): Call Fdelete_terminal.
4693
3ee24aec
SM
46942008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4696 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
4697 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
4698
4ed4b975
JB
46992008-02-11 Juanma Barranquero <lekktu@gmail.com>
4700
4701 * w32menu.c (push_submenu_start, push_submenu_end)
4702 (push_left_right_boundary, push_menu_pane, push_menu_item):
4703 * keyboard.c (read_key_sequence): Don't pass args with side effects
4704 to AREF, it fails when compiling with -DENABLE_CHECKING.
4705
79e3bfb8
KH
47062008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
4707
4ed4b975
JB
4708 * Makefile.in (${lispsource}international/charprop.el):
4709 Delete this target.
6e76043f 4710
79e3bfb8
KH
4711 * search.c (boyer_moore): Fix incorrect synching of the trunk and
4712 emacs-unicode-2.
4713
5b8de9c5
SM
47142008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4715
4716 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4717
eac1939a
SM
47182008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4719
c53956fe
SM
4720 * frame.c (Qnoelisp): New symbol.
4721 (syms_of_frame): Initialize it.
4722 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4723 someharmles Elisp code, from a strong `force' from x_connection_closed.
4724 * frame.h (Qnoelisp): Declare.
4725 * xterm.c (x_connection_closed): Pass `noelisp'.
4726
eac1939a
SM
4727 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4728 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4729 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4730 rather than `int' for the type of `type'.
4731
13f6772b
DN
47322008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
4733
4734 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
4735
4736 * Makefile.in (GNUC): Remove support for gcc-1.x.
4737
e8455367
RS
47382008-02-10 Richard Stallman <rms@gnu.org>
4739
4740 * lisp.h (ASET): Use AREF, not ASLOT.
4741
4b75ffab
SM
47422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4743
4744 * lisp.h (ASET): Check bounds.
4745
d224e8c2
GM
47462008-02-10 Glenn Morris <rgm@gnu.org>
4747
4748 * buffer.c (mode-name): Doc fix.
4749
4624371d
DN
47502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4751
290afd83
JB
4752 * Makefile.in:
4753 * emacs.c:
4754 * gmalloc.c:
4755 * keyboard.c:
4756 * lisp.h:
4757 * m/ibm370aix.h:
4758 * process.c:
4759 * regex.c:
4760 * s/hpux.h:
4761 * sysdep.c:
4762 * sysselect.h:
4763 * systty.h:
4764 * unexec.c:
4765 * w32term.c:
4766 * xsmfns.c:
4767 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
4768
4769 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4770
4771 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4772 nothing else needs it anymore.
4773
274ec34b
EZ
47742008-02-09 Eli Zaretskii <eliz@gnu.org>
4775
4776 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4777 instead of unibyte_char_to_multibyte.
4778
deeaffe1
DN
47792008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4780
4781 * s/gnu-linux.h: Remove commented out code.
4782
4ed4b975 4783 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
4784
4785 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 4786 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 4787 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
4788 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4789 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4790
68b587a6
SM
47912008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4792
9141ca5e
SM
4793 * keymap.c (Fkey_description): Move side effect outside of macro call.
4794
dfae5f9a 4795 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
4796 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4797
ff7a2223
SM
4798 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4799 (syms_of_fontset): Use ASET.
4800
68b587a6
SM
4801 * fns.c (concat): Move side effect outside of macro call.
4802 (hash_clear): Use ASET.
4803
a31787b1
RS
48042008-02-08 Richard Stallman <rms@gnu.org>
4805
4806 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4807 If FORCE, and frame has a surrogate minibuffer for another frame,
4808 delete the other frame first.
4809
987be29b 48102008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
4811
4812 * xterm.c (x_detect_focus_change): Handle embed client message.
4813 (handle_one_xevent): Ditto.
4814 (handle_one_xevent): If embedded and we get a button press/release,
4815 request focus.
4816 (xembed_set_info, xembed_send_message): New functions.
4817 (x_make_frame_visible): Call xembed_set_info if embedded.
4818 (x_make_frame_invisible): Call xembed_set_info if embedded.
4819 (x_term_init): Initialize Xatom_XEMBED.
4820 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4821 (x_iconify_frame): Ditto.
4822
4823 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4824 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4825 (enum xembed_modifier, enum xembed_accelerator): New.
4826 (xembed_set_info, xembed_send_message): Declare.
4827 (FRAME_X_EMBEDDED_P): New.
4828
4829 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4830 gtk_plug_new.
4831
4832 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4833 window ID of a frame.
4834 (x_window): Reparent frame if embedded.
4835 (Fx_create_frame): Don't set border width if embedded.
4836
1f204af3 4837 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
4838 (standard_args): Ditto.
4839
880820fe 48402008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
4841
4842 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4843
92413ef3
JD
48442008-02-07 Jim Meyering <meyering@redhat.com>
4845
6f69e89b 4846 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
4847 The latter provokes a warning from gcc about the empty else, when
4848 followed by ";". Also, without that trailing semicolon, it would
4849 silently swallow up any following statement.
c3f9fba8 4850 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
4851 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4852 * buffer.h (DECODE_POSITION): Likewise.
4853 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4854 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4855 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4856 (FETCH_CHAR_ADVANCE): Likewise.
4857 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 4858
03fa5713
GM
48592008-02-07 Jim Meyering <meyering@redhat.com>
4860
4861 * lread.c [lint]: Don't include <sys/inode.h>.
4862
3ae565b3
SM
48632008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4864
4865 * xselect.c (x_handle_dnd_message):
4866 * xmenu.c (digest_single_submenu, xmenu_show):
4867 * xdisp.c (with_echo_area_buffer_unwind_data)
4868 (format_mode_line_unwind_data, unwind_format_mode_line)
4869 (display_menu_bar):
4870 * eval.c (Ffetch_bytecode):
4871 * doc.c (store_function_docstring):
4872 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4873 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4874 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4875
146b6e55
KH
48762008-02-07 Kenichi Handa <handa@m17n.org>
4877
4878 * ftxfont.c (ftxfont_open): Don't set
4879 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4880
4881 * ftfont.c (ftfont_open): Fix previous change.
4882
46a923ac
JR
48832008-02-06 Jason Rumney <jasonr@gnu.org>
4884
4885 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4886 Use cached metrics for ASCII characters.
3ae565b3
SM
4887 (w32font_open_internal): Don't set font's owning_frame.
4888 Cache metrics for ASCII characters.
46a923ac
JR
4889
4890 * w32font.h (struct w32font_info): Add ascii_metrics.
4891 Remove owning_frame.
4892
da7d7c21
KH
48932008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4894
4895 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4896 to negative value.
4897
4898 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4899
3ae565b3 4900 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
4901
4902 * charset.c (syms_of_charset): Set QCtest and Qeq.
4903
c62c8ddb
SM
49042008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4905
ca319910
SM
4906 * process.c (Fstart_process):
4907 * callproc.c (Fcall_process): Handle the case where
4908 Funhandled_file_name_directory returns nil.
4909
76860cbb
SM
4910 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4911 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
4912 * font.c (check_gstring): Use them and AREF to access the vector before
4913 we know it's really a gstring.
4914 (Ffont_shape_text): Fix typo.
4915 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 4916
15139d67
SM
4917 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4918 Declare.
4919
c62c8ddb
SM
4920 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4921
04b65d2b
JR
49222008-02-05 Jason Rumney <jasonr@gnu.org>
4923
4924 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4925 Set smallest_font_height and smallest_char_width in display info.
4926
fccaebfd
KH
49272008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4928
4929 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4930
e7d7fd8c
MB
49312008-02-05 Miles Bader <miles@gnu.org>
4932
4933 * xfaces.c (get_lface_attributes, merge_named_face)
4934 (lookup_named_face, lookup_derived_face, realize_named_face):
4935 Revert 2008-02-01 change by cyd@stupidchicken.com.
4936
3d4448a8
KH
49372008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4938
4939 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4940 fallback fonts.
15139d67 4941 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 4942
5ace1ec1
JR
49432008-02-04 Jason Rumney <jasonr@gnu.org>
4944
4945 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4946 set full_name.
e3a77b22 4947 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 4948
ffe42183
JR
49492008-02-03 Jason Rumney <jasonr@gnu.org>
4950
4951 * makefile.w32-in (OBJ1): Include font.o here.
4952 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4953
526dc3b3
JR
49542008-02-02 Jason Rumney <jasonr@gnu.org>
4955
a0fece35 4956 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 4957
af805c82
JR
49582008-02-01 Jason Rumney <jasonr@gnu.org>
4959
4960 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4961
4962 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4963
7f6519c5
AS
49642008-02-01 Andreas Schwab <schwab@suse.de>
4965
1f45f627 4966 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 4967 ../lisp/language/myanmar.el.
7f6519c5 4968
26f8aa27
CY
49692008-02-01 Chong Yidong <cyd@stupidchicken.com>
4970
1f45f627 4971 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
4972 (merge_named_face, lookup_named_face, lookup_derived_face)
4973 (realize_named_face): Call lface_from_face_name directly, and use
4974 the fact that merge_face_vectors does not alter its FROM argument.
4975
73acf815 49762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4977
4978 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 4979 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 4980
73acf815 49812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4982
4983 * fontset.c (reorder_font_vector): Exclude nil elements from the
4984 font group. Don't try multiple fonts.
15139d67 4985 (fontset_font): Adjust for the above change.
aca7a3d2
MB
4986 (Finternal_char_font): Return nil if the found font doesn't
4987 contain the character ch.
4988
4c4475a8 4989 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 4990
73acf815 49912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4992
4993 * font.h (FONTP): Make it return 1 also for a font-object.
4994
4995 * .gdbinit (xfontset): New function.
4996
4997 * font.c (font_find_for_lface): Check if the character C is
4998 supported or not only for the first font.
4999
5000 * fontset.c (reorder_font_vector): Fix typo.
5001 (fontset_find_font): Don't add a font-spec specifying a script.
5002 Use 0 (not Qt) for the indication of empty font-group. Change the
5003 format of RFONT-DEF. Return Qt if no font in the font-group
5004 support the character.
15139d67 5005 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 5006 found the character, remember that.
15139d67 5007 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
5008 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5009 no font for the target.
15139d67 5010 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 5011
73acf815 50122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5013
5014 * font.c (font_load_for_face): Handle the case that the font in
5015 face->lface is a string.
5016
73acf815 50172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5018
1f45f627 5019 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 5020
73acf815 50212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5022
5023 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5024 Fix previous change. If the frame is not on a window system,
5025 signal an error.
5026
73acf815 50272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5028
4c4475a8
GM
5029 * coding.c (decode_coding_object, encode_coding_object): Adjust
5030 marker positions after conversion.
aca7a3d2
MB
5031
5032 * lisp.h (struct Lisp_Marker): New member need_adjustment.
5033
73acf815 50342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5035
5036 * font.c (font_find_for_lface): Fix the handling of the return
5037 value of font_has_char.
5038 (Ffont_shape_text): Fix previous change.
5039
5040 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5041 (fontset_ref_and_range): Delete it.
5042 (fontset_find_font): Call char_table_ref_and_range instead of
5043 FONTSET_REF_AND_RANGE.
5044 (make_fontset): Don't setup font groups of Latin here.
5045 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5046 (new_fontset_from_font): Make the specified font the default for
5047 all Latin characters.
5048
73acf815 50492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5050
5051 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
5052 is on a window system before accessing the fontset of the frame.
5053
73acf815 50542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5055
1f45f627 5056 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
5057
5058 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
5059 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
5060
5061 * font.c (Ffont_shape_text): If the font driver doesn't have a
5062 shaper function, make zero-width glyphs to have at least one-pixel
5063 width. Fix setting of `to' field of glyphs.
5064
73acf815 50652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5066
5067 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
5068 glyphs.
5069
1f45f627 5070 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 5071
73acf815 50722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5073
5074 * composite.c (syms_of_composite): Fix docstring of
5075 auto-composition-function.
5076
5077 * font.h (LGLYPH_SIZE): New macro.
5078
5079 * font.c (Ffont_fill_gstring): Stop filling when a character not
5080 supported by the font is found.
5081 (Ffont_shape_text): When a shape callback function returns nil,
5082 try at most two more times with larger gstring.
15139d67 5083 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
5084
5085 * xdisp.c (handle_auto_composed_prop): Change the argument to
5086 auto-composition-function.
5087
5088 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
5089 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
5090 Lispy glyph and store it in the lgstring.
5091
5092 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
5093
5094 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
5095
73acf815 50962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5097
5098 * font.c (Ffont_shape_text): Avoid unnecessary composition.
5099
5100 * fontset.c (Vfont_encoding_charset_alist): New variable.
5101 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
5102 (reorder_font_vector, fontset_find_font): Optimize for the case of
5103 no need of reordering.
aca7a3d2
MB
5104 (face_for_char): Map the charset property by
5105 Vfont_encoding_charset_alist.
5106
73acf815 51072008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5108
5109 * w32font.c (logfonts_match): Don't check adstyle here.
5110 (font_matches_spec): Check here against physical font instead.
5111 (add_font_entity_to_list): Avoid some substitutions.
5112
5113 * font.c (font_parse_fcname): Default weight and slant to normal.
5114 (font_score): Prefer normal fonts if weight or slant unspecified.
5115 (font_score) [WINDOWSNT]: Scale weight difference down to closer
5116 match freetype scores.
5117
73acf815 51182008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5119
5120 * w32font.c (w32font_text_extents): Don't use the frame stored in the
5121 font, as it may have been deleted.
5122 (w32_enumfont_pattern_entity): Map generic family to adstyle using
5123 most common hyphenless variation.
5124 (logfonts_match): Check generic family.
5125 (font_matches_spec): Don't check generic family here.
5126 (fill_in_logfont): Set generic family based on adstyle.
5127
5128 * w32font.h (w32font_get_cache): Update declaration.
5129
73acf815 51302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5131
5132 * ftfont.c (ftfont_get_cache): Adjust the argument type.
5133
15139d67 5134 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 5135 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
5136 with the old drivers.
5137
5138 * w32font.c (w32font_get_cache): Adjust the argument type.
5139
5140 * xfont.c (xfont_get_cache): Adjust the argument type.
5141
5142 * font.h (struct font_driver): Change argument type of get_cache.
5143
5144 * xftfont.c (xftfont_start_for_frame): Delete prototype.
5145
5146 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 5147 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 5148 (font_clear_cache): New function.
4c4475a8 5149 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 5150 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
5151
5152 * fontset.c (fontset_find_font): Fix previous change.
5153
73acf815 51542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5155
5156 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
5157 dpyinfo->font_table.
5158 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 5159 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
5160
5161 * font.c (font_at): Handle the case that the arg C is negative.
5162 Handle the unibyte case.
5163 (Ffont_at): Call font_at with the arg C -1.
5164
5165 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
5166 the position here, and call font_at with the arg C -1.
5167 Don't check the range of the existing composition at the point.
aca7a3d2 5168
73acf815 51692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5170
15139d67 5171 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 5172 Change caller.
4c4475a8
GM
5173 (load_font_get_repertory, fontset_find_font): Assume that
5174 font_spec is always a font-spec object.
aca7a3d2
MB
5175 (Fset_fontset_font): Always store a font-spec object in a fontset.
5176
5177 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
5178 instead of get_property_and_range.
5179
73acf815 51802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5181
5182 * xftfont.c (struct xftfont_info): Delete the member ft_face.
5183 (xftfont_open): Don't keep locking face.
5184 (xftfont_close): Don't unlock face.
4c4475a8 5185 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
5186
5187 * fontset.c (fontset_find_font): Don't prefer a font of
5188 supplementary charset.
5189
73acf815 51902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5191
1f45f627
GM
5192 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
5193 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
5194 (OTF_TAG_STR): Terminate by '\0'.
5195 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
5196 listing to the script specified in that property. Fix arg to
5197 OTF_check_features.
5198
73acf815 51992008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5200
5201 * w32font.h: New file.
5202
5203 * w32font.c: Include it.
5204 (struct w32font_info): Add owning_frame field. Move to w32font.h.
5205 (w32font_open): Set owning_frame.
5206 (w32font_text_extents): Use owning_frame.
5207 (struct font_callback_data): Add opentype_only field.
5208 (add_font_entity_to_list): Use it to filter fonts.
5209 Don't check against full name.
5210 (w32font_list_internal): New function.
5211 (w32font_list): Use it.
5212 (w32font_match_internal): New function.
5213 (w32font_match): Use it.
5214 (w32font_open_internal): New function.
5215 (w32font_open): Use it.
5216 (w32font_get_cache, w32font_close, w32font_has_char)
5217 (w32font_encode_char, w32font_text_extents, w32font_draw):
5218 Make non-static.
5219
5220 * makefile.w32-in (w32font.o): Depend on w32font.h.
5221
73acf815 52222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5223
5224 * charset.c (Fdefine_charset_internal): Record a supplementary
5225 charset at the tail of Vcharset_order_list.
5226
5227 * font.c (Ffont_shape_text): Fix the return value.
5228
5229 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
5230
5231 * xdisp.c (handle_auto_composed_prop): Fix previous change.
5232
73acf815 52332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5234
5235 * ftfont.c (struct OpenTypeSpec): New struct.
5236 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5237 (ftfont_get_open_type_spec): New function.
5238 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5239
15139d67 5240 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 5241
73acf815 52422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5243
5244 * w32font.c (add_font_entity_to_list): Compare only the beginning
5245 of full name.
5246
73acf815 52472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5248
15139d67
SM
5249 * xdisp.c (handle_auto_composed_prop): Simplify the code.
5250 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 5251
73acf815 52522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5253
5254 * font.c (font_gstring_produce): Delete it.
5255
15139d67
SM
5256 * composite.h (COMPOSITION_METHOD):
5257 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 5258
73acf815 52592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5260
15139d67 5261 * xfont.c (Qx): Delete.
aca7a3d2
MB
5262 (syms_of_xfont): Don't initialize Qx.
5263
15139d67
SM
5264 * composite.h (enum composition_method):
5265 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 5266
73acf815 52672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5268
5269 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
5270 (choose_face_font): Accept new form of font-spec.
5271
5272 * frame.h (font_driver_list): Declare it unconditionally.
5273 (struct frame): Define members font_driver_list and font_data_list
5274 unconditionally.
5275
5276 * fontset.c: Include "font.h" unconditionally.
15139d67 5277 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
5278 (Fset_fontset_font): Accept a font-spec object.
5279
5280 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
5281 PIXEL_SIZE part a wild card.
5282
5283 * dispextern.h (struct glyph_string): Define members clip and
5284 num_clips unconditionally.
5285 (struct face): Define members font_info and extra unconditionally.
5286
5287 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
5288 ftfont_info only when HAVE_LIBOTF is defined.
5289
73acf815 52902008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5291
5292 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
5293 and end.
5294
73acf815 52952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5296
5297 * w32font.c (w32font_driver): Add new fields.
5298
73acf815 52992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5300
aca7a3d2
MB
5301 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
5302 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
5303 (LIBES): Add @M17N_FLT_CFLAGS@.
5304
5305 * composite.c (compose_text): Don't treat the new style
5306 composition specially.
5307
5308 * emacs.c (main): Call syms_of_font unconditionally.
5309
5310 * font.h (FONT_ENTITY_NOT_LOADABLE)
5311 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 5312 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 5313 (struct font_driver): New member shape.
1f45f627 5314 (font_registry_charsets): Extern it.
4c4475a8 5315 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
5316 (font_otf_capability, font_drive_otf): Delete their externs.
5317
5318 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
5319 (font_charset_alist, font_registry_charsets): Move from xfont.c
5320 and rename.
aca7a3d2
MB
5321 (font_prop_validate_otf): New function.
5322 (font_property_table): Register it for QCotf.
5323 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 5324 (font_drive_otf): Delete.
1f45f627 5325 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
5326 lispy gstring.
5327 (font_find_for_lface): New arg C.
15139d67 5328 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
5329 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
5330 lispy gstring.
aca7a3d2
MB
5331 (Ffont_shape_text): New function.
5332 (Fopen_font): If the font size is not given, use 12-pixel.
5333 (Ffont_at): New arg STRING.
15139d67
SM
5334 (syms_of_font): Initalize font_charset_alist.
5335 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
5336 conditionally.
5337
5338 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
5339 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
5340 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
5341 Adjust for the change of RFONT-DEF.
15139d67 5342 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
5343
5344 * ftfont.h: New file.
5345
5346 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
5347 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5348 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5349 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
5350 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 5351 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
5352 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
5353 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
5354 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 5355 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
5356 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
5357 (otf_gstring, gstring, m17n_flt_initialized): New variables.
5358
15139d67
SM
5359 * w32term.c (x_draw_composite_glyph_string_foreground):
5360 Adjust for the change of lispy gstring.
aca7a3d2 5361
15139d67 5362 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 5363 lispy gstring. Call a function for auto-composition with the
15139d67
SM
5364 third arg it->window.
5365 (fill_composite_glyph_string): Adjust for the change of lispy string.
5366 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 5367
15139d67 5368 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
5369 font_find_for_lface.
5370
1f45f627
GM
5371 * xfont.c (x_font_charset_alist): Move to font.c and rename.
5372 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
5373 (syms_of_xfont): Don't handle x_font_charset_alist.
5374
5375 * xftfont.c: Include "ftfont.h".
15139d67 5376 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
5377 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5378 (xftfont_close) [HAVE_LIBOTF]: Close otf.
5379 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
5380 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
5381 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 5382
15139d67 5383 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
5384 the change of lispy gstring.
5385
73acf815 53862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5387
5388 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
5389
73acf815 53902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5391
5392 * w32font.c (w32font_draw): Fill background manually.
5393
73acf815 53942008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5395
5396 * font.c (Qfontp): Remove unused symbol.
5397 (QCantialias): New symbol.
5398 (syms_of_font): Define it.
5399 (font_property_table): Set a validator for QCantialias.
5400
15139d67
SM
5401 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
5402 Define if not already.
aca7a3d2
MB
5403 (QCfamily): Share with xfaces.c.
5404 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 5405 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
5406 (w32_antialias_type, lispy_antialias_type): New functions.
5407 (w32_enumfont_pattern_entity): New arg requested_font.
5408 Set antialias parameter if non-default was requested.
5409 (fill_in_logfont): Fill in lfQuality if :antialias specified.
5410
73acf815 54112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5412
5413 * lread.c (read1): Undo the previous change.
5414
73acf815 54152008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
5416
5417 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 5418 USE_FONT_BACKEND is defined.
aca7a3d2 5419
73acf815 54202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5421
5422 * font.h (struct font_bitmap): New member bits_per_pixel.
5423 (struct font_driver): New members start_for_frame and end_for_frame.
5424 (struct font_data_list): New struct.
5425 (font_put_frame_data, font_get_frame_data): Extern them.
5426
5427 * frame.h (struct frame): New member font_data_list.
5428
5429 * font.c (font_update_drivers): Call driver->start_for_frame and
5430 driver->end_for_frame at proper timings.
5431 (font_put_frame_data, font_get_frame_data): New functions.
5432 (Ffont_spec): Add usage in the docstring.
5433
5434 * frame.c (make_frame): Initialize f->font_data_list to NULL.
5435 (Fdelete_frame): Call font_update_drivers.
5436
5437 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 5438 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
5439 (xftfont_get_xft_draw): New function.
5440 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
5441 (xftfont_end_for_frame): New function.
5442 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
5443
15139d67 5444 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 5445 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
5446 (struct ftxfont_frame_data): New struct.
5447 (ftxfont_draw_bitmap): New arg gc_fore and flush.
5448 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 5449 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
5450 (ftxfont_end_for_frame): New function.
5451 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
5452
5453 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
5454
73acf815 54552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5456
5457 * xselect.c (Vselection_coding_system)
5458 (Vnext_selection_coding_system): Delete them.
5459 (syms_of_xselect): Don't declare selection-coding-system and
5460 next-selection-coding-system. They are declared in select.el.
5461
73acf815 54622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5463
5464 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
5465
5466 * w32fns.c: Include imm.h.
5467 (get_composition_string_fn, get_ime_context_fn): New optional
5468 system functions.
5469 (globals_of_w32fns): Load them from imm32.dll.
5470 (ignore_ime_char): New flag.
5471 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
5472 WM_IME_ENDCOMPOSITION messages.
5473
5474 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
5475 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
5476
73acf815 54772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5478
5479 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
5480 (READCHAR_REPORT_MULTIBYTE): New macro.
5481 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
5482 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
5483 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
5484 source.
5485
73acf815 54862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5487
5488 * xfaces.c (face_for_overlay_string): Call lookup_face with
5489 correct arguments (fix of synching with the trunk).
5490
73acf815 54912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5492
4c4475a8
GM
5493 * font.c (font_prop_validate_symbol, font_prop_validate_style)
5494 (font_prop_validate_non_neg, font_prop_validate_spacing):
5495 Delete argument prop_index.
15139d67
SM
5496 (font_property_table): Change arguments to validater. Change Callers.
5497 (font_lispy_object): Delete.
aca7a3d2
MB
5498 (font_at): Use font_find_object instead fo font_lispy_object.
5499
73acf815 55002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5501
5502 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
5503 and file names.
5504
73acf815 55052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5506
5507 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
5508 (font_matches_spec): Remove debug output.
5509 (add_font_entity_to_list): Avoid using substituted fonts.
5510
73acf815 55112008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5512
5513 * doc.c (Fsnarf_documentation):
5514 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
5515
73acf815 55162008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5517
290afd83 5518 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
5519 HAVE_WINDOW_SYSTEM is defined.
5520
73acf815 55212008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
5522
5523 Fix up multi-tty merge.
5524
5525 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
5526 and indentation.
5527
5528 * xfaces.c (free_realized_face, clear_face_gcs):
5529 Include font_done_for_face in the input_blocked section, just in case.
5530
5531 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5532 (get_char_face_and_encoding): Undo last change and remove the *other*
5533 duplicate definition (i.e. keep the one that's better scoped and that
5534 includes code for the font-backend).
5535
5536 * terminal.c (create_terminal): Default keyboard_coding to
5537 `no-conversion' and terminal_coding to `undecided'.
5538
5539 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5540
5541 * fontset.c (free_realized_fontsets): Check that the table entry does
5542 contain a fontset before trying to compare it to `base'.
5543
5544 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5545 syms_of_charset, and syms_of_coding earlier because init_window_once
5546 now needs Vcoding_system_hash_table to be setup.
5547
5548 * coding.h (default_buffer_file_coding): Remove.
5549
5550 * coding.c (default_buffer_file_coding): Remove.
5551 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5552 than ->symbol, and use the terminal-local coding system.
5553 (syms_of_coding): Don't setup the coding-systems that are not
5554 terminal-local.
5555 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5556
5557 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5558 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5559
5560 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5561 in chartab.c and were re-added here by mistake.
5562 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5563
5564 * doc.c (Fsnarf_documentation):
5565 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5566 src to etc.
5567
5568 * ChangeLog.10: Add mistakenly removed entry.
5569
73acf815 55702008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
5571
5572 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5573
73acf815 55742008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5575
5576 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5577 Add extra args to FACE_FOR_CHAR.
5578
73acf815 55792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5580
5581 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5582 in sequence.
5583
4c4475a8
GM
5584 * chartab.c (map_sub_char_table, map_char_table): If the range
5585 contains just one character, call the function with that character
5586 even if the depth is not 3.
aca7a3d2 5587
73acf815 55882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5589
5590 * w32font.c (w32font_text_extents): Calculate metrics for the
5591 whole string.
5592
73acf815 55932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5594
5595 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5596
73acf815 55972008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5598
5599 * w32term.c (x_set_glyph_string_clipping): Use
5600 get_glyph_string_clip_rects.
4c4475a8
GM
5601 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5602 Adjust for the change of struct glyph_string.
aca7a3d2
MB
5603
5604 * w32font.c (w32font_draw): Do clipping here.
5605
73acf815 56062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5607
1f45f627 5608 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
5609 glyph_string.
5610
5611 * xterm.c (x_set_glyph_string_clipping): Use
5612 get_glyph_string_clip_rects.
4c4475a8
GM
5613 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5614 Adjust for the change of struct glyph_string.
aca7a3d2
MB
5615
5616 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
5617 the resulting clip(s}.
1f45f627 5618 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
5619 row->clip temporarily.
5620 (expose_window): Redraw rows overlapping the exposed area.
5621
5622 * dispextern.h (struct glyph_row): New member clip.
5623 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
5624 clip_height, new member clip, and num_clips.
5625
73acf815 56262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5627
5628 * data.c (Fchar_or_string_p): Fix docstring.
5629
73acf815 56302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5631
5632 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
5633 create a temporal XftDraw object.
5634
73acf815 56352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5636
5637 * font.c (Ffontp): Fix docstring.
5638
5639 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
5640 strong evidence of ISO-2022.
5641
73acf815 56422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5643
5644 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
5645 SYNTAX_ENTRY_FOLLOW_PARENT.
5646
73acf815 56472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
5648
5649 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
5650 its type.
5651 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
5652 Update to the new type of weak_hash_tables and next_weak.
5653
5654 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
5655 a plain C pointer to Lisp_Hash_Table.
5656
5657 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
5658 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
5659 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
5660 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
5661 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
5662 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
5663 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
5664 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
5665 (GC_EQ): Remove since they've been identical to their non-GC_
5666 alter-egos ever since the markbit was eradicated.
5667
290afd83
JB
5668 * alloc.c:
5669 * buffer.c:
5670 * buffer.h:
5671 * data.c:
5672 * fileio.c:
5673 * filelock.c:
5674 * fns.c:
5675 * frame.h:
5676 * lisp.h:
5677 * macterm.c:
5678 * print.c:
5679 * process.c:
5680 * w32fns.c:
5681 * w32menu.c:
5682 * w32term.c:
5683 * xfns.c:
5684 * xmenu.c:
5685 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 5686
73acf815 56872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5688
5689 * chartab.c (map_sub_char_table): Make it work for the top-level
5690 char-table. Fix handling of parent char-table.
c5ad7a3d 5691 (map_char_table): Adjust for the above change.
aca7a3d2 5692
73acf815 56932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5694
5695 * w32font.c (Qgdi): Rename from Qw32.
5696
73acf815 56972008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5698
5699 * w32bdf.c (get_quoted_string): Make function static.
5700
73acf815 57012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5702
5703 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
5704 bigger ascent and descent than those of the font, use them as
5705 font's ascent and descent.
5706
73acf815 57072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5708
5709 * Makefile.in (${lispsource}international/charprop.el): Move this
5710 target within "#ifdef HAVE_UNIDATA" and "#endif".
5711
73acf815 57122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5713
5714 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
5715 (shortlisp): Add ../lisp/language/tai-viet.el.
5716
1f45f627 57172008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
5718
5719 * Makefile.in (${lispsource}international/charprop.el): Depend on
5720 temacs${EXEEXT}.
5721
73acf815 57222008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5723
5724 * w32font.c (w32font_close): Delete the GDI font object.
5725
6f69e89b 5726 * w32menu.c: Include character.h.
aca7a3d2
MB
5727
5728 * w32proc.c: Likewise.
5729
5730 * w32select.c: Likewise.
5731
6f69e89b 5732 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 5733
73acf815 57342008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5735
5736 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
5737
5738 * w32menu.c (syms_of_w32menu): Likewise.
5739
5740 * w32proc.c (syms_of_ntproc): Likewise.
5741
5742 * w32select.c (syms_of_w32select): Likewise.
5743
5744 * w32term.c (syms_of_w32term): Likewise.
5745
73acf815 57462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5747
5748 * w32font.c (w32font_draw): Delete brush after using it.
5749
73acf815 57502008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5751
5752 * w32font.c (w32font_open): Don't set font_idx.
5753 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
5754 to font settings.
5755 (w32font_draw): Fill background explicitly.
5756
73acf815 57572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5758
5759 * w32term.c (w32_initialize): Don't call w32font_initialize.
5760
5761 * w32font.c (w32font_info): Remove subranges.
5762 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
5763 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
5764 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
5765 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
5766 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5767 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5768 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5769 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5770 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5771 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5772 New symbols.
5773 (font_callback_data): New struct.
5774 (w32font_list, w32font_match): Use it.
5775 (w32font_open): Don't populate subranges.
5776 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5777 (w32font_encode_char): Always return unicode code-point as-is.
5778 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
5779 GetGlyphOutline. Never look up by glyph index. Avoid looping
5780 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 5781 glyph index version.
1f204af3 5782 (set_fonts_frame): Remove.
aca7a3d2 5783 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
5784 set frame parameter. Use backward compatible fake foundries.
5785 Save generic family in extra slot under QCfamily. Make width slot
5786 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
5787 binary subranges.
5788 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 5789 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
5790 unwanted fonts.
5791 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
5792 (w32_registry): Default to iso10646_1.
5793 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5794 string font registries. Don't fill in font name if it is a generic
5795 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
5796 extra info to fill pitch, family and charset fields.
5797 (list_all_matching_fonts): Use font_callback_data struct.
5798 (unicode_range_for_char): Remove.
5799 (font_supported_scripts): New function.
5800 (w32font_initialize): Remove.
5801 (syms_of_w32font): Update which symbols are defined.
5802
73acf815 58032008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5804
5805 * font.c (font_pixel_size): Reverse assq_no_quit args.
5806
5807 * w32term.h (FONT_WIDTH): Report max width, not average.
5808 (FONT_MAX_WIDTH): Remove.
5809 (FONT_AVG_WIDTH): New macro.
5810
5811 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5812 redefinition of FONT_WIDTH.
5813
5814 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5815 (w32_cache_char_metrics): Use FONT_WIDTH.
5816
5817 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5818
73acf815 58192008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5820
5821 * w32font.c (w32font_open): Make lfHeight negative.
5822
5823 * w32fns.c (x_default_font_parameter): Use new style font name.
5824 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5825
73acf815 58262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5827
5828 * w32font.c (QCsubranges): New symbol.
5829 (w32font_open, w32font_has_char): Get subranges from subproperty
5830 of extra.
5831 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5832 (syms_of_w32font): Define :subranges symbol.
5833
5834 * font.c (font_put_extra): Expose externally.
5835
1f45f627 5836 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
5837
5838 * font.c (Ffont_get): Use font driver to determine otf capability.
5839 (adjust_anchor): Check if driver defines anchor_point before using.
5840
5841 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5842 (w32font_draw): Use options.
5843 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5844 Fix detection of truetype fonts.
5845 (registry_to_w32_charset): Handle charsets other than iso8859-1
5846 expressed as lisp symbols.
5847 (w32_registry): Express charset as lisp symbol.
5848 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 5849 Don't set width here. Set quality to default.
aca7a3d2
MB
5850
5851 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5852 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5853
5854 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5855 Remove redundant loop and allocation.
5856
5857 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 5858 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
5859 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5860
5861 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5862 STORE_XCHARB a valid l-value.
5863
5864 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5865 calculations for non-Truetype fonts.
5866 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
5867 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5868 Remove redundant code.
aca7a3d2
MB
5869 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5870
5871 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5872 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5873
5874 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5875 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5876
5877 * w32font.c: New file for w32 font backend.
5878
73acf815 58792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5880
5881 * term.c: Don't include "buffer.h" twice.
5882
73acf815 58832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5884
5885 * character.c (Funibyte_string): New function.
5886 (syms_of_character): Defsubr it.
5887
73acf815 58882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5889
5890 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
5891 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5892 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5893 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5894 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
5895 (x_free_frame_resources): Sync with xterm.c.
5896
73acf815 58972008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5898
5899 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5900 char-table size.
5901
73acf815 59022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5903
c3f9fba8 5904 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 5905
73acf815 59062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5907
5908 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5909 font_otf_gpos, add font_drive_otf.
5910
5911 * fontset.c (fontset_find_font): Pay attention to font size
5912 specified for a font.
5913 (reorder_font_vector): Check contents of font_def.
5914
5915 * font.c (struct otf_list): Delete it.
6f69e89b 5916 (otf_list): Make it a lisp variable.
aca7a3d2 5917 (otf_open): Use lispy otf_list.
1f45f627 5918 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 5919 (check_otf_features): New function.
c3f9fba8
JB
5920 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5921 New functions.
aca7a3d2
MB
5922 (font_drive_otf): New function merging font_otf_gsub and
5923 font_otf_gpos.
5924 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 5925 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
5926 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5927 Ffont_otf_gpos.
5928 (syms_of_font): Staticpro otf_list. Delete defsubr of
5929 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5930
1f45f627 5931 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
5932 font_open_for_lface.
5933
5934 * font.h (font_open_for_lface): Adjust prototype.
5935 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5936 member otf_drive.
5937 (font_otf_gsub, font_otf_gpos): Delete externs.
5938 (font_drive_otf): Extern it.
5939
73acf815 59402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5941
5942 * font.c (font_at): If the window W is not on a window system,
5943 return Qnil.
5944
4c4475a8
GM
5945 * coding.c (produce_chars, encode_coding): Don't call
5946 insert_from_gap if no characters to produce.
aca7a3d2 5947
73acf815 59482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5949
5950 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5951 Fclear_face_cache.
5952
5953 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5954
73acf815 59552008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5956
5957 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5958 Parse "--disable-font-backend" option.
5959 (standard_args): Add "--disable-font-backend" option.
5960
73acf815 59612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5962
5963 * fontset.c (fontset_find_font): New function.
5964 (fontset_font): Use fontset_find_font.
5965 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5966 Register the specified font for all Latin characters.
5967 (new_fontset_from_font): Register the specified font for all Latin
5968 characters.
5969 (dump_fontset): For a realized fontset, include the base fontset
5970 name in the returned vector.
5971
73acf815 59722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5973
5974 * character.h (CHAR_STRING): Cast C to unsigned on calling
5975 char_string.
5976
5977 * character.c (char_string): Type of arg C changed to unsigned.
5978 Signal an error if C is an invalid character code.
5979
4c4475a8
GM
5980 * editfns.c (general_insert_function, Fchar_to_string):
5981 Use CHARACTERP, not INTEGERP.
aca7a3d2 5982
73acf815 59832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5984
5985 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5986 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5987
5988 * regex.c (analyse_first): Fix for multibyte characters in "case
5989 charset:" and "case categoryspec:".
5990
73acf815 59912008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5992
5993 * Makefile.in (LIBES): Move standard libraries to the end.
5994
73acf815 59952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5996
5997 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5998 nonzero, don't shrink the buffer nextb.
5999
6000 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6001
6002 * coding.c (coding_alloc_by_making_gap): New arg offset.
6003 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6004 offset.
6005 (decode_coding_iso_2022): Update coding->safe_charsets.
6006 (decode_coding_gap): Temporarily set
6007 current_buffer->text->inhibit_shrinking to 1.
6008
73acf815 60092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6010
6011 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6012 indexing into elements of s->cmp and s->char2b.
6013
73acf815 60142008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
6015
6016 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6017
73acf815 60182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6019
6020 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6021 target_multibyte instead of multibyte.
6022 (re_match_2_internal): Call bcmp_translate with target_multibyte.
6023 (bcmp_translate): Change the argument name from multibyte to
6024 target_multibyte.
6025
73acf815 60262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6027
6028 These changes are to compile a regexp into a pattern that can be
6029 used both for multibyte and unibyte targets.
6030
6031 * Makefile.in (search.o): Depend on charset.h.
6032
6033 * character.c (multibyte_char_to_unibyte_safe): New function.
6034
6035 * search.c: Include "charset.h".
6036 (compile_pattern_1): Delete argument multibyte. Don't set
6037 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
6038 (compile_pattern): Don't compare cp->buf.target_multibyte.
6039 Compare cp->buf.charset_unibyte.
6040 (compile_pattern): Set cp->buf.target_multibyte.
6041
6042 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6043
6044 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6045
6046 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 6047 multibyte. Change callers.
aca7a3d2 6048 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
6049 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
6050 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
6051 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
6052 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
6053 (regex_compile): Make the compiled pattern usable both for
6054 multibyte and unibyte targets.
6055 (analyse_first): Make the fastmap usable both for multibyte and
6056 unibyte targets.
1f45f627 6057 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
6058 (re_match_2_internal): Pay attention to the case that the
6059 multibyteness of bufp and target may be different.
6060
73acf815 60612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6062
6063 * xdisp.c (x_produce_glyphs): When a font is not found, make the
6064 empty box occupy at least one column width.
6065
73acf815 60662008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6067
6068 * Makefile.in: Remove redundant HAVE_XFT clause.
6069
73acf815 60702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6071
6072 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
6073
73acf815 60742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6075
6076 * fontset.c (Finternal_char_font): Fix for the case of POSITION
6077 being nil.
6078
73acf815 60792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6080
6081 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
6082
73acf815 60832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6084
6085 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
6086
73acf815 60872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6088
6089 * search.c (simple_search): Fix previous change.
6090
73acf815 60912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6092
6093 * xftfont.c (ftfont_font_format): Extern declaration.
6094
6095 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
6096
6097 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
6098 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
6099
6100 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
6101 (ftfont_font_format): Fix previous change.
6102
6103 * font.h (Ffont_xlfd_name): EXFUN it.
6104
6105 * font.c (font_parse_xlfd): Fix the array size of `f'.
6106 (register_font_driver): Use EQ to compare driver->type.
6107
6108 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
6109 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
6110 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
6111
73acf815 61122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6113
4c4475a8
GM
6114 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
6115 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 6116
73acf815 61172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6118
6119 * xfont.c (xfont_open): Set font->format.
6120
6121 * xftfont.c (xftfont_open): Set font->format.
6122
6123 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
6124 (ftfont_list): Include FC_FONTFORMAT in FcObject.
6125 (ftfont_open): Set font->format.
6126 (ftfont_font_format): New function.
6127
6128 * font.h (struct font): New memeber format.
6129
6130 * font.c (Qopentype): New variable.
6131 (syms_of_font): Defsym it.
6132 (Fquery_font): Change the format of the last element of the return
6133 value.
6134
73acf815 61352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6136
6137 * xfns.c (xic_create_xfontset): Try the default fontset name as a
6138 last resort.
6139
73acf815 61402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6141
6142 * coding.c (detect_coding_charset): Fix detection of multi-byte
6143 charset.
6144
73acf815 61452008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
6146
6147 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
6148
73acf815 61492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6150
6151 * xdisp.c (get_next_display_element): Set it->face_id for the
6152 first component of a composition.
1f45f627 6153 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 6154
73acf815 61552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6156
6157 * fontset.c (Qlatin): New variable.
6158 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 6159 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 6160
73acf815 61612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6162
6163 * font.c (font_unparse_fcname): Pay attention to the case that
6164 some of font property is a null string.
6165
73acf815 61662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6167
6168 * term.c: Include "composite.h".
6169 (encode_terminal_code): Output all components of composition.
6170 Check the size of encode_terminal_src.
424c157f 6171 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
6172 (append_composite_glyph, produce_composite_glyph): New functions.
6173
6174 * xdisp.c (x_produce_glyphs): In handling composition, if a font
6175 is not found, get font_info from the current ascii face.
6176
73acf815 61772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6178
6179 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
6180 buffer-file-name to Qnil before calling insert_from_buffer.
6181
6182 * font.c (font_unparse_fcname): Pay attention to the case that
6183 foundry is a null string.
6184
73acf815 61852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6186
6187 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
6188
6189 * font.c (Qunicode_sip): New variable.
6190 (syms_of_font): Declare it as a Lisp symbol.
6191
6192 * font.h (Qunicode_sip): Extern it.
6193
73acf815 61942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6195
1f45f627 6196 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
6197
6198 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 6199 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
6200 the first elememnt of allocated memory.
6201
1f45f627 6202 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
6203
6204 * xdisp.c (handle_composition_prop): Set it->c to the first
6205 non-TAB component.
1f45f627
GM
6206 (fill_composite_glyph_string): Change argument.
6207 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
6208 (x_produce_glyphs): Fix handling of left/right padding.
6209
73acf815 62102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6211
6212 * coding.c (detect_coding_system): Fix for handling off
6213 inhibit_iso_escape_detection. Fix for the case that no coding
6214 system is defined for a specific coding category.
6215
73acf815 62162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6217
1f45f627 6218 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
6219
6220 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
6221 opening a font.
6222
6223 * fileio.c (Finsert_file_contents): On recovering a file, assume
6224 Unix-like eol.
6225 (choose_write_coding_system): On auto-saving a file, force
6226 Unix-like eol.
6227
6228 * coding.c (setup_coding_system): Fix setting of
6229 coding->common_flags based on eol_type.
6230 (coding_inherit_eol_type): If PARENT is not nil, be sure to
6231 inherit from it.
6232
73acf815 62332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6234
1f45f627 6235 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 6236
73acf815 62372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6238
1f45f627 6239 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
6240 (ftfont_list): Don't check :name property.
6241 (ftfont_match): New function.
6242 (ftfont_pattern_entity): If the pattern doesn't contain
6243 FC_SPACING, don't assuce FC_MONO.
6244
6245 * font.h (struct font_driver): New member `match'.
1f45f627 6246 (font_update_drivers): Adjust prototype.
aca7a3d2 6247
4c4475a8
GM
6248 * font.c (font_parse_fcname, font_parse_name): Don't change :name
6249 property of FONT.
aca7a3d2
MB
6250 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6251 them unconditionally.
6252 (font_matching_entity): New function.
6253 (font_open_by_name): Try font_matching_entity if exact match is
6254 not found.
6255 (font_update_drivers): Delete the arg FONT. Return a list of
6256 actually used backends. Don't free faces, font caches here.
6257 Don't store data in frame parameters. Don't call x_set_font.
6258 (Ffont_spec): Store :name property as is.
6259 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
6260 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
6261 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
6262 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
6263 Call font->driver->otf_gsub instead of font_otf_gsub.
6264
6265 * frame.c (x_set_font_backend): Do more works that were done in
6266 font_update_drivers before.
6267
6268 * xfont.c (xfont_match): New function.
6269 (xfont_driver): Set xfont_driver.match to xfont_match.
6270 (xfont_draw): Set font in GC if necessary.
6271
6272 * ftxfont.c (ftxfont_match): New function.
6273 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
6274
6275 * xftfont.c (xftfont_match): New function.
6276 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
6277
73acf815 62782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6279
6280 * font.h (struct font): New member scalable.
6281 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 6282 (font_otf_gsub): Adjust prototype.
aca7a3d2 6283
1f45f627
GM
6284 * font.c (font_otf_capability): Fix handling of the default langsys.
6285 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
6286 Check the contents of SPEC.
6287 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
6288 (check_gstring): New function.
6289 (REPLACEMENT_CHARACTER): New macro.
6290 (font_otf_gsub): New arg alternate_subst. Be sure to set all
6291 glyph codes of GSTRING.
6292 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
6293 (font_prepare_composition): Set cmp->glyph_len.
6294 (font_open_entity): Set font->scalable.
6295 (Ffont_get): Handle :otf property.
6296 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
6297 functions.
6298 (Fquery_font): Use font->font.full_name.
6299 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
6300 Sfont_otf_alternates.
6301
6302 * ftfont.c (ftfont_open): Set font->font.full_name and
6303 font->font.name properly. Fix calculation of font->font.height
6304 and font->min_width.
6305
6306 * ftxfont.c (ftxfont_create_gcs): New function.
6307 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
6308 (ftxfont_draw_backgrond): Fix filling region.
6309 (ftxfont_default_fid): New function.
6310 (ftxfont_open): Set xfotn->fid to the return value of
6311 ftxfont_default_fid.
6312 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
6313 (ftxfont_done_face): Free only GCs that are created by
6314 ftxfont_create_gcs.
6315 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
6316
6317 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
6318 Clip to src->width, etc (not src->clip_XXX).
6319
6320 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
6321 FontBackend frame parameter.
6322
73acf815 63232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6324
6325 * font.h (struct font_driver_list): New member `on'.
6326 (Fclear_font_cache): EXFUN it.
6327 (font_update_drivers): Extern it.
6328
6329 * font.c (font_unparse_fcname): Fix typo (swidth->width).
6330 (font_list_entities): Check driver_list->on.
6331 (register_font_driver): Initalize `on' member to 0.
6332 (font_update_drivers): New function.
6333 (Fclear_font_cache): Check driver_list->on.
6334
6335 * frame.h (Qfont_backend): Extern it.
6336 (x_set_font_backend): Extern it.
6337
6338 * frame.c (Qfont_backend): New variable.
6339 (frame_parms): New element for font-backend.
6340 (x_set_font_backend): New function.
6341
6342 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
6343 FontBackend frame parameter.
6344 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
6345 x_set_font_backend.
6346
6347 * xfont.c (xfont_list): Don't try listing by :name property if the
6348 name is not for XLFD.
6349
73acf815 63502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6351
6352 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
6353 (LGLYPH_SET_TO): New macros.
6354 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
6355 element of G is vector or not.
6356 (font_at): Extern it.
6357
6358 * font.c: Include window.h.
6359 (font_lispy_object): New function.
6360 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
6361 end of valid glyph.
6362 (font_close_object): Fix getting (struct font *).
6363 (font_at): New function.
6364 (Ffont_get): If FONT is a font-object, get entity from it.
6365 (Ffont_make_gstring): Initialize elements of glyphs with nil.
6366 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
6367 range check.
6368 (Ffont_at): New function.
6369 (syms_of_font): Defsubr Sfont_at.
6370
6371 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 6372 before the entry for Qcomposition.
1f45f627 6373 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
6374 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
6375 the font in gstring.
6376 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
6377 LGLYPH_FORM (g) to detect the end of valid glyph.
6378 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
6379 we are composing with gstring.
6380
6381 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
6382 Check if adjustment is vector or not.
6383
6384 * Makefile.in (font.o): Make it depends on window.h.
6385
73acf815 63862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6387
6388 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
6389 adjustment is vector or not.
6390
73acf815 63912008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6392
6393 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
6394
73acf815 63952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6396
6397 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
6398 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
6399 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
6400
1f45f627 6401 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 6402 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
6403 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
6404 LGLYPH format.
aca7a3d2 6405
1f45f627 6406 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
6407 the change of LGLYPH format.
6408
73acf815 64092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6410
6411 * ftfont.c (ftfont_list): Fix typo.
1f45f627 6412 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 6413
880820fe 64142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
6415
6416 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
6417
6418 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
6419 xftface_info is non-NULL.
6420
880820fe 64212008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 6422
1f45f627 6423 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 6424
73acf815 64252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6426
6427 * ftfont.c (ftfont_list): Pay attention to the case that
6428 FC_CAPABILITY is not defined.
6429
73acf815 64302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6431
6432 * xftfont.c (xftfont_open): Set charset related members to -1.
6433
1f45f627
GM
6434 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
6435 QCname.
aca7a3d2
MB
6436 (ftfont_open): Set charset related members to -1.
6437
6438 * fontset.c (Votf_script_alist): New variable.
6439 (syms_of_fontset): Initialize it.
6440 (fontset_font): Delete unused variable.
6441
6442 * fontset.h (Votf_script_alist): Extern it.
6443
1f45f627 6444 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
6445
6446 * font.h (font_close_object, font_merge_old_spec): Extern them.
6447
73acf815 64482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6449
6450 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
6451 (syms_of_font): Initialize them.
6452 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
6453 (font_prop_validate_type): Delete.
6454 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
6455 Change caller.
6456 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
6457 (font_prop_validate_extra): Delete.
aca7a3d2
MB
6458 (font_prop_validate_spacing): New function.
6459 (font_property_table): Add elements for all known properties.
1f45f627
GM
6460 (get_font_prop_index): Rename from check_font_prop_name. New
6461 argument FROM. Change caller.
aca7a3d2 6462 (font_prop_validate): Validate all known properties.
1f45f627 6463 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
6464 (font_expand_wildcards): Make it static. Fix the way of shrinking
6465 the possible range.
1f45f627 6466 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 6467 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 6468 Change caller.
aca7a3d2 6469 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
6470 (font_parse_fcname): Delete argument merge. Fix parsing of point
6471 size. Don't validate properties values here. Change caller.
6472 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
6473 (font_open_by_name): Delete unused variable.
6474 (Ffont_spec): Likewise. Validate property values.
6475 (Ffont_match_p): New function.
6476
6477 * font.h (QCscalable): Extern it.
1f45f627 6478 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 6479
1f45f627 6480 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 6481
1f45f627 6482 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
6483 (xfont_list_pattern): New function.
6484 (xfont_list): Use xfont_list_pattern.
6485
73acf815 64862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6487
6488 * font.h (Flist_fonts): EXFUN it.
6489
73acf815 64902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6491
6492 * w32term.c (w32_initialize): Add back smoothing_type and
6493 smoothing_enabled definitions.
6494
73acf815 64952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6496
6497 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
6498 s->face->font on determining underline position.
6499
73acf815 65002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6501
6502 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
6503 (font_has_char): Accept font-object too.
6504 (font_find_for_lface): Try at first with a size specified in face.
6505
73acf815 65062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6507
6508 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
6509 font_open_by_name.
6510
73acf815 65112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6512
6513 * font.h (QCspacing, QCdpi): Extern them.
6514 (enum font_spacing): New enum.
6515 (FONT_PIXEL_SIZE_QUANTUM): New macro.
6516
6517 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
6518 (QCspacing, QCdpi): New variables.
6519 (syms_of_font): Initialize them.
6520 (font_pixel_size): New function.
6521 (font_put_extra): New function.
6522 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
6523 in FONT_EXTRA.
e9184ccb
JB
6524 (font_parse_fcname): Handle enumenrated values (e.g. bold).
6525 Fix handling font size. Add QCname property that contains only
aca7a3d2 6526 unknown properties.
1f45f627 6527 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 6528 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
6529 (font_sort_entites, font_list_entities, font_find_for_lface)
6530 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 6531 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
6532
6533 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6534 include weight in listing pattern, instead check weight of each
6535 listed font. Don't include scalable in pattern. Pay attention to
6536 FONT_PIXEL_SIZE_QUANTUM.
6537
73acf815 65382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6539
aca7a3d2 6540 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 6541 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
6542 (font_list_entities): Handle float size correctly.
6543 (font_open_by_name): Prefer `normal' property values if the name
6544 doesn't specify them.
6545
6546 * fontset.c (Finternal_char_font): Use font_get_name, not
6547 Ffont_xlfd_name.
6548
6549 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6550 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6551 pattern. Don't force scalable.
6552
6553 * xftfont.c (xftfont_open): For generating a name, start from
6554 96-byte buffer.
6555
880820fe 65562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
6557
6558 * frame.h (x_new_fontset2): Fix prototype.
6559
73acf815 65602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6561
1f45f627 6562 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
6563 (font_match_p, font_get_spec, font_parse_fcname)
6564 (font_unparse_fcname): Extern them.
1f45f627 6565 (font_get_name): Adjust prototype.
aca7a3d2
MB
6566
6567 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6568 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6569 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6570 unnecessary checks for weight, slant, and swidth.
6571 (font_parse_fcname): New function.
6572 (font_unparse_fcname): New function.
6573 (font_parse_name): New function.
6574 (font_match_p): New function.
1f45f627 6575 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
6576 (font_get_spec): New function.
6577 (Qunspecified, Qignore_defface): Don't extern them.
6578 (font_find_for_lface): Assume that LFACE is fully specified.
6579 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6580 object, use it for FACE.
6581 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6582 driver->parse_name.
6583 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6584
1f45f627
GM
6585 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6586 prototype.
aca7a3d2 6587
1f45f627
GM
6588 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6589 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
6590 make_fontset.
6591
1f45f627 6592 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 6593
1f45f627 6594 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
6595 of x_new_fontset2.
6596
6597 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6598 (Qsans__serif): New variables.
6599 (ftfont_generic_family_list): New variable.
6600 (syms_of_ftfont): Initialize the above variables.
1f45f627 6601 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
6602 (ftfont_list_generic_family): New function.
6603 (ftfont_parse_name): Delete this function.
1f45f627 6604 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
6605 (ftfont_list_family): Fix args to FcObjectSetBuild.
6606
6607 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
6608 object in attrs[LFACE_FONT_INDEX].
6609 (set_lface_from_font_name): Cancel all changes for font-backend.
6610 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
6611 function.
6612 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
6613 font object in QCfont attribute.
6614 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
6615 (realize_default_face) [USE_FONT_BACKEND]: Call
6616 set_lface_from_font_and_fontset.
6617
6618 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
6619 "fixed", and signal error here if no suitable font was found.
6620
6621 * xfont.c (xfont_parse_name): Delete this function.
6622
6623 * xftfont.c (xftfont_open): Change coding style of error
6624 handling. Generate fontconfig's fontname pattern.
6625
6626 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
6627 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
6628
6629 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
6630 Both args FONTSET and FONT_OBJECT must be existing ones.
6631
73acf815 66322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6633
6634 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
6635
73acf815 66362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6637
6638 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
6639
6640 * font.h (struct font): Fix typo.
6641
6642 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
6643 XLFD_XXX_INDEX.
6644 (enum xlfd_field_mask): New enum.
1f45f627 6645 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
6646 are followed by non-digits, return a symbol.
6647 (font_expand_wildcards): New function.
6648 (font_parse_xlfd): Fix wildcard handling.
6649 (Ffont_spec): If :name is specified, reflect the info in the other
6650 properties.
6651
6652 * ftfont.c (ftfont_pattern_entity): Fix typo.
6653 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
6654 locale.
6655
73acf815 66562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6657
6658 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
6659
1f45f627 6660 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
6661 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
6662 registry doesn't specify encoding part.
6663 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
6664 (font_open_by_name): At first try parsing the name.
6665 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
6666 as Lisp symbols.
6667
6668 * fontset.c (reorder_font_vector): Pay attention to the case that
6669 the 3rd element of font_def is nil.
6670 (fontset_font): For the default fontset, append one more fontset
6671 elements for a script-based font specification. Don't add script
6672 attribute on finding a font.
6673 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
6674 font name.
6675 (fontset_ascii_font): If a font can't be opened, return nil.
6676
1f45f627 6677 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
6678 (ftfont_pattern_entity): New function.
6679 (ftfont_get_cache): Assume that freetype_font_cache is already
6680 initialized.
6681 (ftfont_list): Handle the case that a file is specified in font
6682 name. Use ftfont_pattern_entity to generate entities.
6683 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
6684 (syms_of_ftfont): Initialize freetype_font_cache.
6685
6686 * xftfont.c (xftfont_open): Make the font name fontconfig's
6687 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
6688 (xftfont_close): Free font->font.name if not NULL.
6689
6690 * xfont.c (xfont_list): If script is specified for a font, return
6691 null_vector.
6692 (xfont_list_family): Declare argument type.
6693
6694 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
6695 name, set LFACE_FONT (lface) to nil.
6696
6697 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
6698 return Qnil.
6699
73acf815 67002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6701
1f45f627 6702 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
6703 (standard_args): Add "-enable-font-backend".
6704
73acf815 67052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6706
6707 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
6708 (struct xftdraw_list, xftdraw_list): Delete them.
6709 (register_xftdraw, check_xftdraw): Delete them.
6710 (xftfont_prepare_face): Don't call register_xftdraw.
6711 (xftfont_done_face): Don't call check_xftdraw.
6712 (xftfont_draw): Get backroudn color only when with_background is
6713 nonzero.
6714
6715 * xfont.c (xfont_encode_char): Fix calculation of char2b.
6716
73acf815 67172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6718
6719 These changes are for the new font handling codes.
6720
6721 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6722 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6723 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6724 (FONTSRC, FONTOBJ): New variables.
6725 (obj): Add $(FONTOBJ).
6726 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6727 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6728 @LIBOTF_LIBS@.
6729 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 6730 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 6731
1f45f627 6732 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
6733
6734 * character.h (Vscript_representative_chars): Extern it.
6735
6736 * character.c (Vscript_representative_chars): New variable.
6737 (syms_of_character): Declare it as a Lisp variable.
6738
6739 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
6740 enable_font_backend is nonzero, accept the composition method
6741 COMPOSITION_WITH_GLYPH_STRING.
6742
6743 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
6744 enumeration COMPOSITION_WITH_GLYPH_STRING.
6745
aca7a3d2
MB
6746 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
6747 members clip_x, clip_y, clip_width, and clip_height.
6748 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
6749
6750 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
6751 --enable-font-backend. Call syms_of_font.
6752
6753 * fns.c (assoc_no_quit): New function.
6754
6755 * fontset.h (FONT_INFO_FROM_FACE): New macro.
6756 (face_for_font, new_fontset_from_font)
6757 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
6758
6759 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
6760 (fontset_font, fontset_ascii, face_for_char)
6761 (make_fontset_for_ascii_face, Ffont_info)
6762 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
6763 is nonzero, use font-backend mechanism.
6764 (find_font_encoding): Make it non-static.
6765 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
6766 New functions.
6767
6768 * frame.h (struct frame): New members resx and resy.
6769 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6770 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6771
6772 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 6773 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
6774
6775 * lisp.h (assoc_no_quit): Extern it.
6776
6777 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6778 Through out the file, use FONT_INFO_FROM_FACE instead of
6779 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6780 rif->per_char_metric.
6781 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6782 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6783 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6784 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6785 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6786 nonzero, use font-backend mechanism.
6787 (get_per_char_metric): New function.
6788
6789 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6790 (set_lface_from_font_name)
6791 (set_font_frame_param, free_realized_face)
6792 (prepare_face_for_display, clear_face_gcs)
6793 (Finternal_set_font_selection_order, realize_x_face)
6794 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6795 font-backend mechanism.
1f45f627 6796 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
6797 (load_face_font) [USE_FONT_BACKEND]: Abort.
6798 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 6799 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
6800
6801 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6802 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6803 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6804 nonzero, register all available font drivers. Call
6805 x_default_font_parameter for deciding a font.
6806 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6807
6808 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6809 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6810 (x_set_glyph_string_clipping_exactly)
6811 (x_compute_glyph_string_overhangs)
6812 (x_draw_glyph_string_foreground)
6813 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6814 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6815 enable_font_backend is nonzero, use font-backend mechanism.
6816 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6817
73acf815 68182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6819
fcb314b2 6820 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
6821 system_eol_type.
6822 (syms_of_coding): Initialize system_eol_type.
6823
fcb314b2
GM
6824 * process.c (Fset_process_coding_system): Inherit system's eol
6825 format if necessary.
aca7a3d2 6826
73acf815 68272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6828
6829 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6830
73acf815 68312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6832
6833 * coding.c (decode_eol): Pay attention to buffer relocation in
6834 del_range_2.
6835 (decode_coding): Call decode_eol before restoring undo_list.
6836
73acf815 68372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6838
6839 * charset.c (Fdefine_charset_internal): Fix setting of
6840 emacs_mule_bytes.
6841
73acf815 68422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6843
6844 * keyboard.c (read_char): Check if C is a character or not before
6845 looking up Vkeyboard_translate_table.
6846
73acf815 68472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6848
6849 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6850 condition to terminate the loop.
6851
73acf815 68522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6853
6854 * coding.c (produce_composition): Compare charbuf[i] instead of
6855 args[i] against 0.
6856 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6857
73acf815 68582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6859
6860 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6861 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6862 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6863 detect_coding.
6864 (emacs_mule_char): Handle old style (Emacs 20) component character
6865 of a composition.
4c4475a8
GM
6866 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6867 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6868 composition rule.
aca7a3d2
MB
6869 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6870
73acf815 68712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6872
6873 * coding.c (encode_coding_ccl): Allocate destination dynamically
6874 when necessary.
6875
73acf815 68762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6877
6878 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6879 the loop. When quitted, show a proper error message.
6880
73acf815 68812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6882
aca7a3d2
MB
6883 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6884 src->clip_head and src->clip_tail temporarily instead of src->hl.
6885
6886 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6887 character sequence.
6888 (Fccl_execute_on_string): Use ASET, not XSET.
6889
73acf815 68902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6891
1f45f627 6892 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 6893
73acf815 68942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6895
6896 * coding.c (decode_coding): Fix the condition of terminating the
6897 decoding loop.
6898
73acf815 68992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6900
6901 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 6902 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 6903
73acf815 69042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6905
6906 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6907 made by a mapping table.
6908
73acf815 69092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6910
6911 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6912 not.
6913 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6914 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6915
6916 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6917 s->face is NULL or not.
6918
73acf815 69192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6920
6921 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6922 (x_draw_glyph_string): Fix drawing of right_overhang and
6923 left_overhang around/on cursor.
6924
1f45f627 6925 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 6926
73acf815 69272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6928
6929 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6930
73acf815 69312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6932
4c4475a8
GM
6933 * coding.c (Fdefine_coding_system_internal)
6934 (Fdefine_coding_system_alias): Avoid a duplicated element in
6935 Vcoding_system_alist.
aca7a3d2 6936
73acf815 69372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6938
6939 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6940
fcb314b2 6941 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
6942 (syms_of_coding): Intern and staticpro it.
6943 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 6944 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
6945
6946 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6947 Fcoding_system_p.
6948 (CHECK_CODING_SYSTEM): If ID is not available, call
6949 Fcheck_coding_system.
4c4475a8
GM
6950 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6951 Try also Fcheck_coding_system.
aca7a3d2 6952
73acf815 69532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6954
aca7a3d2
MB
6955 * coding.c (code_conversion_restore): GCPRO arg.
6956
73acf815 69572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6958
6959 * character.c (lisp_string_width): Check multibyteness of STRING.
6960
73acf815 69612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6962
6963 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6964 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6965 (decode_mac_font_name): Use decode_coding_c_string instead of
6966 decode_coding.
6967 (x_load_font): Initialize fontp->fontset to -1. Set
6968 fontp->encoding_type.
6969
73acf815 69702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6971
6972 * search.c (search_buffer): Give up BM search on case-fold-search
6973 if one of a target character has a case-equivalence of different
6974 byte length even if that target charcter is an ASCII.
1f45f627
GM
6975 (simple_search): Fix calculation of byte length of matched text.
6976 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 6977
73acf815 69782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6979
6980 * coding.c (decode_coding): Fix handling of invalid bytes.
6981
73acf815 69822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6983
6984 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6985 Unicode characters.
6986
73acf815 69872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6988
6989 * coding.c (encode_coding_object): If a pre-write-conversion
6990 function makes a new buffer, kill it.
6991
73acf815 69922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6993
6994 * coding.c (QCascii_compatible_p): New variable.
6995 (syms_of_coding): Initialize it.
4c4475a8
GM
6996 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6997 calling string_char.
aca7a3d2
MB
6998 (record_conversion_result): Add `default:' case.
6999 (coding_charset_list): Delete unused variable `coding_type'.
7000 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7001 property in the plist of the coding system.
7002 (Fcoding_system_put): Check QCascii_compatible_p.
7003
73acf815 70042008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7005
7006 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7007 removed calculation of frame `f', as it's now used.
7008
73acf815 70092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7010
1f45f627 7011 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
7012 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7013 (UNIDATA): New variable.
7014 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7015 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7016 $(RUN_TEMACS) unconditionally.
7017
73acf815 70182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7019
1f45f627 7020 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
7021 (admindir): New variable.
7022 ($(lispsource)international/charprop.el): New target.
7023
73acf815 70242008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 7025
1f45f627 7026 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
7027 (syms_of_character): Remove its initialization.
7028
73acf815 70292008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
7030
7031 * w32select.c (validate_coding_system)
7032 (setup_windows_coding_system): New functions.
7033 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7034 setup_windows_coding_system.
7035 (setup_config, Fw32_get_clipboard_data): Use
7036 validate_coding_system.
7037 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 7038 where signals are allowed.
aca7a3d2
MB
7039
7040 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7041 (Fcheck_coding_system): Add declarations.
7042
73acf815 70432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7044
1f45f627 7045 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 7046
73acf815 70472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7048
7049 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7050 string as the second argument for x_new_fontset.
7051
73acf815 70522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7053
7054 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
7055 (encode_coding_object): Use safe_call instead of call2.
7056
73acf815 70572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7058
1f45f627 7059 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
7060
7061 * Makefile.in (lisp): Include charprop.el.
7062
73acf815 70632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7064
7065 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
7066 Not sure if it's unnecessary.
7067
73acf815 70682008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
7069
7070 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
7071 some possibly unnecessary fontset checking code that crashed
1f45f627 7072 when creating a new frame.
aca7a3d2 7073
73acf815 70742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7075
7076 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
7077 lookup_face.
7078
7079 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
7080
1f45f627 7081 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 7082
73acf815 70832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7084
73acf815 7085 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
7086 (coding_charset_list): New function.
7087
7088 * coding.h (coding_charset_list): Extern it.
7089
73acf815 70902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7091
7092 * fontset.c (Fset_fontset_font): Call find_font_encoding with
7093 concatenation of family and registry.
7094
73acf815 70952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7096
7097 * character.h (BYTE8_STRING): Fix typo.
7098
7099 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
7100 string to multibyte (sync to HEAD).
7101
7102 * casefiddle.c (casify_region): Handle changes in byte-length
7103 using replace_range_2 (sync to HEAD).
7104
73acf815 71052008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7106
7107 * chartab.c (map_char_table): GCPRO table and arg.
7108
73acf815 71092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7110
7111 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
7112 already at limit.
7113
73acf815 71142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7115
7116 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
7117 instead of fast_c_string_match_ignore_case.
1f45f627 7118 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 7119 fast_string_match_ignore_case instead of
1f45f627 7120 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 7121
73acf815 71222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7123
7124 * xdisp.c (get_next_display_element): In unibyte case, decide to
7125 display in octal form by checking a chacter by
7126 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
7127
1f45f627 7128 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
7129
7130 * character.c (unibyte_has_multibyte_table): New variable.
7131
7132 * character.h (unibyte_has_multibyte_table): Extern it.
7133 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
7134
73acf815 71352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7136
7137 * coding.c (encode_coding_iso_2022): Fix handling of charset
7138 annotation.
7139
73acf815 71402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7141
7142 * coding.c (setup_coding_system): If coding_system is nil, use
7143 Qundecided.
7144 (Fterminal_coding_system): Return nil if terminal coding system is
7145 `undecided'.
7146 (syms_of_coding): Define coding-system `undecided' here. Setup
7147 terminal_coding as `undecided'.
7148
73acf815 71492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7150
7151 * xdisp.c (message_dolog, set_message_1): Call
7152 unibyte_char_to_multibyte with arg type int.
7153
aca7a3d2
MB
7154 * lread.c (read1): Fix reading of a char-table.
7155
7156 * print.c (print_object): Include sub char-table in cicularities
7157 detection.
7158
73acf815 71592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7160
7161 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 7162 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 7163
73acf815 71642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7165
7166 * fileio.c (report_file_error): Make a unibyte string from
7167 strerror (errorno).
7168 (Fsubstitute_in_file_name): Fix the arg to
7169 unibyte_char_to_multibyte. It is evaluated twice.
7170
73acf815 71712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7172
7173 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
7174
73acf815 71752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7176
7177 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
7178 BOM is not found.
4c4475a8
GM
7179 (detect_coding, detect_coding_system): Optimization for ISO-2022
7180 when no 8-bit data is found.
aca7a3d2 7181
73acf815 71822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7183
7184 * w32fns.c (x_to_w32_font): Update to use new coding struct.
7185
73acf815 71862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7187
4c4475a8
GM
7188 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
7189 CHARS.
aca7a3d2 7190
73acf815 71912008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
7192
7193 * macterm.c (mac_encode_char): Add charset argument and update
7194 to use encoding_type.
2a2e8de7 7195 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
7196 switch to pure fontset.
7197 (decode_mac_font_name): Temporarily remove decoding.
7198 (x_font_name_to_mac_font_name): Temporarily remove encoding.
7199 (x_load_font): Temporarily remove encoding.
aca7a3d2 7200
73acf815 72012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7202
7203 * xfaces.c (Fface_font): If frame is not on a window system,
7204 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
7205 refer to face->font.
7206 (split_font_name_into_vector, build_font_name_from_vector)
7207 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
7208 whne HAVE_WINDOW_SYSTEM is defined.
7209
73acf815 72102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7211
7212 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
7213 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 7214 cmp->glyph_len is zero.
aca7a3d2 7215
1f45f627 7216 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
7217 (Ffontset_info): Make it backward compatible. New arg ALL.
7218
73acf815 72192008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
7220
7221 * process.c (read_process_output): Grow decoding_buf when needed;
7222 this could cause a crash in allocate_string and compact_small_strings.
7223
73acf815 72242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7225
1f45f627 7226 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 7227
73acf815 72282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7229
7230 * coding.c (setup_coding_system): Set coding->common_flags
7231 correctly for raw-text.
7232 (consume_chars): On encoding unibyte text by raw-text, don't check
7233 multibyte form.
1f45f627 7234 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
7235
7236 * fileio.c (e_write): Short cut for the case of no encoding.
7237
73acf815 72382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7239
4c4475a8
GM
7240 * coding.c (detect_coding, detect_coding_system): Delete unused
7241 variables.
aca7a3d2 7242
73acf815 72432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7244
7245 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7246 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7247
73acf815 72482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7249
7250 * coding.c (Ffind_coding_systems_region_internal): Include
7251 raw-text and no-conversion in the result.
7252
73acf815 72532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7254
1f45f627 7255 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
7256 (load_font_get_repertory): Delete unnecessary check of ENCODING of
7257 FONT_DEF.
7258 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 7259 (set_fontset_font): Change argument.
aca7a3d2
MB
7260 (Fset_fontset_font): Fix for the case that TARGET is a script
7261 name and charset name.
7262 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
7263
73acf815 72642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7265
1f45f627
GM
7266 * fontset.c (fontset_font): Rename from fontset_face. Change return
7267 value.
4c4475a8
GM
7268 (face_suitable_for_char_p, face_for_char): Adjust for the change
7269 of fontset_font.
aca7a3d2
MB
7270 (make_fontset_for_ascii_face): Fix setting of the fontset element
7271 for ASCII.
7272 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
7273 to get a font name.
1f45f627 7274 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 7275
fcb314b2 7276 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
7277
7278 * character.h (LEADING_CODE_LATIN_1_MIN)
7279 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
7280
73acf815 72812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7282
fcb314b2 7283 * editfns.c (check_translation): New function.
aca7a3d2
MB
7284 (Ftranslate_region_internal): Handle M:N mapping.
7285
73acf815 72862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7287
7288 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
7289
73acf815 72902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7291
7292 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
7293 goto invalid_code.
7294 (decode_coding_iso_2022): Fix handling of invalid designation.
7295
7296 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
7297 after calling code_conversion_save.
7298
73acf815 72992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7300
7301 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
7302
7303 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
7304
7305 * fontset.c: Include "intervals.h".
7306 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
7307 (free_face_fontset, new_fontset_from_font_name): Fix
7308 Lisp_Object/int mixup.
aca7a3d2
MB
7309
7310 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
7311
7312 * coding.c: Add many prototypes for static functions.
7313 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 7314 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
7315 (Funencodable_char_position, Fcheck_coding_systems_region): Call
7316 get_translation_table with max_lookup NULL.
aca7a3d2 7317
73acf815 73182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7319
7320 * coding.c (get_translation_table): Declare it as Lisp_Object.
7321 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
7322 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
7323 instead of CHAR_TABLE_REF.
aca7a3d2 7324
73acf815 73252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7326
1f45f627 7327 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
7328 annotation data format.
7329 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 7330 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 7331 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 7332 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
7333 (decode_coding_ccl, decode_coding_charset): Pay attention to
7334 coding->charbuf_used.
aca7a3d2
MB
7335 (get_translation): New function.
7336 (produce_chars): New arguments translation_table and last_block.
7337 Translate characters here. Return number of carryover chars.
1f45f627
GM
7338 Change caller.
7339 (produce_composition): New argument pos. Change caller.
7340 Adjust for the change of annotation data format.
aca7a3d2
MB
7341 (produce_charset, produce_annotation): Likewise.
7342 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
7343 (consume_chars): New arg translation_table. Change caller.
7344 (translate_chars): Delete.
7345 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 7346
73acf815 73472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7348
7349 * search.c (simple_search): Fix setting this_pos_byte in backward
7350 search.
7351
7352 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
7353 byte sequence.
7354 (detect_coding_ccl): Fix setting of the variable valids.
7355
73acf815 73562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7357
7358 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
7359
7360 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
7361
1f45f627 7362 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
7363 Ftranslate_region. Accept a char-table in TABLE.
7364 (syms_of_editfns): Defsubr Stranslate_region_internal.
7365
7366 * xfaces.c (set_lface_from_font_name): If a font is specified for
7367 a frame, generate a fontset from the font.
7368 (build_scalable_font_name): If the scalable font is requested for
7369 a specific size, don't change that size.
7370 (try_font_list): Try a scalable font also in the case that a
1f45f627 7371 pattern string is specified.
aca7a3d2 7372
73acf815 73732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7374
7375 * xfaces.c (Fface_font): New optional arg CHARACTER.
7376
73acf815 73772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7378
7379 * charset.h (CHARSET_OFFSET): New macro.
7380
73acf815 73812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7382
7383 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
7384
7385 * fontset.c (fontset_face): Handle the case that repertory is a
7386 char-table.
7387 (find_font_encoding): Return nil for unknown encoding.
7388 (Fset_fontset_font): Ignore a font of unknown encoding.
7389
73acf815 73902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7391
1f45f627 7392 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
7393
7394 * fontset.c (fontset_face): Handle fallback fonts correctly.
7395 (Ffontset_info): Return infomation about fallback fonts.
7396
73acf815 73972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7398
7399 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 7400 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
7401 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
7402 the case that it is nil.
7403 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 7404 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
7405
7406 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
7407 subset or superset.
7408
73acf815 74092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7410
7411 * emacs.c (main): Call init_charset after syms_of_XXX.
7412
1f45f627 7413 * charset.c (Vcharset_map_directory): Delete.
1f204af3 7414 (Vcharset_map_path): New variable.
aca7a3d2
MB
7415 (load_charset_map_from_file): Use Vcharset_map_path instead.
7416 (init_charset): Initialize Vcharset_map_path.
7417 (syms_of_charset): Delete declaration of "charset-map-directory",
7418 add declaration of "charset-map-path".
7419
73acf815 74202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7421
4c4475a8
GM
7422 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
7423 ASCII only string.
aca7a3d2
MB
7424
7425 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
7426
7427 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 7428 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 7429
73acf815 74302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7431
7432 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
7433
7434 * coding.c (QCmnemonic, QCdefalut_char)
7435 (QCdecode_translation_table, QCencode_translation_table)
7436 (QCpost_read_conversion, QCpre_write_conversion): New variables.
7437 (get_translation_table): Return a list of translation tables if
7438 necessary.
7439 (decode_coding): Call get_translation_table with ENCODEP 0.
7440 (char_encodable_p): If translation_table is non-nil, always call
7441 translate_char.
7442 (Fdefine_coding_system_internal): Accept list of translation
7443 tables as :encode-translation-table and :decode-translation-table.
7444 (Fcoding_system_put): New function.
7445 (syms_of_coding): Declare new symbols. Defsubr
7446 Scoding_system_put.
4c4475a8
GM
7447 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
7448 typically JISX0212.
aca7a3d2
MB
7449
7450 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
7451 when the charset is superset type.
7452
7453 * character.c (translate_char): Accept list of translation tables.
7454
73acf815 74552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7456
1f45f627 7457 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
7458 (CODING_ATTR_TRANS_TBL): New macro.
7459
7460 * coding.c (get_translation_table): New function.
7461 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
7462 (decode_coding, encode_coding): Utilize get_translation_table.
7463 (char_encodable_p, Funencodable_char_position): Translate char if
7464 necessary.
7465 (Ffind_coding_systems_region_internal)
7466 (Fcheck_coding_systems_region): Setup translation table for encode
7467 in a coding system attribute vector in advance.
aca7a3d2
MB
7468 (Fdefine_coding_system_internal): Allow a symbol as translation
7469 table. For shift-jis type coding system, allow 4th charset.
7470
73acf815 74712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7472
7473 * coding.c (decode_coding_sjis): Check the first byte rigidly.
7474
7475 * xdisp.c (get_next_display_element): Pass -1 as POS to
7476 FACE_FOR_CHAR if displaying a C-string.
7477
73acf815 74782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7479
7480 * composite.c (get_composition_id): Handle xoff and yoff in a
7481 composition rule.
7482
7483 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
7484 (struct composition): New member lbearing and rbearing.
7485
7486 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
7487 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 7488 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
7489
7490 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
7491 composition glyph.
7492
73acf815 74932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7494
7495 * print.c: Include charset.h.
7496 (Vprint_charset_text_property): New variable.
7497 (Qdefault): Extern it.
7498 (PRINT_STRING_NON_CHARSET_FOUND)
7499 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
7500 (print_check_string_result): New variable.
7501 (print_check_string_charset_prop): New function.
7502 (print_prune_charset_plist): New variable.
7503 (print_prune_string_charset): New function.
7504 (print_object): Call print_prune_string_charset if
7505 Vprint_charset_text_property is not t.
7506 (print_interval): Print nothing if itnerval->plist is nil.
7507 (syms_of_print): Declare Vprint_charset_text_property as a lisp
7508 variable. Init and staticpro print_prune_charset_plist.
7509
73acf815 75102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7511
7512 * fontset.c (new_fontset_from_font_name): Use the specified font
7513 for all characters in the new fontset.
7514
7515 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7516 OBJECT args.
7517
7518 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
7519 OBJECT args for composition too.
7520
7521 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7522 OBJECT args.
7523
73acf815 75242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7525
7526 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
7527
1f45f627 7528 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 7529 FONT_DEF format.
1f45f627 7530 (fontset_face): New arg id. Change caller.
aca7a3d2 7531 (face_for_char): New args pos and object.
1f204af3 7532 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
7533 (fs_query_fontset): Check NAME by Fassoc too.
7534 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 7535 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 7536
1f45f627 7537 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 7538
4c4475a8
GM
7539 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7540 (append_space, extend_face_to_end_of_line)
7541 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7542 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
7543
7544 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7545 POS and OBJECT args.
7546
7547 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7548 POS and OBJECT args.
7549
73acf815 75502008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7551
7552 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7553 of GlobalAlloc'ed memory.
7554
73acf815 75552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7556
7557 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7558
7559 * charset.h (charset_table_used): Delete extern.
7560
7561 * charset.c (charset_table_used): Make it static.
7562 (map_charset_chars): Fix args to c_function with.
7563
7564 * chartab.c (map_sub_char_table_for_charset): Fix args to
7565 c_function with.
7566
7567 * coding.h (enum coding_result_code): Delete
7568 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7569
7570 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 7571 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
7572 (Vlast_code_conversion_error): New variables.
7573 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7574 (ONE_MORE_BYTE): Record error if any instead of signaling an
7575 error. If non-ASCII multibyte char is found, return the negative
7576 value of the code. All callers changed to check it.
7577 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
7578 (record_conversion_result): New function. Change all codes setting
7579 coding->result to call this function.
4c4475a8
GM
7580 (detect_coding_utf_8, decode_coding_utf_8)
7581 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7582 Don't use the local variable incomplete.
aca7a3d2 7583 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
7584 (decode_coding): Fix of flushing out unprocessed data.
7585 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 7586 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
7587
7588 * fontset.c (set_fontset_font): Fix args.
7589
7590 * lisp.h (CHARACTERBITS): Define as 22.
7591
7592 * process.c (send_process): Be sure to set coding->src_multibyte.
7593
7594 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7595
73acf815 75962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7597
7598 * xdisp.c (handle_auto_composed_prop): Give limit to
7599 Fnext_single_char_property_change.
7600
73acf815 76012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7602
424c157f 7603 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 7604 table weak.
aca7a3d2
MB
7605
7606 * fontset.c (Fset_fontset_font): Fix docstring.
7607
7608 * lisp.h (detect_coding_system): Adjust prototype.
7609
7610 * fileio.c (kill_workbuf_unwind): Delete this function.
7611 (Finsert_file_contents): Adjust the call of detect_coding_system.
7612 Get conversion_buffer by code_conversion_save. Use the macor
7613 CODING_MAY_REQUIRE_DECODING. After decoding, update
7614 coding_system.
7615
7616 * coding.h (make_conversion_work_buffer): Delete extern.
7617 (code_conversion_save): Extern it.
7618
7619 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 7620 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
7621 (decode_coding_utf_8): Don't do eol converion.
7622 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 7623 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
7624 (decode_coding_emacs_mule, decode_coding_iso_2022)
7625 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7626 Don't do eol converion.
aca7a3d2
MB
7627 (adjust_coding_eol_type): Return a new coding system.
7628 (detect_coding): Don't detect eol. Fix for utf-16 detection.
7629 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
7630 each change.
7631 (decode_coding): Pay attention to undo_list. Do eol convesion for
7632 all types of coding-systems (if necessary).
7633 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 7634 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
7635 Vcode_conversion_reused_work_buf.
7636 (Vcode_conversion_workbuf_name): New variable.
7637 (reused_workbuf_in_use): New variable.
7638 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 7639 (code_conversion_restore): Change argument to cons.
1f45f627
GM
7640 (code_conversion_save): Delete the argument BUFFER. Change callers.
7641 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
7642 Fix for utf-16 detection.
7643 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 7644 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
7645 reused_workbuf_in_use.
7646
73acf815 76472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7648
7649 * keymap.c (store_in_keymap): Pay attention to the case that idx
7650 is a cons specifying a character range.
7651
73acf815 76522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7653
7654 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
7655 HANDLED_RECOMPUTE_PROPS.
7656
7657 * coding.c (Fdefine_coding_system_internal): Fix checking of
7658 ascii compatibility.
7659
73acf815 76602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7661
1f45f627 7662 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
7663 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
7664
7665 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
7666 Resync charset_list to Vemacs_mule_charset_list.
7667
7668 * keymap.c (store_in_keymap): Pay attention to the case that idx
7669 is a cons specifying a character range.
7670
73acf815 76712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7672
7673 * composite.c (update_compositions): Bind inhibit-read-only, etc
7674 to t before calling remove-list-of-text-properties.
7675
7676 * print.c (print_object): Always print ASCII chars as is.
7677
73acf815 76782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7679
1f45f627 7680 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 7681
4c4475a8
GM
7682 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
7683 is a char table.
aca7a3d2 7684
73acf815 76852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7686
1f45f627 7687 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 7688
73acf815 76892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7690
7691 * xfaces.c (set_lface_from_font_name): Fix for the case that
7692 FONTNAME is not fontset name.
7693
73acf815 76942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7695
7696 * fns.c (base64_encode_1): Fix previous change.
7697
73acf815 76982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7699
7700 * fontset.c (set_fontset_font): New function.
7701 (Fset_fontset_font): If a font is specified for a charset, use
7702 map_charset_chars to store the font spec in a fontset.
7703
73acf815 77042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7705
1f204af3 7706 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
7707 (make_fontset): Don't create a fallback fontset here.
7708 (free_face_fontset): Free a fallback fontset (if any) too.
7709 (n_auto_fontsets): Delete this variable.
7710 (auto_fontset_alist): New variable.
7711 (new_fontset_from_font_name): Check auto_fontset_alist.
7712 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
7713 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
7714 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
7715 Defsubr Sfontset_list_all.
7716
73acf815 77172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7718
7719 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7720
73acf815 77212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7722
7723 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7724
73acf815 77252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7726
7727 * editfns.c (Fgoto_char): Fix docstring.
7728
73acf815 77292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7730
7731 * insdel.c (insert_from_gap): Adjust intervals correctly.
7732
73acf815 77332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7734
7735 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
7736 (pfnGetFontUnicodeRanges): New dynamically loaded function.
7737 (w32_initialize): Try to load it.
7738 (x_get_font_repertory): Use it if available.
7739 (w32_encode_char): Add shortcut for unicode output.
7740
7741 * w32fns.c (w32_load_system_font): Default charset to -1.
7742 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 7743 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
7744 or wildcard charsets.
7745 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
7746 (w32_codepage_for_font): Return CP_UNICODE for unicode.
7747 (w32_to_x_font): Match charset to real charset.
7748 (enum_font_cb2): Always list unicode versions.
7749
7750 * makefile.w32-in (temacs): Increase EMHEAP.
7751
73acf815 77522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7753
7754 * w32term.c (w32_encode_char): New charset parameter.
7755 font_info.encoding becomes encoding_type.
1f45f627 7756 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
7757 (x_new_font): Return quickly if font already set.
7758 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
7759 Use new fs_query_fontset. Try new_fontset_from_font_name.
7760 Use fontset_name for return value.
aca7a3d2
MB
7761
7762 * w32term.h: Declare x_get_font_repertory.
7763
7764 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 7765 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
7766 of encode_coding.
7767 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7768 decode_coding.
7769
7770 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7771 of x_new_fontset.
7772 (w32_load_system_font): Initialize charset as unicode.
7773 font_info.encoding becomes encoding_type.
1f45f627
GM
7774 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7775 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
7776 (syms_of_w32fns): Set get_font_repertory_func.
7777
1f45f627 7778 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 7779 from term.c.
1f45f627 7780 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
7781 encode_coding_object in place of encode_coding.
7782
7783 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7784 encoding becomes encoding_type.
7785
7786 * term.c (terminal_encode_buffer): Make externally visible.
7787
7788 * makefile.w32-in: Add character.h dependancies.
7789 (character.o, chartab.o): New targets.
7790
73acf815 77912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7792
7793 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 7794 CODING_ID_EOL_TYPE.
aca7a3d2 7795
73acf815 77962008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7797
7798 * coding.c (produce_chars): Revert last change.
7799
73acf815 78002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7801
7802 * charset.h (charset_unicode): Extern it.
7803
7804 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 7805 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 7806 arg MULTIBYTE.
1f45f627 7807 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
7808 change of find_charsets_in_text.
7809 (Fsplit_char): Fix doc. Never return unknown.
7810
7811 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7812
7813 * coding.c (Fdefine_coding_system_alias): Update
7814 Vcoding_system_list.
7815
7816 * fontset.c (load_font_get_repertory): Pay attention to the case
7817 that ENCODING of a font is specified by a char-table.
7818
7819 * xterm.c (x_get_font_repertory): Handle the case that the
7820 encoding of font is other than Unicode.
7821
73acf815 78222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7823
7824 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7825 if a character is encodable by the terminal coding system. If
7826 not, produces proper number of `?'s. Update
7827 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7828 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7829
73acf815 78302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7831
7832 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7833 variables.
1f45f627 7834 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
7835 characters at once. Store the result of encoding in
7836 terminal_encode_buffer.
4c4475a8
GM
7837 (write_glyphs, insert_glyphs): Adjust for the change of
7838 encode_terminal_code.
aca7a3d2
MB
7839 (term_init): Initialize terminal_encode_buffer and
7840 terminal_encode_buf_size.
7841
7842 * coding.c (consume_chars): If coding->src_object is nil, don't
7843 check annotation.
7844
73acf815 78452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7846
7847 * character.c (char_string): Use ASCII_CHAR_P instead of
7848 SINGLE_BYTE_CHAR_P.
7849
73acf815 78502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7851
7852 * xdisp.c (handle_auto_composed_prop): Check if the last
7853 characters of auto-composed region is newly composed with the
7854 following characters.
7855 (handle_composition_prop): Fix checking of point being inside
7856 composition.
7857
73acf815 78582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7859
7860 * fns.c (concat): Don't change multibyteness of the result by
7861 concatenating an 8-bit character.
7862
7863 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7864 multibyteness of the result when newelt is an 8-bit character.
7865
73acf815 78662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7867
7868 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7869 EMACS_INT.
7870
7871 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7872
7873 * xfaces.c (face_numeric_value): Declare dim size_t.
7874 (Finternal_lisp_face_equal_p): Remove unused f.
7875
7876 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7877 (MATRIX_ROW): Remove unused vars.
7878 (draw_glyphs, x_insert_glyphs, fast_find_position)
7879 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7880 byte/char counts.
7881
7882 * regex.c (regex_compile): Remove unused var.
7883
7884 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7885
7886 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7887 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7888
7889 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7890
7891 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7892
7893 * fileio.c (Fwrite_region): Remove unused var.
7894
7895 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7896 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7897
7898 * composite.c (Fremove_list_of_text_properties): Declare.
7899
1f45f627
GM
7900 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7901 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
7902 (coding_inherit_eol_type): Remove unused attrs.
7903 (detect_coding): Cast arg of detect_eol.
7904
7905 * charset.c (syms_of_charset): Remove unused var p.
7906 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7907 byte/char counts.
7908
7909 * casetab.c (set_case_table): Remove unused var.
7910
7911 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 7912 unused vars.
aca7a3d2 7913
73acf815 79142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7915
7916 * xterm.c (x_bitmap_mask): Declare.
7917
73acf815 79182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7919
7920 * xterm.c (x_term_init): Fix type error.
7921
7922 * lisp.h: Add Funibyte_char_to_multibyte.
7923
7924 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7925 (Fset_coding_system_priority): Doc fix.
7926
aca7a3d2
MB
7927 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7928
7929 * indent.c (check_composition): Make start and end EMACS_INT.
7930
7931 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7932
7933 * xdisp.c (handle_composition_prop, check_point_in_composition):
7934 Make buffer positions EMACS_INT.
7935
7936 * composite.c (find_composition, run_composition_function)
7937 (update_compositions, Ffind_composition_internal): Make buffer
7938 positions EMACS_INT.
7939
7940 * composite.h (find_composition, update_compositions): Make
7941 position args EMACS_INT.
7942
1f45f627 7943 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
7944
7945 * intervals.c (get_property_and_range):
7946 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7947
7948 * unexalpha.c: Don't include varargs.h.
7949
73acf815 79502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7951
7952 * coding.h (ENCODE_UTF_8): New.
7953
7954 * Makefile.in (gtkutil.o): Depend on coding.h.
7955
7956 * coding.c (Fset_coding_system_priority): Doc fix.
7957
73acf815 79582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7959
7960 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7961 the case of auto saving.
7962
73acf815 79632008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 7964
4c4475a8
GM
7965 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7966 `range' from GC.
aca7a3d2 7967
73acf815 79682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7969
7970 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7971
73acf815 79722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7973
1f45f627 7974 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
7975 (Fwrite_region): Set Vlast_coding_system_used to the return value
7976 of choose_write_coding_system.
7977
73acf815 79782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7979
7980 * charset.c (Fset_charset_priority): Pay attention to duplicated
7981 arguments.
7982
7983 * coding.c (QCcategory): New variable.
7984 (syms_of_coding): Defsym it. Set all elements of
7985 Vcoding_category_table and their symbol values.
7986 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7987 coding-category-XXX, and coding-category-list.
7988 (Fdefine_coding_system_internal): Add category in the plist.
7989
73acf815 79902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7991
7992 * callproc.c (Fcall_process): Handle carryover correctly.
7993
1f45f627 7994 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
7995 (raw_text_coding_system): Check NILP (coding_system).
7996 (coding_inherit_eol_type): Check NILP (coding_system) and
7997 NILP (parent).
7998 (consume_chars): Fix for the case of raw-text.
7999
8000 * process.c (read_process_output): Handle carryover correctly.
8001
73acf815 80022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8003
8004 * regex.c (re_search_2): Fix last change.
8005
73acf815 80062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8007
8008 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8009 target_multibyte. Even in a unibyte case, return a converted
8010 multibyte char.
8011 (GET_CHAR_AFTER): New macro.
8012 (PATFETCH): Translate via multibyte char.
8013 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8014 (SETUP_MULTIBYTE_RANGE): New macro.
8015 (regex_compile): Setup compiled code so that its multibyteness
8016 matches that of a target. Fix the handling of "[X-YZ]" using
8017 SETUP_MULTIBYTE_RANGE.
8018 (analyse_first) <charset>: For filling fastmap for all multibyte
8019 characters, don't check by BASE_LEADING_CODE_P.
8020 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
8021 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 8022 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
8023 (TARGET_CHAR_AND_LENGTH): Delete this macro.
8024 (TRANSLATE_VIA_MULTIBYTE): New macro.
8025 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8026 It is the same as RE_MULTIBYTE_P (bufp) now.
8027 <exactn>: Translate via multibyte.
8028 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
8029 translate it.
8030 <charset, charset_not>: Fetch a character by
8031 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
8032 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8033 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8034 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8035 by GET_CHAR_AFTER.
c5ad7a3d 8036 (bcmp_translate): Likewise.
aca7a3d2
MB
8037
8038 * search.c (compile_pattern): Check the member target_multibyte,
8039 not the member multibyte of buf.
8040
8041 * lread.c (read1): While reading a string, set force_singlebyte
8042 and force_multibyte correctly.
8043
4c4475a8
GM
8044 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8045 up of unibyte_to_multibyte_table.
aca7a3d2 8046
73acf815 80472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8048
8049 * coding.c (setup_coding_system): If coding has
8050 post-read-conversion or pre-write-conversion, set
8051 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
8052 respectively.
8053 (decode_coding_gap): Run post-read-conversion if any.
8054
8055 * fileio.c (Finsert_file_contents): Even if we read into a
8056 unibyte buffer, check if we must decode the result or not.
8057
73acf815 80582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8059
8060 * coding.c (make_conversion_work_buffer): Change the work buffer
8061 name to the same one as that of Emacs 21.
8062
73acf815 80632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8064
1f45f627 8065 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
8066 (code_conversion_restore): Don't extern it.
8067
8068 * coding.c (detected_mask): Delete unused variable.
8069 (decode_coding_iso_2022): Pay attention to the byte sequence of
8070 CTEXT extended segment, and retain those bytes as is.
8071 (decode_coding_ccl): Delete unused variable `valids'.
8072 (setup_coding_system): Delete unused variable `category'.
8073 (consume_chars): Delete unused variable `category'. Make it work
8074 for non-multibyte case.
1f45f627 8075 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
8076 (saved_coding): Delete unused variable.
8077 (code_conversion_restore): Don't check saved_coding->destination.
8078 (code_conversion_save): New function.
8079 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
8080 instead of record_unwind_protect.
1f45f627 8081 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 8082 (detect_coding_system): Delete unused variable `mask'.
1f45f627 8083 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
8084
8085 * fileio.c (kill_workbuf_unwind): New function.
8086 (Finsert_file_contents): On replacing, call
8087 make_conversion_work_buffer with correct args, and call
8088 record_unwind_protect with the first arg kill_workbuf_unwind.
8089
8090 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
8091
73acf815 80922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8093
1f45f627 8094 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
8095 (fontset_add): Fix for the case that TO is less than TO1.
8096 (Ffontset_info): Don't use fallback fontset on checking the
8097 default fontset.
8098 (dump_fontset): New function for debugging.
8099
8100 * coding.c (Fdefine_coding_system_internal): Fix for the case that
8101 coding_type is Qcharset.
8102
73acf815 81032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8104
8105 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
8106 (map_char_table): Don't inherit the value from the parent on
1f45f627 8107 initializing VAL. Adjust for the above change.
aca7a3d2 8108
73acf815 81092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8110
8111 * coding.c (Qsignature, Qendian): Delete these variables.
8112 (syms_of_coding): Don't initialize them.
8113 (CATEGORY_MASK_UTF_16_AUTO): New macro.
8114 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
8115 detect_info->found.
8116 (decode_coding_utf_16): Don't detect BOM here.
8117 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
8118 is NOT utf_16_without_bom.
8119 (setup_coding_system): For a coding system of type utf-16, check
8120 if the attribute :endian is Qbig or not (not nil or not), and set
8121 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
8122 (detect_coding): If coding type is utf-16 and BOM detection is
8123 required, detect it.
8124 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 8125 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 8126
73acf815 81272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8128
8129 * coding.c (coding_set_source): Fix for the case that the current
8130 buffer is different from coding->src_object.
8131 (decode_coding_object): Don't use the conversion work buffer if
8132 DST_OBJECT is a buffer.
8133
73acf815 81342008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8135
8136 * lread.c (read_emacs_mule_char) [len==2]: Index
8137 emacs_mule_charset correctly.
8138
73acf815 81392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8140
8141 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
8142 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 8143 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
8144 treated specially.)
8145 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
8146 (detected_mask): Remove Big5 bits.
8147
73acf815 81482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8149
8150 The following changes are to make the font rescaling facility
8151 compatible with Emacs 21.
8152
1f45f627 8153 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
8154 Vface_resizing_fonts.
8155 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 8156 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
8157 (split_font_name): Set font->rescale_ratio.
8158 (better_font_p): Pay attention to font->rescale_ratio.
8159 (build_scalable_font_name): Likewise. Change RESX, and RESY
8160 fields.
1f45f627 8161 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 8162
73acf815 81632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8164
8165 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
8166 (Qutf_16_le): Remove these variables.
8167 (syms_of_coding): Don't DEFSYM them.
8168 (decode_coding_utf_16): Fix handling of BOM.
8169 (encode_coding_utf_16): Fix handling of BOM.
8170
73acf815 81712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8172
8173 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 8174 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 8175
73acf815 81762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8177
8178 * coding.c (Fcheck_coding_systems_region): Fix type errors.
8179
73acf815 81802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8181
8182 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8183 and fix C types.
8184
73acf815 81852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8186
8187 * xdisp.c (SKIP_GLYPHS): New macro.
8188 (set_cursor_from_row): Pay attention to string display properties.
8189
8190 * category.c (copy_category_entry): Fix for the case that RANGE
8191 is an integer.
8192
8193 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
8194
1f45f627 8195 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 8196
73acf815 81972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8198
8199 * charset.c (Fcharset_id_internal): New function.
8200 (syms_of_charset): Defsubr it.
8201
8202 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
8203 with the last arg charset_list acquired from coding.
8204 (Fdefine_coding_system_internal): For ccl-based coding system, fix
8205 the attribute coding_attr_ccl_valids.
8206
8207 * coding.h (enum define_coding_ccl_arg_index): Set the first
8208 member coding_arg_ccl_decoder to coding_arg_max.
8209
1f45f627 8210 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
8211
8212 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
8213 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
8214 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
8215 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
8216 last arg Qnil.
aca7a3d2 8217
73acf815 82182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8219
8220 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
8221 call encode_char.
8222
1f45f627 8223 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 8224
73acf815 82252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8226
1f45f627 8227 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 8228
73acf815 82292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8230
8231 * dispextern.h (check_face_attributes, generate_ascii_font_name)
8232 (font_name_registry): Don't extern them.
1f45f627 8233 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
8234
8235 * fontset.h (Qfontset): Don't extern it.
8236 (new_fontset_from_font_name): Extern it.
8237
8238 * fontset.c: Give 8 extra slots to fontset objects.
8239 (Qfontset_info): New variable.
8240 (syms_of_fontset): Defsym it.
8241 (FONTSET_FALLBACK): New macro.
8242 (fontset_face): Try also the default fontset.
1f45f627
GM
8243 (make_fontset): Realize a fallback fontset from the default fontset.
8244 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
8245 using split_font_name_into_vector and build_font_name_from_vector.
8246 (Fset_fontset_font): Access the elements of font_spec by enum
8247 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
8248 name by using split_font_name_into_vector.
8249 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8250 generate a proper font name from the fontset name. Update
8251 Vfontset_alias_alist.
8252 (n_auto_fontsets): New variable.
8253 (new_fontset_from_font_name): New function.
8254 (Ffont_info): Store the information about fonts generated from the
1f45f627 8255 default fontset in the first extra slot of the returned char-table.
aca7a3d2 8256
1f45f627
GM
8257 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
8258 (font_name_registry): Delete function.
aca7a3d2
MB
8259 (split_font_name_into_vector): New function.
8260 (build_font_name_from_vector): New function.
1f45f627 8261 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
8262 (choose_face_font): If we are choosing an ASCII font, and ATTRS
8263 specifies an explicit font name, return the name as is. Make a
8264 list of registy names.
8265
1f45f627 8266 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
8267 of x_new_fontset.
8268 (Fx_create_frame): Don't call x_new_fontset here. Just use
8269 x_list_fonts to check the existence of fonts.
8270
1f45f627 8271 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
8272
8273 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
8274 string. Use new_fontset_from_font_name to create a fontset from a
8275 font name.
8276
1c8658b9
GM
82772008-02-01 Kenichi Handa <handa@m17n.org>
8278
8279 * syntax.c (Vfind_word_boundary_function_table): New name for
8280 Vnext_word_boundary_function_table.
8281 (find-word-boundary-function-table): New name for
8282 next-word-boundary-function-table.
8283
73acf815 82842008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8285
8286 * Makefile.in: Fix some dependencies.
8287
8288 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
8289 set it to nil before returning.
8290
8291 * composite.c (update_compositions): Fix type error.
8292
8293 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
8294
73acf815 82952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8296
8297 * xterm.c (x_new_font): Optimize for the case that the font is
8298 already set for the frame.
8299
73acf815 83002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8301
8302 * chartab.c (char_table_ascii): Check if the char table contents
8303 is sub-char-table or not.
4c4475a8
GM
8304 (char_table_set, char_table_set_range): Fix argument to
8305 char_table_ascii.
aca7a3d2
MB
8306
8307 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
8308 (detect_coding_utf_8, detect_coding_utf_16)
8309 (detect_coding_emacs_mule, detect_coding_iso_2022)
8310 (detect_coding_sjis, detect_coding_big5)
8311 (detect_coding_ccl, detect_coding_charset): Change argument MASK
8312 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 8313 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
8314 (MAX_ANNOTATION_LENGTH): New macro.
8315 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
8316 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
8317 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 8318 (ADD_CHARSET_DATA): New macro.
1f45f627 8319 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
8320 (decode_coding_emacs_mule, decode_coding_iso_2022)
8321 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8322 Produce charset annotation data in coding->charbuf.
8323 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
8324 to charset annotation data in coding->charbuf.
8325 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
8326 coding->common_flags if the coding system is iso-2022 based and
8327 uses designation.
1f45f627 8328 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
8329 (produce_charset): New function.
8330 (produce_annotation): Handle charset annotation.
8331 (handle_composition_annotation, handle_charset_annotation): New
8332 functions.
8333 (consume_chars): Handle charset annotation. Utilize the above two
8334 functions.
8335 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
8336 buffer, get the deleted text as a string and set
8337 coding->src_object to that string.
8338 (detect_coding, detect_coding_system): Use the new struct
8339 coding_detection_info.
8340
8341 * coding.h (struct coding_detection_info): New structure.
1f45f627 8342 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
8343 (CODING_ANNOTATE_CHARSET_MASK): New macro.
8344
73acf815 83452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8346
8347 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
8348
73acf815 83492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8350
1f45f627 8351 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
8352 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
8353 to new local and nullify apropos_accumulate before returning.
8354 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
8355
73acf815 83562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8357
8358 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
8359 correctly.
8360
73acf815 83612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8362
8363 * fns.c (Flanginfo): Call synchronize_system_time_locale.
8364
73acf815 83652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8366
8367 The following changes are to make character composition happen
8368 automatically on displaying.
8369
2a2e8de7 8370 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 8371
1f45f627
GM
8372 * composite.h (Qauto_composed, Vauto_composition_function)
8373 (Qauto_composition_function): Extern them.
aca7a3d2 8374
1f45f627
GM
8375 * composite.c (Vcomposition_function_table)
8376 (Qcomposition_function_table): Delete variables.
8377 (Qauto_composed, Vauto_composition_function)
8378 (Qauto_composition_function): New variables.
aca7a3d2
MB
8379 (run_composition_function): Don't call
8380 compose-chars-after-function.
8381 (update_compositions): Clear `auto-composed' text property.
8382 (compose_chars_in_text): Delete this function.
8383 (syms_of_composite): Staticpro Qauto_composed and
8384 Qauto_composition_function. Declare Vauto_composition_function as
8385 a Lisp variable.
8386
8387 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
8388
8389 * xdisp.c (it_props): Add an entry for Qauto_composed.
8390 (handle_auto_composed_prop): New function.
8391
8392 * xselect.c (selection_data_to_lisp_data): Don't call
8393 compose_chars_in_text.
8394
73acf815 83952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8396
8397 * keyboard.c (read_char): Modify checking around use of
8398 Vkeyboard_translate_table.
8399
8400 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8401 and fix C types.
8402
73acf815 84032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8404
4c4475a8
GM
8405 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
8406 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8407 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 8408 the case that the last byte is '\r' correctly.
1f45f627
GM
8409 (decode_coding): Flush out the unprocessed data correctly.
8410 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 8411
73acf815 84122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8413
f245f2c6
JB
8414 * xterm.c (XTread_socket): Fix changes for defined keysyms.
8415 Add XK_ISO... case.
aca7a3d2
MB
8416 (xaw_scroll_callback): Revert last change.
8417
73acf815 84182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8419
1f45f627 8420 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 8421
73acf815 84222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8423
8424 * xfaces.c (Vface_resizing_fonts): New variable.
8425 (struct font_name): New member `resizing_ratio'.
8426 (font_resizing_ratio): New function.
8427 (split_font_name): Set font->resizing_ratio.
8428 (better_font_p): Pay attention to font->resizing_ratio.
8429 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
8430 RESX, and RESY fields.
8431 (try_alternative_families): Try scalable fonts if
8432 Vscalable_fonts_allowed is not Qt.
8433 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
8434
73acf815 84352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8436
8437 * xterm.c (xaw_scroll_callback): Cast correctly.
8438
73acf815 84392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8440
8441 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
8442 (lispy_kana_keys): Comment out.
8443 (make_lispy_event) [XK_kana_A]: Comment out.
8444
8445 * xterm.c (xaw_scroll_callback): Cast call_data.
8446 (XTread_socket): Deal with ASCII keysyms.
8447 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
8448
73acf815 84492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8450
8451 * xterm.c (Vx_keysym_table): New.
8452 (syms_of_xterm): Initialize it.
8453 (XTread_socket): Use it.
8454 From head: Eliminate incorrect optimization that tried to avoid
8455 decoding the output of X*LookupString.
8456 (x_get_font_repertory): Delete charset declaration.
8457
73acf815 84582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8459
1f45f627
GM
8460 * coding.c (detect_coding_charset): If only ASCII bytes are found,
8461 return 0.
aca7a3d2
MB
8462 (Fdefine_coding_system_internal): Setup
8463 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
8464
73acf815 84652008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8466
8467 * coding.c (Fcheck_coding_system): Doc fix.
8468
8469 * editfns.c (Finsert_byte): Return a proper value.
8470
73acf815 84712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8472
8473 * coding.c (decode_coding): Fix args to translate_chars. Pay
8474 attention to Vstandard_translation_table_for_decode.
8475 (encode_coding): Fix args to translate_chars. Pay attention to
8476 Vstandard_translation_table_for_encode.
8477
8478 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
8479 SINGLE_BYTE_CHAR_P.
8480
8481 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
8482 not by SINGLE_BYTE_CHAR_P.
8483
8484 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
8485 SINGLE_BYTE_CHAR_P.
8486
8487 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
8488 SINGLE_BYTE_CHAR_P.
8489
8490 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
8491 by SINGLE_BYTE_CHAR_P.
8492
8493 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
8494 SINGLE_BYTE_CHAR_P.
8495
73acf815 84962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8497
8498 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
8499
73acf815 85002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8501
8502 * fns.c (Flanginfo): Fix typo.
8503
8504 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
8505
73acf815 85062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8507
4c4475a8
GM
8508 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
8509 (detect_coding_emacs_mule, detect_coding_iso_2022)
8510 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
8511 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 8512 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 8513 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 8514 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 8515
73acf815 85162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8517
1f45f627
GM
8518 * character.c (char_string): Rename from
8519 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
8520 (string_char): Rename from string_char.
aca7a3d2 8521
4c4475a8
GM
8522 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
8523 if C is greater than MAX_3_BYTE_CHAR.
8524 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
8525 string_char instead of string_char_with_unification.
aca7a3d2 8526
73acf815 85272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8528
8529 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8530
73acf815 85312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8532
1f45f627 8533 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
8534
8535 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8536
73acf815 85372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8538
8539 * charset.c (define_charset_internal): Rename `supprementary'.
8540
8541 * Makefile.in (lisp, shortlisp): Remove latin-N.
8542
73acf815 85432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8544
8545 * xfns.c (x_window, x_window): Use use_xim.
8546
8547 * xterm.c (use_xim): Initialize.
8548 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8549 (x_term_init): Maybe set use_xim.
8550
8551 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8552
73acf815 85532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8554
8555 * search.c (search_buffer): Fix case-fold-search of multibyte
8556 characters.
8557 (boyer_moore): Rename the last argument to char_high_bits.
8558
73acf815 85592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8560
8561 * xdisp.c (display_string): Fix for the case of zero width glyph.
8562
8563 * xfns.c (x_set_font): Change the error message of the case that
8564 x_new_fontset returns Qt.
8565
8566 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8567 (Finternal_set_lisp_face_attribute): Use signal_error for the
8568 error of invalid fontset.
8569
8570 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8571 fontset, return Qt.
8572
73acf815 85732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8574
aca7a3d2
MB
8575 * unexelf.c (unexec): Make .got handling not SGI-specific.
8576
8577 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8578
8579 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8580
8581 * keyboard.c (read_key_sequence): Fix type error.
8582
8583 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8584 type error.
8585
8586 * fontset.c (fontset_add): Return Lisp_Object.
8587
73acf815 85882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8589
8590 * charset.h (charset_ordered_list_tick): Declare extern.
8591
73acf815 85922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8593
73acf815 8594 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
8595 for handling syntax, category, and case conversion for unibyte
8596 characters by converting them to multibyte on the fly. With these
8597 changes, we don't have to setup syntax and case tables for unibyte
8598 characters in each language environment.
8599
8600 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
8601 multibyte if necessary.
8602
8603 * bytecode.c (Fbyte_code): Likewise.
8604
8605 * character.h (LEADING_CODE_LATIN_1_MIN)
8606 (LEADING_CODE_LATIN_1_MAX): New macros.
8607 (unibyte_to_multibyte_table): Extern it.
8608 (unibyte_char_to_multibyte): New macro.
8609 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
8610 (CHAR_LEADING_CODE): New macro.
8611 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
8612
8613 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 8614 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
8615 (multibyte_char_to_unibyte): If C is an eight-bit character,
8616 convert it to the corresponding byte value.
8617
8618 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
8619 not 1, singals an error. Update the elements of
8620 unibyte_to_multibyte_table.
8621 (init_charset_once): Initialize unibyte_to_multibyte_table.
8622 (syms_of_charset): Define the charset `iso-8859-1'.
8623
aca7a3d2
MB
8624 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
8625 as is without converting it to unibyte. In a unibyte buffer,
8626 convert C to multibyte before checking the syntax.
8627
1f45f627 8628 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
8629
8630 * minibuf.c (Fminibuffer_complete_word): Use the macro
8631 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
8632
8633 * regex.h (struct re_pattern_buffer): New member target_multibyte.
8634
8635 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
8636 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
8637 that is zero, convert an eight-bit char to multibyte.
8638 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
8639 non-emacs case.
8640 (PATFETCH): Convert an eight-bit char to multibyte.
8641 (HANDLE_UNIBYTE_RANGE): New macro.
8642 (regex_compile): Setup the compiled pattern for multibyte chars
8643 even if the given regex string is unibyte. Use PATFETCH_RAW
8644 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 8645 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 8646 only for ASCII chars.
1f45f627 8647 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
8648 is multibyte.
8649 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
8650 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 8651 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
8652 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
8653 multibyte always 1.
8654 (re_search_2): In emacs, set the locale variable multibyte to 1,
8655 otherwise to 0. New local variable target_multibyte. Check it
8656 to decide the multibyteness of STR1 and STR2. If
8657 target_multibyte is zero, convert unibyte chars to multibyte
8658 before translating and checking fastmap.
8659 (TARGET_CHAR_AND_LENGTH): New macro.
8660 (re_match_2_internal): In emacs, set the locale variable multibyte
8661 to 1, otherwise to 0. New local variable target_multibyte. Check
8662 it to decide the multibyteness of STR1 and STR2. Use
8663 TARGET_CHAR_AND_LENGTH to fetch a character from D.
8664 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 8665 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
8666 target_multibyte, not with multibyte.
8667 <begline>: Declare the local variable C as `unsigned'.
8668 (bcmp_translate): Change the last arg name to target_multibyte.
8669
8670 * search.c (compile_pattern_1): Don't adjust the multibyteness of
8671 the regexp pattern and the matching target. Set cp->buf.multibyte
8672 to the multibyteness of the regexp pattern. Set
1f45f627 8673 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
8674 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
8675 FETCH_STRING_CHAR_ADVANCE.
8676 (Freplace_match): Convert unibyte chars to multibyte.
8677
4c4475a8
GM
8678 * syntax.c (char_quoted, back_comment, scan_words)
8679 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
8680 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 8681 unibyte chars to multibyte.
1f45f627
GM
8682 (skip_chars): Delete the arg syntaxp, and move the code for
8683 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
8684 Fix the case that the multibyteness of STRING and the current
8685 buffer doesn't match.
8686 (skip_syntaxes): New function.
8687 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
8688 SINGLE_BYTE_CHAR_P.
aca7a3d2 8689
73acf815 86902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8691
8692 * xfaces.c (QCfontset): New variable.
8693 (LFACE_FONTSET): New macro.
8694 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
8695 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
8696 (Finternal_set_lisp_face_attribute)
8697 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
8698 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
8699 check also LFACE_FONTSET_INDEX.
8700 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
8701 attrs[LFACE_FONT_INDEX].
8702 (syms_of_xfaces): Intern and staticpro QCfontset.
8703
8704 * dispextern.h (enum lface_attribute_index): New member
8705 LFACE_FONTSET_INDEX.
8706
8707 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
8708
73acf815 87092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8710
8711 * coding.c (coding_set_destination): Fix coding->destination for
8712 the case converting a region.
8713 (encode_coding_utf_8): Encode eight-bit chars as single byte.
8714 (encode_coding_object): Fix coding->dst_pos and
8715 coding->dst_pos_byte for the case converting a region.
8716
8717 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8718
8719 * character.h (BYTE8_STRING): New macro.
8720
8721 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8722
73acf815 87232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8724
8725 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8726 characters by octal form.
8727
8728 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8729
1f45f627 8730 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
8731 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
8732 _fetch_multibyte_char_len.
aca7a3d2
MB
8733 (FETCH_CHAR_AS_MULTIBYTE): New macro.
8734
1f45f627 8735 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 8736
1f45f627 8737 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 8738 the case conversion change the byte length.
1f45f627 8739 (casify_region): Likewise.
aca7a3d2 8740
1f45f627 8741 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 8742
1f45f627 8743 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
8744 (syms_of_character): Setup Vprintable_chars.
8745
8746 * editfns.c (Fchar_equal): Fix for the unibyte case.
8747 (Finsert_byte): New function.
8748 (syms_of_editfns): Defsubr it.
8749
8750 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
8751 of direct code 0x3ffff.
8752
8753 * search.c (Freplace_match): Fix for the unibyte case.
8754
73acf815 87552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8756
8757 * lread.c (safe_to_load_p): Fix the logic.
8758
8759 * syntax.c (scan_words): Don't treat characters belonging to
8760 different scripts as constituting a word.
8761
8762 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8763
1f45f627 8764 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
8765
8766 * emacs.c (main): In the case of --unibyte, instead of aborting on
8767 finding non-empty buffer, make it unibyte.
8768
73acf815 87692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8770
8771 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8772 to create a fontset.
8773
73acf815 87742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8775
8776 * character.c (Funibyte_char_to_multibyte): Doc fix.
8777
8778 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8779
73acf815 87802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8781
8782 * fontset.c (fontset_add): Make the type `int'.
8783 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8784
4c4475a8
GM
8785 * character.c (unibyte_char_to_multibyte)
8786 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 8787 charset_unibyte, not charset_primary.
aca7a3d2 8788
1f45f627 8789 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 8790
1f45f627
GM
8791 * charset.c (charset_unibyte): Rename from charset_primary.
8792 (Funibyte_charset): Rename from Fprimary_charset.
8793 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8794 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
8795
8796 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8797 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8798 it->multibyte_p is zero.
8799
8800 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 8801 Delete extern.
aca7a3d2 8802
73acf815 88032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8804
8805 * coding.c (Fdefine_coding_system_internal): Fix category setting
8806 for a coding system of type iso-2022.
8807
73acf815 88082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8809
1f45f627 8810 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 8811
73acf815 88122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8813
8814 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
8815 (next-word-boundary-function-table): Declare it as a Lisp variable
8816 in syms_of_syntax.
aca7a3d2
MB
8817 (scan_words): Call functions in Vnext_word_boundary_function_table
8818 if any.
8819
8820 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8821
8822 * fontset.c (fs_load_font): If fontp->charset is not negative,
8823 return fontp without setting its members.
8824
73acf815 88252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8826
aca7a3d2
MB
8827 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8828
8829 * m/sparc.h (HAVE_ALLOCA): Delete.
8830
8831 * s/irix6-5.h: Don't include strings.h.
8832 (bcopy, bzero, bcmp): Don't undef.
8833
8834 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8835
8836 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8837 (TIOCSIGSEND): Don't test IRIX6.
8838 (bcopy, bzero, bcmp): Define conditionally.
8839
73acf815 88402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8841
8842 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 8843 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
8844 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8845
8846 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8847 we are inserting a process output into a multibyte buffer.
8848
8849 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8850 multibyte_char_to_unibyte.
8851
8852 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8853 by the primary charset, make it eight-bit char.
8854 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8855
1f45f627
GM
8856 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8857 (charset_8_bit__control, charset_8_bit_graphic)
8858 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
8859 (define_charset_internal): New function.
8860 (syms_of_charset): Call define_charset_internal for pre-defined
8861 charsets.
8862
8863 * charset.h (charset_8_bit): Extern it.
8864
1f45f627 8865 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
8866 of Fset_buffer_multibyte.
8867 (encode_coding_raw_text): Increment p0 in the loop.
8868
1f45f627 8869 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 8870
1f45f627 8871 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
8872 for the change of Fset_buffer_multibyte.
8873
8874 * fns.c (Fstring_to_multibyte): New function.
8875 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8876
73acf815 88772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8878
8879 * xfns.c (x_put_x_image): Declare args.
8880
1f45f627 8881 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
8882 (try_font_list): Declare an arg.
8883
8884 * xdisp.c (message2_nolog, set_message): Declare an arg.
8885
8886 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8887
8888 * syntax.c (scan_sexps_forward): Declare an arg.
8889
8890 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8891 Declare an arg.
8892
8893 * lisp.h (Fnew_fontset): Declare.
8894
8895 * keymap.c (push_key_description): Call CHARACTERP correctly.
8896
1f45f627 8897 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
8898 (face_for_char): Delete unused vars.
8899 (Fset_fontset_font): Doc fix. Delete unused vars.
8900
8901 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8902
8903 * composite.c (update_compositions): Declare arg.
8904
8905 * cm.c (calccost, cmgoto): Declare args.
8906
8907 * charset.c: Remove `emacs' conditional. Doc fixes.
8908 (map_char_table_for_charset): Declare.
8909
1f45f627 8910 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 8911
1f45f627 8912 * ccl.c: Remove `emacs' conditional.
aca7a3d2 8913
73acf815 89142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8915
8916 The following changes are to allow specifying multiple font
8917 patterns for a character range (specified by script or charset).
8918
8919 * Makefile.in (abbrev.o): Depend on syntax.h.
8920 (xfaces.o): Depend on charset.h.
8921
8922 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8923 SINGLE_BYTE_CHAR_P.
8924
8925 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8926
8927 * character.h (Vchar_script_table): Extern it.
8928
1f45f627 8929 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
8930 (Vchar_script_table, Qchar_script_table): New variable.
8931 (syms_of_character): Declare Vchar_script_table as a lisp variable
8932 and initialize it.
8933
1f45f627 8934 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
8935 have property char-table-extra-slots, make no extra slot.
8936
1f45f627 8937 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
8938 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8939 SINGLE_BYTE_CHAR_P.
1f45f627
GM
8940 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8941 Add prototypes.
8942 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8943 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
8944
8945 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 8946 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
8947 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8948
8949 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 8950 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
8951 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8952 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8953 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8954 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8955 (load_font_get_repertory): New functions.
1f45f627 8956 (fontset_set): Delete.
aca7a3d2 8957 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 8958 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
8959 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8960 (face_for_char): Don't call lookup_face.
8961 (make_fontset_for_ascii_face): New arg FACE.
8962 (fs_load_font): New arg CHARSET_ID. Don't check
8963 Vfont_encoding_alist here.
8964 (find_font_encoding): New function.
8965 (list_fontsets): Use STRINGP, not ! NILP.
8966 (accumulate_script_ranges): New function.
8967 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8968 re-written to handle new fontset structure.
8969 (Ffontset_font): Return a copy of element.
8970 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8971 docstring of font-encoding-alist.
8972
8973 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8974 (Fset_fotset_font): Fix arguments to 5.
8975
1f45f627 8976 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
8977
8978 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8979 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 8980 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
8981 lookup_named_face.
8982
8983 * xfaces.c: Include charset.h.
1f45f627
GM
8984 (load_face_font): Delete argument C. Change caller.
8985 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
8986 (font_name_registry): New function.
8987 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 8988 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
8989 Lookup only ascii faces.
8990 (lookup_non_ascii_face): New function.
1f45f627
GM
8991 (lookup_named_face): Delete argument C. Change caller.
8992 (lookup_derived_face): Delete argument C. Change caller.
8993 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 8994 a string, just call font_list with it.
1f45f627
GM
8995 (choose_face_font): Delete arguments FACE and C. New arg
8996 FONT_SPEC. Change caller.
4c4475a8
GM
8997 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8998 Change caller.
aca7a3d2
MB
8999 (realize_non_ascii_face): New function.
9000 (realize_x_face): Call load_face_font here.
1f45f627 9001 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
9002 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9003 get a face ID.
9004 (dump_realized_face): Don't print charset of FACE.
9005
9006 * xfns.c (x_set_font): Always call x_new_fontset and
9007 store_frame_parameter.
9008 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 9009 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
9010
9011 * xterm.h (x_get_font_repertory): Extern it.
9012
9013 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9014 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9015 it->multibyte_p is zero.
9016 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9017 (x_new_fontset): If FONTSETNAME doesn't match any existing
9018 fontsets, create a new one.
9019 (x_get_font_repertory): New function.
9020
73acf815 90212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9022
9023 * coding.c (Ffind_coding_systems_region_internal): Detect an
9024 ASCII only string correctly.
9025
9026 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9027 version is 0.
9028
73acf815 90292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9030
9031 * lread.c: Include "coding.h".
1f45f627
GM
9032 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9033 (load_each_byte, unread_char): New variables.
9034 (readchar_backlog): Delete.
aca7a3d2
MB
9035 (readchar): Return a character unless load_each_byte is nonzero.
9036 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9037 cons. If unread_char is not -1, simply return it.
9038 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
9039 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
9040 (read_multibyte): Delete.
aca7a3d2
MB
9041 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9042 (read_emacs_mule_char): New functions.
9043 (Fload): Even if the file doesn't have the extention ".elc", if
9044 safe_to_load_p returns a positive version number, assume that the
9045 file contains bytecompiled code. If the version is less than 22,
9046 load the file while decoding multibyte sequences by emacs-mule.
9047 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
9048 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
9049 (Fread_from_string): Pay attention to the case that STREAM is a cons.
9050 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
9051 (read1): Set load_each_byte to 1 temporarily while handling
9052 #@NUMBER. Don't call read_multibyte.
9053 (read_vector): Call Fread with a cons. If readcharfun is
9054 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 9055 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
9056 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
9057 and Qload_force_doc_strings.
9058
73acf815 90592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9060
9061 * xdisp.c (face_before_or_after_it_pos): Call
9062 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9063
73acf815 90642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9065
9066 * character.h (TRAILING_CODE_P): New macro.
1f45f627 9067 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
9068 (string_char_with_unification): Fix prototype.
9069 (Vscript_alist): Extern it.
9070
9071 * character.c (Vscript_alist): New variable.
4c4475a8
GM
9072 (string_char_with_unification, str_as_unibyte)
9073 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
9074 (syms_of_character): Declare script-alist as a Lisp variable.
9075
9076 * charset.h (Vcharset_ordered_list): Extern it.
9077 (charset_ordered_list_tick): Extern it.
9078 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
9079 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
9080 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 9081 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 9082 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
9083
9084 * charset.c (charset_ordered_list_tick): New variable.
9085 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
9086 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
9087 deunify intead of unify a charset.
9088 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
9089 (find_charsets_in_text): Add `const' to arguemnts and local variables.
9090 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
9091 detecting of invalid code.
9092 (Fset_charset_priority): Increment charset_ordered_list_tick.
9093 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
9094 and TO_CODE.
9095
9096 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
9097 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
9098 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
9099 (decode_coding_ccl, consume_chars)
9100 (Ffind_coding_systems_region_internal)
9101 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
9102
9103 * print.c (print_object): Use octal form for printing the
9104 contents of a bool vector.
9105
73acf815 91062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9107
9108 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
9109 <version == 20>: Refuse to load.
9110
73acf815 91112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9112
9113 * fns.c: Move coding.h.
9114 (Qcodeset, Qdays, Qmonths): New.
9115 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 9116 (Flocale_codeset): Delete.
aca7a3d2 9117 (Flanginfo): New function.
1f45f627 9118 (syms_of_fns): Change accordingly.
aca7a3d2
MB
9119
9120 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
9121
73acf815 91222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9123
9124 * casetab.c (init_casetab_once, init_casetab_once): Fix
9125 CHAR_TABLE_SET call.
9126
9127 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
9128
9129 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
9130
9131 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
9132 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
9133 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
9134
9135 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
9136
9137 * coding.c (ENCODE_DESIGNATION, decode_eol)
9138 (make_conversion_work_buffer, code_conversion_restore)
9139 (Fdefine_coding_system_internal): Convert Lisp types.
9140 (code_conversion_restore): Use EQ, not ==.
9141 (Fencode_coding_string): Fix code_convert_string call.
9142
9143 * coding.h (code_convert_region): Fix prototype.
9144
1f45f627 9145 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
9146
9147 * fontset.c (fontset_ref, fontset_set, fs_load_font)
9148 (Ffontset_info): Convert Lisp types.
9149
9150 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
9151
9152 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
9153
9154 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
9155
9156 * chartab.c: Include "...h", not <...h> in some cases.
9157
9158 * callproc.c (Fcall_process): Remove unused variables.
9159
73acf815 91602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9161
9162 * coding.c (Fset_coding_system_priority): Allow null arg list.
9163
73acf815 91642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9165
9166 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9167 (Fself_insert_and_exit): Use CHARACTERP.
9168
9169 * callproc.c (Fcall_process): Remove unused vars.
9170
9171 * xterm.c (XTread_socket): Add extra dead keysyms.
9172
9173 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
9174
9175 * dispextern.h: Remove prototypes for redraw_frame,
9176 redraw_garbaged_frames.
9177
9178 * cmds.c (Fself_insert_command): Use CHARACTERP.
9179
9180 * chartab.c (make_sub_char_table): Remove unused var.
9181 (Fset_char_table_default, Fmap_char_table): Doc fix.
9182
9183 * keymap.c (access_keymap): Remove generic char code.
9184 (push_key_description): Use CHARACTERP.
9185
73acf815 91862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9187
9188 * charset.c: Doc fixes.
9189 (Funify_charset): Extra checking.
9190
73acf815 91912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9192
9193 * lread.c: Remove some unused variables.
9194 (safe_to_load_p): If safe, return the magic number version byte.
9195 (Fload): Maybe use load-with-code-conversion.
9196
73acf815 91972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9198
9199 * category.c (Fmodify_category_entry): Don't modify the contents
9200 of category_set for characters out of the range. Avoid
9201 unnecessary modification.
9202
1f45f627 9203 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
9204 Vchar_unify_table. The default value of the table is now nil.
9205
9206 * character.c (syms_of_character): Setup Vchar_width_table for
9207 eight-bit-control and raw-byte chars.
9208
9209 * charset.h (enum define_charset_arg_index): Delete
9210 charset_arg_parents and add charset_arg_subset and
9211 charset_arg_superset.
9212 (enum charset_attr_index): Delete charset_parents and add
9213 charset_subset and charset_superset.
9214 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
9215 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 9216 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
9217 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
9218 (CHARSET_SUPERSET): New macros.
9219 (charset_work): Extern it.
9220 (ENCODE_CHAR): Use charset_work.
1f45f627 9221 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
9222 (map_charset_chars): Extern it.
9223
9224 * charset.c (load_charset_map): Set the default value of encoder
9225 and deunifier char-tables to nil.
1f45f627 9226 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
9227 map_char_table_for_charset instead of map_char_table.
9228 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 9229 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
9230 `define-charset' (:parents -> :subset or :superset).
9231 (charset_work): New variable.
4c4475a8
GM
9232 (encode_char, syms_of_charset): Adjust for the change of
9233 Fdefine_charset_internal.
aca7a3d2
MB
9234 (Ffind_charset_string): Setup the vector `charsets' correctly.
9235
1f45f627 9236 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 9237 the previous change.
1f45f627 9238 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
9239 (map_sub_char_table_for_charset): New function.
9240 (map_char_table_for_charset): New function.
9241
9242 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 9243 (describe_char_table): Delete.
aca7a3d2 9244
1f45f627 9245 * lisp.h (map_charset_chars): Delete.
aca7a3d2 9246
73acf815 92472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9248
9249 * fns.c (count_combining): Comment out (unused).
9250 (Flocale_codeset): New.
9251 (syms_of_fns): Defsubr it.
9252
9253 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 9254 (size_t): Remove.
aca7a3d2 9255
73acf815 92562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9257
6f69e89b 9258 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 9259
73acf815 92602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9261
9262 * character.c (syms_of_character): Set the default value of
9263 Vprintable_chars to Qnil.
9264
73acf815 92652008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9266
9267 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
9268
73acf815 92692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9270
9271 * charset.c (load_charset_map): Handle the case that from < to
9272 correctly.
9273
4c4475a8
GM
9274 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
9275 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
9276 Pay attention to raw-8-bit chars.
aca7a3d2 9277
73acf815 92782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9279
4c4475a8
GM
9280 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
9281 It is not bytecompiled now.
aca7a3d2
MB
9282
9283 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
9284 (charset_jisx0208): New variables.
9285 (Fdefine_charset_internal): Setup them if appropriate.
9286 (init_charset_once): Initialize them to -1.
9287
1f45f627
GM
9288 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
9289 (charset_jisx0208): Extern them.
aca7a3d2 9290
1f204af3 9291 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 9292 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
9293 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
9294 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
9295 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
9296 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
9297 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
9298 (encode_coding_iso_2022): Change the 1st arg to
9299 ENCODE_ISO_CHARACTER to a variable.
9300
73acf815 93012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9302
9303 * charset.h (enum define_charset_arg_index): New enums
9304 charset_arg_min_code and charset_arg_max_code.
9305 (struct charset): New member char_index_offset.
9306
4c4475a8
GM
9307 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
9308 Take charset->char_index_offset into account.
aca7a3d2
MB
9309 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
9310 args[charset_arg_max_code]. Setup charset.char_index_offset.
9311 (syms_of_charset): Fix args to Fdefine_charset_internal.
9312
73acf815 93132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9314
9315 * coding.c (decode_coding_utf_8): Reject overlong sequences.
9316
73acf815 93172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9318
9319 * coding.c: Doc fixes.
9320 (Fcoding_system_aliases): Fix return value.
9321 (Qmac): Remove (duplicated) definition.
9322
73acf815 93232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9324
9325 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
9326 functions.
9327
9328 * character.c (Fstring): Doc fix.
9329
9330 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
9331
9332 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
9333 ids.
9334 (font-encoding-alist): Doc fix.
9335
73acf815 93362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9337
9338 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 9339 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
9340
9341 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9342 for K&R.
9343
9344 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
9345
9346 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 9347 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 9348
1f45f627 9349 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
9350
9351 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
9352
73acf815 93532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9354
9355 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
9356
1f45f627 9357 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 9358
2a2e8de7 93592008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
9360
9361 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
9362
1f45f627 9363 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 9364
73acf815 93652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9366
4c4475a8 9367 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 9368 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 9369
73acf815 93702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9371
1f45f627 9372 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
9373 Fdefine_coding_system_internal.
9374 (Fdefine_coding_system_internal): For a coding system of
9375 `charset' type, store a list of charset IDs in
9376 `charset_attr_charset_valids' element of coding attributes.
9377
73acf815 93782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9379
9380 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
9381 (emacs_mule_char): New arg src. Delete arg `composition'. Change
9382 caller. Handle 2-byte and 3-byte charsets correctly.
9383 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
9384 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
9385 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
9386 (DECODE_EMACS_MULE_21_COMPOSITION): Call
9387 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
9388 sequence.
9389 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 9390 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
9391 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
9392 and alt&rule composition.
9393 (decode_coding_iso_2022): Handle composition correctly.
9394 (init_coding_once): Setup emacs_mule_bytes for private charsets.
9395
9396 * charset.c (Fdefine_charset_internal): Fix bug for the case of
9397 re-defining a charset. If the charset has :emacs-mule-id, setup
9398 emacs_mule_bytes.
1f45f627 9399 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 9400
73acf815 94012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9402
4c4475a8
GM
9403 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
9404 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
9405 encoding, produce a character specified by
9406 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 9407
73acf815 94082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9409
9410 * xterm.c (XSetIMValues): Declare.
9411
9412 * process.c: Conditionally include sys/wait.h, pty.h.
9413
1f45f627 9414 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 9415
1f45f627 9416 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
9417
9418 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
9419
9420 * fontset.c (Fclear_face_cache): Declare.
1f45f627 9421 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
9422 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
9423 variables.
9424
9425 * character.h (string_escape_byte8): Declare.
9426
9427 * charset.c (load_charset_map, load_charset_map_from_file): Remove
9428 unused vars.
9429 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
9430 (Fmap_charset_chars): Doc fix.
9431
1f45f627 9432 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
9433 (Fset_coding_system_priority, Fset_coding_system_priority)
9434 (Fdefine_coding_system_internal): Doc fix.
9435
73acf815 94362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9437
9438 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
9439
73acf815 94402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9441
9442 * character.c (string_escape_byte8): Make multibyte string with
9443 correct size.
9444
9445 * charset.c (Fmake_char): Delete unnecessary code.
9446
73acf815 94472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9448
9449 * xfns.c (x_encode_text): Allocate coding.destination here, and
9450 call encode_coding_object with dst_object Qnil.
9451
9452 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
9453 multibyte form correctly.
9454
9455 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
9456 against Vfont_encoding_alist.
9457
9458 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
9459 handling of charset list.
9460 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
9461 (decode_coding_object): Move point to coding->dst_pos before
9462 calling post-read-conversion function.
9463 (encode_coding_object): Give correct arguments to
9464 pre-write-conversion. Ignore the return value of
9465 pre-write-conversion function. Pay attention to the case that
9466 pre-write-conversion changes the current buffer. If dst_object is
9467 Qt, even if coding->src_bytes is zero, allocate at least one byte
9468 to coding->destination.
9469
9470 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
9471
9472 * charset.c (Fmake_char): Make it more backward compatible.
9473 (Fmap_charset_chars): Fix docstring.
9474
73acf815 94752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9476
9477 * coding.c: Doc fixes.
9478 (Fdefine_coding_system_alias): Use names, not symbols, in
9479 coding-system-alist.
9480
73acf815 94812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9482
9483 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
9484 of calling free_realized_face.
9485
2a2e8de7 94862008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 9487
1f45f627
GM
9488 * charset.c (read_hex): Don't treat SPC as a comment starter.
9489 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
9490 (Fdecode_char): Fix typo.
9491
73acf815 94922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9493
9494 * charset.h (struct charset): New member `code_space_mask'.
9495
1f45f627 9496 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
9497 (encode_coding_charset, Fdefine_coding_system_internal):
9498 Delete the local variable charset.
aca7a3d2
MB
9499 (Fdefine_coding_system_internal): Setup
9500 attrs[coding_attr_charset_valids] correctly.
9501
9502 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
9503 member to check if CODE is valid or not.
9504 (Fdefine_charset_internal): Initialize `code_space_mask' member.
9505 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
9506 is within the range of charset->min_code and carset->max_code.
9507
73acf815 95082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9509
9510 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
9511
9512 * dispextern.h (generate_ascii_font): Fix return type.
9513
9514 * xfaces.c (generate_ascii_font): Fix arg declaration.
9515
9516 * coding.c (coding_inherit_eol_type)
9517 (Fset_terminal_coding_system_internal)
9518 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
9519
73acf815 95202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9521
9522 * coding.c (decode_coding_charset, encode_coding_charset): Handle
9523 multiple charsets correctly.
9524
73acf815 95252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9526
9527 * search.c (boyer_moore): Fix handling of mulitbyte character
9528 translation.
9529
9530 * xdisp.c (display_mode_element): When the variable `elt' is
9531 changed, update `this' and `lisp_string'.
9532
73acf815 95332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9534
9535 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9536
9537 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 9538 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
9539
9540 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
9541 (load_charset_map): Rename from parse_charset_map. New args
9542 entries and n_entries. Change caller.
9543 (load_charset_map_from_file): Rename from load_charset_map.
9544 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
9545 the tail.
9546 (load_charset_map_from_vector): New function.
9547 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9548 (encode_char): If the charset is compact, change a character index
9549 to a code point.
9550
9551 * coding.c (coding_alloc_by_making_gap): Check the case that the
9552 source and destination are the same correctly.
9553 (decode_coding_raw_text): Set coding->consumed_char and
9554 coding->consumed to 0.
9555 (produce_chars): If coding->chars_at_source is nonzero, update
9556 coding->consumed_char and coding->consumed before calling
9557 alloc_destination.
9558 (Fdefine_coding_system_alias): Register ALIAS in
9559 Vcoding_system_alist.
9560 (syms_of_coding): Define `no-convesion' coding system at the tail.
9561
9562 * fileio.c (Finsert_file_contents): Set coding_system instead of
9563 val. If the current buffer is multibyte, always call
9564 decode_coding_gap.
9565
9566 * xfaces.c (try_font_list): Give higher priority to fontset's
9567 family than face's family.
9568
73acf815 95692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9570
9571 * callproc.c (Fcall_process): Be sure to give the current buffer
9572 to decode_coding_c_string.
9573
9574 * xfaces.c (try_font_list): Give a family specified in a fontset
9575 higher priority than a family specified in a face.
9576
73acf815 95772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9578
9579 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9580 Fix arguments to insert_from_buffer.
9581
9582 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9583
73acf815 95842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9585
9586 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9587 (decode_coding_gap): Set coding->dst_multibyte correctly.
9588
73acf815 95892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9590
9591 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 9592 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
9593 (encode_coding_utf_16): Substitute coding->default_char for
9594 non-Unicode characters.
9595 (decode_coding): Don't call record_insert here.
9596 (setup_coding_system): Initialize `surrogate' of
9597 coding->spec.utf_16 to 0.
9598 (EMIT_ONE_BYTE): Fix for multibyte case.
9599
9600 * insdel.c (insert_from_gap): Call record_insert.
9601
73acf815 96022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9603
9604 * casefiddle.c (casify_region): Fix multibyte case.
9605
9606 * character.c (c_string_width): Add return type `int'.
1f45f627 9607 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
9608
9609 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 9610 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
9611 (CHAR_STRING_ADVANCE): Make it do-while statement.
9612
1f45f627 9613 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
9614 DEPTH == 3. Add workaround code for a GCC optimization bug.
9615
9616 * charset.c (parse_charset_map): Remove an unused variable.
9617
9618 * coding.c: Delete unused variables.
9619
9620 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
9621 earlier. If inserted is zero and the coding system doesn't
9622 require flushing, don't call decode_coding_gap.
9623
9624 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
9625
73acf815 96262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9627
9628 The following changes are for using Unicode as an internal
9629 character model, and use UTF-8 format for buffer/string
9630 representation.
9631
1f45f627 9632 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
9633 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
9634
9635 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 9636 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
9637 (*.o): For many files, change dependency on charset.h to
9638 character.h, and add dependency on character.h.
9639 (character.o, chartab.o): New targets.
9640
1f45f627
GM
9641 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
9642 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
9643 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
9644 of "charset.h".
9645
9646 * dired.c, filelock.c: Include "character.h".
9647
9648 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 9649 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
9650 (syms_of_alloc): Remove defsubr for Smake_char_table.
9651
9652 * buffer.c: Include "character.h" instead of "charset.h", don't
9653 include "coding.h".
1f45f627 9654 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
9655
9656 * buffer.h: EXFUN Fbuffer_live_p.
9657
9658 * callproc.c: Include "character.h" instead of "charset.h".
9659 (Fcall_process): Big change for the new code-conversion APIs.
9660
9661 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 9662 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
9663 map_char_table spec.
9664 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
9665 accessing the char table structure.
9666
9667 * chartab.c: New file that implements char table.
9668
9669 * category.c: Include "character.h".
9670 (copy_category_entry): New function.
9671 (copy_category_table): Call map_char_table and copy_category_entry.
9672 (Fmake_category_table): Initialize all top-vel slots.
9673 (char_category_set): New function.
1f45f627 9674 (modify_lower_category_set): Delete.
aca7a3d2
MB
9675 (Fmodify_category_entry): Call char_table_ref_and_range.
9676
9677 * category.h (CATEGORY_SET): Just call char_category_set.
9678
9679 * ccl.c: Include "character.h".
9680 (Qccl, Qcclp): New variables.
9681 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
9682 it's less than 256.
1f45f627
GM
9683 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
9684 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 9685 and DST type.
1f45f627
GM
9686 (ccl_driver): Change types of argument, adjust code accordingly.
9687 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
9688 ccl_driver.
9689 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
9690
1f45f627
GM
9691 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
9692 New members src_multibyte, dst_multibyte, consumed, and produced.
9693 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 9694 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 9695 (ccl_driver): Update prototype.
aca7a3d2
MB
9696 (Qccl, Qcclp, Fccl_program_p): Extern them.
9697 (CHECK_CCL_PROGRAM): New macro.
9698
9699 * character.c, character.h, chartab.c: New files.
9700
1f45f627
GM
9701 * charset.c: Mostly re-written. Move character and multibyte sequence
9702 handling codes to character.c.
aca7a3d2 9703
1f45f627
GM
9704 * charset.h: Mostly re-written. Move character and multibyte sequence
9705 handling codes to character.h.
aca7a3d2
MB
9706
9707 * coding.c, coding.h: Mostly re-written.
9708
9709 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
9710 (CHAR_WIDTH): Move to character.h.
9711 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 9712
1f45f627
GM
9713 * composite.h (enum composition_method): Change order of enumeration
9714 symbols.
aca7a3d2
MB
9715
9716 * data.c: Include "character.h" instead of "charset.h".
9717 (Faref): Call CHAR_TABLE_REF for a char table.
9718 (Faset): Call CHAR_TABLE_SET for a char table.
9719
1f45f627
GM
9720 * dispextern.h (free_realized_face, check_face_attribytes)
9721 (generate_ascii_font): Extern them.
9722 (free_realized_multibyte_face): Delete extern.
aca7a3d2 9723
1f45f627 9724 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
9725 table structure.
9726
9727 * editfns.c: Include "character.h" instead of "charset.h".
9728 (Fchar_to_string): Always call CHAR_STRING.
9729
9730 * emacs.c (main): Call init_charset_once, init_charset,
9731 syms_of_chartab, and syms_of_character.
9732
9733 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 9734 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 9735 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 9736 (build_annotations_2): Delete.
aca7a3d2
MB
9737 (e_write): Big change for the new code-conversion API.
9738
9739 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 9740 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
9741 (Fcopy_sequence): Call copy_char_table for a char table.
9742 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
9743 (string_char_to_byte, string_byte_to_char): Adjust for the new
9744 multibyte form.
1f45f627
GM
9745 (internal_equal): Adjust for the change of char table structure.
9746 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
9747 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
9748 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
9749 (char_table_translate, optimize_sub_char_table)
9750 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 9751 chartab.c.
1f45f627
GM
9752 (char_table_ref_and_index): Delete.
9753 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 9754 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
9755 Vcoding_category_list. Adjust for the new code-conversion API.
9756 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
9757 chartab.c.
9758
9759 * fontset.c: Mostly re-written.
9760
1f45f627 9761 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 9762 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
9763 (fontset_font_pattern, fs_load_font): Update prototype.
9764 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
9765
9766 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 9767 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
9768
9769 * insdel.c: Include "character.h" instead of "charset.h".
9770 (copy_text): Don't refer to Vnonascii_translation_table.
9771 (insert_from_gap): New function.
9772
9773 * keyboard.c: Include "character.h" instead of "charset.h".
9774 (command_loop_1): Never call direct_output_forward_char before
9775 a non-ASCII character.
9776 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 9777 translate a character.
aca7a3d2
MB
9778
9779 * keymap.c: Include "character.h".
9780 (store_in_keymap): Handle the case that IDX is a cons.
9781 (Fdefine_key): Handle the case that KEY is a cons and the car part
9782 is also a cons (range).
1f45f627 9783 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
9784 (describe_vector): Call describe_char_table for a char table.
9785 (describe_char_table): New function.
9786
9787 * keymap.h (describe_char_table): Extern it.
9788
9789 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9790 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
9791 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9792 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9793 Delete.
9794 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
9795 structure.
9796 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
9797 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9798 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 9799 (chartab_size): Extern it.
1f45f627 9800 (struct Lisp_Char_Table): Re-design.
aca7a3d2 9801 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
9802 (HASH_KEY, HASH_VALUE): Move from fns.c.
9803 (CHARACTERBITS): Define as 22.
9804 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
9805 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9806 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
9807 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9808 (code_convert_string_norecord): Deleted extern.
9809 (init_character_once, syms_of_character, init_charset)
9810 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
9811
9812 * lread.c: Include "character.h".
9813 (read_multibyte): New arg NBYTES.
1f45f627
GM
9814 (read_escape): Change the meaning of returned *BYTEREP.
9815 (to_multibyte): Delete.
9816 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
9817
9818 * print.c: Include "character.h" instead of "charset.h".
9819 (print_string): Convert 8-bit raw bytes to octal form by
9820 string_escape_byte8.
1f45f627 9821 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
9822 raw bytes always in octal form. Handle sub char table correctly.
9823
9824 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
9825 (read_process_output, send_process): Adjust for the new
9826 code-conversion API.
aca7a3d2 9827
1f45f627 9828 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
9829
9830 * regex.c: Include "character.h" instead of "charset.h".
9831 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9832 (regex_compile): Accept a range whose starting and ending
9833 character have different leading bytes.
1f45f627 9834 (analyse_first): Adjust for the above change.
aca7a3d2
MB
9835
9836 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
9837 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9838 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
9839
9840 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 9841 (syntax_parent_lookup): Delete.
aca7a3d2 9842 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 9843 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
9844 (init_syntax_once): Call char_table_set_range instead of directly
9845 accessing the structure of a char table.
9846
9847 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 9848 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
9849 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9850 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9851
9852 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
9853 (encode_terminal_code, write_glyphs): Adjust for the new
9854 code-conversion API.
aca7a3d2
MB
9855 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9856
1f45f627 9857 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
9858
9859 * xdisp.c: Include "character.h".
1f45f627
GM
9860 (get_next_display_element): Adjust for the new multibyte form.
9861 (disp_char_vector): Adjust for the new char table structure.
9862 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 9863 coding system.
1f45f627 9864 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
9865
9866 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 9867 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
9868 FS_LOAD_FONT.
9869 (generate_ascii_font): New function.
1f45f627
GM
9870 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9871 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 9872 (free_realized_face): Make it public.
1f45f627 9873 (free_realized_faces_for_fontset): Rename from
aca7a3d2 9874 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 9875 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
9876 fontset_font_pattern and FS_LOAD_FONT.
9877
9878 * xfns.c: Include "character.h".
1f45f627 9879 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
9880
9881 * xselect.c: Don't include "charset.h".
1f45f627 9882 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
9883
9884 * xterm.c: Include "character.h".
1f45f627 9885 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
9886 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9887 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
9888 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9889 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
9890 (XTread_socket): Adjust for the new code-conversion API.
9891 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9892 (x_load_font): Adjust for the change of struct font.
aca7a3d2 9893
d6abfc14
SM
98942008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9895
9896 * xfaces.c (face_at_buffer_position): Remove unused vars.
9897
0acdaf8d
KH
98982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9899
4c4475a8
GM
9900 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9901 Fix overflow checking.
0acdaf8d 9902
6c8a0ebf
GM
99032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9904
9905 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9906 Cancel previous change.
9907
99082008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9909
9910 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9911 ccl->eight_bit_control. Fix check for buffer overflow.
9912 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9913 (ccl_driver): Initialize extra_bytes to 0.
9914
a32aad64
KH
99152008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9916
9917 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9918 return it ORed with ctrl_modifier.
9919
8b329dba
MB
99202008-01-29 Miles Bader <miles@gnu.org>
9921
9922 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9923
548667aa
JR
99242008-01-28 Jason Rumney <jasonr@gnu.org>
9925
9926 * w32.c (stat): Don't double check for networked drive.
9927
0975aa24
SM
99282008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9929
ef264c42
SM
9930 * window.c (run_window_configuration_change_hook): New function.
9931 Code extracted from set_window_buffer. Set the selected frame.
9932 (set_window_buffer): Use it.
9933 * window.h (run_window_configuration_change_hook): Declare.
9934 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9935
0975aa24
SM
9936 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9937
9c28b587
DN
99382008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9939
9940 * Makefile.in: Remove references to unused macros.
9941
c617afce
EZ
99422008-01-26 Eli Zaretskii <eliz@gnu.org>
9943
9944 * w32.c (g_b_init_get_sid_sub_authority)
9945 (g_b_init_get_sid_sub_authority_count): New static variables.
9946 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9947 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
9948 (init_user_info): Use them to retrieve uid and gid.
9949 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
9950 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9951 st_uid and st_gid of the file.
c617afce 9952
302d7d54
JR
99532008-01-26 Jason Rumney <jasonr@gnu.org>
9954
9955 * w32.c (logon_network_drive): New function.
9956 (stat): Use it.
9957
3ac7a21e
CY
99582008-01-26 Chong Yidong <cyd@stupidchicken.com>
9959
9960 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9961 invisible text covered with an ellipsis.
9962
bbb9fc1f
RS
99632008-01-25 Richard Stallman <rms@gnu.org>
9964
9965 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9966 jump back to beginning. Move some other initializations after that.
9967 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9968 New variables.
9969 (syms_of_xdisp): Init them.
9970
9971 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9972
0975aa24
SM
9973 * buffer.c (reset_buffer_local_variables):
9974 Implement `permanent-local-hook'.
bbb9fc1f 9975 (Qpermanent_local_hook): New variable.
0975aa24 9976 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 9977
79235cbe
MA
99782008-01-25 Michael Albinus <michael.albinus@gmx.de>
9979
9980 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9981
ccd8f7fe
TTN
99822008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9983
9984 * fns.c (Fclrhash): Return TABLE.
9985
dfbe40f2 99862008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
9987
9988 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9989 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9990 is set even without positional changes.
9991 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9992
9993 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9994
dfbe40f2 99952008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 9996
d6169680
JR
9997 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9998
602e142f
JR
9999 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10000 the unicode range available in MULE by locale-coding-system.
c041e2d1 10001 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
10002 earlier.
10003
dfbe40f2 100042008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
10005
10006 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10007 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 10008 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
10009 when used on child processes.
10010
8c7a4ac5
MA
100112008-01-21 Michael Albinus <michael.albinus@gmx.de>
10012
e0df1b73 10013 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 10014 Fdbus_method_return.
e0df1b73 10015 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 10016 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 10017 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 10018
8abe0f97
MR
100192008-01-20 Martin Rudalics <rudalics@gmx.at>
10020
10021 * undo.c (undo_inhibit_record_point): New variable.
10022 (syms_of_undo): Initialize it.
10023 (record_point): Don't record point when undo_inhibit_record_point
10024 is set.
10025
c3b232e4
SM
100262008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
10027
e69c4cae
SM
10028 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10029
823e0ebb
SM
10030 * xdisp.c (Qauto_hscroll_mode): New var.
10031 (syms_of_xdisp): Initialize it.
10032 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10033 window's buffer.
10034 (hscroll_windows): Don't check automatic_hscrolling_p here.
10035
c3b232e4
SM
10036 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10037 vscroll if we're setting window-buffer to the value it already has.
10038
76ed5e01
DN
100392008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
10040
10041 * m/intel386.h: Remove references to XENIX.
10042
55e6d9b2
AS
100432008-01-17 Andreas Schwab <schwab@suse.de>
10044
10045 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10046 instead of HAVE_X86_64_LIB64_DIR.
10047 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10048
b16ed52d
GM
100492008-01-17 Glenn Morris <rgm@gnu.org>
10050
10051 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
10052 to HAVE_X86_64_LIB64_DIR.
10053
6bed5c4a
DN
100542008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * s/irix3-3.h:
10057 * s/irix4-0.h:
10058 * s/386-ix.h:
10059 * s/domain.h:
10060 * s/hpux9-x11r4.h:
10061 * s/hpux9shxr4.h: Remove files for systems no longer supported.
10062
10063 * sysdep.c: Remove code containing references to symbols defined
10064 by unsupported systems.
10065
fdecf907
GM
100662008-01-16 Glenn Morris <rgm@gnu.org>
10067
10068 * coding.c (select-safe-coding-system-function): Doc fix.
10069
9292328f
GM
100702008-01-15 Glenn Morris <rgm@gnu.org>
10071
10072 * config.in: Revert 2008-01-13 change: this is a generated file.
10073
944df511
MO
100742008-01-13 Tom Tromey <tromey@redhat.com>
10075
10076 * lisp.h: Fix typo.
10077
8111ec05
DN
100782008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10079
f40f5dc3
DN
10080 * m/sequent-ptx.h:
10081 * m/sequent.h:
10082 * s/ptx.h:
10083 * s/ptx4-2.h:
10084 * s/ptx4.h: Remove files for systems no longer supported.
10085
ce20b664 10086 * callproc.c (Fcall_process): Fix previous change.
8111ec05 10087
e39a993c
DN
100882008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10089
052e457f 10090 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 10091
290afd83
JB
10092 * m/mips.h:
10093 * m/intel386.h:
e39a993c
DN
10094 * callproc.c:
10095 * config.in:
10096 * ecrt0.c:
10097 * emacs.c:
10098 * fileio.c:
10099 * frame.c:
10100 * getpagesize.h:
10101 * keyboard.c:
10102 * lread.c:
10103 * process.c:
10104 * puresize.h:
10105 * sysdep.c:
10106 * systty.h:
10107 * syswait.h:
10108 * unexec.c:
10109 * xdisp.c:
10110 * alloc.c: Remove code containing references to symbols defined by
10111 unsupported systems.
10112
81cd7687
KH
101132008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
10114
10115 * coding.c (detect_coding_mask): Fix previous change.
10116
218b3b76
KH
101172008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
10118
10119 * coding.c (detect_coding_iso2022): New arg
10120 latin_extra_code_state. Allow Latin extra codes only
10121 when *latin_extra_code_state is nonzero.
10122 (detect_coding_mask): If there is a NULL byte, detect the encoding
10123 as UTF-16 or binary. If Latin extra codes exist, detect the
10124 encoding as ISO-2022 only when there's no other proper encoding is
10125 found.
10126
59ce725a 101272008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 10128
59ce725a
MB
10129 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
10130 #ifdef MAC_OS.
048addec 10131
59ce725a 101322008-01-08 Richard Stallman <rms@gnu.org>
048addec 10133
59ce725a 10134 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 10135
8290574e
NR
101362008-01-06 Nick Roberts <nickrob@snap.net.nz>
10137
a0a3805c 10138 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
10139 menu bar in parentheses.
10140
f3041af1
DN
101412008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
10142
10143 * m/7300.h:
10144 * m/acorn.h:
10145 * m/alliant-2800.h:
10146 * m/alliant.h:
10147 * m/alliant1.h:
10148 * m/alliant4.h:
10149 * m/altos.h:
10150 * m/amdahl.h:
10151 * m/apollo.h:
10152 * m/att3b.h:
10153 * m/aviion-intel.h:
10154 * m/aviion.h:
10155 * m/celerity.h:
10156 * m/clipper.h:
10157 * m/cnvrgnt.h:
10158 * m/convex.h:
10159 * m/cydra5.h:
10160 * m/delta88k.h:
10161 * m/dpx2.h:
10162 * m/dual.h:
10163 * m/elxsi.h:
10164 * m/f301.h:
10165 * m/gould-np1.h:
10166 * m/gould.h:
10167 * m/i860.h:
10168 * m/ibmps2-aix.h:
10169 * m/ibmrt-aix.h:
10170 * m/ibmrt.h:
10171 * m/irist.h:
10172 * m/is386.h:
10173 * m/isi-ov.h:
10174 * m/mega68.h:
10175 * m/mg1.h:
10176 * m/news-r6.h:
10177 * m/news-risc.h:
10178 * m/news.h:
10179 * m/nh3000.h:
10180 * m/nh4000.h:
10181 * m/ns16000.h:
10182 * m/ns32000.h:
10183 * m/nu.h:
10184 * m/orion.h:
10185 * m/orion105.h:
10186 * m/paragon.h:
10187 * m/pfa50.h:
10188 * m/plexus.h:
10189 * m/pyramid.h:
10190 * m/pyrmips.h:
10191 * m/sh3el.h:
10192 * m/sps7.h:
10193 * m/sr2k.h:
10194 * m/stride.h:
10195 * m/sun1.h:
10196 * m/sun2.h:
10197 * m/sun3-68881.h:
10198 * m/sun3-fpa.h:
10199 * m/sun3-soft.h:
10200 * m/sun3.h:
10201 * m/sun386.h:
10202 * m/symmetry.h:
10203 * m/tad68k.h:
10204 * m/tahoe.h:
10205 * m/targon31.h:
10206 * m/tek4300.h:
10207 * m/tekxd88.h:
10208 * m/tower32.h:
10209 * m/tower32v3.h:
10210 * m/ustation.h:
10211 * m/wicat.h:
10212 * m/xps100.h:
10213 * s/cxux.h:
10214 * s/cxux7.h:
10215 * s/dgux.h:
10216 * s/dgux4.h:
10217 * s/dgux5-4-3.h:
10218 * s/dgux5-4r2.h:
10219 * s/esix.h:
10220 * s/esix5r4.h:
10221 * s/hiuxmpp.h:
10222 * s/hiuxwe2.h:
10223 * s/iris3-5.h:
10224 * s/iris3-6.h:
10225 * s/isc2-2.h:
10226 * s/isc3-0.h:
10227 * s/isc4-0.h:
10228 * s/isc4-1.h:
10229 * s/newsos5.h:
10230 * s/newsos6.h:
10231 * s/osf1.h:
10232 * s/osf5-0.h:
10233 * s/riscix1-1.h:
10234 * s/riscix12.h:
10235 * s/sco4.h:
10236 * s/sco5.h:
10237 * s/sunos4-0.h:
10238 * s/sunos4-1.h:
10239 * s/sunos413.h:
10240 * s/sunos4shr.h:
10241 * s/umax.h:
10242 * s/unipl5-2.h:
10243 * s/xenix.h:
10244 * cxux-crt0.s:
10245 * unexapollo.c:
10246 * unexconvex.c:
10247 * unexenix.c:
10248 * unexsni.c: Remove files for systems no longer supported.
10249
10250 * m/intel386.h: Remove references to unsupported systems.
10251
10252 * w32.c (get_emacs_configuration): Remove reference to i860.
10253
10254 * sysdep.c: Remove dead code.
10255
d35e1cd7
DN
102562008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
10257
10258 * s/rtu.h:
a0a3805c 10259 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 10260
abe136ee
MA
102612008-01-04 Michael Albinus <michael.albinus@gmx.de>
10262
10263 * dbusbind.c (Fdbus_method_return): New function.
10264 (xd_read_message): Add the serial number to the event.
10265 (Fdbus_register_method): Activate the function.
10266
87df3c32
SM
102672008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
10268
10269 * keyboard.c (read_key_sequence): Fix typo.
10270
5125905e
MA
102712008-01-03 Michael Albinus <michael.albinus@gmx.de>
10272
10273 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
10274 (xd_signature, xd_append_arg): Handle element type detection for
10275 empty arrays.
10276 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
10277 SDATA () calls; this must be solved more general.
10278 (Fdbus_register_signal): Use SBYTES instead of strlen.
10279
8bba1b5c
MH
102802008-01-03 Magnus Henoch <magnus@zemdatav>
10281
10282 * dbusbind.c (xd_append_arg): Use unsigned char instead of
10283 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 10284 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 10285
a0a3805c 102862007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
10287
10288 * dbusbind.c (xd_read_message): Use non-static input_event struct.
10289
a271e124
MH
102902007-12-31 Magnus Henoch <mange@freemail.hu>
10291
10292 * dbusbind.c (xd_signature): Signature of variant is just "v".
10293
17bc8f94
MA
102942007-12-30 Michael Albinus <michael.albinus@gmx.de>
10295
87df3c32 10296 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 10297 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
10298 (XD_ERROR, XD_DEBUG_MESSAGE)
10299 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10300 (xd_append_arg): Part for basic D-Bus types rewitten.
10301 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
10302 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
10303 appropriate.
10304 (xd_read_message): Return Qnil. Don't signal an error; it is not
10305 useful during event reading.
10306 (Fdbus_register_signal): Signal an error if the check for
10307 FUNCTIONP fails.
10308 (Fdbus_register_method): New function. The implementation is not
10309 complete, the call of the function signals an error therefore.
10310 (Fdbus_unregister_object): New function, renamed from
10311 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 10312 the object is not well formed.
17bc8f94 10313
dd6f2802
RS
103142007-12-30 Richard Stallman <rms@gnu.org>
10315
10316 * textprop.c (get_char_property_and_overlay):
10317 Signal error if POSITION is out of range in a buffer.
10318
1da8a031
MR
103192007-12-29 Martin Rudalics <rudalics@gmx.at>
10320
10321 * w32fns.c (Fx_create_frame): Make copy of frame parameters
10322 because the original parameters are in pure storage now.
10323
5742be86
YM
103242007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10325
10326 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
10327
b014713c
EZ
103282007-12-22 Eli Zaretskii <eliz@gnu.org>
10329
b17f53ab
MB
10330 * callint.c (syms_of_callint) <command-history>: Add reference to
10331 history-length in the doc string.
048addec 10332
b17f53ab 103332007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 10334
b17f53ab
MB
10335 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
10336 before passing as wParam.
048addec 10337
9af5078b
MA
103382007-12-22 Michael Albinus <michael.albinus@gmx.de>
10339
10340 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
10341 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
10342 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
10343 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
10344 as number.
10345 (Fdbus_call_method): Fix docstring.
10346
87cf1a39
MA
103472007-12-21 Michael Albinus <michael.albinus@gmx.de>
10348
10349 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
10350 New macros.
87df3c32 10351 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
10352 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
10353 Simplify.
87cf1a39
MA
10354 (xd_signature): New function.
10355 (xd_append_arg): Compute also signatures. Major rewrite.
10356 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
10357 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
10358 Check for signatures of arguments.
87cf1a39 10359
54371585
MA
103602007-12-19 Michael Albinus <michael.albinus@gmx.de>
10361
10362 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
10363 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
10364 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
10365 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
10366 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 10367 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
10368 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
10369 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 10370 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
10371 (xd_append_arg): New function.
10372 (Fdbus_call_method, Fdbus_send_signal): Apply it.
10373
f5306ca3
MA
103742007-12-16 Michael Albinus <michael.albinus@gmx.de>
10375
10376 * dbusbind.c (top): Include <stdio.h>.
10377 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
10378 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
10379 (Fdbus_register_signal): Rename unique_name to uname.
10380 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
10381 non-existing unique name. Fix typos in matching rule. Return an
10382 object which is useful in Fdbus_unregister_signal.
10383 (Fdbus_unregister_signal): Reimplementation, in order to remove
10384 only the corresponding entry.
10385 (Vdbus_registered_functions_table): Change the order of entries.
10386 Apply these changes in xd_read_message and Fdbus_register_signal.
10387
77a28bbf
AS
103882007-12-16 Andreas Schwab <schwab@suse.de>
10389
10390 * fileio.c (Finsert_file_contents): Fix overflow check to not
10391 depend on undefined integer overflow.
10392
2e3566d8
JR
103932007-12-14 Jason Rumney <jasonr@gnu.org>
10394
10395 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
10396 for characters above 127.
10397
bf254037
JR
103982007-12-13 Jason Rumney <jasonr@gnu.org>
10399
10400 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
10401 before dereferencing array.
10402 (lookup_vk_code): Remove zero comparison.
10403
eb7c7bf5
MA
104042007-12-14 Michael Albinus <michael.albinus@gmx.de>
10405
10406 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
10407 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
10408 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
10409 (xd_read_message, Fdbus_register_signal): Split expressions into
10410 multiple lines before operators "&&" and "||", according to the
10411 GNU Coding Standards.
10412
34fb0fc9
EZ
104132007-12-14 Eli Zaretskii <eliz@gnu.org>
10414
10415 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
10416
c7d97628
JL
104172007-12-12 Juri Linkov <juri@jurta.org>
10418
10419 * buffer.c (Frename_buffer): In interactive spec replace
10420 `read-buffer' with `read-string' that uses `buffer-name-history'
10421 as history, and the current buffer's name as default.
10422
3709505e
SM
104232007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
10424
10425 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
10426 manipulating the backtrace manually.
10427 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
10428 (struct backtrace, backtrace_list): Remove.
10429 (command_loop_1): Remove dead var `no_direct'.
10430
10431 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
10432 preserve non-built-in buffer-local variables.
10433 (Fkill_all_local_variables): Don't re-create&re-set permanent
10434 buffer-local variables.
10435
e2bec886
JL
104362007-12-09 Juri Linkov <juri@jurta.org>
10437
10438 * buffer.c (Frename_buffer): Change interactive spec from "s" to
10439 Lisp code that uses `read-buffer' with current buffer as default.
10440
a31d47c7
MA
104412007-12-08 Michael Albinus <michael.albinus@gmx.de>
10442
10443 * dbusbind.c (xd_read_message): Generate an event for every
10444 registered handler. There might be several handlers registered
10445 for the same signal.
10446 (Fdbus_register_signal): Don't overwrite a registration for the
10447 same signal. Add a new registration if handlers are different.
10448 (Vdbus_registered_functions_table): Rework doc string.
10449
52da95fa
MA
104502007-12-07 Michael Albinus <michael.albinus@gmx.de>
10451
10452 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
10453 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
10454 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
10455 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
10456 Unify argument lists.
a0a3805c 10457 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
10458 arguments and hash table keys. Use unique name for service.
10459 (Fdbus_unregister_signal): Remove checks.
10460 (Vdbus_registered_functions_table): Fix doc string.
10461
e5e76c04 104622007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
10463
10464 * process.c (make_process): Initialize pty_flag to 0.
10465
e5e76c04 104662007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
10467
10468 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
10469 specified XBMs.
10470
e5e76c04 104712007-12-05 Richard Stallman <rms@gnu.org>
048addec 10472
e5e76c04 10473 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 10474
e5e76c04 104752007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 10476
e5e76c04
MB
10477 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
10478 New variable.
10479 (mac_try_close_socket) [MAC_OSX]: New function.
10480 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
10481 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 10482
e5e76c04
MB
10483 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
10484 Use mac_try_close_socket.
048addec 10485
e5e76c04 104862007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 10487
e5e76c04
MB
10488 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
10489 reloc_base.
10490 (copy_dysymtab): Compute relocation base here.
10491 (rebase_reloc_address) [__ppc64__]: New function.
10492 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
10493 changed.
048addec 10494
e5e76c04 104952007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 10496
e5e76c04 10497 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 10498
e5e76c04 104992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 10500
e5e76c04
MB
10501 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
10502 __objc_* sections.
10503 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 10504
96faeb40
MA
105052007-12-05 Michael Albinus <michael.albinus@gmx.de>
10506
10507 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
10508 Move check for Vdbus_registered_functions_table to
10509 xd_read_queued_messages.
10510 (xd_read_queued_messages): Protect xd_read_message calls by
10511 internal_condition_case_1.
10512
39abdd4a
MA
105132007-12-04 Michael Albinus <michael.albinus@gmx.de>
10514
87df3c32 10515 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 10516 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 10517 (Vdbus_intern_symbols): Remove.
39abdd4a 10518 (Vdbus_registered_functions_table): New hash table.
87df3c32 10519 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 10520 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 10521 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
10522 Vdbus_registered_functions_table.
10523
880820fe 105242007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
10525
10526 * xterm.c: Update URL to Window Manager Specification in comment.
10527
033b73e2
MA
105282007-12-02 Michael Albinus <michael.albinus@gmx.de>
10529
10530 * config.in (HAVE_DBUS): Add.
10531
a0a3805c 10532 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
10533 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10534 (obj): Add $(DBUS_OBJ).
10535 (LIBES): Add $(DBUS_LIBS).
10536 (dbusbind.o): New target.
10537
10538 * dbusbind.c: New file.
10539
10540 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10541
10542 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 10543 (Qdbus_event): New Lisp symbol.
033b73e2 10544 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 10545 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
10546 (keys_of_keyboard ): Define dbus-event.
10547
10548 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10549
39d0bf74
RS
105502007-12-01 Richard Stallman <rms@gnu.org>
10551
10552 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10553
f3157c65
JR
105542007-11-30 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10557 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
10558 (w32_face_attributes): Don't use color indexes that are out of range.
10559 Only reverse the default colors.
f3157c65
JR
10560
10561 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10562 WINDOWSNT.
10563
10564 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10565
b510360c
JR
105662007-11-29 Jason Rumney <jasonr@gnu.org>
10567
10568 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10569 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10570 if the terminal colors are initialized.
10571 (unspecified_fg, unspecified_bg): Remove unused declarations.
10572
4b7ab1c4
AS
105732007-11-29 Andreas Schwab <schwab@suse.de>
10574
10575 * keyboard.c (apply_modifiers): Fix typo.
10576
4bb6c266
RS
105772007-11-29 Richard Stallman <rms@gnu.org>
10578
10579 * keymap.c (Fcurrent_local_map): Doc fix.
10580
aa44cd84
GM
105812007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10582
10583 * s/gnu-kfreebsd.h: New file.
10584
21ec2c43
SM
105852007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10586
cc648cef
SM
10587 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10588 Don't cast redundantly.
10589
21ec2c43
SM
10590 * keyboard.c (KEY_TO_CHAR): New macro.
10591 (parse_modifiers, apply_modifiers): Accept integer arguments.
10592 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10593 for chars and symbol keys.
10594 After doing such remapping, apply function-key-map again.
10595
73e72da4
DN
105962007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10597
10598 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
10599 compiled anymore.
10600
254693ff
AS
106012007-11-26 Andreas Schwab <schwab@suse.de>
10602
10603 * process.c (list_processes_1): Fix indentation level of the
10604 command column.
10605
ff6e6ac8
AS
106062007-11-23 Andreas Schwab <schwab@suse.de>
10607
10608 * editfns.c (Fformat): Handle %c specially since it requires the
10609 argument to be of type int.
10610
f7cf8b20
SM
106112007-11-23 Markus Triska <markus.triska@gmx.at>
10612
10613 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 10614 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 10615
569c11e3
SM
106162007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10617
8787dd73
SM
10618 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
10619 (find_symbol_value): Use do_symval_forwarding.
10620
569c11e3
SM
10621 * data.c (set_internal): Set the value in the `cons-cell' (for
10622 Buffer_Local_values) not only for frame-local variables.
10623
6af1696d
AS
106242007-11-22 Andreas Schwab <schwab@suse.de>
10625
10626 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
10627 values to sprintf.
10628 * keymap.c (Fsingle_key_description): Likewise.
10629 * print.c (print_object): Likewise.
10630
880820fe 106312007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
10632
10633 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
10634 file for image is nil.
10635
7c401d15
DN
106362007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
10637
10638 * term.c: Include stdarg.h.
569c11e3 10639 (fatal): Implement using varargs.
a0a3805c 10640 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 10641
64e16c3c
SM
106422007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10643
10644 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
10645 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
10646 Update call to buffer_slot_type_mismatch.
10647 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
10648 (buffer_slot_type_mismatch): Update.
10649 * buffer.c (buffer_local_types): Remove.
10650 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10651 (defvar_per_buffer): Set the type in the buffer_objfwd.
10652
d4aa48db 106532007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 10654
64e16c3c
SM
10655 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
10656 CreateFileMapping returns NULL on failure.
5f42a7eb 10657
d4aa48db 106582007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 10659
d4aa48db
MB
10660 * search.c (Fset_match_data): Remove the `evaporate' feature.
10661 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 10662
bdae0540
JR
106632007-11-21 Jason Rumney <jasonr@gnu.org>
10664
10665 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
10666
10667 * w32console.c (w32con_write_glyphs): Remove unused variables.
10668
202c09a8
DN
106692007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
10670
b951420f
DN
10671 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
10672
202c09a8
DN
10673 * s/darwin.h (MULTI_KBOARD): Remove.
10674
10675 * macfns.c (x_create_tip_frame, Fx_create_frame)
10676 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
10677
bae72c12
SM
106782007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10679
e7c10f83
SM
10680 * buffer.c (Fbuffer_local_value): Remove redundant test.
10681 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
10682 than in `current-buffer' to match the comment.
10683 Do the swap using swap_in_global_binding.
10684
136eb6ed
SM
10685 * data.c (store_symval_forwarding, set_internal):
10686 * eval.c (specbind): Remove dead code.
10687
bae72c12
SM
10688 * coding.c (detect_coding, Fupdate_coding_systems_internal):
10689 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
10690 Since we do not want to see internal Lisp_*fwd objects here.
10691
880820fe 106922007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 10693
3d66b985
JD
10694 * sysdep.c (init_system_name): Use getaddrinfo if available.
10695
95fbaefc
JD
10696 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
10697 (x_scroll_bar_note_movement): start, end, with, height in struct
10698 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
10699
6c1d8cb6
DN
107002007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
10701
10702 * puresize.h (BASE_PURESIZE): Increase to 1190000.
10703
30f95089
SM
107042007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10705
66b04bd4
SM
10706 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
10707 This undoes Richard's change of 14-Oct-2002.
10708
6d3f2bb2
SM
10709 * alloc.c (allocate_other_vector):
10710 * lisp.h (allocate_other_vector): Remove.
10711
b05b4e27
SM
10712 * window.c (struct save_window_data): Move non-lisp data to the end
10713 and make it `int' rather than Lisp_Object.
10714 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
10715 Done wrap/unwrap integer values.
10716 (Fset_window_configuration, compare_window_configurations):
10717 Update use of fields to their new types.
10718
056ce195
SM
10719 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10720 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10721 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10722 (SET_SCROLL_BAR_X_WINDOW): Remove.
10723 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10724 Access the new x_window field directly.
10725 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10726 Don't wrap/unwrap integers into Lisp_Objects.
10727 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10728 (x_scroll_bar_report_motion):
10729 Don't wrap/unwrap integers into Lisp_Objects.
10730 (x_term_init): Use SDATA.
10731 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
10732 (x_scroll_bar_set_handle, x_scroll_bar_remove)
10733 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
10734 (x_scroll_bar_report_motion, x_scroll_bar_clear):
10735 * xfns.c (x_set_background_color):
10736 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
10737 Access the new x_window field directly.
10738
30f95089
SM
10739 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
10740 (allocate_pseudovector): Make non-static.
6d3f2bb2 10741
30f95089
SM
10742 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
10743 (allocate_pseudovector): Declare.
6f69e89b 10744 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 10745
9b6112e8
AS
107462007-11-15 Andreas Schwab <schwab@suse.de>
10747
30f95089
SM
10748 * editfns.c (Fformat): Correctly format EMACS_INT values.
10749 Also take precision into account when formatting an integer.
0f860bd7 10750
9b6112e8
AS
10751 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
10752
262fcd41
SM
107532007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
10754
58da34c7
SM
10755 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
10756 (syms_of_keyboard): Defsubr it.
10757
262fcd41
SM
10758 * data.c (swap_in_global_binding): Fix longstanding bug where
10759 store_symval_forwarding was not called with the right second argument,
10760 thus causing objfwd-ing from being dropped.
10761
d29a9848
JB
107622007-11-14 Juanma Barranquero <lekktu@gmail.com>
10763
10764 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
10765 (Fx_display_pixel_height, Fx_display_planes)
10766 (Fx_display_color_cells, Fx_server_max_request_size)
10767 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10768 (Fx_display_visual_class, Fx_display_save_under):
10769 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10770 (Fx_display_pixel_height, Fx_display_planes)
10771 (Fx_display_color_cells, Fx_server_max_request_size)
10772 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10773 (Fx_display_mm_height, Fx_display_mm_width)
10774 (Fx_display_backing_store, Fx_display_visual_class)
10775 (Fw32_select_font, Fx_display_save_under):
10776 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10777 (Fx_display_pixel_height, Fx_display_planes)
10778 (Fx_display_color_cells, Fx_server_max_request_size)
10779 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10780 (Fx_display_save_under): Fix typos in docstrings.
10781
74084731
JB
107822007-11-14 Juanma Barranquero <lekktu@gmail.com>
10783
10784 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10785 corresponding to deleted entries; they are an implementation detail.
10786 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10787 Remove variables.
10788 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10789 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10790 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10791 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10792 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 10793 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 10794 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
10795 Fix typos in docstrings.
10796 (Fx_server_version): Reflow docstring.
10797 (Fw32_shell_execute): Doc fixes.
74084731 10798
fb053a1f
JB
107992007-11-13 Juanma Barranquero <lekktu@gmail.com>
10800
10801 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10802 if w32_parse_hot_key returned nil.
10803
a457417e 108042007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 10805
a457417e 10806 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 10807
4b219faa
JR
108082007-11-09 Jason Rumney <jasonr@gnu.org>
10809
10810 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10811
10812 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10813
10814 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10815 Remove W32_SCROLL_BAR_CLICK_EVENT.
10816
10817 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10818 Add MULTIMEDIA_KEY_EVENT.
10819
10820 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10821 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10822 (make_lispy_event) [WINDOWSNT]: Use it to translate
10823 MULTIMEDIA_KEY_EVENT.
10824
10825 * w32term.h (WM_APPCOMMAND): Define if not already.
10826 (GET_APPCOMMAND_LPARAM): Likewise.
10827
10828 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10829 WM_APPCOMMAND.
10830
10831 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10832 (syms_of_w32fns): Export and initialize it.
10833 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10834
c12ecb0a 108352007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
10836
10837 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10838 twice.
10839
10840 * xdisp.c (handle_face_prop): Fix last change.
10841
c12ecb0a 108422007-11-09 Richard Stallman <rms@gnu.org>
048addec 10843
c12ecb0a
MB
10844 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10845 not just for after-strings and before-strings.
10846 Call face_for_overlay_string and pass the overlay to it.
10847 (handle_display_prop): Determine whether property came from an overlay.
10848 Pass OVERLAY arg to handle_single_display_spec.
10849 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10850 (load_overlay_strings): Fill in it->string_overlays.
10851 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 10852
c12ecb0a
MB
10853 * xfaces.c (face_for_overlay_string): Function renamed from
10854 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 10855
c12ecb0a
MB
10856 * dispextern.h (struct it): New elt string_overlays.
10857 New elt from_overlay, also in stack.
10858 Rearrange a few elements.
10859 (face_for_overlay_string): Decl renamed from
10860 face_at_buffer_position_no_overlays, and add argument.
15fff01d 10861
c12ecb0a 108622007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 10863
c12ecb0a
MB
10864 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10865 to get the base face for an overlay string.
0d8466cc 10866
c12ecb0a 10867 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 10868
c12ecb0a 10869 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 10870
c12ecb0a 10871 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 10872
c12ecb0a 108732007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 10874
c12ecb0a
MB
10875 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10876 Fix conversion from Lisp object to ATSUFontID.
07025a55 10877
c12ecb0a 108782007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 10879
c12ecb0a 10880 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 10881
c12ecb0a 108822007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 10883
c12ecb0a
MB
10884 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10885 Don't assume regions are aligned to page boundary.
10886 (print_load_command_name): Add LC_UUID if defined.
3a232704 10887
c12ecb0a 108882007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 10889
c12ecb0a 10890 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 10891
b8ddfbcc
JR
108922007-11-07 Jason Rumney <jasonr@gnu.org>
10893
10894 * s/windows95.h: Remove.
10895
880820fe 108962007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
10897
10898 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10899 abort with a message on unhandled store_type values.
10900
880820fe 109012007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
10902
10903 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10904 Remove HAVE_X11R5 and HAVE_X11R4.
10905
04a697fe
DN
109062007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10907
10908 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10909
880820fe 109102007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
10911
10912 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 10913 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
10914 x_set_glyph_string_gc from x_draw_glyph_string.
10915
07e5c0b0
DN
109162007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10917
2a2e8de7 10918 * sunfns.c: Remove file.
07e5c0b0
DN
10919
10920 * m/sun386.h:
10921 * m/sun2.h:
10922 * m/sparc.h: Remove Sun windows code.
10923
1bc973c2
SM
109242007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10925
10926 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10927 (init_keyboard): Set current_kboard's window-system to nil.
10928 (tty_read_avail_input): Typo.
10929 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10930
c22140f6
DN
109312007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10932
10933 * s/usg5-4.h:
10934 * s/usg5-3.h:
10935 * s/ptx.h:
10936 * m/is386.h:
10937 * m/ibmps2-aix.h:
2a2e8de7 10938 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
10939
10940 * dispnew.c (syms_of_display): Don't mention version 10.
10941
660a8219
JB
109422007-10-28 Juanma Barranquero <lekktu@gmail.com>
10943
10944 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10945 ($(BLD)/abbrev.$(O)): Remove.
10946
e047f448
SM
109472007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10948
10949 Rewrite abbrev.c in Elisp.
10950 * image.c (Qcount): Don't declare as extern.
10951 (syms_of_image): Initialize and staticpro `Qcount'.
10952 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10953 * emacs.c (main): Don't call syms_of_abbrev.
10954 * Makefile.in (obj): Remove abbrev.o.
10955 (abbrev.o): Remove.
10956 * abbrev.c: Remove.
10957
67b73e3a
MR
109582007-10-26 Martin Rudalics <rudalics@gmx.at>
10959
10960 * window.c (window_min_size_2): Don't count header-line.
10961
e3d7bd83
DN
109622007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10963
10964 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 10965 field to take advantage of the available space. Group all the
e3d7bd83
DN
10966 chars together to reduce wasted space due to padding.
10967
a3547743
JB
109682007-10-26 Juanma Barranquero <lekktu@gmail.com>
10969
e298936f
JB
10970 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10971
d3d47262
JB
10972 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10973 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10974 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10975 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10976 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10977 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10978 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10979 (last_marked, mark_object_loop_halt): Make static.
10980
a3547743
JB
10981 * frame.c (syms_of_frame) <delete-frame-functions>:
10982 Fix typo in docstring.
10983
14c71d8b
JB
109842007-10-25 Juanma Barranquero <lekktu@gmail.com>
10985
10986 * w32.c (init_environment): Fix tiny memory leak.
66199f74 10987 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 10988
70b8d0a4
SM
109892007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10990
10991 Make `window-system' into a keyboard-local variable (rather than
10992 frame-local as done originally by multi-tty).
10993
10994 * keyboard.h (struct kboard): Add Vwindow_system.
10995 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10996 (mark_kboards): Mark Vwindow_system.
10997
10998 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10999 (init_display): Don't set the obsolete `window-system' frame-param.
11000
11001 * xterm.c (x_term_init):
11002 * w32term.c (w32_create_terminal):
11003 * term.c (init_tty): Set Vwindow_system.
11004 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11005 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11006
11007 * xfns.c (Fx_create_frame, x_create_tip_frame):
11008 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11009 * macfns.c (Fx_create_frame):
11010 Don't set the obsolete `window-system' frame-param.
11011
11012 * frame.h (Qwindow_system): Remove.
11013 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11014 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11015
fdc90613 110162007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 11017
fdc90613
MB
11018 * frame.c (x_figure_window_size): For fullscreen case,
11019 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 11020
fdc90613 11021 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 11022
fdc90613 11023 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 11024
7357cb04
SM
110252007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11026
98228e72
SM
11027 * process.c (unwind_request_sigio): Only define if __ultrix__.
11028
1baf6db9
SM
11029 * callproc.c (child_setup): Remove spurious *.
11030
4d0ac3d7
SM
11031 * lisp.h (Fget_text_property): Declare.
11032 (have_menus_p): Declare it here rather than in sys-dep header files.
11033 * macterm.h (have_menus_p):
11034 * msdos.h (have_menus_p):
11035 * xterm.h (have_menus_p): Remove.
11036
7357cb04
SM
11037 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11038 (Fmake_variable_frame_local): Just check the variable's const-ness
11039 rather than checking nil or t.
11040
866e6dd6
JR
110412007-10-22 Jason Rumney <jasonr@gnu.org>
11042
b00afeae
JR
11043 * w32fns.c: Include math.h.
11044 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 11045
c8f7c76b
JR
11046 * s/ms-w32.h (HAVE_STDLIB_H): Define.
11047 (abort): Redefinition moved to nt/config.nt.
11048
866e6dd6
JR
11049 * m/windowsnt.h: Remove.
11050
e79beb56
JB
110512007-10-22 Juanma Barranquero <lekktu@gmail.com>
11052
11053 * emacs.c (Fdump_emacs): Fix typo in message.
11054 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
11055 <installation-directory>: Reflow docstring.
11056
fb30dfd2
JL
110572007-10-22 Juri Linkov <juri@jurta.org>
11058
11059 * minibuf.c: Allow minibuffer default to be a list of default values.
11060 With empty input use the first element of this list as returned default.
e79beb56 11061 (string_to_object)
0f7f11b7 11062 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
11063 (read_minibuf): If defalt is cons, set histstring to its car.
11064 (Fread_string): If default_value is cons, set val to its car.
11065 (Fread_buffer): If def is cons, use its car.
11066 (Fcompleting_read): If defalt is cons, set val to its car.
11067
1f163f28
MA
110682007-10-21 Michael Albinus <michael.albinus@gmx.de>
11069
11070 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
11071
db3534c3
JB
110722007-10-20 Juanma Barranquero <lekktu@gmail.com>
11073
11074 * doc.c (Fdocumentation): Check for advice in all cases.
11075
c6f18a07
CY
110762007-10-19 Chong Yidong <cyd@stupidchicken.com>
11077
11078 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
11079
2a1534d3
RS
110802007-10-19 Richard Stallman <rms@gnu.org>
11081
11082 * doc.c (Fdocumentation): Check for and handle an advised function.
11083
7b82c3b6
JB
110842007-10-19 Juanma Barranquero <lekktu@gmail.com>
11085
11086 * process.c (Fset_process_filter): Doc fix.
11087
3278f20e
SM
110882007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11089
11090 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
11091 which caused key-translation-map to applied repeatedly (thus breaking
11092 double-mode).
11093
99784d63
SM
110942007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11095
11096 * xselect.c (x_own_selection, x_handle_selection_clear)
11097 (x_clear_frame_selections):
11098 * w32menu.c (list_of_panes, list_of_items):
11099 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
11100 * textprop.c (validate_plist, interval_has_all_properties)
11101 (interval_has_some_properties, interval_has_some_properties_list)
11102 (add_properties, text_property_list):
11103 * process.c (Fget_buffer_process, list_processes_1, status_notify):
11104 * minibuf.c (Fassoc_string):
11105 * macselect.c (x_own_selection, x_clear_frame_selections)
11106 (Fx_disown_selection_internal):
11107 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
11108 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
11109
44bb704d
CY
111102007-10-17 Chong Yidong <cyd@stupidchicken.com>
11111
11112 * process.c: Link to libs for calling res_init() if available.
11113 (Fmake_network_process): Call res_init() before getaddrinfo or
11114 gethostbyname, if possible.
11115
d314756e
SM
111162007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11117
2504022a
SM
11118 * lread.c (read1): Set pvectype for char_tables.
11119
19fa82b9
SM
11120 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
11121 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
11122 Add type checks.
11123 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
11124
d314756e
SM
11125 * alloc.c (free_misc): Use XMISCTYPE.
11126 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
11127
94b9aaa2
GM
111282007-10-17 Glenn Morris <rgm@gnu.org>
11129
11130 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
11131 (syms_of_minibuf): Add Qcompletion_ignore_case.
11132 * dired.c (Qcompletion_ignore_case): Change to external.
11133 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
11134 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
11135 (Fread_file_name): Use it rather than intern'ing.
11136
11137 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
11138 (Fread_coding_system): Ignore case of user input.
11139
da6658e8
YM
111402007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11141
11142 * xdisp.c (handle_display_prop): Ignore display specs after
11143 replacing one when string text is being replaced.
11144 (handle_single_display_spec): Pretend as if characters with display
11145 property haven't been consumed only when buffer text is being replaced.
11146
11fb4bdb
SM
111472007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
11148
9beb8baa
SM
11149 * xfns.c (Fx_create_frame, Fx_display_list):
11150 * window.c (window_fixed_size_p, enlarge_window)
11151 (shrink_window_lowest_first):
11152 * macterm.c (init_font_name_table):
11153 * macfns.c (Fx_create_frame, Fx_display_list):
11154 * lread.c (close_load_descs):
11155 * keyboard.c (read_char_x_menu_prompt):
11156 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
11157 * coding.c (code_convert_region_unwind): Test the type of an object
11158 rather than just !NILP before extracting data from it.
11159
d3f41ff5
SM
11160 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
11161
67ee9f6e
SM
11162 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
11163 (XMISCANY): New macro.
11164 (XMISCTYPE): Use it.
11165 (struct Lisp_Misc_Any): New type.
11166 (union Lisp_Misc): Use it.
11167 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
11168 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
11169 (find_symbol_value, set_internal, default_value, Fset_default)
11170 (Fmake_variable_buffer_local, Fmake_local_variable)
11171 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
11172 (Flocal_variable_if_set_p, Fvariable_binding_locus):
11173 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
11174 * alloc.c (allocate_buffer): Set the size and tag.
11175 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
11176 Use XMISCANY.
11177 (die): Follow the GNU convention for error messages.
11178 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
11179 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
11180 tag any more.
11181 (set_buffer_internal_1):
11182 * frame.c (store_frame_param):
11183 * eval.c (specbind):
11184 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
11185
11fb4bdb
SM
11186 * doc.c (Fsnarf_documentation): Simplify.
11187
decb374a
JB
111882007-10-14 Juanma Barranquero <lekktu@gmail.com>
11189
11190 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
11191 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
11192
b5a40ee7
SM
111932007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
11194
11195 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
11196
35277b03
JB
111972007-10-14 Juanma Barranquero <lekktu@gmail.com>
11198
11199 * eval.c (do_autoload): Don't save autoloads.
11200
11201 * data.c (Ffset): Save autoload of the function being set.
11202
35fdaa62
GM
112032007-10-07 John Paul Wallington <jpw@pobox.com>
11204
11205 * xfns.c (x_create_tip_frame): Set the `display-type' frame
11206 parameter before setting up faces.
11207
1ea40aa2
EZ
112082007-10-13 Eli Zaretskii <eliz@gnu.org>
11209
35fdaa62 11210 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
11211 * keyboard.c (append_tool_bar_item): Reformat last change.
11212
1ea40aa2
EZ
11213 * lisp.h (eabs): Rename from `abs'. All callers changed.
11214
35277b03 112152007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
11216
11217 * buffer.c (add_overlay_mod_hooklist):
11218 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
11219 * fontset.c (make_fontset):
11220 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
11221 (append_tool_bar_item):
11222 * macmenu.c (grow_menu_items):
35fdaa62 11223 * w32menu.c (grow_menu_items):
71d00ce4 11224 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 11225
bc82f120
EZ
112262007-10-13 Eli Zaretskii <eliz@gnu.org>
11227
11228 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
11229 selected frame'' on MSDOS).
11230
d57d5a78
MR
112312007-10-12 Martin Rudalics <rudalics@gmx.at>
11232
11233 * frame.c (Qexplicit_name): New variable.
11234 (x_report_frame_params): Report it in parameter alist.
11235 (syms_of_frame): Intern and staticpro it.
11236
35277b03 112372007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
11238
11239 * macfns.c (x_create_tip_frame): Set terminal for frame.
11240
c7a4b95b
SM
112412007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
11242
26f9c7b7
SM
11243 * frame.c (Qenvironment): Remove.
11244 (syms_of_frame) <Qenvironment>: Don't initialize.
11245 (Fdelete_frame): Don't treat the `environment' param specially.
11246 * frame.h (Qenvironment): Don't declare.
11247 * callproc.c (set_initial_environment): Don't set unused frame param.
11248
c7a4b95b
SM
11249 * frame.c (Fframe_with_environment): Remove.
11250 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 11251
c7a4b95b
SM
11252 * lisp.h (Fframe_with_environment): Don't declare.
11253
c86f7377
JB
112542007-10-10 Juanma Barranquero <lekktu@gmail.com>
11255
11256 * indent.c (indent_tabs_mode, last_known_column)
11257 (last_known_column_modified): Make static.
11258 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
11259
d1b3a122
KY
112602007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
11261
11262 * puresize.h (BASE_PURESIZE): Increase to 1170000.
11263
d57d5a78
MR
112642007-10-09 Jason Rumney <jasonr@gnu.org>
11265
11266 * w32term.c (x_set_window_size): Disable code that attempts to tell
11267 Lisp code about a size change before it actually happens.
11268
81d3d428 112692007-10-09 Richard Stallman <rms@gnu.org>
91175673 11270
81d3d428
MB
11271 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
11272 return HANDLED_RETURN.
91175673 11273
1af74d06 112742007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 11275
1af74d06
MB
11276 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
11277 when there's an unread command event.
e0fead5d 11278
c7a4b95b 11279 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
11280 window autoselection act appropriately when leaving selected frame.
11281 (syms_of_frame): Initialize focus_follows_mouse.
11282 * frame.h (focus_follows_mouse): Extern it.
11283 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 11284 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
11285 * msdos.c (dos_rawgetc): Likewise.
11286 * w32term.c (w32_read_socket): Likewise.
11287 * xterm.c (handle_one_xevent): Likewise.
11288 * xdisp.c (syms_of_xdisp): In doc-string of
11289 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 11290
1af74d06 112912007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 11292
1af74d06
MB
11293 * macterm.c (mac_load_query_font): Fix missing return value.
11294 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
11295 Add BLOCK_INPUT.
c186cdb3 11296
1af74d06 112972007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 11298
1af74d06
MB
11299 * xdisp.c (get_window_cursor_type): Implement documented behavior
11300 for cursor-in-non-selected-windows = t.
c186cdb3 11301
1af74d06 113022007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 11303
1af74d06 11304 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 11305
1af74d06 113062007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 11307
1af74d06 11308 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 11309
1af74d06 11310 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 11311
1af74d06 113122007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 11313
c7a4b95b 11314 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 11315
1af74d06 113162007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 11317
1af74d06 11318 * buffer.c (Foverlays_at): Doc fix.
036e218d 11319
1af74d06 113202007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 11321
1af74d06 11322 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 11323
1af74d06 113242007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 11325
1af74d06 11326 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 11327
1af74d06 11328 * frame.h (enum): Remove trailing comma.
90647b07 11329
8993ad2e 113302007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 11331
1af74d06 11332 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 11333
1af74d06 113342007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 11335
1af74d06 11336 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 11337
1af74d06
MB
11338 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
11339 last-repeatable-command.
11340 (init_kboard): Initialize Vlast_repeatable_command.
11341 (command_loop_1): Set it to real_this_command unless that was
11342 bound to an input event.
11343 (mark_kboards): Mark it.
9fbc32aa 11344
1af74d06 113452007-10-08 Richard Stallman <rms@gnu.org>
036e218d 11346
1af74d06 11347 * eval.c (condition-case): Doc fix.
9fbc32aa 11348
1af74d06 113492007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 11350
1af74d06
MB
11351 * xfaces.c (tty_supports_face_attributes_p): Fix code
11352 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
11353 was copied and not edited.
9fbc32aa 11354
beb9f745
SM
113552007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
11356
c86f7377 11357 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
11358 escape sequences.
11359 * keyboard.h (struct kboard): Add Vinput_decode_map.
11360 Remove Vlocal_key_translation_map.
11361 * keyboard.c (read_key_sequence): Add support for input-decode-map.
11362 (init_kboard): Init input-decode-map.
11363 Replace local-key-translation-map back with key-translation-map.
11364 (syms_of_keyboard): Declare input-decode-map.
11365 Remove local-key-translation-map. Update docstrings.
11366 (mark_kboards): Mark Vinput_decode_map.
11367 Don't mark Vlocal_key_translation_map.
11368 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
11369 Replace local-key-translation-map back with key-translation-map.
11370 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
11371 Bind in input-decode-map rather than function-key-map.
11372
beb9f745
SM
11373 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
11374 This was made redundant by the previous introduction of XSETPVECTYPE.
11375
65342ae3
RS
113762007-10-09 Richard Stallman <rms@gnu.org>
11377
beb9f745 11378 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
11379
113802007-09-29 Richard Stallman <rms@gnu.org>
11381
11382 * eval.c (internal_condition_case_2, internal_condition_case_1)
11383 (internal_condition_case): Reenable abort if x_catching_errors ()
11384 to see if that really happens and why.
11385
6cff77fd
AS
113862007-10-06 Andreas Schwab <schwab@suse.de>
11387
11388 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
11389
bbe6f2aa
JB
113902007-10-04 Juanma Barranquero <lekktu@gmail.com>
11391
11392 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
11393
a390930c
SM
113942007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
11395
11396 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
11397
d6aa1876
SM
113982007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
11399
d0fdb6da
SM
11400 * window.h (struct window):
11401 * window.c (struct save_window_data, struct saved_window):
11402 * termhooks.h (struct terminal):
11403 * process.h (struct Lisp_Process):
11404 * frame.h (struct frame):
11405 * buffer.h (struct buffer):
11406 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
11407 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
11408 The size field of (pseudo)vectors is now unsigned.
11409 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
11410
878f97ff
SM
11411 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
11412 Turn `count' into an integer.
d0fdb6da 11413
878f97ff
SM
11414 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
11415 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
11416 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
11417 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
11418 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
11419
d2029e5b
SM
11420 * alloc.c (allocate_pseudovector): New fun.
11421 (ALLOCATE_PSEUDOVECTOR): New macro.
11422 (allocate_window, allocate_terminal, allocate_frame)
11423 (allocate_process): Use it.
11424 (mark_vectorlike): New function.
11425 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
11426 (mark_terminals): Use it.
11427 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
11428 (Fmake_byte_code): Use XSETPVECTYPE.
11429
11430 * frame.c (Fframe_parameters): Minor simplification.
11431
11432 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
11433
11434 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
11435
11436 * buffer.c (Fget_buffer_create, init_buffer_once):
11437 * lread.c (defsubr):
11438 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
11439
11440 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
11441 defined differently in the m/*.h files.
11442 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
11443 (XSETPVECTYPE): New macro.
11444 (XSETPSEUDOVECTOR): Use it.
11445
d6aa1876
SM
11446 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
11447 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 11448
d6aa1876
SM
11449 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
11450 * lread.c (defvar_per_buffer):
11451 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
11452
11453 * window.c (candidate_window_p): Only consider as visible frames that
11454 are on the same terminal.
11455
11456 * m/ibms390x.h (MARKBIT): Remove unused macro.
11457
88852d45
JB
114582007-10-01 Juanma Barranquero <lekktu@gmail.com>
11459
11460 * lread.c (Fload): Fix typo in docstring.
11461
880820fe 114622007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
11463
11464 * floatfns.c (Fexpt): Manually check for overflows, so that a power
11465 of a non-zero value can't yield zero.
11466
ed0c79c6
SM
114672007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
11468
b870aa61
SM
11469 * term.c (term_clear_mouse_face, term_mouse_highlight)
11470 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
11471
4c37a414
SM
11472 * print.c (safe_debug_print): Use XHASH.
11473
b9466edb
SM
11474 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
11475 Lisp elements such as tags.
11476 (XHASH): New macro.
11477 (EQ): Use it.
11478 (SREF, SSET, STRING_COPYIN): Use SDATA.
11479 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
11480
9c545a55
SM
11481 * alloc.c (mark_terminal): Remove left-over declaration.
11482 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
11483 (allocate_vectorlike): Remove type argument. Adjust callers.
11484 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
11485 Only handle the one remaining MEM_TYPE_VECTORLIKE.
11486
dafc79fa
SM
11487 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
11488 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
11489 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
11490 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
11491 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
11492 Use them.
11493
ed0c79c6
SM
11494 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
11495 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
11496 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
11497
3c81afd4
DN
114982007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11499
11500 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
11501 loaded by default.
11502
6178ce5e
SM
115032007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11504
4ce5ab77
SM
11505 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
11506 on this tty.
11507 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
11508
6178ce5e
SM
11509 * term.c (mouse_face_window): Rename from Qmouse_face_window.
11510 Update all users.
11511 (handle_one_term_event): Use Gpm_DrawPointer.
11512 (Fgpm_mouse_start): Rename from Fterm_open_connection.
11513 Signal errors instead of returning nil. Always return nil.
11514 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
11515 Make it a noop if gpm-mouse was not activated.
11516 (syms_of_term): Update names.
11517
bdf5f8ef
SM
115182007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
11519
75a8734b
SM
11520 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
11521 (init_sys_modes): Check that gpm_tty is the current tty.
11522
13559ee0
SM
11523 * alloc.c (allocate_terminal): Set the vector size to only count the
11524 lisp fields. Initialize those to nil.
11525 (mark_object): Don't treat terminals specially.
11526 (mark_terminal): Remove.
11527 (mark_terminals): Use mark_object instead.
11528
ff16b875
SM
11529 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11530 the GC to the beginning.
11531
83155776
SM
11532 * indent.h:
11533 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11534
bdf5f8ef
SM
11535 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11536
ec8705b6
JR
115372007-09-25 Jason Rumney <jasonr@gnu.org>
11538
11539 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11540
11541 * w32console.c (create_w32cons_output): Remove.
11542
11543 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11544
11545 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11546 (reset_sys_modes): Use reset_terminal_modes_hook.
11547
7351b242
SM
115482007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * eval.c (do_autoload): Don't output any message.
11551
16706228
JL
115522007-09-24 Juri Linkov <juri@jurta.org>
11553
11554 * emacs.c (standard_args): Change priority of "--no-splash"
11555 from 40 to 3. Add "--no-desktop" with the same priority.
11556
3ae2e3a3
RS
115572007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11558
11559 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11560 and optimize the case where they are all 1.
11561
7a58fb43
GM
115622007-09-23 Johannes Weiner <hannes@saeurebad.de>
11563
3ae2e3a3
RS
11564 * lisp.h (abs): Define if not defined.
11565 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11566 Don't define `abs', since it's defined in lisp.h.
7a58fb43 11567
78048085
EZ
115682007-09-22 Eli Zaretskii <eliz@gnu.org>
11569
c7a4b95b 11570 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
11571 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11572 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11573 (init_tty): Use DEV_TTY instead of "/dev/tty".
11574 [WINDOWSNT]: No need to protect from NAME arg being null.
11575
23d4cba5
DN
115762007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11577
11578 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11579 up the tty state.
11580
71f44e7a
SM
115812007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11582
11583 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11584 (gpm_tty): Change its type.
11585 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11586 (gpm_tty): Change its type and initialize it.
11587 (Fterm_open_connection): Check the frame is indeed a tty.
11588 Use the new gpm_tty.
11589 (Fterm_close_connection): Use the new gpm_tty.
11590 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11591 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11592
def7fa34
JB
115932007-09-21 Juanma Barranquero <lekktu@gmail.com>
11594
11595 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11596 underline_color, to draw strike-through.
11597
d2bb6598
SM
115982007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11599
273f164c
SM
11600 * lisp.h (allocate_terminal): Declare.
11601
ca2d5566
SM
11602 * window.c (candidate_window_p): Consider frames that are being placed
11603 by the user as somewhere between visible and iconified.
11604 (window_loop): Prefer windows on the current frame.
11605 (Fselect_window): Move the use of select-frame to the beginning so we
11606 can just delegate all the work (it'll call us back anyway).
11607
6168122d
SM
11608 * frame.c (Qdisplay_environment_variable):
11609 * frame.h (Qdisplay_environment_variable): Delete.
11610
c51842ec
SM
11611 * .gdbinit (xbacktrace): Print the arg's address rather than the value
11612 of the first arg, since that value may be a union.
11613
d2bb6598
SM
11614 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
11615 parameter rather than Qdisplay_environment_variable. If all else
11616 fails, look for DISPLAY in initial-environment.
11617
6f022c19
GM
116182007-09-21 Glenn Morris <rgm@gnu.org>
11619
11620 * Makefile.in (emacstool): Remove target.
f466320b 11621 (lisp, shortlisp): Remove termdev.elc.
6f022c19 11622
ea1bf8c7
GM
116232007-09-21 Markus Triska <markus.triska@gmx.at>
11624
d2bb6598 11625 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 11626
d30a25b3
SM
116272007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
11628
db699fc6
SM
11629 * callproc.c (getenv_internal_1): New function.
11630 (getenv_internal): Use it.
11631 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
11632
d2bb6598 11633 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
11634 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
11635 (Fset_terminal_parameter): Work with dead terminals as well.
11636 (Fmodify_terminal_parameters): Remove.
11637
d30a25b3
SM
11638 * terminal.c (get_terminal): Handle terminals.
11639 Make sure the terminal returned is live.
11640 (create_terminal): Use allocate_terminal.
11641 (mark_terminals): Move to alloc.c.
11642 (delete_terminal): Use terminal->name as liveness status.
11643 NULL out fields after freeing their contents.
11644 Don't deallocate the object.
11645 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
11646 rather than an int.
11647 (Fterminal_live_p): Accept non-integer arguments.
11648 (Fterminal_list): Return terminal objects rather than an ints.
11649
11650 * alloc.c (enum mem_type): New member for `terminal' objects.
11651 (allocate_terminal): New function.
d2bb6598
SM
11652 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
11653 Handle terminals.
d30a25b3
SM
11654 (mark_terminal): New fun.
11655 (mark_terminals): Move from terminal.c.
11656
11657 * term.c (get_tty_terminal): Don't treat output_initial specially.
11658 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
11659 (delete_tty): Use terminal->name as liveness status.
11660
11661 * termhooks.h (struct terminal): Make it into a pseudovector.
11662 Remove `deleted' replaced by checking `name's nullness.
11663
11664 * print.c (print_object): Handle terminals.
11665
11666 * lisp.h (enum pvec_type): New `terminal' pseudovector.
11667 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
11668
11669 * frame.c (make_terminal_frame):
11670 * keyboard.c (tty_read_avail_input):
11671 * w32term.c (x_delete_terminal):
11672 * xfns.c (Fx_create_frame, x_create_tip_frame):
11673 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
11674
eba25e7c
GM
116752007-09-20 Glenn Morris <rgm@gnu.org>
11676
11677 * process.c (Fmake_network_process): Doc fix.
11678
2a29c3c1
JR
116792007-09-19 Jason Rumney <jasonr@gnu.org>
11680
11681 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
11682
880820fe 116832007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
11684
11685 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
11686 Fix a C warning regarding variable constness.
11687
11688 * xterm.c (handle_one_xevent): Fix a C warning.
11689
334a1195
JR
116902007-09-18 Jason Rumney <jasonr@gnu.org>
11691
11692 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
11693
880820fe 116942007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
11695
11696 * gtkutil.c (gdpy_def): New variable.
11697 (xg_initialize): Initialize gdpy_def.
11698 (xg_display_close): If no other display exists, set gdpy_def to a
11699 new connection.
11700
880820fe 117012007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
11702
11703 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
11704 when we have no file name for the icon.
11705 (xg_tool_bar_expose_callback): Remove.
11706 (xg_create_tool_bar): Don't connect expose signal to
11707 xg_tool_bar_expose_callback.
11708 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
11709
4d580af2
AS
117102007-09-16 Andreas Schwab <schwab@suse.de>
11711
11712 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
11713 values instead of zapping them.
11714
aca946f3
GM
117152007-09-14 Glenn Morris <rgm@gnu.org>
11716
11717 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11718 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11719 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11720 scope and rename to omfib_buffer for clarity.
11721 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11722
25c460e5
KH
117232007-09-14 Kenichi Handa <handa@m17n.org>
11724
11725 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11726
09b69f01
JR
117272007-09-13 Jason Rumney <jasonr@gnu.org>
11728
11729 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11730
11731 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
11732
11733 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
11734 (mac_term_init): Call here instead, passing rif.
11735
442218db
GM
117362007-09-13 Glenn Morris <rgm@gnu.org>
11737
11738 * s/hpux.h: No longer define `static' as nothing.
11739
880820fe 117402007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
11741
11742 * callint.c (Fcall_interactively): Remove unused var `fun'.
11743
1971a872
RF
117442007-09-12 Romain Francoise <romain@orebokech.com>
11745
11746 * window.c (prefer_window_split_horizontally, display_buffer):
11747 Revert 2007-09-08 change.
11748
2d33f506
GM
117492007-09-12 Glenn Morris <rgm@gnu.org>
11750
585474ae 11751 * alloca.c: Remove file.
ca7af97a
GM
11752 * Makefile.in (alloca): Do not undef.
11753 (allocaobj, alloca.o): Remove.
11754 (otherobj): Remove allocaobj.
11755 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
11756 * regex.c (C_ALLOCA): Remove all references and code that was only
11757 used when this was defined.
11758 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
11759 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
11760 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
11761
2d33f506 11762 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
11763
11764 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
11765 (menu_grab_callback): All uses changed.
11766
11767 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11768 (x_reply_selection_request): All uses changed.
2d33f506 11769
18a4a65e
SM
117702007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11771
11772 * lread.c (load_warn_old_style_backquotes): Change message to look
11773 better when it appears in the middle of byte-compiler messages.
11774
47cc8819
DN
117752007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11776
b7ea0894
DN
11777 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11778
47cc8819
DN
11779 * xterm.c (x_create_terminal): Add comment.
11780
11781 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11782
5632bd0f
RS
117832007-09-10 Richard Stallman <rms@gnu.org>
11784
11785 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11786
880820fe 117872007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 11788
4bca9161
MC
11789 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11790 (DEFUN): Document `intspec', use it instead of `prompt'.
11791
04724b69
MC
11792 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11793
8a6d230a
MC
11794 * data.c (Finteractive_form): If the interactive specification starts
11795 with a `(', use it as a Lisp form.
11796
09fbdf6c
MC
11797 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11798 name and file modes.
11799
ccb5c14f
MC
11800 * callint.c (Fcall_interactively): Comment fixes.
11801
023accd6
SM
118022007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11805 and compiled functions.
11806
f26b9544
EZ
118072007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11808
11809 * window.c (prefer_window_split_horizontally): New variable.
11810 (display_buffer): Consider splitting window horizontally depending
11811 on prefer_window_split_horizontally.
11812
4d395425
EZ
118132007-09-08 Eli Zaretskii <eliz@gnu.org>
11814
97ddc760 11815 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 11816
08c1d235
SM
118172007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11818
179cef48
SM
11819 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11820
08c1d235
SM
11821 * frame.c (x_set_frame_parameters): Check number is positive before
11822 using XFASTINT.
11823
11824 * window.c (freeze_window_start): Don't presume selected_window holds
11825 a window object.
92f94a12 11826 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 11827
97ddc760 118282007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
11829
11830 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11831
90ab5c62
SM
118322007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11833
11834 * window.c (Vsplit_window_preferred_function): New var.
11835 (Fdisplay_buffer): Use it.
11836 (syms_of_window): Export, and initialize it.
11837
1ab2cd43
TTN
118382007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11839
11840 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11841
0b0515bc
GM
118422007-09-06 Glenn Morris <rgm@gnu.org>
11843
57fd5c55 11844 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
11845 * xselect.c (x_reply_selection_request) <cnt>: Move static
11846 variable to file scope.
11847
98594580
SM
118482007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11849
11850 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11851 consistent values of selected_frame and selected_window.
11852
0f4c7aef
JR
118532007-09-04 Jason Rumney <jasonr@gnu.org>
11854
11855 * w32console.c (initialize_w32_display): Zero unused hooks.
11856
e4019195
DN
118572007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11858
11859 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11860 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11861
bce179b5
JR
118622007-09-04 Jason Rumney <jasonr@gnu.org>
11863
a0236551
JR
11864 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11865 in w32console.c. Set up input. Remove XXX comments that have been
11866 confirmed as correct.
11867
a4926668
JR
11868 * s/ms-w32.h (MULTI_KBOARD): Define.
11869
953bf0dc
JR
11870 * w32console.c (one_and_only_w32cons): Remove.
11871 (initialize_w32_display): Take terminal argument.
11872
11873 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11874 initialize_w32_display.
11875 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11876
bce179b5
JR
11877 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11878
11879 * keyboard.c (discard_mouse_events): Discard it.
11880 (make_lispy_event): Translate it to a lisp event.
11881 (lispy_wheel_names): Add wheel-left and right events.
11882 (syms_of_keyboard): Enlarge wheel_syms.
11883
11884 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11885 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11886
11887 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11888
11889 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11890 from WM_MOUSEHWHEEL.
11891 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11892
11893 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11894 terminal.
11895
11896 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11897 keyboard for the terminal.
11898
92cd6a7c
DN
118992007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11900
11901 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11902 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11903 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11904 and resume-tty-function to resume-tty-hook.
11905 (Fsuspend_tty, Fresume_tty): Use new names.
11906
880820fe 119072007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
11908
11909 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11910 if it starts with "n:".
11911
880820fe 119122007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
11913
11914 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11915
6b8e474c
SM
119162007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11917
92d9c1d4
SM
11918 * frame.h:
11919 * frame.c (Qterm_environment_variable): Remove.
11920 (syms_of_frame): Don't init and staticpro it.
11921
92d9c1d4
SM
11922 * callproc.c (getenv_internal): Remove special case for $TERM.
11923
6b8e474c
SM
11924 * callproc.c (Vinitial_environment): New variable.
11925 (set_initial_environment): Initialize it.
11926 (syms_of_callproc): Declare it.
11927 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11928 TERM under which a process runs is never related to the TERM in which
11929 Emacs is running.
11930
0f1444e1
DN
119312007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11932
11933 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11934 * s/darwin.h: ... do it here.
11935
b8866860
SM
119362007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11937
11938 * lisp.h (set_initial_environment): Rename from set_global_environment.
11939
11940 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11941 removed by mistake on the multi-tty branch.
11942
11943 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11944 (Fmodify_frame_parameters): Return a value.
11945
11946 * image.c (png_load): Comment-out var only used in commented-out code.
11947
11948 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11949 before passing it to mark_object.
11950
11951 * xfaces.c (internal_resolve_face_name): Return a value.
11952 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11953
11954 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11955 (x_icon): Comment-out var only used in commented-out code.
11956
0a42be6d
RF
119572007-08-29 Romain Francoise <romain@orebokech.com>
11958
11959 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11960 QUIT hasn't been provided.
11961
8d9cc0b7
MB
119622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11963
11964 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 11965 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
11966 (set_initial_environment): Initialise Vprocess_environment.
11967
11968 * config.in: Disable multi-keyboard support on a mac.
11969
11970 * frame.c (Qterm_environment_variable)
11971 (Qdisplay_environment_variable): New variables.
11972 (syms_of_frame): Intern and staticpro them.
11973 (Fmake_terminal_frame): Disable output method test.
11974
11975 * frame.h: Declare them here.
11976
11977 * macfns.c (x_set_mouse_color): Get rif from the frame.
11978 (x_set_tool_bar_lines): Don't use updating_frame.
11979 (mac_window): Add 2 new parameters for consistency with other systems.
11980 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11981 frame parameters following what is done in X11 and w32. Don't use
11982 FRAME_MAC_DISPLAY_INFO.
11983 (Fx_open_connection, start_hourglass): Remove window-system check.
11984 (x_create_tip_frame): Get the keyboard from the terminal.
11985
11986 * macmenu.c: Reorder includes.
11987 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11988
11989 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11990 terminal parameter.
11991 (x_clear_frame): Add a frame parameter.
11992 (note_mouse_movement): Get rif from the frame.
11993 (mac_term_init): Initialize the terminal.
11994 (mac_initialize): Make static and move terminal initialization ...
11995 (mac_create_terminal): ... to this new function.
11996
11997 * macterm.h (struct mac_display_info): Add terminal.
7196c970 11998 (mac_initialize): Delete declaration.
8d9cc0b7 11999
381864b2 12000 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
12001
12002 * sysdep.c: Comment out text after #endif.
12003
12004 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12005 is defined. Better initialize ttys in windows. Use terminal
12006 specific mouse_position_hook.
12007
12008 * termhooks.h (union display_info): Add mac_display_info.
12009
b8866860
SM
12010 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12011 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
12012 frame parameters following what is done in X11.
12013
12014 * w32term.c (w32_initialize): Make static.
12015
12016 * xselect.c (x_handle_selection_clear): Only access
12017 terminal->kboard when MULTI_KBOARD is defined.
12018
12019 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12020 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12021
120222007-08-29 Jason Rumney <jasonr@gnu.org>
12023
12024 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12025 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12026
12027 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12028 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12029
12030 * keyboard.c (restore_kboard_configuration): Only define when
12031 MULTI_KBOARD defined.
12032
35277b03 12033 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
12034 (OBJ1): Add terminal.$(O)
12035
b8866860
SM
12036 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12037 Don't define function body.
8d9cc0b7
MB
12038 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12039
12040 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12041
12042 * w32.c (request_sigio, unrequest_sigio): Remove.
12043
12044 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12045 (w32con_clear_frame, w32con_clear_end_of_line)
12046 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12047 (w32con_delete_glyphs, w32con_set_terminal_window)
12048 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
12049 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12050 Add terminal arg.
8d9cc0b7
MB
12051 (PICK_FRAME): Remove.
12052 (w32con_write_glyphs): Use frame specific terminal coding.
12053 (one_and_only_w32cons): New global variable.
12054 (initialize_w32_display): Use it for storing hooks.
12055 (create_w32cons_output): New function.
12056
12057 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
12058 arg a frame.
12059
b8866860
SM
12060 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
12061 Set window_system.
8d9cc0b7
MB
12062 (x_set_tool_bar_lines): Don't use updating_frame.
12063 (Fx_create_frame): Set terminal and ref count.
12064 (Fx_open_connection): Remove window-system check.
12065
12066 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
12067
12068 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
12069 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
12070 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
12071 Add frame arg.
12072 (x_delete_terminal, w32_create_terminal): New functions.
12073 (w32_term_init): Create a terminal.
12074 (w32_initialize): Move terminal specific initialization to
12075 w32_create_terminal.
12076
b8866860 12077 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
12078 (w32_clear_rect, w32_clear_area): Use background from frame.
12079 (w32_display_info): Add terminal.
12080 (w32_sys_ring_bell, x_delete_display): Declare here.
12081
12082 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
12083
12084 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
12085
120862007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
12087
12088 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
12089 Fix get_named_tty calls for the controlling tty.
12090
120912007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
12092
12093 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
12094
120952007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
12096
12097 * term.c (tty_insert_glyphs): Add missing first parameter.
12098
880820fe 120992007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 12100
b8866860
SM
12101 * buffer.c (Fbuffer_list, Fbury_buffer):
12102 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
12103
12104 * cm.c (current_tty): New variable, for cmputc().
12105 (cmputc): Use it.
12106 (cmcheckmagic): Add tty parameter, look up terminal streams there.
12107 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
12108 (cmgoto): Add tty parameter. Pass it on to calccost().
12109 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
12110
12111 * cm.h (emacs_tputs): New macro to set current_tty, and then call
12112 tputs().
12113 (current_tty): New variable, for cmputc().
12114 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
12115
12116 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
12117 (internal_condition_case, internal_condition_case_1)
12118 (internal_condition_case_2): Don't abort when x_catching_errors.
12119
12120 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
12121 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
12122 prevent crashes caused by bogus longjmps in read_char.
12123
12124 * keymap.h (Fset_keymap_parent): Add EXFUN.
12125
12126 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
12127 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12128 Remove redundant definition.
12129
b8866860
SM
12130 * macfns.c (x_set_mouse_color, x_make_gc):
12131 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 12132
b8866860
SM
12133 * w32term.c (x_free_frame_resources):
12134 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12135 (w32_initialize): Use the accessor macros for terminal characteristics.
12136
12137 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
12138 Use the accessor macros for terminal characteristics.
12139 * msdos.c (internal_terminal_init): Use the accessor macros for
12140 terminal characteristics.
b8866860
SM
12141 (ScreenVisualBell, internal_terminal_init):
12142 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12143
12144 * termopts.h (no_redraw_on_reenter): Declare.
12145
12146 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 12147 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 12148 (Fgarbage_collect): Call them.
03f06e5c 12149 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
12150
12151 * prefix-args.c: Include stdlib.h for exit.
12152
12153 * syssignal.h: Add comment.
12154
12155 * indent.c: Include stdio.h.
12156
12157 * window.h (Vinitial_window_system): Declare.
12158 (Vwindow_system): Delete declaration.
12159
12160 * fontset.c (Finternal_char_font): Use FRAME_RIF.
12161
12162 * image.c (lookup_image): Don't initialize `c' until the xasserts
12163 have been run.
12164
12165 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
12166 FRAME_FOREGROUND_PIXEL.
12167
12168 * print.c (print_preprocess): Don't lose print_depth levels while
12169 iterating.
12170
b8866860
SM
12171 * widget.c (update_from_various_frame_slots):
12172 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12173
12174 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
12175 frames.
12176 (window_internal_height): Remove bogus make_number call.
b8866860 12177 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
12178
12179 * fileio.c (Fread_file_name): Update comment.
12180
b8866860
SM
12181 * callint.c (Fcall_interactively):
12182 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
12183 Make sure it is correctly unwound.
12184
12185 * xsmfns.c (x_session_close): New function.
12186
03f06e5c 12187 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
12188 Delete declarations.
12189
12190 * xterm.h: Remove declaration for x_fully_uncatch_errors.
12191 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 12192 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 12193 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
12194
12195 * lread.c: Include setjmp.h. Update declaration of `read_char'.
12196 (read_filtered_event): Call `read_char' with a local
12197 `wrong_kboard_jmpbuf'.
12198
b8866860
SM
12199 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
12200 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
12201
12202 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
12203 systems.
12204
b8866860 12205 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 12206 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 12207 (Fset_quit_char): EXFUN.
03f06e5c 12208 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
12209 (init_sys_modes, reset_sys_modes): Update prototypes.
12210 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
12211
b8866860
SM
12212 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
12213 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 12214 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 12215 Delete declarations.
03f06e5c
JB
12216 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
12217 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
12218 New declarations.
12219
12220 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
12221 already does that during init_display(). Call syms_of_keymap
b8866860
SM
12222 before syms_of_keyboard. Call `syms_of_terminal'.
12223 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
12224 (shut_down_emacs): Call reset_all_sys_modes() instead of
12225 reset_sys_modes().
12226
12227 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
12228 (internal_resolve_face_name, resolve_face_name_error): New functions.
12229 (resolve_face_name): Protect against loops and errors thrown by Fget.
12230 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
12231 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12232
12233 * scroll.c: Replace CURTTY() with local variables throughout the
12234 file (where applicable).
12235 (calculate_scrolling, calculate_direct_scrolling)
12236 (scrolling_1, scroll_cost): Use the accessor macros for terminal
12237 characteristics.
12238
12239 * keymap.c (Vfunction_key_map): Remove.
b8866860 12240 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
12241 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12242 (Vkey_translation_map): Remove.
12243 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 12244 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
12245 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12246 Update for terminal-local key-translation-map.
12247
12248 * Makefile.in (callproc.o): Update dependencies.
12249 (lisp, shortlisp): Add termdev.elc.
12250 (obj): Add terminal.o.
12251 (terminal.o): Add dependencies.
12252 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12253 (data.o, fns.o): Add termhooks.h dependency.
12254 (SOME_MACHINE_LISP): Add dnd.elc.
12255 (minibuf.o): Fix typo.
12256 Update dependencies.
12257
12258 * data.c (do_symval_forwarding, store_symval_forwarding)
12259 (find_symbol_value): Use the selected frame's keyboard, not
12260 current_kboard.
12261
12262 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
12263 Vwindow_system.
12264
12265 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
12266 Fmenu_bar_open.
12267 (syms_of_xmenu): Update defsubr.
12268 (mouse_position_for_popup, Fx_popup_menu)
12269 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
12270 (set_frame_menubar, free_frame_menubar)
12271 (create_and_show_popup_menu, xmenu_show, )
12272 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
12273 an X frame.
12274
12275 * xselect.c (x_own_selection): Abort if not an X frame.
12276 (some_frame_on_display): Check if it is an X frame.
12277 (x_handle_selection_clear): Deal with MULTI_KBOARD.
12278
12279 * coding.c: Include frame.h and termhooks.h.
03f06e5c 12280 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
12281 (Fset_terminal_coding_system_internal)
12282 (Fset_keyboard_coding_system_internal)
12283 (Fkeyboard_coding_system)
03f06e5c
JB
12284 (Fterminal_coding_system): Add a terminal parameter.
12285 Get terminal_coding from the terminal.
8d9cc0b7
MB
12286 (init_coding_once): Don't call setup_coding_system here.
12287
12288 * dispextern.h (set_scroll_region, turn_off_insert)
12289 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
12290 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 12291 (delete_tty, updating_frame)
8d9cc0b7
MB
12292 (produce_special_glyphs, produce_glyphs, write_glyphs)
12293 (insert_glyphs): Remove.
12294 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 12295 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 12296 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
12297
12298 * frame.h (enum output_method): Add output_initial.
12299 (struct x_output): Delete.
b8866860
SM
12300 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12301 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
12302 (tty_display): Delete.
12303 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 12304 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
12305 (union output_data): Add tty.
12306 (FRAME_KBOARD): Get the kboard from the terminal.
12307 (FRAME_INITIAL_P): New macro.
12308 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
12309 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
12310 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
12311 New declarations.
8d9cc0b7
MB
12312
12313 * termchar.h (tty_output, tty_display_info): New structures.
12314 (tty_list): Declare.
12315 (FRAME_TTY, CURTTY): New macros.
12316 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
12317 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
12318 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
12319 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
12320
12321 * callproc.c: Include frame.h and termhooks.h, for terminal
12322 parameters.
12323 (add_env): New function.
12324 (child_setup): Use it.
b8866860 12325 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
12326 (getenv_internal): Fix get_terminal_param call.
12327 (Fgetenv_internal, egetenv): Update doc.
12328 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 12329 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
12330 strings.
12331 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
12332 (getenv_internal): Add terminal parameter.
12333 Handle Vlocal_environment_variables.
8d9cc0b7
MB
12334 (Fgetenv_internal): Add terminal parameter.
12335 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 12336 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
12337 (set_initial_environment): Rename from set_global_environment.
12338 Store Emacs environment in initial frame parameter.
12339
12340 * xdisp.c (redisplay_internal): Update references to
12341 `previous_terminal_frame'.
12342 (display_mode_line, Fformat_mode_line): Replace calls to
12343 `push_frame_kboard' with `push_kboard'.
12344 (get_glyph_string_clip_rects): Add extra parentheses and
12345 braces to prevent compiler warnings.
12346 (calc_pixel_width_or_height): Add xassert to check that the
12347 frame is alive. Don't call `lookup_image' on a termcap frame.
12348 (message2_nolog, message3_nolog, redisplay_internal)
12349 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
12350 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
12351 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
12352 (Fx_display_pixel_width, Fx_display_pixel_height)
12353 (Fx_display_planes, Fx_display_color_cells)
12354 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
12355 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
12356 (Fx_display_backing_store, Fx_display_visual_class)
12357 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 12358 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
12359
12360 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
12361 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
12362 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12363 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
12364 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
12365 terminal that is being deleted.
12366 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 12367 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
12368 (Fx_close_connection, Fx_synchronize): Unify argument names with
12369 the rest of the DEFUNs.
12370
12371 * dispnew.c (Fsend_string_to_terminal): Update call to
12372 `get_tty_terminal'.
12373 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 12374 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
12375 FRAME_TERMCAP_P and FRAME_TTY.
12376 (window_change_signal): Don't believe width/height values that are
12377 impossibly small.
12378 (Vinitial_window_system): Rename from Vwindow_system.
12379 (termscript, Wcm, rif): Delete.
12380
12381 * termhooks.h (struct terminal): New struct containing the
12382 previously global text display hooks and new members NAME,
12383 DELETED and PARAM_ALIST.
12384 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
12385 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
12386 (FRAME_RIF): New macros.
12387 (get_terminal_param, get_device): New declarations.
12388 (termscript): Delete declaration.
12389
12390 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
12391 (XTflash, x_free_frame_resources, x_scroll_bar_create)
12392 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
12393 FRAME_FOREGROUND_PIXEL.
12394 (x_fully_uncatch_errors): Disable definition.
12395 (x_scroll_bar_expose): Fix reference to foreground pixel.
12396 (XTread_socket): Disable loop on all X displays.
12397 (x_delete_terminal): Don't set terminal->deleted and let
12398 delete_terminal delete the frames on the terminal.
12399 (x_delete_display): Doc update to reflect changes in
12400 delete_terminal.
12401 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
12402 (deleting_tty): Remove old variable.
12403 (Fsuspend_tty): Call clear_tty_hooks.
12404 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
12405 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
12406 errors on X frames.
12407 (x_catch_errors_unwind): Abort if x_error_message is NULL.
12408 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 12409 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
12410 (XTset_terminal_modes, XTreset_terminal_modes)
12411 (XTread_socket, x_connection_closed, x_term_init)
12412 (x_term_init, x_delete_display): Add terminal parameter.
12413 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
12414 X connections.
12415
bf380f53
GM
12416 * frame.c: Include termchar.h.
12417 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
12418 (Qwindow_system, Qenvironment, Qterm_environment_variable)
12419 (Qdisplay_environment_variable): New vars.
12420 (Fframep): Deal with output_initial.
12421 (Fframe-live-p): Doc fix.
12422 (Fwindow-system): New function.
8d9cc0b7
MB
12423 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
12424 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 12425 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 12426 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
12427 (Fmake_terminal_frame): Handle NULL tty names correctly.
12428 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
12429 (Fdelete_frame): Remove unused variable `count'. Don't allow other
12430 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 12431 (Fframe_with_environment): New function.
b8866860 12432 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
12433 (get_future_frame_param): New function.
12434 (Fmake_terminal_frame): Use it.
2d33f506 12435 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
12436
12437 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
12438 * sysdep.c (reset_sys_modes): Update for renames.
12439
12440 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 12441 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
12442 (syms_of_keyboard): Defsubr them.
12443 (Fset_input_meta_mode, Fset_quit_char): New functions.
12444 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
12445 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
12446 parameter. Use it in call to `read_char'.
b8866860
SM
12447 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
12448 Set wrong_kboard_jmpbuf correctly in recursive calls.
12449 Use current_kboard to access Vkeyboard_translate_table.
12450 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
12451 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
12452 Update longjmp invocations. Remember the original current_kboard,
12453 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
12454 changes it. Comment out unnecessary calls to
12455 `record_single_kboard_state' and `any_kboard_state'.
12456 Update recursive calls.
8d9cc0b7
MB
12457 (wrong_kboard_jmpbuf): Remove global variable.
12458 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
12459 Handle deleted interrupted_kboards correctly; that is a legal
12460 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 12461 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
12462 (any_kboard_state, single_kboard_state)
12463 (push_frame_kboard): Remove function.
12464 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
12465 been deleted. Remove unused variable. Help debugging by not
12466 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
12467 kboard of the selected frame when the stored kboard object has
12468 been deleted before pop_kboard.
12469 (temporarily_switch_to_single_kboard): Change first parameter to a
12470 frame pointer. Throw an error when caller wants to change kboards
12471 while in single_kboard mode. Don't push_kboard if we weren't in
12472 single kboard state. Don't pop_kboard if we popped into any
12473 kboard state.
12474 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 12475 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
12476 up single_kboard mode.
12477 (Frecursive_edit): Switch to single_kboard mode only in nested
12478 command loops.
b8866860
SM
12479 (cmd_error, command_loop, command_loop_1, timer_check):
12480 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
12481 `record_single_kboard_state'.
12482 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 12483 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
12484 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
12485 `fatal_error_signal'.
12486 (record_single_kboard_state): Don't push_kboard if we weren't in
12487 single kboard state. Don't pop_kboard if we popped into any
12488 kboard state.
12489 (push_frame_kboard): Rename to push_kboard.
12490 (kbd_buffer_get_event): Use FRAME_TERMINAL.
12491 (read_avail_input): Read input from all terminals.
12492 (mark_kboards): Also mark Vkeyboard_translate_table.
12493 (kbd_buffer_store_event_hold): Simplify condition.
12494 (read_key_sequence): Reinitialize fkey and keytran at each replay.
12495 (Vkeyboard_translate_table): Move to struct kboard.
12496 (init_kboard): Initialize Vkeyboard_translate_table.
12497 (syms_of_keyboard): Use DEFVAR_KBOARD to define
12498 Vkeyboard_translate_table. Update doc strings. Update docs of
12499 local-function-key-map and function-key-map.
12500
12501 * terminal.c: New file.
12502
12503 * term.c: Include errno.h.
12504 (Vring_bell_function, device_list, initial_device)
12505 (next_device_id, ring_bell, update_begin, update_end)
12506 (set_terminal_window, cursor_to, raw_cursor_to)
12507 (clear_to_end, clear_frame, clear_end_of_line)
12508 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
12509 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
12510 (syms_of_term): Move their initialization to terminal.c.
12511 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
12512 (Ftty_display_color_cells)
12513 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 12514 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
12515 (init_tty, maybe_fatal): New functions.
12516 (Ftty_type): Return nil if terminal is not on a tty instead of
12517 throwing an error. Doc update.
12518 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 12519 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
12520 (delete_tty): Use terminal->deleted.
12521 (tty_set_terminal_modes): Rename from set_terminal_modes.
12522 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
12523 (set_scroll_region): Rename to `tty_set_scroll_region'.
12524 (turn_on_insert): Rename to `tty_turn_on_insert'.
12525 (turn_off_insert): Rename to `tty_turn_off_insert'.
12526 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
12527 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
12528 (toggle_highligh): Rename to `tty_toggle_highlight'.
12529 (background_highlight): Rename to `tty_background_highlight'.
12530 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12531 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12532 (tty_set_scroll_region, tty_background_highlight)
12533 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12534 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12535 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12536 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12537 Add static modifier.
12538 (tty_reset_terminal_modes, tty_set_terminal_window)
12539 (tty_set_scroll_region, tty_background_highlight)
12540 (tty_highlight_if_desired, tty_cursor_to)
12541 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12542 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12543 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12544 renames.
12545
880820fe 125462007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
12547
12548 * keyboard.c: Qrtl is new.
12549 (parse_tool_bar_item): Handle :rtl keyword.
12550 (syms_of_keyboard): Intern :rtl keyword.
12551
12552 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12553
12554 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12555 so no Lisp code is executed.
12556 (file_for_image, find_rtl_image): New functions.
1f204af3 12557 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
12558 (update_frame_tool_bar): If direction is RTL, use RTL image if
12559 defined. Use Gtk stock images if defined.
12560
83cc8d35
YM
125612007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12562
12563 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12564 for nonexistent or zero-width glyph in composition glyph.
12565
e60c4e15
SM
125662007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12567
d7e2a28f
SM
12568 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12569
e60c4e15
SM
12570 * xdisp.c (Finvisible_p): New function.
12571 (syms_of_xdisp): defsubr it.
12572
ee163e6d
JB
125732007-08-24 Juanma Barranquero <lekktu@gmail.com>
12574
12575 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12576 Doc fixes.
12577
90fa408d
YM
125782007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12579
35277b03 12580 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 12581
cac4219c
MR
125822007-08-24 Martin Rudalics <rudalics@gmx.at>
12583
12584 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12585 whether decoding has modified buffer contents.
12586
5fc9fdeb
JR
125872007-08-24 Jason Rumney <jasonr@gnu.org>
12588
12589 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12590 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12591 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12592 (init_svg_functions) [HAVE_NTGUI]: New function.
12593 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12594 (svg_load_image): Use them.
12595 (svg_load_image) [HAVE_NTGUI]: Implement background.
12596
93b23406
YM
125972007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12598
12599 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
12600 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
12601 (LIBX): Remove @RSVG_LIBS@.
12602 (LIBES): Add $(RSVG_LIBS).
12603
12604 * image.c (svg_load_image): Blend with specified background if exists.
12605 Use IMAGE_BACKGROUND. Add Mac OS Support.
12606
12607 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
12608 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
12609 Remove macros.
12610 [MAC_OSX] (socket_callback): Do nothing.
12611 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
12612 ReceiveNextEvent.
12613 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
12614 socket_callback.
12615 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
12616
2467875c
GM
126172007-08-22 Glenn Morris <rgm@gnu.org>
12618
ff8da443 12619 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 12620
4ab27a43
GM
126212007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
12622
12623 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 12624
666e0eda
GM
12625 * image.c: Add support for SVG images. Some additional comments
12626 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
12627 (svg_image_p): New function to test for SVG image.
12628 (svg_load): New function to load SVG image.
12629 (svg_load_image): New function, helper for svg_load.
12630 (Qsvg): New Lisp_object.
12631 (svg_keyword_index): New enum.
12632 (svg_format): New static `image_keyword' struct.
12633 (svg_type): New static `image_type' struct.
12634 (librsvg/rsvg.h): Include it.
4ab27a43 12635
b636b4c1
SM
126362007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12637
12638 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
12639
9ecb827b
SM
126402007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12641
1d064697
SM
12642 * lread.c (Qold_style_backquotes): New var.
12643 (syms_of_lread): Init and staticpro it.
12644 (load_warn_old_style_backquotes): New fun.
12645 (Fload): Use them to warn about old style backquotes.
12646 (end_of_file_error, Fload): Remove unused vars.
12647
5772ed4b
SM
12648 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
12649
9ecb827b 12650 * lread.c (Vold_style_backquotes): New var.
5aa273b0 12651 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
12652 (read1): Set it when we find an old-style (back)quote.
12653
32e1c7b1
JR
126542007-08-22 Jason Rumney <jasonr@gnu.org>
12655
12656 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
12657
b8fa755b
KY
126582007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
12659
12660 * puresize.h (BASE_PURESIZE): Increase to 1140000.
12661
1283140e
RS
126622007-08-19 Richard Stallman <rms@gnu.org>
12663
12664 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
12665
2c4685ee
AS
126662007-08-19 Andreas Schwab <schwab@suse.de>
12667
12668 * alloc.c (pure): Round PURESIZE up.
12669
880820fe 126702007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
12671
12672 * xterm.c (handle_one_xevent): Remove check that mouse click is in
12673 active frame.
12674
6e33efc4
RS
126752007-08-16 Richard Stallman <rms@gnu.org>
12676
12677 * eval.c (Fcommandp): Add parens to clarify.
12678
12679 * minibuf.c (Fall_completions): Use enum for type of table.
12680
12681 * emacs.c (USAGE2): Improve text.
12682
fcf8ff2e
GM
126832007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
12684
5205ee62
GM
12685 * term.c (tty_default_color_capabilities): Declare static
12686 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 12687
880820fe 126882007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
12689
12690 * gtkutil.c (update_frame_tool_bar): Use -1 as index
12691 to gtk_toolbar_insert.
12692
4a181359
SM
126932007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
12694
1bc99c9c
SM
12695 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
12696
4a181359
SM
12697 * insdel.c (reset_var_on_error): New fun.
12698 (signal_before_change, signal_after_change):
12699 Use it to reset (after|before)-change-functions to nil in case of error.
12700 Bind inhibit-modification-hooks to t.
12701 Don't bind (after|before)-change-functions to nil while they run.
12702
6c28435c
YM
127032007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12704
12705 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
12706 filling pixmap with stippled background.
12707
ad3b3e02
YM
127082007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12709
12710 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
12711 Don't use invisible frame as parent window for repositioning.
12712
a22dec27
SM
127132007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
12714
12715 * print.c (new_backquote_output): Rename from old_backquote_output.
12716 (print): Inverse its logic (according to its name) so as to match the
12717 behavior of new_backquote_flag in lread.c.
12718
7b7d07bb
YM
127192007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12720
12721 * gmalloc.c (posix_memalign): New function.
12722
12723 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12724 ActivateControl/DeactivateControl here.
12725 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12726 frame-notice-user-settings is non-nil.
12727 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12728 for kEventParamFMFontStyle.
12729 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12730 mac_pass_command_to_system and mac_pass_control_to_system here.
12731 (XTread_socket): Call ActivateControl/DeactivateControl here.
12732 (XTread_socket) [TARGET_API_MAC_CARBON]:
12733 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
12734 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
12735 for window repositioning.
7b7d07bb 12736
22e9fe24
GM
127372007-08-08 Glenn Morris <rgm@gnu.org>
12738
12739 * Replace `iff' in doc-strings and comments.
12740
ae494350
CY
127412007-08-07 Chong Yidong <cyd@stupidchicken.com>
12742
12743 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
12744
6f2528d8
MR
127452007-08-07 Martin Rudalics <rudalics@gmx.at>
12746
12747 * fileio.c (Finsert_file_contents): Run format-decode and
12748 after_insert_file_functions on entire buffer when REPLACE is
12749 non-nil and inhibit modification_hooks and point_motion_hooks.
12750 For consistency, run after_insert_file_functions iff something
12751 got inserted. Move signal_after_change and update_compositions
12752 after code running after_insert_file_functions. Make sure that
6b8e474c 12753 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 12754
3ceeb306
YM
127552007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12756
12757 * emacs.c (main)
12758 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
12759 Call malloc_enable_thread on interactive startup.
12760
12761 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
12762 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
12763 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
12764 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
12765 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12766 New functions.
12767
ca5e6fd5
CY
127682007-08-06 Chong Yidong <cyd@stupidchicken.com>
12769
32bfce5d
CY
12770 * xdisp.c (redisplay_window): When restoring original buffer
12771 position, make sure it is still valid.
12772
ca5e6fd5
CY
12773 * image.c (png_load): Ignore png-supplied background color.
12774
a5b11587
YM
127752007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12776
12777 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12778 Use kCFAbsoluteTimeIntervalSince1970.
12779
12780 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12781 New variable.
12782 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12783 event loop should be quit.
12784 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12785 Quit dialog event loop if quit_dialog_event_loop is set.
12786
12787 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12788 (Selection): New typedef. Use instead of ScrapRef.
12789 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12790 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12791 (mac_clear_selection): Rename from clear_scrap.
12792 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 12793 scrap_has_target_type. All uses changed.
a5b11587
YM
12794 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12795 (mac_selection_has_target_p): New functions.
12796 (mac_put_selection_value): Rename from put_scrap_string.
12797 (mac_get_selection_value): Rename from get_scrap_string.
12798 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12799 (put_scrap_private_timestamp, scrap_has_target_type)
12800 (get_scrap_private_timestamp): Remove functions.
12801 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12802 (x_own_selection, x_get_local_selection):
12803 Use mac_valid_selection_value_p.
12804 (x_own_selection): Don't use put_scrap_private_timestamp.
12805 Record OWNERSHIP-INFO into Vselection_alist instead.
12806 (x_get_local_selection): Don't check type if request is local.
12807 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12808 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12809
880820fe 128102007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
12811
12812 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12813 add comment explaining why.
12814
73ff9d42
RS
128152007-08-03 Richard Stallman <rms@gnu.org>
12816
12817 * fileio.c (Fvisited_file_modtime): Use make_time.
12818
54ed9a2d 128192007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
12820
12821 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12822 build.
12823
65a9c8e2
SM
128242007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12825
12826 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12827
c5925799
KY
128282007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12829
12830 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12831
adef3de7
RS
128322007-07-30 Richard Stallman <rms@gnu.org>
12833
12834 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12835
880820fe 128362007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
12837
12838 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12839
a10421a1
NR
128402007-07-28 Nick Roberts <nickrob@snap.net.nz>
12841
12842 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12843 remote default-directory.
12844
12845 * buffer.c (mode-line-format): Update doc string.
12846
0cb1ae20
YM
128472007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12848
12849 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12850 scroll bar gap.
12851 (x_scroll_bar_create): Set bar->fringe_extended_p.
12852 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12853 on frame edge. Check fringe background extension. Don't clear
12854 extended fringe background area.
12855
12856 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12857 (w32_fill_area): Enclose multiple statements with do ... while (0).
12858
12859 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12860 Extend fringe background to scroll bar gap.
12861 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12862 Set bar->fringe_extended_p.
12863 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12864 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12865 background extension. Don't clear extended fringe background area.
12866
12867 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12868 New member fringe_extended_p.
12869
cacc7b51
GM
128702007-07-25 Glenn Morris <rgm@gnu.org>
12871
12872 * Relicense all FSF files to GPLv3 or later.
12873
12874 * COPYING: Switch to GPLv3.
12875
89835619
SM
128762007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12877
c4f46926
SM
12878 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12879
12880 * data.c (Finteractive_form): Check for the presence of an
12881 `interactive-form' symbol property more thoroughly.
12882
12883 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
12884 present, analogous to the function-documentation property.
12885
ee04257d
JR
128862007-07-24 Jason Rumney <jasonr@gnu.org>
12887
12888 * w32fns.c (x_real_positions): Get real position from OS instead of
12889 calculating it.
12890
50624218
JR
128912007-07-23 Jason Rumney <jasonr@gnu.org>
12892
12893 * filelock.c (current_lock_owner): Allow for @ sign in username.
12894
3650f60e
NR
128952007-07-22 Nick Roberts <nickrob@snap.net.nz>
12896
12897 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12898 remote default-directory.
12899
12900 * buffer.c (mode-line-format): Describe above case in doc string.
12901
1e899515 129022007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 12903
75be5258
EZ
12904 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12905 Define if not defined.
12906
2b6e2f4d
JR
129072007-07-18 Jason Rumney <jasonr@gnu.org>
12908
12909 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12910
23dacf80
JB
129112007-07-18 Richard Stallman <rms@gnu.org>
12912
12913 * data.c (Fsetq_default): Doc fix.
12914
12915 * eval.c (Fsetq): Doc fix.
12916
129172007-07-18 Juanma Barranquero <lekktu@gmail.com>
12918
12919 * coding.c (Ffind_operation_coding_system):
12920 * eval.c (For, Fand): Doc fixes.
880820fe 12921 Reported by Johan Bockgård.
23dacf80 12922
880820fe 129232007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 12924
23dacf80 12925 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 12926
23dacf80 12927 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
12928
12929 * xterm.c (x_ewmh_activate_frame): New function.
12930 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12931
71ec17e6
MR
129322007-07-17 Martin Rudalics <rudalics@gmx.at>
12933
12934 * window.c (Fdisplay_buffer): If largest or LRU window is the
12935 only window, split it even if it is not eligible for splitting.
12936 This restores the original behavior broken by the 2007-07-15
12937 change.
12938
e9818042
GM
129392007-07-17 Glenn Morris <rgm@gnu.org>
12940
12941 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
12942 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12943 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
12944 constituents. Doc fix.
12945
e6fca843
SM
129462007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12947
12948 * process.c (Fstart_process, Fmake_network_process)
12949 (read_process_output): Fix up last changes.
12950
b5d2b4ab
EZ
129512007-07-16 Eli Zaretskii <eliz@gnu.org>
12952
12953 * makefile.w32-in (clean): Don't delete *~.
12954
413a79ad
AS
129552007-07-16 Andreas Schwab <schwab@suse.de>
12956
12957 * window.c (Fdisplay_buffer): Use NILP.
12958 (Fset_window_scroll_bars): Likewise.
12959
f1de8c77
MR
129602007-07-15 Martin Rudalics <rudalics@gmx.at>
12961
12962 * window.c (window_min_size_2): New function.
12963 (window_min_size_1, size_window, Fdisplay_buffer)
12964 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12965 windows without mode- or header-lines when window-min-height is
12966 too small.
12967 (size_window): Reset nodelete_p after testing it, following an
12968 earlier note by Kim F. Storm.
12969 (display_buffer): Do not set split_height_threshold to twice the
12970 value of window_min_height to avoid changing the value of a
12971 customizable variable. Rather explicitly check whether the
12972 height of the window that shall be splitted is at least as large
12973 as split_height_threshold.
1af74d06
MB
12974 (Fwindow_full_width_p): New defun.
12975 (syms_of_window): Defsubr it.
d31053f9 12976
1af74d06 12977 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 12978
5e1ab613
JR
129792007-07-14 Jason Rumney <jasonr@gnu.org>
12980
12981 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12982
f01cbfdd
RS
129832007-07-14 Richard Stallman <rms@gnu.org>
12984
12985 * eval.c (maybe_call_debugger): New function.
12986 (find_handler_clause): Use maybe_call_debugger.
12987 Call it when the handler says `debug'.
12988 Eliminate DEBUGGER_VALUE_PTR.
12989 (Fsignal): Eliminate debugger_value.
12990 (Qdebug): New variable.
12991 (syms_of_eval): Initialize it.
12992
1bab435a
JB
129932007-07-14 Juanma Barranquero <lekktu@gmail.com>
12994
12995 * eval.c (Fprogn):
12996 * keyboard.c (Ftrack_mouse):
12997 * print.c (Fwith_output_to_temp_buffer):
12998 * window.c (Fsave_window_excursion): Doc fix.
12999
be436d23
SM
130002007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13001
13002 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13003
60f0fb11
SM
130042007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13005
13006 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13007 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13008 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13009 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13010 Remove unused encoding_carryover.
13011 * process.c: Adjust all functions accordingly.
13012
d8b18043
RS
130132007-07-12 Richard Stallman <rms@gnu.org>
13014
13015 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13016
d5781bb6
JR
130172007-07-11 Jason Rumney <jasonr@gnu.org>
13018
13019 * makefile.w32-in (LIBS): Include OLE32.
13020
13021 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13022 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13023
5bb7dfee
SM
130242007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
13025
13026 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13027 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13028 from a Lisp_Object into a bare pointer.
13029 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13030 Adjust the code correspondingly.
13031
13032 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13033
13034 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13035 (term_show_mouse_face): Remove unused var `j'.
13036 (handle_one_term_event): Remove unused vars `i' and `j'.
13037 Don't cast return value of ttyname since it's not necessary.
13038
a1be1ce8
SM
130392007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
13040
5045e68e
SM
13041 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13042 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13043
8071c00f
SM
13044 * fns.c (map_char_table): Use an array of int for `indices' rather than
13045 an array of Lisp_Objects (which are only ever integers anyway).
13046 (Fmap_char_table): Update caller.
13047 * lisp.h: Update prototype.
13048 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13049 * fontset.c (Ffontset_info):
13050 * casetab.c (set_case_table): Update callers.
13051
13052 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
13053
fab84e3c
SM
13054 * keymap.c (struct accessible_keymaps_data)
13055 (struct where_is_internal_data): New structures.
13056 (accessible_keymaps_1, where_is_internal_1): Use them to change
13057 interface to adhere to the one used by map_keymap.
13058 (Faccessible_keymaps, where_is_internal): Use map_keymap.
13059 (accessible_keymaps_char_table, where_is_internal_2): Remove.
13060
a1be1ce8
SM
13061 * keymap.h (map_keymap_function_t): More informative prototype.
13062
ef887810
RS
130632007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
13064
13065 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
13066 (looking_at_1): Don't change search_regs and last_thing_searched
13067 if `inhibit-changing-match-data' is non-nil.
13068 (string_match_1, search_buffer, set_search_regs): Likewise.
13069 (syms_of_search): Add Lisp level definition for
13070 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
13071 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
13072 start and end of the match, instead of using values in search_regs.
ef887810 13073
4d02fc25
SM
130742007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
13075
13076 * minibuf.c (Fcompleting_read): New value `confirm-only'
13077 for `require-match'.
13078
fe45b81f
SM
130792007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
13080
13081 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
13082 part of the 2007-06-27 change to syms_of_fileio.
13083
a56dd283
YM
130842007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13085
13086 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
13087 Check WINDOWP before using XWINDOW. Consolidate return statements.
13088
0cf9f5b5
RS
130892007-06-27 Richard Stallman <rms@gnu.org>
13090
13091 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13092
a66f285a
JB
130932007-06-27 Juanma Barranquero <lekktu@gmail.com>
13094
13095 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
13096
8d0d84d2
YM
130972007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13098
13099 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
13100 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
13101 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
13102 (_free_internal, memalign): Use them.
13103 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
13104 Initialize to PTHREAD_MUTEX_INITIALIZER.
13105 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
13106 (morecore_nolock): Rename from morecore. All uses changed.
13107 Use only nolock versions of internal allocation functions.
13108 (_malloc_internal_nolock, _realloc_internal_nolock)
13109 (_free_internal_nolock): New functions created from
13110 _malloc_internal, _realloc_internal, and _free_internal.
13111 (_malloc_internal, _realloc_internal, _free_internal): Use them.
13112 Copy hook value to automatic variable before its use.
13113 (memalign): Copy hook value to automatic variable before its use.
13114
5a0bbd9a
KH
131152007-06-26 Kenichi Handa <handa@m17n.org>
13116
13117 * coding.c (Ffind_operation_coding_system): Docstring improved.
13118 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
13119
9a51747b
DK
131202007-06-25 David Kastrup <dak@gnu.org>
13121
13122 * keymap.c (Fcurrent_active_maps): Add `position' argument.
13123 (Fwhere_is_internal): Adjust call to `current-active-maps' to
13124 cater for additional parameter.
13125
13126 * keymap.h: Adjust number of parameters to `current-active-maps'.
13127
13128 * doc.c (Fsubstitute_command_keys): Adjust call of
13129 `current-active-maps'.
13130
e4305426
DK
131312007-06-25 David Kastrup <dak@gnu.org>
13132
13133 * callint.c (Fcall_interactively): Make the parsing of interactive
13134 specs somewhat more readable.
13135
511a18d9
YM
131362007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13137
13138 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
13139 to scroll bar gap also when bitmap fills fringe. Draw only foreground
13140 if extended background has already been filled.
13141
512eb161
YM
131422007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13143
13144 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
13145 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
13146
13147 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
13148 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
13149 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
13150 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
13151 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
13152 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
13153 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
13154 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
13155 Run timers during dialog popup.
13156 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
13157
2386b1f1
JR
131582007-06-21 Jason Rumney <jasonr@gnu.org>
13159
13160 * image.c (convert_mono_to_color_image): Swap fore and background.
13161
fab8b787
JR
131622007-06-20 Jason Rumney <jasonr@gnu.org>
13163
13164 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
13165 (w32_free_bdf_font): Unmap memory not handle.
13166
15bdd7a0 131672007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
13168
13169 * gmalloc.c (__morecore): Fix the declaration to comply with the
13170 definition.
13171
1bb8a291
JB
131722007-06-20 Juanma Barranquero <lekktu@gmail.com>
13173
13174 * w32term.c (w32_delete_display): Remove leftover declaration.
13175 (w32_define_cursor, w32_initialize): Make static.
13176
13177 * w32.c (_wsa_errlist): Fix typo in error message.
13178 (init_environment): Ignore any environment variable from the
13179 registry having a null value.
13180
92648dea
GM
131812007-06-20 Glenn Morris <rgm@gnu.org>
13182
13183 * Makefile.in (LIBGIF): Default to -lgif.
13184
ff25d115
JR
131852007-06-17 Jason Rumney <jasonr@gnu.org>
13186
13187 * w32menu.c (add_menu_item): Don't use multibyte string functions on
13188 unicode strings.
13189
a1a578a5
JB
131902007-06-16 Juanma Barranquero <lekktu@gmail.com>
13191
13192 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
13193 Fix typo in docstring.
13194
af41f8a8
EZ
131952007-06-16 Eli Zaretskii <eliz@gnu.org>
13196
13197 * w32menu.c (add_menu_item): Escape `&' characters in menu items
13198 and their keybindings.
13199
8b29cab9
CY
132002007-06-15 Chong Yidong <cyd@stupidchicken.com>
13201
13202 * composite.c (update_compositions): Fix last fix.
13203
c433c134
JR
132042007-06-14 Jason Rumney <jasonr@gnu.org>
13205
13206 * w32.c (get_process_times_fn): New function pointer.
13207 (globals_of_w32): Intialize it if present in kernel32.dll.
13208 (w32_get_internal_run_time): New function.
13209
13210 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
13211
553d3164
KH
132122007-06-14 Kenichi Handa <handa@etlken.m17n.org>
13213
13214 * composite.c (update_compositions): Check the validness of
13215 compositions.
13216
446ba96f
YM
132172007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13218
13219 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
13220 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
13221
13222 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
13223 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
13224
13225 * macgui.h (USE_MAC_TOOLBAR): New define.
13226
13227 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13228 Return immediately unless popup is activated.
13229
13230 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
13231 background to scroll bar gap.
13232 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13233 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13234 scroll bars on frame edge. Check fringe background extension.
13235 Don't clear extended fringe background area.
13236 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13237 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13238 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13239 [USE_MAC_TOOLBAR]: New macros.
13240 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13241 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13242 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13243 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13244 [USE_MAC_TOOLBAR]: New functions.
13245 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13246 manually if previous repositioning has failed.
13247 (mac_handle_keyboard_event): Use precomputed event kind.
13248 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13249 as tool bar item click. Handle mouse movement over tool bar items.
13250
13251 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13252 toolbar_win_gravity.
13253 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13254 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13255 Add externs.
13256
13257 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
13258 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
13259
9720173f
CY
132602007-06-14 Chong Yidong <cyd@stupidchicken.com>
13261
13262 * image.c (search_image_cache): Remove unused variable.
13263
1217dd00
CY
132642007-06-13 Chong Yidong <cyd@stupidchicken.com>
13265
13266 * xfns.c, xmenu.c: Link to xaw3d if available.
13267
c5b8e0ea
YM
132682007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13269
13270 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
13271 frame_foreground and frame_background.
13272
13273 * image.c (lookup_image): Save frame foreground and background colors.
13274 (search_image_cache): Check if saved and current frame colors match.
13275
c69b0314
SM
132762007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13277
13278 * regex.c (regex_compile): Remove the `regnum' counter.
13279 Use bufp->re_nsub instead. Add support for \(?N:RE\).
13280
c9612b8e
SM
132812007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13282
13283 * term.c: Include intervals.h to declare Fget_text_property.
13284
843d2458
JR
132852007-06-10 Jason Rumney <jasonr@gnu.org>
13286
13287 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
13288
1e0d2d60 132892007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
13290
13291 * callint.c (Fcall_interactively):
13292 * editfns.c (Fdelete_and_extract_region):
13293 * fileio.c (Fread_file_name):
13294 * fns.c (Fmapconcat):
13295 * keyboard.c (cmd_error_internal):
13296 * keymap.c (Fkey_description):
13297 * lread.c (openp):
13298 * minibuf.c (read_minibuf):
13299 * search.c (wordify):
13300 * sunfns.c (sel_read):
13301 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
13302 * xfns.c (x_default_scroll_bar_color_parameter):
13303 * xmenu.c (menu_help_callback):
13304 * xselect.c (Fx_get_atom_name):
13305 * xterm.c (x_term_init): Use empty_unibyte_string.
13306
15bdd7a0 133072007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
13308
13309 * alloc.c (init_strings): Initialize canonical empty strings.
13310 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
13311 canonical empty string when the requested size is 0.
13312
13313 * emacs.c (empty_unibyte_string): Rename from empty_string.
13314 (empty_multibyte_string): New canonical empty string.
13315 (syms_of_emacs): Don't initialize empty_string.
13316
13317 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
13318 string, if appropriate.
13319 (empty_unibyte_string, empty_multibyte_string): New externs.
13320 (empty_string): Remove extern.
13321
13322 * lread.c (syms_of_lread): Use empty_unibyte_string.
13323
42c4c67a
JR
133242007-06-07 Jason Rumney <jasonr@gnu.org>
13325
13326 * s/ms-w32.h: Don't define HAVE_TZNAME.
13327
13328 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
13329
aa8280d3
YM
133302007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13331
13332 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
13333
13334 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
13335 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
13336
13337 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13338 Don't call next handler.
13339 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
13340 Remove argument. Install handler to application.
13341 (set_frame_menubar): Don't change deep_p.
1e0d2d60 13342 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
13343 FRAME_OUTER_TO_INNER_DIFF_Y.
13344 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13345 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13346 [HAVE_DIALOGS]: New macros.
13347 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
13348 Use them.
13349 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
13350
13351 * macselect.c [MAC_OSX] (install_service_handler): Rename from
13352 init_service_handler. All callers changed. Return OSStatus value.
13353
13354 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
13355 All callers changed so as not to call SetPortWindowPort.
13356 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
13357 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
13358 mac_draw_string_common.
13359 (mac_draw_image_string_qd): Likewise.
13360 (mac_draw_string_common): Use them. Add INLINE.
13361 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
13362 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
13363 GetGlobalMouse.
13364 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
13365 and FRAME_OUTER_TO_INNER_DIFF_Y.
13366 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
13367 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
13368 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
13369 repositioning window to mac_handle_window_event.
13370 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
13371 saving window location to mac_handle_window_event
13372 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
13373 (install_menu_target_item_handler): Remove argument in extern.
13374 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
13375 Also accept command events.
13376 (do_keystroke): New function created from XTread_socket.
13377 (init_command_handler): Remove functions.
13378 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
13379 and save window location by kEventWindowShowing and kEventWindowHiding
13380 handlers here. Don't call next handler for window state change and
13381 focus events.
13382 (mac_handle_application_event, mac_handle_keyboard_event)
13383 [TARGET_API_MAC_CARBON]: New functions.
13384 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
13385 kEventWindowShowing and kEventWindowHiding events. Move installation
13386 of mouse, font, text input and menu target item handlers to
13387 install_application_handler.
13388 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
13389 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13390 New function.
13391 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13392 Register it.
c9612b8e
SM
13393 (XTread_socket) [TARGET_API_MAC_CARBON]:
13394 Consolidate SendEventToEventTarget calls.
13395 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
13396 Move application activation handler to mac_handle_application_event.
13397 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
13398 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
13399 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
13400 init_command_handler. Call install_application_handler.
13401
13402 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
13403 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
13404
6926c954
GM
134052007-06-07 Glenn Morris <rgm@gnu.org>
13406
13407 * emacs.c (main): Use `emacs-copyright' in --version output.
13408
6fe04c89
CY
134092007-06-06 Chong Yidong <cyd@stupidchicken.com>
13410
c9612b8e 13411 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 13412
7eb0d727
YM
134132007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13414
13415 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
13416
13417 * macgui.h: Replace WindowPtr with WindowRef.
13418
13419 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13420 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13421 Replace ControlHandle with ControlRef.
13422 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
13423
13424 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13425 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13426 Replace ControlHandle with ControlRef.
13427 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
13428 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
13429
13430 * macterm.h (struct scroll_bar): Rename member control_handle_low
13431 and control_handle_high to control_ref_low and control_ref_high.
13432 All uses changed.
13433 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
13434 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
13435 respectively. All uses changed.
13436 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
13437 (install_window_handler, remove_window_handler): Replace WindowPtr
13438 with WindowRef in externs.
13439
65fddb74
JB
134402007-06-05 Juanma Barranquero <lekktu@gmail.com>
13441
13442 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
13443
db1213a9
NR
134442007-06-03 Nick Roberts <nickrob@snap.net.nz>
13445
13446 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
13447
65fddb74 13448 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
13449 Condition on HAVE_GPM too.
13450
13451 * term.c (term_mouse_highlight): Remove unused variables.
13452 (Fterm_open_connection): Set gpm_zerobased to 1.
13453 (term_mouse_movement, term_mouse_click, handle_one_term_event):
13454 Use zero based co-ordinates.
13455 (handle_one_term_event): Report a drag as mouse movement too.
13456
13457 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
13458
d94df25b
CY
134592007-06-03 Chong Yidong <cyd@stupidchicken.com>
13460
13461 * image.c (search_image_cache): New function. Require background
13462 color match if background color is unspecified in the image spec.
13463 (uncache_image, lookup_image): Use it.
13464
4797b6d9
JB
134652007-06-01 Juanma Barranquero <lekktu@gmail.com>
13466
13467 * window.c (Fshrink_window): Reflow docstring.
13468
1ffe7343
NR
134692007-06-02 Chong Yidong <cyd@stupidchicken.com>
13470
13471 * Version 22.1 released.
13472
134732007-06-01 Richard Stallman <rms@gnu.org>
13474
13475 * xfns.c (x_encode_text): Add GCPRO.
13476
134772007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13478
13479 * xfns.c (x_set_name_internal): Save encoded name before
13480 x_encode_text in case string data is relocated.
13481
134822007-05-31 Richard Stallman <rms@gnu.org>
13483
13484 * buffer.c (syms_of_buffer): Doc fix.
13485
134862007-05-30 Nick Roberts <nickrob@snap.net.nz>
13487
13488 * sysdep.c (init_sys_modes): Add rather than replace with
13489 O_NONBLOCK.
13490
13491 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
13492 term_mouse_moveto.
13493
13494 * termhooks.h (term_mouse_moveto): New extern.
13495
13496 * term.c (mouse_face_window): Rename...
13497 (Qmouse_face_window): ...to this.
13498 (term_show_mouse_face, term_clear_mouse_face)
13499 (term_mouse_highlight): Use Qmouse_face_window.
13500 (term_mouse_moveto): New function.
13501 (term_mouse_position): Make it work.
13502 (syms_of_term): Uncomment assignment to mouse_position_hook.
13503 Staticpro Qmouse_face_window.
13504
135052007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13506
13507 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
13508 around current_column call.
13509
135102007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
13511
13512 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
13513 * xdisp.c (next_element_from_buffer):
13514 * window.c (delete_window):
13515 * term.c (term_mouse_highlight):
13516 * msdos.c (getdefdir):
13517 * macterm.c (mac_create_bitmap_from_bitmap_data)
13518 (init_font_name_table):
13519 * fns.c (Fsxhash):
13520 * data.c (Fmake_local_variable):
13521 * ccl.c (ccl_driver): Likewise.
13522
135232007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13524
13525 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
13526 Call mac_wakeup_from_rne on window size change.
13527
135282007-05-25 Chong Yidong <cyd@stupidchicken.com>
13529
13530 * image.c (uncache_image): Fix typo.
13531
135322007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13533
13534 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13535
135362007-05-22 Richard Stallman <rms@gnu.org>
13537
13538 * xterm.c (x_connection_closed): Remove NO_RETURN.
13539
135402007-05-22 Martin Rudalics <rudalics@gmx.at>
13541
13542 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13543
135442007-05-21 Chong Yidong <cyd@stupidchicken.com>
13545
13546 * image.c (uncache_image): New function.
13547 (Fimage_refresh): New function.
13548
880820fe 135492007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
13550
13551 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13552
135532007-05-20 Nick Roberts <nickrob@snap.net.nz>
13554
13555 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13556 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13557
135582007-05-20 Nick Roberts <nickrob@snap.net.nz>
13559
13560 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13561 conditional on [HAVE_GPM_H].
13562
135632007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13564
13565 * syntax.c (skip_chars): Update syntax-table only after we checked that
13566 the new location is valid.
13567
135682007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13569
13570 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13571 mac_get_window_bounds.
13572
135732007-05-20 Nick Roberts <nickrob@snap.net.nz>
13574
13575 * Makefile.in (LIBGPM): Allow it to be set from configure.
13576 If set then link Emacs with it.
13577
13578 * config.in: Regenerate.
13579
13580 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13581 New externs.
13582
13583 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13584 Include gpm.h.
13585 (handle_one_term_event, term_gpm): New externs.
13586
13587 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13588 and allow it to be interrupted by SIGIO.
13589
13590 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13591 (wait_reading_process_output): Wait on gpm_fd too.
13592 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13593 (add_gpm_wait_descriptor_called_flag): New variable.
13594 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13595
13596 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13597 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13598 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
13599 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
13600 (make_lispy_event): Add case GPM_CLICK_EVENT.
13601 (read_avail_input): Handle mouse input.
13602
13603 * term.c (write_glyphs_with_face): New function.
13604 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
13605 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
13606 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
13607 (mouse_face_face_id, term_gpm, pos_x, pos_y)
13608 (last_mouse_x, last_mouse_y): New variables.
13609 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
13610 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
13611 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
13612 (Fterm_close_connection): New functions.
13613 (term_init): Initialise mouse_face_window.
13614
136152007-05-19 Chong Yidong <cyd@stupidchicken.com>
13616
13617 * xdisp.c (redisplay_window): If first window line is a
13618 continuation line, recompute the new window start instead of
13619 recentering.
13620
136212007-05-18 Glenn Morris <rgm@gnu.org>
13622
13623 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
13624 Suggested by Alfred M. Szmidt <ams@gnu.org>.
13625
136262007-05-17 Glenn Morris <rgm@gnu.org>
13627
13628 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
13629
136302007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13631
13632 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
13633 dead key repeat and up events.
13634
136352007-05-14 Chong Yidong <cyd@stupidchicken.com>
13636
13637 * image.c (pbm_load): Check image size for monochrome pbm.
13638
136392007-05-13 Chong Yidong <cyd@stupidchicken.com>
13640
13641 * xterm.c (XTread_socket): Revert last change.
13642
136432007-05-12 Chong Yidong <cyd@stupidchicken.com>
13644
13645 * image.c (pbm_load): Correctly check image size for greyscale pbm.
13646
13647 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
13648
136492007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13650
13651 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
13652 mixup (YAILOM).
13653
136542007-05-07 Andreas Schwab <schwab@suse.de>
13655
13656 * keymap.c (Flookup_key): Fix typo in last change.
13657
136582007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13659
13660 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
13661 mapping for unibyte strings.
13662
136632007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13664
13665 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
13666 (Fx_popup_dialog) [MAC_OSX]: Likewise.
13667
136682007-04-29 Richard Stallman <rms@gnu.org>
13669
13670 * insdel.c (replace_range): For undo, record insertion first.
13671
136722007-04-29 Andreas Schwab <schwab@suse.de>
13673
13674 * lisp.h (VECSIZE): Use OFFSETOF.
13675
136762007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13677
13678 * xdisp.c (try_window_reusing_current_matrix): Fix number of
13679 disabled lines.
13680
136812007-04-28 Richard Stallman <rms@gnu.org>
13682
13683 * lread.c (read_escape): In a string, \s is always space.
13684
880820fe 136852007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
13686
13687 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
13688
13689 * gtkutil.c (xg_update_menubar, create_menus): Create empty
13690 submenu for menu bar items.
13691
382c648d 13692See ChangeLog.10 for earlier changes.
6922b018
KH
13693
13694;; Local Variables:
880820fe 13695;; coding: utf-8
33462dfa 13696;; add-log-time-zone-rule: t
67e8d28a 13697;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 13698;; End:
2a34a036 13699
59ce725a 13700 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
13701
13702 This file is part of GNU Emacs.
13703
5a1dde61 13704 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 13705 it under the terms of the GNU General Public License as published by
5a1dde61
GM
13706 the Free Software Foundation, either version 3 of the License, or
13707 (at your option) any later version.
7f6d64f8
GM
13708
13709 GNU Emacs is distributed in the hope that it will be useful,
13710 but WITHOUT ANY WARRANTY; without even the implied warranty of
13711 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13712 GNU General Public License for more details.
13713
13714 You should have received a copy of the GNU General Public License
5a1dde61 13715 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 13716
28f60c3d 13717;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40