(syms_of_nsterm): Provide ns, not ns-windowing,
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7c799cf5
DN
12008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4 similarly to what X does.
5
712b2de1
AR
62008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7
8 * nsfns.m (x-list-fonts): Remove.
9 (syms_of_nsfns): Drop the x-list-fonts declaration.
10 * nsterm.m: Get rid of remaining "//" comments.
11
0d4e1b5f
CY
122008-07-22 Chong Yidong <cyd@stupidchicken.com>
13
14 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
15
16 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18 (Fns_own_selection_internal, Fx_disown_selection_internal)
19 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
20
21 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
22 ... */' style of docstrings. Doc fixes.
23
952913d4
DN
242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
25
0ecc3474 26 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 27
952913d4
DN
28 * nsfns.m: Rename ns prefixed functions/variables to the
29 corresponding x versions. Update references.
30
02d8b017
SM
312008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
32
33 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
34
11b8fe14
DN
352008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
36
02d8b017
SM
37 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
38 Remove forwarding functions.
cc98b6a0
DN
39 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
40 non-static.
41 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
42 non-static.
43 (ns_frame_parm_handlers): Use the new names.
44 (syms_of_nsfns): Move to the end of file.
45
1baa6236
DN
46 * nsterm.m (syms_of_nsterm): Move to the end of file.
47
11b8fe14
DN
48 * dispnew.c (init_display): Remove code for X10.
49
8dcaeba2
JR
502008-07-22 Jason Rumney <jasonr@gnu.org>
51
02d8b017
SM
52 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
53 bare drive.
8dcaeba2 54
df2142db
AR
552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
56
57 * nsgui.h:
58 * nsfont.m:
59 * nsmenu.m:
60 * nsterm.m: Change PENDINGS to FIXME / TODO / XXX.
61
365bac35
AR
622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
63
64 * nsterm.m (syms_of_nsterm): Remove debugging println.
65
6a0f0f86
DR
662008-07-22 David Reitter <david.reitter@gmail.com>
67
a3c83618 68 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
69 Carbon implementation of the same functionality: execute arbitrary
70 AppleScript code.
71
51d5ef9f
AR
722008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
73
a3c83618 74 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
75 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
76 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
77 (Fx_display_mm_height, Fx_display_mm_width)
78 (Fx_display_backing_store, Fx_display_visual_class)
79 (Fx_display_save_under, Fx_open_connection)
80 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
81 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
82 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
83 (Fx_display_pixel_width, Fx_display_pixel_height)
84 (Fx_display_usable_bounds, Fx_display_planes)
85 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
86 ... */' style of docstrings.
87
6efac844
DN
882008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
89
b8ff87cc
DN
90 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
91 on this platform.
92 (mips):
93 * m/iris4d.h (mips): Do not define.
94 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
95
92d1a7a3
DN
96 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
97
de08d1be
CY
98 * image.c:
99 * nsfns.m:
100 * nsselect.m:
101 * nsterm.h:
9e50ff0c
DN
102 * nsterm.m: Rename ns prefixed functions/variables to the
103 corresponding x versions. Update references.
104
ff486501
DN
105 * m/ibms390x.h (NO_REMAP): Do not undefine.
106
6efac844
DN
107 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
108
ea9de876
CY
1092008-07-21 Chong Yidong <cyd@stupidchicken.com>
110
111 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
112 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
113 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
114 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
115 (Fns_display_mm_height, Fns_display_mm_width)
116 (Fns_display_backing_store, Fns_display_visual_class)
117 (Fns_display_save_under, Fns_open_connection)
118 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
119 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
120 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
121 (Fns_display_pixel_width, Fns_display_pixel_height)
122 (Fns_display_usable_bounds, Fx_display_planes)
123 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
124
b42f4115 1252008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
126
127 * print.c (print_object): Check print_depth before searching for
128 circularities.
129
c0894fb9
MA
1302008-07-21 Michael Albinus <michael.albinus@gmx.de>
131
132 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
133 only sprintf.
134
d90bfd1c
KH
1352008-07-21 Kenichi Handa <handa@m17n.org>
136
137 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
138
8e2911c2
AS
1392008-07-20 Andreas Schwab <schwab@suse.de>
140
141 * syntax.c (find_start_pos, find_start_value)
142 (find_start_value_byte, find_start_begv, find_defun_start)
143 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer
144 positions.
145
98a01702
DN
1462008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
147
148 * s/sol2-3.h: Insert contents of s/sol2.h.
149 (LD_SWITCH_SYSTEM): Remove redundant definition.
150 * s/sol2.h: Remove, unused.
151
704a3a2d
AR
1522008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
153
154 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for
155 HSV,AHSV.
156
1572008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
158
159 * Makefile.in (ns_appdir): Fix typo in find command.
160
89f1e540
DN
1612008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
162
c788afce
DN
163 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
164
89f1e540
DN
165 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
166 added not supported anymore.
167
e5e2baab 168 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
169 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
170
171 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
172 * s/lynxos.h (GETPGRP_NO_ARG):
173 * s/hpux10-20.h (NO_SIOCTL_H):
174 * s/gnu.h (GETPGRP_NO_ARG):
175 * s/gnu-linux.h (NO_SIOCTL_H):
176 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
177 * s/cygwin.h (GETPGRP_NO_ARG):
178 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
179 (C_DEBUG_SWITCH): Remove duplicate definition.
180
181 * m/ibms390.h: Remove boilerplate comments.
182
183 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
184
185 * process.c (HAVE_SERIAL): Consolidate ifdefs.
186 (wait_reading_process_output): Remove code for SunOS, platform not
187 supported anymore. Use SOLARIS2 instead of sun.
188
ed96cde8
AR
1892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
190
191 * font.c (font_open_by_name): Under NS, default lface height to zero.
192 (font_open_for_lface): Under NS, set size based on frame fontsize.
193 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
194 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
195
1962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
197
198 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
199 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
200 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
201 YES/NO.
202 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
203 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
204 * Makefile.in (clean): Clear out build destination dir.
205
5a2d7ab6
AR
2062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
207
208 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
209 xterm, xselect.
210 * lisp.h: Remove declaration of hash_remove.
211 * nsgui.h: Remove redefinitions of hash_remove.
212 * fns.c (hash_remove): Rename to hash_remove_from_table.
213
c0230162
AR
2142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
215
216 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
217 strdup() the family UTF8String before modifying it. Patch due to
218 Seiji Zenitani.
219
45d325c4
AR
2202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
221
222 * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to
223 fix crash.
224 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
225 NS_FACE_BACKGROUND with 0 instead of nil.
226 * nsfont.m (nsfont_draw): Same.
227
b83f1cd0
CY
2282008-07-18 Chong Yidong <cyd@stupidchicken.com>
229
230 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
231
add4eecc
DN
2322008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
233
234 * puresize.h (BASE_PURESIZE): Increase to 1240000.
235
69955d31
YM
2362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
237
238 * gtkutil.c: Include <config.h> instead of "config.h".
239
240 * lisp.h (Foverlay_buffer): Add EXFUN.
241
242 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
243 child process to complete child_setup. Undo 2005-09-21 change.
244
245 * s/darwin.h: Mention setsid after vfork.
246
08b3caa9 2472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
248
249 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
250 Depend on macgui.h.
251
252 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
253 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
254
255 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
256 and f19.
257 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
258
259 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
260 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
261 Remove enumerators.
262
263 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
264 Check if FACE_FROM_ID returns NULL.
265
8d59c5ed
JR
2662008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
267
ba60bd44
JB
268 * w32inevt.c (change_frame_size): Remove extern declaration.
269 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
270 change_frame_size.
8d59c5ed 271
ba60bd44 2722008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
273
274 * getloadavg.c: Revert last change (2008-07-15).
275
ba60bd44 2762008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
277
278 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
279 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
280 from configure.
281
2749d28e
DN
2822008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
283
35ad0545
DN
284 * s/sol2.h:
285 * s/sol2-4.h: Reorganize conditionals.
286
2749d28e
DN
287 * ecrt0.c: Remove code depending on m68000, not used anymore.
288
289 * fns.c (hash_remove): Make static.
290 * lisp.h (hash_remove): Don't prototype.
291
292 * m/ibmrs6000.h:
293 * m/ibms390x.h:
294 * m/macppc.h: Remove boilerplate comments.
295
296 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
297 Solaris, which does not need them.
298
299 * m/vax.h: Remove comments about unsupported systems.
300
301 * s/darwin.h: Reorganize ifdefs.
302
ba60bd44
JB
3032008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
304
305 * config.in:
306 * dispextern.h:
307 * frame.c:
308 * image.c:
309 * nsfns.m:
310 * nsfont.m:
311 * nsgui.h:
312 * nsmenu.m:
313 * nsterm.h:
314 * nsterm.m:
315 * s/darwin.h:
316 * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX.
6fb5f7da 317
32cc3925
AS
3182008-07-17 Andreas Schwab <schwab@suse.de>
319
320 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
321
facfbbbd
SM
3222008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
323
324 Use SDATA. Follow coding convention of placing operators at
325 beginning of next line rather than end of previous line, and placing
326 spaces around infix operators.
327
328 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
329 in case it was defined already.
330 USE @GNUSTEP_MAKEFILES@ rather than envvars.
331 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
332 ns_default.
333 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
334 Lisp_Objects.
335 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
336 (ns_defined_color, ns_color_to_lisp): Declare.
337 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
338 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
339 it's accepted even with USE_LISP_UNION_TYPE.
340 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
341 (update_frame_tool_bar): Remove apparently obsolete tests for
342 non-integerness of f->tool_bar_lines.
343 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
344 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
345 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
346 (nsfont_open): Don't confuse NULL for Qnil.
347 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
348 * menu.h (find_and_call_menu_selection):
349 * menu.c (find_and_call_menu_selection): Use just int for vector size.
350 (find_and_return_menu_selection): Always return something.
351 * frame.h: Include dispextern.h for Display_Info.
352 (display_x_get_resource): Declare.
353
ba60bd44 3542008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
355
356 * syntax.c: Remove stdio.h include accidentally introduced in
357 Emacs.app commit.
358 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
359 NS_IMPL_COCOA.
360 * keyboard.c (handle_async_input, input_available_signal): Remove
361 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
362
0bcfd7d7
SM
3632008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
364
6882361b
SM
365 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
366 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
367 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
368 Use SDATA.
369
0bcfd7d7
SM
370 * keymap.c: Remove all NS-specific code.
371 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
372 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
373 where_is_preferred_modifier, return a different value depending on how
374 preferred is the binding.
375 (where_is_internal): Adjust accordingly.
376 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
377 Adjust to new preferred_sequence_p.
378 (syms_of_keymap): Declare `where-is-preferred-modifier'.
379 * keyboard.c (parse_solitary_modifier): Not static any more.
380 * keyboard.h (parse_solitary_modifier): Declare.
381
720f3147
AS
3822008-07-16 Andreas Schwab <schwab@suse.de>
383
384 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
385 of easymenu.
386
01e19fea
CY
3872008-07-16 Chong Yidong <cyd@stupidchicken.com>
388
389 * xdisp.c (move_it_in_display_line): Account for word wrap, so
390 that we don't move off the line.
391
4c89a3e0
SM
3922008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
393
394 * keyboard.c (Qsuper): Remove.
395 (parse_menu_item): Don't call where_is_internal specially for NS.
396
586b975c
DN
3972008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
398
3ec8ef33
DN
399 * s/gnu-linux.h: Remove boilerplate comments.
400
d4d080b6
DN
401 * m/alpha.h (__ELF__): Consolidate conditions.
402
7ab56cc4
DN
403 * m/m68k.h (linux): Use GNU_LINUX instead.
404 Remove boilerplate comments.
405
586b975c 406 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
407 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
408 too, remove dead code.
409 (linux): Use GNU_LINUX instead.
586b975c 410
5cc9d48a
JR
4112008-07-16 Jason Rumney <jasonr@gnu.org>
412
4c89a3e0 413 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 414
6b0273cd
DN
4152008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
416
132d0475
DN
417 * systty.h: Remove code for Aix on 386, unsupported platform.
418
419 * s/ms-w32.h: Remove boilerplate comments.
420 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
421
422 * s/gnu-linux.h (TERM): Remove support.
423 (HAVE_SYSVIPC): Remove, unused.
424 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
425 for this system.
426
427 * process.c: Remove support for IRIS, unused.
428 Remove support for TERM, not relevant anymore.
429
430 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
431 used with the definition.
432
433 * s/aix4-2.h (static): Do not undef.
434
435 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
436 only used on Aix.
437 (HAVE_SYSVIPC): Remove, unused.
438
439 * m/hp800.h (CANNOT_DUMP): Do not undef.
440
441 * m/alpha.h: Fix comment.
442
8111c2d8
DN
443 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
444 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
445 used by this configuration.
446 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
447 * unexec.c: Remove code depending on HPUX and
448 USG_SHARED_LIBRARIES, not used with this file. Remove code
449 depending on IRIS, unused. Remove if 0-ed code.
450
e9a57a88
DN
451 * s/template.h: Remove comments about static.
452
4c89a3e0
SM
453 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
454 Remove if 0-ed code.
c7607b94
DN
455 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
456 were the same as the default.
457 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
458 Remove boilerplate comments.
459 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
460 (HAVE_SYSVIPC): Remove, unused.
461 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
462
ff841b30
DN
463 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
464 Remove boilerplate comments.
465 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
466 Remove boilerplate comments.
467 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
468 Remove boilerplate comments.
469 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
470
586b975c
DN
471 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
472 USG systems which do not use DATA_SEG_BITS.
473 Refactor code. Remove boilerplate comments.
474
dc89925b 475 * m/ibms390.h:
dc89925b
DN
476 * m/m68k.h:
477 * s/bsd-common.h:
478 * s/cygwin.h:
479 * s/darwin.h:
480 * s/freebsd.h:
481 * s/gnu.h:
482 * s/msdos.h: Remove boilerplate comments.
483
96b72211
DN
484 * m/iris4d.h: Remove boilerplate comments and code for systems that
485 do not use this file.
486 (IRIS_4D): Remove, unused.
487
c3b5f109
DN
488 * m/mips.h: Remove boilerplate comments and code for systems that
489 do not use this file.
96b72211 490 (SIGN_EXTEND_CHAR):
c3b5f109
DN
491 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
492 * unexmips.c: Remove file, unused.
493
6b0273cd
DN
494 * editfns.c (Fuser_full_name): Replace the only use of
495 USER_FULL_NAME with its value.
496 * config.in: Regenerate.
497
ba60bd44 4982008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 499
ba60bd44
JB
500 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
501 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 502
44ac2d3e
GM
5032008-07-16 Glenn Morris <rgm@gnu.org>
504
505 * emacs.c (system-type): Doc fix.
506
0a170079
SM
5072008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
508
509 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
510 If the cache doesn't work, let's fix it, rather than work around it.
511
ba60bd44 5122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
513
514 * Makefile.in: Correct additions for nsfont.o in last commit.
515 * nsfont.m: New file (forgot last commit).
516
ba60bd44 5172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
518
519 Changes and additions for NeXTstep windowing system (Cocoa and
520 GNUstep) support.
521
ba60bd44 522 * Makefile.in:
edfda783
AR
523 * config.in: Support defines and build commands for NS port.
524 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
525 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
526 * callproc.c (set_initial_environment): Initialize
527 Vprocess_environment under CANNOT_DUMP (fixes crash when
528 batch-compiling for bootstrap, due to Chris Hall).
529 * dispextern.h: Include nsgui.h and add needed typedefs under NS
530 windowing.
531 (struct face): Add synth_ital field.
532 * dispnew.c: Include nsterm.h when compiling under NS windowing.
533 (init_display): Initialize Vinitial_window_system to "ns" when so
534 compiled.
535 * emacs.c: Include GSConfig.h when compiling under GNUstep.
536 (display_arg): Use under NS.
537 (main): Under NS, allocate autorelease pool and handle command line
538 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
539 (standard_args): Add NS-specific args.
540 (shut_down_emacs): Shut down NS terminal if compiled under NS.
541 * font.c (DEFAULT_ENCODING): New variable.
542 (font_find_for_lface): Use it.
543 (syms_of_font): Load syms_of_nsfont under NS.
544 * font.h: Declare nsfont_driver when compiled under NS.
545 * fontset.c: When compiling under NS, include nsterm.h.
546 (fontset_from_font): Autoconstruct fontset under NS.
547 * frame.c (various): Under NS, include nsterm.h, add Qns window system
548 symbol, document and use it.
549 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
550 patch to fix crash due to different init order, due to Chris Hall and
551 Yamamoto Mitsuharu.
552 (do_switch_frame): When for_deletion under Cocoa, add
553 Fraise_frame(Qnil).
554 (x_set_frame_parameters): Ensure font attribute changes are picked up.
555 (x_get_arg): Allow "yes" and "no" as boolean values.
556 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
557 Qright under Cocoa.
558 (focus-follows-mouse): Default to 0 under NS.
559 * frame.h (enum output_method): Add output_ns.
560 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
561 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
562 (FRAME_WINDOW_P): NS-specific definition.
563 * fringe.c (max_used_fringe_bitmap): Make public.
564 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
565 (getloadavg): Use NeXT code under descendant OS's.
566 * image.c (includes and header section, x_create_bitmap_from_data)
567 (x_create_bitmap_from_file, free_bitmap_record, image_background)
568 (image_background_transparent, x_clear_image_1)
569 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
570 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
571 (x_to_xcolors, x_from_xcolors, x_disable_image)
572 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
573 other GUIs, including XPM support using code originally written for
574 Carbon GUI.
0a170079 575 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
576 using NS API.
577 (image_ascent): Use font metrics macros instead of direct struct field
578 access.
579 * keyboard.c (includes): Add nsterm.h when compiling under NS.
580 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
581 Also, handle NS as GTK for menu bar purposes.
582 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
583 toolkit where they differ.
584 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
585 use cachelist, still needed under NS.
6ddc6cca 586 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
587 (struct widget_value): Define it here for menu.c.
588 * keymap.c (includes): Include modifier internals.
589 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
590 NS.
591 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
592 support for preferring sequences using certain modifiers, specified by
593 the FIRSTONLY argument.
594 * lisp.h (hash_remove): Rename to avoid name clash when compiling
595 under NS GNUstep implementation.
596 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
597 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
598 * menu.c: Include nsterm.h under NS.
599 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
600 (free_menubar_widget_tree_value, update_submenu_strings)
601 (find_and_call_menu_selection): Treat NS as X and NT.
602 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
603 * nsgui.h:
604 * nsterm.h:
605 * nsfns.m:
606 * nsimage.m:
607 * nsmenu.m:
608 * nsselect.m:
edfda783
AR
609 * nsterm.m: New files.
610 * process.c (wait_reading_process_output): Under NS, call ns_select()
611 instead of plain select().
612 * syntax.c (char_quoted): Under NS, avoid a crash when called near
613 beginning of buffer.
614 * sysselect.h (init_process): Rename when compiling under Cocoa to
615 avoid name conflict.
616 * termhooks.h (display_info): Add ns_display_info to union.
617 * terminal.c (Fterminal_live_p): Add ns to terminal types.
618 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
619 COCOA environment.
620 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
621 unexec() signature. (Note, this will dump, but the resulting file
622 crashes; unexosx is used instead; keeping around for reference and
623 possible aid in getting dump working under GNUstep.)
624 * w32gui.h (button_type, widget_value): Remove definitions (now in
625 keyboard.h).
626 * window.c: Include nsterm.h when compiling under NS.
627 * xdisp.c (includes): Include nsterm.h when compiling under NS.
628 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
629 other GUI windowing systems.
630 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
631 GTK.
632 (x_consider_frame_title): Under NS, set icon type and frame
633 modified-state indicator; use ns_set_name_as_filename() when using
634 formatted title.
635 (update_window_cursor): Make public when compiling under NS.
636 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
637 (hourglass_atimer, Vhourglass_delay
638 * xfaces.c (header section, init_frame_faces, clear_font_table)
639 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
640 (prepare_face_for_display): Add NS support parallel to other GUIs.
641 Emulate GCs like other non-X GUIs.
edfda783
AR
642 (split_font_name): Don't lowercase font name under NS.
643 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
644 under NS.
645 * s/darwin.h: Add support for compilation under NS.
646
1391cd54
JR
6472008-07-15 Jason Rumney <jasonr@gnu.org>
648
6ddc6cca
SM
649 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
650 (w32_show_hourglass): Rename from show_hourglass.
651 (w32_hide_hourglass): Rename from hide_hourglass.
652 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
653 (Vhourglass_delay): Declare extern.
654 (hourglass_started): Remove.
1391cd54 655
6ddc6cca
SM
656 * xdisp.c (Vhourglass_delay): Remove static.
657 (hourglass_started, start_hourglass, cancel_hourglass):
658 Don't include these versions on WINDOWSNT.
1391cd54 659
1885ab29
AR
6602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
661
6ddc6cca 662 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 663 variables (formerly in xfns.c).
1885ab29
AR
664 (show_hourglass, hide_hourglass): New prototypes (same).
665 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
666 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 667 in xfns.c).
1885ab29
AR
668 (syms_of_xdisp): Declare/initialize display-hourglass,
669 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
670 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 671 formerly in xfns.c.
1885ab29
AR
672 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
673 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
674 (start_hourglass, cancel_hourglass): Remove.
675 (show_hourglass, hide_hourglass): Remove prototypes and static
676 modifiers.
677 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
678 hourglass_atimer, hourglass_shown_p declaration/initialization.
679 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
680 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
681 (start_hourglass, cancel_hourglass): Remove.
682 (show_hourglass, hide_hourglass): Remove prototypes and static
683 modifiers.
684 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
685 hourglass_atimer, hourglass_shown_p declaration/initialization.
686 * w32fns.c (display_hourglass_p, Vhourglass_delay)
687 (DEFAULT_HOURGLASS_DELAY): Remove.
688 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
689 hourglass_shown_p declaration/initialization.
690
3faa984f
JR
6912008-07-14 Jason Rumney <jasonr@gnu.org>
692
6ddc6cca
SM
693 * w32fns.c (w32_get_arg): Remove wrapper function.
694 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
695 directly.
696 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 697
2f73901f
KH
6982008-07-14 Kenichi Handa <handa@m17n.org>
699
700 * xfont.c (xfont_open): Add workaround for X's bug.
701
11da284d
KH
7022008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
703
704 * fontset.c: Include <stdio.h> unconditionally.
705
944cc4a8
MA
7062008-07-13 Michael Albinus <michael.albinus@gmx.de>
707
708 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
709 for filtering.
710
bdee2ef3
DN
7112008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
712
713 * s/vms.h: Use __GNUC__ instead of _GNUC_.
714
715 * m/macppc.h:
716 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
717
718 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
719 (SPECIAL_EMACS_INT):
720 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
721 * m/amdx86-64.h (SPECIAL_EMACS_INT):
722 * s/gnu.h (NLIST_STRUCT):
723 * aix4-2.h (X11R5_INHIBIT_I18N):
724 * s/gnu-linux.h (LINUX):
725 * s/msdos.h (HAVE_FACES):
726 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
727
944cc4a8 728 * systty.h:
bdee2ef3
DN
729 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
730 anymore.
731
bba104c1
DN
7322008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
733
734 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
735 always defined as int.
736
737 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
738 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
739 * s/gnu-linux.h (HAVE_WAIT_HEADER):
740 * s/freebsd.h (HAVE_WAIT_HEADER):
741 * s/bsd-common.h (HAVE_UNION_WAIT):
742 * s/aix4-2.h (HAVE_WAIT_HEADER):
743 * m/mips.h (HAVE_UNION_WAIT):
744 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
745 (COFF, static): Do not define, they are undefined later in the file.
746
747 * process.c (update_status): Don't use a union.
748 (status_convert):
749 (sigchld_handler): Use int instead of WAITTYPE.
750
e433031a
CY
7512008-07-12 Chong Yidong <cyd@stupidchicken.com>
752
753 * indent.c (Fvertical_motion): Restore hscroll before moving to
754 goal column.
755
3bfb4d48
DN
7562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
757
758 * lisp.h: Remove left over code.
759
e7c9048f
AS
7602008-07-11 Andreas Schwab <schwab@suse.de>
761
7e770c85
AS
762 * lisp.h: Fix logic in last change.
763
e7c9048f
AS
764 * menu.h: New file.
765 * menu.c: Include it.
766 * xmenu.c: Likewise.
767 * Makefile.in: Update dependencies.
768
38aaf336
KH
7692008-07-11 Kenichi Handa <handa@m17n.org>
770
771 * fontset.c (fontset_from_font): Cancel the previous change.
772
6e5cb96f
DN
7732008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
774
775 * lisp.h:
776 * w32heap.c:
777 * emacs.c:
778 * alloc.c: Replace all references of NO_UNION_TYPE with
779 USE_LISP_UNION_TYPE.
780
781 * m/xtensa.h (NO_UNION_TYPE):
782 * m/vax.h (NO_UNION_TYPE):
783 * m/template.h (NO_UNION_TYPE):
784 * m/sparc.h (NO_UNION_TYPE):
785 * m/mips.h (NO_UNION_TYPE):
786 * m/macppc.h (NO_UNION_TYPE):
787 * m/m68k.h (NO_UNION_TYPE):
788 * m/iris4d.h (NO_UNION_TYPE):
789 * m/intel386.h (NO_UNION_TYPE):
790 * m/ibms390x.h (NO_UNION_TYPE):
791 * m/ibms390.h (NO_UNION_TYPE):
792 * m/ibmrs6000.h (NO_UNION_TYPE):
793 * m/ia64.h (NO_UNION_TYPE):
794 * m/hp800.h (NO_UNION_TYPE):
795 * m/arm.h (NO_UNION_TYPE):
796 * m/amdx86-64.h (NO_UNION_TYPE):
797 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
798 defining it the same.
799
e0f47a68
CY
8002008-07-10 Chong Yidong <cyd@stupidchicken.com>
801
ba60bd44 802 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 803
c5e7567d
DN
8042008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
805
806 * src/fileio.c:
807 * src/sysdep.c
808 * src/systty.h:
809 * src/m/ibmrs6000.h:
810 * src/m/iris4d.h:
811 * src/s/aix4-2.h:
812 * src/s/freebsd.h:
813 * src/s/gnu-linux.h:
814 * src/s/hpux10-20.h:
815 * src/s/hpux11.h:
816 * src/s/netbsd.h:
817 * src/s/sol2-3.h:
818 * src/s/sol2-4.h:
819 * src/s/sol2.h:
820 * src/s/usg5-4.h:
821 * src/s/vms.h: Remove references to unused variables.
822
bb658864
AS
8232008-07-10 Andreas Schwab <schwab@suse.de>
824
825 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
826 pattern before matching the generic family.
827
3d3db608
DN
8282008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
829
a0ce9ab7 830 * unexec.c:
3460e0b9
DN
831 * s/vms.h:
832 * s/usg5-4-2.h:
833 * s/sol2-5.h:
834 * s/freebsd.h:
835 * s/darwin.h: Remove dead code.
836
ad76189a
DN
837 * m/template.h:
838 * m/sparc.h:
839 * m/mips.h:
840 * m/m68k.h:
841 * m/iris4d.h:
842 * m/intel386.h:
843 * m/ibms390x.h:
844 * m/ibms390.h:
845 * m/ia64.h:
846 * m/hp800.h:
847 * m/arm.h:
848 * m/amdx86-64.h: Remove dead code and references to unused
849 and compiler defined symbols.
850
d2b5bbda
DN
851 * unexmips.c:
852 * unexelf.c: Remove references to desupported systems.
853
40dde9d1
DN
854 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
855
21133394
DN
856 * m/powermac.h: Remove boilerplate comments.
857 (NO_REMAP): Remove unused definition.
858
3d3db608
DN
859 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
860 define them.
861
c8e0e16d
KH
8622008-07-10 Kenichi Handa <handa@m17n.org>
863
864 * xfont.c (xfont_open): Log the reason of failure.
865
3cba9369
SM
8662008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
867
868 * fontset.c (fontset_get_font_group):
869 * font.c (font_check_otf): Specify argument types.
870
73353585
KH
8712008-07-09 Kenichi Handa <handa@m17n.org>
872
0e17387a
KH
873 * coding.c (detect_coding_utf_8): Set detect_info->found only when
874 non-ASCII char is found.
875
73353585
KH
876 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
877 (reorder_font_vector): Change the arg preferred_family to font.
878 Prefer the spec matching with font.
879 (fontset_get_font_group): New function.
880 (fontset_find_font): Change the format of an element of a realized
881 fontset. Use fontset_get_font_group.
882 (fontset_font): Try the current fontset, the default fontset, the
883 fallbacks of the current fonset, and the fallbacks of the default
884 fontset in this order.
885 (face_for_char): Delete the shortcut to use the current font.
886 (fontset_from_font): Don't set fonts for Latin in the fontset.
887
888 * font.h (font_make_object, font_match_p): Adjust prototypes.
889
890 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
891
892 * font.c (font_make_object): New arg entity and pixelsize.
893 (font_check_otf_features, font_check_otf): New functions.
894 (font_match_p): Check :lang, :script, and :otf properties.
895
896 * xfont.c (xfont_open): Adjust it for the change of
897 font_make_object.
e5d05978 898 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
899
900 * ftfont.c (struct ftfont_info): New member index, delete member
901 fc_charset_idx. Make the member order compatible with struct
902 xftfont_info.
903 (fc_charset_table): Change charset names to registry names.
904 (ftfont_pattern_entity): Delete the args registry and
905 fc_charset_idx. Change the value of :font-entity property
906 to (FONTNAME . INDEX). Always set :registry property to
907 `iso10646-1'.
908 (struct ftfont_cache_data): New struct.
909 (ftfont_lookup_cache): New arg for_face.
910 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
911 (ftfont_driver): Set the member otf_capability.
912 (ftfont_get_charset): Adjust it for the change of
913 fc_charset_table.
914 (OTF_TAG_SYM): New macro.
915 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
916 for the change of fc_charset_table.
917 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
918 ftfont_pattern_entity. Add FC_INDEX to objset.
919 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
920 and ftfont_pattern_entity.
921 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
922 font_make_object, struct ftfont_info.
923 (ftfont_has_char): Use ftfont_get_fc_charset.
924 (ftfont_otf_features, ftfont_otf_capability): New functions.
925 (ftfont_shape): Use ftfont_get_otf.
e5d05978 926 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
927
928 * xftfont.c (struct xftfont_info): New member ft_size. Make the
929 member order compatible with struct ftfont_info.
930 (xftfont_open): Add FC_CHARSET to the pattern. Set
931 xftfont_info->ft_size. Don't unlock the face. Check BDF
932 properties if appropriate.
933 (xftfont_close): Unlock the face.
934 (xftfont_anchor_point, xftfont_shape): Deleted.
935 (syms_of_xftfont): Don't set members anchor_point and shape of
936 xftfont_driver.
937
938 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
939 font_make_object.
940
941 * w32font.c (w32font_open): Adjust it for the change of
942 font_make_object.
943 (w32font_open_internal): Don't set properties of font_object here.
944
7f000038
CY
9452008-07-08 Chong Yidong <cyd@stupidchicken.com>
946
830aab93
CY
947 * macfns.c (x_create_tip_frame):
948 * w32fns.c (x_create_tip_frame):
949 * xfns.c (x_create_tip_frame): Pass parameter argument to
950 face-set-after-frame-default.
951
7f000038
CY
952 * xfaces.c (Finternal_merge_in_global_face): Save merged
953 attributes for the default face back into the face vector.
954
85cf8992
AS
9552008-07-08 Andreas Schwab <schwab@suse.de>
956
957 * fontset.h: Declare fontset_from_font. Don't declare
958 new_fontset_from_font and fontset_from_font_name.
959 * xterm.c: Include "fontset.h".
960 * Makefile.in (xterm.o): Update dependencies.
961
4a00783e
GM
9622008-07-08 Glenn Morris <rgm@gnu.org>
963
964 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
965 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
966
4d2d5f5f
CY
9672008-07-07 Chong Yidong <cyd@stupidchicken.com>
968
969 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
970 (x_set_frame_parameters): Don't bind it.
971
dfe66c5b
JB
9722008-07-07 Juanma Barranquero <lekktu@gmail.com>
973
974 * w32fns.c (map_w32_filename): Declare extern.
975
ec7e221c
JR
9762008-07-07 Jason Rumney <jasonr@gnu.org>
977
dfe66c5b 978 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 979
fe5d61c4
CY
9802008-07-06 Chong Yidong <cyd@stupidchicken.com>
981
982 * xfaces.c (set_font_frame_param): Don't try to set the font
983 parameter if it is still unspecified in the lface.
984
9204cb8b
CY
9852008-07-05 Chong Yidong <cyd@stupidchicken.com>
986
0a143d3a
CY
987 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
988 face if it didn't already exist.
989
9204cb8b
CY
990 * xdisp.c (try_window_id): Give up if word-wrapping is on.
991
6c95e70d
AS
9922008-07-05 Andreas Schwab <schwab@suse.de>
993
dfe66c5b 994 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 995
59230395
CY
9962008-07-05 Chong Yidong <cyd@stupidchicken.com>
997
998 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
999 word-wrapping.
1000 (IT_DISPLAYING_WHITESPACE): New macro.
1001 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1002 when word-wrapping. Simplify word-wrapping logic. Use correct
1003 pixel positions when saving copies of the iterator.
1004 (display_line): Use proper wrap point if the last character on a
1005 line was preceded by whitespace.
1006
d7c664f3
SM
10072008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
1008
1009 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1010
9ffc8a3a
KH
10112008-07-04 Kenichi Handa <handa@m17n.org>
1012
1013 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1014
1015 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1016
946598bf
JR
10172008-07-02 Jason Rumney <jasonr@gnu.org>
1018
d7c664f3
SM
1019 * xfns.c (syms_of_xfns): Only define x-select-font when both
1020 HAVE_FREETYPE and USE_GTK
946598bf 1021
d7c664f3
SM
1022 * xdisp.c (next_element_from_display_vector): Move assignment out
1023 of if statement.
946598bf 1024
6cf29fe8
JR
10252008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
1026
d7c664f3 1027 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 1028
d7c664f3
SM
1029 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1030 (syms_of_fileio): Initialize and export them.
1031 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 1032
d7c664f3
SM
1033 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1034 (Fsystem_move_file_to_trash): New function.
1035 (syms_of_w32fns): Export it to lisp.
6cf29fe8 1036
79ca7db1
JR
10372008-07-01 Jason Rumney <jasonr@gnu.org>
1038
d7c664f3
SM
1039 * w32font.c (w32font_text_extents): Don't count overhang as part
1040 of width.
79ca7db1 1041
c2786a3d 10422008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
1043
1044 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1045 Add `avoid_cursor_p' field.
1046
1047 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1048 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1049 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
1050 (append_stretch_glyph): Initialize avoid_cursor_p.
1051 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
1052 (x_produce_glyphs): Use get_it_property.
1053 (handle_line_prefix, push_display_prop): New functions.
1054 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
1055 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1056 New variables.
c4f4682b
MB
1057 (syms_of_xdisp): Initialize them.
1058
7d7ad10e
KH
10592008-06-30 Kenichi Handa <handa@m17n.org>
1060
1061 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1062 XftDefaultSubstitute (they are called in XftFontMatch).
1063 (xftfont_open): Fix args to ftfont_font_format.
1064
1065 * ftfont.c (fc_charset_table): New member lang.
1066 (ftfont_resolve_generic_family): New arg pattern.
1067 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1068 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1069 (ftfont_open): Fix args to ftfont_font_format.
1070 (ftfont_font_format): New arg filename.
1071
44b754c7
CY
10722008-06-30 Chong Yidong <cyd@stupidchicken.com>
1073
1074 * xfaces.c (Finternal_merge_in_global_face): If default face was
1075 modified, realize it again. Update the font face attribute.
1076
a4521b03
JR
10772008-06-29 Jason Rumney <jasonr@gnu.org>
1078
c2786a3d 1079 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 1080
fe44f009
KH
10812008-06-29 Kenichi Handa <handa@m17n.org>
1082
1083 * fontset.c (Finternal_char_font): Return font-object instead of
1084 font-name.
1085
c2786a3d 1086 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 1087
baed8445
SM
10882008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * indent.c (Fvertical_motion): Properly handle float column arg.
1091
8b61a891
JR
10922008-06-28 Jason Rumney <jasonr@gnu.org>
1093
baed8445
SM
1094 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1095 (pfnSetLayeredWindowAttributes): New function pointer.
1096 (w32_initialize): Initialize it when supported.
1097 (x_set_frame_alpha): New function.
8b61a891 1098
baed8445
SM
1099 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1100 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 1101
baed8445 1102 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 1103
57016d37
JR
11042008-06-27 Jason Rumney <jasonr@gnu.org>
1105
baed8445
SM
1106 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1107 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1108 (w32_to_x_charset, x_to_w32_charset)
1109 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1110 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1111 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1112 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1113 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1114 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1115 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1116 (Qw32_charset_unicode): Remove.
1117 (syms_of_w32fns): Update for above changes.
1118
1119 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1120 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1121 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1122 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1123 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1124 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1125 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1126 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1127 (syms_of_w32font): Update for above changes.
57016d37 1128
d6bf1bdb
DN
11292008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1130
1131 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1132 removed #if.
9fa1c445 1133 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 1134
43db14bb
JB
11352008-06-26 Juanma Barranquero <lekktu@gmail.com>
1136 Eli Zaretskii <eliz@gnu.org>
1137
1138 * makefile.w32-in (LOCAL_FLAGS):
1139 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1140
1141 * sysdep.c (_spawnlp, _getpid):
1142 Declare with explicit _cdecl instead of _CRTAPI1.
1143
1144 * editfns.c (Fget_internal_run_time):
1145 Check for WINDOWSNT with #ifdef, not #if.
1146
c35f9821
JR
11472008-06-26 Jason Rumney <jasonr@gnu.org>
1148
43db14bb 1149 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 1150
57016d37 1151 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
1152 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1153 Use FONT_HANDLE macro.
1154 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 1155
57016d37 1156 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 1157 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 1158
43db14bb
JB
1159 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1160 (w32font_text_extents): Use precast w32_font.
1161 (w32font_close): Free cached metrics.
1162 (w32font_open_internal): Allocate space for name on stack.
c35f9821 1163
1f8ad719
CY
11642008-06-26 Chong Yidong <cyd@stupidchicken.com>
1165
1166 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1167
97e71655
JR
11682008-06-26 Jason Rumney <jasonr@gnu.org>
1169
43db14bb
JB
1170 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1171 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 1172
c9fc02c7
JB
11732008-06-26 Juanma Barranquero <lekktu@gmail.com>
1174
1175 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1176
1b5defe6
JR
11772008-06-26 Jason Rumney <jasonr@gnu.org>
1178
c9fc02c7 1179 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 1180
c9fc02c7 1181 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 1182
c9fc02c7
JB
1183 * w32gui.h: Don't include w32bdf.h.
1184 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1185 Remove obsolete font support.
1b5defe6 1186
c9fc02c7
JB
1187 * w32font.h (struct w32font_info): Remove compat_w32_font.
1188 Add hfont member.
1189 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 1190
ba60bd44 1191 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 1192 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 1193 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 1194 (Fx_select_font): Use new hfont member.
1b5defe6 1195
57016d37 1196 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 1197 (uniscribe_encode_char): Use new hfont member.
1b5defe6 1198
57016d37 1199 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
1200 (x_draw_composite_glyph_string_foreground): Use new hfont member.
1201 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 1202
1fc66bca
KH
12032008-06-26 Kenichi Handa <handa@m17n.org>
1204
1205 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1206
f2a77c3a
DN
12072008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
1208
1209 * unexnext.c:
1210 * m/ews4800.h:
1211 * m/hp9000s300.h:
1212 * m/ibm370aix.h:
1213 * m/mips-siemens.h:
1214 * m/ncr386.h:
1215 * m/next.h:
1216 * m/pmax.h:
1217 * m/powerpcle.h:
1218 * m/tandem-s2.h:
1219 * s/386bsd.h:
1220 * s/bsd386.h:
1221 * s/bsd4-1.h:
1222 * s/bsd4-2.h:
1223 * s/bsdos2-1.h:
1224 * s/bsdos2.h:
1225 * s/bsdos3.h:
1226 * s/bsdos4.h:
1227 * s/nextstep.h:
1228 * s/ultrix4-3.h:
1229 * s/usg5-0.h:
1230 * s/usg5-2-2.h:
1231 * s/usg5-2.h:
1232 * s/usg5-4-3.h:
1233 * s/ux4800.h:
1234 * s/uxpds.h:
1235 * s/uxpv.h: Remove support for obsolete systems.
1236 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
1237 Remove, insert contents in s/hpux-10.20.h
1238 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
1239 Remove, insert contents in s/aix-4.2.h
1240 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
1241 * s/bsd4-3.h: Rename to ..
1242 * s/bsd-common.h: ... this.
1243 * src/data.c:
1244 * src/doc.c:
1245 * src/ecrt0.c:
1246 * src/emacs.c:
1247 * src/fileio.c:
1248 * src/floatfns.c:
1249 * src/keyboard.c:
1250 * src/mem-limits.h:
1251 * src/print.c:
1252 * src/process.c:
1253 * src/sysdep.c:
1254 * src/syssignal.h:
1255 * src/systty.h:
1256 * src/syswait.h:
1257 * src/term.c:
1258 * src/unexec.c:
1259 * src/unexelf.c:
1260 * src/unexhp9k800.c:
1261 * src/m/hp800.h:
1262 * src/m/ibmrs6000.h:
1263 * src/m/mips.h:
1264 * src/m/vax.h:
1265 * src/s/darwin.h:
1266 * src/s/freebsd.h:
1267 * src/s/gnu.h:
1268 * src/s/ms-w32.h:
1269 * src/s/msdos.h:
1270 * src/s/netbsd.h:
1271 * src/s/template.h: Remove references to obsolete variables.
1272
1273 * Makefile.in: Add dependencies for all unexec files.
1274 (admindir): Remove unused variable.
1275 (UNEXEC_SRC): Remove references.
1276
bd02793a
CY
12772008-06-25 Chong Yidong <cyd@stupidchicken.com>
1278
1279 * xfns.c (x_default_font_parameter): If Xft is available, first
1280 try Monospace-12 for the default font.
1281
ccedd259
JR
12822008-06-25 Jason Rumney <jasonr@gnu.org>
1283
c9fc02c7 1284 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 1285
fbe062b7
SM
12862008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
1287
603a0937
SM
1288 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1289
fbe062b7
SM
1290 * buffer.c (syms_of_buffer): Remove default-word-wrap.
1291
69785ad0
JB
12922008-06-25 Juanma Barranquero <lekktu@gmail.com>
1293
1294 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1295 <scroll-conservatively>: Fix typo in docstring.
1296
1297 * xselect.c (Fx_send_client_event): Doc fix.
1298
249e6f76
KH
12992008-06-25 Kenichi Handa <handa@m17n.org>
1300
34e97272
KH
1301 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1302
1303 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
1304 (font_sort_entites): Delete the arg SPEC. Caller changed.
1305 Fix for the case of ! best_only.
34e97272
KH
1306 (font_delete_unmatched): Check DPI and AVGWIDTH too.
1307
249e6f76
KH
1308 * lisp.h (Fstring_to_unibyte): EXFUN it.
1309
69785ad0 1310 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
1311
1312 * character.c (str_to_unibyte): New function.
1313
1314 * fns.c (Fstring_to_unibyte): New function.
1315 (syms_of_fns): Defsubr it.
1316
65c108e4
KH
13172008-06-24 Kenichi Handa <handa@m17n.org>
1318
1319 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
1320 DPI too.
1321 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
1322
4c3f18fe
AS
13232008-06-24 Andreas Schwab <schwab@suse.de>
1324
69785ad0 1325 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 1326 ../lisp/loaddefs.el.
fd13748d
AS
1327 (bootstrap-clean): Do what distclean does but don't remove
1328 Makefile.
1329 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 1330
faa6190f
CY
13312008-06-24 Chong Yidong <cyd@stupidchicken.com>
1332
1333 * buffer.h (struct buffer): New member word_wrap.
1334
1335 * buffer.c (syms_of_buffer): New variables default-word-wrap and
1336 word-wrap.
1337 (init_buffer_once): Initialize them.
1338
1339 * dispextern.h (struct it): Replace bool truncate_lines_p with a
1340 line_wrap enum possessing three possible values.
1341
1342 * termopts.h: Replace truncate_partial_width_windows with
1343 Vtruncate_partial_width_windows.
1344
1345 * dispnew.c (direct_output_for_insert): Avoid direct output when
1346 inserting a space with word wrap on.
1347
1348 * indent.c (compute_motion): Obey integer values of
1349 truncate-partial-width-windows.
1350
1351 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
1352 replacing truncate_partial_width_windows.
1353 (init_iterator): If Vtruncate_partial_width_windows is an integer,
1354 truncate only if the window width is below that integer.
ba60bd44 1355 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
1356 (display_string, move_it_in_display_line_to): Use line_wrap.
1357 (back_to_previous_visible_line_start, reseat_1): Reset
1358 string_from_display_prop_p.
1359 (display_line): Extend default face to end of line when wrapping.
1360
13612008-06-24 Kim F. Storm <storm@cua.dk>
1362
1363 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
1364 to wrap continued lines at word boundaries.
1365
c3bb5465
JR
13662008-06-24 Jason Rumney <jasonr@gnu.org>
1367
69785ad0
JB
1368 * font.c (Ffont_face_attributes): Multiply pixel size before point
1369 conversion to avoid multiplying rounding error.
c3bb5465 1370
0b07ad98
JR
13712008-06-23 Jason Rumney <jasonr@gnu.org>
1372
f245f2c6
JB
1373 * w32term.c (x_draw_glyph_string_background)
1374 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 1375
69785ad0 1376 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 1377
22459668
KH
13782008-06-22 Kenichi Handa <handa@m17n.org>
1379
1380 * font.c (font_find_for_lface): Try the adstyle specified in
1381 the property of LFACE_FONT of LFACE (if any).
1382
d925a426 13832008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 1384 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
1385
1386 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
1387
b4945b95
SM
13882008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
1389
1390 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
1391 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
1392 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
1393 (witness-emacs): Remove.
1394 (lisp, shortlisp): Move loaddefs.el earlier.
1395 (mostlyclean): Forget about witness-emacs.
1396
64124279
GM
13972008-06-22 Glenn Morris <rgm@gnu.org>
1398
1399 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 1400 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 1401
768efd84
SM
14022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * Makefile.in (PRECOMP): Remove.
1405 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
1406 (witness-emacs): Run `compile-first'.
1407 (.el.elc): Use the new compile-onefile target.
1408
808dd567
KH
14092008-06-21 Kenichi Handa <handa@m17n.org>
1410
1411 * xftfont.c (xftfont_open): Handle QCembolden only when
1412 FC_EMBOLDEN is defined.
1413
0de59eae
AS
14142008-06-21 Andreas Schwab <schwab@suse.de>
1415
1416 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 1417 (.el.elc): Likewise.
0de59eae 1418
fb38e9c9
MB
14192008-06-21 Miles Bader <miles@gnu.org>
1420
1421 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
1422 build dir, not the lisp source dir.
1423
fc46d219
SM
14242008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1425
1426 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
1427 (bootstrapclean): Remove.
1428 (.el.elc): New rule.
1429 (PRECOMP): New var.
1430 (../lisp/subdirs.el): Remove.
1431 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
1432 (witness-emacs): New target.
1433 (mostlyclean): Remove witness-emacs as well.
1434 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
1435 Add witness-emacs dependency.
1436
eaf1f6e7
CY
14372008-06-20 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
1440 defined by the font.
1441
49f6eb95
SM
14422008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1443
1444 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
1445 (bootstrap-clean): New target that keeps TAGS around.
1446 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
1447 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
1448
4c100a01
JR
14492008-06-20 Jason Rumney <jasonr@gnu.org>
1450
49f6eb95
SM
1451 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
1452 Remove obsolete font code.
db61a7f8 1453
49f6eb95
SM
1454 * w32font.c (font_matches_spec): Use csb bitfield from font signature
1455 to determine language support.
4c100a01 1456
759d3f32
SM
14572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1458
1459 * sysdep.c (cfsetspeed): New fun extracted from the code.
1460 (cfmakeraw): Move before first use.
1461
25241b4d
SM
14622008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
1463
1464 * sysdep.c (cfmakeraw): Provide fallback implementation.
1465 (serial_configure): Provide fallback implementation of cfsetspeed.
1466
d7afccca
KH
14672008-06-20 Kenichi Handa <handa@m17n.org>
1468
dc2226d0
KH
1469 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
1470 the pattern.
1471
9b9cd864
KH
1472 * fontset.c (fontset_from_font): Copy font_spec before changing
1473 the elements.
1474
d7afccca
KH
1475 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
1476
770e2e6e
SM
14772008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1478
1479 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
1480 for explicit `font' parameters.
1481
1482 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
1483
22e64f7c
KH
14842008-06-19 Kenichi Handa <handa@m17n.org>
1485
1486 * frame.c: Include <ctype.h>.
1487 (x_set_font_backend): Allow spacing characters in the X resource
1488 for FontBackend.
1489
27129af9
SM
14902008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
1491
1492 * w32fns.c, xfns.c (Qfont_param): New var.
1493 (syms_of_w32fns): Initialize it.
22e64f7c
KH
1494 (x_default_font_parameter): Record explicit `font' into
1495 `font-parameter'.
27129af9 1496
d26424c5
KH
14972008-06-18 Kenichi Handa <handa@m17n.org>
1498
1499 * font.c (font_parse_xlfd): Fix previous change.
1500 (font_parse_fcname): Don't use :fc-unknown-spec.
1501 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1502 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1503 (font_add_log): Prepend the driver name to the resulting fonts.
1504
1505 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
1506 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1507 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1508
1509 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1510 (QCembolden): New variables.
1511 (syms_of_xftfont): DEFSYM them.
1512 (xftfont_open): Call XftFontMatch. Don't trust the result of
1513 XftTextExtents8 if the pixel_size is less than 5.
1514
51cf11be
AS
15152008-06-18 Andreas Schwab <schwab@suse.de>
1516
f245f2c6 1517 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
1518 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1519
07d9ba9b
JR
15202008-06-18 Jason Rumney <jasonr@gnu.org>
1521
27129af9 1522 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 1523
27129af9 1524 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 1525
0c36bc4e
CY
15262008-06-17 Chong Yidong <cyd@stupidchicken.com>
1527
1528 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
1529 unknown-spec list. For known key symbols, intern using correct
1530 symbol name.
0c36bc4e 1531
70d6ecc6
KH
15322008-06-17 Kenichi Handa <handa@m17n.org>
1533
1534 * xfaces.c (realize_default_face): If the frame is not on window
1535 system, set the fontset of face to nil.
1536
821bc4db
KH
15372008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1538
f245f2c6 1539 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 1540
3554e566
JB
15412008-06-16 Juanma Barranquero <lekktu@gmail.com>
1542
1543 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
1544 (build_font_name_from_vector): Delete externs.
1545
1546 * xfaces.c (struct font_name): Don't declare.
1547
93eed26b
SM
15482008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1549
1550 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
1551
d756bcd0
CY
15522008-06-16 Chong Yidong <cyd@stupidchicken.com>
1553
1554 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
1555
7a18a178
JB
15562008-06-16 Juanma Barranquero <lekktu@gmail.com>
1557
1558 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 1559 (Ffont_face_attributes): Doc fix.
7a18a178 1560
6f568955
AS
15612008-06-16 Andreas Schwab <schwab@suse.de>
1562
1563 * font.c (Ffont_face_attributes): Fix definition.
1564
3ef8c1b4
JR
15652008-06-16 Jason Rumney <jasonr@gnu.org>
1566
93eed26b 1567 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 1568
93eed26b
SM
1569 * font.c (font_style_symbolic_from_value): Remove.
1570 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 1571
93eed26b
SM
1572 * w32font.c (w32_to_fc_weight): New function.
1573 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 1574
5e634ec9
KH
15752008-06-16 Kenichi Handa <handa@m17n.org>
1576
1577 * font.c (font_check_object): Delete it.
1578 (font_clear_cache): Check if a font-object is alive.
1579 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
1580 font-object to nil.
1581 (font_close_object): Don't check FONT_CLOSE_OBJECT.
1582 (font_at): Don't call font_check_object.
2babb359 1583 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 1584
6409a955
KY
15852008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
1586
1587 * puresize.h (BASE_PURESIZE): Increase to 1230000.
1588
ce4eaddb
CY
15892008-06-16 Chong Yidong <cyd@stupidchicken.com>
1590
1591 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
1592
523dbe64
CY
15932008-06-15 Chong Yidong <cyd@stupidchicken.com>
1594
54b2ab27 1595 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
1596 (font_unparse_fcname): Handle data in family and foundry indices
1597 as symbols, not strings.
1598 (font_unparse_gtkname, Ffont_face_attributes): New functions.
1599
54b2ab27 1600 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
1601
1602 * font.h (font_unparse_gtkname): Add prototype.
1603
9f296082
KH
16042008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1605
54b2ab27 1606 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 1607
3306c6dc
AS
16082008-06-15 Andreas Schwab <schwab@suse.de>
1609
1610 * font.c (font_update_drivers): Fix crash when no drivers match.
1611
a099c27a
SM
16122008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
1613
1614 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
1615 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
1616
a8aa344d
SM
16172008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
1618
1619 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
1620
a879ee6f
SM
16212008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1622
1623 * process.c (Fserial_process_configure, Fprocess_send_eof):
1624 Use EQ to compare Lisp_Objects.
1625
6fe9826d
JR
16262008-06-13 Jason Rumney <jasonr@gnu.org>
1627
a879ee6f 1628 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 1629
a879ee6f
SM
1630 * w32font.c (logfont_to_fcname): New function.
1631 (Fx_select_font): New font dialog function compatible with
1632 GTK/fontconfig version.
6fe9826d 1633
a879ee6f
SM
1634 * font.c (font_style_symbolic_from_value): New function.
1635 (font_style_symbolic): Use it.
6fe9826d 1636
a879ee6f 1637 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 1638
17ab8f5d
JB
16392008-06-13 Juanma Barranquero <lekktu@gmail.com>
1640
1641 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
1642 <font-width-table>: Fix typos in docstrings.
1643
d888760c
GM
16442008-06-13 Daniel Engeler <engeler@gmail.com>
1645
1646 These changes add serial port access.
1647 * process.c: Add HAVE_SERIAL.
1648 (Fdelete_process, Fprocess_status, Fset_process_buffer)
1649 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
1650 (list_processes_1, select_wrapper, Fstop_process)
1651 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
1652 (status_notify): Modify to handle serial processes.
1653 [HAVE_SERIAL] (Fserial_process_configure)
1654 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
1655 New functions.
1656 * process.h (struct Lisp_Process): Add `type'.
1657 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
1658 New functions.
1659 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
1660 serial ports.
1661 (serial_open, serial_configure) New functions.
1662 * w32.h: Add FILE_SERIAL.
1663 (struct _child_process): Add ovl_read, ovl_write.
1664
f4cc0153
KH
16652008-06-13 Kenichi Handa <handa@m17n.org>
1666
1667 * dispextern.h (enum lface_attribute_index): New member
1668 LFACE_FOUNDRY_INDEX.
1669
1670 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 1671 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 1672 style symbols.
7a18e381 1673 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
1674 order of font-driver to scores.
1675 (font_list_entities): Don't check alternate_familes here.
1676 (font_clear_prop): Handle foundry.
1677 (font_update_lface): Don't parse "foundry-family" form here.
1678 Handle FONT_FOUNDRY_INDEX.
1679 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 1680 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 1681 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 1682 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
1683 (free_font_driver_list): Delete it.
1684 (font_update_drivers): Preserve the order of backends.
1685 (syms_of_font): Setting of sort_shift_bits adjusted for the change
1686 of font_score and font_sort_entites.
1687 (font_update_sort_order): Likewise.
1688
1689 * xfaces.c (LFACE_FOUNDRY): New macro.
1690 (check_lface_attrs): Check foundry.
7a18e381 1691 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
1692 (merge_face_vectors): Check foundry.
1693 (merge_face_ref): Likewise.
1694 (Finternal_set_lisp_face_attribute): Likewise.
1695 (x_update_menu_appearance): Likewise.
1696 (Finternal_get_lisp_face_attribute): Likewise.
1697 (lface_hash): Likewise.
1698 (lface_same_font_attributes_p): Likewise.
1699 (x_supports_face_attributes_p): Likewise.
1700 (tty_supports_face_attributes_p): Likewise.
1701 (Finternal_set_alternative_font_family_alist): Intern strings.
1702 (Finternal_set_alternative_font_registry_alist): Downcase strings.
1703 (realize_default_face): Set LFACE_FOUNDRY (lface).
1704
1705 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
1706 font-driver at first.
1707
1708 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
1709
d434fef5 17102008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
1711
1712 * lread.c (Fload): Use xfree, not free on saved_doc_string.
1713
9c5e177e
JM
17142008-06-12 Jim Meyering <meyering@redhat.com>
1715
d434fef5 1716 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
1717 * unexmacosx.c (unexec_free): Ignore a NULL argument.
1718
2afc21f5
SM
17192008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1720
1721 * character.h (CHAR_TO_BYTE_SAFE): New macro.
1722 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
1723 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
1724 (WEAK_ALIAS): Simplify.
1725 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
1726 when searching a unibyte buffer.
1727
76c0de62
CY
17282008-06-12 Chong Yidong <cyd@stupidchicken.com>
1729
1730 * xfns.c (Fx_select_font): Rename from x-font-dialog.
1731
0500dcc9
JB
17322008-06-12 Juanma Barranquero <lekktu@gmail.com>
1733
1734 * w32font.c: Include ctype.h.
1735
f42adef6
JR
17362008-06-11 Jason Rumney <jasonr@gnu.org>
1737
2afc21f5
SM
1738 * w32font.c (w32font_encode_char): Detect missing glyphs that are
1739 misreported as space.
1740 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
1741 as aliases for registry iso10646-1.
f42adef6 1742
4b7cdc0e
SM
17432008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1744
1745 * buffer.c (clone_per_buffer_values): Skip `name'.
1746
cc02ebe1
CY
17472008-06-11 Chong Yidong <cyd@stupidchicken.com>
1748
1749 * font.c (font_parse_fcname): Fix last change; accept decimal
1750 points in font size.
1751
351ccb76
JR
17522008-06-10 Jason Rumney <jasonr@gnu.org>
1753
0500dcc9
JB
1754 * w32uniscribe.c (add_opentype_font_name_to_list):
1755 Skip non unicode fonts.
351ccb76 1756
f473ed6f
CY
17572008-06-10 Chong Yidong <cyd@stupidchicken.com>
1758
1759 * xfns.c (Fx_font_dialog): New function.
1760
5d6333d5 1761 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
1762 xg_file_response_callback.
1763 (pop_down_dialog): Rename from pop_down_file_dialog.
1764 (xg_get_file_name): Callers changed.
1765 (xg_get_font_name): New function.
1766
5d6333d5 1767 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 1768
2a3bd2e1
SM
17692008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1770
1771 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
1772 x_underline_minimum_display_offset.
1773 (syms_of_xdisp): Declare it here rather than in xterm.c.
1774 * dispextern.h (underline_minimum_offset): Declare it.
1775 * w32term.c (x_draw_glyph_string): Use it.
1776 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
1777 (syms_of_xterm): Don't declare it any more.
1778 (x_draw_glyph_string): Adjust to the new name.
1779
d5dc6163
SM
17802008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
1781
1782 * xterm.c (x_underline_minimum_display_offset): New var.
1783 (x_draw_glyph_string): Use it.
1784 (syms_of_xterm): Declare it.
1785
0abdd197
CY
17862008-06-10 Chong Yidong <cyd@stupidchicken.com>
1787
1788 * font.c (font_parse_fcname): Accept GTK-style font names too.
1789
a1562258
SM
17902008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1791
928b5acc
SM
1792 * dired.c (file_name_completion): Don't return t if the match is exact
1793 but with different capitalization.
1794 * minibuf.c (Ftry_completion): Simplify.
1795
a1562258
SM
1796 * window.c (Vwindow_point_insertion_type): New var.
1797 (set_window_buffer): Use it.
1798 (syms_of_window): Init and export it to Lisp.
1799
9552dbd1
KH
18002008-06-10 Kenichi Handa <handa@m17n.org>
1801
1802 * font.h (font_intern_prop): Prototype adjusted.
1803
1804 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
1805 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1806 Adjust for the change of font_intern_prop.
9552dbd1 1807
a1562258
SM
1808 * ftfont.c (ftfont_pattern_entity):
1809 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1810 (w32_registry):
1811 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
1812 the change of font_intern_prop.
1813
8993ad2e
JB
18142008-06-09 Juanma Barranquero <lekktu@gmail.com>
1815
1816 * w32menu.c (digest_single_submenu): Declare extern.
1817
0c2258fc
JR
18182008-06-09 Jason Rumney <jasonr@gnu.org>
1819
a1562258 1820 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 1821
a1562258
SM
1822 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1823 (parse_single_submenu): Remove.
1824 (digest_single_submenu): Remove.
1825 (syms_of_w32menu): Don't initialise variables that have moved
1826 to menu.c.
1827 (set_frame_menubar): Sync with version in xmenu.c.
1828 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 1829
8993ad2e
JB
1830 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1831 Make static again.
0c2258fc 1832
02246cb8
JR
18332008-06-09 Jason Rumney <jasonr@gnu.org>
1834
8993ad2e
JB
1835 Changes to w32 files related to the move of common menu code
1836 to menu.c on 2008-06-08 by Chong Yidong.
1837
1838 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1839 defs to w32gui.h.
1840 (single_keymap_panes, push_menu_item, push_menu_pane):
1841 Make globally visible.
1842
d434fef5
JB
1843 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1844 (local_free, malloc_widget_value, free_widget_value)
1845 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1846 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1847 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 1848 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 1849 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
1850 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1851 (init_menu_items, finish_menu_items, discard_menu_items)
1852 (grow_menu_items, push_submenu_start, push_submenu_end)
1853 (push_left_right_boundary, push_menu_pane, push_menu_item)
1854 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 1855 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
1856 (update_submenu_strings): Remove functions.
1857 (xmalloc_widget_value): Remove and declare extern.
1858
1859 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1860 (OBJ1): Build it.
1861
1862 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1863 (local_heap, local_alloc, local_free, malloc_widget_value)
1864 (free_widget_value): Define here.
02246cb8 1865
9e1bb909
KH
18662008-06-09 Kenichi Handa <handa@m17n.org>
1867
366664ad
KH
1868 * font.h (Qascii_0): Extern it.
1869
9e1bb909
KH
1870 * font.c (Qascii_0): New variable.
1871 (syms_of_font): DEFSYM it.
1872 (font_open_by_name): If the registry "iso8859-1" fails, try also
1873 "ascii-0".
1874
1875 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
1876
b2ee479e
KH
18772008-06-08 Kenichi Handa <handa@m17n.org>
1878
8f440b79 1879 * .gdbinit (xfont): New command.
b2ee479e 1880
01ef9d36
AS
18812008-06-08 Andreas Schwab <schwab@suse.de>
1882
a4240420
AS
1883 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
1884 * Makefile.in (menu.o): Update dependencies.
1885
0181bf66 1886 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
1887 * emacs.c (main): Always call syms_of_menu.
1888 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
1889
c07cbae6
CY
18902008-06-08 Chong Yidong <cyd@stupidchicken.com>
1891
1892 * Makefile.in: Compile menu.c.
1893
1894 * lisp.h: Declare syms_of_menu.
1895
1896 * emacs.c (main): Call syms_of_menu.
1897
1898 * keyboard.h: Relocate platform-independent menu definitions from
1899 xmenu.c.
1900
1901 * menu.c: New file. Relocate platform-independent menu
904d8c69 1902 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
1903
1904 * xmenu.c: Remove platform-independent menu definitions.
1905 (menu_items menu_items_inuse, menu_items_allocated)
1906 (menu_items_used, menu_items_n_panes)
1907 (menu_items_submenu_depth): Move to keyboard.h.
1908 (init_menu_items, finish_menu_items, unuse_menu_items)
1909 (discard_menu_items, restore_menu_items, save_menu_items)
1910 (grow_menu_items, push_submenu_start, push_submenu_end)
1911 (push_left_right_boundary, push_menu_pane, push_menu_item)
1912 (keymap_panes, single_keymap_panes, single_menu_item)
1913 (list_of_panes, list_of_items, find_and_call_menu_selection)
1914 (xmalloc_widget_value, free_menubar_widget_value_tree)
1915 (parse_single_submenu, digest_single_submenu)
1916 (update_submenu_strings): Move to menu.c.
1917
4958ed94
SM
19182008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
1919
1920 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
1921
408b8ab4
MB
19222008-06-06 Miles Bader <miles@gnu.org>
1923
1924 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
1925 face, not frame default.
1926
87478b52
SM
19272008-06-05 Martin Rudalics <rudalics@gmx.at>
1928
1929 * window.c (pop_up_windows, pop_up_frames)
1930 (display_buffer_reuse_frames, Vpop_up_frame_function)
1931 (Vdisplay_buffer_function, Veven_window_heights)
1932 (Vspecial_display_buffer_names, Vspecial_display_regexps)
1933 (Vspecial_display_function, Vsame_window_buffer_names)
1934 (Vsame_window_regexps, split_height_threshold)
1935 (Vsplit_window_preferred_function): Move those vars to window.el.
1936 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
1937 (Fdisplay_buffer): Move those functions to window.el.
1938 (syms_of_window): Remove corresponding declarations.
1939 (display_buffer): New function.
1940 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
1941 * dispnew.c (Flast_nonminibuf_frame): New function.
1942 * buffer.c (Fpop_to_buffer): Move to window.el.
1943
9e0e0d77
SM
19442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1945
1946 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
1947
4a485df8
KH
19482008-06-05 Kenichi Handa <handa@m17n.org>
1949
1950 * coding.c (detect_coding): Fix previous change.
1951 (detect_coding_system): Likewise.
1952
8ba31f36
SM
19532008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1954
c0dc8f64
SM
1955 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
1956
8ba31f36
SM
1957 * keymap.c (Vminibuffer_local_filename_must_match_map):
1958 Rename from Vminibuffer_local_must_match_filename_map.
1959 (syms_of_keymap):
1960 * minibuf.c (Fcompleting_read): Adjust accordingly.
1961 * commands.h: Rename declaration as well.
1962
7740d2c7
KH
19632008-06-05 Kenichi Handa <handa@m17n.org>
1964
e7438ece
KH
1965 * font.c (Ffont_spec): Don't use font_parse_family_registry for
1966 family name.
1967 (Ffont_put): Likewise.
1968
1969 * fontset.c (fontset_find_font): Call font_open_for_lface with the
1970 current font-spec.
1971
7740d2c7
KH
1972 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
1973 is unspecified.
1974
1975 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
1976 are the same as those of default face, realize a new fontset from
1977 default->fontset.
9e0e0d77 1978 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 1979
c876b227
SM
19802008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1981
1982 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
1983 (move_it_in_display_line): New wrapper.
1984
1985 * window.c (window_scroll_pixel_based_preserve_x)
1986 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1987 (window_scroll_pixel_based, window_scroll_line_based):
1988 Use them to preserve column positions.
1989 (syms_of_window): Initialize them.
1990
1991 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1992 (HPOS . VPOS) pair.
1993
1994 * dispextern.h (move_it_in_display_line): Declare.
1995
927abf37
JB
19962008-06-05 Juanma Barranquero <lekktu@gmail.com>
1997
1998 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1999 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
2000 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
2001
9d14503e
JB
20022008-06-04 Juanma Barranquero <lekktu@gmail.com>
2003
2004 * window.c (Fset_window_parameter): Doc fix.
2005 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2006
e6841c3b
JB
20072008-06-04 Joakim Verona <joakim@verona.se>
2008
2009 * window.h (struct window): Add new member window_parameters.
2010
2011 * window.c (Fwindow_parameters, Fwindow_parameter)
2012 (Fset_window_parameter): New defuns.
2013 (syms_of_window): Defsubr the new defuns.
2014 (make_window): Initialize window_parameters to nil.
2015
4ba50634
JPW
20162008-06-04 John Paul Wallington <jpw@pobox.com>
2017
2018 * eval.c (Fdefmacro): Doc fix.
2019
c0e16b14
KH
20202008-06-04 Kenichi Handa <handa@m17n.org>
2021
2022 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 2023 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
2024 (detect_coding_system): Fix handling of coding->head_ascii.
2025
0615d903
AS
20262008-06-03 Andreas Schwab <schwab@suse.de>
2027
2028 * font.c (font_prop_validate_spacing): Fix last change.
2029
8a1816bb
KH
20302008-06-03 Kenichi Handa <handa@m17n.org>
2031
eea9c5c4
KH
2032 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2033 (font_parse_fcname): Fix handling of unknown key.
2034
2035 * xfont.c (xfont_list): Try an alias.
2036
8a1816bb
KH
2037 * charset.c (char_charset): Return NULL if the arg charset_list is
2038 specified and C doesn't belong to any of them.
2039
2f593f4c 20402008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
2041
2042 * font.c (font_pixel_size): Don't take cdr of an integer.
2043
c2cd06e6
JM
20442008-06-02 Jim Meyering <meyering@redhat.com>
2045
70fdbb46
JM
2046 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2047 * alloc.c (xfree): Return right away for a NULL arg.
2048 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2049 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2050 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
2051 (create_apple_event_from_drag_ref, cfstring_create_normalized):
2052 Likewise.
70fdbb46
JM
2053 * doprnt.c (doprnt1): Likewise.
2054 * frame.c (frame): Likewise.
2055 * keyboard.c (wipe_kboard): Likewise.
1f204af3 2056 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
2057 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2058 * term.c (tty_default_color_capabilities, maybe_fatal)
2059 (delete_tty): Likewise.
2060 * w16select.c (string): Likewise.
2061 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2062 * w32bdf.c (w32_free_bdf_font): Likewise.
2063 * w32fns.c (w32_unload_font): Likewise.
2064 * w32font.c (w32font_close): Likewise.
2065 * window.c (size_window): Likewise.
2066 * xselect.c (receive_incremental_selection): Likewise.
2067 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2068 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2069 * w32.c (stat): Likewise.
2070
2f593f4c 2071 Remove useless if-before-free tests.
70fdbb46
JM
2072 * editfns.c (Fset_time_zone_rule): Likewise.
2073 * lread.c (nosuffix): Likewise.
2074 * ralloc.c (get_bloc): Likewise.
2075 * regex.c (reg_free): Likewise.
2076 * xftfont.c (xftfont_open, xftfont_close): Likewise.
2077 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2078 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 2079
4fc1984a
KH
20802008-06-02 Kenichi Handa <handa@m17n.org>
2081
1d1e1245
KH
2082 * font.c (font_find_for_lface): Handle float font size.
2083 (font_open_for_lface): Likewise.
2084
4fc1984a
KH
2085 * xfaces.c (x_supports_face_attributes_p): Check face->font before
2086 comparing the properties.
2087
aee986fd
JR
20882008-06-01 Jason Rumney <jasonr@gnu.org>
2089
e6841c3b
JB
2090 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2091 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2092 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2093 Don't add empty script list.
2094 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 2095
60a3d7ee
DN
20962008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2097
aee986fd 2098 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
2099 ".." has been used elsewhere in the file for a long time.
2100 (LIBXT_STATIC): Remove conditional based on unused variable.
2101
f2cec7a9
MB
21022008-06-01 Miles Bader <miles@gnu.org>
2103
2104 * xfaces.c (Vface_remapping_alist): New variable.
2105 (syms_of_xfaces): Initialize it.
2106 (enum named_merge_point_kind): New type.
2107 (struct named_merge_point): Add `named_merge_point_kind' field.
2108 (push_named_merge_point): Make cycle detection respect different
2109 named-merge-point kinds.
c876b227 2110 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
2111 Remove face-name alias resolution.
2112 (lface_from_face_name): New definition using
2113 `lface_from_face_name_no_resolve'.
c876b227 2114 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
2115 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2116 (get_lface_attributes): New definition that layers face-remapping on
2117 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2118 (lookup_basic_face): New function.
2119 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2120 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2121 `get_lface_attributes'.
2122 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2123 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2124 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2125
2126 * xdisp.c (init_iterator): Pass base_face_id through
2127 `lookup_basic_face' when we actually use it as a face-id.
2128 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2129 DEFAULT_FACE_ID.
2130
2131 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2132 lookup the initial face-id.
2133
2134 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2135
518c0b83
JB
21362008-06-01 Juanma Barranquero <lekktu@gmail.com>
2137
2138 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2139 (Fremove_text_properties): Fix typos in docstrings.
2140
719b3d63
KH
21412008-05-31 Kenichi Handa <handa@m17n.org>
2142
e4c93315
KH
2143 * font.c (font_list_entities): Fix the car part of data to be
2144 stored in the cache.
2145
719b3d63
KH
2146 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2147
d0827857
SM
21482008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2149
2150 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2151 Add a `test' argument so another predicate than `equal' can be used.
2152 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2153 (map_char_table): Remove unused vars `c' and `i'.
2154 * lisp.h (Foptimize_char_table): Adjust declaration.
2155 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2156
a266686a
KH
21572008-05-30 Kenichi Handa <handa@m17n.org>
2158
d0827857 2159 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
2160 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2161 defined.
2162
fd9440c5
SM
21632008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2164
2165 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2166 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2167 frame-local settings for the same variable.
2168
fd2ae9b2
KH
21692008-05-30 Kenichi Handa <handa@m17n.org>
2170
9e0e0d77 2171 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
2172 (syms_of_fontset): Delete defsubr of Sfont_info.
2173
2174 * font.c (font_style_to_value, font_score): Delete casting of the
2175 args to xstcasecmp.
2176 (register_font_driver): Increment num_font_drivers only when
2177 registering the driver globally.
9e0e0d77 2178 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
2179 (syms_of_font): Defsubr Sfont_info.
2180
eaf11618
KH
21812008-05-29 Kenichi Handa <handa@m17n.org>
2182
2183 * coding.h (enum define_coding_utf8_arg_index): New enum.
2184 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2185 coding_attr_utf_bom.
fd9440c5
SM
2186 (enum utf_bom_type): Rename from utf_16_bom_type.
2187 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
2188 (struct coding_system): Add utf_8_bom in `spec' union.
2189
2190 * coding.c (CODING_UTF_8_BOM): New macro.
2191 (enum coding_category): Delete coding_category_utf_8, add
2192 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2193 coding_category_utf_8_sig.
2194 (CATEGORY_MASK_UTF_8): Delete it.
2195 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2196 (CATEGORY_MASK_UTF_8_SIG): New macros.
2197 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2198 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2199 CATEGORY_MASK_UTF_8_SIG.
2200 (CATEGORY_MASK_UTF_8): New macro.
2201 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2202 (detect_coding_utf_8): Check BOM.
2203 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 2204 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
2205 (encode_coding_utf_16): Likewise.
2206 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
2207 (detect_coding, detect_coding_system): Handle utf-8-auto.
2208 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2209 (syms_of_coding): Fix setting up of Vcoding_category_table.
2210
891bd142
SM
22112008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
2212
2213 * process.c (Faccept_process_output): If `millisec' is non-nil,
2214 `seconds' default to 0.
2215 (wait_reading_process_output): Also return non-nil if we read output
2216 from a non-running process.
2217
1519d52e
JR
22182008-05-29 Jason Rumney <jasonr@gnu.org>
2219
fd9440c5
SM
2220 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2221 `raster' specified.
2222 (add_font_entity_to_list): Allow non-opentype truetype fonts back
2223 in the uniscribe backend, but disallow any font that has no
2224 unicode subrange support.
1519d52e 2225
d5ab09cd
JB
22262008-05-29 Juanma Barranquero <lekktu@gmail.com>
2227
2228 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2229 Fix typos in docstrings.
2230
a4eec626
KH
22312008-05-29 Kenichi Handa <handa@m17n.org>
2232
2233 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 2234 (Fx_family_fonts): Set frame correctly.
a4eec626 2235
a6e0b7e5
JR
22362008-05-28 Jason Rumney <jasonr@gnu.org>
2237
d5ab09cd 2238 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 2239
6b3d752c
SM
22402008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2241
2242 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2243 calling build_annotations.
2244
c3f9fba8
JB
22452008-05-28 Juanma Barranquero <lekktu@gmail.com>
2246
2247 * coding.c (Fdecode_coding_region, Fencode_coding_region)
2248 (Fencode_coding_string):
2249 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2250 <latin-extra-code-table>: Fix typos in docstrings.
2251 (syms_of_coding) <coding-system-alist>: Doc fix.
2252 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2253
00c670e1
KH
22542008-05-28 Kenichi Handa <handa@m17n.org>
2255
b75d7f28
KH
2256 * fontset.c (Ffont_info): Don't call font_close_object.
2257
2258 * font.c (font_parse_family_registry): Use Ffont_put to validate
2259 foundry and family.
2260 (font_delete_unmatched): Don't check spacing.
2261 (font_list_entities): Add spacing to the spec to list fonts.
2262
2263 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 2264 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 2265
00c670e1
KH
2266 * coding.c (encode_coding_raw_text): Fix previous change.
2267 (encode_coding_object): When the dst_object is a buffer and is
2268 different from src_object, move gap to PT.
2269
45feca91
CY
22702008-05-27 Chong Yidong <cyd@stupidchicken.com>
2271
c3f9fba8 2272 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 2273
5dd5d9eb
SM
22742008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2275
01d45367
SM
2276 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2277 all branches. Compute it differently.
2278
5dd5d9eb
SM
2279 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2280
9c623c85
JB
22812008-05-27 Juanma Barranquero <lekktu@gmail.com>
2282
2283 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2284 into "else if () ... else ...".
2285
943f2093
JR
22862008-05-27 Jason Rumney <jasonr@gnu.org>
2287
5dd5d9eb
SM
2288 * w32font.c (w32font_open_internal): Determine if glyph indices
2289 are likely to work here.
943f2093 2290
7385fe74
CY
22912008-05-27 Chong Yidong <cyd@stupidchicken.com>
2292
2293 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2294 draw overlap glyphs with appropriate highlighting.
2295
4f64a164
KH
22962008-05-27 Kenichi Handa <handa@m17n.org>
2297
2298 * xfont.c (xfont_open): Fix calculation of font->average_width.
2299
1fb5aad7
SM
23002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2301
2302 * casefiddle.c (casify_object): Try to guess better whether the
2303 argument is a byte or a char.
2304
f8eb1603
AS
23052008-05-26 Andreas Schwab <schwab@suse.de>
2306
1fb5aad7
SM
2307 * xselect.c (x_reply_selection_request): Properly handle format == 32.
2308 Always send multiples of format size.
5a9c35e5 2309
f8eb1603
AS
2310 * xterm.c (x_set_frame_alpha): Fix type mismatch.
2311
ba93d684
JR
23122008-05-26 Jason Rumney <jasonr@gnu.org>
2313
1fb5aad7
SM
2314 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2315 (compute_metrics): Don't set failure if we just cleared the cache.
2316 (w32_weight_table): Remove unused variable.
2317 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2318 backwards compatibility.
ba93d684 2319
505ecc49
KH
23202008-05-25 Kenichi Handa <handa@m17n.org>
2321
1fb5aad7
SM
2322 * w32term.c (x_draw_glyph_string):
2323 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
2324
2325 * xfaces.c: Delete unused function prototypes.
2326 (xstrlwr, font_frame): Delete them.
2327 (clear_face_cache): Delete unused variable.
2328
1fb5aad7
SM
2329 * xftfont.c (xftfont_open): Delete unused variable.
2330 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
2331
2332 * ftxfont.c (ftxfont_open): Delete unused variable.
2333
2334 * fontset.c (face_for_char): Optimize for the case of no charset
2335 property.
2336
2337 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
2338 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
2339 (otf_open, font_otf_capability, generate_otf_features)
2340 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 2341 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
2342 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
2343 (syms_of_font): Codes for accessing above commented out.
2344
f481eb31
EZ
23452008-05-24 Eli Zaretskii <eliz@gnu.org>
2346
2347 * w32proc.c: Include dispextern.h.
2348
2349 * w32.c: Include dispextern.h.
2350
20746fe4
JB
23512008-05-23 Juanma Barranquero <lekktu@gmail.com>
2352
2353 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
2354 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
2355 Fix typos in docstrings.
2356
e7150846
JR
23572008-05-23 Jason Rumney <jasonr@gnu.org>
2358
20746fe4 2359 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 2360
dbf46ba6
KH
23612008-05-23 Kenichi Handa <handa@m17n.org>
2362
6c652beb
KH
2363 * charset.c (Qemacs, charset_emacs): New variables.
2364 (char_charset): Fix for non-Unicode characters.
2365 (syms_of_charset): Define charset_emacs.
2366
baf4d3b3 2367 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
2368 s->underline_thickness and s->underline_position. Be sure to draw
2369 underline within the current line area.
baf4d3b3
KH
2370
2371 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 2372 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 2373 underline within the current line area.
baf4d3b3 2374
dbf46ba6
KH
2375 * fontset.c: Delete unused variables and add casting for char *
2376 throughout the file.
2377 (fontset_font): Try the fallback fonts of the current fontset
2378 before consulting the default fontset.
2379
2380 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
2381
9e0e0d77 2382 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 2383
3b780338
JR
23842008-05-22 Jason Rumney <jasonr@gnu.org>
2385
20746fe4 2386 * font.c: Don't include strings.h.
577eba22 2387
9e0e0d77 2388 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 2389
20746fe4
JB
2390 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
2391 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
2392 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
2393 to call xstrcasecmp.
05131107 2394
b1722a46 2395 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 2396
b1722a46 2397 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 2398
b1722a46 2399 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 2400
b1722a46 2401 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 2402
a30e1957
KH
24032008-05-22 Kenichi Handa <handa@m17n.org>
2404
20746fe4 2405 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 2406
20746fe4 2407 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
2408 change of font_style_table.
2409
a30e1957
KH
2410 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
2411 two args.
2412
2413 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
2414 two args.
2415
631248e5
SM
24162008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2417
2418 * minibuf.c (keys_of_minibuf): Delete.
2419 * lisp.h (keys_of_minibuf): Delete.
2420 * emacs.c (main): Don't call keys_of_minibuf.
2421
318548be
KH
24222008-05-22 Kenichi Handa <handa@m17n.org>
2423
631248e5 2424 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
2425 ftfont_list_generic_family. Return a single family for each
2426 generic family.
2427 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
2428 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
2429 Call font_add_log.
318548be
KH
2430 (ftfont_match): Call font_add_log.
2431
2432 * font.h (Ffont_xlfd_name): EXFUN adjusted.
2433 (FONT_DEBUG): Define it.
2434 (font_add_log): Extern it.
631248e5 2435 (font_assert): Rename from xassert.
318548be
KH
2436
2437 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
2438 (xfont_list_family): Call font_add_log.
2439 (xfont_match): Likewise.
631248e5 2440 (memq_no_quit): Delete.
318548be
KH
2441
2442 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
2443 call of Ffont_xlfd_name.
2444
2445 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 2446 (swidth_table): Move to font.c.
318548be
KH
2447
2448 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 2449 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
2450 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
2451 New variables.
631248e5
SM
2452 (struct table_entry): Move from xfaces.c and modified.
2453 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 2454 contents adjusted for the change of struct table_entry.
20746fe4 2455 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 2456 format change of font_style_table.
318548be
KH
2457 (font_parse_family_registry): Don't overwrite existing foundry and
2458 family of font_spec.
2459 (font_score): Fix calculation of diff for sizes.
2460 (font_sort_entites): Call font_add_log.
2461 (font_delete_unmatched): Return a newly created list.
2462 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
2463 (font_matching_entity, font_open_entity, font_close_entity):
2464 Call font_add_log.
318548be 2465 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 2466 (Finternal_set_font_style_table): Delete.
318548be
KH
2467 (BUILD_STYLE_TABLE): New macro.
2468 (build_style_table): New function.
2469 (Vfont_log, font_log_env_checked): New variables.
2470 (font_add_log): New function.
2471 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
2472 Declare Lisp variables "font-weight-table", "font-slant-table",
2473 "font-width-table", and "font-log". Initialize font_style_table.
2474
6aac1c03
DN
24752008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
2476
bcc850aa 2477 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 2478
7950790f
GM
24792008-05-21 Seiji Zenitani <zenitani@mac.com>
2480 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 2481
7950790f 2482 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 2483 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 2484 (x_set_alpha): New function.
a2979e8e 2485
7950790f 2486 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 2487
7950790f
GM
2488 * xfns.c (x-create-frame, Qalpha):
2489 Initialize the frame parameter `alpha'.
b9fb2c45
GM
2490 * xterm.c (OPAQUE, OPACITY): New.
2491 (x_set_frame_alpha): New function.
2492 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 2493
7950790f
GM
2494 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
2495 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 2496
5c2a72d9
JR
24972008-05-20 Jason Rumney <jasonr@gnu.org>
2498
20746fe4
JB
2499 * w32font.c (add_font_entity_to_list): Don't add non-opentype
2500 truetype fonts to opentype list.
5c2a72d9 2501
eb152aa9
JB
25022008-05-20 Juanma Barranquero <lekktu@gmail.com>
2503
2504 * fontset.c (Ffontset_info): Doc fix.
2505 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2506 <ignore-relative-composition>: Fix typos in docstrings.
2507
2508 * font.c (syms-of-font) <font-encoding-alist>:
2509 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2510 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2511 (Ffont_otf_alternates): Doc fixes.
2512
ad00e1a3
KH
25132008-05-20 Kenichi Handa <handa@m17n.org>
2514
2515 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
2516 font.h through out the file.
9e0e0d77 2517 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 2518 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
2519 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2520
2521 * emacs.c (main): Call syms_of_font unconditionally.
2522
2523 * font.h (find_font_encoding): Extern it.
2524
9e0e0d77 2525 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
2526 fontset.c.
2527 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
2528 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
2529 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
2530 only when HAVE_WINDOW_SYSTEM is defined.
2531 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
2532 when HAVE_WINDOW_SYSTEM is defined.
2533
9e0e0d77
SM
2534 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
2535 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
2536
2537 * xfaces.c: Include font.h unconditionally.
2538 (merge_face_ref, merge_face_vectors)
2539 (Finternal_set_lisp_face_attribute): Cancel the previous change.
2540
40a69fac
SM
25412008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2542
2543 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
2544 indirect_variable.
2545 * eval.c (lisp_indirect_variable): New fun.
2546 (Fuser_variable_p): Use it.
2547
8c2dccbf
SM
25482008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2549
ad97b375
SM
2550 * lisp.h (indirect_variable):
2551 * data.c (indirect_variable, let_shadows_buffer_binding_p):
2552 Use Lisp_Symbol pointers rather than Lisp_Object.
2553 Adjust callers.
2554 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
2555 To this end, change calling-convention.
2556
8c2dccbf
SM
2557 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
2558 if some non-hidden buffers are selected by string&pred.
2559
ad97b375
SM
25602008-05-19 Chong Yidong <cyd@stupidchicken.com>
2561
2562 * process.c (wait_reading_process_output): Always check status
2563 when in batch mode.
2564
25b81df4
KH
25652008-05-19 Kenichi Handa <handa@m17n.org>
2566
2567 * font.c (font_list_entities): Fix handling of cache.
2568 (font_matching_entity): Likewise.
2569
8c2dccbf 2570 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 2571 (ft_face_cache): New variable.
1f204af3 2572 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 2573 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
2574 (fc_charset_table): New variable.
2575 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
2576 . FC_CHARSET_IDX) as :font-entity property in the font entity.
2577 Callers changed.
dde8403f 2578 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
2579 (ftfont_spec_pattern): New argument fc_charset_idx.
2580 Check registry more rigidly. Change callers.
a2979e8e 2581 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
2582 change of :font-entity property of the font.
2583
a2979e8e 2584 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
2585 property of the font.
2586
d4a1d553
JB
25872008-05-18 Juanma Barranquero <lekktu@gmail.com>
2588
2589 * coding.c (Fcoding_system_p): Rename argument to match docstring.
2590 (Funencodable_char_position, Fcheck_coding_systems_region)
2591 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
2592 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
2593 (Ffind_operation_coding_system, Fset_coding_system_priority)
2594 (Fcoding_system_eol_type): Doc fixes.
2595
07cfc4e7
GM
25962008-05-17 Glenn Morris <rgm@gnu.org>
2597
2598 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
2599
1cab27d2
EZ
26002008-05-16 Eli Zaretskii <eliz@gnu.org>
2601
2602 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
2603 and st_gid.
2604
dde8403f 2605 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
2606 HAVE_WINDOW_SYSTEM is not defined.
2607
2608 * xfaces.c (merge_face_ref, merge_face_vectors)
2609 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
2610 HAVE_WINDOW_SYSTEM is defined.
2611 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
2612
86b89713
SM
26132008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2614
2615 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
2616
6750bd93
YM
26172008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2618
62867b11 2619 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 2620
79f105c9
KH
26212008-05-15 Kenichi Handa <handa@m17n.org>
2622
2623 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
2624 preference.
2625
6b33da9f
GM
26262008-05-15 Glenn Morris <rgm@gnu.org>
2627
2628 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
2629
d0e4433b
CY
26302008-05-15 Chong Yidong <cyd@stupidchicken.com>
2631
2632 * fns.c (init_fns): Don't initialize weak_hash_tables here.
2633 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
2634
2635 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
2636
5f2d79e0
KH
26372008-05-15 Kenichi Handa <handa@m17n.org>
2638
fd8a1cae
KH
2639 * ftfont.c (ftfont_list): Downcase family name to check generic
2640 families.
2641
2642 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
2643 font-spec for QCfont value.
2644
5f2d79e0
KH
2645 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
2646 buffer. Check the return value of it.
2647
e5e29349
JR
26482008-05-14 Jason Rumney <jasonr@gnu.org>
2649
2650 * w32term.c (w32_get_glyph_overhangs): Remove.
2651 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
2652
1f09f444
KH
26532008-05-14 Kenichi Handa <handa@m17n.org>
2654
2655 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
2656 (font_clear_cache): Check if the cached vector of entities is nil
2657 or not.
1f09f444 2658
ecae6af9 26592008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
2660
2661 * emacs.c (main_thread): Conditionalize on
2662 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2663 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
2664
2665 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
2666 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
2667 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2668
c6b278e7
KH
26692008-05-14 Kenichi Handa <handa@m17n.org>
2670
2671 * coding.c (detect_coding_iso_2022): Ignore a coding category that
2672 has no corresponding coding system.
2673
26742008-05-14 Jason Rumney <jasonr@gnu.org>
2675
2676 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
2677
2678 * w32font.h (w32font_open_internal): Update declaration.
2679
2680 * w32font.c (w32font_open_internal): Change last argument from
2681 w32font_info struct to font object. Fill in font object from
2682 font_entity. Get Outline metrics if possible. Use them to
2683 calculate underline position and thickness. Use xlfd name as name
2684 property. Don't set codepage.
2685 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 2686 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
2687 (w32font_draw): Use s->font.
2688 (clear_cached_metrics): Don't clear non-existent blocks.
2689
2690 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
2691 font was not found.
a879ee6f 2692 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
2693
2694 * w32uniscribe.c (uniscribe_open): Pass font_object to
2695 w32font_open_internal.
2696
26972008-05-14 Kenichi Handa <handa@m17n.org>
2698
2699 These changes are to delete all legacy font-handling codes, and
2700 make Emacs use only font-backends.
2701
2702 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
2703 (frame.o, image.o, print.o): Depend on $(FONTSRC).
2704
2705 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
2706
2707 * charset.h (Vcharset_non_preferred_head)
2708 (Vcurrent_iso639_language): Extern them.
2709
2710 * charset.c (Vcharset_non_preferred_head): New variable.
2711 (Vcurrent_iso639_language): New variable.
2712 (syms_of_charset): Declare it as a Lisp variable.
2713 (char_charset): Don't check non preferred charsets. As a last
2714 resort, return charset_unicode.
2715 (Fset_charset_priority): Update Vcharset_non_preferred_head.
2716
2717 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
2718 conditionals. Don't check enable_font_backend. Delete all codes
2719 used only when USE_FONT_BACKEND is not defined.
2720
2721 * dispextern.h (struct glyph_string): Change type of `font' to
2722 `struct font *'.
2723 (struct glyph_string): New member underline_position and
2724 underline_thickness.
2725 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
2726 (struct face): Change type of `font' to `struct font *'. Remove
2727 members `font_name', `font_info_id'.
2728 (per_char_metric, encode_char): Delete externs.
2729 (calc_pixel_width_or_height): Adjust the prototype.
2730
2731 * emacs.c (enable_font_backend): Delete extern.
2732 (main): Don't set enable_font_backend. Don't check the command
2733 line argument "-disable-font-backend".
2734
2735 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
2736 (enum font_property_index): New members FONT_DPI_INDEX,
2737 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
2738 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
2739 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
2740 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
2741 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
2742 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
2743 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
2744 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
2745 (struct font_spec, struct font_entity): New structs.
2746 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
2747 (struct font): Many members from old "struct font_info" moved to
2748 here. Members font and entity deleted.
2749 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
2750 the new font-related objects.
2751 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
2752 (CHECK_FONT_GET_OBJECT): Likewise.
2753 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
2754 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
2755 (struct font_driver): New members case_sensitive anc check. Type
2756 of the member list and open changed.
2757 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
2758 (font_symbolic_width, font_find_object, font_get_spec)
2759 (font_set_lface_from_name): Delete extern.
20746fe4 2760 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
2761
2762 * font.c: Include <strings.h>.
2763 (enable_font_backend): Delete it.
2764 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
2765 (CHECK_VALIDATE_FONT_SPEC): Delete it.
2766 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
2767 (null_string): Delete it.
2768 (null_vector): Make it static.
2769 (font_family_alist): Delete it.
2770 (Qnormal): Extern it.
2771 (QCextra, QClanguage): Delete it.
1f204af3 2772 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
2773 (font_make_spec, font_make_entity, font_make_object)
2774 (font_intern_prop): Renamed from intern_downcase. Don't downcase
2775 the string. Callers changed.
2776 (font_pixel_size): Adjusted for the format change of font-related
2777 objects.
2778 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
2779 (font_style_to_value, font_style_symbolic): New function.
2780 (build_font_family_alist): Delete it.
2781 (font_registry_charsets): Use Fassoc_string instead of
2782 assq_no_quit.
2783 (font_prop_validate_symbol): Don't return null_string.
2784 (font_prop_validate_style): Adjusted for the change of
2785 style-related values in a font vector.
20746fe4 2786 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
2787 QCantialias, add entries for QCavgwidth.
2788 (get_font_prop_index): Delete the 2nd argument FROM.
2789 (font_prop_validate): Arguments changed.
2790 (font_put_extra): Adjusted for the change of font-related objects.
2791 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
2792 (font_parse_fcname, font_unparse_fcname)
2793 (font_prepare_composition): Likewise.
2794 (font_parse_family_registry): Renamed from font_merge_old_spec.
2795 (otf_open): Delete the 1st arg entity.
2796 (font_otf_capability): Adjusted for the above change.
2797 (font_score): New arg alternate_families. Adjusted for the change
2798 of font-related objects.
2799 (font_sort_entites): New arg best_only.
2800 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2801 Delete them.
2802 (font_match_p): Check alternate families.
2803 (font_find_object): Delete it.
2804 (font_check_object): New function.
c3f9fba8 2805 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
2806 (font_delete_unmatched): New arg.
2807 (font_list_entities): Call font_driver->list with a spec that
2808 doesn't specify style-related properties.
2809 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 2810 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
2811 (font_close_object, font_has_char, font_encode_char)
2812 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
2813 (font_spec_from_name, font_clear_prop, font_update_lface):
2814 New functions.
2815 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
2816 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2817 (font_at): Adjusted for the change of font-related objects.
2818 (font_range): New function.
2819 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 2820 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
2821 (Fcopy_font_spec, Fmerge_font_spec): New function.
2822 (Ffont_family_list): Renamed from list-families.
2823 (Finternal_set_font_style_table): Arguments changed.
2824 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2825 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2826 change of font-related objects.
c3f9fba8 2827 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 2828
3554e566 2829 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
2830 struct font.
2831 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2832 (enum FONT_SPEC_INDEX): Delete it.
2833 (font_info, list_fonts_func, load_font_func, query_font_func)
2834 (set_frame_fontset_func, find_ccl_program_func)
2835 (get_font_repertory_func, new_fontset_from_font_name): Delete
2836 externs.
2837 (fontset_from_font_name): Extern it.
2838 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2839 (FONT_INFO_FROM_FACE): Deleted.
2840 (face_for_font): Adjust prototype.
2841
2842 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2843 conditionals. Don't check enable_font_backend. Delete all codes
2844 used only when USE_FONT_BACKEND is not defined.
2845 (get_font_info_func, list_font_func, load_font_func)
2846 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2847 (get_font_repertory_func): Delete them.
2848 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2849 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2850 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2851 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2852 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2853 (fontset_compare_rfontdef): New function.
2854 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2855 ront-defs by qsort. Adjusted for the change of font-group vector.
2856 (load_font_get_repertory): Deleted.
2857 (fontset_find_font): Use new macros to ref/set elements of
2858 font-def and rfont-def.
2859 (fontset_font): Fix the timing of remembering that no font for C.
2860 (free_face_fontset): Do nothing if the face has no fontset.
2861 (face_suitable_for_char_p): Use new macros to ref/set elements of
2862 rfont-def.
2863 (face_for_char): Likewise. Call face_for_char with font_object.
2864 (fs_load_font): Delete. Delete #pragma surrounding it.
2865 (fs_query_fontset): Use strcasecmp instead of strcmp.
2866 (generate_ascii_font_name): Adjusted for the format change of
2867 font-spec.
2868 (Fset_fontset_font): Likewise. Use new macros to set elements of
2869 font-def.
2870 (Fnew_fontset): Use font_unparse_xlfd to generate
2871 FONTSET_ASCII (fontset).
2872 (new_fontset_from_font_name): Deleted.
2873 (fontset_from_font): Renamed from new_fontset_from_font. Check if
2874 a fontset is already created for the font. FIx updating of
2875 Vfontset_alias_alist.
2876 (fontset_ascii_font): Deleted.
2877 (Ffont_info): Adjusted for the format change of font-spec.
2878 (Finternal_char_font): Likewise.
2879 (Ffontset_info): Likewise.
2880 (syms_of_fontset): Don't check load_font_func.
2881
2882 * fns.c (internal_equal): Handle PREV_FONT.
2883
2884 * frame.h: Delete USE_FONT_BACKEND conditional.
2885
2886 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
2887 conditionals. Don't check enable_font_backend. Delete all codes
2888 used only when USE_FONT_BACKEND is not defined.
2889 (x_set_font): Call x_new_font, not x_new_fontset2.
2890 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
2891 already set for the frame.
2892
2893 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
2894 a font-entity by font_make_entity. Use font_intern_prop instead
2895 of intern_downcase. Use FONT_SET_STYLE to set a style-related
2896 font property. If a font is scalable, set avgwidth property to 0.
2897 Set font-entity property by font_put_extra.
2898 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
2899 (ffont_driver): Adjusted for the change of struct font_driver.
2900 (ftfont_spec_pattern): New function.
2901 (ftfont_list): Return a list, not vector.
2902 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
2903 (ftfont_list_family): Don't downcase names.
2904 (ftfont_free_entity): Deleted.
2905 (ftfont_open): Return a font-ojbect. Adjusted for the change of
2906 struct font. Get underline_thickness and underline_position from
2907 font property. Don't update dpyinfo->smallest_font_height and
2908 dpyinfo->smallest_char_width.
2909 (ftfont_close): Don't free `struct font'.
2910 (ftfont_has_char): Adjusted for the format change of font-entity.
2911 (ftfont_encode_char, ftfont_text_extents): Likewise.
2912
2913 * ftxfont.c (ftxfont_list): Return a list, not vector.
2914 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
2915 struct font. Get underline_thickness and underline_position from
2916 font property. Don't update dpyinfo->smallest_font_height and
2917 dpyinfo->smallest_char_width.
2918 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
2919 (ftxfont_draw): Adjusted for the change of struct font.
2920
2921 * image.c (image_ascent): Don't include "charset.h". Include
2922 "character.h" and "font.h".
2923
2924 * lisp.h (enum pvec_type): New member PREV_FONT.
2925 (Fassoc_string): EXFUN it.
2926
2927 * print.c: Include font.h.
2928 (print_object): Handle font-related objects.
2929
2930 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
2931 conditionals. Don't check enable_font_backend. Delete all codes
2932 used only when USE_FONT_BACKEND is not defined.
2933 (handle_auto_composed_prop): Do nothing if it->f is not on a
2934 window system. Check how many following characters can be
2935 displayed by the same font.
2936 (calc_pixel_width_or_height): Type of the 4th arg is changed to
2937 'struct font *'.
2938 (get_char_face_and_encoding): Assign the whole encoding task to
2939 the `encode-char' method of a font driver.
2940 (fill_composite_glyph_string): Adjusted for the change of `struct
2941 face' and `struct glyph_string'.
2942 (fill_glyph_string): Likewise.
2943 (get_per_char_metric): Arguments changed.
2944 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
2945 and `struct glyph_string'.
2946 (produce_stretch_glyph, calc_line_height_property)
2947 (x_produce_glyphs): Likewise.
2948
2949 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
2950 conditionals. Don't check enable_font_backend. Delete all codes
2951 used only when USE_FONT_BACKEND is not defined. Use
2952 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
2953 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
2954 (Qp): Extern them.
2955 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
2956 Deleted.
2957 (struct font_name): Deleted.
2958 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
2959 (compare_fonts_by_sort_order): New function.
2960 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
2961 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
2962 Deleted.
2963 (Fx_family_fonts): Use font_list_entities, and sort fonts by
2964 compare_fonts_by_sort_order.
2965 (Fx_font_family_list): Call Ffont_family_list.
2966 (face_numeric_value, face_numeric_weight, face_numeric_slant)
2967 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
2968 (face_symbolic_slant, face_symbolic_swidth)
2969 (split_font_name_into_vector, build_font_name_from_vector)
2970 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
2971 (font_rescale_ratio, split_font_name, build_font_name)
2972 (free_font_names, sort_fonts, x_face_list_fonts)
2973 (face_font_available_p, sorted_font_list, cmp_font_names)
2974 (font_list_1, concat_font_list, font_list, remove_duplicates):
2975 Deleted.
2976 (Fx_list_fonts): Use Ffont_list.
2977 (LFACE_AVGWIDTH): Deleted.
2978 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
2979 by FONTP.
2980 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2981 (set_lface_from_font_name): Delete it.
2982 (set_lface_from_font): Renamed from
2983 set_lface_from_font_and_fontset. Caller changed. Don't set
2984 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
2985 for face.
c3f9fba8
JB
2986 (merge_face_vectors): Copy font-spec if necessary.
2987 Clear properties of the font-spec if necessary.
c6b278e7
KH
2988 (merge_face_ref): Clear properties of the font-spec if necessary.
2989 (Finternal_set_lisp_face_attribute): Likewise.
2990 (set_font_frame_param): Use font_load_for_lface to load a
2991 font-object, and call Fmodify_frame_parameters with it.
2992 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2993 font name by Ffont_xlfd_name.
2994 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2995 QCslant, and QCwidth.
2996 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2997 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2998 Compare fonts by EQ.
2999 (lookup_non_ascii_face): Deleted.
3000 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
3001 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3002 Check atomic font properties by case insensitive.
c6b278e7
KH
3003 (realize_non_ascii_face): Set face->overstrike correctly.
3004 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
3005 (dump_realized_face): Get font name from
3006 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
3007
3008 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3009 conditionals. Don't check enable_font_backend. Delete all codes
3010 used only when USE_FONT_BACKEND is not defined.
3011 (xic_create_xfontset): Original code deleted and renamed from
3012 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
3013 (x_make_gc): Don't set GCFont in GCs.
3014 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3015 opened by "fixed".
3016 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3017 find_ccl_program_func, query_font_func, set_frame_fontset_func,
3018 get_font_repertory_func.
3019
3020 * xfont.c: Include <stdlib.h> and "ccl.h".
3021 (struct xfont_info): New structure.
3022 (xfont_query_font): Deleted.
3023 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3024 moved from xterm.c.
3025 (xfont_driver): Adjusted for the change of struct font_driver.
3026 (compare_font_names): New function.
3027 (xfont_list_pattern): Sort font names case insensitively. Make
3028 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
3029 (xfont_list): Return a list, not vector.
3030 (xfont_match): If the font doesn't have QCname property, generate
3031 a name from the other font properties.
3032 (xfont_open): Return a font-ojbect. Adjusted for the change of
3033 struct font. Get underline_thickness and underline_position from
3034 font property. Don't update dpyinfo->smallest_font_height and
3035 dpyinfo->smallest_char_width.
3036 (xfont_close): Don't free struct font.
3037 (xfont_prepare_face): Adjusted for the change of struct font.
3038 (xfont_done_face): Deleted.
3039 (xfont_has_char): Adjusted for the change of struct font.
3040 (xfont_encode_char, xfont_draw): Likewise.
3041 (xfont_check): New function.
3042
3043 * xftfont.c (xftfont_list): Adjusted for the change of `list'
3044 callback function.
3045 (xftfont_match): Adjusted for the fontmat change of font-entity.
3046 (xftfont_open): Adjusted for the format change of font-entity and
3047 font-object. Adjusted for the change of struct font. Return a
3048 font-object. Don't update dpyinfo->smallest_font_height and
3049 dpyinfo->smallest_char_width.
3050 (xftfont_close): Block input while calling XftFontClose.
3051 (xftfont_prepare_face): Don't block input while calling
3052 xftfont_get_colors. Adjusted for the change of struct font.
3053 (xftfont_shape): Return value of error case fixed.
3054
3055 * xrdb.c (x_load_resources): Don't setup a fontset resource.
3056
3057 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3058 conditionals.
3059 (FONT_WIDTH): Return (f)->max_width.
3060 (struct x_display_info): Delete member `font'.
3061 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3062 (x_find_ccl_program, x_get_font_repertory): Delete externs.
3063 (struct x_output): Change type of `font' to `struct font *'.
3064
3065 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3066 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 3067 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
3068 (x_per_char_metric, x_encode_char): Deleted.
3069 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3070 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 3071 `struct face'.
c6b278e7
KH
3072 (x_draw_glyph_string_foreground)
3073 (x_draw_composite_glyph_string_foreground): Likewise.
3074 (x_draw_glyph_string): Likewise. Use font->underline_position and
3075 font->underline_thickness.
3076 (x_new_font): Renamed from x_new_fontset2.
3077 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3078 (x_check_font): Call `check' method of a font driver.
3079 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3080 (x_query_font, x_get_font_repertory): Deleted.
3081 (x_find_ccl_program): Renamed and moved to xfont.c.
3082 (x_redisplay_interface): Adjusted for the change of `struct
3083 redisplay_interface'.
3084
3085 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3086 conditionals. Don't check enable_font_backend. Delete all codes
3087 used only when USE_FONT_BACKEND is not defined. Surround non-used
3088 code by "#ifdef OLD_FONT" and "endif".
3089 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3090
3091 * w32font.h (struct w32font_info): New member.
3092 (FONT_COMPAT): New macro.
3093 (w32font_open_internal): Prototype adjusted.
3094
3095 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3096 OLD_FONT" and "endif".
3097
3098 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3099 conditionals. Don't check enable_font_backend. Delete all codes
3100 used only when USE_FONT_BACKEND is not defined.
3101 (w32font_open): Return a font-object. Make a font-object by
3102 font_make_object. Adjusted for the change of struct w32font_info.
3103 (w32font_close): Don't free struct font. Adjusted for the change
3104 of struct w32font_info.
3105 (w32font_encode_char, w32font_text_extents, w32font_draw):
3106 Adjusted for the change of struct w32font_info.
3107 (w32font_draw): Likewise.
3108 (w32font_list_internal): Return a list, not vector.
3109 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 3110 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
3111 (add_font_name_to_list): Don't downcase names.
3112 (w32_enumfont_pattern_entity): Make a font-entity by
3113 font_make_entity. Adjusted for the format change of font-entity.
3114 Use FONT_SET_STYLE to set a style-related font property. If a
3115 font is scalable, set avgwidth property to 0. Set font-entity
3116 property by font_put_extra.
c3f9fba8 3117 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
3118 (w32_weight_table, w32_decode_weight): New variables.
3119 (w32_encode_weight): New function.
3120 (fill_in_logfont): Adjusted for the format change of font-spec.
3121 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3122 weight value.
3123 (w32font_driver): Adjusted for the change of struct font_driver.
3124
3125 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 3126 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
3127 code by "#ifdef OLD_FONT" and "endif".
3128 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3129 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3130
3131 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3132 conditionals. Don't check enable_font_backend. Delete all codes
3133 used only when USE_FONT_BACKEND is not defined. Surround non-used
3134 code by "#ifdef OLD_FONT" and "endif".
3135
3136 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
3137 (uniscribe_open): Return value changed to font-object.
3138 Adjusted for the format change of font-object.
3139 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
3140 (add_opentype_font_name_to_list): Don't downcase names.
3141 (uniscribe_font_driver): Adjusted for the change of struct
3142 font_driver.
3143
f9d4c199
CY
31442008-05-13 Chong Yidong <cyd@stupidchicken.com>
3145
3146 * dispnew.c (update_frame_1): Check if tty output is still valid
3147 before flushing it.
3148
44f249c0
JD
31492008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3150
3151 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3152 to Gtk+ menus.
3153
01bb4018
SM
31542008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3155
3271a8f5
SM
3156 * dired.c (file_name_completion): Tweak the code so as to always do it
3157 in a single pass. Tighten the scope of some variables.
3158
01bb4018
SM
3159 * dired.c (Qdefault_directory): New var.
3160 (file_name_completion): Use it instead of Fexpand_file_name.
3161 (syms_of_dired): Initialize it.
3162
728bb8e0
SM
31632008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3164
3165 * fileio.c (double_dollars): Remove dead code.
3166
ed4c17bb
EZ
31672008-05-10 Eli Zaretskii <eliz@gnu.org>
3168
6c5665e9
EZ
3169 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3170 Mention w32-get-true-file-attributes in doc string.
3171
ed4c17bb
EZ
3172 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3173
71e1f69d
GM
31742008-05-09 Glenn Morris <rgm@gnu.org>
3175
3176 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3177 2008-04-23.
3178
ee7a2e7a
EZ
31792008-05-09 Eli Zaretskii <eliz@gnu.org>
3180
8aaaec6b
EZ
3181 Support for reporting owner and group of each file on MS-Windows:
3182 * dired.c (stat_uname, stat_gname): New functions, with special
3183 implementation for w32.
3184 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3185
ee7a2e7a
EZ
3186 * w32.c: Rename the_passwd_* to dflt_passwd_*.
3187 (dflt_group_name): New static variable.
728bb8e0 3188 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
3189 (init_user_info): Init dflt_group fields. Get user's group name
3190 from LookupAccountSid.
8aaaec6b
EZ
3191 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3192 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3193 New initialization states.
3194 (globals_of_w32): Initialize them to zero. Initialize the default
3195 group name to "None".
3196 (GetFileSecurity_Name): New global var, the name of the function
3197 to call for GetFileSecurity.
3198 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3199 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3200 (get_file_security, get_security_descriptor_owner)
3201 (get_security_descriptor_group, is_valid_sid)
3202 (get_file_security_desc, get_rid, get_name_and_id)
3203 (get_file_owner_and_group): New functions.
3204 (stat): Use get_file_security_desc and get_file_owner_and_group to
3205 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
3206 high 32 bits of file's size, now that st_size is 64-bit wide.
3207 Fix test when to get true file attributes.
8aaaec6b
EZ
3208 (init_user_info): Use get_rid instead of equivalent inline code.
3209 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 3210
b199c436
CY
32112008-05-09 Chong Yidong <cyd@stupidchicken.com>
3212
3213 * image.c (png_load): Use correct bit-depth for setting background
3214 color.
3215
86914123
EZ
32162008-05-08 Eli Zaretskii <eliz@gnu.org>
3217
3218 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3219 epa-hook.elc.
3220
67b5d7de
JB
32212008-05-08 Juanma Barranquero <lekktu@gmail.com>
3222
3223 * font.c (Ffont_match_p): Don't use `iff' in docstring.
3224
1a111394
DN
32252008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3226
3227 * macfns.c (Fx_create_frame): Make a copy of frame parameters
3228 because the original parameters are in pure storage now.
3229 (mac_window): Remove unused params. Update callers.
3230
6d77fa95
SM
32312008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3232
7a3d90dc
SM
3233 * lread.c (substitute_object_recurse): Use lower-level primitives.
3234 Don't signal errors when traversing sub-char-tables.
3235 Don't loop over all the possible characters when traversing char-tables.
3236
6d77fa95
SM
3237 * print.c (print_preprocess): Add sub-char-tables to the print-table,
3238 just like we do in print.c.
3239
140eb764
SM
32402008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3241
3242 * minibuf.c (Ftry_completion): Remove code left over from when we used
3243 scmp instead of Fcompare_strings.
3244
e9184ccb
JB
32452008-05-04 Juanma Barranquero <lekktu@gmail.com>
3246
3247 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3248
0e9378b3
YM
32492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3250
3251 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3252 Create bitmap context in native byte order.
3253
f67e15be
MB
3254 * macterm.c (XDrawLine)
3255 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3256 context in native byte order.
064032d0 3257
f67e15be 32582008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
3259
3260 * config.in: Regenerate.
3261
3262 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3263 New definitions for Image I/O support.
3264 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3265 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3266 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3267 (mac_data_provider_release_data, image_load_image_io)
3268 [USE_MAC_IMAGE_IO]: New functions.
3269 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3270 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3271 (init_image_func_pointer) [MAC_OSX]: Remove function.
3272 (image_load_quartz2d) [MAC_OSX]: Check availability of
3273 CGImageCreateWithPNGDataProvider at compile time.
3274 Use lowercase `false' for boolean constant.
3275 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3276 Use image_load_image_io.
3277 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3278 Don't check MyCGImageCreateWithPNGDataProvider.
3279 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3280 Don't call init_image_func_pointer.
3281
3282 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3283
3284 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3285 Make variable non-static.
3286 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3287 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3288
3289 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3290 (RED_FROM_ULONG): Mask off higher bits.
3291 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3292
3293 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3294 Include AvailabilityMacros.h.
3295 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3296 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3297
c6bff69e
SM
32982008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
3299
3300 * chartab.c (Fset_char_table_range): If range is t, really set all
3301 chars to that value.
3302
7412d429
EZ
33032008-05-03 Eli Zaretskii <eliz@gnu.org>
3304
3305 * dired.c (Ffile_attributes): Don't allow the device number become
3306 negative.
3307
f83bbfac
DU
33082008-05-02 Daiki Ueno <ueno@unixuser.org>
3309
5a81d3d7 3310 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 3311
2e3148e2
JL
33122008-05-02 Juri Linkov <juri@jurta.org>
3313
3314 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
3315 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3316 DEFAULT argument as a list of default values in docstrings.
2e3148e2 3317
923fb88c
CY
33182008-05-01 Chong Yidong <cyd@stupidchicken.com>
3319
3320 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3321
047aaeb9
MR
33222008-05-01 Martin Rudalics <rudalics@gmx.at>
3323
3324 * dispnew.c (change_frame_size_1): Preserve small windows when
3325 shrinking frames by calling set_window_height|width with third
3326 arg 2.
3327
3328 * window.h (struct window): Replace field too_small_ok by field
3329 resize_proportionally.
3330
3331 * window.c (make_window): Initialize resize_proportionally.
3332 (enlarge_window): Temporarily set resize_proportionally to make
3333 sure that shrink_windows does scale the window proportionally.
3334 (shrink_windows): When window has resize_proportionally set try
3335 to shrink it proportionally by stealing from other windows.
3336 (struct saved_window, Fset_window_configuration)
3337 (compare_window_configurations): Handle resize_proportionally.
3338 (WINDOW_TOTAL_SIZE): New macro.
3339 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 3340 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
3341 window-min-height|width are handled by window_min_size_2 now.
3342 (size_window, Fsplit_window, enlarge_window)
3343 (adjust_window_trailing_edge, grow_mini_window): Don't call
3344 check_min_window_sizes.
c6bff69e
SM
3345 (window_min_size_2, window_min_size_1, window_min_size):
3346 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 3347 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
3348 (adjust_window_trailing_edge, grow_mini_window):
3349 Adjust arguments of window_min_size... functions.
047aaeb9
MR
3350 (shrink_windows): Argument min_size removed. New argument
3351 safe_p allows shrinking windows to their safe minimum sizes.
3352 Calculate minimum size and decide whether a window shall be
3353 deleted for each window individually.
3354 (size_window): When nodelete_p equals 2, tell shrink_windows to
3355 delete windows only if their new minimum size is no more safe.
3356 (shrink_window_lowest_first): Call window_min_size_1 to make
3357 sure to preserve modeline of bottom-most window when resizing
3358 the minibuffer.
3359 (Fset_window_configuration, Fcurrent_window_configuration)
3360 (compare_window_configurations): Do not handle
3361 window-min-height|width any more.
3362 (syms_of_window): Clarify window-min-height|width doc-strings.
3363
2a54a229
SM
33642008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
3365
3366 * dired.c (file_name_completion): Fix up the encoding/decoding issue
3367 some more. Copy some of the code from Ftry_completions.
3368 Remove special case code that dates back to initial revision when the
3369 slash was only added when necessary and that can't trigger nowadays.
3370
384bc634
KH
33712008-04-27 Kenichi Handa <handa@m17n.org>
3372
3373 * font.c (font_prop_validate): Signal `error' instead of `font'.
3374
2c2279c6
JR
33752008-04-29 Jason Rumney <jasonr@gnu.org>
3376
3377 * w32fns.c (Fw32_battery_status): New defun.
3378 (syms_of_w32fns): Defsubr it.
3379
fb4a622a
AS
33802008-04-28 Andreas Schwab <schwab@suse.de>
3381
3382 * dired.c (file_name_completion): Fix another mixing of encoded
3383 and decoded names.
3384
23f250f4
JB
33852008-04-28 Juanma Barranquero <lekktu@gmail.com>
3386
3387 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
3388
d8d30dff
JB
33892008-04-27 Juanma Barranquero <lekktu@gmail.com>
3390
3391 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3392
ea6104a8
AS
33932008-04-27 Andreas Schwab <schwab@suse.de>
3394
9c691c00
AS
3395 * dired.c (file_name_completion): Fix inappropriate mixing of
3396 encoded and decoded names.
3397
ec1bf773
AS
3398 * xterm.c (XTread_socket): Fix use of uninitialized variable.
3399
ea6104a8
AS
3400 * puresize.h (BASE_PURESIZE): Increase to 1200000.
3401
01388a3d
EZ
34022008-04-26 Eli Zaretskii <eliz@gnu.org>
3403
3404 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
3405 2008-03-31, it's not needed anymore with `struct stat' definition
3406 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
3407 for the same reasons.
3408
175aea10 34092008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
3410
3411 * m/sparc.h: Additional redefinitions for GNU/Linux.
3412
1289aeb8
YM
34132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3414
3415 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
3416 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3417 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
3418 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
3419 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3420 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
3421 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3422 Likewise.
3423
3424 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 3425 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
3426 (mac_ax_number_of_characters): Add externs.
3427 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3428 [USE_MAC_TSM]: Likewise.
3429 (mac_handle_text_input_event) [MAC_OSX]:
3430 Handle kEventTextInputOffsetToPos for no active input area case.
3431 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3432 (mac_handle_document_access_event)
3433 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
3434 (install_application_handler) [MAC_OSX]: Register handlers for
3435 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3436 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3437 Register mac_handle_document_access_event.
3438
3439 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
3440 Make functions non-static.
3441
dbd50d4b
SM
34422008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3443
3444 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
3445 (read_file_name_completion_ignore_case, insert_default_directory)
3446 (Qdefault_directory): Move to minibuffer.el.
3447 (Fread_file_name): Call the new `read-file-name' instead.
3448
9ea37b9d 34492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
3450
3451 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
3452 Make function non-static.
3453 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
3454 Remove function.
3455 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3456 Move to mactoolbox.c.
3457 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
3458
3459 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
3460 (mac_rect_make): New macro.
3461
3462 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
3463 instead of float.
3464 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3465 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
3466 (XSetBackground) [USE_CG_DRAWING]: Likewise.
3467 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
3468 CGRectMake.
3469 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3470 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
3471 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
3472 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3473 instead of WindowRef in argument type.
3474 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
3475 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
3476 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
3477 instead of DISPLAY. All uses changed.
3478 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
3479 (x_calc_absolute_position): Simplify so as not to use
3480 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
3481
3482 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3483 instead of WindowRef in argument type.
3484 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
3485 [TARGET_API_MAC_CARBON]: Remove externs.
3486 (create_apple_event, mac_event_parameters_to_lisp)
3487 [TARGET_API_MAC_CARBON]: Add externs.
3488
d8d30dff 3489 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
3490 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
3491 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
3492 is clicked.
3493 (x_activate_menubar): Remove extern for saved_menu_event_location.
3494 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3495 Move from mac.c.
3496
9ea37b9d 34972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
3498
3499 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
3500 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3501
9ea37b9d 35022008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
3503
3504 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3505 attributes only for local files.
3506
3507 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 3508 default to Qlocal.
bd735631 3509
88970542
JL
35102008-04-22 Juri Linkov <juri@jurta.org>
3511
3512 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3513 read-buffer-to-switch instead of using the letter "B".
3514
92ec67e3
SM
35152008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3516
3517 * fileio.c (Qdefault_directory): New variable.
3518 (Fread_file_name): Use it to pass `dir' to the completion functions.
3519
a32b2382
CY
35202008-04-20 Chong Yidong <cyd@stupidchicken.com>
3521
2a2e8de7 3522 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 3523
6c8b4f07
SM
35242008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
3525
ece5f847
SM
3526 * keyboard.c (Vpre_help_message): Remove.
3527 (show_help_echo): Remove default C code.
3528
6c8b4f07
SM
3529 * dired.c (directory_files_internal, file_name_completion):
3530 Only call ENCODE_FILE if the string is indeed decoded.
3531
73d798d5
SM
35322008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3533
3534 * Makefile.in (TOOLKIT_DEFINES): Remove.
3535 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
3536
d8d30dff 35372008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
3538
3539 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
3540 (mactoolbox.o): New target.
3541
3542 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
3543 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
3544
3545 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
3546 Use mac_set_frame_window_background instead of XSetWindowBackground.
3547 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
3548 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
3549 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
3550 instead of SetWindowTitleWithCFString.
3551 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
3552 Move function to mactoolbox.c.
3553 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3554 Use mac_set_window_modified instead of SetWindowModified.
3555 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
3556 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
3557 (Fx_focus_frame): Use mac_front_non_floating_window instead of
3558 FrontNonFloatingWindow. Use mac_activate_window instead of
3559 ActivateWindow. Use mac_active_non_floating_window instead of
3560 ActiveNonFloatingWindow.
3561 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
3562 Use mac_show_hourglass and mac_hide_hourglass.
3563 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
3564 instead of GetGlobalMouse.
3565 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
3566 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
3567 Use mac_bring_window_to_front instead of BringToFront.
3568 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
3569 mactoolbox.c.
3570 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
3571 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
3572 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
3573 mactoolbox.c.
3574
3575 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
3576 (XtPointer): Move typedef from macmenu.c.
3577 (enum button_type): Move enum from macmenu.c.
3578 (widget_value): Move typedef from macmenu.c.
3579 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
3580 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3581 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3582 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3583 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3584 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3585 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3586 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
3587 (Selection): Move typedef from macselect.c.
3588 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
3589 macterm.c.
3590 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
3591 (mac_is_window_collapsed, mac_bring_window_to_front)
3592 (mac_send_window_behind, mac_hide_window, mac_show_window)
3593 (mac_collapse_window, mac_front_non_floating_window)
3594 (mac_active_non_floating_window, mac_activate_window)
3595 (mac_move_window_structure, mac_move_window, mac_size_window)
3596 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
3597
3598 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
3599 (enum mac_menu_kind): Move enum to mactoolbox.c.
3600 (min_menu_id): Move variable to mactoolbox.c.
3601 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
3602 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
3603 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3604 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3605 [TARGET_API_MAC_CARBON]: Likewise.
3606 (XtPointer): Move typedef to macgui.h.
3607 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
3608 (widget_value): Move typedef to macgui.h.
3609 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3610 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3611 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3612 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3613 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3614 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3615 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
3616 (popup_activated_flag): Make variable non-static.
3617 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
3618 (add_menu_item, fill_menu, dispose_menus):
3619 Move functions to mactoolbox.c.
3620 (restore_show_help_function, menu_target_item_handler)
3621 (install_menu_target_item_handler, mac_handle_dialog_event)
3622 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
3623 [TARGET_API_MAC_CARBON]: Likewise.
3624 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
3625 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3626 (find_and_call_menu_selection, name_is_separator): Make function
3627 non-static.
3628 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
3629 to mactoolbox.c.
3630 (set_frame_menubar): Don't call install_menu_quit_handler.
3631 (menu_item_selection): New variable.
3632 (mac_menu_show): Use create_and_show_popup_menu.
3633 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
3634 selection but set variable menu_item_selection. All uses changed.
3635 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
3636 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 3637
d02fe47d
MB
3638 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
3639 (Selection): Move typedef to macgui.h.
3640 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
3641 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
3642 Make variables non-static.
3643 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3644 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
3645 Make functions non-static.
3646 (Vmac_service_selection) [MAC_OSX]: Likewise.
3647 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
3648 (mac_valid_selection_target_p, mac_clear_selection)
3649 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3650 (mac_put_selection_value, mac_selection_has_target_p)
3651 (mac_get_selection_value, mac_get_selection_target_list)
3652 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
3653 Move functions to mactoolbox.c.
3654 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
3655 Likewise.
3656 (copy_scrap_flavor_data, mac_handle_service_event)
3657 (install_service_handler) [MAC_OSX]: Likewise.
3658 (syms_of_macselect) <Vmac_dnd_known_types>:
3659 Use mac_dnd_default_known_types.
463f55ee 3660
d02fe47d
MB
3661 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
3662 Move to mactoolbox.c.
3663 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
3664 (Fx_selection_owner_p): Add EXFUN.
3665 (install_window_handler, remove_window_handler, XSetWindowBackground):
3666 Remove externs.
3667 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
3668 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
3669 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
3670 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
3671 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
3672 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
3673 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
3674 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
3675 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
3676 (create_and_show_popup_menu, mac_get_selection_from_symbol)
3677 (mac_valid_selection_target_p, mac_clear_selection)
3678 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3679 (mac_put_selection_value, mac_selection_has_target_p)
3680 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
3681 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
3682 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
3683 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3684 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
3685 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3686 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
3687 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3688 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 3689
d02fe47d 3690 * mactoolbox.c: New file.
af253914 3691
d8d30dff 36922008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 3693
d02fe47d 3694 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 3695
8ee085a4
SM
36962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3697
73d798d5
SM
3698 * character.c (Fmultibyte_char_to_unibyte):
3699 Return latin1 chars unchanged.
5556875b 3700
8ee085a4
SM
3701 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
3702 relocated if it points to `name'.
3703
5dff5999
KH
37042008-04-17 Kenichi Handa <handa@m17n.org>
3705
3706 * data.c (Faset): Allow setting a multibyte character in an
3707 ASCII-only unibyte string.
3708
3709 * lisp.h (STRING_SET_MULTIBYTE): New macro.
3710
a51f4969
SM
37112008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
3712
3713 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
3714 done in config.h.
3715
add553ac
JB
37162008-04-16 Juanma Barranquero <lekktu@gmail.com>
3717
3718 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
3719 (Fchar_direction): Add usage in the docstring.
3720
8ad7b280
CY
37212008-04-15 Chong Yidong <cyd@stupidchicken.com>
3722
3723 * keyboard.c (read_key_sequence): Remove always-true checks.
3724
e157d7ba
JR
37252008-04-14 Jason Rumney <jasonr@gnu.org>
3726
3727 * w32font.c (w32font_open_internal): Set max_bounds.descent in
3728 compatibility struct, for better underline positioning.
3729
9ec3aaef 37302008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
3731
3732 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
3733 string.
3734
36c08864
DN
37352008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3736
3737 * m/hp800.h (XUINT, XSET): Remove.
3738
f5acc071
JB
37392008-04-12 Juanma Barranquero <lekktu@gmail.com>
3740
3741 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
3742 previous change.
3743
5b5a2ea1
SM
37442008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3745
3746 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
3747 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
3748
492d9fd6
SM
37492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3750
3751 * keymap.h (map_keymap_canonical): Declare.
3752 * xmenu.c (single_keymap_panes): Use it.
3753
dd60787c
GM
37542008-04-11 Glenn Morris <rgm@gnu.org>
3755
3756 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
3757 set the target's value to that of the alias.
3758
c23b5410
SM
37592008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3760
3761 * term.c (set_tty_color_mode): Left over typo.
3762
e89b536d
MA
37632008-04-10 Michael Albinus <michael.albinus@gmx.de>
3764
3765 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 3766 only after check for file name handler functions. Signal, when
e89b536d
MA
3767 native functionality is not supported.
3768 (syms_of_fileio): Declare it unconditionally.
3769
40a339c8
JR
37702008-04-10 Jason Rumney <jasonr@gnu.org>
3771
31403b24
JR
3772 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
3773 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
3774
40a339c8
JR
3775 * w32.c (logon_network_drive): Also logon to remote drives that
3776 are mapped to drive letters.
3777
96a7394f
GM
37782008-04-10 Glenn Morris <rgm@gnu.org>
3779
3780 * xdisp.c (truncate-partial-width-windows): Doc fix.
3781
34b67b0f
SM
37822008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
3783
3784 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
3785 Move functions to minibuffer.el.
3786 (syms_of_fileio): Don't declare them.
3787
c025fb0a
SM
37882008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3789
ba5ff07b
SM
3790 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
3791 (syms_of_minibuf): Remove its initialization.
3792
c025fb0a
SM
3793 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
3794
7a6a86ad
JB
37952008-04-09 Juanma Barranquero <lekktu@gmail.com>
3796
3797 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3798
cf907d69
JR
37992008-04-09 Jason Rumney <jasonr@gnu.org>
3800
3dc94c30
JR
3801 * makefile.w32-in (distclean): Delete makefile too.
3802 (maintainer-clean): New target.
3803
8d28646b
JR
3804 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3805
cf907d69
JR
3806 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3807 for new font backend and composite cases.
3808
ef5eb925
JD
38092008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3810
3811 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3812 Most of the code moved to run_timers.
3813 (do_pending_atimers): Call run_timers.
3814 (run_timers): New function.
3815
cf907d69
JR
3816 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3817 run atimers.
ef5eb925
JD
3818
3819 * process.c (wait_reading_process_output): The same as above.
3820
9b2cd403
SM
38212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3822
32bae13c
SM
3823 * minibuf.c (last_exact_completion): Remove variable.
3824 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3825 (complete_and_exit_1, complete_and_exit_2)
3826 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3827 (Fdisplay_completion_list, display_completion_list_1)
3828 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
3829 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3830 minibuffer.el.
32bae13c
SM
3831 (syms_of_minibuf): Remove corresponding initializations.
3832
5c4cc82a
SM
3833 * keyboard.c (Qdeactivate_mark): New var.
3834 (command_loop_1): Use it to call `deactivate-mark'.
3835 (syms_of_keyboard): Initialize it.
3836
9b2cd403
SM
3837 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3838 to another frame.
3839 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3840 Don't call set_tty_color_mode.
3841 (store_frame_param): Reset previous_frame rather than call
3842 set_tty_color_mode.
3843 * term.c (set_tty_color_mode): Rewrite.
3844 * dispextern.h (set_tty_color_mode): New type.
3845 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3846
84cb7b45
SM
38472008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3848
3849 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3850 for generic chars, which do not exist any more in emacs-unicode.
3851
3ed051d4
MA
38522008-04-08 Michael Albinus <michael.albinus@gmx.de>
3853
3854 * coding.c (detect_coding_emacs_mule)
3855 (Ffind_operation_coding_system): Fix typo.
3856
58c3ea42
JR
38572008-04-08 Jason Rumney <jasonr@gnu.org>
3858
3bf8d230
JR
3859 * w32uniscribe.c (SNAME): Extract only symbol name.
3860
56a70cca
JR
3861 * w32font.h (struct w32_metric_cache): New struct.
3862 (w32font_info): Use it.
3863 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3864 (CACHE_BLOCKSIZE): New constants.
3ed051d4 3865
58c3ea42
JR
3866 * w32font.c (Qja, Qko, Qzh): New symbols.
3867 (syms_of_w32font): Initialise them.
3868 (font_matches_spec): Use them to filter by language.
3869 (recompute_cached_metrics): Remove function.
3870 (compute_metrics, clear_cached_metrics): New functions.
3871 (w32font_encode_char): Use them to manage metric cache.
3872 (w32font_text_extents): Cache metrics for all glyphs on demand.
3873 Delay converting glyph indices to WORD until needed.
3874 (w32font_open_internal): Initialize metric cache to empty.
3875 (registry_to_w32_charset): Charset should always be a symbol.
3876 (fill_in_logfont, list_all_matching_fonts): Family should
3877 always be a symbol.
3878
0ce24b2d
JR
38792008-04-06 Jason Rumney <jasonr@gnu.org>
3880
3881 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
3882 Give up if glyph indices not supported. Use uniscribe obtained
3883 ABC widths for individual metrics. Map glyph clusters back to
3884 characters using fClusterStart flag. Return number of glyphs
3885 produced, not chars processed.
b7655e0c 3886 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 3887
5bc6ddff 38882008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 3889
fbf57abb
JB
3890 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
3891 Use SetMenuItemHierarchicalMenu.
56613f06 3892
5bc6ddff 38932008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 3894
5bc6ddff
MB
3895 * image.c (pbm_load): Allow color values up to 65535.
3896 Throw an error if max_color_idx is outside the supported range.
3897 Report an error when image size is invalid.
3898 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 3899
5bc6ddff 39002008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 3901
5bc6ddff
MB
3902 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3903 cFileName a file name that includes `?' characters, use the 8+3
3904 alias in cAlternateFileName instead.
5ed6ba5b 3905
5bc6ddff 39062008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 3907
5bc6ddff
MB
3908 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
3909 append "CCL: Quitted" when the CCL program is quitted.
3910 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 3911
5bc6ddff 3912 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 3913
c36e15db
CY
39142008-04-05 Chong Yidong <cyd@stupidchicken.com>
3915
9605d567
CY
3916 * search.c (compile_pattern_1): Treat non-nil and non-string of
3917 search-spaces-regexp as nil.
3918
c36e15db
CY
3919 * minibuf.c (Fassoc_string): Tweak docstring.
3920
40beb147
EZ
39212008-04-05 Eli Zaretskii <eliz@gnu.org>
3922
3923 * dired.c (Ffile_attributes): Support inode numbers wider than 32
3924 bits. Remove ugly WINDOWSNT-specific kludge introduced on
3925 2008-03-14 to force inode be positive.
3926
3927 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
3928 _S_* ones, since we now use our own sys/stat.h.
3929 (stat, fstat): Don't mangle the inode number.
aa08d1ff 3930 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 3931
4591d6cb
SM
39322008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
3933
d4417eb0
SM
3934 * frame.h (struct frame): Give one more bit to `visible' since we use
3935 values larger than 1 to indicate obscured frames on ttys.
3936
00f7c5ed
SM
3937 * keymap.c (Qkeymap_canonicalize): New var.
3938 (Fmap_keymap_internal): New fun.
3939 (describe_map): Use keymap-canonicalize.
3940
4591d6cb
SM
3941 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
3942 (Fundo_boundary): Set them.
3943 (syms_of_undo): Initialize them.
3944 (record_point): Use them instead of last_point_position*.
3945 (last_undo_buffer): Change type.
3946
3187540e
JR
39472008-04-04 Jason Rumney <jasonr@gnu.org>
3948
0ce24b2d
JR
3949 * w32font.c (w32font_text_extents): Use font's ascent and descent.
3950 (recompute_cached_metrics): Don't set ascent and descent per char.
3951
3187540e 3952 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 3953 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 3954 Rearrange loop for counting features.
3187540e 3955
f1a6b216
SM
39562008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3957
3958 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
3959 buffer with byte-size of source buffer.
3960
1d8dcf63
CY
39612008-04-03 Chong Yidong <cyd@stupidchicken.com>
3962
3963 * callint.c (Fcall_interactively): Handle temporary region even
3964 when shift-select-mode is off.
3965
6b8aa22a
JR
39662008-04-03 Jason Rumney <jasonr@gnu.org>
3967
3968 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
3969
2f3cbb32
KH
39702008-04-03 Kenichi Handa <handa@m17n.org>
3971
3972 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
3973 (CATEGORY_MASK_UTF_16): Likewise.
3974 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
3975 binary file.
3976 (detect_coding): Add null-byte detection for a binary file.
3977 (detect_coding_system): Likewise.
3978
43f4f91c
JR
39792008-04-03 Jason Rumney <jasonr@gnu.org>
3980
0c1b4ae2
JR
3981 * w32uniscribe.c: New file.
3982
3983 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
3984
3985 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3986
3987 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3988 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3989 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3990 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3991 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3992 (Qphonetic): New symbols.
3993 (syms_of_w32font): Initialize them.
3994 (font_supported_scripts): Use them.
3995 (w32font_list_family): List all charsets.
3996 (w32font_text_extents, recompute_cached_metrics): Fix metric
3997 calculations.
3998 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3999 Give opentype fonts their own format.
4000 (font_matches_spec): New arguments backend and logfont.
4001 Handle :otf spec for uniscribe backend.
4002 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4003 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 4004
0c1b4ae2
JR
4005 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4006 font backend.
4007 (globals_of_w32fns): Initialize uniscribe font backend.
4008
fbf57abb 4009 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
4010 dependencies.
4011 (w32uniscribe.$(O)): New file to build.
4012 (FONT_OBJ): Include w32uniscribe.$(O).
4013 (LIBS): Add uniscribe libraries.
4014
43f4f91c
JR
4015 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4016
75043a7d
CY
40172008-04-02 Chong Yidong <cyd@stupidchicken.com>
4018
4019 * callint.c (Vshift_select_mode): New var.
4020 (Finteractive): Document new ^ spec.
4021 (Fcall_interactively): Call handle-shift-selection if the ^ spec
4022 is present.
4023
4024 * keyboard.c (Vthis_command_keys_shift_translated): New var.
4025 (command_loop_1): Avoid running the direct display versions of
4026 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
4027 (read_key_sequence): Set Vthis_command_keys_shift_translated if
4028 shift-translation takes place.
4029
4030 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4031 avoid clobbering by define-minor-mode.
4032
4033 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4034 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4035
4036 * syntax.c (Fforward_word): Add ^ interactive spec.
4037
4038 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4039 (Fscroll_right): Add ^ interactive spec.
4040
b2b7f29e
SM
40412008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
4042
a432c0a6
SM
4043 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4044
994b75e0
SM
4045 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4046
b2b7f29e
SM
4047 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4048
e99c7806
JL
40492008-03-31 Juri Linkov <juri@jurta.org>
4050
4051 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4052
1c9c1270
JD
40532008-03-30 Jan Djärv <jan.h.d@swipnet.se>
4054
4055 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 4056 (xg_resize_outer_widget): Remove.
1c9c1270
JD
4057 (x_wm_size_hint_off): Fix indentation.
4058 (xg_frame_set_char_size): Call flush_and_sync after
4059 gtk_window_resize.
4060 (x_wm_set_size_hint): Pass NULL as geometry window to
4061 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4062 Add menu bar and tool bar height to base height.
4063 (xg_update_frame_menubar, free_frame_menubar)
4064 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
4065 (update_frame_tool_bar, free_frame_tool_bar):
4066 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 4067
90b3fc84
MA
40682008-03-30 Michael Albinus <michael.albinus@gmx.de>
4069
4070 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4071 (Fdbus_call_method): New parameter TIMEOUT.
4072 (dbus-send-signal): Optimize UNGCPRO call.
4073
7ae6d1d1
JL
40742008-03-29 Juri Linkov <juri@jurta.org>
4075
4076 * window.c (Fdisplay_buffer): Move call to
4077 Vsplit_window_preferred_function out of conditions that check
4078 if window is eligible for vertical splitting.
4079 When Vsplit_window_preferred_function is non-nil, call it and use
4080 its non-nil return value as window. Otherwise, continue doing
4081 vertical splitting using Fsplit_window with arg horflag=nil.
4082 (syms_of_window) <Vsplit_window_preferred_function>: Change the
4083 default value from `split-window' to nil.
4084
f03f8f2c
JL
40852008-03-29 Juri Linkov <juri@jurta.org>
4086
4087 * callint.c (Fcall_interactively): Revert 2008-03-16 change
4088 for interactive code letters 'b' and 'B'.
4089
6d557778
EZ
40902008-03-29 Eli Zaretskii <eliz@gnu.org>
4091
4092 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4093 multibyte string.
4094
58555d81
SM
40952008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4096
4097 * keyboard.c (pending_funcalls): New var.
4098 (timer_check): Run it.
4099 (syms_of_keyboard): Initialize it.
4100 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4101 (Vdelete_terminal_functions): New vars.
4102 (syms_of_terminal): Initialize them.
4103 (Fdelete_terminal): Run delete-terminal-functions.
4104 * xdisp.c (safe_eval): Rewrite.
4105 (safe_call2): New fun.
4106 * frame.c (Qdelete_frame_functions): New var.
4107 (syms_of_frame): Initialize it.
4108 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4109 * lisp.h (safe_call2, pending_funcalls): Declare.
4110
4c92f429
AS
41112008-03-28 Andreas Schwab <schwab@suse.de>
4112
4113 * indent.c (Fmove_to_column): Move declaration before statements.
4114
a1567c45
SM
41152008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4116
2806a183
SM
4117 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4118 (struct frame): Use bit fields for boolean vars.
4119
eef60308
SM
4120 * process.c (server_accept_connection): Simplify naming.
4121 (emacs_get_tty_pgrp): Use SDATA.
4122
a1567c45
SM
4123 * coding.c (decode_coding_object): Fix last change.
4124
30076589
JR
41252008-03-27 Jason Rumney <jasonr@gnu.org>
4126
4127 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4128
880820fe
KH
41292008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4130
4131 * charset.c (Fdefine_charset_internal): Change the way of
4132 registering charsets in Vcharset_order_list.
4133 (syms_of_charset): Make the charset `eight-bit' supplementary.
4134
3cf8cdfb
CY
41352008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4136
4137 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4138 operations, to avoid having the difference between pointers
4139 overflow.
4140
ef6f5c0e
SM
41412008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4142
80e3db56
SM
4143 * indent.c (check_display_width): New fun.
4144 (scan_for_column): Use it.
4145
c397dc7a
SM
4146 * data.c (syms_of_data): Mark most-positive-fixnum and
4147 most-negative-fixnum as constants.
4148
bf6b4d58
SM
4149 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4150
ef6f5c0e
SM
4151 * indent.c (scan_for_column): Extract from current_column_1.
4152 Merge with the same code from Fmove_to_column.
4153 (current_column_1, Fmove_to_column): Use it.
4154
72d5003d
SM
41552008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4156
12270607
SM
4157 * keymap.c (map_keymap_internal): New fun.
4158 (map_keymap): Use it.
4159 (Fmap_keymap_internal): New fun.
4160 (Fmap_keymap): Remove left-out test from before make_save_value.
4161
a10cca6c
SM
4162 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4163
d7b10f4c
SM
4164 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4165 Use XCAR/XCDR.
4166
5431bd6a
SM
4167 * process.h (struct Lisp_Process): Remove filter_multibyte.
4168 * process.c (QCfilter_multibyte): Remove.
4169 (setup_process_coding_systems): Don't use filter_multibyte.
4170 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4171 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4172 (Fset_process_filter_multibyte): Change the coding-system to
4173 approximate the previous behavior.
4174 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4175 coding-system.
4176
72d5003d
SM
4177 * coding.c (decode_coding_object): When not decoding into a buffer,
4178 obey the coding system's preference of (uni|multi)byte.
4179
438eba3c
SM
41802008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4181
4182 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4183 every char is changed and has a different byte-length.
4184 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4185 Fix int -> EMACS_INT.
4186
9ec3aaef 41872008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 4188
438eba3c 4189 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
4190 strings. Check for NULL `interface' or `member'.
4191
b07103dc
EZ
41922008-03-22 Eli Zaretskii <eliz@gnu.org>
4193
4194 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4195 cFileName a file name that includes `?' characters, use the 8+3
4196 alias in cAlternateFileName instead.
4197
5371d722
SM
41982008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4201
6ba7f443
SM
42022008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4203
4204 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4205 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
4206 work on current_buffer only instead (that was already the case
4207 for some of the code anyway).
4208 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4209 (temp_set_point, temp_set_point_both): Use EMACS_INT.
4210 (SET_PT, SET_PT_BOTH): Adjust.
4211 * intervals.h (set_point, temp_set_point, set_point_both)
4212 (temp_set_point_both): Remove redundant declarations.
4213
bf1c0f27
SM
42142008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4215
4216 * fileio.c (Finsert_file_contents):
4217 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4218 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
4219 when buffer != current_buffer anyway.
4220
acab783e
AS
42212008-03-20 Andreas Schwab <schwab@suse.de>
4222
4223 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4224 as default.
4225
d148e14d
JR
42262008-03-19 Jason Rumney <jasonr@gnu.org>
4227
4228 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4229 (syms_of_w32fns): Initialize them.
4230 (HOURGLASS_ID): New constant.
4231 (x_window_to_frame): Don't check hourglass_window.
4232 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4233 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4234 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4235 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4236 Only change the cursor if hourglass is not active.
4237 (Fx_create_frame): Initialize frame's current_cursor.
4238 (hourglass_atimer): Remove.
4239 (hourglass_started): New function.
4240 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4241 (show_hourglass): Adapt to w32, changing argument to frame.
4242
4243 * w32term.h (struct w32_output): Remove hourglass_window.
4244 Add current_cursor.
4245
4246 * eval.c (call_debugger, Fsignal):
4247 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4248 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4249 (Fexecute_extended_command, cancel_hourglass_unwind):
4250 * minibuf.c (read_minibuf):
4251 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 4252
a5c54077
JB
42532008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4254
4255 * window.c (run_funs): New fun.
4256 (run_window_configuration_change_hook): Use it to run the buffer-local
4257 and the global part of the hook.
4258
4259 * xdisp.c (format_mode_line_unwind_data): Add window argument.
4260 (unwind_format_mode_line): Restore selected window.
4261 (x_consider_frame_title, Fformat_mode_line): Set selected window.
4262
f9f3238f
SM
42632008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4264
253c3c82
SM
4265 * editfns.c (Fchar_equal): Check they are valid characters.
4266
f9f3238f
SM
4267 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4268
065a118d
AS
42692008-03-17 Andreas Schwab <schwab@suse.de>
4270
0b8be006
AS
4271 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4272 against a charset.
4273
065a118d
AS
4274 * lisp.h (Fbuffer_list): Declare.
4275
880820fe 42762008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
4277
4278 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4279 handlebox_widget is != 0.
4280
6206d6c2
JL
42812008-03-16 Juri Linkov <juri@jurta.org>
4282
4283 * callint.c (Fcall_interactively): For interactive code letters
4284 'b' and 'B' put the buffer list into the list of default "future"
4285 values of the minibuffer.
4286
f5020181
AS
42872008-03-16 Andreas Schwab <schwab@suse.de>
4288
a864f6d6
AS
4289 * keyboard.c (read_key_sequence): Fix downcasing of letters with
4290 modifiers.
4291
f5020181
AS
4292 * regex.c (re_match_2_internal): Correct matching of a charset
4293 against latin-1 characters.
4294
03f244e2
KH
42952008-03-16 Kenichi Handa <handa@m17n.org>
4296
4297 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4298 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
4299 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4300 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
4301 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4302 CHAR_STRING_ADVANCE.
4303 (produce_chars): Fix for the case that the source and the
4304 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
4305 instead of CHAR_STRING_ADVANCE.
4306 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4307 STRING_CHAR_ADVANCE.
4308
0e2501ed
AS
43092008-03-15 Andreas Schwab <schwab@suse.de>
4310
4311 * regex.c (re_match_2_internal): Correct matching of eight bit
4312 characters in unibyte strings.
4313
7723e095
MR
43142008-03-15 Martin Rudalics <rudalics@gmx.at>
4315
4316 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4317 at end of range when it coincides with the end of the buffer.
4318
f507f365
EZ
43192008-03-14 Eli Zaretskii <eliz@gnu.org>
4320
294f1153
EZ
4321 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4322
f507f365
EZ
4323 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
4324
64f0809d
JR
43252008-03-14 Jason Rumney <jasonr@gnu.org>
4326
956ae531
JR
4327 * editfns.c (initial_tz): New variable.
4328 (syms_of_editfns): Initialize it.
4329 (Fset_time_zone_rule): Set it when first called.
4330 Use it when TZSTRING is nil.
4331
64f0809d
JR
4332 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
4333 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
4334 (monitor_from_point_fn, get_monitor_info_fn): New globals.
4335 (globals_of_w32fns): Initialize them.
4336 (compute_tip_xy): Use them to position tooltips.
4337
21a4ff8e
GM
43382008-03-14 Glenn Morris <rgm@gnu.org>
4339
4340 * emacs.c (main): Revert previous change.
4341 (standard_args): Revert -internal-script back to -scriptload,
4342 and remove the long-option form.
4343
a09a5b5b
GM
43442008-03-13 Glenn Morris <rgm@gnu.org>
4345
4346 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
4347 Remove option -enable-font-backend.
4348
1c55ebd1
SM
43492008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4350
4351 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
4352
880820fe 43532008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
4354
4355 * xterm.c (x_connection_closed): For GTK: If this is the last
4356 terminal just exit without closing the display.
4357
7145be81
JR
43582008-03-11 Jason Rumney <jasonr@gnu.org>
4359
4360 * w32font.c (w32font_full_name): Use floor to round.
4361
e6201af3 43622008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
4363
4364 * sound.c (alsa_configure): Declare vol at beginning of block.
4365
e6201af3 4366 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 4367
390b81fa 43682008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 4369
56388398
MB
4370 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4371 size of resulting string.
af0ad939 4372
390b81fa 43732008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 4374
56388398 4375 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 4376
390b81fa 43772008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 4378
56388398
MB
4379 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
4380 Don't pretend as if characters with display property haven't been
4381 consumed for string-replacing-string case.
acd37560 4382
223ed6db
KS
43832008-03-08 Kim F. Storm <storm@cua.dk>
4384
4385 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
4386 (get_next_display_element, next_element_from_string)
4387 (next_element_from_ellipsis, next_element_from_buffer): Use it.
4388
28545f7c
AS
43892008-03-08 Andreas Schwab <schwab@suse.de>
4390
4391 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
4392
c960bff8
JR
43932008-03-06 Jason Rumney <jasonr@gnu.org>
4394
290afd83
JB
4395 * w32font.c (w32_registry): Take font_type argument. Use ANSI
4396 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
4397 font_type is truetype.
4398 (w32font_coverage_ok): New function.
4399 (add_font_entity_to_list): Use it to filter unsuitable fonts.
4400
87b8ce92
KH
44012008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
4402
4403 * lread.c (Fread_char): Resolve modifiers.
4404 (Fread_char_exclusive): Likewise.
4405
4406 * character.c (char_resolve_modifier_mask): New function.
4407 (char_string): Use char_resolve_modifier_mask.
4408 (Fchar_resolve_modifiers): New function.
4409 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
4410 function.
4411
cefd56f6
JR
44122008-03-04 Jason Rumney <jasonr@gnu.org>
4413
4414 * makefile.w32-in: Always include w32font.c in the build.
4415 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
4416
03bd3c1f
AS
44172008-03-04 Andreas Schwab <schwab@suse.de>
4418
4419 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
4420 (versionclean): Likewise.
4421
6f69e89b
JB
44222008-03-04 Juanma Barranquero <lekktu@gmail.com>
4423
4424 * .cvsignore: Add oo.
4425
f4a3cc44
AS
44262008-03-03 Andreas Schwab <schwab@suse.de>
4427
4428 * coding.c (decode_coding_object): Inhibit gap shrinking while
4429 decoding in place.
4430
73f838ad
DN
44312008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
4432
4433 * w32term.c: Remove unused include "gnu.h".
6f69e89b 4434 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
4435
4436 * gnu.h: Rename to ...
4437 * emacs-icon.h: ... this.
4438 * xterm.c: Use emacs-icon.h instead of gnu.h.
4439 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
4440
ce9c1f06
JB
44412008-03-03 Juanma Barranquero <lekktu@gmail.com>
4442
4443 * w32font.c: Include math.h.
4444
34fd2d28
JR
44452008-03-03 Jason Rumney <jasonr@gnu.org>
4446
54efdcd1
JR
4447 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
4448 Compute options separately.
4449 (w32font_open_internal): Set glyph_idx before caching metrics.
4450
ce9c1f06
JB
4451 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
4452 Define if system headers don't.
4453 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
4454 (w32font_encode_char): Don't declare here.
4455
4456 * w32font.c (Quniscribe, QCformat): New symbols.
4457 (syms_of_w32font): Define them.
4458 (w32font_has_char): Indicate uncertainty.
ce9c1f06 4459 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 4460 (recompute_cached_metrics): New function.
ce9c1f06
JB
4461 (w32font_open_internal): Use it. Set font to use glyph points
4462 initially. Set format based on type of font.
34fd2d28 4463 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
4464 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
4465 on it. Set format based on information available here.
34fd2d28
JR
4466 (add_font_entity_to_list): Identify backend based on opentype_only.
4467
14daee73
AS
44682008-03-02 Andreas Schwab <schwab@suse.de>
4469
f907fb2e
AS
4470 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
4471
ce9c1f06
JB
4472 * coding.c (decode_coding_big5, produce_chars):
4473 Fix typos in last change.
14daee73 4474
c9cc6462
DN
44752008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
4476
4477 * gnu.h: New icon.
4478
119852e7
KH
44792008-03-02 Kenichi Handa <handa@m17n.org>
4480
4481 * coding.c (decode_coding_utf_8): When eol-type of CODING is
4482 `dos', don't decode '\r' if that is the last in the source.
4483 (decode_coding_utf_16, decode_coding_emacs_mule)
4484 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4485 (decode_coding_raw_text, decode_coding_charset): Likewise.
4486 (produce_chars): Don't decode EOL here. Use EMACS_INT.
4487
a823468b
JR
44882008-03-01 Jason Rumney <jasonr@gnu.org>
4489
4490 * w32font.c (w32font_full_name): Report point size for scalable fonts.
4491
4ddc7e30
KS
44922008-03-01 Kim F. Storm <storm@cua.dk>
4493
4494 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
4495
67997c79
JR
44962008-03-01 Jason Rumney <jasonr@gnu.org>
4497
4498 * w32font.c (w32font_full_name): New function.
4499 (w32font_open_internal): Use it.
4500
3f4e9c35
KS
45012008-03-01 Kim F. Storm <storm@cua.dk>
4502
4503 * dispnew.c (line_draw_cost): Fix invalid glyph check.
4504
f3b9e479
JR
45052008-03-01 Jason Rumney <jasonr@gnu.org>
4506
4507 * font.c (font_unparse_fcname): Increase len when style is a symbol.
4508
880820fe 45092008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
4510
4511 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4512 xg_frame_resized when the event is for the edit widget.
4513
4514 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4515
4516 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4517 set_char_size.
4518 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
4519 operations on widgets here. Just set frame size if needed.
4520 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4521 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4522 (x_wm_set_size_hint): Set size hints on the edit widget only, not
4523 the whole frame.
4524 (xg_create_tool_bar): Move attachement of the tool bar to
4525 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
4526 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
4527
6c8acaa1
JR
45282008-03-01 Jason Rumney <jasonr@gnu.org>
4529
4530 * w32fns.c (w32_msg_pump): Disable debug code.
4531
51fb064b 45322008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 4533
51fb064b 4534 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 4535
60221a33
CY
45362008-02-29 Chong Yidong <cyd@stupidchicken.com>
4537
4538 * xdisp.c (next_overlay_string): Don't set
4539 overlay_strings_at_end_processed_p if we're currently reading from
4540 a display string.
4541
10cbc34f
SM
45422008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
4543
4544 * xdisp.c (get_overlay_strings_1): Fix typo.
4545
73c0054e
CY
45462008-02-29 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * xdisp.c (get_overlay_strings_1): Add missing argument type.
4549
ec1c4354
KH
45502008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
4551
55082642
KH
4552 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
4553
ec1c4354
KH
4554 * xdisp.c (display_mode_element): Cancel the previous change.
4555 (decode_mode_spec): Likewise.
ee548a94
KH
4556 (handle_auto_composed_prop): Don't make composition if it->string
4557 is a string.
ec1c4354 4558
b6d898a2
KS
45592008-02-27 Kim F. Storm <storm@cua.dk>
4560
4561 * lisp.h (GLYPH): Change type from int to struct with separate char
4562 and face_id members.
4563 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
4564 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
4565 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
4566 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
4567 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
4568 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
4569 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
4570 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
4571 handle new Lisp glyph code encoding, either an integer or a cons.
4572
4573 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
4574 (GLYPH_ALIAS): Delete.
4575 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
4576 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
4577 (GLYPH_FROM_CHAR): Replace macro by ...
4578 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
4579
4580 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
4581 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
4582 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
4583 (GLYPH_INVALID_P): New macro.
4584 (spec_glyph_lookup_face): Update prototype.
4585
4586 * dispnew.c (line_draw_cost): Adapt to new glyph type.
4587 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
4588 new glyph code encoding.
4589 (spec_glyph_lookup_face): No return value; update passed glyph instead.
4590 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
4591
4592 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4593 Adapt to new glyph type and new glyph code encoding.
4594
4595 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
4596
4597 * indent.c (current_column, current_column_1, Fmove_to_column)
4598 (compute_motion): Adapt to new glyph code encoding.
4599
4600 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
4601
af2080a2
CY
46022008-02-27 Chong Yidong <cyd@stupidchicken.com>
4603
4604 * process.c (wait_reading_process_output): Check for window
4605 changes caused by timers.
880820fe 4606 Suggested by Johan Bockgård.
af2080a2 4607
253ed25e
GM
46082008-02-27 Glenn Morris <rgm@gnu.org>
4609
4610 * emacs.c (USAGE1): Add `--disable-font-backend'.
4611
18a9f8d9
SM
46122008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
4613
4614 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
4615 is made to the buffer.
4616
0f8b27ea
SM
46172008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4618
4619 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
4620 (face_at_string_position):
4621 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4622 (face_at_string_position):
4623 * xdisp.c (display_string, next_overlay_change):
4624 * buffer.h (overlays_at):
4625 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
4626 Update callers.
4627
4e7c53ca
CY
46282008-02-26 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * editfns.c (Fformat): Doc fix.
4631
51c01100
JB
46322008-02-26 Juanma Barranquero <lekktu@gmail.com>
4633
4634 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
4635 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
4636 (Ffont_otf_alternates, Fquery_font): Doc fixes.
4637
13cda5f9
SM
46382008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4639
4640 * buffer.c (Fbuffer_swap_text): New function.
4641 (syms_of_buffer): Defsubr it.
4642
8018d430
CY
46432008-02-25 Chong Yidong <cyd@stupidchicken.com>
4644
4645 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
4646
9bde1a21
JR
46472008-02-25 Jason Rumney <jasonr@gnu.org>
4648
4649 * w32font.c (w32font_draw): Draw one character at a time when padding.
4650
eeca6f6f
SM
46512008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4652
4653 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
4654 Handle a nil arg. Use run_window_configuration_change_hook.
4655 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
4656 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
4657 Use run_window_configuration_change_hook.
4658
ec1c4354
KH
46592008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4660
4661 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
4662 1-pixel width.
4663
ae185452
KH
46642008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4665
4666 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
4667 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
4668 if the glyph in the font is zero pixel with.
4669
4670 * dispextern.h (struct glyph_string): New member padding_p.
4671
4672 * w32font.c (w32font_draw): Pay attention to s->padding_p.
4673
4674 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
4675
4676 * xfont.c (xfont_draw): Pay attention to s->padding_p.
4677
4678 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
4679
eeca6f6f 4680 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 4681
ffe832ea 46822008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 4683
ffe832ea 4684 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 4685
06045130
SM
46862008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
4687
4688 Allow fine-grained image-cache flushing.
4689 * dispextern.h (struct image): Add `dependencies' field.
4690 (clear_image_caches): Change arg to Lisp_Object.
4691 * image.c (make_image): Initialize `dependencies' field.
4692 (clear_image_cache): Change arg to allow fine-grained flushing.
4693 Perform the flush even if image-cache-eviction-delay is nil.
4694 (clear_image_caches): Change arg to Lisp_Object.
4695 (Fclear_image_cache): Expand meaning of the argument.
4696 (mark_image): Mark `dependencies' field.
4697 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
4698 (lface_hash): Use XHASH rather than XFASTINT.
4699 (face_at_buffer_position): Fix int -> EMACS_INT position.
4700 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
4701 (select_frame_for_redisplay): Remove code duplication.
4702 (redisplay_internal): Adapt arg to call to clear_image_caches.
4703
9d2818d6
DN
47042008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
4705
4706 * s/vms4-0.h:
4707 * s/vms4-2.h:
4708 * s/vms4-4.h:
4709 * s/vms5-5.h: Remove, unused.
4710
4711 * s/irix5-2.h:
4712 * s/irix6-0.h:
4713 * s/riscos5.h:
4714 * s/mach-bsd4-3.h:
2a2e8de7 4715 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
4716
4717 * Makefile.in:
4718 * filelock.c:
4719 * unexmips.c:
4720 * m/hp9000s300.h:
4721 * m/iris4d.h:
4722 * s/aix3-1.h:
4723 * s/hpux.h:
4724 * s/msdos.h:
4725 * s/usg5-0.h:
4726 * s/usg5-2-2.h:
4727 * s/usg5-2.h:
4728 * s/usg5-3.h: Remove references to obsolete variables.
4729
4730 * s/irix5-0.h: Remove, move all the contents ...
4731 * s/irix6-5.h: ... here. Simplify.
4732 * config.in: Regenerate.
4733
2a36efcf
JR
47342008-02-24 Jason Rumney <jasonr@gnu.org>
4735
c5ad7a3d 4736 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
4737 manually when cleartype is in use.
4738 (x_draw_glyph_string_foreground): Draw text transparently when
4739 cleartype is in use.
4740
2a36efcf
JR
4741 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
4742 a font into it unless we have to.
4743
b03f96dc 47442008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 4745
b03f96dc
MB
4746 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
4747 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 4748
b03f96dc 47492008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 4750
b03f96dc 4751 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 4752
b03f96dc 47532008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 4754
b03f96dc 4755 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 4756
b03f96dc 47572008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 4758
b03f96dc 4759 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 4760
d5958163
CY
47612008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
4762
4763 * xterm.c (x_set_offset): Don't change the gravity if
4764 CHANGE_GRAVITY is -1.
4765
9997701e
CY
47662008-02-23 Chong Yidong <cyd@stupidchicken.com>
4767
4768 * fileio.c (auto_save_error_occurred): New var.
4769 (auto_save_error): Set it.
4770 (Fdo_auto_save): Don't overwrite the error message if an auto-save
4771 error occurred.
4772
9d95a291
EZ
47732008-02-23 Eli Zaretskii <eliz@gnu.org>
4774
4775 * w32.c (globals_of_w32): Add initializations for
4776 g_b_init_get_sid_sub_authority and
4777 g_b_init_get_sid_sub_authority_count.
4778
43d1af23
SM
47792008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4780
43a1d19b
SM
4781 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
4782 (font_parse_xlfd): Use them for sanity check.
608c3307 4783 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 4784
354884c4
SM
4785 Consolidate the image_cache to the terminal struct.
4786 * termhooks.h (P_): Remove redundant def.
4787 (struct terminal): New field `image_cache'.
4788 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
4789 of FRAME_X_IMAGE_CACHE.
4790 * xterm.h (struct x_display_info): Remove image_cache field.
4791 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4792 * w32term.h (struct w32_display_info): Remove image_cache field.
4793 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4794 * macterm.h (struct mac_display_info): Remove image_cache field.
4795 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4796 * xterm.c (x_term_init):
4797 * w32term.c (w32_term_init):
4798 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4799 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4800 Remove declarations.
4801 (clear_image_caches, mark_image_cache): New declarations.
4802 * xfaces.c (clear_face_cache):
4803 * xdisp.c (redisplay_internal): Use clear_image_caches.
4804 * image.c (clear_image_cache): Don't check that a frame is on
4805 a window-system before checking if it shares the same cache.
4806 (clear_image_caches): New function.
4807 (Fclear_image_cache): Use it.
4808 (mark_image): Move from allo.c.
4809 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4810 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4811 (mark_object): Don't call mark_image_cache for frames.
4812 (mark_terminals): Call mark_image_cache.
4813
c2e42690
SM
4814 * lisp.h (Fdelete_terminal): Declare.
4815
43d1af23
SM
4816 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4817 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4818 wrong_type_argument.
4819
cc8d1311
KH
48202008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4821
4822 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 4823 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 4824
6bd92640
SM
48252008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4826
4827 * xterm.c (x_connection_closed): Consolidate identical tests.
4828 (x_delete_terminal): Don't crash if called via x_connection_closed.
4829
a73b5627
KH
48302008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4831
4832 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 4833 (display_mode_element): Adjust for the above change.
a73b5627 4834
1b511542
SM
48352008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4836
4837 * callint.c (Fcall_interactively): Use AREF.
4838
81aefea4
SM
48392008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4840
4841 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4842
880820fe 48432008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
4844
4845 * xfns.c (Fx_show_tip): Set string to " " if empty.
4846
a2b84f35
DN
48472008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4848
4849 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4850 with Qt.
4851
43c0454d
KH
48522008-02-17 Kenichi Handa <handa@m17n.org>
4853
4854 * ftfont.c (ftfont_shape): Return Lispy number.
4855
4856 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4857 for GCs.
4858 (Finternal_set_font_selection_order): Call font_update_sort_order
4859 only when enable_font_backend is set.
4860 (realize_x_face): Set face->font_info to that of default face only
4861 when enable_font_backend is set.
4862
4863 * xdisp.c (handle_composition_prop): Set it->c to the fist
4864 characte of the composed region.
4865 (fill_composite_glyph_string): Set base_face->font_info to
4866 s->font_info. Get a face for ascii from base_face->ascii_face.
4867 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
4868 with a face already decided.
4869 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
4870 non-negative.
978bef9a
JB
4871 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
4872 call font_prepare_composition unconditionally.
43c0454d 4873
978bef9a 4874 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
4875
4876 * xterm.h (struct x_display_info): New member font.
4877
4878 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
4879 (x_set_mouse_face_gc, x_new_font): Likewise.
4880 (x_term_init): Setup display_info->font.
4881 (x_delete_terminal): Free display_info->font.
4882
4883 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
4884
4885 * ftxfont.c (ftxfont_default_fid): Delete it.
4886 (ftxfont_open): Set xfont->fid to 0.
978bef9a 4887 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
4888 font-driver.
4889
4890 * xftfont.c (xftfont_default_fid): Delete it.
4891 (xftfont_open): Set xfont->fid to 0.
4892
4893 * fontset.c (FONTSET_OBJLIST): New macro.
4894 (fontset_find_font): Update font-object list of the fontset.
4895 (free_realized_fontset): New function.
4896 (free_face_fontset): Call free_realized_fontset.
4897 (Ffont_info): Call font_close_object only when enable_font_backend
4898 is set.
4899
4900 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
4901 [HAVE_NTGUI]: Include w32term.h.
4902 [MAC_OS]: Include macterm.ch.
4903 (font_otf_ValueRecord): Use make_number.
4904 (font_finish_cache): Fix handling of reference count.
4905 (font_clear_cache): Update num_fonts.
4906 (font_open_entity): Update smallest_char_width and
4907 smallest_font_height of the frame.
4908 (font_close_object): Update num_fonts.
4909 (Fclear_font_cache): Fix finding the target cache data.
4910
be617367
GM
49112008-02-16 Glenn Morris <rgm@gnu.org>
4912
4913 * fontset.c (Finternal_char_font): Fix compilation warning.
4914
2930d117
EZ
49152008-02-16 Eli Zaretskii <eliz@gnu.org>
4916
634d3003
EZ
4917 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
4918 instead of char arrays. Enlarge the size of array passed to
4919 get_token_information.
4920
2930d117
EZ
4921 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
4922 warnings.
4923
79214046
DN
49242008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
4925
4926 * .gdbinit: Don't set `args', it breaks gdb --args.
4927
7f5d2c72
SM
49282008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
4929
4930 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
4931 within a narrowed buffer.
4932
6edacc43
KH
49332008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
4934
b270d6af
JB
4935 * coding.c (decode_coding_object, encode_coding_object):
4936 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 4937
174105f7
SM
49382008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4939
b270d6af
JB
4940 * coding.c (coding_set_destination): Use BEG_BYTE rather than
4941 hardcoding 1.
13818c30
SM
4942 (detect_coding_system):
4943 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
4944 (string_char_to_byte, string_byte_to_char, insert_from_gap):
4945 * insdel.c (insert_from_gap):
4946 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
4947 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
4948 (string_to_multibyte):
4949 * character.c (chars_in_text, multibyte_chars_in_text):
4950 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
4951
f1c99628
SM
4952 * character.h (FETCH_STRING_CHAR_ADVANCE)
4953 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
4954 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
4955 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
4956
7927d8e3
SM
4957 * casefiddle.c (casify_region): Only call after-change and composition
4958 functions on the part of the region that was changed.
4959
adf6a429 4960 * keyboard.c (read_avail_input):
174105f7
SM
4961 * frame.c (Fdelete_frame): Call Fdelete_terminal.
4962
3ee24aec
SM
49632008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4964
4965 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
4966 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
4967
4ed4b975
JB
49682008-02-11 Juanma Barranquero <lekktu@gmail.com>
4969
4970 * w32menu.c (push_submenu_start, push_submenu_end)
4971 (push_left_right_boundary, push_menu_pane, push_menu_item):
4972 * keyboard.c (read_key_sequence): Don't pass args with side effects
4973 to AREF, it fails when compiling with -DENABLE_CHECKING.
4974
79e3bfb8
KH
49752008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
4976
4ed4b975
JB
4977 * Makefile.in (${lispsource}international/charprop.el):
4978 Delete this target.
6e76043f 4979
79e3bfb8
KH
4980 * search.c (boyer_moore): Fix incorrect synching of the trunk and
4981 emacs-unicode-2.
4982
5b8de9c5
SM
49832008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4984
4985 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4986
eac1939a
SM
49872008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4988
c53956fe
SM
4989 * frame.c (Qnoelisp): New symbol.
4990 (syms_of_frame): Initialize it.
4991 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4992 someharmles Elisp code, from a strong `force' from x_connection_closed.
4993 * frame.h (Qnoelisp): Declare.
4994 * xterm.c (x_connection_closed): Pass `noelisp'.
4995
eac1939a
SM
4996 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4997 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4998 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4999 rather than `int' for the type of `type'.
5000
13f6772b
DN
50012008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
5002
5003 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5004
5005 * Makefile.in (GNUC): Remove support for gcc-1.x.
5006
e8455367
RS
50072008-02-10 Richard Stallman <rms@gnu.org>
5008
5009 * lisp.h (ASET): Use AREF, not ASLOT.
5010
4b75ffab
SM
50112008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5012
5013 * lisp.h (ASET): Check bounds.
5014
d224e8c2
GM
50152008-02-10 Glenn Morris <rgm@gnu.org>
5016
5017 * buffer.c (mode-name): Doc fix.
5018
4624371d
DN
50192008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5020
290afd83
JB
5021 * Makefile.in:
5022 * emacs.c:
5023 * gmalloc.c:
5024 * keyboard.c:
5025 * lisp.h:
5026 * m/ibm370aix.h:
5027 * process.c:
5028 * regex.c:
5029 * s/hpux.h:
5030 * sysdep.c:
5031 * sysselect.h:
5032 * systty.h:
5033 * unexec.c:
5034 * w32term.c:
5035 * xsmfns.c:
5036 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
5037
5038 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5039
5040 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5041 nothing else needs it anymore.
5042
274ec34b
EZ
50432008-02-09 Eli Zaretskii <eliz@gnu.org>
5044
5045 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5046 instead of unibyte_char_to_multibyte.
5047
deeaffe1
DN
50482008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5049
5050 * s/gnu-linux.h: Remove commented out code.
5051
4ed4b975 5052 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
5053
5054 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 5055 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 5056 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
5057 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5058 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5059
68b587a6
SM
50602008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5061
9141ca5e
SM
5062 * keymap.c (Fkey_description): Move side effect outside of macro call.
5063
dfae5f9a 5064 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
5065 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5066
ff7a2223
SM
5067 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5068 (syms_of_fontset): Use ASET.
5069
68b587a6
SM
5070 * fns.c (concat): Move side effect outside of macro call.
5071 (hash_clear): Use ASET.
5072
a31787b1
RS
50732008-02-08 Richard Stallman <rms@gnu.org>
5074
5075 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5076 If FORCE, and frame has a surrogate minibuffer for another frame,
5077 delete the other frame first.
5078
987be29b 50792008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
5080
5081 * xterm.c (x_detect_focus_change): Handle embed client message.
5082 (handle_one_xevent): Ditto.
5083 (handle_one_xevent): If embedded and we get a button press/release,
5084 request focus.
5085 (xembed_set_info, xembed_send_message): New functions.
5086 (x_make_frame_visible): Call xembed_set_info if embedded.
5087 (x_make_frame_invisible): Call xembed_set_info if embedded.
5088 (x_term_init): Initialize Xatom_XEMBED.
5089 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5090 (x_iconify_frame): Ditto.
5091
5092 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5093 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5094 (enum xembed_modifier, enum xembed_accelerator): New.
5095 (xembed_set_info, xembed_send_message): Declare.
5096 (FRAME_X_EMBEDDED_P): New.
5097
5098 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5099 gtk_plug_new.
5100
5101 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5102 window ID of a frame.
5103 (x_window): Reparent frame if embedded.
5104 (Fx_create_frame): Don't set border width if embedded.
5105
1f204af3 5106 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
5107 (standard_args): Ditto.
5108
880820fe 51092008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
5110
5111 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5112
92413ef3
JD
51132008-02-07 Jim Meyering <meyering@redhat.com>
5114
6f69e89b 5115 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
5116 The latter provokes a warning from gcc about the empty else, when
5117 followed by ";". Also, without that trailing semicolon, it would
5118 silently swallow up any following statement.
c3f9fba8 5119 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
5120 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5121 * buffer.h (DECODE_POSITION): Likewise.
5122 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5123 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5124 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5125 (FETCH_CHAR_ADVANCE): Likewise.
5126 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 5127
03fa5713
GM
51282008-02-07 Jim Meyering <meyering@redhat.com>
5129
5130 * lread.c [lint]: Don't include <sys/inode.h>.
5131
3ae565b3
SM
51322008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5133
5134 * xselect.c (x_handle_dnd_message):
5135 * xmenu.c (digest_single_submenu, xmenu_show):
5136 * xdisp.c (with_echo_area_buffer_unwind_data)
5137 (format_mode_line_unwind_data, unwind_format_mode_line)
5138 (display_menu_bar):
5139 * eval.c (Ffetch_bytecode):
5140 * doc.c (store_function_docstring):
5141 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5142 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5143 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5144
146b6e55
KH
51452008-02-07 Kenichi Handa <handa@m17n.org>
5146
5147 * ftxfont.c (ftxfont_open): Don't set
5148 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5149
5150 * ftfont.c (ftfont_open): Fix previous change.
5151
46a923ac
JR
51522008-02-06 Jason Rumney <jasonr@gnu.org>
5153
5154 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5155 Use cached metrics for ASCII characters.
3ae565b3
SM
5156 (w32font_open_internal): Don't set font's owning_frame.
5157 Cache metrics for ASCII characters.
46a923ac
JR
5158
5159 * w32font.h (struct w32font_info): Add ascii_metrics.
5160 Remove owning_frame.
5161
da7d7c21
KH
51622008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5163
5164 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5165 to negative value.
5166
5167 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5168
3ae565b3 5169 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
5170
5171 * charset.c (syms_of_charset): Set QCtest and Qeq.
5172
c62c8ddb
SM
51732008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5174
ca319910
SM
5175 * process.c (Fstart_process):
5176 * callproc.c (Fcall_process): Handle the case where
5177 Funhandled_file_name_directory returns nil.
5178
76860cbb
SM
5179 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5180 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
5181 * font.c (check_gstring): Use them and AREF to access the vector before
5182 we know it's really a gstring.
5183 (Ffont_shape_text): Fix typo.
5184 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 5185
15139d67
SM
5186 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5187 Declare.
5188
c62c8ddb
SM
5189 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5190
04b65d2b
JR
51912008-02-05 Jason Rumney <jasonr@gnu.org>
5192
5193 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5194 Set smallest_font_height and smallest_char_width in display info.
5195
fccaebfd
KH
51962008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
5197
5198 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5199
e7d7fd8c
MB
52002008-02-05 Miles Bader <miles@gnu.org>
5201
5202 * xfaces.c (get_lface_attributes, merge_named_face)
5203 (lookup_named_face, lookup_derived_face, realize_named_face):
5204 Revert 2008-02-01 change by cyd@stupidchicken.com.
5205
3d4448a8
KH
52062008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
5207
5208 * fontset.c (Ffontset_info): Handle the case of inhibitting the
5209 fallback fonts.
15139d67 5210 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 5211
5ace1ec1
JR
52122008-02-04 Jason Rumney <jasonr@gnu.org>
5213
5214 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5215 set full_name.
e3a77b22 5216 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 5217
ffe42183
JR
52182008-02-03 Jason Rumney <jasonr@gnu.org>
5219
5220 * makefile.w32-in (OBJ1): Include font.o here.
5221 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5222
526dc3b3
JR
52232008-02-02 Jason Rumney <jasonr@gnu.org>
5224
a0fece35 5225 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 5226
af805c82
JR
52272008-02-01 Jason Rumney <jasonr@gnu.org>
5228
5229 * s/cygwin.h: Define VIRT_ADDR_VARIES.
5230
5231 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5232
7f6519c5
AS
52332008-02-01 Andreas Schwab <schwab@suse.de>
5234
1f45f627 5235 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 5236 ../lisp/language/myanmar.el.
7f6519c5 5237
26f8aa27
CY
52382008-02-01 Chong Yidong <cyd@stupidchicken.com>
5239
1f45f627 5240 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
5241 (merge_named_face, lookup_named_face, lookup_derived_face)
5242 (realize_named_face): Call lface_from_face_name directly, and use
5243 the fact that merge_face_vectors does not alter its FROM argument.
5244
73acf815 52452008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5246
5247 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 5248 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 5249
73acf815 52502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5251
5252 * fontset.c (reorder_font_vector): Exclude nil elements from the
5253 font group. Don't try multiple fonts.
15139d67 5254 (fontset_font): Adjust for the above change.
aca7a3d2
MB
5255 (Finternal_char_font): Return nil if the found font doesn't
5256 contain the character ch.
5257
4c4475a8 5258 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 5259
73acf815 52602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5261
5262 * font.h (FONTP): Make it return 1 also for a font-object.
5263
5264 * .gdbinit (xfontset): New function.
5265
5266 * font.c (font_find_for_lface): Check if the character C is
5267 supported or not only for the first font.
5268
5269 * fontset.c (reorder_font_vector): Fix typo.
5270 (fontset_find_font): Don't add a font-spec specifying a script.
5271 Use 0 (not Qt) for the indication of empty font-group. Change the
5272 format of RFONT-DEF. Return Qt if no font in the font-group
5273 support the character.
15139d67 5274 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 5275 found the character, remember that.
15139d67 5276 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
5277 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5278 no font for the target.
15139d67 5279 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 5280
73acf815 52812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5282
5283 * font.c (font_load_for_face): Handle the case that the font in
5284 face->lface is a string.
5285
73acf815 52862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5287
1f45f627 5288 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 5289
73acf815 52902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5291
5292 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5293 Fix previous change. If the frame is not on a window system,
5294 signal an error.
5295
73acf815 52962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5297
4c4475a8
GM
5298 * coding.c (decode_coding_object, encode_coding_object): Adjust
5299 marker positions after conversion.
aca7a3d2
MB
5300
5301 * lisp.h (struct Lisp_Marker): New member need_adjustment.
5302
73acf815 53032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5304
5305 * font.c (font_find_for_lface): Fix the handling of the return
5306 value of font_has_char.
5307 (Ffont_shape_text): Fix previous change.
5308
5309 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5310 (fontset_ref_and_range): Delete it.
5311 (fontset_find_font): Call char_table_ref_and_range instead of
5312 FONTSET_REF_AND_RANGE.
5313 (make_fontset): Don't setup font groups of Latin here.
5314 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5315 (new_fontset_from_font): Make the specified font the default for
5316 all Latin characters.
5317
73acf815 53182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5319
5320 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
5321 is on a window system before accessing the fontset of the frame.
5322
73acf815 53232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5324
1f45f627 5325 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
5326
5327 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
5328 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
5329
5330 * font.c (Ffont_shape_text): If the font driver doesn't have a
5331 shaper function, make zero-width glyphs to have at least one-pixel
5332 width. Fix setting of `to' field of glyphs.
5333
73acf815 53342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5335
5336 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
5337 glyphs.
5338
1f45f627 5339 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 5340
73acf815 53412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5342
5343 * composite.c (syms_of_composite): Fix docstring of
5344 auto-composition-function.
5345
5346 * font.h (LGLYPH_SIZE): New macro.
5347
5348 * font.c (Ffont_fill_gstring): Stop filling when a character not
5349 supported by the font is found.
5350 (Ffont_shape_text): When a shape callback function returns nil,
5351 try at most two more times with larger gstring.
15139d67 5352 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
5353
5354 * xdisp.c (handle_auto_composed_prop): Change the argument to
5355 auto-composition-function.
5356
5357 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
5358 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
5359 Lispy glyph and store it in the lgstring.
5360
5361 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
5362
5363 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
5364
73acf815 53652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5366
5367 * font.c (Ffont_shape_text): Avoid unnecessary composition.
5368
5369 * fontset.c (Vfont_encoding_charset_alist): New variable.
5370 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
5371 (reorder_font_vector, fontset_find_font): Optimize for the case of
5372 no need of reordering.
aca7a3d2
MB
5373 (face_for_char): Map the charset property by
5374 Vfont_encoding_charset_alist.
5375
73acf815 53762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5377
5378 * w32font.c (logfonts_match): Don't check adstyle here.
5379 (font_matches_spec): Check here against physical font instead.
5380 (add_font_entity_to_list): Avoid some substitutions.
5381
5382 * font.c (font_parse_fcname): Default weight and slant to normal.
5383 (font_score): Prefer normal fonts if weight or slant unspecified.
5384 (font_score) [WINDOWSNT]: Scale weight difference down to closer
5385 match freetype scores.
5386
73acf815 53872008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5388
5389 * w32font.c (w32font_text_extents): Don't use the frame stored in the
5390 font, as it may have been deleted.
5391 (w32_enumfont_pattern_entity): Map generic family to adstyle using
5392 most common hyphenless variation.
5393 (logfonts_match): Check generic family.
5394 (font_matches_spec): Don't check generic family here.
5395 (fill_in_logfont): Set generic family based on adstyle.
5396
5397 * w32font.h (w32font_get_cache): Update declaration.
5398
73acf815 53992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5400
5401 * ftfont.c (ftfont_get_cache): Adjust the argument type.
5402
15139d67 5403 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 5404 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
5405 with the old drivers.
5406
5407 * w32font.c (w32font_get_cache): Adjust the argument type.
5408
5409 * xfont.c (xfont_get_cache): Adjust the argument type.
5410
5411 * font.h (struct font_driver): Change argument type of get_cache.
5412
5413 * xftfont.c (xftfont_start_for_frame): Delete prototype.
5414
5415 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 5416 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 5417 (font_clear_cache): New function.
4c4475a8 5418 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 5419 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
5420
5421 * fontset.c (fontset_find_font): Fix previous change.
5422
73acf815 54232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5424
5425 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
5426 dpyinfo->font_table.
5427 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 5428 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
5429
5430 * font.c (font_at): Handle the case that the arg C is negative.
5431 Handle the unibyte case.
5432 (Ffont_at): Call font_at with the arg C -1.
5433
5434 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
5435 the position here, and call font_at with the arg C -1.
5436 Don't check the range of the existing composition at the point.
aca7a3d2 5437
73acf815 54382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5439
15139d67 5440 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 5441 Change caller.
4c4475a8
GM
5442 (load_font_get_repertory, fontset_find_font): Assume that
5443 font_spec is always a font-spec object.
aca7a3d2
MB
5444 (Fset_fontset_font): Always store a font-spec object in a fontset.
5445
5446 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
5447 instead of get_property_and_range.
5448
73acf815 54492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5450
5451 * xftfont.c (struct xftfont_info): Delete the member ft_face.
5452 (xftfont_open): Don't keep locking face.
5453 (xftfont_close): Don't unlock face.
4c4475a8 5454 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
5455
5456 * fontset.c (fontset_find_font): Don't prefer a font of
5457 supplementary charset.
5458
73acf815 54592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5460
1f45f627
GM
5461 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
5462 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
5463 (OTF_TAG_STR): Terminate by '\0'.
5464 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
5465 listing to the script specified in that property. Fix arg to
5466 OTF_check_features.
5467
73acf815 54682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5469
5470 * w32font.h: New file.
5471
5472 * w32font.c: Include it.
5473 (struct w32font_info): Add owning_frame field. Move to w32font.h.
5474 (w32font_open): Set owning_frame.
5475 (w32font_text_extents): Use owning_frame.
5476 (struct font_callback_data): Add opentype_only field.
5477 (add_font_entity_to_list): Use it to filter fonts.
5478 Don't check against full name.
5479 (w32font_list_internal): New function.
5480 (w32font_list): Use it.
5481 (w32font_match_internal): New function.
5482 (w32font_match): Use it.
5483 (w32font_open_internal): New function.
5484 (w32font_open): Use it.
5485 (w32font_get_cache, w32font_close, w32font_has_char)
5486 (w32font_encode_char, w32font_text_extents, w32font_draw):
5487 Make non-static.
5488
5489 * makefile.w32-in (w32font.o): Depend on w32font.h.
5490
73acf815 54912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5492
5493 * charset.c (Fdefine_charset_internal): Record a supplementary
5494 charset at the tail of Vcharset_order_list.
5495
5496 * font.c (Ffont_shape_text): Fix the return value.
5497
5498 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
5499
5500 * xdisp.c (handle_auto_composed_prop): Fix previous change.
5501
73acf815 55022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5503
5504 * ftfont.c (struct OpenTypeSpec): New struct.
5505 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5506 (ftfont_get_open_type_spec): New function.
5507 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5508
15139d67 5509 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 5510
73acf815 55112008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5512
5513 * w32font.c (add_font_entity_to_list): Compare only the beginning
5514 of full name.
5515
73acf815 55162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5517
15139d67
SM
5518 * xdisp.c (handle_auto_composed_prop): Simplify the code.
5519 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 5520
73acf815 55212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5522
5523 * font.c (font_gstring_produce): Delete it.
5524
15139d67
SM
5525 * composite.h (COMPOSITION_METHOD):
5526 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 5527
73acf815 55282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5529
15139d67 5530 * xfont.c (Qx): Delete.
aca7a3d2
MB
5531 (syms_of_xfont): Don't initialize Qx.
5532
15139d67
SM
5533 * composite.h (enum composition_method):
5534 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 5535
73acf815 55362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5537
5538 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
5539 (choose_face_font): Accept new form of font-spec.
5540
5541 * frame.h (font_driver_list): Declare it unconditionally.
5542 (struct frame): Define members font_driver_list and font_data_list
5543 unconditionally.
5544
5545 * fontset.c: Include "font.h" unconditionally.
15139d67 5546 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
5547 (Fset_fontset_font): Accept a font-spec object.
5548
5549 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
5550 PIXEL_SIZE part a wild card.
5551
5552 * dispextern.h (struct glyph_string): Define members clip and
5553 num_clips unconditionally.
5554 (struct face): Define members font_info and extra unconditionally.
5555
5556 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
5557 ftfont_info only when HAVE_LIBOTF is defined.
5558
73acf815 55592008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5560
5561 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
5562 and end.
5563
73acf815 55642008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5565
5566 * w32font.c (w32font_driver): Add new fields.
5567
73acf815 55682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5569
aca7a3d2
MB
5570 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
5571 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
5572 (LIBES): Add @M17N_FLT_CFLAGS@.
5573
5574 * composite.c (compose_text): Don't treat the new style
5575 composition specially.
5576
5577 * emacs.c (main): Call syms_of_font unconditionally.
5578
5579 * font.h (FONT_ENTITY_NOT_LOADABLE)
5580 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 5581 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 5582 (struct font_driver): New member shape.
1f45f627 5583 (font_registry_charsets): Extern it.
4c4475a8 5584 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
5585 (font_otf_capability, font_drive_otf): Delete their externs.
5586
5587 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
5588 (font_charset_alist, font_registry_charsets): Move from xfont.c
5589 and rename.
aca7a3d2
MB
5590 (font_prop_validate_otf): New function.
5591 (font_property_table): Register it for QCotf.
5592 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 5593 (font_drive_otf): Delete.
1f45f627 5594 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
5595 lispy gstring.
5596 (font_find_for_lface): New arg C.
15139d67 5597 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
5598 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
5599 lispy gstring.
aca7a3d2
MB
5600 (Ffont_shape_text): New function.
5601 (Fopen_font): If the font size is not given, use 12-pixel.
5602 (Ffont_at): New arg STRING.
15139d67
SM
5603 (syms_of_font): Initalize font_charset_alist.
5604 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
5605 conditionally.
5606
5607 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
5608 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
5609 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
5610 Adjust for the change of RFONT-DEF.
15139d67 5611 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
5612
5613 * ftfont.h: New file.
5614
5615 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
5616 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5617 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5618 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
5619 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 5620 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
5621 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
5622 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
5623 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 5624 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
5625 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
5626 (otf_gstring, gstring, m17n_flt_initialized): New variables.
5627
15139d67
SM
5628 * w32term.c (x_draw_composite_glyph_string_foreground):
5629 Adjust for the change of lispy gstring.
aca7a3d2 5630
15139d67 5631 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 5632 lispy gstring. Call a function for auto-composition with the
15139d67
SM
5633 third arg it->window.
5634 (fill_composite_glyph_string): Adjust for the change of lispy string.
5635 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 5636
15139d67 5637 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
5638 font_find_for_lface.
5639
1f45f627
GM
5640 * xfont.c (x_font_charset_alist): Move to font.c and rename.
5641 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
5642 (syms_of_xfont): Don't handle x_font_charset_alist.
5643
5644 * xftfont.c: Include "ftfont.h".
15139d67 5645 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
5646 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5647 (xftfont_close) [HAVE_LIBOTF]: Close otf.
5648 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
5649 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
5650 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 5651
15139d67 5652 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
5653 the change of lispy gstring.
5654
73acf815 56552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5656
5657 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
5658
73acf815 56592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5660
5661 * w32font.c (w32font_draw): Fill background manually.
5662
73acf815 56632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5664
5665 * font.c (Qfontp): Remove unused symbol.
5666 (QCantialias): New symbol.
5667 (syms_of_font): Define it.
5668 (font_property_table): Set a validator for QCantialias.
5669
15139d67
SM
5670 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
5671 Define if not already.
aca7a3d2
MB
5672 (QCfamily): Share with xfaces.c.
5673 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 5674 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
5675 (w32_antialias_type, lispy_antialias_type): New functions.
5676 (w32_enumfont_pattern_entity): New arg requested_font.
5677 Set antialias parameter if non-default was requested.
5678 (fill_in_logfont): Fill in lfQuality if :antialias specified.
5679
73acf815 56802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5681
5682 * lread.c (read1): Undo the previous change.
5683
73acf815 56842008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
5685
5686 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 5687 USE_FONT_BACKEND is defined.
aca7a3d2 5688
73acf815 56892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5690
5691 * font.h (struct font_bitmap): New member bits_per_pixel.
5692 (struct font_driver): New members start_for_frame and end_for_frame.
5693 (struct font_data_list): New struct.
5694 (font_put_frame_data, font_get_frame_data): Extern them.
5695
5696 * frame.h (struct frame): New member font_data_list.
5697
5698 * font.c (font_update_drivers): Call driver->start_for_frame and
5699 driver->end_for_frame at proper timings.
5700 (font_put_frame_data, font_get_frame_data): New functions.
5701 (Ffont_spec): Add usage in the docstring.
5702
5703 * frame.c (make_frame): Initialize f->font_data_list to NULL.
5704 (Fdelete_frame): Call font_update_drivers.
5705
5706 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 5707 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
5708 (xftfont_get_xft_draw): New function.
5709 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
5710 (xftfont_end_for_frame): New function.
5711 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
5712
15139d67 5713 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 5714 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
5715 (struct ftxfont_frame_data): New struct.
5716 (ftxfont_draw_bitmap): New arg gc_fore and flush.
5717 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 5718 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
5719 (ftxfont_end_for_frame): New function.
5720 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
5721
5722 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
5723
73acf815 57242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5725
5726 * xselect.c (Vselection_coding_system)
5727 (Vnext_selection_coding_system): Delete them.
5728 (syms_of_xselect): Don't declare selection-coding-system and
5729 next-selection-coding-system. They are declared in select.el.
5730
73acf815 57312008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5732
5733 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
5734
5735 * w32fns.c: Include imm.h.
5736 (get_composition_string_fn, get_ime_context_fn): New optional
5737 system functions.
5738 (globals_of_w32fns): Load them from imm32.dll.
5739 (ignore_ime_char): New flag.
5740 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
5741 WM_IME_ENDCOMPOSITION messages.
5742
5743 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
5744 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
5745
73acf815 57462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5747
5748 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
5749 (READCHAR_REPORT_MULTIBYTE): New macro.
5750 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
5751 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
5752 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
5753 source.
5754
73acf815 57552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5756
5757 * xfaces.c (face_for_overlay_string): Call lookup_face with
5758 correct arguments (fix of synching with the trunk).
5759
73acf815 57602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5761
4c4475a8
GM
5762 * font.c (font_prop_validate_symbol, font_prop_validate_style)
5763 (font_prop_validate_non_neg, font_prop_validate_spacing):
5764 Delete argument prop_index.
15139d67
SM
5765 (font_property_table): Change arguments to validater. Change Callers.
5766 (font_lispy_object): Delete.
aca7a3d2
MB
5767 (font_at): Use font_find_object instead fo font_lispy_object.
5768
73acf815 57692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5770
5771 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
5772 and file names.
5773
73acf815 57742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5775
5776 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
5777 (font_matches_spec): Remove debug output.
5778 (add_font_entity_to_list): Avoid using substituted fonts.
5779
73acf815 57802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5781
5782 * doc.c (Fsnarf_documentation):
5783 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
5784
73acf815 57852008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5786
290afd83 5787 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
5788 HAVE_WINDOW_SYSTEM is defined.
5789
73acf815 57902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
5791
5792 Fix up multi-tty merge.
5793
5794 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
5795 and indentation.
5796
5797 * xfaces.c (free_realized_face, clear_face_gcs):
5798 Include font_done_for_face in the input_blocked section, just in case.
5799
5800 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5801 (get_char_face_and_encoding): Undo last change and remove the *other*
5802 duplicate definition (i.e. keep the one that's better scoped and that
5803 includes code for the font-backend).
5804
5805 * terminal.c (create_terminal): Default keyboard_coding to
5806 `no-conversion' and terminal_coding to `undecided'.
5807
5808 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5809
5810 * fontset.c (free_realized_fontsets): Check that the table entry does
5811 contain a fontset before trying to compare it to `base'.
5812
5813 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5814 syms_of_charset, and syms_of_coding earlier because init_window_once
5815 now needs Vcoding_system_hash_table to be setup.
5816
5817 * coding.h (default_buffer_file_coding): Remove.
5818
5819 * coding.c (default_buffer_file_coding): Remove.
5820 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5821 than ->symbol, and use the terminal-local coding system.
5822 (syms_of_coding): Don't setup the coding-systems that are not
5823 terminal-local.
5824 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5825
5826 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5827 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5828
5829 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5830 in chartab.c and were re-added here by mistake.
5831 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5832
5833 * doc.c (Fsnarf_documentation):
5834 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5835 src to etc.
5836
5837 * ChangeLog.10: Add mistakenly removed entry.
5838
73acf815 58392008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
5840
5841 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5842
73acf815 58432008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5844
5845 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5846 Add extra args to FACE_FOR_CHAR.
5847
73acf815 58482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5849
5850 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5851 in sequence.
5852
4c4475a8
GM
5853 * chartab.c (map_sub_char_table, map_char_table): If the range
5854 contains just one character, call the function with that character
5855 even if the depth is not 3.
aca7a3d2 5856
73acf815 58572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5858
5859 * w32font.c (w32font_text_extents): Calculate metrics for the
5860 whole string.
5861
73acf815 58622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5863
5864 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5865
73acf815 58662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5867
5868 * w32term.c (x_set_glyph_string_clipping): Use
5869 get_glyph_string_clip_rects.
4c4475a8
GM
5870 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5871 Adjust for the change of struct glyph_string.
aca7a3d2
MB
5872
5873 * w32font.c (w32font_draw): Do clipping here.
5874
73acf815 58752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5876
1f45f627 5877 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
5878 glyph_string.
5879
5880 * xterm.c (x_set_glyph_string_clipping): Use
5881 get_glyph_string_clip_rects.
4c4475a8
GM
5882 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5883 Adjust for the change of struct glyph_string.
aca7a3d2
MB
5884
5885 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
5886 the resulting clip(s}.
1f45f627 5887 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
5888 row->clip temporarily.
5889 (expose_window): Redraw rows overlapping the exposed area.
5890
5891 * dispextern.h (struct glyph_row): New member clip.
5892 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
5893 clip_height, new member clip, and num_clips.
5894
73acf815 58952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5896
5897 * data.c (Fchar_or_string_p): Fix docstring.
5898
73acf815 58992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5900
5901 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
5902 create a temporal XftDraw object.
5903
73acf815 59042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5905
5906 * font.c (Ffontp): Fix docstring.
5907
5908 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
5909 strong evidence of ISO-2022.
5910
73acf815 59112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5912
5913 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
5914 SYNTAX_ENTRY_FOLLOW_PARENT.
5915
73acf815 59162008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
5917
5918 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
5919 its type.
5920 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
5921 Update to the new type of weak_hash_tables and next_weak.
5922
5923 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
5924 a plain C pointer to Lisp_Hash_Table.
5925
5926 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
5927 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
5928 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
5929 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
5930 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
5931 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
5932 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
5933 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
5934 (GC_EQ): Remove since they've been identical to their non-GC_
5935 alter-egos ever since the markbit was eradicated.
5936
290afd83
JB
5937 * alloc.c:
5938 * buffer.c:
5939 * buffer.h:
5940 * data.c:
5941 * fileio.c:
5942 * filelock.c:
5943 * fns.c:
5944 * frame.h:
5945 * lisp.h:
5946 * macterm.c:
5947 * print.c:
5948 * process.c:
5949 * w32fns.c:
5950 * w32menu.c:
5951 * w32term.c:
5952 * xfns.c:
5953 * xmenu.c:
5954 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 5955
73acf815 59562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5957
5958 * chartab.c (map_sub_char_table): Make it work for the top-level
5959 char-table. Fix handling of parent char-table.
c5ad7a3d 5960 (map_char_table): Adjust for the above change.
aca7a3d2 5961
73acf815 59622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5963
5964 * w32font.c (Qgdi): Rename from Qw32.
5965
73acf815 59662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5967
5968 * w32bdf.c (get_quoted_string): Make function static.
5969
73acf815 59702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5971
5972 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
5973 bigger ascent and descent than those of the font, use them as
5974 font's ascent and descent.
5975
73acf815 59762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5977
5978 * Makefile.in (${lispsource}international/charprop.el): Move this
5979 target within "#ifdef HAVE_UNIDATA" and "#endif".
5980
73acf815 59812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5982
5983 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
5984 (shortlisp): Add ../lisp/language/tai-viet.el.
5985
1f45f627 59862008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
5987
5988 * Makefile.in (${lispsource}international/charprop.el): Depend on
5989 temacs${EXEEXT}.
5990
73acf815 59912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5992
5993 * w32font.c (w32font_close): Delete the GDI font object.
5994
6f69e89b 5995 * w32menu.c: Include character.h.
aca7a3d2
MB
5996
5997 * w32proc.c: Likewise.
5998
5999 * w32select.c: Likewise.
6000
6f69e89b 6001 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 6002
73acf815 60032008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6004
6005 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6006
6007 * w32menu.c (syms_of_w32menu): Likewise.
6008
6009 * w32proc.c (syms_of_ntproc): Likewise.
6010
6011 * w32select.c (syms_of_w32select): Likewise.
6012
6013 * w32term.c (syms_of_w32term): Likewise.
6014
73acf815 60152008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6016
6017 * w32font.c (w32font_draw): Delete brush after using it.
6018
73acf815 60192008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6020
6021 * w32font.c (w32font_open): Don't set font_idx.
6022 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6023 to font settings.
6024 (w32font_draw): Fill background explicitly.
6025
73acf815 60262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6027
6028 * w32term.c (w32_initialize): Don't call w32font_initialize.
6029
6030 * w32font.c (w32font_info): Remove subranges.
6031 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6032 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6033 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6034 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6035 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6036 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6037 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6038 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6039 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6040 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6041 New symbols.
6042 (font_callback_data): New struct.
6043 (w32font_list, w32font_match): Use it.
6044 (w32font_open): Don't populate subranges.
6045 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6046 (w32font_encode_char): Always return unicode code-point as-is.
6047 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
6048 GetGlyphOutline. Never look up by glyph index. Avoid looping
6049 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 6050 glyph index version.
1f204af3 6051 (set_fonts_frame): Remove.
aca7a3d2 6052 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
6053 set frame parameter. Use backward compatible fake foundries.
6054 Save generic family in extra slot under QCfamily. Make width slot
6055 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
6056 binary subranges.
6057 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 6058 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
6059 unwanted fonts.
6060 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
6061 (w32_registry): Default to iso10646_1.
6062 (fill_in_logfont): Use dpi from extra slot. Don't bother with
6063 string font registries. Don't fill in font name if it is a generic
6064 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
6065 extra info to fill pitch, family and charset fields.
6066 (list_all_matching_fonts): Use font_callback_data struct.
6067 (unicode_range_for_char): Remove.
6068 (font_supported_scripts): New function.
6069 (w32font_initialize): Remove.
6070 (syms_of_w32font): Update which symbols are defined.
6071
73acf815 60722008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6073
6074 * font.c (font_pixel_size): Reverse assq_no_quit args.
6075
6076 * w32term.h (FONT_WIDTH): Report max width, not average.
6077 (FONT_MAX_WIDTH): Remove.
6078 (FONT_AVG_WIDTH): New macro.
6079
6080 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6081 redefinition of FONT_WIDTH.
6082
6083 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6084 (w32_cache_char_metrics): Use FONT_WIDTH.
6085
6086 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6087
73acf815 60882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6089
6090 * w32font.c (w32font_open): Make lfHeight negative.
6091
6092 * w32fns.c (x_default_font_parameter): Use new style font name.
6093 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6094
73acf815 60952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6096
6097 * w32font.c (QCsubranges): New symbol.
6098 (w32font_open, w32font_has_char): Get subranges from subproperty
6099 of extra.
6100 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6101 (syms_of_w32font): Define :subranges symbol.
6102
6103 * font.c (font_put_extra): Expose externally.
6104
1f45f627 6105 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
6106
6107 * font.c (Ffont_get): Use font driver to determine otf capability.
6108 (adjust_anchor): Check if driver defines anchor_point before using.
6109
6110 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6111 (w32font_draw): Use options.
6112 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6113 Fix detection of truetype fonts.
6114 (registry_to_w32_charset): Handle charsets other than iso8859-1
6115 expressed as lisp symbols.
6116 (w32_registry): Express charset as lisp symbol.
6117 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 6118 Don't set width here. Set quality to default.
aca7a3d2
MB
6119
6120 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6121 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6122
6123 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6124 Remove redundant loop and allocation.
6125
6126 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 6127 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
6128 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6129
6130 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6131 STORE_XCHARB a valid l-value.
6132
6133 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6134 calculations for non-Truetype fonts.
6135 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
6136 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6137 Remove redundant code.
aca7a3d2
MB
6138 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6139
6140 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6141 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6142
6143 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6144 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6145
6146 * w32font.c: New file for w32 font backend.
6147
73acf815 61482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6149
6150 * term.c: Don't include "buffer.h" twice.
6151
73acf815 61522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6153
6154 * character.c (Funibyte_string): New function.
6155 (syms_of_character): Defsubr it.
6156
73acf815 61572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6158
6159 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
6160 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6161 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6162 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6163 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
6164 (x_free_frame_resources): Sync with xterm.c.
6165
73acf815 61662008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6167
6168 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6169 char-table size.
6170
73acf815 61712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6172
c3f9fba8 6173 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 6174
73acf815 61752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6176
6177 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6178 font_otf_gpos, add font_drive_otf.
6179
6180 * fontset.c (fontset_find_font): Pay attention to font size
6181 specified for a font.
6182 (reorder_font_vector): Check contents of font_def.
6183
6184 * font.c (struct otf_list): Delete it.
6f69e89b 6185 (otf_list): Make it a lisp variable.
aca7a3d2 6186 (otf_open): Use lispy otf_list.
1f45f627 6187 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 6188 (check_otf_features): New function.
c3f9fba8
JB
6189 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6190 New functions.
aca7a3d2
MB
6191 (font_drive_otf): New function merging font_otf_gsub and
6192 font_otf_gpos.
6193 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 6194 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
6195 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6196 Ffont_otf_gpos.
6197 (syms_of_font): Staticpro otf_list. Delete defsubr of
6198 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
6199
1f45f627 6200 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6201 font_open_for_lface.
6202
6203 * font.h (font_open_for_lface): Adjust prototype.
6204 (struct font_driver): Delete members otf_gsub and otf_gpos, add
6205 member otf_drive.
6206 (font_otf_gsub, font_otf_gpos): Delete externs.
6207 (font_drive_otf): Extern it.
6208
73acf815 62092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6210
6211 * font.c (font_at): If the window W is not on a window system,
6212 return Qnil.
6213
4c4475a8
GM
6214 * coding.c (produce_chars, encode_coding): Don't call
6215 insert_from_gap if no characters to produce.
aca7a3d2 6216
73acf815 62172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6218
6219 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6220 Fclear_face_cache.
6221
6222 * xfaces.c (face_for_font): Check also face->font==font->font.font.
6223
73acf815 62242008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6225
6226 * emacs.c (main): Change default value of `enable_font_backend' to 1.
6227 Parse "--disable-font-backend" option.
6228 (standard_args): Add "--disable-font-backend" option.
6229
73acf815 62302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6231
6232 * fontset.c (fontset_find_font): New function.
6233 (fontset_font): Use fontset_find_font.
6234 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6235 Register the specified font for all Latin characters.
6236 (new_fontset_from_font): Register the specified font for all Latin
6237 characters.
6238 (dump_fontset): For a realized fontset, include the base fontset
6239 name in the returned vector.
6240
73acf815 62412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6242
6243 * character.h (CHAR_STRING): Cast C to unsigned on calling
6244 char_string.
6245
6246 * character.c (char_string): Type of arg C changed to unsigned.
6247 Signal an error if C is an invalid character code.
6248
4c4475a8
GM
6249 * editfns.c (general_insert_function, Fchar_to_string):
6250 Use CHARACTERP, not INTEGERP.
aca7a3d2 6251
73acf815 62522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6253
6254 * character.h (MIN_MULTIBYTE_LEADING_CODE)
6255 (MAX_MULTIBYTE_LEADING_CODE): New macros.
6256
6257 * regex.c (analyse_first): Fix for multibyte characters in "case
6258 charset:" and "case categoryspec:".
6259
73acf815 62602008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6261
6262 * Makefile.in (LIBES): Move standard libraries to the end.
6263
73acf815 62642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6265
6266 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6267 nonzero, don't shrink the buffer nextb.
6268
6269 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6270
6271 * coding.c (coding_alloc_by_making_gap): New arg offset.
6272 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6273 offset.
6274 (decode_coding_iso_2022): Update coding->safe_charsets.
6275 (decode_coding_gap): Temporarily set
6276 current_buffer->text->inhibit_shrinking to 1.
6277
73acf815 62782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6279
6280 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6281 indexing into elements of s->cmp and s->char2b.
6282
73acf815 62832008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
6284
6285 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6286
73acf815 62872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6288
6289 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6290 target_multibyte instead of multibyte.
6291 (re_match_2_internal): Call bcmp_translate with target_multibyte.
6292 (bcmp_translate): Change the argument name from multibyte to
6293 target_multibyte.
6294
73acf815 62952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6296
6297 These changes are to compile a regexp into a pattern that can be
6298 used both for multibyte and unibyte targets.
6299
6300 * Makefile.in (search.o): Depend on charset.h.
6301
6302 * character.c (multibyte_char_to_unibyte_safe): New function.
6303
6304 * search.c: Include "charset.h".
6305 (compile_pattern_1): Delete argument multibyte. Don't set
6306 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
6307 (compile_pattern): Don't compare cp->buf.target_multibyte.
6308 Compare cp->buf.charset_unibyte.
6309 (compile_pattern): Set cp->buf.target_multibyte.
6310
6311 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6312
6313 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6314
6315 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 6316 multibyte. Change callers.
aca7a3d2 6317 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
6318 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
6319 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
6320 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
6321 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
6322 (regex_compile): Make the compiled pattern usable both for
6323 multibyte and unibyte targets.
6324 (analyse_first): Make the fastmap usable both for multibyte and
6325 unibyte targets.
1f45f627 6326 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
6327 (re_match_2_internal): Pay attention to the case that the
6328 multibyteness of bufp and target may be different.
6329
73acf815 63302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6331
6332 * xdisp.c (x_produce_glyphs): When a font is not found, make the
6333 empty box occupy at least one column width.
6334
73acf815 63352008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6336
6337 * Makefile.in: Remove redundant HAVE_XFT clause.
6338
73acf815 63392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6340
6341 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
6342
73acf815 63432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6344
6345 * fontset.c (Finternal_char_font): Fix for the case of POSITION
6346 being nil.
6347
73acf815 63482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6349
6350 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
6351
73acf815 63522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6353
6354 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
6355
73acf815 63562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6357
6358 * search.c (simple_search): Fix previous change.
6359
73acf815 63602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6361
6362 * xftfont.c (ftfont_font_format): Extern declaration.
6363
6364 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
6365
6366 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
6367 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
6368
6369 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
6370 (ftfont_font_format): Fix previous change.
6371
6372 * font.h (Ffont_xlfd_name): EXFUN it.
6373
6374 * font.c (font_parse_xlfd): Fix the array size of `f'.
6375 (register_font_driver): Use EQ to compare driver->type.
6376
6377 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
6378 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
6379 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
6380
73acf815 63812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6382
4c4475a8
GM
6383 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
6384 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 6385
73acf815 63862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6387
6388 * xfont.c (xfont_open): Set font->format.
6389
6390 * xftfont.c (xftfont_open): Set font->format.
6391
6392 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
6393 (ftfont_list): Include FC_FONTFORMAT in FcObject.
6394 (ftfont_open): Set font->format.
6395 (ftfont_font_format): New function.
6396
6397 * font.h (struct font): New memeber format.
6398
6399 * font.c (Qopentype): New variable.
6400 (syms_of_font): Defsym it.
6401 (Fquery_font): Change the format of the last element of the return
6402 value.
6403
73acf815 64042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6405
6406 * xfns.c (xic_create_xfontset): Try the default fontset name as a
6407 last resort.
6408
73acf815 64092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6410
6411 * coding.c (detect_coding_charset): Fix detection of multi-byte
6412 charset.
6413
73acf815 64142008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
6415
6416 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
6417
73acf815 64182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6419
6420 * xdisp.c (get_next_display_element): Set it->face_id for the
6421 first component of a composition.
1f45f627 6422 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 6423
73acf815 64242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6425
6426 * fontset.c (Qlatin): New variable.
6427 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 6428 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 6429
73acf815 64302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6431
6432 * font.c (font_unparse_fcname): Pay attention to the case that
6433 some of font property is a null string.
6434
73acf815 64352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6436
6437 * term.c: Include "composite.h".
6438 (encode_terminal_code): Output all components of composition.
6439 Check the size of encode_terminal_src.
424c157f 6440 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
6441 (append_composite_glyph, produce_composite_glyph): New functions.
6442
6443 * xdisp.c (x_produce_glyphs): In handling composition, if a font
6444 is not found, get font_info from the current ascii face.
6445
73acf815 64462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6447
6448 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
6449 buffer-file-name to Qnil before calling insert_from_buffer.
6450
6451 * font.c (font_unparse_fcname): Pay attention to the case that
6452 foundry is a null string.
6453
73acf815 64542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6455
6456 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
6457
6458 * font.c (Qunicode_sip): New variable.
6459 (syms_of_font): Declare it as a Lisp symbol.
6460
6461 * font.h (Qunicode_sip): Extern it.
6462
73acf815 64632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6464
1f45f627 6465 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
6466
6467 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 6468 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
6469 the first elememnt of allocated memory.
6470
1f45f627 6471 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
6472
6473 * xdisp.c (handle_composition_prop): Set it->c to the first
6474 non-TAB component.
1f45f627
GM
6475 (fill_composite_glyph_string): Change argument.
6476 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
6477 (x_produce_glyphs): Fix handling of left/right padding.
6478
73acf815 64792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6480
6481 * coding.c (detect_coding_system): Fix for handling off
6482 inhibit_iso_escape_detection. Fix for the case that no coding
6483 system is defined for a specific coding category.
6484
73acf815 64852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6486
1f45f627 6487 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
6488
6489 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
6490 opening a font.
6491
6492 * fileio.c (Finsert_file_contents): On recovering a file, assume
6493 Unix-like eol.
6494 (choose_write_coding_system): On auto-saving a file, force
6495 Unix-like eol.
6496
6497 * coding.c (setup_coding_system): Fix setting of
6498 coding->common_flags based on eol_type.
6499 (coding_inherit_eol_type): If PARENT is not nil, be sure to
6500 inherit from it.
6501
73acf815 65022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6503
1f45f627 6504 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 6505
73acf815 65062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6507
1f45f627 6508 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
6509 (ftfont_list): Don't check :name property.
6510 (ftfont_match): New function.
6511 (ftfont_pattern_entity): If the pattern doesn't contain
6512 FC_SPACING, don't assuce FC_MONO.
6513
6514 * font.h (struct font_driver): New member `match'.
1f45f627 6515 (font_update_drivers): Adjust prototype.
aca7a3d2 6516
4c4475a8
GM
6517 * font.c (font_parse_fcname, font_parse_name): Don't change :name
6518 property of FONT.
aca7a3d2
MB
6519 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6520 them unconditionally.
6521 (font_matching_entity): New function.
6522 (font_open_by_name): Try font_matching_entity if exact match is
6523 not found.
6524 (font_update_drivers): Delete the arg FONT. Return a list of
6525 actually used backends. Don't free faces, font caches here.
6526 Don't store data in frame parameters. Don't call x_set_font.
6527 (Ffont_spec): Store :name property as is.
6528 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
6529 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
6530 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
6531 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
6532 Call font->driver->otf_gsub instead of font_otf_gsub.
6533
6534 * frame.c (x_set_font_backend): Do more works that were done in
6535 font_update_drivers before.
6536
6537 * xfont.c (xfont_match): New function.
6538 (xfont_driver): Set xfont_driver.match to xfont_match.
6539 (xfont_draw): Set font in GC if necessary.
6540
6541 * ftxfont.c (ftxfont_match): New function.
6542 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
6543
6544 * xftfont.c (xftfont_match): New function.
6545 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
6546
73acf815 65472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6548
6549 * font.h (struct font): New member scalable.
6550 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 6551 (font_otf_gsub): Adjust prototype.
aca7a3d2 6552
1f45f627
GM
6553 * font.c (font_otf_capability): Fix handling of the default langsys.
6554 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
6555 Check the contents of SPEC.
6556 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
6557 (check_gstring): New function.
6558 (REPLACEMENT_CHARACTER): New macro.
6559 (font_otf_gsub): New arg alternate_subst. Be sure to set all
6560 glyph codes of GSTRING.
6561 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
6562 (font_prepare_composition): Set cmp->glyph_len.
6563 (font_open_entity): Set font->scalable.
6564 (Ffont_get): Handle :otf property.
6565 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
6566 functions.
6567 (Fquery_font): Use font->font.full_name.
6568 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
6569 Sfont_otf_alternates.
6570
6571 * ftfont.c (ftfont_open): Set font->font.full_name and
6572 font->font.name properly. Fix calculation of font->font.height
6573 and font->min_width.
6574
6575 * ftxfont.c (ftxfont_create_gcs): New function.
6576 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
6577 (ftxfont_draw_backgrond): Fix filling region.
6578 (ftxfont_default_fid): New function.
6579 (ftxfont_open): Set xfotn->fid to the return value of
6580 ftxfont_default_fid.
6581 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
6582 (ftxfont_done_face): Free only GCs that are created by
6583 ftxfont_create_gcs.
6584 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
6585
6586 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
6587 Clip to src->width, etc (not src->clip_XXX).
6588
6589 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
6590 FontBackend frame parameter.
6591
73acf815 65922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6593
6594 * font.h (struct font_driver_list): New member `on'.
6595 (Fclear_font_cache): EXFUN it.
6596 (font_update_drivers): Extern it.
6597
6598 * font.c (font_unparse_fcname): Fix typo (swidth->width).
6599 (font_list_entities): Check driver_list->on.
6600 (register_font_driver): Initalize `on' member to 0.
6601 (font_update_drivers): New function.
6602 (Fclear_font_cache): Check driver_list->on.
6603
6604 * frame.h (Qfont_backend): Extern it.
6605 (x_set_font_backend): Extern it.
6606
6607 * frame.c (Qfont_backend): New variable.
6608 (frame_parms): New element for font-backend.
6609 (x_set_font_backend): New function.
6610
6611 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
6612 FontBackend frame parameter.
6613 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
6614 x_set_font_backend.
6615
6616 * xfont.c (xfont_list): Don't try listing by :name property if the
6617 name is not for XLFD.
6618
73acf815 66192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6620
6621 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
6622 (LGLYPH_SET_TO): New macros.
6623 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
6624 element of G is vector or not.
6625 (font_at): Extern it.
6626
6627 * font.c: Include window.h.
6628 (font_lispy_object): New function.
6629 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
6630 end of valid glyph.
6631 (font_close_object): Fix getting (struct font *).
6632 (font_at): New function.
6633 (Ffont_get): If FONT is a font-object, get entity from it.
6634 (Ffont_make_gstring): Initialize elements of glyphs with nil.
6635 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
6636 range check.
6637 (Ffont_at): New function.
6638 (syms_of_font): Defsubr Sfont_at.
6639
6640 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 6641 before the entry for Qcomposition.
1f45f627 6642 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
6643 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
6644 the font in gstring.
6645 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
6646 LGLYPH_FORM (g) to detect the end of valid glyph.
6647 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
6648 we are composing with gstring.
6649
6650 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
6651 Check if adjustment is vector or not.
6652
6653 * Makefile.in (font.o): Make it depends on window.h.
6654
73acf815 66552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6656
6657 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
6658 adjustment is vector or not.
6659
73acf815 66602008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6661
6662 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
6663
73acf815 66642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6665
6666 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
6667 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
6668 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
6669
1f45f627 6670 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 6671 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
6672 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
6673 LGLYPH format.
aca7a3d2 6674
1f45f627 6675 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
6676 the change of LGLYPH format.
6677
73acf815 66782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6679
6680 * ftfont.c (ftfont_list): Fix typo.
1f45f627 6681 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 6682
880820fe 66832008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
6684
6685 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
6686
6687 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
6688 xftface_info is non-NULL.
6689
880820fe 66902008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 6691
1f45f627 6692 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 6693
73acf815 66942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6695
6696 * ftfont.c (ftfont_list): Pay attention to the case that
6697 FC_CAPABILITY is not defined.
6698
73acf815 66992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6700
6701 * xftfont.c (xftfont_open): Set charset related members to -1.
6702
1f45f627
GM
6703 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
6704 QCname.
aca7a3d2
MB
6705 (ftfont_open): Set charset related members to -1.
6706
6707 * fontset.c (Votf_script_alist): New variable.
6708 (syms_of_fontset): Initialize it.
6709 (fontset_font): Delete unused variable.
6710
6711 * fontset.h (Votf_script_alist): Extern it.
6712
1f45f627 6713 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
6714
6715 * font.h (font_close_object, font_merge_old_spec): Extern them.
6716
73acf815 67172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6718
6719 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
6720 (syms_of_font): Initialize them.
6721 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
6722 (font_prop_validate_type): Delete.
6723 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
6724 Change caller.
6725 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
6726 (font_prop_validate_extra): Delete.
aca7a3d2
MB
6727 (font_prop_validate_spacing): New function.
6728 (font_property_table): Add elements for all known properties.
1f45f627
GM
6729 (get_font_prop_index): Rename from check_font_prop_name. New
6730 argument FROM. Change caller.
aca7a3d2 6731 (font_prop_validate): Validate all known properties.
1f45f627 6732 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
6733 (font_expand_wildcards): Make it static. Fix the way of shrinking
6734 the possible range.
1f45f627 6735 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 6736 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 6737 Change caller.
aca7a3d2 6738 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
6739 (font_parse_fcname): Delete argument merge. Fix parsing of point
6740 size. Don't validate properties values here. Change caller.
6741 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
6742 (font_open_by_name): Delete unused variable.
6743 (Ffont_spec): Likewise. Validate property values.
6744 (Ffont_match_p): New function.
6745
6746 * font.h (QCscalable): Extern it.
1f45f627 6747 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 6748
1f45f627 6749 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 6750
1f45f627 6751 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
6752 (xfont_list_pattern): New function.
6753 (xfont_list): Use xfont_list_pattern.
6754
73acf815 67552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6756
6757 * font.h (Flist_fonts): EXFUN it.
6758
73acf815 67592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6760
6761 * w32term.c (w32_initialize): Add back smoothing_type and
6762 smoothing_enabled definitions.
6763
73acf815 67642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6765
6766 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
6767 s->face->font on determining underline position.
6768
73acf815 67692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6770
6771 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
6772 (font_has_char): Accept font-object too.
6773 (font_find_for_lface): Try at first with a size specified in face.
6774
73acf815 67752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6776
6777 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
6778 font_open_by_name.
6779
73acf815 67802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6781
6782 * font.h (QCspacing, QCdpi): Extern them.
6783 (enum font_spacing): New enum.
6784 (FONT_PIXEL_SIZE_QUANTUM): New macro.
6785
6786 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
6787 (QCspacing, QCdpi): New variables.
6788 (syms_of_font): Initialize them.
6789 (font_pixel_size): New function.
6790 (font_put_extra): New function.
6791 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
6792 in FONT_EXTRA.
e9184ccb
JB
6793 (font_parse_fcname): Handle enumenrated values (e.g. bold).
6794 Fix handling font size. Add QCname property that contains only
aca7a3d2 6795 unknown properties.
1f45f627 6796 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 6797 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
6798 (font_sort_entites, font_list_entities, font_find_for_lface)
6799 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 6800 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
6801
6802 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6803 include weight in listing pattern, instead check weight of each
6804 listed font. Don't include scalable in pattern. Pay attention to
6805 FONT_PIXEL_SIZE_QUANTUM.
6806
73acf815 68072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6808
aca7a3d2 6809 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 6810 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
6811 (font_list_entities): Handle float size correctly.
6812 (font_open_by_name): Prefer `normal' property values if the name
6813 doesn't specify them.
6814
6815 * fontset.c (Finternal_char_font): Use font_get_name, not
6816 Ffont_xlfd_name.
6817
6818 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6819 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6820 pattern. Don't force scalable.
6821
6822 * xftfont.c (xftfont_open): For generating a name, start from
6823 96-byte buffer.
6824
880820fe 68252008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
6826
6827 * frame.h (x_new_fontset2): Fix prototype.
6828
73acf815 68292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6830
1f45f627 6831 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
6832 (font_match_p, font_get_spec, font_parse_fcname)
6833 (font_unparse_fcname): Extern them.
1f45f627 6834 (font_get_name): Adjust prototype.
aca7a3d2
MB
6835
6836 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6837 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6838 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6839 unnecessary checks for weight, slant, and swidth.
6840 (font_parse_fcname): New function.
6841 (font_unparse_fcname): New function.
6842 (font_parse_name): New function.
6843 (font_match_p): New function.
1f45f627 6844 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
6845 (font_get_spec): New function.
6846 (Qunspecified, Qignore_defface): Don't extern them.
6847 (font_find_for_lface): Assume that LFACE is fully specified.
6848 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6849 object, use it for FACE.
6850 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6851 driver->parse_name.
6852 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6853
1f45f627
GM
6854 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6855 prototype.
aca7a3d2 6856
1f45f627
GM
6857 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6858 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
6859 make_fontset.
6860
1f45f627 6861 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 6862
1f45f627 6863 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
6864 of x_new_fontset2.
6865
6866 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6867 (Qsans__serif): New variables.
6868 (ftfont_generic_family_list): New variable.
6869 (syms_of_ftfont): Initialize the above variables.
1f45f627 6870 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
6871 (ftfont_list_generic_family): New function.
6872 (ftfont_parse_name): Delete this function.
1f45f627 6873 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
6874 (ftfont_list_family): Fix args to FcObjectSetBuild.
6875
6876 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
6877 object in attrs[LFACE_FONT_INDEX].
6878 (set_lface_from_font_name): Cancel all changes for font-backend.
6879 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
6880 function.
6881 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
6882 font object in QCfont attribute.
6883 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
6884 (realize_default_face) [USE_FONT_BACKEND]: Call
6885 set_lface_from_font_and_fontset.
6886
6887 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
6888 "fixed", and signal error here if no suitable font was found.
6889
6890 * xfont.c (xfont_parse_name): Delete this function.
6891
6892 * xftfont.c (xftfont_open): Change coding style of error
6893 handling. Generate fontconfig's fontname pattern.
6894
6895 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
6896 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
6897
6898 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
6899 Both args FONTSET and FONT_OBJECT must be existing ones.
6900
73acf815 69012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6902
6903 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
6904
73acf815 69052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6906
6907 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
6908
6909 * font.h (struct font): Fix typo.
6910
6911 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
6912 XLFD_XXX_INDEX.
6913 (enum xlfd_field_mask): New enum.
1f45f627 6914 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
6915 are followed by non-digits, return a symbol.
6916 (font_expand_wildcards): New function.
6917 (font_parse_xlfd): Fix wildcard handling.
6918 (Ffont_spec): If :name is specified, reflect the info in the other
6919 properties.
6920
6921 * ftfont.c (ftfont_pattern_entity): Fix typo.
6922 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
6923 locale.
6924
73acf815 69252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6926
6927 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
6928
1f45f627 6929 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
6930 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
6931 registry doesn't specify encoding part.
6932 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
6933 (font_open_by_name): At first try parsing the name.
6934 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
6935 as Lisp symbols.
6936
6937 * fontset.c (reorder_font_vector): Pay attention to the case that
6938 the 3rd element of font_def is nil.
6939 (fontset_font): For the default fontset, append one more fontset
6940 elements for a script-based font specification. Don't add script
6941 attribute on finding a font.
6942 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
6943 font name.
6944 (fontset_ascii_font): If a font can't be opened, return nil.
6945
1f45f627 6946 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
6947 (ftfont_pattern_entity): New function.
6948 (ftfont_get_cache): Assume that freetype_font_cache is already
6949 initialized.
6950 (ftfont_list): Handle the case that a file is specified in font
6951 name. Use ftfont_pattern_entity to generate entities.
6952 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
6953 (syms_of_ftfont): Initialize freetype_font_cache.
6954
6955 * xftfont.c (xftfont_open): Make the font name fontconfig's
6956 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
6957 (xftfont_close): Free font->font.name if not NULL.
6958
6959 * xfont.c (xfont_list): If script is specified for a font, return
6960 null_vector.
6961 (xfont_list_family): Declare argument type.
6962
6963 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
6964 name, set LFACE_FONT (lface) to nil.
6965
6966 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
6967 return Qnil.
6968
73acf815 69692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6970
1f45f627 6971 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
6972 (standard_args): Add "-enable-font-backend".
6973
73acf815 69742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6975
6976 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
6977 (struct xftdraw_list, xftdraw_list): Delete them.
6978 (register_xftdraw, check_xftdraw): Delete them.
6979 (xftfont_prepare_face): Don't call register_xftdraw.
6980 (xftfont_done_face): Don't call check_xftdraw.
6981 (xftfont_draw): Get backroudn color only when with_background is
6982 nonzero.
6983
6984 * xfont.c (xfont_encode_char): Fix calculation of char2b.
6985
73acf815 69862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6987
6988 These changes are for the new font handling codes.
6989
6990 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6991 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6992 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6993 (FONTSRC, FONTOBJ): New variables.
6994 (obj): Add $(FONTOBJ).
6995 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6996 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6997 @LIBOTF_LIBS@.
6998 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 6999 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 7000
1f45f627 7001 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
7002
7003 * character.h (Vscript_representative_chars): Extern it.
7004
7005 * character.c (Vscript_representative_chars): New variable.
7006 (syms_of_character): Declare it as a Lisp variable.
7007
7008 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7009 enable_font_backend is nonzero, accept the composition method
7010 COMPOSITION_WITH_GLYPH_STRING.
7011
7012 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7013 enumeration COMPOSITION_WITH_GLYPH_STRING.
7014
aca7a3d2
MB
7015 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7016 members clip_x, clip_y, clip_width, and clip_height.
7017 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7018
7019 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7020 --enable-font-backend. Call syms_of_font.
7021
7022 * fns.c (assoc_no_quit): New function.
7023
7024 * fontset.h (FONT_INFO_FROM_FACE): New macro.
7025 (face_for_font, new_fontset_from_font)
7026 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7027
7028 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7029 (fontset_font, fontset_ascii, face_for_char)
7030 (make_fontset_for_ascii_face, Ffont_info)
7031 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7032 is nonzero, use font-backend mechanism.
7033 (find_font_encoding): Make it non-static.
7034 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7035 New functions.
7036
7037 * frame.h (struct frame): New members resx and resy.
7038 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7039 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7040
7041 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 7042 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
7043
7044 * lisp.h (assoc_no_quit): Extern it.
7045
7046 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7047 Through out the file, use FONT_INFO_FROM_FACE instead of
7048 FONT_INFO_FROM_ID, use get_per_char_metric instead of
7049 rif->per_char_metric.
7050 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7051 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7052 (get_glyph_face_and_encoding, fill_composite_glyph_string)
7053 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7054 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7055 nonzero, use font-backend mechanism.
7056 (get_per_char_metric): New function.
7057
7058 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7059 (set_lface_from_font_name)
7060 (set_font_frame_param, free_realized_face)
7061 (prepare_face_for_display, clear_face_gcs)
7062 (Finternal_set_font_selection_order, realize_x_face)
7063 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7064 font-backend mechanism.
1f45f627 7065 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
7066 (load_face_font) [USE_FONT_BACKEND]: Abort.
7067 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 7068 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
7069
7070 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7071 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7072 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7073 nonzero, register all available font drivers. Call
7074 x_default_font_parameter for deciding a font.
7075 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7076
7077 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7078 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7079 (x_set_glyph_string_clipping_exactly)
7080 (x_compute_glyph_string_overhangs)
7081 (x_draw_glyph_string_foreground)
7082 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7083 (x_free_frame_resources) [USE_FONT_BACKEND]: If
7084 enable_font_backend is nonzero, use font-backend mechanism.
7085 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7086
73acf815 70872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7088
fcb314b2 7089 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
7090 system_eol_type.
7091 (syms_of_coding): Initialize system_eol_type.
7092
fcb314b2
GM
7093 * process.c (Fset_process_coding_system): Inherit system's eol
7094 format if necessary.
aca7a3d2 7095
73acf815 70962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7097
7098 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7099
73acf815 71002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7101
7102 * coding.c (decode_eol): Pay attention to buffer relocation in
7103 del_range_2.
7104 (decode_coding): Call decode_eol before restoring undo_list.
7105
73acf815 71062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7107
7108 * charset.c (Fdefine_charset_internal): Fix setting of
7109 emacs_mule_bytes.
7110
73acf815 71112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7112
7113 * keyboard.c (read_char): Check if C is a character or not before
7114 looking up Vkeyboard_translate_table.
7115
73acf815 71162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7117
7118 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7119 condition to terminate the loop.
7120
73acf815 71212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7122
7123 * coding.c (produce_composition): Compare charbuf[i] instead of
7124 args[i] against 0.
7125 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7126
73acf815 71272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7128
7129 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7130 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7131 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7132 detect_coding.
7133 (emacs_mule_char): Handle old style (Emacs 20) component character
7134 of a composition.
4c4475a8
GM
7135 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7136 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7137 composition rule.
aca7a3d2
MB
7138 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7139
73acf815 71402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7141
7142 * coding.c (encode_coding_ccl): Allocate destination dynamically
7143 when necessary.
7144
73acf815 71452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7146
7147 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7148 the loop. When quitted, show a proper error message.
7149
73acf815 71502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7151
aca7a3d2
MB
7152 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7153 src->clip_head and src->clip_tail temporarily instead of src->hl.
7154
7155 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7156 character sequence.
7157 (Fccl_execute_on_string): Use ASET, not XSET.
7158
73acf815 71592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7160
1f45f627 7161 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 7162
73acf815 71632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7164
7165 * coding.c (decode_coding): Fix the condition of terminating the
7166 decoding loop.
7167
73acf815 71682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7169
7170 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 7171 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 7172
73acf815 71732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7174
7175 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7176 made by a mapping table.
7177
73acf815 71782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7179
7180 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7181 not.
7182 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7183 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7184
7185 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7186 s->face is NULL or not.
7187
73acf815 71882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7189
7190 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7191 (x_draw_glyph_string): Fix drawing of right_overhang and
7192 left_overhang around/on cursor.
7193
1f45f627 7194 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 7195
73acf815 71962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7197
7198 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7199
73acf815 72002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7201
4c4475a8
GM
7202 * coding.c (Fdefine_coding_system_internal)
7203 (Fdefine_coding_system_alias): Avoid a duplicated element in
7204 Vcoding_system_alist.
aca7a3d2 7205
73acf815 72062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7207
7208 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7209
fcb314b2 7210 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
7211 (syms_of_coding): Intern and staticpro it.
7212 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 7213 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
7214
7215 * coding.h (CODING_SYSTEM_P): If ID is not available, call
7216 Fcoding_system_p.
7217 (CHECK_CODING_SYSTEM): If ID is not available, call
7218 Fcheck_coding_system.
4c4475a8
GM
7219 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7220 Try also Fcheck_coding_system.
aca7a3d2 7221
73acf815 72222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7223
aca7a3d2
MB
7224 * coding.c (code_conversion_restore): GCPRO arg.
7225
73acf815 72262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7227
7228 * character.c (lisp_string_width): Check multibyteness of STRING.
7229
73acf815 72302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7231
7232 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7233 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
7234 (decode_mac_font_name): Use decode_coding_c_string instead of
7235 decode_coding.
7236 (x_load_font): Initialize fontp->fontset to -1. Set
7237 fontp->encoding_type.
7238
73acf815 72392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7240
7241 * search.c (search_buffer): Give up BM search on case-fold-search
7242 if one of a target character has a case-equivalence of different
7243 byte length even if that target charcter is an ASCII.
1f45f627
GM
7244 (simple_search): Fix calculation of byte length of matched text.
7245 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 7246
73acf815 72472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7248
7249 * coding.c (decode_coding): Fix handling of invalid bytes.
7250
73acf815 72512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7252
7253 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7254 Unicode characters.
7255
73acf815 72562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7257
7258 * coding.c (encode_coding_object): If a pre-write-conversion
7259 function makes a new buffer, kill it.
7260
73acf815 72612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7262
7263 * coding.c (QCascii_compatible_p): New variable.
7264 (syms_of_coding): Initialize it.
4c4475a8
GM
7265 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7266 calling string_char.
aca7a3d2
MB
7267 (record_conversion_result): Add `default:' case.
7268 (coding_charset_list): Delete unused variable `coding_type'.
7269 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7270 property in the plist of the coding system.
7271 (Fcoding_system_put): Check QCascii_compatible_p.
7272
73acf815 72732008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7274
7275 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7276 removed calculation of frame `f', as it's now used.
7277
73acf815 72782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7279
1f45f627 7280 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
7281 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7282 (UNIDATA): New variable.
7283 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7284 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7285 $(RUN_TEMACS) unconditionally.
7286
73acf815 72872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7288
1f45f627 7289 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
7290 (admindir): New variable.
7291 ($(lispsource)international/charprop.el): New target.
7292
73acf815 72932008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 7294
1f45f627 7295 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
7296 (syms_of_character): Remove its initialization.
7297
73acf815 72982008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
7299
7300 * w32select.c (validate_coding_system)
7301 (setup_windows_coding_system): New functions.
7302 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7303 setup_windows_coding_system.
7304 (setup_config, Fw32_get_clipboard_data): Use
7305 validate_coding_system.
7306 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 7307 where signals are allowed.
aca7a3d2
MB
7308
7309 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7310 (Fcheck_coding_system): Add declarations.
7311
73acf815 73122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7313
1f45f627 7314 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 7315
73acf815 73162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7317
7318 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7319 string as the second argument for x_new_fontset.
7320
73acf815 73212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7322
7323 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
7324 (encode_coding_object): Use safe_call instead of call2.
7325
73acf815 73262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7327
1f45f627 7328 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
7329
7330 * Makefile.in (lisp): Include charprop.el.
7331
73acf815 73322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7333
7334 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
7335 Not sure if it's unnecessary.
7336
73acf815 73372008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
7338
7339 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
7340 some possibly unnecessary fontset checking code that crashed
1f45f627 7341 when creating a new frame.
aca7a3d2 7342
73acf815 73432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7344
7345 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
7346 lookup_face.
7347
7348 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
7349
1f45f627 7350 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 7351
73acf815 73522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7353
73acf815 7354 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
7355 (coding_charset_list): New function.
7356
7357 * coding.h (coding_charset_list): Extern it.
7358
73acf815 73592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7360
7361 * fontset.c (Fset_fontset_font): Call find_font_encoding with
7362 concatenation of family and registry.
7363
73acf815 73642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7365
7366 * character.h (BYTE8_STRING): Fix typo.
7367
7368 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
7369 string to multibyte (sync to HEAD).
7370
7371 * casefiddle.c (casify_region): Handle changes in byte-length
7372 using replace_range_2 (sync to HEAD).
7373
73acf815 73742008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7375
7376 * chartab.c (map_char_table): GCPRO table and arg.
7377
73acf815 73782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7379
7380 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
7381 already at limit.
7382
73acf815 73832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7384
7385 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
7386 instead of fast_c_string_match_ignore_case.
1f45f627 7387 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 7388 fast_string_match_ignore_case instead of
1f45f627 7389 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 7390
73acf815 73912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7392
7393 * xdisp.c (get_next_display_element): In unibyte case, decide to
7394 display in octal form by checking a chacter by
7395 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
7396
1f45f627 7397 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
7398
7399 * character.c (unibyte_has_multibyte_table): New variable.
7400
7401 * character.h (unibyte_has_multibyte_table): Extern it.
7402 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
7403
73acf815 74042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7405
7406 * coding.c (encode_coding_iso_2022): Fix handling of charset
7407 annotation.
7408
73acf815 74092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7410
7411 * coding.c (setup_coding_system): If coding_system is nil, use
7412 Qundecided.
7413 (Fterminal_coding_system): Return nil if terminal coding system is
7414 `undecided'.
7415 (syms_of_coding): Define coding-system `undecided' here. Setup
7416 terminal_coding as `undecided'.
7417
73acf815 74182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7419
7420 * xdisp.c (message_dolog, set_message_1): Call
7421 unibyte_char_to_multibyte with arg type int.
7422
aca7a3d2
MB
7423 * lread.c (read1): Fix reading of a char-table.
7424
7425 * print.c (print_object): Include sub char-table in cicularities
7426 detection.
7427
73acf815 74282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7429
7430 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 7431 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 7432
73acf815 74332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7434
7435 * fileio.c (report_file_error): Make a unibyte string from
7436 strerror (errorno).
7437 (Fsubstitute_in_file_name): Fix the arg to
7438 unibyte_char_to_multibyte. It is evaluated twice.
7439
73acf815 74402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7441
7442 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
7443
73acf815 74442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7445
7446 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
7447 BOM is not found.
4c4475a8
GM
7448 (detect_coding, detect_coding_system): Optimization for ISO-2022
7449 when no 8-bit data is found.
aca7a3d2 7450
73acf815 74512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7452
7453 * w32fns.c (x_to_w32_font): Update to use new coding struct.
7454
73acf815 74552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7456
4c4475a8
GM
7457 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
7458 CHARS.
aca7a3d2 7459
73acf815 74602008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
7461
7462 * macterm.c (mac_encode_char): Add charset argument and update
7463 to use encoding_type.
2a2e8de7 7464 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
7465 switch to pure fontset.
7466 (decode_mac_font_name): Temporarily remove decoding.
7467 (x_font_name_to_mac_font_name): Temporarily remove encoding.
7468 (x_load_font): Temporarily remove encoding.
aca7a3d2 7469
73acf815 74702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7471
7472 * xfaces.c (Fface_font): If frame is not on a window system,
7473 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
7474 refer to face->font.
7475 (split_font_name_into_vector, build_font_name_from_vector)
7476 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
7477 whne HAVE_WINDOW_SYSTEM is defined.
7478
73acf815 74792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7480
7481 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
7482 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 7483 cmp->glyph_len is zero.
aca7a3d2 7484
1f45f627 7485 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
7486 (Ffontset_info): Make it backward compatible. New arg ALL.
7487
73acf815 74882008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
7489
7490 * process.c (read_process_output): Grow decoding_buf when needed;
7491 this could cause a crash in allocate_string and compact_small_strings.
7492
73acf815 74932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7494
1f45f627 7495 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 7496
73acf815 74972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7498
7499 * coding.c (setup_coding_system): Set coding->common_flags
7500 correctly for raw-text.
7501 (consume_chars): On encoding unibyte text by raw-text, don't check
7502 multibyte form.
1f45f627 7503 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
7504
7505 * fileio.c (e_write): Short cut for the case of no encoding.
7506
73acf815 75072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7508
4c4475a8
GM
7509 * coding.c (detect_coding, detect_coding_system): Delete unused
7510 variables.
aca7a3d2 7511
73acf815 75122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7513
7514 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7515 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7516
73acf815 75172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7518
7519 * coding.c (Ffind_coding_systems_region_internal): Include
7520 raw-text and no-conversion in the result.
7521
73acf815 75222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7523
1f45f627 7524 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
7525 (load_font_get_repertory): Delete unnecessary check of ENCODING of
7526 FONT_DEF.
7527 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 7528 (set_fontset_font): Change argument.
aca7a3d2
MB
7529 (Fset_fontset_font): Fix for the case that TARGET is a script
7530 name and charset name.
7531 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
7532
73acf815 75332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7534
1f45f627
GM
7535 * fontset.c (fontset_font): Rename from fontset_face. Change return
7536 value.
4c4475a8
GM
7537 (face_suitable_for_char_p, face_for_char): Adjust for the change
7538 of fontset_font.
aca7a3d2
MB
7539 (make_fontset_for_ascii_face): Fix setting of the fontset element
7540 for ASCII.
7541 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
7542 to get a font name.
1f45f627 7543 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 7544
fcb314b2 7545 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
7546
7547 * character.h (LEADING_CODE_LATIN_1_MIN)
7548 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
7549
73acf815 75502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7551
fcb314b2 7552 * editfns.c (check_translation): New function.
aca7a3d2
MB
7553 (Ftranslate_region_internal): Handle M:N mapping.
7554
73acf815 75552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7556
7557 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
7558
73acf815 75592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7560
7561 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
7562 goto invalid_code.
7563 (decode_coding_iso_2022): Fix handling of invalid designation.
7564
7565 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
7566 after calling code_conversion_save.
7567
73acf815 75682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7569
7570 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
7571
7572 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
7573
7574 * fontset.c: Include "intervals.h".
7575 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
7576 (free_face_fontset, new_fontset_from_font_name): Fix
7577 Lisp_Object/int mixup.
aca7a3d2
MB
7578
7579 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
7580
7581 * coding.c: Add many prototypes for static functions.
7582 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 7583 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
7584 (Funencodable_char_position, Fcheck_coding_systems_region): Call
7585 get_translation_table with max_lookup NULL.
aca7a3d2 7586
73acf815 75872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7588
7589 * coding.c (get_translation_table): Declare it as Lisp_Object.
7590 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
7591 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
7592 instead of CHAR_TABLE_REF.
aca7a3d2 7593
73acf815 75942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7595
1f45f627 7596 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
7597 annotation data format.
7598 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 7599 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 7600 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 7601 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
7602 (decode_coding_ccl, decode_coding_charset): Pay attention to
7603 coding->charbuf_used.
aca7a3d2
MB
7604 (get_translation): New function.
7605 (produce_chars): New arguments translation_table and last_block.
7606 Translate characters here. Return number of carryover chars.
1f45f627
GM
7607 Change caller.
7608 (produce_composition): New argument pos. Change caller.
7609 Adjust for the change of annotation data format.
aca7a3d2
MB
7610 (produce_charset, produce_annotation): Likewise.
7611 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
7612 (consume_chars): New arg translation_table. Change caller.
7613 (translate_chars): Delete.
7614 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 7615
73acf815 76162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7617
7618 * search.c (simple_search): Fix setting this_pos_byte in backward
7619 search.
7620
7621 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
7622 byte sequence.
7623 (detect_coding_ccl): Fix setting of the variable valids.
7624
73acf815 76252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7626
7627 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
7628
7629 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
7630
1f45f627 7631 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
7632 Ftranslate_region. Accept a char-table in TABLE.
7633 (syms_of_editfns): Defsubr Stranslate_region_internal.
7634
7635 * xfaces.c (set_lface_from_font_name): If a font is specified for
7636 a frame, generate a fontset from the font.
7637 (build_scalable_font_name): If the scalable font is requested for
7638 a specific size, don't change that size.
7639 (try_font_list): Try a scalable font also in the case that a
1f45f627 7640 pattern string is specified.
aca7a3d2 7641
73acf815 76422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7643
7644 * xfaces.c (Fface_font): New optional arg CHARACTER.
7645
73acf815 76462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7647
7648 * charset.h (CHARSET_OFFSET): New macro.
7649
73acf815 76502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7651
7652 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
7653
7654 * fontset.c (fontset_face): Handle the case that repertory is a
7655 char-table.
7656 (find_font_encoding): Return nil for unknown encoding.
7657 (Fset_fontset_font): Ignore a font of unknown encoding.
7658
73acf815 76592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7660
1f45f627 7661 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
7662
7663 * fontset.c (fontset_face): Handle fallback fonts correctly.
7664 (Ffontset_info): Return infomation about fallback fonts.
7665
73acf815 76662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7667
7668 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 7669 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
7670 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
7671 the case that it is nil.
7672 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 7673 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
7674
7675 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
7676 subset or superset.
7677
73acf815 76782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7679
7680 * emacs.c (main): Call init_charset after syms_of_XXX.
7681
1f45f627 7682 * charset.c (Vcharset_map_directory): Delete.
1f204af3 7683 (Vcharset_map_path): New variable.
aca7a3d2
MB
7684 (load_charset_map_from_file): Use Vcharset_map_path instead.
7685 (init_charset): Initialize Vcharset_map_path.
7686 (syms_of_charset): Delete declaration of "charset-map-directory",
7687 add declaration of "charset-map-path".
7688
73acf815 76892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7690
4c4475a8
GM
7691 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
7692 ASCII only string.
aca7a3d2
MB
7693
7694 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
7695
7696 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 7697 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 7698
73acf815 76992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7700
7701 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
7702
7703 * coding.c (QCmnemonic, QCdefalut_char)
7704 (QCdecode_translation_table, QCencode_translation_table)
7705 (QCpost_read_conversion, QCpre_write_conversion): New variables.
7706 (get_translation_table): Return a list of translation tables if
7707 necessary.
7708 (decode_coding): Call get_translation_table with ENCODEP 0.
7709 (char_encodable_p): If translation_table is non-nil, always call
7710 translate_char.
7711 (Fdefine_coding_system_internal): Accept list of translation
7712 tables as :encode-translation-table and :decode-translation-table.
7713 (Fcoding_system_put): New function.
7714 (syms_of_coding): Declare new symbols. Defsubr
7715 Scoding_system_put.
4c4475a8
GM
7716 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
7717 typically JISX0212.
aca7a3d2
MB
7718
7719 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
7720 when the charset is superset type.
7721
7722 * character.c (translate_char): Accept list of translation tables.
7723
73acf815 77242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7725
1f45f627 7726 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
7727 (CODING_ATTR_TRANS_TBL): New macro.
7728
7729 * coding.c (get_translation_table): New function.
7730 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
7731 (decode_coding, encode_coding): Utilize get_translation_table.
7732 (char_encodable_p, Funencodable_char_position): Translate char if
7733 necessary.
7734 (Ffind_coding_systems_region_internal)
7735 (Fcheck_coding_systems_region): Setup translation table for encode
7736 in a coding system attribute vector in advance.
aca7a3d2
MB
7737 (Fdefine_coding_system_internal): Allow a symbol as translation
7738 table. For shift-jis type coding system, allow 4th charset.
7739
73acf815 77402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7741
7742 * coding.c (decode_coding_sjis): Check the first byte rigidly.
7743
7744 * xdisp.c (get_next_display_element): Pass -1 as POS to
7745 FACE_FOR_CHAR if displaying a C-string.
7746
73acf815 77472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7748
7749 * composite.c (get_composition_id): Handle xoff and yoff in a
7750 composition rule.
7751
7752 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
7753 (struct composition): New member lbearing and rbearing.
7754
7755 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
7756 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 7757 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
7758
7759 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
7760 composition glyph.
7761
73acf815 77622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7763
7764 * print.c: Include charset.h.
7765 (Vprint_charset_text_property): New variable.
7766 (Qdefault): Extern it.
7767 (PRINT_STRING_NON_CHARSET_FOUND)
7768 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
7769 (print_check_string_result): New variable.
7770 (print_check_string_charset_prop): New function.
7771 (print_prune_charset_plist): New variable.
7772 (print_prune_string_charset): New function.
7773 (print_object): Call print_prune_string_charset if
7774 Vprint_charset_text_property is not t.
7775 (print_interval): Print nothing if itnerval->plist is nil.
7776 (syms_of_print): Declare Vprint_charset_text_property as a lisp
7777 variable. Init and staticpro print_prune_charset_plist.
7778
73acf815 77792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7780
7781 * fontset.c (new_fontset_from_font_name): Use the specified font
7782 for all characters in the new fontset.
7783
7784 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7785 OBJECT args.
7786
7787 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
7788 OBJECT args for composition too.
7789
7790 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7791 OBJECT args.
7792
73acf815 77932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7794
7795 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
7796
1f45f627 7797 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 7798 FONT_DEF format.
1f45f627 7799 (fontset_face): New arg id. Change caller.
aca7a3d2 7800 (face_for_char): New args pos and object.
1f204af3 7801 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
7802 (fs_query_fontset): Check NAME by Fassoc too.
7803 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 7804 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 7805
1f45f627 7806 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 7807
4c4475a8
GM
7808 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7809 (append_space, extend_face_to_end_of_line)
7810 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7811 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
7812
7813 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7814 POS and OBJECT args.
7815
7816 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7817 POS and OBJECT args.
7818
73acf815 78192008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7820
7821 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7822 of GlobalAlloc'ed memory.
7823
73acf815 78242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7825
7826 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7827
7828 * charset.h (charset_table_used): Delete extern.
7829
7830 * charset.c (charset_table_used): Make it static.
7831 (map_charset_chars): Fix args to c_function with.
7832
7833 * chartab.c (map_sub_char_table_for_charset): Fix args to
7834 c_function with.
7835
7836 * coding.h (enum coding_result_code): Delete
7837 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7838
7839 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 7840 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
7841 (Vlast_code_conversion_error): New variables.
7842 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7843 (ONE_MORE_BYTE): Record error if any instead of signaling an
7844 error. If non-ASCII multibyte char is found, return the negative
7845 value of the code. All callers changed to check it.
7846 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
7847 (record_conversion_result): New function. Change all codes setting
7848 coding->result to call this function.
4c4475a8
GM
7849 (detect_coding_utf_8, decode_coding_utf_8)
7850 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7851 Don't use the local variable incomplete.
aca7a3d2 7852 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
7853 (decode_coding): Fix of flushing out unprocessed data.
7854 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 7855 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
7856
7857 * fontset.c (set_fontset_font): Fix args.
7858
7859 * lisp.h (CHARACTERBITS): Define as 22.
7860
7861 * process.c (send_process): Be sure to set coding->src_multibyte.
7862
7863 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7864
73acf815 78652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7866
7867 * xdisp.c (handle_auto_composed_prop): Give limit to
7868 Fnext_single_char_property_change.
7869
73acf815 78702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7871
424c157f 7872 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 7873 table weak.
aca7a3d2
MB
7874
7875 * fontset.c (Fset_fontset_font): Fix docstring.
7876
7877 * lisp.h (detect_coding_system): Adjust prototype.
7878
7879 * fileio.c (kill_workbuf_unwind): Delete this function.
7880 (Finsert_file_contents): Adjust the call of detect_coding_system.
7881 Get conversion_buffer by code_conversion_save. Use the macor
7882 CODING_MAY_REQUIRE_DECODING. After decoding, update
7883 coding_system.
7884
7885 * coding.h (make_conversion_work_buffer): Delete extern.
7886 (code_conversion_save): Extern it.
7887
7888 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 7889 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
7890 (decode_coding_utf_8): Don't do eol converion.
7891 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 7892 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
7893 (decode_coding_emacs_mule, decode_coding_iso_2022)
7894 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7895 Don't do eol converion.
aca7a3d2
MB
7896 (adjust_coding_eol_type): Return a new coding system.
7897 (detect_coding): Don't detect eol. Fix for utf-16 detection.
7898 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
7899 each change.
7900 (decode_coding): Pay attention to undo_list. Do eol convesion for
7901 all types of coding-systems (if necessary).
7902 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 7903 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
7904 Vcode_conversion_reused_work_buf.
7905 (Vcode_conversion_workbuf_name): New variable.
7906 (reused_workbuf_in_use): New variable.
7907 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 7908 (code_conversion_restore): Change argument to cons.
1f45f627
GM
7909 (code_conversion_save): Delete the argument BUFFER. Change callers.
7910 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
7911 Fix for utf-16 detection.
7912 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 7913 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
7914 reused_workbuf_in_use.
7915
73acf815 79162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7917
7918 * keymap.c (store_in_keymap): Pay attention to the case that idx
7919 is a cons specifying a character range.
7920
73acf815 79212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7922
7923 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
7924 HANDLED_RECOMPUTE_PROPS.
7925
7926 * coding.c (Fdefine_coding_system_internal): Fix checking of
7927 ascii compatibility.
7928
73acf815 79292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7930
1f45f627 7931 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
7932 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
7933
7934 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
7935 Resync charset_list to Vemacs_mule_charset_list.
7936
7937 * keymap.c (store_in_keymap): Pay attention to the case that idx
7938 is a cons specifying a character range.
7939
73acf815 79402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7941
7942 * composite.c (update_compositions): Bind inhibit-read-only, etc
7943 to t before calling remove-list-of-text-properties.
7944
7945 * print.c (print_object): Always print ASCII chars as is.
7946
73acf815 79472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7948
1f45f627 7949 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 7950
4c4475a8
GM
7951 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
7952 is a char table.
aca7a3d2 7953
73acf815 79542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7955
1f45f627 7956 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 7957
73acf815 79582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7959
7960 * xfaces.c (set_lface_from_font_name): Fix for the case that
7961 FONTNAME is not fontset name.
7962
73acf815 79632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7964
7965 * fns.c (base64_encode_1): Fix previous change.
7966
73acf815 79672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7968
7969 * fontset.c (set_fontset_font): New function.
7970 (Fset_fontset_font): If a font is specified for a charset, use
7971 map_charset_chars to store the font spec in a fontset.
7972
73acf815 79732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7974
1f204af3 7975 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
7976 (make_fontset): Don't create a fallback fontset here.
7977 (free_face_fontset): Free a fallback fontset (if any) too.
7978 (n_auto_fontsets): Delete this variable.
7979 (auto_fontset_alist): New variable.
7980 (new_fontset_from_font_name): Check auto_fontset_alist.
7981 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
7982 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
7983 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
7984 Defsubr Sfontset_list_all.
7985
73acf815 79862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7987
7988 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7989
73acf815 79902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7991
7992 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7993
73acf815 79942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7995
7996 * editfns.c (Fgoto_char): Fix docstring.
7997
73acf815 79982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7999
8000 * insdel.c (insert_from_gap): Adjust intervals correctly.
8001
73acf815 80022008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8003
8004 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8005 (pfnGetFontUnicodeRanges): New dynamically loaded function.
8006 (w32_initialize): Try to load it.
8007 (x_get_font_repertory): Use it if available.
8008 (w32_encode_char): Add shortcut for unicode output.
8009
8010 * w32fns.c (w32_load_system_font): Default charset to -1.
8011 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 8012 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
8013 or wildcard charsets.
8014 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8015 (w32_codepage_for_font): Return CP_UNICODE for unicode.
8016 (w32_to_x_font): Match charset to real charset.
8017 (enum_font_cb2): Always list unicode versions.
8018
8019 * makefile.w32-in (temacs): Increase EMHEAP.
8020
73acf815 80212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8022
8023 * w32term.c (w32_encode_char): New charset parameter.
8024 font_info.encoding becomes encoding_type.
1f45f627 8025 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
8026 (x_new_font): Return quickly if font already set.
8027 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
8028 Use new fs_query_fontset. Try new_fontset_from_font_name.
8029 Use fontset_name for return value.
aca7a3d2
MB
8030
8031 * w32term.h: Declare x_get_font_repertory.
8032
8033 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 8034 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
8035 of encode_coding.
8036 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8037 decode_coding.
8038
8039 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8040 of x_new_fontset.
8041 (w32_load_system_font): Initialize charset as unicode.
8042 font_info.encoding becomes encoding_type.
1f45f627
GM
8043 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8044 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
8045 (syms_of_w32fns): Set get_font_repertory_func.
8046
1f45f627 8047 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 8048 from term.c.
1f45f627 8049 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
8050 encode_coding_object in place of encode_coding.
8051
8052 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8053 encoding becomes encoding_type.
8054
8055 * term.c (terminal_encode_buffer): Make externally visible.
8056
8057 * makefile.w32-in: Add character.h dependancies.
8058 (character.o, chartab.o): New targets.
8059
73acf815 80602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8061
8062 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 8063 CODING_ID_EOL_TYPE.
aca7a3d2 8064
73acf815 80652008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8066
8067 * coding.c (produce_chars): Revert last change.
8068
73acf815 80692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8070
8071 * charset.h (charset_unicode): Extern it.
8072
8073 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 8074 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 8075 arg MULTIBYTE.
1f45f627 8076 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
8077 change of find_charsets_in_text.
8078 (Fsplit_char): Fix doc. Never return unknown.
8079
8080 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8081
8082 * coding.c (Fdefine_coding_system_alias): Update
8083 Vcoding_system_list.
8084
8085 * fontset.c (load_font_get_repertory): Pay attention to the case
8086 that ENCODING of a font is specified by a char-table.
8087
8088 * xterm.c (x_get_font_repertory): Handle the case that the
8089 encoding of font is other than Unicode.
8090
73acf815 80912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8092
8093 * term.c (encode_terminal_code): Don't handle glyph-table. Check
8094 if a character is encodable by the terminal coding system. If
8095 not, produces proper number of `?'s. Update
8096 terminal_encode_buffer and terminal_encode_buf_size if necessary.
8097 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8098
73acf815 80992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8100
8101 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8102 variables.
1f45f627 8103 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
8104 characters at once. Store the result of encoding in
8105 terminal_encode_buffer.
4c4475a8
GM
8106 (write_glyphs, insert_glyphs): Adjust for the change of
8107 encode_terminal_code.
aca7a3d2
MB
8108 (term_init): Initialize terminal_encode_buffer and
8109 terminal_encode_buf_size.
8110
8111 * coding.c (consume_chars): If coding->src_object is nil, don't
8112 check annotation.
8113
73acf815 81142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8115
8116 * character.c (char_string): Use ASCII_CHAR_P instead of
8117 SINGLE_BYTE_CHAR_P.
8118
73acf815 81192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8120
8121 * xdisp.c (handle_auto_composed_prop): Check if the last
8122 characters of auto-composed region is newly composed with the
8123 following characters.
8124 (handle_composition_prop): Fix checking of point being inside
8125 composition.
8126
73acf815 81272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8128
8129 * fns.c (concat): Don't change multibyteness of the result by
8130 concatenating an 8-bit character.
8131
8132 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8133 multibyteness of the result when newelt is an 8-bit character.
8134
73acf815 81352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8136
8137 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8138 EMACS_INT.
8139
8140 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8141
8142 * xfaces.c (face_numeric_value): Declare dim size_t.
8143 (Finternal_lisp_face_equal_p): Remove unused f.
8144
8145 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8146 (MATRIX_ROW): Remove unused vars.
8147 (draw_glyphs, x_insert_glyphs, fast_find_position)
8148 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8149 byte/char counts.
8150
8151 * regex.c (regex_compile): Remove unused var.
8152
8153 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8154
8155 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8156 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8157
8158 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8159
8160 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8161
8162 * fileio.c (Fwrite_region): Remove unused var.
8163
8164 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8165 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8166
8167 * composite.c (Fremove_list_of_text_properties): Declare.
8168
1f45f627
GM
8169 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8170 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
8171 (coding_inherit_eol_type): Remove unused attrs.
8172 (detect_coding): Cast arg of detect_eol.
8173
8174 * charset.c (syms_of_charset): Remove unused var p.
8175 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8176 byte/char counts.
8177
8178 * casetab.c (set_case_table): Remove unused var.
8179
8180 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 8181 unused vars.
aca7a3d2 8182
73acf815 81832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8184
8185 * xterm.c (x_bitmap_mask): Declare.
8186
73acf815 81872008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8188
8189 * xterm.c (x_term_init): Fix type error.
8190
8191 * lisp.h: Add Funibyte_char_to_multibyte.
8192
8193 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8194 (Fset_coding_system_priority): Doc fix.
8195
aca7a3d2
MB
8196 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8197
8198 * indent.c (check_composition): Make start and end EMACS_INT.
8199
8200 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8201
8202 * xdisp.c (handle_composition_prop, check_point_in_composition):
8203 Make buffer positions EMACS_INT.
8204
8205 * composite.c (find_composition, run_composition_function)
8206 (update_compositions, Ffind_composition_internal): Make buffer
8207 positions EMACS_INT.
8208
8209 * composite.h (find_composition, update_compositions): Make
8210 position args EMACS_INT.
8211
1f45f627 8212 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
8213
8214 * intervals.c (get_property_and_range):
8215 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8216
8217 * unexalpha.c: Don't include varargs.h.
8218
73acf815 82192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8220
8221 * coding.h (ENCODE_UTF_8): New.
8222
8223 * Makefile.in (gtkutil.o): Depend on coding.h.
8224
8225 * coding.c (Fset_coding_system_priority): Doc fix.
8226
73acf815 82272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8228
8229 * fileio.c (Finsert_file_contents): Call setup_coding_system in
8230 the case of auto saving.
8231
73acf815 82322008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 8233
4c4475a8
GM
8234 * chartab.c (map_char_table, map_char_table_for_charset): Protect
8235 `range' from GC.
aca7a3d2 8236
73acf815 82372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8238
8239 * coding.c (decode_coding_sjis): Check bytes more rigidly.
8240
73acf815 82412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8242
1f45f627 8243 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
8244 (Fwrite_region): Set Vlast_coding_system_used to the return value
8245 of choose_write_coding_system.
8246
73acf815 82472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8248
8249 * charset.c (Fset_charset_priority): Pay attention to duplicated
8250 arguments.
8251
8252 * coding.c (QCcategory): New variable.
8253 (syms_of_coding): Defsym it. Set all elements of
8254 Vcoding_category_table and their symbol values.
8255 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
8256 coding-category-XXX, and coding-category-list.
8257 (Fdefine_coding_system_internal): Add category in the plist.
8258
73acf815 82592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8260
8261 * callproc.c (Fcall_process): Handle carryover correctly.
8262
1f45f627 8263 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
8264 (raw_text_coding_system): Check NILP (coding_system).
8265 (coding_inherit_eol_type): Check NILP (coding_system) and
8266 NILP (parent).
8267 (consume_chars): Fix for the case of raw-text.
8268
8269 * process.c (read_process_output): Handle carryover correctly.
8270
73acf815 82712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8272
8273 * regex.c (re_search_2): Fix last change.
8274
73acf815 82752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8276
8277 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8278 target_multibyte. Even in a unibyte case, return a converted
8279 multibyte char.
8280 (GET_CHAR_AFTER): New macro.
8281 (PATFETCH): Translate via multibyte char.
8282 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8283 (SETUP_MULTIBYTE_RANGE): New macro.
8284 (regex_compile): Setup compiled code so that its multibyteness
8285 matches that of a target. Fix the handling of "[X-YZ]" using
8286 SETUP_MULTIBYTE_RANGE.
8287 (analyse_first) <charset>: For filling fastmap for all multibyte
8288 characters, don't check by BASE_LEADING_CODE_P.
8289 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
8290 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 8291 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
8292 (TARGET_CHAR_AND_LENGTH): Delete this macro.
8293 (TRANSLATE_VIA_MULTIBYTE): New macro.
8294 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8295 It is the same as RE_MULTIBYTE_P (bufp) now.
8296 <exactn>: Translate via multibyte.
8297 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
8298 translate it.
8299 <charset, charset_not>: Fetch a character by
8300 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
8301 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8302 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8303 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8304 by GET_CHAR_AFTER.
c5ad7a3d 8305 (bcmp_translate): Likewise.
aca7a3d2
MB
8306
8307 * search.c (compile_pattern): Check the member target_multibyte,
8308 not the member multibyte of buf.
8309
8310 * lread.c (read1): While reading a string, set force_singlebyte
8311 and force_multibyte correctly.
8312
4c4475a8
GM
8313 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8314 up of unibyte_to_multibyte_table.
aca7a3d2 8315
73acf815 83162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8317
8318 * coding.c (setup_coding_system): If coding has
8319 post-read-conversion or pre-write-conversion, set
8320 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
8321 respectively.
8322 (decode_coding_gap): Run post-read-conversion if any.
8323
8324 * fileio.c (Finsert_file_contents): Even if we read into a
8325 unibyte buffer, check if we must decode the result or not.
8326
73acf815 83272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8328
8329 * coding.c (make_conversion_work_buffer): Change the work buffer
8330 name to the same one as that of Emacs 21.
8331
73acf815 83322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8333
1f45f627 8334 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
8335 (code_conversion_restore): Don't extern it.
8336
8337 * coding.c (detected_mask): Delete unused variable.
8338 (decode_coding_iso_2022): Pay attention to the byte sequence of
8339 CTEXT extended segment, and retain those bytes as is.
8340 (decode_coding_ccl): Delete unused variable `valids'.
8341 (setup_coding_system): Delete unused variable `category'.
8342 (consume_chars): Delete unused variable `category'. Make it work
8343 for non-multibyte case.
1f45f627 8344 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
8345 (saved_coding): Delete unused variable.
8346 (code_conversion_restore): Don't check saved_coding->destination.
8347 (code_conversion_save): New function.
8348 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
8349 instead of record_unwind_protect.
1f45f627 8350 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 8351 (detect_coding_system): Delete unused variable `mask'.
1f45f627 8352 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
8353
8354 * fileio.c (kill_workbuf_unwind): New function.
8355 (Finsert_file_contents): On replacing, call
8356 make_conversion_work_buffer with correct args, and call
8357 record_unwind_protect with the first arg kill_workbuf_unwind.
8358
8359 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
8360
73acf815 83612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8362
1f45f627 8363 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
8364 (fontset_add): Fix for the case that TO is less than TO1.
8365 (Ffontset_info): Don't use fallback fontset on checking the
8366 default fontset.
8367 (dump_fontset): New function for debugging.
8368
8369 * coding.c (Fdefine_coding_system_internal): Fix for the case that
8370 coding_type is Qcharset.
8371
73acf815 83722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8373
8374 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
8375 (map_char_table): Don't inherit the value from the parent on
1f45f627 8376 initializing VAL. Adjust for the above change.
aca7a3d2 8377
73acf815 83782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8379
8380 * coding.c (Qsignature, Qendian): Delete these variables.
8381 (syms_of_coding): Don't initialize them.
8382 (CATEGORY_MASK_UTF_16_AUTO): New macro.
8383 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
8384 detect_info->found.
8385 (decode_coding_utf_16): Don't detect BOM here.
8386 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
8387 is NOT utf_16_without_bom.
8388 (setup_coding_system): For a coding system of type utf-16, check
8389 if the attribute :endian is Qbig or not (not nil or not), and set
8390 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
8391 (detect_coding): If coding type is utf-16 and BOM detection is
8392 required, detect it.
8393 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 8394 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 8395
73acf815 83962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8397
8398 * coding.c (coding_set_source): Fix for the case that the current
8399 buffer is different from coding->src_object.
8400 (decode_coding_object): Don't use the conversion work buffer if
8401 DST_OBJECT is a buffer.
8402
73acf815 84032008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8404
8405 * lread.c (read_emacs_mule_char) [len==2]: Index
8406 emacs_mule_charset correctly.
8407
73acf815 84082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8409
8410 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
8411 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 8412 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
8413 treated specially.)
8414 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
8415 (detected_mask): Remove Big5 bits.
8416
73acf815 84172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8418
8419 The following changes are to make the font rescaling facility
8420 compatible with Emacs 21.
8421
1f45f627 8422 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
8423 Vface_resizing_fonts.
8424 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 8425 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
8426 (split_font_name): Set font->rescale_ratio.
8427 (better_font_p): Pay attention to font->rescale_ratio.
8428 (build_scalable_font_name): Likewise. Change RESX, and RESY
8429 fields.
1f45f627 8430 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 8431
73acf815 84322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8433
8434 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
8435 (Qutf_16_le): Remove these variables.
8436 (syms_of_coding): Don't DEFSYM them.
8437 (decode_coding_utf_16): Fix handling of BOM.
8438 (encode_coding_utf_16): Fix handling of BOM.
8439
73acf815 84402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8441
8442 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 8443 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 8444
73acf815 84452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8446
8447 * coding.c (Fcheck_coding_systems_region): Fix type errors.
8448
73acf815 84492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8450
8451 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8452 and fix C types.
8453
73acf815 84542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8455
8456 * xdisp.c (SKIP_GLYPHS): New macro.
8457 (set_cursor_from_row): Pay attention to string display properties.
8458
8459 * category.c (copy_category_entry): Fix for the case that RANGE
8460 is an integer.
8461
8462 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
8463
1f45f627 8464 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 8465
73acf815 84662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8467
8468 * charset.c (Fcharset_id_internal): New function.
8469 (syms_of_charset): Defsubr it.
8470
8471 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
8472 with the last arg charset_list acquired from coding.
8473 (Fdefine_coding_system_internal): For ccl-based coding system, fix
8474 the attribute coding_attr_ccl_valids.
8475
8476 * coding.h (enum define_coding_ccl_arg_index): Set the first
8477 member coding_arg_ccl_decoder to coding_arg_max.
8478
1f45f627 8479 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
8480
8481 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
8482 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
8483 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
8484 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
8485 last arg Qnil.
aca7a3d2 8486
73acf815 84872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8488
8489 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
8490 call encode_char.
8491
1f45f627 8492 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 8493
73acf815 84942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8495
1f45f627 8496 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 8497
73acf815 84982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8499
8500 * dispextern.h (check_face_attributes, generate_ascii_font_name)
8501 (font_name_registry): Don't extern them.
1f45f627 8502 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
8503
8504 * fontset.h (Qfontset): Don't extern it.
8505 (new_fontset_from_font_name): Extern it.
8506
8507 * fontset.c: Give 8 extra slots to fontset objects.
8508 (Qfontset_info): New variable.
8509 (syms_of_fontset): Defsym it.
8510 (FONTSET_FALLBACK): New macro.
8511 (fontset_face): Try also the default fontset.
1f45f627
GM
8512 (make_fontset): Realize a fallback fontset from the default fontset.
8513 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
8514 using split_font_name_into_vector and build_font_name_from_vector.
8515 (Fset_fontset_font): Access the elements of font_spec by enum
8516 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
8517 name by using split_font_name_into_vector.
8518 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8519 generate a proper font name from the fontset name. Update
8520 Vfontset_alias_alist.
8521 (n_auto_fontsets): New variable.
8522 (new_fontset_from_font_name): New function.
8523 (Ffont_info): Store the information about fonts generated from the
1f45f627 8524 default fontset in the first extra slot of the returned char-table.
aca7a3d2 8525
1f45f627
GM
8526 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
8527 (font_name_registry): Delete function.
aca7a3d2
MB
8528 (split_font_name_into_vector): New function.
8529 (build_font_name_from_vector): New function.
1f45f627 8530 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
8531 (choose_face_font): If we are choosing an ASCII font, and ATTRS
8532 specifies an explicit font name, return the name as is. Make a
8533 list of registy names.
8534
1f45f627 8535 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
8536 of x_new_fontset.
8537 (Fx_create_frame): Don't call x_new_fontset here. Just use
8538 x_list_fonts to check the existence of fonts.
8539
1f45f627 8540 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
8541
8542 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
8543 string. Use new_fontset_from_font_name to create a fontset from a
8544 font name.
8545
1c8658b9
GM
85462008-02-01 Kenichi Handa <handa@m17n.org>
8547
8548 * syntax.c (Vfind_word_boundary_function_table): New name for
8549 Vnext_word_boundary_function_table.
8550 (find-word-boundary-function-table): New name for
8551 next-word-boundary-function-table.
8552
73acf815 85532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8554
8555 * Makefile.in: Fix some dependencies.
8556
8557 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
8558 set it to nil before returning.
8559
8560 * composite.c (update_compositions): Fix type error.
8561
8562 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
8563
73acf815 85642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8565
8566 * xterm.c (x_new_font): Optimize for the case that the font is
8567 already set for the frame.
8568
73acf815 85692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8570
8571 * chartab.c (char_table_ascii): Check if the char table contents
8572 is sub-char-table or not.
4c4475a8
GM
8573 (char_table_set, char_table_set_range): Fix argument to
8574 char_table_ascii.
aca7a3d2
MB
8575
8576 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
8577 (detect_coding_utf_8, detect_coding_utf_16)
8578 (detect_coding_emacs_mule, detect_coding_iso_2022)
8579 (detect_coding_sjis, detect_coding_big5)
8580 (detect_coding_ccl, detect_coding_charset): Change argument MASK
8581 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 8582 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
8583 (MAX_ANNOTATION_LENGTH): New macro.
8584 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
8585 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
8586 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 8587 (ADD_CHARSET_DATA): New macro.
1f45f627 8588 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
8589 (decode_coding_emacs_mule, decode_coding_iso_2022)
8590 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8591 Produce charset annotation data in coding->charbuf.
8592 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
8593 to charset annotation data in coding->charbuf.
8594 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
8595 coding->common_flags if the coding system is iso-2022 based and
8596 uses designation.
1f45f627 8597 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
8598 (produce_charset): New function.
8599 (produce_annotation): Handle charset annotation.
8600 (handle_composition_annotation, handle_charset_annotation): New
8601 functions.
8602 (consume_chars): Handle charset annotation. Utilize the above two
8603 functions.
8604 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
8605 buffer, get the deleted text as a string and set
8606 coding->src_object to that string.
8607 (detect_coding, detect_coding_system): Use the new struct
8608 coding_detection_info.
8609
8610 * coding.h (struct coding_detection_info): New structure.
1f45f627 8611 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
8612 (CODING_ANNOTATE_CHARSET_MASK): New macro.
8613
73acf815 86142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8615
8616 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
8617
73acf815 86182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8619
1f45f627 8620 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
8621 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
8622 to new local and nullify apropos_accumulate before returning.
8623 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
8624
73acf815 86252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8626
8627 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
8628 correctly.
8629
73acf815 86302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8631
8632 * fns.c (Flanginfo): Call synchronize_system_time_locale.
8633
73acf815 86342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8635
8636 The following changes are to make character composition happen
8637 automatically on displaying.
8638
2a2e8de7 8639 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 8640
1f45f627
GM
8641 * composite.h (Qauto_composed, Vauto_composition_function)
8642 (Qauto_composition_function): Extern them.
aca7a3d2 8643
1f45f627
GM
8644 * composite.c (Vcomposition_function_table)
8645 (Qcomposition_function_table): Delete variables.
8646 (Qauto_composed, Vauto_composition_function)
8647 (Qauto_composition_function): New variables.
aca7a3d2
MB
8648 (run_composition_function): Don't call
8649 compose-chars-after-function.
8650 (update_compositions): Clear `auto-composed' text property.
8651 (compose_chars_in_text): Delete this function.
8652 (syms_of_composite): Staticpro Qauto_composed and
8653 Qauto_composition_function. Declare Vauto_composition_function as
8654 a Lisp variable.
8655
8656 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
8657
8658 * xdisp.c (it_props): Add an entry for Qauto_composed.
8659 (handle_auto_composed_prop): New function.
8660
8661 * xselect.c (selection_data_to_lisp_data): Don't call
8662 compose_chars_in_text.
8663
73acf815 86642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8665
8666 * keyboard.c (read_char): Modify checking around use of
8667 Vkeyboard_translate_table.
8668
8669 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8670 and fix C types.
8671
73acf815 86722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8673
4c4475a8
GM
8674 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
8675 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8676 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 8677 the case that the last byte is '\r' correctly.
1f45f627
GM
8678 (decode_coding): Flush out the unprocessed data correctly.
8679 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 8680
73acf815 86812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8682
f245f2c6
JB
8683 * xterm.c (XTread_socket): Fix changes for defined keysyms.
8684 Add XK_ISO... case.
aca7a3d2
MB
8685 (xaw_scroll_callback): Revert last change.
8686
73acf815 86872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8688
1f45f627 8689 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 8690
73acf815 86912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8692
8693 * xfaces.c (Vface_resizing_fonts): New variable.
8694 (struct font_name): New member `resizing_ratio'.
8695 (font_resizing_ratio): New function.
8696 (split_font_name): Set font->resizing_ratio.
8697 (better_font_p): Pay attention to font->resizing_ratio.
8698 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
8699 RESX, and RESY fields.
8700 (try_alternative_families): Try scalable fonts if
8701 Vscalable_fonts_allowed is not Qt.
8702 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
8703
73acf815 87042008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8705
8706 * xterm.c (xaw_scroll_callback): Cast correctly.
8707
73acf815 87082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8709
8710 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
8711 (lispy_kana_keys): Comment out.
8712 (make_lispy_event) [XK_kana_A]: Comment out.
8713
8714 * xterm.c (xaw_scroll_callback): Cast call_data.
8715 (XTread_socket): Deal with ASCII keysyms.
8716 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
8717
73acf815 87182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8719
8720 * xterm.c (Vx_keysym_table): New.
8721 (syms_of_xterm): Initialize it.
8722 (XTread_socket): Use it.
8723 From head: Eliminate incorrect optimization that tried to avoid
8724 decoding the output of X*LookupString.
8725 (x_get_font_repertory): Delete charset declaration.
8726
73acf815 87272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8728
1f45f627
GM
8729 * coding.c (detect_coding_charset): If only ASCII bytes are found,
8730 return 0.
aca7a3d2
MB
8731 (Fdefine_coding_system_internal): Setup
8732 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
8733
73acf815 87342008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8735
8736 * coding.c (Fcheck_coding_system): Doc fix.
8737
8738 * editfns.c (Finsert_byte): Return a proper value.
8739
73acf815 87402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8741
8742 * coding.c (decode_coding): Fix args to translate_chars. Pay
8743 attention to Vstandard_translation_table_for_decode.
8744 (encode_coding): Fix args to translate_chars. Pay attention to
8745 Vstandard_translation_table_for_encode.
8746
8747 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
8748 SINGLE_BYTE_CHAR_P.
8749
8750 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
8751 not by SINGLE_BYTE_CHAR_P.
8752
8753 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
8754 SINGLE_BYTE_CHAR_P.
8755
8756 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
8757 SINGLE_BYTE_CHAR_P.
8758
8759 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
8760 by SINGLE_BYTE_CHAR_P.
8761
8762 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
8763 SINGLE_BYTE_CHAR_P.
8764
73acf815 87652008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8766
8767 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
8768
73acf815 87692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8770
8771 * fns.c (Flanginfo): Fix typo.
8772
8773 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
8774
73acf815 87752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8776
4c4475a8
GM
8777 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
8778 (detect_coding_emacs_mule, detect_coding_iso_2022)
8779 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
8780 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 8781 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 8782 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 8783 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 8784
73acf815 87852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8786
1f45f627
GM
8787 * character.c (char_string): Rename from
8788 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
8789 (string_char): Rename from string_char.
aca7a3d2 8790
4c4475a8
GM
8791 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
8792 if C is greater than MAX_3_BYTE_CHAR.
8793 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
8794 string_char instead of string_char_with_unification.
aca7a3d2 8795
73acf815 87962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8797
8798 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8799
73acf815 88002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8801
1f45f627 8802 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
8803
8804 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8805
73acf815 88062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8807
8808 * charset.c (define_charset_internal): Rename `supprementary'.
8809
8810 * Makefile.in (lisp, shortlisp): Remove latin-N.
8811
73acf815 88122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8813
8814 * xfns.c (x_window, x_window): Use use_xim.
8815
8816 * xterm.c (use_xim): Initialize.
8817 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8818 (x_term_init): Maybe set use_xim.
8819
8820 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8821
73acf815 88222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8823
8824 * search.c (search_buffer): Fix case-fold-search of multibyte
8825 characters.
8826 (boyer_moore): Rename the last argument to char_high_bits.
8827
73acf815 88282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8829
8830 * xdisp.c (display_string): Fix for the case of zero width glyph.
8831
8832 * xfns.c (x_set_font): Change the error message of the case that
8833 x_new_fontset returns Qt.
8834
8835 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8836 (Finternal_set_lisp_face_attribute): Use signal_error for the
8837 error of invalid fontset.
8838
8839 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8840 fontset, return Qt.
8841
73acf815 88422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8843
aca7a3d2
MB
8844 * unexelf.c (unexec): Make .got handling not SGI-specific.
8845
8846 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8847
8848 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8849
8850 * keyboard.c (read_key_sequence): Fix type error.
8851
8852 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8853 type error.
8854
8855 * fontset.c (fontset_add): Return Lisp_Object.
8856
73acf815 88572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8858
8859 * charset.h (charset_ordered_list_tick): Declare extern.
8860
73acf815 88612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8862
73acf815 8863 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
8864 for handling syntax, category, and case conversion for unibyte
8865 characters by converting them to multibyte on the fly. With these
8866 changes, we don't have to setup syntax and case tables for unibyte
8867 characters in each language environment.
8868
8869 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
8870 multibyte if necessary.
8871
8872 * bytecode.c (Fbyte_code): Likewise.
8873
8874 * character.h (LEADING_CODE_LATIN_1_MIN)
8875 (LEADING_CODE_LATIN_1_MAX): New macros.
8876 (unibyte_to_multibyte_table): Extern it.
8877 (unibyte_char_to_multibyte): New macro.
8878 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
8879 (CHAR_LEADING_CODE): New macro.
8880 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
8881
8882 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 8883 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
8884 (multibyte_char_to_unibyte): If C is an eight-bit character,
8885 convert it to the corresponding byte value.
8886
8887 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
8888 not 1, singals an error. Update the elements of
8889 unibyte_to_multibyte_table.
8890 (init_charset_once): Initialize unibyte_to_multibyte_table.
8891 (syms_of_charset): Define the charset `iso-8859-1'.
8892
aca7a3d2
MB
8893 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
8894 as is without converting it to unibyte. In a unibyte buffer,
8895 convert C to multibyte before checking the syntax.
8896
1f45f627 8897 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
8898
8899 * minibuf.c (Fminibuffer_complete_word): Use the macro
8900 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
8901
8902 * regex.h (struct re_pattern_buffer): New member target_multibyte.
8903
8904 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
8905 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
8906 that is zero, convert an eight-bit char to multibyte.
8907 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
8908 non-emacs case.
8909 (PATFETCH): Convert an eight-bit char to multibyte.
8910 (HANDLE_UNIBYTE_RANGE): New macro.
8911 (regex_compile): Setup the compiled pattern for multibyte chars
8912 even if the given regex string is unibyte. Use PATFETCH_RAW
8913 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 8914 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 8915 only for ASCII chars.
1f45f627 8916 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
8917 is multibyte.
8918 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
8919 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 8920 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
8921 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
8922 multibyte always 1.
8923 (re_search_2): In emacs, set the locale variable multibyte to 1,
8924 otherwise to 0. New local variable target_multibyte. Check it
8925 to decide the multibyteness of STR1 and STR2. If
8926 target_multibyte is zero, convert unibyte chars to multibyte
8927 before translating and checking fastmap.
8928 (TARGET_CHAR_AND_LENGTH): New macro.
8929 (re_match_2_internal): In emacs, set the locale variable multibyte
8930 to 1, otherwise to 0. New local variable target_multibyte. Check
8931 it to decide the multibyteness of STR1 and STR2. Use
8932 TARGET_CHAR_AND_LENGTH to fetch a character from D.
8933 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 8934 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
8935 target_multibyte, not with multibyte.
8936 <begline>: Declare the local variable C as `unsigned'.
8937 (bcmp_translate): Change the last arg name to target_multibyte.
8938
8939 * search.c (compile_pattern_1): Don't adjust the multibyteness of
8940 the regexp pattern and the matching target. Set cp->buf.multibyte
8941 to the multibyteness of the regexp pattern. Set
1f45f627 8942 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
8943 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
8944 FETCH_STRING_CHAR_ADVANCE.
8945 (Freplace_match): Convert unibyte chars to multibyte.
8946
4c4475a8
GM
8947 * syntax.c (char_quoted, back_comment, scan_words)
8948 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
8949 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 8950 unibyte chars to multibyte.
1f45f627
GM
8951 (skip_chars): Delete the arg syntaxp, and move the code for
8952 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
8953 Fix the case that the multibyteness of STRING and the current
8954 buffer doesn't match.
8955 (skip_syntaxes): New function.
8956 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
8957 SINGLE_BYTE_CHAR_P.
aca7a3d2 8958
73acf815 89592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8960
8961 * xfaces.c (QCfontset): New variable.
8962 (LFACE_FONTSET): New macro.
8963 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
8964 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
8965 (Finternal_set_lisp_face_attribute)
8966 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
8967 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
8968 check also LFACE_FONTSET_INDEX.
8969 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
8970 attrs[LFACE_FONT_INDEX].
8971 (syms_of_xfaces): Intern and staticpro QCfontset.
8972
8973 * dispextern.h (enum lface_attribute_index): New member
8974 LFACE_FONTSET_INDEX.
8975
8976 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
8977
73acf815 89782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8979
8980 * coding.c (coding_set_destination): Fix coding->destination for
8981 the case converting a region.
8982 (encode_coding_utf_8): Encode eight-bit chars as single byte.
8983 (encode_coding_object): Fix coding->dst_pos and
8984 coding->dst_pos_byte for the case converting a region.
8985
8986 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8987
8988 * character.h (BYTE8_STRING): New macro.
8989
8990 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8991
73acf815 89922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8993
8994 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8995 characters by octal form.
8996
8997 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8998
1f45f627 8999 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
9000 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9001 _fetch_multibyte_char_len.
aca7a3d2
MB
9002 (FETCH_CHAR_AS_MULTIBYTE): New macro.
9003
1f45f627 9004 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 9005
1f45f627 9006 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 9007 the case conversion change the byte length.
1f45f627 9008 (casify_region): Likewise.
aca7a3d2 9009
1f45f627 9010 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 9011
1f45f627 9012 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
9013 (syms_of_character): Setup Vprintable_chars.
9014
9015 * editfns.c (Fchar_equal): Fix for the unibyte case.
9016 (Finsert_byte): New function.
9017 (syms_of_editfns): Defsubr it.
9018
9019 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9020 of direct code 0x3ffff.
9021
9022 * search.c (Freplace_match): Fix for the unibyte case.
9023
73acf815 90242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9025
9026 * lread.c (safe_to_load_p): Fix the logic.
9027
9028 * syntax.c (scan_words): Don't treat characters belonging to
9029 different scripts as constituting a word.
9030
9031 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9032
1f45f627 9033 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
9034
9035 * emacs.c (main): In the case of --unibyte, instead of aborting on
9036 finding non-empty buffer, make it unibyte.
9037
73acf815 90382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9039
9040 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9041 to create a fontset.
9042
73acf815 90432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9044
9045 * character.c (Funibyte_char_to_multibyte): Doc fix.
9046
9047 * xfns.c [HAVE_STDLIB_H]: Fix last change.
9048
73acf815 90492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9050
9051 * fontset.c (fontset_add): Make the type `int'.
9052 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9053
4c4475a8
GM
9054 * character.c (unibyte_char_to_multibyte)
9055 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 9056 charset_unibyte, not charset_primary.
aca7a3d2 9057
1f45f627 9058 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 9059
1f45f627
GM
9060 * charset.c (charset_unibyte): Rename from charset_primary.
9061 (Funibyte_charset): Rename from Fprimary_charset.
9062 (Fset_unibyte_charset): Rename from Fset_primary_charset.
9063 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
9064
9065 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9066 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9067 it->multibyte_p is zero.
9068
9069 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 9070 Delete extern.
aca7a3d2 9071
73acf815 90722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9073
9074 * coding.c (Fdefine_coding_system_internal): Fix category setting
9075 for a coding system of type iso-2022.
9076
73acf815 90772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9078
1f45f627 9079 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 9080
73acf815 90812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9082
9083 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
9084 (next-word-boundary-function-table): Declare it as a Lisp variable
9085 in syms_of_syntax.
aca7a3d2
MB
9086 (scan_words): Call functions in Vnext_word_boundary_function_table
9087 if any.
9088
9089 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9090
9091 * fontset.c (fs_load_font): If fontp->charset is not negative,
9092 return fontp without setting its members.
9093
73acf815 90942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9095
aca7a3d2
MB
9096 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9097
9098 * m/sparc.h (HAVE_ALLOCA): Delete.
9099
9100 * s/irix6-5.h: Don't include strings.h.
9101 (bcopy, bzero, bcmp): Don't undef.
9102
9103 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9104
9105 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9106 (TIOCSIGSEND): Don't test IRIX6.
9107 (bcopy, bzero, bcmp): Define conditionally.
9108
73acf815 91092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9110
9111 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 9112 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
9113 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9114
9115 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9116 we are inserting a process output into a multibyte buffer.
9117
9118 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9119 multibyte_char_to_unibyte.
9120
9121 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9122 by the primary charset, make it eight-bit char.
9123 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9124
1f45f627
GM
9125 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9126 (charset_8_bit__control, charset_8_bit_graphic)
9127 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
9128 (define_charset_internal): New function.
9129 (syms_of_charset): Call define_charset_internal for pre-defined
9130 charsets.
9131
9132 * charset.h (charset_8_bit): Extern it.
9133
1f45f627 9134 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
9135 of Fset_buffer_multibyte.
9136 (encode_coding_raw_text): Increment p0 in the loop.
9137
1f45f627 9138 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 9139
1f45f627 9140 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
9141 for the change of Fset_buffer_multibyte.
9142
9143 * fns.c (Fstring_to_multibyte): New function.
9144 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9145
73acf815 91462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9147
9148 * xfns.c (x_put_x_image): Declare args.
9149
1f45f627 9150 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
9151 (try_font_list): Declare an arg.
9152
9153 * xdisp.c (message2_nolog, set_message): Declare an arg.
9154
9155 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9156
9157 * syntax.c (scan_sexps_forward): Declare an arg.
9158
9159 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9160 Declare an arg.
9161
9162 * lisp.h (Fnew_fontset): Declare.
9163
9164 * keymap.c (push_key_description): Call CHARACTERP correctly.
9165
1f45f627 9166 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
9167 (face_for_char): Delete unused vars.
9168 (Fset_fontset_font): Doc fix. Delete unused vars.
9169
9170 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9171
9172 * composite.c (update_compositions): Declare arg.
9173
9174 * cm.c (calccost, cmgoto): Declare args.
9175
9176 * charset.c: Remove `emacs' conditional. Doc fixes.
9177 (map_char_table_for_charset): Declare.
9178
1f45f627 9179 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 9180
1f45f627 9181 * ccl.c: Remove `emacs' conditional.
aca7a3d2 9182
73acf815 91832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9184
9185 The following changes are to allow specifying multiple font
9186 patterns for a character range (specified by script or charset).
9187
9188 * Makefile.in (abbrev.o): Depend on syntax.h.
9189 (xfaces.o): Depend on charset.h.
9190
9191 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9192 SINGLE_BYTE_CHAR_P.
9193
9194 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9195
9196 * character.h (Vchar_script_table): Extern it.
9197
1f45f627 9198 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
9199 (Vchar_script_table, Qchar_script_table): New variable.
9200 (syms_of_character): Declare Vchar_script_table as a lisp variable
9201 and initialize it.
9202
1f45f627 9203 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
9204 have property char-table-extra-slots, make no extra slot.
9205
1f45f627 9206 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
9207 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9208 SINGLE_BYTE_CHAR_P.
1f45f627
GM
9209 (choose_face_font, lookup_non_ascii_face, font_name_registry):
9210 Add prototypes.
9211 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9212 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9213
9214 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 9215 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
9216 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9217
9218 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 9219 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
9220 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9221 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9222 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9223 (fontset_ref_and_range, fontset_add, reorder_font_vector)
9224 (load_font_get_repertory): New functions.
1f45f627 9225 (fontset_set): Delete.
aca7a3d2 9226 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 9227 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
9228 (free_face_fontset): Use ASET istead of AREF (X) = Y.
9229 (face_for_char): Don't call lookup_face.
9230 (make_fontset_for_ascii_face): New arg FACE.
9231 (fs_load_font): New arg CHARSET_ID. Don't check
9232 Vfont_encoding_alist here.
9233 (find_font_encoding): New function.
9234 (list_fontsets): Use STRINGP, not ! NILP.
9235 (accumulate_script_ranges): New function.
9236 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9237 re-written to handle new fontset structure.
9238 (Ffontset_font): Return a copy of element.
9239 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
9240 docstring of font-encoding-alist.
9241
9242 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9243 (Fset_fotset_font): Fix arguments to 5.
9244
1f45f627 9245 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
9246
9247 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9248 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 9249 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
9250 lookup_named_face.
9251
9252 * xfaces.c: Include charset.h.
1f45f627
GM
9253 (load_face_font): Delete argument C. Change caller.
9254 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9255 (font_name_registry): New function.
9256 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 9257 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
9258 Lookup only ascii faces.
9259 (lookup_non_ascii_face): New function.
1f45f627
GM
9260 (lookup_named_face): Delete argument C. Change caller.
9261 (lookup_derived_face): Delete argument C. Change caller.
9262 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 9263 a string, just call font_list with it.
1f45f627
GM
9264 (choose_face_font): Delete arguments FACE and C. New arg
9265 FONT_SPEC. Change caller.
4c4475a8
GM
9266 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9267 Change caller.
aca7a3d2
MB
9268 (realize_non_ascii_face): New function.
9269 (realize_x_face): Call load_face_font here.
1f45f627 9270 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
9271 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9272 get a face ID.
9273 (dump_realized_face): Don't print charset of FACE.
9274
9275 * xfns.c (x_set_font): Always call x_new_fontset and
9276 store_frame_parameter.
9277 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 9278 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
9279
9280 * xterm.h (x_get_font_repertory): Extern it.
9281
9282 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9283 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9284 it->multibyte_p is zero.
9285 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9286 (x_new_fontset): If FONTSETNAME doesn't match any existing
9287 fontsets, create a new one.
9288 (x_get_font_repertory): New function.
9289
73acf815 92902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9291
9292 * coding.c (Ffind_coding_systems_region_internal): Detect an
9293 ASCII only string correctly.
9294
9295 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9296 version is 0.
9297
73acf815 92982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9299
9300 * lread.c: Include "coding.h".
1f45f627
GM
9301 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9302 (load_each_byte, unread_char): New variables.
9303 (readchar_backlog): Delete.
aca7a3d2
MB
9304 (readchar): Return a character unless load_each_byte is nonzero.
9305 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9306 cons. If unread_char is not -1, simply return it.
9307 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
9308 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
9309 (read_multibyte): Delete.
aca7a3d2
MB
9310 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9311 (read_emacs_mule_char): New functions.
9312 (Fload): Even if the file doesn't have the extention ".elc", if
9313 safe_to_load_p returns a positive version number, assume that the
9314 file contains bytecompiled code. If the version is less than 22,
9315 load the file while decoding multibyte sequences by emacs-mule.
9316 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
9317 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
9318 (Fread_from_string): Pay attention to the case that STREAM is a cons.
9319 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
9320 (read1): Set load_each_byte to 1 temporarily while handling
9321 #@NUMBER. Don't call read_multibyte.
9322 (read_vector): Call Fread with a cons. If readcharfun is
9323 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 9324 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
9325 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
9326 and Qload_force_doc_strings.
9327
73acf815 93282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9329
9330 * xdisp.c (face_before_or_after_it_pos): Call
9331 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9332
73acf815 93332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9334
9335 * character.h (TRAILING_CODE_P): New macro.
1f45f627 9336 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
9337 (string_char_with_unification): Fix prototype.
9338 (Vscript_alist): Extern it.
9339
9340 * character.c (Vscript_alist): New variable.
4c4475a8
GM
9341 (string_char_with_unification, str_as_unibyte)
9342 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
9343 (syms_of_character): Declare script-alist as a Lisp variable.
9344
9345 * charset.h (Vcharset_ordered_list): Extern it.
9346 (charset_ordered_list_tick): Extern it.
9347 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
9348 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
9349 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 9350 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 9351 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
9352
9353 * charset.c (charset_ordered_list_tick): New variable.
9354 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
9355 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
9356 deunify intead of unify a charset.
9357 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
9358 (find_charsets_in_text): Add `const' to arguemnts and local variables.
9359 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
9360 detecting of invalid code.
9361 (Fset_charset_priority): Increment charset_ordered_list_tick.
9362 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
9363 and TO_CODE.
9364
9365 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
9366 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
9367 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
9368 (decode_coding_ccl, consume_chars)
9369 (Ffind_coding_systems_region_internal)
9370 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
9371
9372 * print.c (print_object): Use octal form for printing the
9373 contents of a bool vector.
9374
73acf815 93752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9376
9377 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
9378 <version == 20>: Refuse to load.
9379
73acf815 93802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9381
9382 * fns.c: Move coding.h.
9383 (Qcodeset, Qdays, Qmonths): New.
9384 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 9385 (Flocale_codeset): Delete.
aca7a3d2 9386 (Flanginfo): New function.
1f45f627 9387 (syms_of_fns): Change accordingly.
aca7a3d2
MB
9388
9389 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
9390
73acf815 93912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9392
9393 * casetab.c (init_casetab_once, init_casetab_once): Fix
9394 CHAR_TABLE_SET call.
9395
9396 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
9397
9398 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
9399
9400 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
9401 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
9402 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
9403
9404 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
9405
9406 * coding.c (ENCODE_DESIGNATION, decode_eol)
9407 (make_conversion_work_buffer, code_conversion_restore)
9408 (Fdefine_coding_system_internal): Convert Lisp types.
9409 (code_conversion_restore): Use EQ, not ==.
9410 (Fencode_coding_string): Fix code_convert_string call.
9411
9412 * coding.h (code_convert_region): Fix prototype.
9413
1f45f627 9414 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
9415
9416 * fontset.c (fontset_ref, fontset_set, fs_load_font)
9417 (Ffontset_info): Convert Lisp types.
9418
9419 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
9420
9421 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
9422
9423 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
9424
9425 * chartab.c: Include "...h", not <...h> in some cases.
9426
9427 * callproc.c (Fcall_process): Remove unused variables.
9428
73acf815 94292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9430
9431 * coding.c (Fset_coding_system_priority): Allow null arg list.
9432
73acf815 94332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9434
9435 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9436 (Fself_insert_and_exit): Use CHARACTERP.
9437
9438 * callproc.c (Fcall_process): Remove unused vars.
9439
9440 * xterm.c (XTread_socket): Add extra dead keysyms.
9441
9442 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
9443
9444 * dispextern.h: Remove prototypes for redraw_frame,
9445 redraw_garbaged_frames.
9446
9447 * cmds.c (Fself_insert_command): Use CHARACTERP.
9448
9449 * chartab.c (make_sub_char_table): Remove unused var.
9450 (Fset_char_table_default, Fmap_char_table): Doc fix.
9451
9452 * keymap.c (access_keymap): Remove generic char code.
9453 (push_key_description): Use CHARACTERP.
9454
73acf815 94552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9456
9457 * charset.c: Doc fixes.
9458 (Funify_charset): Extra checking.
9459
73acf815 94602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9461
9462 * lread.c: Remove some unused variables.
9463 (safe_to_load_p): If safe, return the magic number version byte.
9464 (Fload): Maybe use load-with-code-conversion.
9465
73acf815 94662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9467
9468 * category.c (Fmodify_category_entry): Don't modify the contents
9469 of category_set for characters out of the range. Avoid
9470 unnecessary modification.
9471
1f45f627 9472 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
9473 Vchar_unify_table. The default value of the table is now nil.
9474
9475 * character.c (syms_of_character): Setup Vchar_width_table for
9476 eight-bit-control and raw-byte chars.
9477
9478 * charset.h (enum define_charset_arg_index): Delete
9479 charset_arg_parents and add charset_arg_subset and
9480 charset_arg_superset.
9481 (enum charset_attr_index): Delete charset_parents and add
9482 charset_subset and charset_superset.
9483 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
9484 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 9485 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
9486 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
9487 (CHARSET_SUPERSET): New macros.
9488 (charset_work): Extern it.
9489 (ENCODE_CHAR): Use charset_work.
1f45f627 9490 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
9491 (map_charset_chars): Extern it.
9492
9493 * charset.c (load_charset_map): Set the default value of encoder
9494 and deunifier char-tables to nil.
1f45f627 9495 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
9496 map_char_table_for_charset instead of map_char_table.
9497 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 9498 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
9499 `define-charset' (:parents -> :subset or :superset).
9500 (charset_work): New variable.
4c4475a8
GM
9501 (encode_char, syms_of_charset): Adjust for the change of
9502 Fdefine_charset_internal.
aca7a3d2
MB
9503 (Ffind_charset_string): Setup the vector `charsets' correctly.
9504
1f45f627 9505 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 9506 the previous change.
1f45f627 9507 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
9508 (map_sub_char_table_for_charset): New function.
9509 (map_char_table_for_charset): New function.
9510
9511 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 9512 (describe_char_table): Delete.
aca7a3d2 9513
1f45f627 9514 * lisp.h (map_charset_chars): Delete.
aca7a3d2 9515
73acf815 95162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9517
9518 * fns.c (count_combining): Comment out (unused).
9519 (Flocale_codeset): New.
9520 (syms_of_fns): Defsubr it.
9521
9522 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 9523 (size_t): Remove.
aca7a3d2 9524
73acf815 95252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9526
6f69e89b 9527 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 9528
73acf815 95292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9530
9531 * character.c (syms_of_character): Set the default value of
9532 Vprintable_chars to Qnil.
9533
73acf815 95342008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9535
9536 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
9537
73acf815 95382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9539
9540 * charset.c (load_charset_map): Handle the case that from < to
9541 correctly.
9542
4c4475a8
GM
9543 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
9544 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
9545 Pay attention to raw-8-bit chars.
aca7a3d2 9546
73acf815 95472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9548
4c4475a8
GM
9549 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
9550 It is not bytecompiled now.
aca7a3d2
MB
9551
9552 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
9553 (charset_jisx0208): New variables.
9554 (Fdefine_charset_internal): Setup them if appropriate.
9555 (init_charset_once): Initialize them to -1.
9556
1f45f627
GM
9557 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
9558 (charset_jisx0208): Extern them.
aca7a3d2 9559
1f204af3 9560 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 9561 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
9562 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
9563 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
9564 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
9565 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
9566 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
9567 (encode_coding_iso_2022): Change the 1st arg to
9568 ENCODE_ISO_CHARACTER to a variable.
9569
73acf815 95702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9571
9572 * charset.h (enum define_charset_arg_index): New enums
9573 charset_arg_min_code and charset_arg_max_code.
9574 (struct charset): New member char_index_offset.
9575
4c4475a8
GM
9576 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
9577 Take charset->char_index_offset into account.
aca7a3d2
MB
9578 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
9579 args[charset_arg_max_code]. Setup charset.char_index_offset.
9580 (syms_of_charset): Fix args to Fdefine_charset_internal.
9581
73acf815 95822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9583
9584 * coding.c (decode_coding_utf_8): Reject overlong sequences.
9585
73acf815 95862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9587
9588 * coding.c: Doc fixes.
9589 (Fcoding_system_aliases): Fix return value.
9590 (Qmac): Remove (duplicated) definition.
9591
73acf815 95922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9593
9594 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
9595 functions.
9596
9597 * character.c (Fstring): Doc fix.
9598
9599 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
9600
9601 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
9602 ids.
9603 (font-encoding-alist): Doc fix.
9604
73acf815 96052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9606
9607 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 9608 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
9609
9610 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9611 for K&R.
9612
9613 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
9614
9615 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 9616 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 9617
1f45f627 9618 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
9619
9620 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
9621
73acf815 96222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9623
9624 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
9625
1f45f627 9626 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 9627
2a2e8de7 96282008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
9629
9630 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
9631
1f45f627 9632 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 9633
73acf815 96342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9635
4c4475a8 9636 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 9637 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 9638
73acf815 96392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9640
1f45f627 9641 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
9642 Fdefine_coding_system_internal.
9643 (Fdefine_coding_system_internal): For a coding system of
9644 `charset' type, store a list of charset IDs in
9645 `charset_attr_charset_valids' element of coding attributes.
9646
73acf815 96472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9648
9649 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
9650 (emacs_mule_char): New arg src. Delete arg `composition'. Change
9651 caller. Handle 2-byte and 3-byte charsets correctly.
9652 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
9653 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
9654 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
9655 (DECODE_EMACS_MULE_21_COMPOSITION): Call
9656 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
9657 sequence.
9658 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 9659 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
9660 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
9661 and alt&rule composition.
9662 (decode_coding_iso_2022): Handle composition correctly.
9663 (init_coding_once): Setup emacs_mule_bytes for private charsets.
9664
9665 * charset.c (Fdefine_charset_internal): Fix bug for the case of
9666 re-defining a charset. If the charset has :emacs-mule-id, setup
9667 emacs_mule_bytes.
1f45f627 9668 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 9669
73acf815 96702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9671
4c4475a8
GM
9672 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
9673 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
9674 encoding, produce a character specified by
9675 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 9676
73acf815 96772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9678
9679 * xterm.c (XSetIMValues): Declare.
9680
9681 * process.c: Conditionally include sys/wait.h, pty.h.
9682
1f45f627 9683 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 9684
1f45f627 9685 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
9686
9687 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
9688
9689 * fontset.c (Fclear_face_cache): Declare.
1f45f627 9690 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
9691 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
9692 variables.
9693
9694 * character.h (string_escape_byte8): Declare.
9695
9696 * charset.c (load_charset_map, load_charset_map_from_file): Remove
9697 unused vars.
9698 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
9699 (Fmap_charset_chars): Doc fix.
9700
1f45f627 9701 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
9702 (Fset_coding_system_priority, Fset_coding_system_priority)
9703 (Fdefine_coding_system_internal): Doc fix.
9704
73acf815 97052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9706
9707 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
9708
73acf815 97092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9710
9711 * character.c (string_escape_byte8): Make multibyte string with
9712 correct size.
9713
9714 * charset.c (Fmake_char): Delete unnecessary code.
9715
73acf815 97162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9717
9718 * xfns.c (x_encode_text): Allocate coding.destination here, and
9719 call encode_coding_object with dst_object Qnil.
9720
9721 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
9722 multibyte form correctly.
9723
9724 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
9725 against Vfont_encoding_alist.
9726
9727 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
9728 handling of charset list.
9729 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
9730 (decode_coding_object): Move point to coding->dst_pos before
9731 calling post-read-conversion function.
9732 (encode_coding_object): Give correct arguments to
9733 pre-write-conversion. Ignore the return value of
9734 pre-write-conversion function. Pay attention to the case that
9735 pre-write-conversion changes the current buffer. If dst_object is
9736 Qt, even if coding->src_bytes is zero, allocate at least one byte
9737 to coding->destination.
9738
9739 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
9740
9741 * charset.c (Fmake_char): Make it more backward compatible.
9742 (Fmap_charset_chars): Fix docstring.
9743
73acf815 97442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9745
9746 * coding.c: Doc fixes.
9747 (Fdefine_coding_system_alias): Use names, not symbols, in
9748 coding-system-alist.
9749
73acf815 97502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9751
9752 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
9753 of calling free_realized_face.
9754
2a2e8de7 97552008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 9756
1f45f627
GM
9757 * charset.c (read_hex): Don't treat SPC as a comment starter.
9758 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
9759 (Fdecode_char): Fix typo.
9760
73acf815 97612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9762
9763 * charset.h (struct charset): New member `code_space_mask'.
9764
1f45f627 9765 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
9766 (encode_coding_charset, Fdefine_coding_system_internal):
9767 Delete the local variable charset.
aca7a3d2
MB
9768 (Fdefine_coding_system_internal): Setup
9769 attrs[coding_attr_charset_valids] correctly.
9770
9771 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
9772 member to check if CODE is valid or not.
9773 (Fdefine_charset_internal): Initialize `code_space_mask' member.
9774 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
9775 is within the range of charset->min_code and carset->max_code.
9776
73acf815 97772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9778
9779 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
9780
9781 * dispextern.h (generate_ascii_font): Fix return type.
9782
9783 * xfaces.c (generate_ascii_font): Fix arg declaration.
9784
9785 * coding.c (coding_inherit_eol_type)
9786 (Fset_terminal_coding_system_internal)
9787 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
9788
73acf815 97892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9790
9791 * coding.c (decode_coding_charset, encode_coding_charset): Handle
9792 multiple charsets correctly.
9793
73acf815 97942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9795
9796 * search.c (boyer_moore): Fix handling of mulitbyte character
9797 translation.
9798
9799 * xdisp.c (display_mode_element): When the variable `elt' is
9800 changed, update `this' and `lisp_string'.
9801
73acf815 98022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9803
9804 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9805
9806 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 9807 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
9808
9809 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
9810 (load_charset_map): Rename from parse_charset_map. New args
9811 entries and n_entries. Change caller.
9812 (load_charset_map_from_file): Rename from load_charset_map.
9813 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
9814 the tail.
9815 (load_charset_map_from_vector): New function.
9816 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9817 (encode_char): If the charset is compact, change a character index
9818 to a code point.
9819
9820 * coding.c (coding_alloc_by_making_gap): Check the case that the
9821 source and destination are the same correctly.
9822 (decode_coding_raw_text): Set coding->consumed_char and
9823 coding->consumed to 0.
9824 (produce_chars): If coding->chars_at_source is nonzero, update
9825 coding->consumed_char and coding->consumed before calling
9826 alloc_destination.
9827 (Fdefine_coding_system_alias): Register ALIAS in
9828 Vcoding_system_alist.
9829 (syms_of_coding): Define `no-convesion' coding system at the tail.
9830
9831 * fileio.c (Finsert_file_contents): Set coding_system instead of
9832 val. If the current buffer is multibyte, always call
9833 decode_coding_gap.
9834
9835 * xfaces.c (try_font_list): Give higher priority to fontset's
9836 family than face's family.
9837
73acf815 98382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9839
9840 * callproc.c (Fcall_process): Be sure to give the current buffer
9841 to decode_coding_c_string.
9842
9843 * xfaces.c (try_font_list): Give a family specified in a fontset
9844 higher priority than a family specified in a face.
9845
73acf815 98462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9847
9848 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9849 Fix arguments to insert_from_buffer.
9850
9851 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9852
73acf815 98532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9854
9855 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9856 (decode_coding_gap): Set coding->dst_multibyte correctly.
9857
73acf815 98582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9859
9860 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 9861 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
9862 (encode_coding_utf_16): Substitute coding->default_char for
9863 non-Unicode characters.
9864 (decode_coding): Don't call record_insert here.
9865 (setup_coding_system): Initialize `surrogate' of
9866 coding->spec.utf_16 to 0.
9867 (EMIT_ONE_BYTE): Fix for multibyte case.
9868
9869 * insdel.c (insert_from_gap): Call record_insert.
9870
73acf815 98712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9872
9873 * casefiddle.c (casify_region): Fix multibyte case.
9874
9875 * character.c (c_string_width): Add return type `int'.
1f45f627 9876 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
9877
9878 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 9879 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
9880 (CHAR_STRING_ADVANCE): Make it do-while statement.
9881
1f45f627 9882 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
9883 DEPTH == 3. Add workaround code for a GCC optimization bug.
9884
9885 * charset.c (parse_charset_map): Remove an unused variable.
9886
9887 * coding.c: Delete unused variables.
9888
9889 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
9890 earlier. If inserted is zero and the coding system doesn't
9891 require flushing, don't call decode_coding_gap.
9892
9893 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
9894
73acf815 98952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9896
9897 The following changes are for using Unicode as an internal
9898 character model, and use UTF-8 format for buffer/string
9899 representation.
9900
1f45f627 9901 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
9902 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
9903
9904 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 9905 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
9906 (*.o): For many files, change dependency on charset.h to
9907 character.h, and add dependency on character.h.
9908 (character.o, chartab.o): New targets.
9909
1f45f627
GM
9910 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
9911 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
9912 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
9913 of "charset.h".
9914
9915 * dired.c, filelock.c: Include "character.h".
9916
9917 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 9918 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
9919 (syms_of_alloc): Remove defsubr for Smake_char_table.
9920
9921 * buffer.c: Include "character.h" instead of "charset.h", don't
9922 include "coding.h".
1f45f627 9923 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
9924
9925 * buffer.h: EXFUN Fbuffer_live_p.
9926
9927 * callproc.c: Include "character.h" instead of "charset.h".
9928 (Fcall_process): Big change for the new code-conversion APIs.
9929
9930 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 9931 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
9932 map_char_table spec.
9933 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
9934 accessing the char table structure.
9935
9936 * chartab.c: New file that implements char table.
9937
9938 * category.c: Include "character.h".
9939 (copy_category_entry): New function.
9940 (copy_category_table): Call map_char_table and copy_category_entry.
9941 (Fmake_category_table): Initialize all top-vel slots.
9942 (char_category_set): New function.
1f45f627 9943 (modify_lower_category_set): Delete.
aca7a3d2
MB
9944 (Fmodify_category_entry): Call char_table_ref_and_range.
9945
9946 * category.h (CATEGORY_SET): Just call char_category_set.
9947
9948 * ccl.c: Include "character.h".
9949 (Qccl, Qcclp): New variables.
9950 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
9951 it's less than 256.
1f45f627
GM
9952 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
9953 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 9954 and DST type.
1f45f627
GM
9955 (ccl_driver): Change types of argument, adjust code accordingly.
9956 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
9957 ccl_driver.
9958 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
9959
1f45f627
GM
9960 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
9961 New members src_multibyte, dst_multibyte, consumed, and produced.
9962 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 9963 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 9964 (ccl_driver): Update prototype.
aca7a3d2
MB
9965 (Qccl, Qcclp, Fccl_program_p): Extern them.
9966 (CHECK_CCL_PROGRAM): New macro.
9967
9968 * character.c, character.h, chartab.c: New files.
9969
1f45f627
GM
9970 * charset.c: Mostly re-written. Move character and multibyte sequence
9971 handling codes to character.c.
aca7a3d2 9972
1f45f627
GM
9973 * charset.h: Mostly re-written. Move character and multibyte sequence
9974 handling codes to character.h.
aca7a3d2
MB
9975
9976 * coding.c, coding.h: Mostly re-written.
9977
9978 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
9979 (CHAR_WIDTH): Move to character.h.
9980 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 9981
1f45f627
GM
9982 * composite.h (enum composition_method): Change order of enumeration
9983 symbols.
aca7a3d2
MB
9984
9985 * data.c: Include "character.h" instead of "charset.h".
9986 (Faref): Call CHAR_TABLE_REF for a char table.
9987 (Faset): Call CHAR_TABLE_SET for a char table.
9988
1f45f627
GM
9989 * dispextern.h (free_realized_face, check_face_attribytes)
9990 (generate_ascii_font): Extern them.
9991 (free_realized_multibyte_face): Delete extern.
aca7a3d2 9992
1f45f627 9993 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
9994 table structure.
9995
9996 * editfns.c: Include "character.h" instead of "charset.h".
9997 (Fchar_to_string): Always call CHAR_STRING.
9998
9999 * emacs.c (main): Call init_charset_once, init_charset,
10000 syms_of_chartab, and syms_of_character.
10001
10002 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 10003 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 10004 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 10005 (build_annotations_2): Delete.
aca7a3d2
MB
10006 (e_write): Big change for the new code-conversion API.
10007
10008 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 10009 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10010 (Fcopy_sequence): Call copy_char_table for a char table.
10011 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
10012 (string_char_to_byte, string_byte_to_char): Adjust for the new
10013 multibyte form.
1f45f627
GM
10014 (internal_equal): Adjust for the change of char table structure.
10015 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10016 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10017 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10018 (char_table_translate, optimize_sub_char_table)
10019 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 10020 chartab.c.
1f45f627
GM
10021 (char_table_ref_and_index): Delete.
10022 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 10023 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
10024 Vcoding_category_list. Adjust for the new code-conversion API.
10025 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
10026 chartab.c.
10027
10028 * fontset.c: Mostly re-written.
10029
1f45f627 10030 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 10031 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
10032 (fontset_font_pattern, fs_load_font): Update prototype.
10033 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
10034
10035 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 10036 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
10037
10038 * insdel.c: Include "character.h" instead of "charset.h".
10039 (copy_text): Don't refer to Vnonascii_translation_table.
10040 (insert_from_gap): New function.
10041
10042 * keyboard.c: Include "character.h" instead of "charset.h".
10043 (command_loop_1): Never call direct_output_forward_char before
10044 a non-ASCII character.
10045 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 10046 translate a character.
aca7a3d2
MB
10047
10048 * keymap.c: Include "character.h".
10049 (store_in_keymap): Handle the case that IDX is a cons.
10050 (Fdefine_key): Handle the case that KEY is a cons and the car part
10051 is also a cons (range).
1f45f627 10052 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
10053 (describe_vector): Call describe_char_table for a char table.
10054 (describe_char_table): New function.
10055
10056 * keymap.h (describe_char_table): Extern it.
10057
10058 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10059 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
10060 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10061 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10062 Delete.
10063 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
10064 structure.
10065 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
10066 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10067 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 10068 (chartab_size): Extern it.
1f45f627 10069 (struct Lisp_Char_Table): Re-design.
aca7a3d2 10070 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
10071 (HASH_KEY, HASH_VALUE): Move from fns.c.
10072 (CHARACTERBITS): Define as 22.
10073 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
10074 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10075 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
10076 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10077 (code_convert_string_norecord): Deleted extern.
10078 (init_character_once, syms_of_character, init_charset)
10079 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
10080
10081 * lread.c: Include "character.h".
10082 (read_multibyte): New arg NBYTES.
1f45f627
GM
10083 (read_escape): Change the meaning of returned *BYTEREP.
10084 (to_multibyte): Delete.
10085 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
10086
10087 * print.c: Include "character.h" instead of "charset.h".
10088 (print_string): Convert 8-bit raw bytes to octal form by
10089 string_escape_byte8.
1f45f627 10090 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
10091 raw bytes always in octal form. Handle sub char table correctly.
10092
10093 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
10094 (read_process_output, send_process): Adjust for the new
10095 code-conversion API.
aca7a3d2 10096
1f45f627 10097 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
10098
10099 * regex.c: Include "character.h" instead of "charset.h".
10100 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10101 (regex_compile): Accept a range whose starting and ending
10102 character have different leading bytes.
1f45f627 10103 (analyse_first): Adjust for the above change.
aca7a3d2
MB
10104
10105 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10106 (search_buffer, boyer_moore): Adjust for the new multibyte form.
10107 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
10108
10109 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 10110 (syntax_parent_lookup): Delete.
aca7a3d2 10111 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 10112 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
10113 (init_syntax_once): Call char_table_set_range instead of directly
10114 accessing the structure of a char table.
10115
10116 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 10117 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
10118 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10119 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10120
10121 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
10122 (encode_terminal_code, write_glyphs): Adjust for the new
10123 code-conversion API.
aca7a3d2
MB
10124 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10125
1f45f627 10126 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
10127
10128 * xdisp.c: Include "character.h".
1f45f627
GM
10129 (get_next_display_element): Adjust for the new multibyte form.
10130 (disp_char_vector): Adjust for the new char table structure.
10131 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 10132 coding system.
1f45f627 10133 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
10134
10135 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 10136 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
10137 FS_LOAD_FONT.
10138 (generate_ascii_font): New function.
1f45f627
GM
10139 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10140 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 10141 (free_realized_face): Make it public.
1f45f627 10142 (free_realized_faces_for_fontset): Rename from
aca7a3d2 10143 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 10144 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
10145 fontset_font_pattern and FS_LOAD_FONT.
10146
10147 * xfns.c: Include "character.h".
1f45f627 10148 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
10149
10150 * xselect.c: Don't include "charset.h".
1f45f627 10151 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
10152
10153 * xterm.c: Include "character.h".
1f45f627 10154 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
10155 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10156 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
10157 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10158 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
10159 (XTread_socket): Adjust for the new code-conversion API.
10160 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10161 (x_load_font): Adjust for the change of struct font.
aca7a3d2 10162
d6abfc14
SM
101632008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10164
10165 * xfaces.c (face_at_buffer_position): Remove unused vars.
10166
0acdaf8d
KH
101672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10168
4c4475a8
GM
10169 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10170 Fix overflow checking.
0acdaf8d 10171
6c8a0ebf
GM
101722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10173
10174 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10175 Cancel previous change.
10176
101772008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10178
10179 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10180 ccl->eight_bit_control. Fix check for buffer overflow.
10181 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10182 (ccl_driver): Initialize extra_bytes to 0.
10183
a32aad64
KH
101842008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10185
10186 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10187 return it ORed with ctrl_modifier.
10188
8b329dba
MB
101892008-01-29 Miles Bader <miles@gnu.org>
10190
10191 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10192
548667aa
JR
101932008-01-28 Jason Rumney <jasonr@gnu.org>
10194
10195 * w32.c (stat): Don't double check for networked drive.
10196
0975aa24
SM
101972008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10198
ef264c42
SM
10199 * window.c (run_window_configuration_change_hook): New function.
10200 Code extracted from set_window_buffer. Set the selected frame.
10201 (set_window_buffer): Use it.
10202 * window.h (run_window_configuration_change_hook): Declare.
10203 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10204
0975aa24
SM
10205 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10206
9c28b587
DN
102072008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
10208
10209 * Makefile.in: Remove references to unused macros.
10210
c617afce
EZ
102112008-01-26 Eli Zaretskii <eliz@gnu.org>
10212
10213 * w32.c (g_b_init_get_sid_sub_authority)
10214 (g_b_init_get_sid_sub_authority_count): New static variables.
10215 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10216 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
10217 (init_user_info): Use them to retrieve uid and gid.
10218 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
10219 (fstat): Use pw_uid and pw_gid from the_passwd structure for
10220 st_uid and st_gid of the file.
c617afce 10221
302d7d54
JR
102222008-01-26 Jason Rumney <jasonr@gnu.org>
10223
10224 * w32.c (logon_network_drive): New function.
10225 (stat): Use it.
10226
3ac7a21e
CY
102272008-01-26 Chong Yidong <cyd@stupidchicken.com>
10228
10229 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10230 invisible text covered with an ellipsis.
10231
bbb9fc1f
RS
102322008-01-25 Richard Stallman <rms@gnu.org>
10233
10234 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10235 jump back to beginning. Move some other initializations after that.
10236 (Qwindow_text_change_functions, Vwindow_text_change_functions):
10237 New variables.
10238 (syms_of_xdisp): Init them.
10239
10240 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10241
0975aa24
SM
10242 * buffer.c (reset_buffer_local_variables):
10243 Implement `permanent-local-hook'.
bbb9fc1f 10244 (Qpermanent_local_hook): New variable.
0975aa24 10245 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 10246
79235cbe
MA
102472008-01-25 Michael Albinus <michael.albinus@gmx.de>
10248
10249 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10250
ccd8f7fe
TTN
102512008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
10252
10253 * fns.c (Fclrhash): Return TABLE.
10254
dfbe40f2 102552008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
10256
10257 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10258 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10259 is set even without positional changes.
10260 (x_scroll_bar_clear): Set bar->redraw_needed_p.
10261
10262 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10263
dfbe40f2 102642008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 10265
d6169680
JR
10266 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10267
602e142f
JR
10268 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10269 the unicode range available in MULE by locale-coding-system.
c041e2d1 10270 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
10271 earlier.
10272
dfbe40f2 102732008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
10274
10275 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10276 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 10277 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
10278 when used on child processes.
10279
8c7a4ac5
MA
102802008-01-21 Michael Albinus <michael.albinus@gmx.de>
10281
e0df1b73 10282 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 10283 Fdbus_method_return.
e0df1b73 10284 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 10285 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 10286 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 10287
8abe0f97
MR
102882008-01-20 Martin Rudalics <rudalics@gmx.at>
10289
10290 * undo.c (undo_inhibit_record_point): New variable.
10291 (syms_of_undo): Initialize it.
10292 (record_point): Don't record point when undo_inhibit_record_point
10293 is set.
10294
c3b232e4
SM
102952008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
10296
e69c4cae
SM
10297 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10298
823e0ebb
SM
10299 * xdisp.c (Qauto_hscroll_mode): New var.
10300 (syms_of_xdisp): Initialize it.
10301 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10302 window's buffer.
10303 (hscroll_windows): Don't check automatic_hscrolling_p here.
10304
c3b232e4
SM
10305 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10306 vscroll if we're setting window-buffer to the value it already has.
10307
76ed5e01
DN
103082008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
10309
10310 * m/intel386.h: Remove references to XENIX.
10311
55e6d9b2
AS
103122008-01-17 Andreas Schwab <schwab@suse.de>
10313
10314 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10315 instead of HAVE_X86_64_LIB64_DIR.
10316 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10317
b16ed52d
GM
103182008-01-17 Glenn Morris <rgm@gnu.org>
10319
10320 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
10321 to HAVE_X86_64_LIB64_DIR.
10322
6bed5c4a
DN
103232008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
10324
10325 * s/irix3-3.h:
10326 * s/irix4-0.h:
10327 * s/386-ix.h:
10328 * s/domain.h:
10329 * s/hpux9-x11r4.h:
10330 * s/hpux9shxr4.h: Remove files for systems no longer supported.
10331
10332 * sysdep.c: Remove code containing references to symbols defined
10333 by unsupported systems.
10334
fdecf907
GM
103352008-01-16 Glenn Morris <rgm@gnu.org>
10336
10337 * coding.c (select-safe-coding-system-function): Doc fix.
10338
9292328f
GM
103392008-01-15 Glenn Morris <rgm@gnu.org>
10340
10341 * config.in: Revert 2008-01-13 change: this is a generated file.
10342
944df511
MO
103432008-01-13 Tom Tromey <tromey@redhat.com>
10344
10345 * lisp.h: Fix typo.
10346
8111ec05
DN
103472008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10348
f40f5dc3
DN
10349 * m/sequent-ptx.h:
10350 * m/sequent.h:
10351 * s/ptx.h:
10352 * s/ptx4-2.h:
10353 * s/ptx4.h: Remove files for systems no longer supported.
10354
ce20b664 10355 * callproc.c (Fcall_process): Fix previous change.
8111ec05 10356
e39a993c
DN
103572008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10358
052e457f 10359 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 10360
290afd83
JB
10361 * m/mips.h:
10362 * m/intel386.h:
e39a993c
DN
10363 * callproc.c:
10364 * config.in:
10365 * ecrt0.c:
10366 * emacs.c:
10367 * fileio.c:
10368 * frame.c:
10369 * getpagesize.h:
10370 * keyboard.c:
10371 * lread.c:
10372 * process.c:
10373 * puresize.h:
10374 * sysdep.c:
10375 * systty.h:
10376 * syswait.h:
10377 * unexec.c:
10378 * xdisp.c:
10379 * alloc.c: Remove code containing references to symbols defined by
10380 unsupported systems.
10381
81cd7687
KH
103822008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
10383
10384 * coding.c (detect_coding_mask): Fix previous change.
10385
218b3b76
KH
103862008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
10387
10388 * coding.c (detect_coding_iso2022): New arg
10389 latin_extra_code_state. Allow Latin extra codes only
10390 when *latin_extra_code_state is nonzero.
10391 (detect_coding_mask): If there is a NULL byte, detect the encoding
10392 as UTF-16 or binary. If Latin extra codes exist, detect the
10393 encoding as ISO-2022 only when there's no other proper encoding is
10394 found.
10395
59ce725a 103962008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 10397
59ce725a
MB
10398 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
10399 #ifdef MAC_OS.
048addec 10400
59ce725a 104012008-01-08 Richard Stallman <rms@gnu.org>
048addec 10402
59ce725a 10403 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 10404
8290574e
NR
104052008-01-06 Nick Roberts <nickrob@snap.net.nz>
10406
a0a3805c 10407 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
10408 menu bar in parentheses.
10409
f3041af1
DN
104102008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
10411
10412 * m/7300.h:
10413 * m/acorn.h:
10414 * m/alliant-2800.h:
10415 * m/alliant.h:
10416 * m/alliant1.h:
10417 * m/alliant4.h:
10418 * m/altos.h:
10419 * m/amdahl.h:
10420 * m/apollo.h:
10421 * m/att3b.h:
10422 * m/aviion-intel.h:
10423 * m/aviion.h:
10424 * m/celerity.h:
10425 * m/clipper.h:
10426 * m/cnvrgnt.h:
10427 * m/convex.h:
10428 * m/cydra5.h:
10429 * m/delta88k.h:
10430 * m/dpx2.h:
10431 * m/dual.h:
10432 * m/elxsi.h:
10433 * m/f301.h:
10434 * m/gould-np1.h:
10435 * m/gould.h:
10436 * m/i860.h:
10437 * m/ibmps2-aix.h:
10438 * m/ibmrt-aix.h:
10439 * m/ibmrt.h:
10440 * m/irist.h:
10441 * m/is386.h:
10442 * m/isi-ov.h:
10443 * m/mega68.h:
10444 * m/mg1.h:
10445 * m/news-r6.h:
10446 * m/news-risc.h:
10447 * m/news.h:
10448 * m/nh3000.h:
10449 * m/nh4000.h:
10450 * m/ns16000.h:
10451 * m/ns32000.h:
10452 * m/nu.h:
10453 * m/orion.h:
10454 * m/orion105.h:
10455 * m/paragon.h:
10456 * m/pfa50.h:
10457 * m/plexus.h:
10458 * m/pyramid.h:
10459 * m/pyrmips.h:
10460 * m/sh3el.h:
10461 * m/sps7.h:
10462 * m/sr2k.h:
10463 * m/stride.h:
10464 * m/sun1.h:
10465 * m/sun2.h:
10466 * m/sun3-68881.h:
10467 * m/sun3-fpa.h:
10468 * m/sun3-soft.h:
10469 * m/sun3.h:
10470 * m/sun386.h:
10471 * m/symmetry.h:
10472 * m/tad68k.h:
10473 * m/tahoe.h:
10474 * m/targon31.h:
10475 * m/tek4300.h:
10476 * m/tekxd88.h:
10477 * m/tower32.h:
10478 * m/tower32v3.h:
10479 * m/ustation.h:
10480 * m/wicat.h:
10481 * m/xps100.h:
10482 * s/cxux.h:
10483 * s/cxux7.h:
10484 * s/dgux.h:
10485 * s/dgux4.h:
10486 * s/dgux5-4-3.h:
10487 * s/dgux5-4r2.h:
10488 * s/esix.h:
10489 * s/esix5r4.h:
10490 * s/hiuxmpp.h:
10491 * s/hiuxwe2.h:
10492 * s/iris3-5.h:
10493 * s/iris3-6.h:
10494 * s/isc2-2.h:
10495 * s/isc3-0.h:
10496 * s/isc4-0.h:
10497 * s/isc4-1.h:
10498 * s/newsos5.h:
10499 * s/newsos6.h:
10500 * s/osf1.h:
10501 * s/osf5-0.h:
10502 * s/riscix1-1.h:
10503 * s/riscix12.h:
10504 * s/sco4.h:
10505 * s/sco5.h:
10506 * s/sunos4-0.h:
10507 * s/sunos4-1.h:
10508 * s/sunos413.h:
10509 * s/sunos4shr.h:
10510 * s/umax.h:
10511 * s/unipl5-2.h:
10512 * s/xenix.h:
10513 * cxux-crt0.s:
10514 * unexapollo.c:
10515 * unexconvex.c:
10516 * unexenix.c:
10517 * unexsni.c: Remove files for systems no longer supported.
10518
10519 * m/intel386.h: Remove references to unsupported systems.
10520
10521 * w32.c (get_emacs_configuration): Remove reference to i860.
10522
10523 * sysdep.c: Remove dead code.
10524
d35e1cd7
DN
105252008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
10526
10527 * s/rtu.h:
a0a3805c 10528 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 10529
abe136ee
MA
105302008-01-04 Michael Albinus <michael.albinus@gmx.de>
10531
10532 * dbusbind.c (Fdbus_method_return): New function.
10533 (xd_read_message): Add the serial number to the event.
10534 (Fdbus_register_method): Activate the function.
10535
87df3c32
SM
105362008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
10537
10538 * keyboard.c (read_key_sequence): Fix typo.
10539
5125905e
MA
105402008-01-03 Michael Albinus <michael.albinus@gmx.de>
10541
10542 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
10543 (xd_signature, xd_append_arg): Handle element type detection for
10544 empty arrays.
10545 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
10546 SDATA () calls; this must be solved more general.
10547 (Fdbus_register_signal): Use SBYTES instead of strlen.
10548
8bba1b5c
MH
105492008-01-03 Magnus Henoch <magnus@zemdatav>
10550
10551 * dbusbind.c (xd_append_arg): Use unsigned char instead of
10552 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 10553 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 10554
a0a3805c 105552007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
10556
10557 * dbusbind.c (xd_read_message): Use non-static input_event struct.
10558
a271e124
MH
105592007-12-31 Magnus Henoch <mange@freemail.hu>
10560
10561 * dbusbind.c (xd_signature): Signature of variant is just "v".
10562
17bc8f94
MA
105632007-12-30 Michael Albinus <michael.albinus@gmx.de>
10564
87df3c32 10565 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 10566 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
10567 (XD_ERROR, XD_DEBUG_MESSAGE)
10568 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10569 (xd_append_arg): Part for basic D-Bus types rewitten.
10570 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
10571 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
10572 appropriate.
10573 (xd_read_message): Return Qnil. Don't signal an error; it is not
10574 useful during event reading.
10575 (Fdbus_register_signal): Signal an error if the check for
10576 FUNCTIONP fails.
10577 (Fdbus_register_method): New function. The implementation is not
10578 complete, the call of the function signals an error therefore.
10579 (Fdbus_unregister_object): New function, renamed from
10580 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 10581 the object is not well formed.
17bc8f94 10582
dd6f2802
RS
105832007-12-30 Richard Stallman <rms@gnu.org>
10584
10585 * textprop.c (get_char_property_and_overlay):
10586 Signal error if POSITION is out of range in a buffer.
10587
1da8a031
MR
105882007-12-29 Martin Rudalics <rudalics@gmx.at>
10589
10590 * w32fns.c (Fx_create_frame): Make copy of frame parameters
10591 because the original parameters are in pure storage now.
10592
5742be86
YM
105932007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10594
10595 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
10596
b014713c
EZ
105972007-12-22 Eli Zaretskii <eliz@gnu.org>
10598
b17f53ab
MB
10599 * callint.c (syms_of_callint) <command-history>: Add reference to
10600 history-length in the doc string.
048addec 10601
b17f53ab 106022007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 10603
b17f53ab
MB
10604 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
10605 before passing as wParam.
048addec 10606
9af5078b
MA
106072007-12-22 Michael Albinus <michael.albinus@gmx.de>
10608
10609 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
10610 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
10611 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
10612 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
10613 as number.
10614 (Fdbus_call_method): Fix docstring.
10615
87cf1a39
MA
106162007-12-21 Michael Albinus <michael.albinus@gmx.de>
10617
10618 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
10619 New macros.
87df3c32 10620 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
10621 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
10622 Simplify.
87cf1a39
MA
10623 (xd_signature): New function.
10624 (xd_append_arg): Compute also signatures. Major rewrite.
10625 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
10626 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
10627 Check for signatures of arguments.
87cf1a39 10628
54371585
MA
106292007-12-19 Michael Albinus <michael.albinus@gmx.de>
10630
10631 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
10632 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
10633 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
10634 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
10635 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 10636 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
10637 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
10638 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 10639 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
10640 (xd_append_arg): New function.
10641 (Fdbus_call_method, Fdbus_send_signal): Apply it.
10642
f5306ca3
MA
106432007-12-16 Michael Albinus <michael.albinus@gmx.de>
10644
10645 * dbusbind.c (top): Include <stdio.h>.
10646 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
10647 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
10648 (Fdbus_register_signal): Rename unique_name to uname.
10649 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
10650 non-existing unique name. Fix typos in matching rule. Return an
10651 object which is useful in Fdbus_unregister_signal.
10652 (Fdbus_unregister_signal): Reimplementation, in order to remove
10653 only the corresponding entry.
10654 (Vdbus_registered_functions_table): Change the order of entries.
10655 Apply these changes in xd_read_message and Fdbus_register_signal.
10656
77a28bbf
AS
106572007-12-16 Andreas Schwab <schwab@suse.de>
10658
10659 * fileio.c (Finsert_file_contents): Fix overflow check to not
10660 depend on undefined integer overflow.
10661
2e3566d8
JR
106622007-12-14 Jason Rumney <jasonr@gnu.org>
10663
10664 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
10665 for characters above 127.
10666
bf254037
JR
106672007-12-13 Jason Rumney <jasonr@gnu.org>
10668
10669 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
10670 before dereferencing array.
10671 (lookup_vk_code): Remove zero comparison.
10672
eb7c7bf5
MA
106732007-12-14 Michael Albinus <michael.albinus@gmx.de>
10674
10675 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
10676 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
10677 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
10678 (xd_read_message, Fdbus_register_signal): Split expressions into
10679 multiple lines before operators "&&" and "||", according to the
10680 GNU Coding Standards.
10681
34fb0fc9
EZ
106822007-12-14 Eli Zaretskii <eliz@gnu.org>
10683
10684 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
10685
c7d97628
JL
106862007-12-12 Juri Linkov <juri@jurta.org>
10687
10688 * buffer.c (Frename_buffer): In interactive spec replace
10689 `read-buffer' with `read-string' that uses `buffer-name-history'
10690 as history, and the current buffer's name as default.
10691
3709505e
SM
106922007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
10693
10694 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
10695 manipulating the backtrace manually.
10696 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
10697 (struct backtrace, backtrace_list): Remove.
10698 (command_loop_1): Remove dead var `no_direct'.
10699
10700 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
10701 preserve non-built-in buffer-local variables.
10702 (Fkill_all_local_variables): Don't re-create&re-set permanent
10703 buffer-local variables.
10704
e2bec886
JL
107052007-12-09 Juri Linkov <juri@jurta.org>
10706
10707 * buffer.c (Frename_buffer): Change interactive spec from "s" to
10708 Lisp code that uses `read-buffer' with current buffer as default.
10709
a31d47c7
MA
107102007-12-08 Michael Albinus <michael.albinus@gmx.de>
10711
10712 * dbusbind.c (xd_read_message): Generate an event for every
10713 registered handler. There might be several handlers registered
10714 for the same signal.
10715 (Fdbus_register_signal): Don't overwrite a registration for the
10716 same signal. Add a new registration if handlers are different.
10717 (Vdbus_registered_functions_table): Rework doc string.
10718
52da95fa
MA
107192007-12-07 Michael Albinus <michael.albinus@gmx.de>
10720
10721 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
10722 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
10723 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
10724 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
10725 Unify argument lists.
a0a3805c 10726 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
10727 arguments and hash table keys. Use unique name for service.
10728 (Fdbus_unregister_signal): Remove checks.
10729 (Vdbus_registered_functions_table): Fix doc string.
10730
e5e76c04 107312007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
10732
10733 * process.c (make_process): Initialize pty_flag to 0.
10734
e5e76c04 107352007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
10736
10737 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
10738 specified XBMs.
10739
e5e76c04 107402007-12-05 Richard Stallman <rms@gnu.org>
048addec 10741
e5e76c04 10742 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 10743
e5e76c04 107442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 10745
e5e76c04
MB
10746 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
10747 New variable.
10748 (mac_try_close_socket) [MAC_OSX]: New function.
10749 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
10750 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 10751
e5e76c04
MB
10752 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
10753 Use mac_try_close_socket.
048addec 10754
e5e76c04 107552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 10756
e5e76c04
MB
10757 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
10758 reloc_base.
10759 (copy_dysymtab): Compute relocation base here.
10760 (rebase_reloc_address) [__ppc64__]: New function.
10761 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
10762 changed.
048addec 10763
e5e76c04 107642007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 10765
e5e76c04 10766 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 10767
e5e76c04 107682007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 10769
e5e76c04
MB
10770 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
10771 __objc_* sections.
10772 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 10773
96faeb40
MA
107742007-12-05 Michael Albinus <michael.albinus@gmx.de>
10775
10776 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
10777 Move check for Vdbus_registered_functions_table to
10778 xd_read_queued_messages.
10779 (xd_read_queued_messages): Protect xd_read_message calls by
10780 internal_condition_case_1.
10781
39abdd4a
MA
107822007-12-04 Michael Albinus <michael.albinus@gmx.de>
10783
87df3c32 10784 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 10785 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 10786 (Vdbus_intern_symbols): Remove.
39abdd4a 10787 (Vdbus_registered_functions_table): New hash table.
87df3c32 10788 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 10789 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 10790 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
10791 Vdbus_registered_functions_table.
10792
880820fe 107932007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
10794
10795 * xterm.c: Update URL to Window Manager Specification in comment.
10796
033b73e2
MA
107972007-12-02 Michael Albinus <michael.albinus@gmx.de>
10798
10799 * config.in (HAVE_DBUS): Add.
10800
a0a3805c 10801 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
10802 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10803 (obj): Add $(DBUS_OBJ).
10804 (LIBES): Add $(DBUS_LIBS).
10805 (dbusbind.o): New target.
10806
10807 * dbusbind.c: New file.
10808
10809 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10810
10811 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 10812 (Qdbus_event): New Lisp symbol.
033b73e2 10813 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 10814 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
10815 (keys_of_keyboard ): Define dbus-event.
10816
10817 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10818
39d0bf74
RS
108192007-12-01 Richard Stallman <rms@gnu.org>
10820
10821 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10822
f3157c65
JR
108232007-11-30 Jason Rumney <jasonr@gnu.org>
10824
10825 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10826 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
10827 (w32_face_attributes): Don't use color indexes that are out of range.
10828 Only reverse the default colors.
f3157c65
JR
10829
10830 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10831 WINDOWSNT.
10832
10833 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10834
b510360c
JR
108352007-11-29 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10838 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10839 if the terminal colors are initialized.
10840 (unspecified_fg, unspecified_bg): Remove unused declarations.
10841
4b7ab1c4
AS
108422007-11-29 Andreas Schwab <schwab@suse.de>
10843
10844 * keyboard.c (apply_modifiers): Fix typo.
10845
4bb6c266
RS
108462007-11-29 Richard Stallman <rms@gnu.org>
10847
10848 * keymap.c (Fcurrent_local_map): Doc fix.
10849
aa44cd84
GM
108502007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10851
10852 * s/gnu-kfreebsd.h: New file.
10853
21ec2c43
SM
108542007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10855
cc648cef
SM
10856 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10857 Don't cast redundantly.
10858
21ec2c43
SM
10859 * keyboard.c (KEY_TO_CHAR): New macro.
10860 (parse_modifiers, apply_modifiers): Accept integer arguments.
10861 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10862 for chars and symbol keys.
10863 After doing such remapping, apply function-key-map again.
10864
73e72da4
DN
108652007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10866
10867 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
10868 compiled anymore.
10869
254693ff
AS
108702007-11-26 Andreas Schwab <schwab@suse.de>
10871
10872 * process.c (list_processes_1): Fix indentation level of the
10873 command column.
10874
ff6e6ac8
AS
108752007-11-23 Andreas Schwab <schwab@suse.de>
10876
10877 * editfns.c (Fformat): Handle %c specially since it requires the
10878 argument to be of type int.
10879
f7cf8b20
SM
108802007-11-23 Markus Triska <markus.triska@gmx.at>
10881
10882 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 10883 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 10884
569c11e3
SM
108852007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10886
8787dd73
SM
10887 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
10888 (find_symbol_value): Use do_symval_forwarding.
10889
569c11e3
SM
10890 * data.c (set_internal): Set the value in the `cons-cell' (for
10891 Buffer_Local_values) not only for frame-local variables.
10892
6af1696d
AS
108932007-11-22 Andreas Schwab <schwab@suse.de>
10894
10895 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
10896 values to sprintf.
10897 * keymap.c (Fsingle_key_description): Likewise.
10898 * print.c (print_object): Likewise.
10899
880820fe 109002007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
10901
10902 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
10903 file for image is nil.
10904
7c401d15
DN
109052007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
10906
10907 * term.c: Include stdarg.h.
569c11e3 10908 (fatal): Implement using varargs.
a0a3805c 10909 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 10910
64e16c3c
SM
109112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10912
10913 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
10914 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
10915 Update call to buffer_slot_type_mismatch.
10916 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
10917 (buffer_slot_type_mismatch): Update.
10918 * buffer.c (buffer_local_types): Remove.
10919 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10920 (defvar_per_buffer): Set the type in the buffer_objfwd.
10921
d4aa48db 109222007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 10923
64e16c3c
SM
10924 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
10925 CreateFileMapping returns NULL on failure.
5f42a7eb 10926
d4aa48db 109272007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 10928
d4aa48db
MB
10929 * search.c (Fset_match_data): Remove the `evaporate' feature.
10930 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 10931
bdae0540
JR
109322007-11-21 Jason Rumney <jasonr@gnu.org>
10933
10934 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
10935
10936 * w32console.c (w32con_write_glyphs): Remove unused variables.
10937
202c09a8
DN
109382007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
10939
b951420f
DN
10940 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
10941
202c09a8
DN
10942 * s/darwin.h (MULTI_KBOARD): Remove.
10943
10944 * macfns.c (x_create_tip_frame, Fx_create_frame)
10945 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
10946
bae72c12
SM
109472007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10948
e7c10f83
SM
10949 * buffer.c (Fbuffer_local_value): Remove redundant test.
10950 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
10951 than in `current-buffer' to match the comment.
10952 Do the swap using swap_in_global_binding.
10953
136eb6ed
SM
10954 * data.c (store_symval_forwarding, set_internal):
10955 * eval.c (specbind): Remove dead code.
10956
bae72c12
SM
10957 * coding.c (detect_coding, Fupdate_coding_systems_internal):
10958 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
10959 Since we do not want to see internal Lisp_*fwd objects here.
10960
880820fe 109612007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 10962
3d66b985
JD
10963 * sysdep.c (init_system_name): Use getaddrinfo if available.
10964
95fbaefc
JD
10965 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
10966 (x_scroll_bar_note_movement): start, end, with, height in struct
10967 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
10968
6c1d8cb6
DN
109692007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
10970
10971 * puresize.h (BASE_PURESIZE): Increase to 1190000.
10972
30f95089
SM
109732007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10974
66b04bd4
SM
10975 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
10976 This undoes Richard's change of 14-Oct-2002.
10977
6d3f2bb2
SM
10978 * alloc.c (allocate_other_vector):
10979 * lisp.h (allocate_other_vector): Remove.
10980
b05b4e27
SM
10981 * window.c (struct save_window_data): Move non-lisp data to the end
10982 and make it `int' rather than Lisp_Object.
10983 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
10984 Done wrap/unwrap integer values.
10985 (Fset_window_configuration, compare_window_configurations):
10986 Update use of fields to their new types.
10987
056ce195
SM
10988 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10989 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10990 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10991 (SET_SCROLL_BAR_X_WINDOW): Remove.
10992 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10993 Access the new x_window field directly.
10994 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10995 Don't wrap/unwrap integers into Lisp_Objects.
10996 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10997 (x_scroll_bar_report_motion):
10998 Don't wrap/unwrap integers into Lisp_Objects.
10999 (x_term_init): Use SDATA.
11000 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11001 (x_scroll_bar_set_handle, x_scroll_bar_remove)
11002 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11003 (x_scroll_bar_report_motion, x_scroll_bar_clear):
11004 * xfns.c (x_set_background_color):
11005 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11006 Access the new x_window field directly.
11007
30f95089
SM
11008 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11009 (allocate_pseudovector): Make non-static.
6d3f2bb2 11010
30f95089
SM
11011 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11012 (allocate_pseudovector): Declare.
6f69e89b 11013 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 11014
9b6112e8
AS
110152007-11-15 Andreas Schwab <schwab@suse.de>
11016
30f95089
SM
11017 * editfns.c (Fformat): Correctly format EMACS_INT values.
11018 Also take precision into account when formatting an integer.
0f860bd7 11019
9b6112e8
AS
11020 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11021
262fcd41
SM
110222007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
11023
58da34c7
SM
11024 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11025 (syms_of_keyboard): Defsubr it.
11026
262fcd41
SM
11027 * data.c (swap_in_global_binding): Fix longstanding bug where
11028 store_symval_forwarding was not called with the right second argument,
11029 thus causing objfwd-ing from being dropped.
11030
d29a9848
JB
110312007-11-14 Juanma Barranquero <lekktu@gmail.com>
11032
11033 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11034 (Fx_display_pixel_height, Fx_display_planes)
11035 (Fx_display_color_cells, Fx_server_max_request_size)
11036 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11037 (Fx_display_visual_class, Fx_display_save_under):
11038 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11039 (Fx_display_pixel_height, Fx_display_planes)
11040 (Fx_display_color_cells, Fx_server_max_request_size)
11041 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11042 (Fx_display_mm_height, Fx_display_mm_width)
11043 (Fx_display_backing_store, Fx_display_visual_class)
11044 (Fw32_select_font, Fx_display_save_under):
11045 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11046 (Fx_display_pixel_height, Fx_display_planes)
11047 (Fx_display_color_cells, Fx_server_max_request_size)
11048 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11049 (Fx_display_save_under): Fix typos in docstrings.
11050
74084731
JB
110512007-11-14 Juanma Barranquero <lekktu@gmail.com>
11052
11053 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11054 corresponding to deleted entries; they are an implementation detail.
11055 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11056 Remove variables.
11057 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11058 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11059 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11060 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11061 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 11062 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 11063 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
11064 Fix typos in docstrings.
11065 (Fx_server_version): Reflow docstring.
11066 (Fw32_shell_execute): Doc fixes.
74084731 11067
fb053a1f
JB
110682007-11-13 Juanma Barranquero <lekktu@gmail.com>
11069
11070 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11071 if w32_parse_hot_key returned nil.
11072
a457417e 110732007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 11074
a457417e 11075 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 11076
4b219faa
JR
110772007-11-09 Jason Rumney <jasonr@gnu.org>
11078
11079 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11080
11081 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11082
11083 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11084 Remove W32_SCROLL_BAR_CLICK_EVENT.
11085
11086 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11087 Add MULTIMEDIA_KEY_EVENT.
11088
11089 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11090 (lispy_multimedia_keys) [WINDOWSNT]: New array.
11091 (make_lispy_event) [WINDOWSNT]: Use it to translate
11092 MULTIMEDIA_KEY_EVENT.
11093
11094 * w32term.h (WM_APPCOMMAND): Define if not already.
11095 (GET_APPCOMMAND_LPARAM): Likewise.
11096
11097 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11098 WM_APPCOMMAND.
11099
11100 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11101 (syms_of_w32fns): Export and initialize it.
11102 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11103
c12ecb0a 111042007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
11105
11106 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11107 twice.
11108
11109 * xdisp.c (handle_face_prop): Fix last change.
11110
c12ecb0a 111112007-11-09 Richard Stallman <rms@gnu.org>
048addec 11112
c12ecb0a
MB
11113 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11114 not just for after-strings and before-strings.
11115 Call face_for_overlay_string and pass the overlay to it.
11116 (handle_display_prop): Determine whether property came from an overlay.
11117 Pass OVERLAY arg to handle_single_display_spec.
11118 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11119 (load_overlay_strings): Fill in it->string_overlays.
11120 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 11121
c12ecb0a
MB
11122 * xfaces.c (face_for_overlay_string): Function renamed from
11123 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 11124
c12ecb0a
MB
11125 * dispextern.h (struct it): New elt string_overlays.
11126 New elt from_overlay, also in stack.
11127 Rearrange a few elements.
11128 (face_for_overlay_string): Decl renamed from
11129 face_at_buffer_position_no_overlays, and add argument.
15fff01d 11130
c12ecb0a 111312007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 11132
c12ecb0a
MB
11133 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11134 to get the base face for an overlay string.
0d8466cc 11135
c12ecb0a 11136 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 11137
c12ecb0a 11138 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 11139
c12ecb0a 11140 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 11141
c12ecb0a 111422007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 11143
c12ecb0a
MB
11144 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11145 Fix conversion from Lisp object to ATSUFontID.
07025a55 11146
c12ecb0a 111472007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 11148
c12ecb0a 11149 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 11150
c12ecb0a 111512007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 11152
c12ecb0a
MB
11153 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11154 Don't assume regions are aligned to page boundary.
11155 (print_load_command_name): Add LC_UUID if defined.
3a232704 11156
c12ecb0a 111572007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 11158
c12ecb0a 11159 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 11160
b8ddfbcc
JR
111612007-11-07 Jason Rumney <jasonr@gnu.org>
11162
11163 * s/windows95.h: Remove.
11164
880820fe 111652007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
11166
11167 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11168 abort with a message on unhandled store_type values.
11169
880820fe 111702007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
11171
11172 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11173 Remove HAVE_X11R5 and HAVE_X11R4.
11174
04a697fe
DN
111752007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11176
11177 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11178
880820fe 111792007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
11180
11181 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 11182 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
11183 x_set_glyph_string_gc from x_draw_glyph_string.
11184
07e5c0b0
DN
111852007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11186
2a2e8de7 11187 * sunfns.c: Remove file.
07e5c0b0
DN
11188
11189 * m/sun386.h:
11190 * m/sun2.h:
11191 * m/sparc.h: Remove Sun windows code.
11192
1bc973c2
SM
111932007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
11194
11195 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11196 (init_keyboard): Set current_kboard's window-system to nil.
11197 (tty_read_avail_input): Typo.
11198 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11199
c22140f6
DN
112002007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
11201
11202 * s/usg5-4.h:
11203 * s/usg5-3.h:
11204 * s/ptx.h:
11205 * m/is386.h:
11206 * m/ibmps2-aix.h:
2a2e8de7 11207 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
11208
11209 * dispnew.c (syms_of_display): Don't mention version 10.
11210
660a8219
JB
112112007-10-28 Juanma Barranquero <lekktu@gmail.com>
11212
11213 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11214 ($(BLD)/abbrev.$(O)): Remove.
11215
e047f448
SM
112162007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11217
11218 Rewrite abbrev.c in Elisp.
11219 * image.c (Qcount): Don't declare as extern.
11220 (syms_of_image): Initialize and staticpro `Qcount'.
11221 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11222 * emacs.c (main): Don't call syms_of_abbrev.
11223 * Makefile.in (obj): Remove abbrev.o.
11224 (abbrev.o): Remove.
11225 * abbrev.c: Remove.
11226
67b73e3a
MR
112272007-10-26 Martin Rudalics <rudalics@gmx.at>
11228
11229 * window.c (window_min_size_2): Don't count header-line.
11230
e3d7bd83
DN
112312007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
11232
11233 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 11234 field to take advantage of the available space. Group all the
e3d7bd83
DN
11235 chars together to reduce wasted space due to padding.
11236
a3547743
JB
112372007-10-26 Juanma Barranquero <lekktu@gmail.com>
11238
e298936f
JB
11239 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11240
d3d47262
JB
11241 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11242 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11243 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11244 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11245 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11246 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11247 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11248 (last_marked, mark_object_loop_halt): Make static.
11249
a3547743
JB
11250 * frame.c (syms_of_frame) <delete-frame-functions>:
11251 Fix typo in docstring.
11252
14c71d8b
JB
112532007-10-25 Juanma Barranquero <lekktu@gmail.com>
11254
11255 * w32.c (init_environment): Fix tiny memory leak.
66199f74 11256 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 11257
70b8d0a4
SM
112582007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
11259
11260 Make `window-system' into a keyboard-local variable (rather than
11261 frame-local as done originally by multi-tty).
11262
11263 * keyboard.h (struct kboard): Add Vwindow_system.
11264 * keyboard.c (init_kboard): Set a default for Vwindow_system.
11265 (mark_kboards): Mark Vwindow_system.
11266
11267 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11268 (init_display): Don't set the obsolete `window-system' frame-param.
11269
11270 * xterm.c (x_term_init):
11271 * w32term.c (w32_create_terminal):
11272 * term.c (init_tty): Set Vwindow_system.
11273 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11274 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11275
11276 * xfns.c (Fx_create_frame, x_create_tip_frame):
11277 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11278 * macfns.c (Fx_create_frame):
11279 Don't set the obsolete `window-system' frame-param.
11280
11281 * frame.h (Qwindow_system): Remove.
11282 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11283 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11284
fdc90613 112852007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 11286
fdc90613
MB
11287 * frame.c (x_figure_window_size): For fullscreen case,
11288 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 11289
fdc90613 11290 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 11291
fdc90613 11292 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 11293
7357cb04
SM
112942007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11295
98228e72
SM
11296 * process.c (unwind_request_sigio): Only define if __ultrix__.
11297
1baf6db9
SM
11298 * callproc.c (child_setup): Remove spurious *.
11299
4d0ac3d7
SM
11300 * lisp.h (Fget_text_property): Declare.
11301 (have_menus_p): Declare it here rather than in sys-dep header files.
11302 * macterm.h (have_menus_p):
11303 * msdos.h (have_menus_p):
11304 * xterm.h (have_menus_p): Remove.
11305
7357cb04
SM
11306 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11307 (Fmake_variable_frame_local): Just check the variable's const-ness
11308 rather than checking nil or t.
11309
866e6dd6
JR
113102007-10-22 Jason Rumney <jasonr@gnu.org>
11311
b00afeae
JR
11312 * w32fns.c: Include math.h.
11313 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 11314
c8f7c76b
JR
11315 * s/ms-w32.h (HAVE_STDLIB_H): Define.
11316 (abort): Redefinition moved to nt/config.nt.
11317
866e6dd6
JR
11318 * m/windowsnt.h: Remove.
11319
e79beb56
JB
113202007-10-22 Juanma Barranquero <lekktu@gmail.com>
11321
11322 * emacs.c (Fdump_emacs): Fix typo in message.
11323 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
11324 <installation-directory>: Reflow docstring.
11325
fb30dfd2
JL
113262007-10-22 Juri Linkov <juri@jurta.org>
11327
11328 * minibuf.c: Allow minibuffer default to be a list of default values.
11329 With empty input use the first element of this list as returned default.
e79beb56 11330 (string_to_object)
0f7f11b7 11331 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
11332 (read_minibuf): If defalt is cons, set histstring to its car.
11333 (Fread_string): If default_value is cons, set val to its car.
11334 (Fread_buffer): If def is cons, use its car.
11335 (Fcompleting_read): If defalt is cons, set val to its car.
11336
1f163f28
MA
113372007-10-21 Michael Albinus <michael.albinus@gmx.de>
11338
11339 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
11340
db3534c3
JB
113412007-10-20 Juanma Barranquero <lekktu@gmail.com>
11342
11343 * doc.c (Fdocumentation): Check for advice in all cases.
11344
c6f18a07
CY
113452007-10-19 Chong Yidong <cyd@stupidchicken.com>
11346
11347 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
11348
2a1534d3
RS
113492007-10-19 Richard Stallman <rms@gnu.org>
11350
11351 * doc.c (Fdocumentation): Check for and handle an advised function.
11352
7b82c3b6
JB
113532007-10-19 Juanma Barranquero <lekktu@gmail.com>
11354
11355 * process.c (Fset_process_filter): Doc fix.
11356
3278f20e
SM
113572007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11358
11359 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
11360 which caused key-translation-map to applied repeatedly (thus breaking
11361 double-mode).
11362
99784d63
SM
113632007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11364
11365 * xselect.c (x_own_selection, x_handle_selection_clear)
11366 (x_clear_frame_selections):
11367 * w32menu.c (list_of_panes, list_of_items):
11368 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
11369 * textprop.c (validate_plist, interval_has_all_properties)
11370 (interval_has_some_properties, interval_has_some_properties_list)
11371 (add_properties, text_property_list):
11372 * process.c (Fget_buffer_process, list_processes_1, status_notify):
11373 * minibuf.c (Fassoc_string):
11374 * macselect.c (x_own_selection, x_clear_frame_selections)
11375 (Fx_disown_selection_internal):
11376 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
11377 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
11378
44bb704d
CY
113792007-10-17 Chong Yidong <cyd@stupidchicken.com>
11380
11381 * process.c: Link to libs for calling res_init() if available.
11382 (Fmake_network_process): Call res_init() before getaddrinfo or
11383 gethostbyname, if possible.
11384
d314756e
SM
113852007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11386
2504022a
SM
11387 * lread.c (read1): Set pvectype for char_tables.
11388
19fa82b9
SM
11389 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
11390 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
11391 Add type checks.
11392 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
11393
d314756e
SM
11394 * alloc.c (free_misc): Use XMISCTYPE.
11395 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
11396
94b9aaa2
GM
113972007-10-17 Glenn Morris <rgm@gnu.org>
11398
11399 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
11400 (syms_of_minibuf): Add Qcompletion_ignore_case.
11401 * dired.c (Qcompletion_ignore_case): Change to external.
11402 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
11403 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
11404 (Fread_file_name): Use it rather than intern'ing.
11405
11406 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
11407 (Fread_coding_system): Ignore case of user input.
11408
da6658e8
YM
114092007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11410
11411 * xdisp.c (handle_display_prop): Ignore display specs after
11412 replacing one when string text is being replaced.
11413 (handle_single_display_spec): Pretend as if characters with display
11414 property haven't been consumed only when buffer text is being replaced.
11415
11fb4bdb
SM
114162007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
11417
9beb8baa
SM
11418 * xfns.c (Fx_create_frame, Fx_display_list):
11419 * window.c (window_fixed_size_p, enlarge_window)
11420 (shrink_window_lowest_first):
11421 * macterm.c (init_font_name_table):
11422 * macfns.c (Fx_create_frame, Fx_display_list):
11423 * lread.c (close_load_descs):
11424 * keyboard.c (read_char_x_menu_prompt):
11425 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
11426 * coding.c (code_convert_region_unwind): Test the type of an object
11427 rather than just !NILP before extracting data from it.
11428
d3f41ff5
SM
11429 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
11430
67ee9f6e
SM
11431 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
11432 (XMISCANY): New macro.
11433 (XMISCTYPE): Use it.
11434 (struct Lisp_Misc_Any): New type.
11435 (union Lisp_Misc): Use it.
11436 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
11437 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
11438 (find_symbol_value, set_internal, default_value, Fset_default)
11439 (Fmake_variable_buffer_local, Fmake_local_variable)
11440 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
11441 (Flocal_variable_if_set_p, Fvariable_binding_locus):
11442 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
11443 * alloc.c (allocate_buffer): Set the size and tag.
11444 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
11445 Use XMISCANY.
11446 (die): Follow the GNU convention for error messages.
11447 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
11448 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
11449 tag any more.
11450 (set_buffer_internal_1):
11451 * frame.c (store_frame_param):
11452 * eval.c (specbind):
11453 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
11454
11fb4bdb
SM
11455 * doc.c (Fsnarf_documentation): Simplify.
11456
decb374a
JB
114572007-10-14 Juanma Barranquero <lekktu@gmail.com>
11458
11459 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
11460 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
11461
b5a40ee7
SM
114622007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
11463
11464 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
11465
35277b03
JB
114662007-10-14 Juanma Barranquero <lekktu@gmail.com>
11467
11468 * eval.c (do_autoload): Don't save autoloads.
11469
11470 * data.c (Ffset): Save autoload of the function being set.
11471
35fdaa62
GM
114722007-10-07 John Paul Wallington <jpw@pobox.com>
11473
11474 * xfns.c (x_create_tip_frame): Set the `display-type' frame
11475 parameter before setting up faces.
11476
1ea40aa2
EZ
114772007-10-13 Eli Zaretskii <eliz@gnu.org>
11478
35fdaa62 11479 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
11480 * keyboard.c (append_tool_bar_item): Reformat last change.
11481
1ea40aa2
EZ
11482 * lisp.h (eabs): Rename from `abs'. All callers changed.
11483
35277b03 114842007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
11485
11486 * buffer.c (add_overlay_mod_hooklist):
11487 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
11488 * fontset.c (make_fontset):
11489 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
11490 (append_tool_bar_item):
11491 * macmenu.c (grow_menu_items):
35fdaa62 11492 * w32menu.c (grow_menu_items):
71d00ce4 11493 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 11494
bc82f120
EZ
114952007-10-13 Eli Zaretskii <eliz@gnu.org>
11496
11497 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
11498 selected frame'' on MSDOS).
11499
d57d5a78
MR
115002007-10-12 Martin Rudalics <rudalics@gmx.at>
11501
11502 * frame.c (Qexplicit_name): New variable.
11503 (x_report_frame_params): Report it in parameter alist.
11504 (syms_of_frame): Intern and staticpro it.
11505
35277b03 115062007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
11507
11508 * macfns.c (x_create_tip_frame): Set terminal for frame.
11509
c7a4b95b
SM
115102007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
11511
26f9c7b7
SM
11512 * frame.c (Qenvironment): Remove.
11513 (syms_of_frame) <Qenvironment>: Don't initialize.
11514 (Fdelete_frame): Don't treat the `environment' param specially.
11515 * frame.h (Qenvironment): Don't declare.
11516 * callproc.c (set_initial_environment): Don't set unused frame param.
11517
c7a4b95b
SM
11518 * frame.c (Fframe_with_environment): Remove.
11519 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 11520
c7a4b95b
SM
11521 * lisp.h (Fframe_with_environment): Don't declare.
11522
c86f7377
JB
115232007-10-10 Juanma Barranquero <lekktu@gmail.com>
11524
11525 * indent.c (indent_tabs_mode, last_known_column)
11526 (last_known_column_modified): Make static.
11527 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
11528
d1b3a122
KY
115292007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
11530
11531 * puresize.h (BASE_PURESIZE): Increase to 1170000.
11532
d57d5a78
MR
115332007-10-09 Jason Rumney <jasonr@gnu.org>
11534
11535 * w32term.c (x_set_window_size): Disable code that attempts to tell
11536 Lisp code about a size change before it actually happens.
11537
81d3d428 115382007-10-09 Richard Stallman <rms@gnu.org>
91175673 11539
81d3d428
MB
11540 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
11541 return HANDLED_RETURN.
91175673 11542
1af74d06 115432007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 11544
1af74d06
MB
11545 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
11546 when there's an unread command event.
e0fead5d 11547
c7a4b95b 11548 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
11549 window autoselection act appropriately when leaving selected frame.
11550 (syms_of_frame): Initialize focus_follows_mouse.
11551 * frame.h (focus_follows_mouse): Extern it.
11552 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 11553 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
11554 * msdos.c (dos_rawgetc): Likewise.
11555 * w32term.c (w32_read_socket): Likewise.
11556 * xterm.c (handle_one_xevent): Likewise.
11557 * xdisp.c (syms_of_xdisp): In doc-string of
11558 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 11559
1af74d06 115602007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 11561
1af74d06
MB
11562 * macterm.c (mac_load_query_font): Fix missing return value.
11563 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
11564 Add BLOCK_INPUT.
c186cdb3 11565
1af74d06 115662007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 11567
1af74d06
MB
11568 * xdisp.c (get_window_cursor_type): Implement documented behavior
11569 for cursor-in-non-selected-windows = t.
c186cdb3 11570
1af74d06 115712007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 11572
1af74d06 11573 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 11574
1af74d06 115752007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 11576
1af74d06 11577 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 11578
1af74d06 11579 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 11580
1af74d06 115812007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 11582
c7a4b95b 11583 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 11584
1af74d06 115852007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 11586
1af74d06 11587 * buffer.c (Foverlays_at): Doc fix.
036e218d 11588
1af74d06 115892007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 11590
1af74d06 11591 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 11592
1af74d06 115932007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 11594
1af74d06 11595 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 11596
1af74d06 11597 * frame.h (enum): Remove trailing comma.
90647b07 11598
8993ad2e 115992007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 11600
1af74d06 11601 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 11602
1af74d06 116032007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 11604
1af74d06 11605 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 11606
1af74d06
MB
11607 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
11608 last-repeatable-command.
11609 (init_kboard): Initialize Vlast_repeatable_command.
11610 (command_loop_1): Set it to real_this_command unless that was
11611 bound to an input event.
11612 (mark_kboards): Mark it.
9fbc32aa 11613
1af74d06 116142007-10-08 Richard Stallman <rms@gnu.org>
036e218d 11615
1af74d06 11616 * eval.c (condition-case): Doc fix.
9fbc32aa 11617
1af74d06 116182007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 11619
1af74d06
MB
11620 * xfaces.c (tty_supports_face_attributes_p): Fix code
11621 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
11622 was copied and not edited.
9fbc32aa 11623
beb9f745
SM
116242007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
11625
c86f7377 11626 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
11627 escape sequences.
11628 * keyboard.h (struct kboard): Add Vinput_decode_map.
11629 Remove Vlocal_key_translation_map.
11630 * keyboard.c (read_key_sequence): Add support for input-decode-map.
11631 (init_kboard): Init input-decode-map.
11632 Replace local-key-translation-map back with key-translation-map.
11633 (syms_of_keyboard): Declare input-decode-map.
11634 Remove local-key-translation-map. Update docstrings.
11635 (mark_kboards): Mark Vinput_decode_map.
11636 Don't mark Vlocal_key_translation_map.
11637 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
11638 Replace local-key-translation-map back with key-translation-map.
11639 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
11640 Bind in input-decode-map rather than function-key-map.
11641
beb9f745
SM
11642 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
11643 This was made redundant by the previous introduction of XSETPVECTYPE.
11644
65342ae3
RS
116452007-10-09 Richard Stallman <rms@gnu.org>
11646
beb9f745 11647 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
11648
116492007-09-29 Richard Stallman <rms@gnu.org>
11650
11651 * eval.c (internal_condition_case_2, internal_condition_case_1)
11652 (internal_condition_case): Reenable abort if x_catching_errors ()
11653 to see if that really happens and why.
11654
6cff77fd
AS
116552007-10-06 Andreas Schwab <schwab@suse.de>
11656
11657 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
11658
bbe6f2aa
JB
116592007-10-04 Juanma Barranquero <lekktu@gmail.com>
11660
11661 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
11662
a390930c
SM
116632007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
11664
11665 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
11666
d6aa1876
SM
116672007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
11668
d0fdb6da
SM
11669 * window.h (struct window):
11670 * window.c (struct save_window_data, struct saved_window):
11671 * termhooks.h (struct terminal):
11672 * process.h (struct Lisp_Process):
11673 * frame.h (struct frame):
11674 * buffer.h (struct buffer):
11675 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
11676 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
11677 The size field of (pseudo)vectors is now unsigned.
11678 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
11679
878f97ff
SM
11680 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
11681 Turn `count' into an integer.
d0fdb6da 11682
878f97ff
SM
11683 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
11684 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
11685 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
11686 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
11687 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
11688
d2029e5b
SM
11689 * alloc.c (allocate_pseudovector): New fun.
11690 (ALLOCATE_PSEUDOVECTOR): New macro.
11691 (allocate_window, allocate_terminal, allocate_frame)
11692 (allocate_process): Use it.
11693 (mark_vectorlike): New function.
11694 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
11695 (mark_terminals): Use it.
11696 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
11697 (Fmake_byte_code): Use XSETPVECTYPE.
11698
11699 * frame.c (Fframe_parameters): Minor simplification.
11700
11701 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
11702
11703 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
11704
11705 * buffer.c (Fget_buffer_create, init_buffer_once):
11706 * lread.c (defsubr):
11707 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
11708
11709 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
11710 defined differently in the m/*.h files.
11711 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
11712 (XSETPVECTYPE): New macro.
11713 (XSETPSEUDOVECTOR): Use it.
11714
d6aa1876
SM
11715 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
11716 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 11717
d6aa1876
SM
11718 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
11719 * lread.c (defvar_per_buffer):
11720 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
11721
11722 * window.c (candidate_window_p): Only consider as visible frames that
11723 are on the same terminal.
11724
11725 * m/ibms390x.h (MARKBIT): Remove unused macro.
11726
88852d45
JB
117272007-10-01 Juanma Barranquero <lekktu@gmail.com>
11728
11729 * lread.c (Fload): Fix typo in docstring.
11730
880820fe 117312007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
11732
11733 * floatfns.c (Fexpt): Manually check for overflows, so that a power
11734 of a non-zero value can't yield zero.
11735
ed0c79c6
SM
117362007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
11737
b870aa61
SM
11738 * term.c (term_clear_mouse_face, term_mouse_highlight)
11739 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
11740
4c37a414
SM
11741 * print.c (safe_debug_print): Use XHASH.
11742
b9466edb
SM
11743 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
11744 Lisp elements such as tags.
11745 (XHASH): New macro.
11746 (EQ): Use it.
11747 (SREF, SSET, STRING_COPYIN): Use SDATA.
11748 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
11749
9c545a55
SM
11750 * alloc.c (mark_terminal): Remove left-over declaration.
11751 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
11752 (allocate_vectorlike): Remove type argument. Adjust callers.
11753 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
11754 Only handle the one remaining MEM_TYPE_VECTORLIKE.
11755
dafc79fa
SM
11756 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
11757 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
11758 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
11759 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
11760 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
11761 Use them.
11762
ed0c79c6
SM
11763 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
11764 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
11765 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
11766
3c81afd4
DN
117672007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11768
11769 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
11770 loaded by default.
11771
6178ce5e
SM
117722007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11773
4ce5ab77
SM
11774 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
11775 on this tty.
11776 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
11777
6178ce5e
SM
11778 * term.c (mouse_face_window): Rename from Qmouse_face_window.
11779 Update all users.
11780 (handle_one_term_event): Use Gpm_DrawPointer.
11781 (Fgpm_mouse_start): Rename from Fterm_open_connection.
11782 Signal errors instead of returning nil. Always return nil.
11783 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
11784 Make it a noop if gpm-mouse was not activated.
11785 (syms_of_term): Update names.
11786
bdf5f8ef
SM
117872007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
11788
75a8734b
SM
11789 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
11790 (init_sys_modes): Check that gpm_tty is the current tty.
11791
13559ee0
SM
11792 * alloc.c (allocate_terminal): Set the vector size to only count the
11793 lisp fields. Initialize those to nil.
11794 (mark_object): Don't treat terminals specially.
11795 (mark_terminal): Remove.
11796 (mark_terminals): Use mark_object instead.
11797
ff16b875
SM
11798 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11799 the GC to the beginning.
11800
83155776
SM
11801 * indent.h:
11802 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11803
bdf5f8ef
SM
11804 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11805
ec8705b6
JR
118062007-09-25 Jason Rumney <jasonr@gnu.org>
11807
11808 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11809
11810 * w32console.c (create_w32cons_output): Remove.
11811
11812 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11813
11814 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11815 (reset_sys_modes): Use reset_terminal_modes_hook.
11816
7351b242
SM
118172007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11818
11819 * eval.c (do_autoload): Don't output any message.
11820
16706228
JL
118212007-09-24 Juri Linkov <juri@jurta.org>
11822
11823 * emacs.c (standard_args): Change priority of "--no-splash"
11824 from 40 to 3. Add "--no-desktop" with the same priority.
11825
3ae2e3a3
RS
118262007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11827
11828 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11829 and optimize the case where they are all 1.
11830
7a58fb43
GM
118312007-09-23 Johannes Weiner <hannes@saeurebad.de>
11832
3ae2e3a3
RS
11833 * lisp.h (abs): Define if not defined.
11834 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11835 Don't define `abs', since it's defined in lisp.h.
7a58fb43 11836
78048085
EZ
118372007-09-22 Eli Zaretskii <eliz@gnu.org>
11838
c7a4b95b 11839 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
11840 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11841 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11842 (init_tty): Use DEV_TTY instead of "/dev/tty".
11843 [WINDOWSNT]: No need to protect from NAME arg being null.
11844
23d4cba5
DN
118452007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11846
11847 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11848 up the tty state.
11849
71f44e7a
SM
118502007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11851
11852 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11853 (gpm_tty): Change its type.
11854 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11855 (gpm_tty): Change its type and initialize it.
11856 (Fterm_open_connection): Check the frame is indeed a tty.
11857 Use the new gpm_tty.
11858 (Fterm_close_connection): Use the new gpm_tty.
11859 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11860 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11861
def7fa34
JB
118622007-09-21 Juanma Barranquero <lekktu@gmail.com>
11863
11864 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11865 underline_color, to draw strike-through.
11866
d2bb6598
SM
118672007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11868
273f164c
SM
11869 * lisp.h (allocate_terminal): Declare.
11870
ca2d5566
SM
11871 * window.c (candidate_window_p): Consider frames that are being placed
11872 by the user as somewhere between visible and iconified.
11873 (window_loop): Prefer windows on the current frame.
11874 (Fselect_window): Move the use of select-frame to the beginning so we
11875 can just delegate all the work (it'll call us back anyway).
11876
6168122d
SM
11877 * frame.c (Qdisplay_environment_variable):
11878 * frame.h (Qdisplay_environment_variable): Delete.
11879
c51842ec
SM
11880 * .gdbinit (xbacktrace): Print the arg's address rather than the value
11881 of the first arg, since that value may be a union.
11882
d2bb6598
SM
11883 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
11884 parameter rather than Qdisplay_environment_variable. If all else
11885 fails, look for DISPLAY in initial-environment.
11886
6f022c19
GM
118872007-09-21 Glenn Morris <rgm@gnu.org>
11888
11889 * Makefile.in (emacstool): Remove target.
f466320b 11890 (lisp, shortlisp): Remove termdev.elc.
6f022c19 11891
ea1bf8c7
GM
118922007-09-21 Markus Triska <markus.triska@gmx.at>
11893
d2bb6598 11894 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 11895
d30a25b3
SM
118962007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
11897
db699fc6
SM
11898 * callproc.c (getenv_internal_1): New function.
11899 (getenv_internal): Use it.
11900 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
11901
d2bb6598 11902 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
11903 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
11904 (Fset_terminal_parameter): Work with dead terminals as well.
11905 (Fmodify_terminal_parameters): Remove.
11906
d30a25b3
SM
11907 * terminal.c (get_terminal): Handle terminals.
11908 Make sure the terminal returned is live.
11909 (create_terminal): Use allocate_terminal.
11910 (mark_terminals): Move to alloc.c.
11911 (delete_terminal): Use terminal->name as liveness status.
11912 NULL out fields after freeing their contents.
11913 Don't deallocate the object.
11914 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
11915 rather than an int.
11916 (Fterminal_live_p): Accept non-integer arguments.
11917 (Fterminal_list): Return terminal objects rather than an ints.
11918
11919 * alloc.c (enum mem_type): New member for `terminal' objects.
11920 (allocate_terminal): New function.
d2bb6598
SM
11921 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
11922 Handle terminals.
d30a25b3
SM
11923 (mark_terminal): New fun.
11924 (mark_terminals): Move from terminal.c.
11925
11926 * term.c (get_tty_terminal): Don't treat output_initial specially.
11927 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
11928 (delete_tty): Use terminal->name as liveness status.
11929
11930 * termhooks.h (struct terminal): Make it into a pseudovector.
11931 Remove `deleted' replaced by checking `name's nullness.
11932
11933 * print.c (print_object): Handle terminals.
11934
11935 * lisp.h (enum pvec_type): New `terminal' pseudovector.
11936 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
11937
11938 * frame.c (make_terminal_frame):
11939 * keyboard.c (tty_read_avail_input):
11940 * w32term.c (x_delete_terminal):
11941 * xfns.c (Fx_create_frame, x_create_tip_frame):
11942 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
11943
eba25e7c
GM
119442007-09-20 Glenn Morris <rgm@gnu.org>
11945
11946 * process.c (Fmake_network_process): Doc fix.
11947
2a29c3c1
JR
119482007-09-19 Jason Rumney <jasonr@gnu.org>
11949
11950 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
11951
880820fe 119522007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
11953
11954 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
11955 Fix a C warning regarding variable constness.
11956
11957 * xterm.c (handle_one_xevent): Fix a C warning.
11958
334a1195
JR
119592007-09-18 Jason Rumney <jasonr@gnu.org>
11960
11961 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
11962
880820fe 119632007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
11964
11965 * gtkutil.c (gdpy_def): New variable.
11966 (xg_initialize): Initialize gdpy_def.
11967 (xg_display_close): If no other display exists, set gdpy_def to a
11968 new connection.
11969
880820fe 119702007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
11971
11972 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
11973 when we have no file name for the icon.
11974 (xg_tool_bar_expose_callback): Remove.
11975 (xg_create_tool_bar): Don't connect expose signal to
11976 xg_tool_bar_expose_callback.
11977 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
11978
4d580af2
AS
119792007-09-16 Andreas Schwab <schwab@suse.de>
11980
11981 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
11982 values instead of zapping them.
11983
aca946f3
GM
119842007-09-14 Glenn Morris <rgm@gnu.org>
11985
11986 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11987 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11988 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11989 scope and rename to omfib_buffer for clarity.
11990 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11991
25c460e5
KH
119922007-09-14 Kenichi Handa <handa@m17n.org>
11993
11994 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11995
09b69f01
JR
119962007-09-13 Jason Rumney <jasonr@gnu.org>
11997
11998 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11999
12000 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12001
12002 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12003 (mac_term_init): Call here instead, passing rif.
12004
442218db
GM
120052007-09-13 Glenn Morris <rgm@gnu.org>
12006
12007 * s/hpux.h: No longer define `static' as nothing.
12008
880820fe 120092007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
12010
12011 * callint.c (Fcall_interactively): Remove unused var `fun'.
12012
1971a872
RF
120132007-09-12 Romain Francoise <romain@orebokech.com>
12014
12015 * window.c (prefer_window_split_horizontally, display_buffer):
12016 Revert 2007-09-08 change.
12017
2d33f506
GM
120182007-09-12 Glenn Morris <rgm@gnu.org>
12019
585474ae 12020 * alloca.c: Remove file.
ca7af97a
GM
12021 * Makefile.in (alloca): Do not undef.
12022 (allocaobj, alloca.o): Remove.
12023 (otherobj): Remove allocaobj.
12024 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12025 * regex.c (C_ALLOCA): Remove all references and code that was only
12026 used when this was defined.
12027 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12028 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
12029 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12030
2d33f506 12031 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
12032
12033 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12034 (menu_grab_callback): All uses changed.
12035
12036 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12037 (x_reply_selection_request): All uses changed.
2d33f506 12038
18a4a65e
SM
120392007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12040
12041 * lread.c (load_warn_old_style_backquotes): Change message to look
12042 better when it appears in the middle of byte-compiler messages.
12043
47cc8819
DN
120442007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
12045
b7ea0894
DN
12046 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12047
47cc8819
DN
12048 * xterm.c (x_create_terminal): Add comment.
12049
12050 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12051
5632bd0f
RS
120522007-09-10 Richard Stallman <rms@gnu.org>
12053
12054 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12055
880820fe 120562007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 12057
4bca9161
MC
12058 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12059 (DEFUN): Document `intspec', use it instead of `prompt'.
12060
04724b69
MC
12061 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12062
8a6d230a
MC
12063 * data.c (Finteractive_form): If the interactive specification starts
12064 with a `(', use it as a Lisp form.
12065
09fbdf6c
MC
12066 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12067 name and file modes.
12068
ccb5c14f
MC
12069 * callint.c (Fcall_interactively): Comment fixes.
12070
023accd6
SM
120712007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12074 and compiled functions.
12075
f26b9544
EZ
120762007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
12077
12078 * window.c (prefer_window_split_horizontally): New variable.
12079 (display_buffer): Consider splitting window horizontally depending
12080 on prefer_window_split_horizontally.
12081
4d395425
EZ
120822007-09-08 Eli Zaretskii <eliz@gnu.org>
12083
97ddc760 12084 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 12085
08c1d235
SM
120862007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12087
179cef48
SM
12088 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12089
08c1d235
SM
12090 * frame.c (x_set_frame_parameters): Check number is positive before
12091 using XFASTINT.
12092
12093 * window.c (freeze_window_start): Don't presume selected_window holds
12094 a window object.
92f94a12 12095 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 12096
97ddc760 120972007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
12098
12099 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12100
90ab5c62
SM
121012007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12102
12103 * window.c (Vsplit_window_preferred_function): New var.
12104 (Fdisplay_buffer): Use it.
12105 (syms_of_window): Export, and initialize it.
12106
1ab2cd43
TTN
121072007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12108
12109 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12110
0b0515bc
GM
121112007-09-06 Glenn Morris <rgm@gnu.org>
12112
57fd5c55 12113 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
12114 * xselect.c (x_reply_selection_request) <cnt>: Move static
12115 variable to file scope.
12116
98594580
SM
121172007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12118
12119 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12120 consistent values of selected_frame and selected_window.
12121
0f4c7aef
JR
121222007-09-04 Jason Rumney <jasonr@gnu.org>
12123
12124 * w32console.c (initialize_w32_display): Zero unused hooks.
12125
e4019195
DN
121262007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12127
12128 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12129 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12130
bce179b5
JR
121312007-09-04 Jason Rumney <jasonr@gnu.org>
12132
a0236551
JR
12133 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12134 in w32console.c. Set up input. Remove XXX comments that have been
12135 confirmed as correct.
12136
a4926668
JR
12137 * s/ms-w32.h (MULTI_KBOARD): Define.
12138
953bf0dc
JR
12139 * w32console.c (one_and_only_w32cons): Remove.
12140 (initialize_w32_display): Take terminal argument.
12141
12142 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12143 initialize_w32_display.
12144 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12145
bce179b5
JR
12146 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12147
12148 * keyboard.c (discard_mouse_events): Discard it.
12149 (make_lispy_event): Translate it to a lisp event.
12150 (lispy_wheel_names): Add wheel-left and right events.
12151 (syms_of_keyboard): Enlarge wheel_syms.
12152
12153 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12154 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12155
12156 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12157
12158 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12159 from WM_MOUSEHWHEEL.
12160 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12161
12162 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12163 terminal.
12164
12165 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12166 keyboard for the terminal.
12167
92cd6a7c
DN
121682007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12169
12170 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12171 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12172 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12173 and resume-tty-function to resume-tty-hook.
12174 (Fsuspend_tty, Fresume_tty): Use new names.
12175
880820fe 121762007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
12177
12178 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12179 if it starts with "n:".
12180
880820fe 121812007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
12182
12183 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12184
6b8e474c
SM
121852007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12186
92d9c1d4
SM
12187 * frame.h:
12188 * frame.c (Qterm_environment_variable): Remove.
12189 (syms_of_frame): Don't init and staticpro it.
12190
92d9c1d4
SM
12191 * callproc.c (getenv_internal): Remove special case for $TERM.
12192
6b8e474c
SM
12193 * callproc.c (Vinitial_environment): New variable.
12194 (set_initial_environment): Initialize it.
12195 (syms_of_callproc): Declare it.
12196 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12197 TERM under which a process runs is never related to the TERM in which
12198 Emacs is running.
12199
0f1444e1
DN
122002007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12201
12202 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12203 * s/darwin.h: ... do it here.
12204
b8866860
SM
122052007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * lisp.h (set_initial_environment): Rename from set_global_environment.
12208
12209 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12210 removed by mistake on the multi-tty branch.
12211
12212 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12213 (Fmodify_frame_parameters): Return a value.
12214
12215 * image.c (png_load): Comment-out var only used in commented-out code.
12216
12217 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12218 before passing it to mark_object.
12219
12220 * xfaces.c (internal_resolve_face_name): Return a value.
12221 (internal_resolve_face_name, resolve_face_name_error): Comment out.
12222
12223 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12224 (x_icon): Comment-out var only used in commented-out code.
12225
0a42be6d
RF
122262007-08-29 Romain Francoise <romain@orebokech.com>
12227
12228 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12229 QUIT hasn't been provided.
12230
8d9cc0b7
MB
122312007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12232
12233 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 12234 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
12235 (set_initial_environment): Initialise Vprocess_environment.
12236
12237 * config.in: Disable multi-keyboard support on a mac.
12238
12239 * frame.c (Qterm_environment_variable)
12240 (Qdisplay_environment_variable): New variables.
12241 (syms_of_frame): Intern and staticpro them.
12242 (Fmake_terminal_frame): Disable output method test.
12243
12244 * frame.h: Declare them here.
12245
12246 * macfns.c (x_set_mouse_color): Get rif from the frame.
12247 (x_set_tool_bar_lines): Don't use updating_frame.
12248 (mac_window): Add 2 new parameters for consistency with other systems.
12249 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
12250 frame parameters following what is done in X11 and w32. Don't use
12251 FRAME_MAC_DISPLAY_INFO.
12252 (Fx_open_connection, start_hourglass): Remove window-system check.
12253 (x_create_tip_frame): Get the keyboard from the terminal.
12254
12255 * macmenu.c: Reorder includes.
12256 (Fx_popup_menu): Use terminal specific mouse_position_hook.
12257
12258 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12259 terminal parameter.
12260 (x_clear_frame): Add a frame parameter.
12261 (note_mouse_movement): Get rif from the frame.
12262 (mac_term_init): Initialize the terminal.
12263 (mac_initialize): Make static and move terminal initialization ...
12264 (mac_create_terminal): ... to this new function.
12265
12266 * macterm.h (struct mac_display_info): Add terminal.
7196c970 12267 (mac_initialize): Delete declaration.
8d9cc0b7 12268
381864b2 12269 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
12270
12271 * sysdep.c: Comment out text after #endif.
12272
12273 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12274 is defined. Better initialize ttys in windows. Use terminal
12275 specific mouse_position_hook.
12276
12277 * termhooks.h (union display_info): Add mac_display_info.
12278
b8866860
SM
12279 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12280 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
12281 frame parameters following what is done in X11.
12282
12283 * w32term.c (w32_initialize): Make static.
12284
12285 * xselect.c (x_handle_selection_clear): Only access
12286 terminal->kboard when MULTI_KBOARD is defined.
12287
12288 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12289 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12290
122912007-08-29 Jason Rumney <jasonr@gnu.org>
12292
12293 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12294 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12295
12296 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12297 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12298
12299 * keyboard.c (restore_kboard_configuration): Only define when
12300 MULTI_KBOARD defined.
12301
35277b03 12302 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
12303 (OBJ1): Add terminal.$(O)
12304
b8866860
SM
12305 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12306 Don't define function body.
8d9cc0b7
MB
12307 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12308
12309 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12310
12311 * w32.c (request_sigio, unrequest_sigio): Remove.
12312
12313 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12314 (w32con_clear_frame, w32con_clear_end_of_line)
12315 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12316 (w32con_delete_glyphs, w32con_set_terminal_window)
12317 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
12318 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12319 Add terminal arg.
8d9cc0b7
MB
12320 (PICK_FRAME): Remove.
12321 (w32con_write_glyphs): Use frame specific terminal coding.
12322 (one_and_only_w32cons): New global variable.
12323 (initialize_w32_display): Use it for storing hooks.
12324 (create_w32cons_output): New function.
12325
12326 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
12327 arg a frame.
12328
b8866860
SM
12329 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
12330 Set window_system.
8d9cc0b7
MB
12331 (x_set_tool_bar_lines): Don't use updating_frame.
12332 (Fx_create_frame): Set terminal and ref count.
12333 (Fx_open_connection): Remove window-system check.
12334
12335 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
12336
12337 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
12338 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
12339 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
12340 Add frame arg.
12341 (x_delete_terminal, w32_create_terminal): New functions.
12342 (w32_term_init): Create a terminal.
12343 (w32_initialize): Move terminal specific initialization to
12344 w32_create_terminal.
12345
b8866860 12346 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
12347 (w32_clear_rect, w32_clear_area): Use background from frame.
12348 (w32_display_info): Add terminal.
12349 (w32_sys_ring_bell, x_delete_display): Declare here.
12350
12351 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
12352
12353 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
12354
123552007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
12356
12357 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
12358 Fix get_named_tty calls for the controlling tty.
12359
123602007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
12361
12362 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
12363
123642007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
12365
12366 * term.c (tty_insert_glyphs): Add missing first parameter.
12367
880820fe 123682007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 12369
b8866860
SM
12370 * buffer.c (Fbuffer_list, Fbury_buffer):
12371 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
12372
12373 * cm.c (current_tty): New variable, for cmputc().
12374 (cmputc): Use it.
12375 (cmcheckmagic): Add tty parameter, look up terminal streams there.
12376 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
12377 (cmgoto): Add tty parameter. Pass it on to calccost().
12378 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
12379
12380 * cm.h (emacs_tputs): New macro to set current_tty, and then call
12381 tputs().
12382 (current_tty): New variable, for cmputc().
12383 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
12384
12385 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
12386 (internal_condition_case, internal_condition_case_1)
12387 (internal_condition_case_2): Don't abort when x_catching_errors.
12388
12389 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
12390 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
12391 prevent crashes caused by bogus longjmps in read_char.
12392
12393 * keymap.h (Fset_keymap_parent): Add EXFUN.
12394
12395 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
12396 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12397 Remove redundant definition.
12398
b8866860
SM
12399 * macfns.c (x_set_mouse_color, x_make_gc):
12400 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 12401
b8866860
SM
12402 * w32term.c (x_free_frame_resources):
12403 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12404 (w32_initialize): Use the accessor macros for terminal characteristics.
12405
12406 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
12407 Use the accessor macros for terminal characteristics.
12408 * msdos.c (internal_terminal_init): Use the accessor macros for
12409 terminal characteristics.
b8866860
SM
12410 (ScreenVisualBell, internal_terminal_init):
12411 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12412
12413 * termopts.h (no_redraw_on_reenter): Declare.
12414
12415 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 12416 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 12417 (Fgarbage_collect): Call them.
03f06e5c 12418 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
12419
12420 * prefix-args.c: Include stdlib.h for exit.
12421
12422 * syssignal.h: Add comment.
12423
12424 * indent.c: Include stdio.h.
12425
12426 * window.h (Vinitial_window_system): Declare.
12427 (Vwindow_system): Delete declaration.
12428
12429 * fontset.c (Finternal_char_font): Use FRAME_RIF.
12430
12431 * image.c (lookup_image): Don't initialize `c' until the xasserts
12432 have been run.
12433
12434 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
12435 FRAME_FOREGROUND_PIXEL.
12436
12437 * print.c (print_preprocess): Don't lose print_depth levels while
12438 iterating.
12439
b8866860
SM
12440 * widget.c (update_from_various_frame_slots):
12441 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12442
12443 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
12444 frames.
12445 (window_internal_height): Remove bogus make_number call.
b8866860 12446 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
12447
12448 * fileio.c (Fread_file_name): Update comment.
12449
b8866860
SM
12450 * callint.c (Fcall_interactively):
12451 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
12452 Make sure it is correctly unwound.
12453
12454 * xsmfns.c (x_session_close): New function.
12455
03f06e5c 12456 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
12457 Delete declarations.
12458
12459 * xterm.h: Remove declaration for x_fully_uncatch_errors.
12460 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 12461 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 12462 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
12463
12464 * lread.c: Include setjmp.h. Update declaration of `read_char'.
12465 (read_filtered_event): Call `read_char' with a local
12466 `wrong_kboard_jmpbuf'.
12467
b8866860
SM
12468 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
12469 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
12470
12471 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
12472 systems.
12473
b8866860 12474 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 12475 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 12476 (Fset_quit_char): EXFUN.
03f06e5c 12477 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
12478 (init_sys_modes, reset_sys_modes): Update prototypes.
12479 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
12480
b8866860
SM
12481 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
12482 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 12483 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 12484 Delete declarations.
03f06e5c
JB
12485 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
12486 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
12487 New declarations.
12488
12489 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
12490 already does that during init_display(). Call syms_of_keymap
b8866860
SM
12491 before syms_of_keyboard. Call `syms_of_terminal'.
12492 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
12493 (shut_down_emacs): Call reset_all_sys_modes() instead of
12494 reset_sys_modes().
12495
12496 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
12497 (internal_resolve_face_name, resolve_face_name_error): New functions.
12498 (resolve_face_name): Protect against loops and errors thrown by Fget.
12499 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
12500 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12501
12502 * scroll.c: Replace CURTTY() with local variables throughout the
12503 file (where applicable).
12504 (calculate_scrolling, calculate_direct_scrolling)
12505 (scrolling_1, scroll_cost): Use the accessor macros for terminal
12506 characteristics.
12507
12508 * keymap.c (Vfunction_key_map): Remove.
b8866860 12509 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
12510 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12511 (Vkey_translation_map): Remove.
12512 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 12513 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
12514 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12515 Update for terminal-local key-translation-map.
12516
12517 * Makefile.in (callproc.o): Update dependencies.
12518 (lisp, shortlisp): Add termdev.elc.
12519 (obj): Add terminal.o.
12520 (terminal.o): Add dependencies.
12521 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12522 (data.o, fns.o): Add termhooks.h dependency.
12523 (SOME_MACHINE_LISP): Add dnd.elc.
12524 (minibuf.o): Fix typo.
12525 Update dependencies.
12526
12527 * data.c (do_symval_forwarding, store_symval_forwarding)
12528 (find_symbol_value): Use the selected frame's keyboard, not
12529 current_kboard.
12530
12531 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
12532 Vwindow_system.
12533
12534 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
12535 Fmenu_bar_open.
12536 (syms_of_xmenu): Update defsubr.
12537 (mouse_position_for_popup, Fx_popup_menu)
12538 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
12539 (set_frame_menubar, free_frame_menubar)
12540 (create_and_show_popup_menu, xmenu_show, )
12541 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
12542 an X frame.
12543
12544 * xselect.c (x_own_selection): Abort if not an X frame.
12545 (some_frame_on_display): Check if it is an X frame.
12546 (x_handle_selection_clear): Deal with MULTI_KBOARD.
12547
12548 * coding.c: Include frame.h and termhooks.h.
03f06e5c 12549 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
12550 (Fset_terminal_coding_system_internal)
12551 (Fset_keyboard_coding_system_internal)
12552 (Fkeyboard_coding_system)
03f06e5c
JB
12553 (Fterminal_coding_system): Add a terminal parameter.
12554 Get terminal_coding from the terminal.
8d9cc0b7
MB
12555 (init_coding_once): Don't call setup_coding_system here.
12556
12557 * dispextern.h (set_scroll_region, turn_off_insert)
12558 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
12559 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 12560 (delete_tty, updating_frame)
8d9cc0b7
MB
12561 (produce_special_glyphs, produce_glyphs, write_glyphs)
12562 (insert_glyphs): Remove.
12563 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 12564 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 12565 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
12566
12567 * frame.h (enum output_method): Add output_initial.
12568 (struct x_output): Delete.
b8866860
SM
12569 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12570 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
12571 (tty_display): Delete.
12572 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 12573 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
12574 (union output_data): Add tty.
12575 (FRAME_KBOARD): Get the kboard from the terminal.
12576 (FRAME_INITIAL_P): New macro.
12577 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
12578 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
12579 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
12580 New declarations.
8d9cc0b7
MB
12581
12582 * termchar.h (tty_output, tty_display_info): New structures.
12583 (tty_list): Declare.
12584 (FRAME_TTY, CURTTY): New macros.
12585 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
12586 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
12587 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
12588 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
12589
12590 * callproc.c: Include frame.h and termhooks.h, for terminal
12591 parameters.
12592 (add_env): New function.
12593 (child_setup): Use it.
b8866860 12594 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
12595 (getenv_internal): Fix get_terminal_param call.
12596 (Fgetenv_internal, egetenv): Update doc.
12597 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 12598 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
12599 strings.
12600 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
12601 (getenv_internal): Add terminal parameter.
12602 Handle Vlocal_environment_variables.
8d9cc0b7
MB
12603 (Fgetenv_internal): Add terminal parameter.
12604 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 12605 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
12606 (set_initial_environment): Rename from set_global_environment.
12607 Store Emacs environment in initial frame parameter.
12608
12609 * xdisp.c (redisplay_internal): Update references to
12610 `previous_terminal_frame'.
12611 (display_mode_line, Fformat_mode_line): Replace calls to
12612 `push_frame_kboard' with `push_kboard'.
12613 (get_glyph_string_clip_rects): Add extra parentheses and
12614 braces to prevent compiler warnings.
12615 (calc_pixel_width_or_height): Add xassert to check that the
12616 frame is alive. Don't call `lookup_image' on a termcap frame.
12617 (message2_nolog, message3_nolog, redisplay_internal)
12618 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
12619 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
12620 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
12621 (Fx_display_pixel_width, Fx_display_pixel_height)
12622 (Fx_display_planes, Fx_display_color_cells)
12623 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
12624 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
12625 (Fx_display_backing_store, Fx_display_visual_class)
12626 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 12627 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
12628
12629 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
12630 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
12631 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12632 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
12633 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
12634 terminal that is being deleted.
12635 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 12636 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
12637 (Fx_close_connection, Fx_synchronize): Unify argument names with
12638 the rest of the DEFUNs.
12639
12640 * dispnew.c (Fsend_string_to_terminal): Update call to
12641 `get_tty_terminal'.
12642 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 12643 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
12644 FRAME_TERMCAP_P and FRAME_TTY.
12645 (window_change_signal): Don't believe width/height values that are
12646 impossibly small.
12647 (Vinitial_window_system): Rename from Vwindow_system.
12648 (termscript, Wcm, rif): Delete.
12649
12650 * termhooks.h (struct terminal): New struct containing the
12651 previously global text display hooks and new members NAME,
12652 DELETED and PARAM_ALIST.
12653 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
12654 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
12655 (FRAME_RIF): New macros.
12656 (get_terminal_param, get_device): New declarations.
12657 (termscript): Delete declaration.
12658
12659 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
12660 (XTflash, x_free_frame_resources, x_scroll_bar_create)
12661 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
12662 FRAME_FOREGROUND_PIXEL.
12663 (x_fully_uncatch_errors): Disable definition.
12664 (x_scroll_bar_expose): Fix reference to foreground pixel.
12665 (XTread_socket): Disable loop on all X displays.
12666 (x_delete_terminal): Don't set terminal->deleted and let
12667 delete_terminal delete the frames on the terminal.
12668 (x_delete_display): Doc update to reflect changes in
12669 delete_terminal.
12670 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
12671 (deleting_tty): Remove old variable.
12672 (Fsuspend_tty): Call clear_tty_hooks.
12673 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
12674 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
12675 errors on X frames.
12676 (x_catch_errors_unwind): Abort if x_error_message is NULL.
12677 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 12678 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
12679 (XTset_terminal_modes, XTreset_terminal_modes)
12680 (XTread_socket, x_connection_closed, x_term_init)
12681 (x_term_init, x_delete_display): Add terminal parameter.
12682 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
12683 X connections.
12684
bf380f53
GM
12685 * frame.c: Include termchar.h.
12686 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
12687 (Qwindow_system, Qenvironment, Qterm_environment_variable)
12688 (Qdisplay_environment_variable): New vars.
12689 (Fframep): Deal with output_initial.
12690 (Fframe-live-p): Doc fix.
12691 (Fwindow-system): New function.
8d9cc0b7
MB
12692 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
12693 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 12694 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 12695 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
12696 (Fmake_terminal_frame): Handle NULL tty names correctly.
12697 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
12698 (Fdelete_frame): Remove unused variable `count'. Don't allow other
12699 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 12700 (Fframe_with_environment): New function.
b8866860 12701 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
12702 (get_future_frame_param): New function.
12703 (Fmake_terminal_frame): Use it.
2d33f506 12704 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
12705
12706 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
12707 * sysdep.c (reset_sys_modes): Update for renames.
12708
12709 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 12710 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
12711 (syms_of_keyboard): Defsubr them.
12712 (Fset_input_meta_mode, Fset_quit_char): New functions.
12713 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
12714 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
12715 parameter. Use it in call to `read_char'.
b8866860
SM
12716 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
12717 Set wrong_kboard_jmpbuf correctly in recursive calls.
12718 Use current_kboard to access Vkeyboard_translate_table.
12719 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
12720 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
12721 Update longjmp invocations. Remember the original current_kboard,
12722 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
12723 changes it. Comment out unnecessary calls to
12724 `record_single_kboard_state' and `any_kboard_state'.
12725 Update recursive calls.
8d9cc0b7
MB
12726 (wrong_kboard_jmpbuf): Remove global variable.
12727 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
12728 Handle deleted interrupted_kboards correctly; that is a legal
12729 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 12730 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
12731 (any_kboard_state, single_kboard_state)
12732 (push_frame_kboard): Remove function.
12733 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
12734 been deleted. Remove unused variable. Help debugging by not
12735 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
12736 kboard of the selected frame when the stored kboard object has
12737 been deleted before pop_kboard.
12738 (temporarily_switch_to_single_kboard): Change first parameter to a
12739 frame pointer. Throw an error when caller wants to change kboards
12740 while in single_kboard mode. Don't push_kboard if we weren't in
12741 single kboard state. Don't pop_kboard if we popped into any
12742 kboard state.
12743 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 12744 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
12745 up single_kboard mode.
12746 (Frecursive_edit): Switch to single_kboard mode only in nested
12747 command loops.
b8866860
SM
12748 (cmd_error, command_loop, command_loop_1, timer_check):
12749 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
12750 `record_single_kboard_state'.
12751 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 12752 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
12753 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
12754 `fatal_error_signal'.
12755 (record_single_kboard_state): Don't push_kboard if we weren't in
12756 single kboard state. Don't pop_kboard if we popped into any
12757 kboard state.
12758 (push_frame_kboard): Rename to push_kboard.
12759 (kbd_buffer_get_event): Use FRAME_TERMINAL.
12760 (read_avail_input): Read input from all terminals.
12761 (mark_kboards): Also mark Vkeyboard_translate_table.
12762 (kbd_buffer_store_event_hold): Simplify condition.
12763 (read_key_sequence): Reinitialize fkey and keytran at each replay.
12764 (Vkeyboard_translate_table): Move to struct kboard.
12765 (init_kboard): Initialize Vkeyboard_translate_table.
12766 (syms_of_keyboard): Use DEFVAR_KBOARD to define
12767 Vkeyboard_translate_table. Update doc strings. Update docs of
12768 local-function-key-map and function-key-map.
12769
12770 * terminal.c: New file.
12771
12772 * term.c: Include errno.h.
12773 (Vring_bell_function, device_list, initial_device)
12774 (next_device_id, ring_bell, update_begin, update_end)
12775 (set_terminal_window, cursor_to, raw_cursor_to)
12776 (clear_to_end, clear_frame, clear_end_of_line)
12777 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
12778 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
12779 (syms_of_term): Move their initialization to terminal.c.
12780 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
12781 (Ftty_display_color_cells)
12782 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 12783 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
12784 (init_tty, maybe_fatal): New functions.
12785 (Ftty_type): Return nil if terminal is not on a tty instead of
12786 throwing an error. Doc update.
12787 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 12788 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
12789 (delete_tty): Use terminal->deleted.
12790 (tty_set_terminal_modes): Rename from set_terminal_modes.
12791 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
12792 (set_scroll_region): Rename to `tty_set_scroll_region'.
12793 (turn_on_insert): Rename to `tty_turn_on_insert'.
12794 (turn_off_insert): Rename to `tty_turn_off_insert'.
12795 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
12796 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
12797 (toggle_highligh): Rename to `tty_toggle_highlight'.
12798 (background_highlight): Rename to `tty_background_highlight'.
12799 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12800 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12801 (tty_set_scroll_region, tty_background_highlight)
12802 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12803 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12804 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12805 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12806 Add static modifier.
12807 (tty_reset_terminal_modes, tty_set_terminal_window)
12808 (tty_set_scroll_region, tty_background_highlight)
12809 (tty_highlight_if_desired, tty_cursor_to)
12810 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12811 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12812 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12813 renames.
12814
880820fe 128152007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
12816
12817 * keyboard.c: Qrtl is new.
12818 (parse_tool_bar_item): Handle :rtl keyword.
12819 (syms_of_keyboard): Intern :rtl keyword.
12820
12821 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12822
12823 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12824 so no Lisp code is executed.
12825 (file_for_image, find_rtl_image): New functions.
1f204af3 12826 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
12827 (update_frame_tool_bar): If direction is RTL, use RTL image if
12828 defined. Use Gtk stock images if defined.
12829
83cc8d35
YM
128302007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12831
12832 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12833 for nonexistent or zero-width glyph in composition glyph.
12834
e60c4e15
SM
128352007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12836
d7e2a28f
SM
12837 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12838
e60c4e15
SM
12839 * xdisp.c (Finvisible_p): New function.
12840 (syms_of_xdisp): defsubr it.
12841
ee163e6d
JB
128422007-08-24 Juanma Barranquero <lekktu@gmail.com>
12843
12844 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12845 Doc fixes.
12846
90fa408d
YM
128472007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12848
35277b03 12849 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 12850
cac4219c
MR
128512007-08-24 Martin Rudalics <rudalics@gmx.at>
12852
12853 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12854 whether decoding has modified buffer contents.
12855
5fc9fdeb
JR
128562007-08-24 Jason Rumney <jasonr@gnu.org>
12857
12858 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12859 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12860 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12861 (init_svg_functions) [HAVE_NTGUI]: New function.
12862 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12863 (svg_load_image): Use them.
12864 (svg_load_image) [HAVE_NTGUI]: Implement background.
12865
93b23406
YM
128662007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12867
12868 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
12869 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
12870 (LIBX): Remove @RSVG_LIBS@.
12871 (LIBES): Add $(RSVG_LIBS).
12872
12873 * image.c (svg_load_image): Blend with specified background if exists.
12874 Use IMAGE_BACKGROUND. Add Mac OS Support.
12875
12876 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
12877 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
12878 Remove macros.
12879 [MAC_OSX] (socket_callback): Do nothing.
12880 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
12881 ReceiveNextEvent.
12882 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
12883 socket_callback.
12884 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
12885
2467875c
GM
128862007-08-22 Glenn Morris <rgm@gnu.org>
12887
ff8da443 12888 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 12889
4ab27a43
GM
128902007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
12891
12892 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 12893
666e0eda
GM
12894 * image.c: Add support for SVG images. Some additional comments
12895 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
12896 (svg_image_p): New function to test for SVG image.
12897 (svg_load): New function to load SVG image.
12898 (svg_load_image): New function, helper for svg_load.
12899 (Qsvg): New Lisp_object.
12900 (svg_keyword_index): New enum.
12901 (svg_format): New static `image_keyword' struct.
12902 (svg_type): New static `image_type' struct.
12903 (librsvg/rsvg.h): Include it.
4ab27a43 12904
b636b4c1
SM
129052007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12906
12907 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
12908
9ecb827b
SM
129092007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12910
1d064697
SM
12911 * lread.c (Qold_style_backquotes): New var.
12912 (syms_of_lread): Init and staticpro it.
12913 (load_warn_old_style_backquotes): New fun.
12914 (Fload): Use them to warn about old style backquotes.
12915 (end_of_file_error, Fload): Remove unused vars.
12916
5772ed4b
SM
12917 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
12918
9ecb827b 12919 * lread.c (Vold_style_backquotes): New var.
5aa273b0 12920 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
12921 (read1): Set it when we find an old-style (back)quote.
12922
32e1c7b1
JR
129232007-08-22 Jason Rumney <jasonr@gnu.org>
12924
12925 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
12926
b8fa755b
KY
129272007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
12928
12929 * puresize.h (BASE_PURESIZE): Increase to 1140000.
12930
1283140e
RS
129312007-08-19 Richard Stallman <rms@gnu.org>
12932
12933 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
12934
2c4685ee
AS
129352007-08-19 Andreas Schwab <schwab@suse.de>
12936
12937 * alloc.c (pure): Round PURESIZE up.
12938
880820fe 129392007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
12940
12941 * xterm.c (handle_one_xevent): Remove check that mouse click is in
12942 active frame.
12943
6e33efc4
RS
129442007-08-16 Richard Stallman <rms@gnu.org>
12945
12946 * eval.c (Fcommandp): Add parens to clarify.
12947
12948 * minibuf.c (Fall_completions): Use enum for type of table.
12949
12950 * emacs.c (USAGE2): Improve text.
12951
fcf8ff2e
GM
129522007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
12953
5205ee62
GM
12954 * term.c (tty_default_color_capabilities): Declare static
12955 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 12956
880820fe 129572007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
12958
12959 * gtkutil.c (update_frame_tool_bar): Use -1 as index
12960 to gtk_toolbar_insert.
12961
4a181359
SM
129622007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
12963
1bc99c9c
SM
12964 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
12965
4a181359
SM
12966 * insdel.c (reset_var_on_error): New fun.
12967 (signal_before_change, signal_after_change):
12968 Use it to reset (after|before)-change-functions to nil in case of error.
12969 Bind inhibit-modification-hooks to t.
12970 Don't bind (after|before)-change-functions to nil while they run.
12971
6c28435c
YM
129722007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12973
12974 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
12975 filling pixmap with stippled background.
12976
ad3b3e02
YM
129772007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12978
12979 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
12980 Don't use invisible frame as parent window for repositioning.
12981
a22dec27
SM
129822007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
12983
12984 * print.c (new_backquote_output): Rename from old_backquote_output.
12985 (print): Inverse its logic (according to its name) so as to match the
12986 behavior of new_backquote_flag in lread.c.
12987
7b7d07bb
YM
129882007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12989
12990 * gmalloc.c (posix_memalign): New function.
12991
12992 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12993 ActivateControl/DeactivateControl here.
12994 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12995 frame-notice-user-settings is non-nil.
12996 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12997 for kEventParamFMFontStyle.
12998 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12999 mac_pass_command_to_system and mac_pass_control_to_system here.
13000 (XTread_socket): Call ActivateControl/DeactivateControl here.
13001 (XTread_socket) [TARGET_API_MAC_CARBON]:
13002 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
13003 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13004 for window repositioning.
7b7d07bb 13005
22e9fe24
GM
130062007-08-08 Glenn Morris <rgm@gnu.org>
13007
13008 * Replace `iff' in doc-strings and comments.
13009
ae494350
CY
130102007-08-07 Chong Yidong <cyd@stupidchicken.com>
13011
13012 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13013
6f2528d8
MR
130142007-08-07 Martin Rudalics <rudalics@gmx.at>
13015
13016 * fileio.c (Finsert_file_contents): Run format-decode and
13017 after_insert_file_functions on entire buffer when REPLACE is
13018 non-nil and inhibit modification_hooks and point_motion_hooks.
13019 For consistency, run after_insert_file_functions iff something
13020 got inserted. Move signal_after_change and update_compositions
13021 after code running after_insert_file_functions. Make sure that
6b8e474c 13022 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 13023
3ceeb306
YM
130242007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13025
13026 * emacs.c (main)
13027 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13028 Call malloc_enable_thread on interactive startup.
13029
13030 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
13031 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13032 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
13033 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13034 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13035 New functions.
13036
ca5e6fd5
CY
130372007-08-06 Chong Yidong <cyd@stupidchicken.com>
13038
32bfce5d
CY
13039 * xdisp.c (redisplay_window): When restoring original buffer
13040 position, make sure it is still valid.
13041
ca5e6fd5
CY
13042 * image.c (png_load): Ignore png-supplied background color.
13043
a5b11587
YM
130442007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13045
13046 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13047 Use kCFAbsoluteTimeIntervalSince1970.
13048
13049 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13050 New variable.
13051 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13052 event loop should be quit.
13053 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13054 Quit dialog event loop if quit_dialog_event_loop is set.
13055
13056 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13057 (Selection): New typedef. Use instead of ScrapRef.
13058 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13059 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13060 (mac_clear_selection): Rename from clear_scrap.
13061 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 13062 scrap_has_target_type. All uses changed.
a5b11587
YM
13063 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13064 (mac_selection_has_target_p): New functions.
13065 (mac_put_selection_value): Rename from put_scrap_string.
13066 (mac_get_selection_value): Rename from get_scrap_string.
13067 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13068 (put_scrap_private_timestamp, scrap_has_target_type)
13069 (get_scrap_private_timestamp): Remove functions.
13070 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13071 (x_own_selection, x_get_local_selection):
13072 Use mac_valid_selection_value_p.
13073 (x_own_selection): Don't use put_scrap_private_timestamp.
13074 Record OWNERSHIP-INFO into Vselection_alist instead.
13075 (x_get_local_selection): Don't check type if request is local.
13076 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13077 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13078
880820fe 130792007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
13080
13081 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13082 add comment explaining why.
13083
73ff9d42
RS
130842007-08-03 Richard Stallman <rms@gnu.org>
13085
13086 * fileio.c (Fvisited_file_modtime): Use make_time.
13087
54ed9a2d 130882007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
13089
13090 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13091 build.
13092
65a9c8e2
SM
130932007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
13094
13095 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13096
c5925799
KY
130972007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
13098
13099 * puresize.h (BASE_PURESIZE): Increase to 1130000.
13100
adef3de7
RS
131012007-07-30 Richard Stallman <rms@gnu.org>
13102
13103 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13104
880820fe 131052007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
13106
13107 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13108
a10421a1
NR
131092007-07-28 Nick Roberts <nickrob@snap.net.nz>
13110
13111 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13112 remote default-directory.
13113
13114 * buffer.c (mode-line-format): Update doc string.
13115
0cb1ae20
YM
131162007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13117
13118 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13119 scroll bar gap.
13120 (x_scroll_bar_create): Set bar->fringe_extended_p.
13121 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13122 on frame edge. Check fringe background extension. Don't clear
13123 extended fringe background area.
13124
13125 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13126 (w32_fill_area): Enclose multiple statements with do ... while (0).
13127
13128 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13129 Extend fringe background to scroll bar gap.
13130 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13131 Set bar->fringe_extended_p.
13132 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13133 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13134 background extension. Don't clear extended fringe background area.
13135
13136 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13137 New member fringe_extended_p.
13138
cacc7b51
GM
131392007-07-25 Glenn Morris <rgm@gnu.org>
13140
13141 * Relicense all FSF files to GPLv3 or later.
13142
13143 * COPYING: Switch to GPLv3.
13144
89835619
SM
131452007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13146
c4f46926
SM
13147 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13148
13149 * data.c (Finteractive_form): Check for the presence of an
13150 `interactive-form' symbol property more thoroughly.
13151
13152 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
13153 present, analogous to the function-documentation property.
13154
ee04257d
JR
131552007-07-24 Jason Rumney <jasonr@gnu.org>
13156
13157 * w32fns.c (x_real_positions): Get real position from OS instead of
13158 calculating it.
13159
50624218
JR
131602007-07-23 Jason Rumney <jasonr@gnu.org>
13161
13162 * filelock.c (current_lock_owner): Allow for @ sign in username.
13163
3650f60e
NR
131642007-07-22 Nick Roberts <nickrob@snap.net.nz>
13165
13166 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13167 remote default-directory.
13168
13169 * buffer.c (mode-line-format): Describe above case in doc string.
13170
1e899515 131712007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 13172
75be5258
EZ
13173 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13174 Define if not defined.
13175
2b6e2f4d
JR
131762007-07-18 Jason Rumney <jasonr@gnu.org>
13177
13178 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13179
23dacf80
JB
131802007-07-18 Richard Stallman <rms@gnu.org>
13181
13182 * data.c (Fsetq_default): Doc fix.
13183
13184 * eval.c (Fsetq): Doc fix.
13185
131862007-07-18 Juanma Barranquero <lekktu@gmail.com>
13187
13188 * coding.c (Ffind_operation_coding_system):
13189 * eval.c (For, Fand): Doc fixes.
880820fe 13190 Reported by Johan Bockgård.
23dacf80 13191
880820fe 131922007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 13193
23dacf80 13194 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 13195
23dacf80 13196 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
13197
13198 * xterm.c (x_ewmh_activate_frame): New function.
13199 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13200
71ec17e6
MR
132012007-07-17 Martin Rudalics <rudalics@gmx.at>
13202
13203 * window.c (Fdisplay_buffer): If largest or LRU window is the
13204 only window, split it even if it is not eligible for splitting.
13205 This restores the original behavior broken by the 2007-07-15
13206 change.
13207
e9818042
GM
132082007-07-17 Glenn Morris <rgm@gnu.org>
13209
13210 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
13211 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13212 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
13213 constituents. Doc fix.
13214
e6fca843
SM
132152007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13216
13217 * process.c (Fstart_process, Fmake_network_process)
13218 (read_process_output): Fix up last changes.
13219
b5d2b4ab
EZ
132202007-07-16 Eli Zaretskii <eliz@gnu.org>
13221
13222 * makefile.w32-in (clean): Don't delete *~.
13223
413a79ad
AS
132242007-07-16 Andreas Schwab <schwab@suse.de>
13225
13226 * window.c (Fdisplay_buffer): Use NILP.
13227 (Fset_window_scroll_bars): Likewise.
13228
f1de8c77
MR
132292007-07-15 Martin Rudalics <rudalics@gmx.at>
13230
13231 * window.c (window_min_size_2): New function.
13232 (window_min_size_1, size_window, Fdisplay_buffer)
13233 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13234 windows without mode- or header-lines when window-min-height is
13235 too small.
13236 (size_window): Reset nodelete_p after testing it, following an
13237 earlier note by Kim F. Storm.
13238 (display_buffer): Do not set split_height_threshold to twice the
13239 value of window_min_height to avoid changing the value of a
13240 customizable variable. Rather explicitly check whether the
13241 height of the window that shall be splitted is at least as large
13242 as split_height_threshold.
1af74d06
MB
13243 (Fwindow_full_width_p): New defun.
13244 (syms_of_window): Defsubr it.
d31053f9 13245
1af74d06 13246 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 13247
5e1ab613
JR
132482007-07-14 Jason Rumney <jasonr@gnu.org>
13249
13250 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13251
f01cbfdd
RS
132522007-07-14 Richard Stallman <rms@gnu.org>
13253
13254 * eval.c (maybe_call_debugger): New function.
13255 (find_handler_clause): Use maybe_call_debugger.
13256 Call it when the handler says `debug'.
13257 Eliminate DEBUGGER_VALUE_PTR.
13258 (Fsignal): Eliminate debugger_value.
13259 (Qdebug): New variable.
13260 (syms_of_eval): Initialize it.
13261
1bab435a
JB
132622007-07-14 Juanma Barranquero <lekktu@gmail.com>
13263
13264 * eval.c (Fprogn):
13265 * keyboard.c (Ftrack_mouse):
13266 * print.c (Fwith_output_to_temp_buffer):
13267 * window.c (Fsave_window_excursion): Doc fix.
13268
be436d23
SM
132692007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13270
13271 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13272
60f0fb11
SM
132732007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13274
13275 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13276 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13277 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13278 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13279 Remove unused encoding_carryover.
13280 * process.c: Adjust all functions accordingly.
13281
d8b18043
RS
132822007-07-12 Richard Stallman <rms@gnu.org>
13283
13284 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13285
d5781bb6
JR
132862007-07-11 Jason Rumney <jasonr@gnu.org>
13287
13288 * makefile.w32-in (LIBS): Include OLE32.
13289
13290 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13291 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13292
5bb7dfee
SM
132932007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
13294
13295 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13296 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13297 from a Lisp_Object into a bare pointer.
13298 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13299 Adjust the code correspondingly.
13300
13301 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13302
13303 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13304 (term_show_mouse_face): Remove unused var `j'.
13305 (handle_one_term_event): Remove unused vars `i' and `j'.
13306 Don't cast return value of ttyname since it's not necessary.
13307
a1be1ce8
SM
133082007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
13309
5045e68e
SM
13310 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13311 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13312
8071c00f
SM
13313 * fns.c (map_char_table): Use an array of int for `indices' rather than
13314 an array of Lisp_Objects (which are only ever integers anyway).
13315 (Fmap_char_table): Update caller.
13316 * lisp.h: Update prototype.
13317 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13318 * fontset.c (Ffontset_info):
13319 * casetab.c (set_case_table): Update callers.
13320
13321 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
13322
fab84e3c
SM
13323 * keymap.c (struct accessible_keymaps_data)
13324 (struct where_is_internal_data): New structures.
13325 (accessible_keymaps_1, where_is_internal_1): Use them to change
13326 interface to adhere to the one used by map_keymap.
13327 (Faccessible_keymaps, where_is_internal): Use map_keymap.
13328 (accessible_keymaps_char_table, where_is_internal_2): Remove.
13329
a1be1ce8
SM
13330 * keymap.h (map_keymap_function_t): More informative prototype.
13331
ef887810
RS
133322007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
13333
13334 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
13335 (looking_at_1): Don't change search_regs and last_thing_searched
13336 if `inhibit-changing-match-data' is non-nil.
13337 (string_match_1, search_buffer, set_search_regs): Likewise.
13338 (syms_of_search): Add Lisp level definition for
13339 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
13340 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
13341 start and end of the match, instead of using values in search_regs.
ef887810 13342
4d02fc25
SM
133432007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * minibuf.c (Fcompleting_read): New value `confirm-only'
13346 for `require-match'.
13347
fe45b81f
SM
133482007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
13349
13350 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
13351 part of the 2007-06-27 change to syms_of_fileio.
13352
a56dd283
YM
133532007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13354
13355 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
13356 Check WINDOWP before using XWINDOW. Consolidate return statements.
13357
0cf9f5b5
RS
133582007-06-27 Richard Stallman <rms@gnu.org>
13359
13360 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13361
a66f285a
JB
133622007-06-27 Juanma Barranquero <lekktu@gmail.com>
13363
13364 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
13365
8d0d84d2
YM
133662007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13367
13368 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
13369 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
13370 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
13371 (_free_internal, memalign): Use them.
13372 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
13373 Initialize to PTHREAD_MUTEX_INITIALIZER.
13374 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
13375 (morecore_nolock): Rename from morecore. All uses changed.
13376 Use only nolock versions of internal allocation functions.
13377 (_malloc_internal_nolock, _realloc_internal_nolock)
13378 (_free_internal_nolock): New functions created from
13379 _malloc_internal, _realloc_internal, and _free_internal.
13380 (_malloc_internal, _realloc_internal, _free_internal): Use them.
13381 Copy hook value to automatic variable before its use.
13382 (memalign): Copy hook value to automatic variable before its use.
13383
5a0bbd9a
KH
133842007-06-26 Kenichi Handa <handa@m17n.org>
13385
13386 * coding.c (Ffind_operation_coding_system): Docstring improved.
13387 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
13388
9a51747b
DK
133892007-06-25 David Kastrup <dak@gnu.org>
13390
13391 * keymap.c (Fcurrent_active_maps): Add `position' argument.
13392 (Fwhere_is_internal): Adjust call to `current-active-maps' to
13393 cater for additional parameter.
13394
13395 * keymap.h: Adjust number of parameters to `current-active-maps'.
13396
13397 * doc.c (Fsubstitute_command_keys): Adjust call of
13398 `current-active-maps'.
13399
e4305426
DK
134002007-06-25 David Kastrup <dak@gnu.org>
13401
13402 * callint.c (Fcall_interactively): Make the parsing of interactive
13403 specs somewhat more readable.
13404
511a18d9
YM
134052007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13406
13407 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
13408 to scroll bar gap also when bitmap fills fringe. Draw only foreground
13409 if extended background has already been filled.
13410
512eb161
YM
134112007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13412
13413 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
13414 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
13415
13416 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
13417 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
13418 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
13419 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
13420 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
13421 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
13422 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
13423 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
13424 Run timers during dialog popup.
13425 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
13426
2386b1f1
JR
134272007-06-21 Jason Rumney <jasonr@gnu.org>
13428
13429 * image.c (convert_mono_to_color_image): Swap fore and background.
13430
fab8b787
JR
134312007-06-20 Jason Rumney <jasonr@gnu.org>
13432
13433 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
13434 (w32_free_bdf_font): Unmap memory not handle.
13435
15bdd7a0 134362007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
13437
13438 * gmalloc.c (__morecore): Fix the declaration to comply with the
13439 definition.
13440
1bb8a291
JB
134412007-06-20 Juanma Barranquero <lekktu@gmail.com>
13442
13443 * w32term.c (w32_delete_display): Remove leftover declaration.
13444 (w32_define_cursor, w32_initialize): Make static.
13445
13446 * w32.c (_wsa_errlist): Fix typo in error message.
13447 (init_environment): Ignore any environment variable from the
13448 registry having a null value.
13449
92648dea
GM
134502007-06-20 Glenn Morris <rgm@gnu.org>
13451
13452 * Makefile.in (LIBGIF): Default to -lgif.
13453
ff25d115
JR
134542007-06-17 Jason Rumney <jasonr@gnu.org>
13455
13456 * w32menu.c (add_menu_item): Don't use multibyte string functions on
13457 unicode strings.
13458
a1a578a5
JB
134592007-06-16 Juanma Barranquero <lekktu@gmail.com>
13460
13461 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
13462 Fix typo in docstring.
13463
af41f8a8
EZ
134642007-06-16 Eli Zaretskii <eliz@gnu.org>
13465
13466 * w32menu.c (add_menu_item): Escape `&' characters in menu items
13467 and their keybindings.
13468
8b29cab9
CY
134692007-06-15 Chong Yidong <cyd@stupidchicken.com>
13470
13471 * composite.c (update_compositions): Fix last fix.
13472
c433c134
JR
134732007-06-14 Jason Rumney <jasonr@gnu.org>
13474
13475 * w32.c (get_process_times_fn): New function pointer.
13476 (globals_of_w32): Intialize it if present in kernel32.dll.
13477 (w32_get_internal_run_time): New function.
13478
13479 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
13480
553d3164
KH
134812007-06-14 Kenichi Handa <handa@etlken.m17n.org>
13482
13483 * composite.c (update_compositions): Check the validness of
13484 compositions.
13485
446ba96f
YM
134862007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13487
13488 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
13489 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
13490
13491 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
13492 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
13493
13494 * macgui.h (USE_MAC_TOOLBAR): New define.
13495
13496 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13497 Return immediately unless popup is activated.
13498
13499 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
13500 background to scroll bar gap.
13501 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13502 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13503 scroll bars on frame edge. Check fringe background extension.
13504 Don't clear extended fringe background area.
13505 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13506 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13507 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13508 [USE_MAC_TOOLBAR]: New macros.
13509 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13510 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13511 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13512 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13513 [USE_MAC_TOOLBAR]: New functions.
13514 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13515 manually if previous repositioning has failed.
13516 (mac_handle_keyboard_event): Use precomputed event kind.
13517 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13518 as tool bar item click. Handle mouse movement over tool bar items.
13519
13520 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13521 toolbar_win_gravity.
13522 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13523 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13524 Add externs.
13525
13526 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
13527 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
13528
9720173f
CY
135292007-06-14 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * image.c (search_image_cache): Remove unused variable.
13532
1217dd00
CY
135332007-06-13 Chong Yidong <cyd@stupidchicken.com>
13534
13535 * xfns.c, xmenu.c: Link to xaw3d if available.
13536
c5b8e0ea
YM
135372007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13538
13539 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
13540 frame_foreground and frame_background.
13541
13542 * image.c (lookup_image): Save frame foreground and background colors.
13543 (search_image_cache): Check if saved and current frame colors match.
13544
c69b0314
SM
135452007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * regex.c (regex_compile): Remove the `regnum' counter.
13548 Use bufp->re_nsub instead. Add support for \(?N:RE\).
13549
c9612b8e
SM
135502007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13551
13552 * term.c: Include intervals.h to declare Fget_text_property.
13553
843d2458
JR
135542007-06-10 Jason Rumney <jasonr@gnu.org>
13555
13556 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
13557
1e0d2d60 135582007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
13559
13560 * callint.c (Fcall_interactively):
13561 * editfns.c (Fdelete_and_extract_region):
13562 * fileio.c (Fread_file_name):
13563 * fns.c (Fmapconcat):
13564 * keyboard.c (cmd_error_internal):
13565 * keymap.c (Fkey_description):
13566 * lread.c (openp):
13567 * minibuf.c (read_minibuf):
13568 * search.c (wordify):
13569 * sunfns.c (sel_read):
13570 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
13571 * xfns.c (x_default_scroll_bar_color_parameter):
13572 * xmenu.c (menu_help_callback):
13573 * xselect.c (Fx_get_atom_name):
13574 * xterm.c (x_term_init): Use empty_unibyte_string.
13575
15bdd7a0 135762007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
13577
13578 * alloc.c (init_strings): Initialize canonical empty strings.
13579 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
13580 canonical empty string when the requested size is 0.
13581
13582 * emacs.c (empty_unibyte_string): Rename from empty_string.
13583 (empty_multibyte_string): New canonical empty string.
13584 (syms_of_emacs): Don't initialize empty_string.
13585
13586 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
13587 string, if appropriate.
13588 (empty_unibyte_string, empty_multibyte_string): New externs.
13589 (empty_string): Remove extern.
13590
13591 * lread.c (syms_of_lread): Use empty_unibyte_string.
13592
42c4c67a
JR
135932007-06-07 Jason Rumney <jasonr@gnu.org>
13594
13595 * s/ms-w32.h: Don't define HAVE_TZNAME.
13596
13597 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
13598
aa8280d3
YM
135992007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13600
13601 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
13602
13603 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
13604 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
13605
13606 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13607 Don't call next handler.
13608 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
13609 Remove argument. Install handler to application.
13610 (set_frame_menubar): Don't change deep_p.
1e0d2d60 13611 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
13612 FRAME_OUTER_TO_INNER_DIFF_Y.
13613 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13614 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13615 [HAVE_DIALOGS]: New macros.
13616 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
13617 Use them.
13618 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
13619
13620 * macselect.c [MAC_OSX] (install_service_handler): Rename from
13621 init_service_handler. All callers changed. Return OSStatus value.
13622
13623 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
13624 All callers changed so as not to call SetPortWindowPort.
13625 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
13626 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
13627 mac_draw_string_common.
13628 (mac_draw_image_string_qd): Likewise.
13629 (mac_draw_string_common): Use them. Add INLINE.
13630 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
13631 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
13632 GetGlobalMouse.
13633 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
13634 and FRAME_OUTER_TO_INNER_DIFF_Y.
13635 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
13636 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
13637 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
13638 repositioning window to mac_handle_window_event.
13639 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
13640 saving window location to mac_handle_window_event
13641 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
13642 (install_menu_target_item_handler): Remove argument in extern.
13643 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
13644 Also accept command events.
13645 (do_keystroke): New function created from XTread_socket.
13646 (init_command_handler): Remove functions.
13647 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
13648 and save window location by kEventWindowShowing and kEventWindowHiding
13649 handlers here. Don't call next handler for window state change and
13650 focus events.
13651 (mac_handle_application_event, mac_handle_keyboard_event)
13652 [TARGET_API_MAC_CARBON]: New functions.
13653 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
13654 kEventWindowShowing and kEventWindowHiding events. Move installation
13655 of mouse, font, text input and menu target item handlers to
13656 install_application_handler.
13657 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
13658 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13659 New function.
13660 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13661 Register it.
c9612b8e
SM
13662 (XTread_socket) [TARGET_API_MAC_CARBON]:
13663 Consolidate SendEventToEventTarget calls.
13664 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
13665 Move application activation handler to mac_handle_application_event.
13666 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
13667 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
13668 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
13669 init_command_handler. Call install_application_handler.
13670
13671 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
13672 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
13673
6926c954
GM
136742007-06-07 Glenn Morris <rgm@gnu.org>
13675
13676 * emacs.c (main): Use `emacs-copyright' in --version output.
13677
6fe04c89
CY
136782007-06-06 Chong Yidong <cyd@stupidchicken.com>
13679
c9612b8e 13680 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 13681
7eb0d727
YM
136822007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13683
13684 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
13685
13686 * macgui.h: Replace WindowPtr with WindowRef.
13687
13688 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13689 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13690 Replace ControlHandle with ControlRef.
13691 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
13692
13693 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13694 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13695 Replace ControlHandle with ControlRef.
13696 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
13697 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
13698
13699 * macterm.h (struct scroll_bar): Rename member control_handle_low
13700 and control_handle_high to control_ref_low and control_ref_high.
13701 All uses changed.
13702 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
13703 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
13704 respectively. All uses changed.
13705 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
13706 (install_window_handler, remove_window_handler): Replace WindowPtr
13707 with WindowRef in externs.
13708
65fddb74
JB
137092007-06-05 Juanma Barranquero <lekktu@gmail.com>
13710
13711 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
13712
db1213a9
NR
137132007-06-03 Nick Roberts <nickrob@snap.net.nz>
13714
13715 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
13716
65fddb74 13717 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
13718 Condition on HAVE_GPM too.
13719
13720 * term.c (term_mouse_highlight): Remove unused variables.
13721 (Fterm_open_connection): Set gpm_zerobased to 1.
13722 (term_mouse_movement, term_mouse_click, handle_one_term_event):
13723 Use zero based co-ordinates.
13724 (handle_one_term_event): Report a drag as mouse movement too.
13725
13726 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
13727
d94df25b
CY
137282007-06-03 Chong Yidong <cyd@stupidchicken.com>
13729
13730 * image.c (search_image_cache): New function. Require background
13731 color match if background color is unspecified in the image spec.
13732 (uncache_image, lookup_image): Use it.
13733
4797b6d9
JB
137342007-06-01 Juanma Barranquero <lekktu@gmail.com>
13735
13736 * window.c (Fshrink_window): Reflow docstring.
13737
1ffe7343
NR
137382007-06-02 Chong Yidong <cyd@stupidchicken.com>
13739
13740 * Version 22.1 released.
13741
137422007-06-01 Richard Stallman <rms@gnu.org>
13743
13744 * xfns.c (x_encode_text): Add GCPRO.
13745
137462007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13747
13748 * xfns.c (x_set_name_internal): Save encoded name before
13749 x_encode_text in case string data is relocated.
13750
137512007-05-31 Richard Stallman <rms@gnu.org>
13752
13753 * buffer.c (syms_of_buffer): Doc fix.
13754
137552007-05-30 Nick Roberts <nickrob@snap.net.nz>
13756
13757 * sysdep.c (init_sys_modes): Add rather than replace with
13758 O_NONBLOCK.
13759
13760 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
13761 term_mouse_moveto.
13762
13763 * termhooks.h (term_mouse_moveto): New extern.
13764
13765 * term.c (mouse_face_window): Rename...
13766 (Qmouse_face_window): ...to this.
13767 (term_show_mouse_face, term_clear_mouse_face)
13768 (term_mouse_highlight): Use Qmouse_face_window.
13769 (term_mouse_moveto): New function.
13770 (term_mouse_position): Make it work.
13771 (syms_of_term): Uncomment assignment to mouse_position_hook.
13772 Staticpro Qmouse_face_window.
13773
137742007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13775
13776 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
13777 around current_column call.
13778
137792007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
13780
13781 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
13782 * xdisp.c (next_element_from_buffer):
13783 * window.c (delete_window):
13784 * term.c (term_mouse_highlight):
13785 * msdos.c (getdefdir):
13786 * macterm.c (mac_create_bitmap_from_bitmap_data)
13787 (init_font_name_table):
13788 * fns.c (Fsxhash):
13789 * data.c (Fmake_local_variable):
13790 * ccl.c (ccl_driver): Likewise.
13791
137922007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13793
13794 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
13795 Call mac_wakeup_from_rne on window size change.
13796
137972007-05-25 Chong Yidong <cyd@stupidchicken.com>
13798
13799 * image.c (uncache_image): Fix typo.
13800
138012007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13802
13803 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13804
138052007-05-22 Richard Stallman <rms@gnu.org>
13806
13807 * xterm.c (x_connection_closed): Remove NO_RETURN.
13808
138092007-05-22 Martin Rudalics <rudalics@gmx.at>
13810
13811 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13812
138132007-05-21 Chong Yidong <cyd@stupidchicken.com>
13814
13815 * image.c (uncache_image): New function.
13816 (Fimage_refresh): New function.
13817
880820fe 138182007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
13819
13820 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13821
138222007-05-20 Nick Roberts <nickrob@snap.net.nz>
13823
13824 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13825 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13826
138272007-05-20 Nick Roberts <nickrob@snap.net.nz>
13828
13829 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13830 conditional on [HAVE_GPM_H].
13831
138322007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * syntax.c (skip_chars): Update syntax-table only after we checked that
13835 the new location is valid.
13836
138372007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13838
13839 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13840 mac_get_window_bounds.
13841
138422007-05-20 Nick Roberts <nickrob@snap.net.nz>
13843
13844 * Makefile.in (LIBGPM): Allow it to be set from configure.
13845 If set then link Emacs with it.
13846
13847 * config.in: Regenerate.
13848
13849 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13850 New externs.
13851
13852 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13853 Include gpm.h.
13854 (handle_one_term_event, term_gpm): New externs.
13855
13856 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13857 and allow it to be interrupted by SIGIO.
13858
13859 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13860 (wait_reading_process_output): Wait on gpm_fd too.
13861 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13862 (add_gpm_wait_descriptor_called_flag): New variable.
13863 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13864
13865 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13866 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13867 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
13868 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
13869 (make_lispy_event): Add case GPM_CLICK_EVENT.
13870 (read_avail_input): Handle mouse input.
13871
13872 * term.c (write_glyphs_with_face): New function.
13873 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
13874 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
13875 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
13876 (mouse_face_face_id, term_gpm, pos_x, pos_y)
13877 (last_mouse_x, last_mouse_y): New variables.
13878 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
13879 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
13880 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
13881 (Fterm_close_connection): New functions.
13882 (term_init): Initialise mouse_face_window.
13883
138842007-05-19 Chong Yidong <cyd@stupidchicken.com>
13885
13886 * xdisp.c (redisplay_window): If first window line is a
13887 continuation line, recompute the new window start instead of
13888 recentering.
13889
138902007-05-18 Glenn Morris <rgm@gnu.org>
13891
13892 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
13893 Suggested by Alfred M. Szmidt <ams@gnu.org>.
13894
138952007-05-17 Glenn Morris <rgm@gnu.org>
13896
13897 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
13898
138992007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13900
13901 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
13902 dead key repeat and up events.
13903
139042007-05-14 Chong Yidong <cyd@stupidchicken.com>
13905
13906 * image.c (pbm_load): Check image size for monochrome pbm.
13907
139082007-05-13 Chong Yidong <cyd@stupidchicken.com>
13909
13910 * xterm.c (XTread_socket): Revert last change.
13911
139122007-05-12 Chong Yidong <cyd@stupidchicken.com>
13913
13914 * image.c (pbm_load): Correctly check image size for greyscale pbm.
13915
13916 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
13917
139182007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13919
13920 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
13921 mixup (YAILOM).
13922
139232007-05-07 Andreas Schwab <schwab@suse.de>
13924
13925 * keymap.c (Flookup_key): Fix typo in last change.
13926
139272007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13928
13929 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
13930 mapping for unibyte strings.
13931
139322007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13933
13934 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
13935 (Fx_popup_dialog) [MAC_OSX]: Likewise.
13936
139372007-04-29 Richard Stallman <rms@gnu.org>
13938
13939 * insdel.c (replace_range): For undo, record insertion first.
13940
139412007-04-29 Andreas Schwab <schwab@suse.de>
13942
13943 * lisp.h (VECSIZE): Use OFFSETOF.
13944
139452007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13946
13947 * xdisp.c (try_window_reusing_current_matrix): Fix number of
13948 disabled lines.
13949
139502007-04-28 Richard Stallman <rms@gnu.org>
13951
13952 * lread.c (read_escape): In a string, \s is always space.
13953
880820fe 139542007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
13955
13956 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
13957
13958 * gtkutil.c (xg_update_menubar, create_menus): Create empty
13959 submenu for menu bar items.
13960
382c648d 13961See ChangeLog.10 for earlier changes.
6922b018
KH
13962
13963;; Local Variables:
880820fe 13964;; coding: utf-8
33462dfa 13965;; add-log-time-zone-rule: t
67e8d28a 13966;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 13967;; End:
2a34a036 13968
59ce725a 13969 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
13970
13971 This file is part of GNU Emacs.
13972
5a1dde61 13973 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 13974 it under the terms of the GNU General Public License as published by
5a1dde61
GM
13975 the Free Software Foundation, either version 3 of the License, or
13976 (at your option) any later version.
7f6d64f8
GM
13977
13978 GNU Emacs is distributed in the hope that it will be useful,
13979 but WITHOUT ANY WARRANTY; without even the implied warranty of
13980 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13981 GNU General Public License for more details.
13982
13983 You should have received a copy of the GNU General Public License
5a1dde61 13984 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 13985
28f60c3d 13986;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40