b6847aa164ee418ba7a54b3e30f69df423fe70dc
[bpt/emacs.git] / src / ChangeLog
1 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2
3 * Makefile.in (PRE_ALLOC_OBJ): Don't use Make-style comments past
4 the "start of cpp stuff" line.
5
6 2010-05-07 Glenn Morris <rgm@gnu.org>
7
8 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
10 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
11 move out of cpp section.
12 * s/freebsd.h (LD_SWITCH_SYSTEM):
13 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
14 * s/netbsd.h (LD_SWITCH_SYSTEM):
15 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
16
17 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
18
19 Define LIB_STANDARD and START_FILES using autoconf.
20 * s/usg5-4.h (LIB_STANDARD):
21 * s/netbsd.h (START_FILES):
22 * s/irix6-5.h (LIB_STANDARD):
23 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
24 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
25 * s/freebsd.h (START_FILES):
26 * s/darwin.h (START_FILES):
27 * s/cygwin.h (START_FILES):
28 * s/aix4-2.h (LIB_STANDARD):
29 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
30 * Makefile.in (STARTFILES): Rename to START_FILES, define using
31 autoconf, not cpp.
32
33 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
34
35 Remove NEED_BSDTTY and NEED_UNISTD_H.
36 * s/hpux10-20.h (NEED_BSDTTY): Remove.
37 * s/aix4-2.h (NEED_UNISTD_H): Remove.
38 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
39 <sys/ptyio.h> and <unistd.h>.
40
41 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
42
43 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
44 * s/gnu.h (START_FILES): Remove empty definition.
45
46 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
47
48 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
49
50 2010-05-06 Glenn Morris <rgm@gnu.org>
51
52 * Makefile.in (CPP, LN_S): Remove unused variables.
53
54 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
55
56 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
57
58 2010-05-05 Lawrence Mitchell <wence@gmx.li>
59
60 * m/sparc.h: Fix typo in earlier change.
61
62 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
63
64 Misc tweaks.
65 * eval.c (Fdefvaralias): Remove unintended nested if.
66 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
67
68 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
69
70 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
71
72 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
73
74 Remove BSD_PGRPS.
75 * s/bsd-common.h (BSD_PGRPS): Remove undef.
76 * s/gnu-linux.h (BSD_PGRPS): Remove.
77 * term.c (dissociate_if_controlling_tty):
78 * sysdep.c (narrow_foreground_group, widen_foreground_group)
79 (init_sys_modes, reset_sys_modes):
80 * emacs.c (main):
81 * callproc.c (Fcall_process, child_setup): Remove code depending
82 on BSD_PGRPS.
83
84 Remove POSIX_SIGNALS.
85 * s/usg5-4.h (POSIX_SIGNALS):
86 * s/netbsd.h (POSIX_SIGNALS):
87 * s/msdos.h (POSIX_SIGNALS):
88 * s/ms-w32.h (POSIX_SIGNALS):
89 * s/hpux11.h (POSIX_SIGNALS):
90 * s/gnu.h (POSIX_SIGNALS):
91 * s/gnu-linux.h (POSIX_SIGNALS):
92 * s/freebsd.h (POSIX_SIGNALS):
93 * s/darwin.h (POSIX_SIGNALS):
94 * s/cygwin.h (POSIX_SIGNALS):
95 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
96 * s/unixware.h:
97 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
98 * process.c (create_process):
99 * syssignal.h:
100 * sysdep.c (wait_for_termination, init_signals):
101 * process.c (create_process):
102 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
103 remove all code that assumes the contrary.
104
105 2010-05-04 Glenn Morris <rgm@gnu.org>
106
107 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
108 variable.
109 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
110 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
111 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
112 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
113 LD_SWITCH_SYSTEM_tmp.
114 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
115 New variables, set by configure.
116
117 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
118 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
119 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
120 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
121 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
122
123 * s/aix4-2.h (C_SWITCH_SYSTEM):
124 * m/alpha.h (C_SWITCH_MACHINE):
125 Move to configure.in.
126 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
127 New variables, set by configure.
128 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
129 $c_switch_machine and $c_switch_system.
130
131 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
132
133 * s/hpux10-20.h (LIB_STANDARD): New definition.
134 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
135 on it, not used anymore.
136
137 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
138
139 * eval.c (internal_condition_case_n): Rename from
140 internal_condition_case_2.
141 (internal_condition_case_2): New function.
142
143 * xdisp.c (safe_call): Use internal_condition_case_n.
144
145 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
146 (internal_delete_file, Frename_file): Callers changed.
147
148 * buffer.c (Fkill_buffer):
149 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
150
151 * lisp.h: Update prototypes.
152
153 2010-05-03 Glenn Morris <rgm@gnu.org>
154
155 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
156 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
157 (LIBXT): Set with configure, not cpp.
158 (LIBX): Remove.
159 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
160
161 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
162
163 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
164 The FreeBSD is not needed, the default works, Solaris version is
165 not needed, and the remaining case is not supported by configure.
166
167 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
168
169 * xsmfns.c (CHDIR_OPT): New define.
170 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
171 restarting emacs.
172
173 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
174 shut_down_emacs.
175
176 * emacs.c (USAGE1): Mention --chdir.
177 (main): Handle --chdir.
178 (standard_args): Add --chdir.
179 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
180 #5552).
181
182 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
183
184 Remove LD_SWITCH_MACHINE.
185 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
186 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
187
188 Clean up IRIX code.
189 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
190 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
191
192 Clean up AIX code.
193 * m/ibmrs6000.inp: Remove file, unused.
194 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
195 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
196 definition ...
197 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
198
199 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
200 unused.
201
202 2010-05-01 Eli Zaretskii <eliz@gnu.org>
203
204 Emulate POSIX_SIGNALS on MS-Windows.
205
206 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
207 (SIG_SETMASK, SIG_UNBLOCK): Define.
208
209 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
210 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
211 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
212
213 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
214 New stubs.
215
216 Miscellaneous fixes of bidi display.
217
218 * xdisp.c (find_row_end): New function, refactored from display_line.
219 (display_line): Use it.
220 (extend_face_to_end_of_line): In almost-filled rows, extend only
221 if the row is R2L and not continued.
222 (display_line): Fix prepending of truncation glyphs to R2L rows.
223 Preserve overlay and string info in row->end.
224 (insert_left_trunc_glyphs): Support addition of left truncation
225 glyphs to R2L rows.
226 (set_cursor_from_row): Don't place cursor on the vertical border
227 glyph between adjacent windows. Fix a crash when a display string
228 is continued to the next line. Don't return zero if cursor was
229 found by `cursor' property of a display string.
230 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
231 test for that explicitly.
232
233 2010-05-01 Glenn Morris <rgm@gnu.org>
234
235 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
236 for clarity.
237 (OTHER_OBJ): Remove.
238 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
239 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
240
241 2010-05-01 Karel Klíč <kklic@redhat.com>
242
243 * fileio.c (Ffile_selinux_context): Context functions may return null.
244
245 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
246
247 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
248
249 2010-04-30 Glenn Morris <rgm@gnu.org>
250
251 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
252 (OTHER_OBJ): Define as a separate variable, for clarity.
253
254 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
255
256 * xsettings.c: include limits.h and update file comment.
257
258 2010-04-30 Glenn Morris <rgm@gnu.org>
259
260 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
261 Set with configure, not cpp.
262 (LIBW): Remove, replace with $TOOLKIT_LIBW.
263
264 * Makefile.in (mallocobj): Remove.
265 (otherobj): Simplify using @OTHER_OBJ@.
266
267 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
268 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
269 Don't bother making nsgui.h dependency platform-specific.
270
271 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
272
273 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
274
275 * process.c (read_process_output, exec_sentinel): Don't burp if the
276 sentinel/filter kills the current buffer (bug#6060).
277
278 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
279 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
280 Remove unused var `args'.
281 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
282 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
283 * doc.c (store_function_docstring): Use XSETCAR.
284
285 2010-04-28 Glenn Morris <rgm@gnu.org>
286
287 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
288 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
289
290 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
291
292 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
293 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
294
295 * Makefile.in (FONT_OBJ): New, set by configure.
296 (FONT_DRIVERS): Use $FONT_OBJ.
297
298 * Makefile.in (LIBXMU): Set with configure, not cpp.
299 * s/aix4-2.h (LIBXMU):
300 * s/hpux10-20.h (LIBXMU):
301 Remove definition, now set in configure.
302
303 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
304
305 * m/amdx86-64.h [i386]: Move this test to configure.in.
306
307 2010-04-27 Glenn Morris <rgm@gnu.org>
308
309 * Makefile.in (LIBXTR6): Set with configure, not cpp.
310 * s/unixware.h (NEED_LIBW): Remove definition.
311
312 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
313 (TOOLKIT_LIBW): New, set by configure.
314 (@X_TOOLKIT_TYPE@): No longer define it.
315
316 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
317 (MOTIF_LIBW): Set with configure, not cpp.
318 * s/aix4-2.h (LIB_MOTIF):
319 * s/gnu-linux.h (LIB_MOTIF):
320 * s/unixware.h (LIB_MOTIF): Move to configure.in.
321
322 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
323
324 Reduce CPP usage.
325 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
326 (obj): Use autoconf for unexec instead of cpp.
327 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
328 definitions and undefs. Inline definitions in the only user.
329 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
330
331 2010-04-27 Glenn Morris <rgm@gnu.org>
332
333 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
334 since the defaults (set by the system file) are fine in most cases.
335 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
336 * m/ibms390x.h (START_FILES, LIB_STANDARD):
337 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
338 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
339 Remove definitions, since they are set correctly in s/gnu-linux.h.
340 * s/freebsd.h (START_FILES, LIB_STANDARD):
341 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
342 * s/hpux10-20.h (START_FILES):
343 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
344 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
345
346 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
347 (MOTIF_LIBW): Use $LIBXP.
348 (otherobj): Use $WIDGET_OBJ.
349
350 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
351
352 * Makefile.in (LIBS_MACHINE): Remove, unused.
353
354 Use autoconf instead of cpp for LIB_MATH.
355 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
356 * s/cygwin.h (LIB_MATH): Likewise.
357 * Makefile.in (LIB_MATH): Do not define with cpp.
358 (LIBES): Use autoconf for LIB_MATH.
359
360 2010-04-26 Kenichi Handa <handa@m17n.org>
361
362 * composite.c (Ffind_composition_internal): Fix the return value
363 for an automatic composition.
364
365 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
366
367 Remove all NO_ARG_ARRAY uses.
368 * fns.c (concat2, concat3, nconc2):
369 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
370 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
371 * m/xtensa.h (NO_ARG_ARRAY):
372 * m/template.h (NO_ARG_ARRAY):
373 * m/sparc.h (NO_ARG_ARRAY):
374 * m/sh3.h (NO_ARG_ARRAY):
375 * m/mips.h (NO_ARG_ARRAY):
376 * m/macppc.h (NO_ARG_ARRAY):
377 * m/iris4d.h (NO_ARG_ARRAY):
378 * m/intel386.h (NO_ARG_ARRAY):
379 * m/ibms390x.h (NO_ARG_ARRAY):
380 * m/ibms390.h (NO_ARG_ARRAY):
381 * m/ibmrs6000.h (NO_ARG_ARRAY):
382 * m/ia64.h (NO_ARG_ARRAY):
383 * m/hp800.h (NO_ARG_ARRAY):
384 * m/arm.h (NO_ARG_ARRAY):
385 * m/amdx86-64.h (NO_ARG_ARRAY):
386 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
387
388 2010-04-25 Eli Zaretskii <eliz@gnu.org>
389
390 * xdisp.c (display_line): Don't assume 2nd call to
391 get_next_display_element cannot return zero. (Bug#6030)
392 (iterate_out_of_display_property): New function, body from pop_it.
393 (pop_it): Use it.
394
395 2010-04-24 Glenn Morris <rgm@gnu.org>
396
397 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
398 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
399 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
400 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
401
402 2010-04-24 Eli Zaretskii <eliz@gnu.org>
403
404 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
405 use `get_next_display_element' and `set_iterator_to_next' to
406 advance to the next character, when looking for the character that
407 begins the next row.
408
409 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
410 definition of "struct Lisp_Symbol".
411
412 2010-04-24 Glenn Morris <rgm@gnu.org>
413
414 * Makefile.in (CRT_DIR): New variable, set by configure.
415 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
416 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
417
418 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
419
420 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
421
422 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
423
424 Remove redundant flags.
425 * s/freebsd.h (C_SWITCH_SYSTEM):
426 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
427 * s/netbsd.h (C_SWITCH_SYSTEM):
428 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
429 of these.
430
431 Simplify m/intel386.h.
432 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
433 user: ecrt0.c.
434 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
435 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
436 the only user: s/unixware.h.
437 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
438 from m/intel386.h.
439 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
440 moved here from m/intel386.h.
441
442 * m/mips.h: Remove #if 0 code.
443
444 2010-04-23 Eli Zaretskii <eliz@gnu.org>
445
446 Fix display of composed characters from L2R scripts in bidi buffers.
447 * xdisp.c (set_iterator_to_next, next_element_from_composition):
448 After advancing IT past the composition, resync the bidi iterator
449 with IT's position. (Bug#5977)
450
451 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
452
453 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
454 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
455
456 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
457
458 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
459
460 2010-04-23 Eli Zaretskii <eliz@gnu.org>
461
462 Support `display' text properties and overlay strings in bidi buffers.
463 * xdisp.c (pop_it): When the stack is popped after displaying
464 from a string, bidi-iterate to exit from the text portion covered
465 by the `display' property or overlay. (Bug#5988, bug#5920)
466
467 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
468
469 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
470 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
471
472 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
473 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
474
475 Simplify STARTFILES definition.
476 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
477 relying on Makefile.in to define it.
478 * s/cygwin.h (START_FILES): Likewise.
479 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
480
481 Clean up Solaris code.
482 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
483 (LIB_MOTIF): Remove, configure takes care of this.
484 (NOT_USING_MOTIF): Remove, unused.
485 * xrdb.c: Remove #if 0-ed #include.
486 (SYSV): Remove conditional for old SysV.
487 * sysdep.c (closedir): Remove conditional code for Solaris,
488 Solaris has closedir.
489
490 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
491
492 * xsettings.c (read_and_apply_settings): Check if current_font is
493 NULL before strcmp (Bug#6001).
494
495 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
496
497 Clean up HP-UX files.
498 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
499 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
500 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
501 * s/hpux10-20.h: ... to the only user, here.
502
503 2010-04-21 Eli Zaretskii <eliz@gnu.org>
504
505 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
506 use buffer-local values of paragraph-start and paragraph-separate.
507 <paragraph_start_re, paragraph_separate_re>: Rename from
508 fallback_paragraph_start_re and fallback_paragraph_separate_re.
509 (Bug#5992)
510
511 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
512
513 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
514 current_tool_bar_style are new.
515 (store_config_changed_event): Rename from store_font_changed_event.
516 (XSETTINGS_TOOL_BAR_STYLE): New define.
517 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
518 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
519 HAVE_XFT.
520 (something_changedCB): store_font_changed_event is now
521 store_config_changed_event
522 (parse_settings): Rename from parse_xft_settings. Read
523 non-xft xsettings outside #ifdef HAVE_XFT.
524 (read_settings): Renamed from read_xft_settings.
525 (apply_xft_settings): Take current settings as parameter. Do not
526 call read_(xft)_settings.
527 (read_and_apply_settings): New function.
528 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
529 read_and_apply_settings if there are settings to be read.
530 (init_xsettings): Renamed from init_xfd_settings.
531 Call read_and_apply_settings unconditionally.
532 (xsettings_initialize): Call init_xsettings.
533 (Ftool_bar_get_system_style): New function.
534 (syms_of_xsettings): Define Qmonospace_font_name and
535 Qtool_bar_style. Initialize current_tool_bar_style to nil.
536 defsubr Stool_bar_get_system_style. Fprovide on
537 dynamic-setting.
538 Move misplaced HAVE_GCONF
539
540 * xsettings.h (Ftool_bar_get_system_style): Declare.
541
542 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
543 Qtext, Qboth, Qboth_horiz are new.
544 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
545 Vtool_bar_style, tool_bar_max_label_size.
546
547 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
548
549 * keyboard.c: QClabel is new.
550 (parse_tool_bar_item): Take out QClabel from tool bar items.
551 Try to construct a label if ther is no QClabel.
552 (syms_of_keyboard): Intern :label as QClabel.
553
554 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
555 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
556 New.
557
558 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
559 dynamic-setting.el.
560
561 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
562 (xg_make_tool_item, xg_show_toolbar_item): New function.
563 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
564 Call xg_make_tool_item to make a tool bar item.
565 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
566
567 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
568 into account for toolbars.
569
570 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
571
572 * data.c (make_blv): Declarations before code (Bug#5993).
573
574 2010-04-21 Glenn Morris <rgm@gnu.org>
575
576 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
577 Define using autoconf, not cpp.
578 (LIBXSM): New variable, set by autoconf.
579 (LIBXT): Use $LIBXSM.
580
581 2010-04-21 Dan Nicolaescu <local_user@dannlt>
582
583 Remove NOMULTIPLEJOBS, unused.
584 * s/template.h (NOMULTIPLEJOBS):
585 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
586
587 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
588 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
589 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
590 detects -znocombreloc and passes it to the linker
591 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
592
593 2010-04-21 Glenn Morris <rgm@gnu.org>
594
595 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
596
597 2010-04-21 Karel Klíč <kklic@redhat.com>
598
599 * Makefile.in (LIBSELINUX_LIBS): New.
600 (LIBES): Add $LIBSELINUX_LIBS.
601 * eval.c, lisp.h (call7): New function.
602 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
603 (Ffile_selinux_context, Fset_file_selinux_context):
604 New functions.
605 (Fcopy_file): New parameter preserve-selinux-context.
606 (Frename_file): Preserve selinux context when renaming by copy-file.
607
608 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
609 Eli Zaretskii <eliz@gnu.org>
610
611 Don't depend on cm.c or termcap.c on Windows, use stubs.
612 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
613 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
614 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
615 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
616 (sys_tputs, sys_tgetstr): New stubs.
617 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
618 (tputs, tgetstr): New; define to sys_*.
619
620 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
621
622 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
623
624 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
625
626 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
627 Just signal a warning rather than an error when inside a let.
628 (Fmake_variable_frame_local): Add the same test.
629
630 * font.c (syms_of_font): Make the style table vars read-only.
631
632 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
633 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
634
635 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
636
637 2010-04-20 Eli Zaretskii <eliz@gnu.org>
638
639 Fix R2L paragraph display on TTY.
640
641 * xdisp.c (unproduce_glyphs): New function.
642 (display_line): Use it when produced glyphs are discarded from R2L
643 glyph rows.
644 (append_composite_glyph): In R2L rows, prepend the glyph rather
645 than appending it.
646
647 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
648 rather than append it. Set up the resolved_level and bidi_type
649 attributes of the appended glyph.
650 (produce_special_glyphs): Mirror the backslash continuation
651 character in R2L lines.
652
653 Implement display of R2L paragraphs in GUI sessions.
654
655 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
656 append_stretch_glyph.
657 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
658 off-by-one error in computing x at end of text in the row.
659 (append_stretch_glyph): In reversed row, prepend the glyph rather
660 than append it. Set resolved_level and bidi_type of the glyph.
661 (extend_face_to_end_of_line): If the row is reversed, prepend a
662 stretch glyph whose width is such that the rightmost glyph will be
663 drawn at the right margin of the window. Fix off-by-one error on
664 TTY frames in testing whether a line needs face extension. Fix
665 face extension at ZV. If this is the last glyph row, use
666 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
667 region face.
668 (set_cursor_from_row, display_line): Use
669 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
670 row->continuation_lines_width.
671 (next_element_from_buffer): Don't call bidi_paragraph_init if we
672 are at ZV. Fixes a crash when reseated to ZV by
673 try_window_reusing_current_matrix.
674 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
675 which happens with R2L glyph rows. Fixes a crash when inserting a
676 character at end of an R2L line.
677 (set_cursor_from_row): Don't be fooled by truncated rows: don't
678 treat them as having zero-width characters. Improve comments.
679 Don't reverse pos_before and pos_after for reversed glyph rows.
680 Set cursor.x to negative value when the cursor might be on the
681 left fringe.
682 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
683 left fringe, not the right one.
684 (notice_overwritten_cursor, draw_phys_cursor_glyph)
685 (erase_phys_cursor): For reversed cursor_row, support cursor on
686 the left fringe.
687
688 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
689 of continuation indicators on the fringes.
690 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
691 left fringe.
692
693 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
694 draw cursor on the left fringe.
695
696 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
697 cursor on the left fringe.
698
699 * dispnew.c (update_text_area): Handle reversed desired rows when
700 the cursor is on the left fringe.
701 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
702 below, not by 0, for when the cursor is on the left fringe.
703
704 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
705
706 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
707 widget is a scrollbar.
708
709 2010-04-20 Kenichi Handa <handa@m17n.org>
710
711 * charset.c (char_charset): Consider Vcharset_non_preferred_head
712 only when the arg CHARSET_LIST is nil.
713
714 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
715
716 Make variable forwarding explicit rather the using special values.
717 Basically, this makes the structure of buffer-local values and object
718 forwarding explicit in the type of Lisp_Symbols rather than use
719 special Lisp_Objects for that. This tends to lead to slightly more
720 verbose code, but is more C-like, simpler, and makes it easier to make
721 sure we handled all cases, among other things by letting the compiler
722 help us check it.
723 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
724 Removing forwarding objects.
725 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
726 (struct Lisp_Symbol): Make the various forms of variable-forwarding
727 explicit rather than hiding them inside Lisp_Object "values".
728 (XFWDTYPE): New macro.
729 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
730 (XBUFFER_LOCAL_VALUE): Remove.
731 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
732 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
733 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
734 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
735 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
736 Remove the Lisp_Misc_* header.
737 (struct Lisp_Buffer_Local_Value): Redefine.
738 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
739 (struct Lisp_Misc_Any): Add filler to get the right size.
740 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
741 Lisp_Intfwd.
742 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
743 (DEFVAR_KBOARD): Allocate a forwarding object.
744 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
745 (let_shadows_global_binding_p): New function.
746 (union Lisp_Val_Fwd): New type.
747 (make_blv): New function.
748 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
749 (store_symval_forwarding, swap_in_global_binding, Fboundp)
750 (swap_in_symval_forwarding, find_symbol_value, Fset)
751 (let_shadows_buffer_binding_p, set_internal, default_value)
752 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
753 (Fkill_local_variable, Fmake_variable_frame_local)
754 (Flocal_variable_p, Flocal_variable_if_set_p)
755 (Fvariable_binding_locus):
756 * xdisp.c (select_frame_for_redisplay):
757 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
758 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
759 * frame.c (store_frame_param):
760 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
761 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
762 value structure.
763 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
764 (clone_per_buffer_values): Only adjust markers into the current buffer.
765 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
766 (Fbuffer_local_value, set_buffer_internal_1)
767 (swap_out_buffer_local_variables):
768 Adapt to the new symbol value structure.
769 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
770 (defvar_per_buffer): Take a new arg for the fwd object.
771 (buffer_lisp_local_variables): Return a proper alist (different fix
772 for bug#4138).
773 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
774 (Fgarbage_collect): Don't handle buffer_defaults specially.
775 (mark_object): Handle new symbol value structure rather than the old
776 special Lisp_Misc_* objects.
777 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
778 * term.c (set_tty_color_mode):
779 * bidi.c (bidi_initialize): Don't access the ->value field directly.
780 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
781 a buffer_local_flags.
782 * print.c (print_object): Get rid of impossible forwarding objects.
783
784 2010-04-19 Eli Zaretskii <eliz@gnu.org>
785
786 * bidi.c (bidi_get_type, bidi_get_category)
787 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
788 (bidi_type_of_next_char, bidi_level_of_next_char):
789 Declare static. Use `INLINE' rather than `inline'.
790
791 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
792
793 * dired.c (Ffile_attributes): Fix typo in docstring.
794
795 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
796
797 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
798 NSInteger (Bug#5811).
799
800 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
801
802 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
803 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
804
805 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
806
807 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
808
809 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
810
811 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
812 terminal frames (Bug#5837).
813
814 2010-04-19 Eli Zaretskii <eliz@gnu.org>
815
816 * .gdbinit (xsubchartable): New command.
817
818 2010-04-19 Eli Zaretskii <eliz@gnu.org>
819
820 * xdisp.c (display_line): Don't write beyond the last glyph row in
821 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
822 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
823 and
824 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
825
826 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
827
828 * alloc.c (Fpurecopy): Hash-cons if requested.
829 (syms_of_alloc): Update purify-flag docstring.
830
831 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
832
833 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
834 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
835
836 2010-04-17 Eli Zaretskii <eliz@gnu.org>
837
838 Fix a crash when an NSM character is inserted at BEGV.
839
840 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
841 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
842 NEUTRAL_B or UNKNOWN_BT.
843
844 2010-04-16 Eli Zaretskii <eliz@gnu.org>
845
846 * xdisp.c (set_cursor_from_row): Don't consider possibility of
847 other rows with cursor unless they are different from this row and
848 this row is part of a continued line. (Bug#5943)
849
850 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
851
852 * s/freebsd.h: Restore osreldate.h include.
853 Suggested by Naohiro Aota.
854
855 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
856
857 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
858
859 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
860
861 * s/cygwin.h: Avoid linking against static libgcc.
862
863 2010-04-15 Juri Linkov <juri@jurta.org>
864
865 * window.c: Add Qscroll_command.
866 Remove Vscroll_preserve_screen_position_commands.
867 (window_scroll_pixel_based, window_scroll_line_based): Check the
868 `scroll-command' property on the last command instead of searching
869 the last command in Vscroll_preserve_screen_position_commands.
870 (syms_of_window): Initialize and staticpro `Qscroll_command'.
871 Put Qscroll_command property on Qscroll_up and Qscroll_down.
872 (scroll-preserve-screen-position): Doc fix.
873 (Vscroll_preserve_screen_position_commands): Remove variable.
874
875 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
876
877 * xdisp.c (message): Do not use NO_ARG_ARRAY.
878
879 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
880
881 Reduce cpp use in Makefile.in.
882 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
883 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
884 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
885 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
886 (CRT0_COMPILE): Remove, inline it in the only user.
887
888 2010-04-14 Juri Linkov <juri@jurta.org>
889
890 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
891 `scroll-up-command' and `M-v' from `scroll-down' to
892 `scroll-down-command'.
893
894 2010-04-14 Juri Linkov <juri@jurta.org>
895
896 * window.c (Vscroll_preserve_screen_position_commands): New variable
897 with the default value as the list of Qscroll_down and Qscroll_up.
898 (window_scroll_pixel_based, window_scroll_line_based): Search the
899 last command in the list Vscroll_preserve_screen_position_commands
900 instead of comparing with Qscroll_up and Qscroll_down.
901
902 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
903
904 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
905 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
906 does that.
907
908 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
909 to zero.
910
911 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
912
913 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
914
915 Try to solve the problem of spurious EOF chars in long lines of text
916 sent to interactive subprocesses.
917 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
918 (system_process_attributes): Remove unused var `ttotal'.
919 * process.c (send_process): Don't bother breaking long line with EOF
920 chars when talking to ttys any more.
921 (wait_reading_process_output): Output a warning when called in such
922 a way that it could block without being interruptible.
923
924 Try to detect file modification within the same second.
925 * buffer.h (struct buffer): New field modtime_size.
926 * buffer.c (reset_buffer): Initialize it.
927 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
928 (Fverify_visited_file_modtime): Check it.
929 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
930 (Fset_visited_file_modtime): Set (or clear) it.
931
932 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
933
934 * process.c (status_notify): Remove unused var `ro'.
935
936 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
937
938 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
939 more than one visual (Bug#5938).
940
941 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
942
943 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
944 Undefine.
945
946 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
947
948 Remove C_SWITCH_SYSTEM_TEMACS.
949 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
950 (malloc, realloc, free): Use emacs, not temacs for conditional
951 definition.
952
953 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
954 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
955
956 Use autoconf, not cpp for some variables.
957 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
958 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
959 (ALL_CFLAGS): Use them as make variables.
960 (really-lwlib, really-oldXMenu): Do not pass them.
961
962 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
963
964 * xmenu.c (apply_systemfont_to_dialog): New.
965 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
966
967 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
968
969 * process.c (exec_sentinel): Preserve current-buffer.
970
971 * process.c (read_process_output): Move the save-current-buffer to
972 apply to both the filter and the non-filter branches.
973
974 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
975
976 * s/msdos.h (UNEXEC): New definition.
977
978 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
979
980 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
981 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
982
983 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
984 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
985 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
986 TRY_WINDOW_CHECK_MARGINS.
987
988 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
989 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
990 width only when it is for padding.
991
992 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
993
994 * xfns.c (Fx_show_tip): Call try_window in a loop until
995 fonts_changed_p is zero (Bug#2423).
996
997 2010-04-08 Eli Zaretskii <eliz@gnu.org>
998
999 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1000 the end of TEXT_AREA. (Bug#5856)
1001
1002 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1003
1004 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1005 HAVE_GCONF.
1006
1007 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1008
1009 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1010 prev.orig_type, for resolving type of NSM. (Bug#5858)
1011
1012 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1013
1014 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1015 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1016 in current_font.
1017 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1018 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1019 New functions.
1020 (syms_of_xsettings): Initialize current_font.
1021 defsubr Sfont_get_system_normal_font.
1022
1023 * xsettings.h (Ffont_get_system_normal_font,
1024 xsettings_get_system_normal_font): Declare.
1025
1026 * xfns.c (extern xlwmenu_default_font): Remove.
1027 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1028 to xlwmenu.c.
1029
1030 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1031 menu items in UTF-8.
1032
1033 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1034 (apply_systemfont_to_menu): New function.
1035 (set_frame_menubar, create_and_show_popup_menu): Call
1036 apply_systemfont_to_menu.
1037
1038 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1039
1040 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1041 FRAME_LINE_TO_PIXEL_Y.
1042
1043 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1044 pixelwidth/height.
1045
1046 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1047
1048 Simplify code for HP machines.
1049 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1050 for GNU_LINUX, not needed.
1051 (UNEXEC, NEED_BSDTTY): Move definitions...
1052 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1053
1054 * m/iris4d.h (UNEXEC): Move definition ...
1055 * s/irix6-5.h (UNEXEC): ... here.
1056
1057 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1058
1059 * xfns.c (set_machine_and_pid_properties): New function.
1060 (Fx_create_frame): Call set_machine_and_pid_properties.
1061
1062 2010-04-03 Eli Zaretskii <eliz@gnu.org>
1063
1064 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1065 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1066 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1067
1068 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1069 in this function. (Bug#5703)
1070
1071 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
1072
1073 * nsterm.h: Fix last change.
1074
1075 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1076
1077 * m/intel386.h (NO_REMAP): Move definition ...
1078 * s/msdos.h (NO_REMAP): ... here.
1079
1080 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1081
1082 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1083 used on those platforms.
1084
1085 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1086
1087 Remove extern errno declarations.
1088 * xterm.c:
1089 * xrdb.c:
1090 * w32term.c:
1091 * unexec.c:
1092 * unexaix.c:
1093 * sysdep.c:
1094 * process.c:
1095 * lread.c:
1096 * keyboard.c:
1097 * floatfns.c:
1098 * filelock.c:
1099 * fileio.c:
1100 * emacs.c (main):
1101 * ecrt0.c:
1102 * dispnew.c:
1103 * callproc.c:
1104 * buffer.c: Remove errno extern declarations.
1105 * s/netbsd.h (NEED_ERRNO): Remove.
1106
1107 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1108
1109 Remove all uses of LIBX11_SYSTEM.
1110 * Makefile.in (LIBX11_SYSTEM): Remove.
1111 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1112 instead.
1113
1114 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1115
1116 Remove support for DJGPP v1.x (bug#5813).
1117
1118 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1119 * s/msdos.h:
1120 * unexec.c (make_hdr, copy_text_and_data):
1121 * sysdep.c (wait_for_termination, sys_subshell):
1122 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1123 (IT_set_terminal_modes, __write, _rename, gethostname)
1124 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1125 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1126 the value of __DJGPP__.
1127 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1128 compatibility code.
1129 * lread.c:
1130 * gmalloc.c (memalign):
1131 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1132 * emacs.c (main):
1133 * dosfns.c (init_dosfns):
1134 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1135
1136 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1137
1138 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1139 string with `cursor' property comes from an `after-string'
1140 overlay. (Bug#5816)
1141
1142 2010-04-01 Glenn Morris <rgm@gnu.org>
1143
1144 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1145 Define as Makefile variables.
1146 (LIBX): Use above variables rather than directly using autoconf.
1147
1148 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1149
1150 Clean up BSD_SYSTEM use.
1151 * xterm.c:
1152 * process.c:
1153 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1154 for including <sys/ioctl.h>.
1155 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1156 code is only used for MSDOS.
1157
1158 2010-03-31 Juri Linkov <juri@jurta.org>
1159
1160 * image.c: Add `Qextension_data'.
1161 (syms_of_image): Initialize and staticpro `Qextension_data'.
1162 (Fimage_metadata): Rename from `Fimage_extension_data'.
1163 (gif_load): Put GIF extension data to the property
1164 `Qextension_data'.
1165
1166 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
1167
1168 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1169 terminal frames (Bug#5837).
1170
1171 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1172
1173 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1174 * nsterm.h: Fix prototype.
1175
1176 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1177
1178 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1179 trailing whitespace in right-to-left rows.
1180
1181 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1182
1183 Get rid of the direct_output optimizations.
1184 * keyboard.c (nonundocount): Remove extern declaration.
1185 (command_loop_1): Remove brittle optimisation for cheap and
1186 common operations.
1187 * xdisp.c (redisplay_internal): Don't bother checking
1188 redisplay_performed_directly_p any more.
1189 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1190 any more.
1191 * dispnew.c (redisplay_performed_directly_p)
1192 (direct_output_for_insert, direct_output_forward_char):
1193 * dispextern.h (redisplay_performed_directly_p)
1194 (direct_output_for_insert, direct_output_forward_char): Remove.
1195 * cmds.c (nonundocount): Make it static.
1196
1197 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1198
1199 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1200
1201 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1202
1203 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1204 invisible (Bug#5766).
1205
1206 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1207
1208 * xdisp.c (x_consider_frame_title, update_window_cursor):
1209 Remove HAVE_NS conditionals.
1210 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1211
1212 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1213 filename for the title.
1214 (ns_set_doc_edited): Do nothing if the selected window is a
1215 minibuffer window.
1216
1217 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1218 ns_set_doc_edited.
1219
1220 * nsterm.m: Remove unneeded prototype.
1221
1222 2010-03-31 Glenn Morris <rgm@gnu.org>
1223
1224 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1225 in the DOC file. (Bug#5336)
1226
1227 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1228
1229 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1230
1231 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1232
1233 * window.c (keys_of_window): Remove redundant/overridden bindings.
1234
1235 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1236
1237 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1238 Restore original behavior when the iterator is not bidi_p.
1239
1240 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1241
1242 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1243
1244 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1245
1246 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1247 are outside the range of cached character positions.
1248
1249 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
1250
1251 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1252
1253 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1254
1255 Initial support for bidirectional editing.
1256
1257 * Makefile.in (obj): Include bidi.o.
1258 (bidi.o): New target.
1259
1260 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1261 ($(BLD)/bidi.$(O)): New target.
1262
1263 * bidi.c: New file.
1264
1265 * buffer.h (struct buffer): New members bidi_display_reordering
1266 and bidi_paragraph_direction.
1267
1268 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1269 and bidi_paragraph_direction.
1270 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1271 and bidi-paragraph-direction.
1272 (Fbuffer_swap_text): Swap the values of
1273 bidi_display_reordering and bidi_paragraph_direction.
1274
1275 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1276 (bidi_type_t, bidi_dir_t): New types.
1277 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1278 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1279 prev_stop, base_level_stop, and eol_pos.
1280 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1281 (IT_STACK_SIZE): Enlarge to 5.
1282 (struct glyph_row): New member reversed_p.
1283 <string_buffer_position>: Update prototype.
1284 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1285 glyph_row if bidi_it.paragraph_dir == R2L.
1286 (struct glyph): New members resolved_level and bidi_type.
1287
1288 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1289 processing or buffer's direction is right-to-left.
1290 (prepare_desired_row): Preserve the reversed_p flag.
1291 (row_equal_p): Compare the reversed_p attributes as well.
1292
1293 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1294 bidi_init_it and set it->paragraph_embedding from the current
1295 buffer's value of bidi_paragraph_direction.
1296 (reseat_1): Initialize bidi_it.first_elt.
1297 (set_iterator_to_next, next_element_from_buffer): Use the value of
1298 paragraph_embedding to determine the paragraph direction.
1299 (set_iterator_to_next): Under bidi reordering, call
1300 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1301 new_paragraph flag is set in the bidi iterator.
1302 (next_element_from_buffer): If bidi_it.first_elt is set,
1303 initialize paragraph direction and find the first character to
1304 display in the visual order. If reseated to a middle of a line,
1305 prime the bidi iterator starting at the line's beginning. Handle
1306 the situation where we overstepped stop_charpos due to
1307 non-linearity of the bidi iteration. Likewise for when we back up
1308 beyond the previous stop_charpos. When moving across stop_charpos,
1309 record it in prev_stop.
1310 (display_line): Set row->end and it->start for the next row to the
1311 next character in logical order. Always extend reversed_p rows to
1312 the end of line, even if they end at ZV. Copy the reversed_p flag
1313 to the next glyph row. Keep calling set_cursor_from_row for
1314 bidi-reordered rows even if we already have a possible candidate
1315 for cursor position. Set row_end after all the row's glyphs have
1316 been produced, by looping over the glyphs. Record the position
1317 after EOL in it->eol_pos, and use it to set end_pos of the last
1318 row produced for a continued line.
1319 <Qright_to_left, Qleft_to_right>: New variables.
1320 (syms_of_xdisp): Initialize and staticpro them.
1321 (string_buffer_position_lim): New function.
1322 (string_buffer_position): Most of code moved to
1323 string_buffer_position_lim. Last argument and return value are
1324 now EMACS_INT; all callers changed.
1325 (set_cursor_from_row): Rewritten to support bidirectional text and
1326 reversed glyph rows.
1327 (text_outside_line_unchanged_p, try_window_id): Disable
1328 optimizations if we are reordering bidirectional text and the
1329 paragraph direction can be affected by the change.
1330 (append_glyph, append_composite_glyph)
1331 (produce_image_glyph, append_stretch_glyph): Set the
1332 resolved_level and bidi_type members of each glyph.
1333 (append_glyph): If the glyph row is reversed, prepend the glyph
1334 rather than appending it.
1335 (handle_stop_backwards): New function.
1336 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1337 (reseat): call handle_stop_backwards to recompute prev_stop and
1338 base_level_stop for the new position.
1339 (handle_invisible_prop): Under bidi iteration, skip invisible text
1340 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1341 paragraph direction. Update IT->prev_stop after skipping
1342 invisible text.
1343 (move_it_in_display_line_to): New variables prev_method
1344 and prev_pos. Compare for strict equality in
1345 BUFFER_POS_REACHED_P.
1346 (try_cursor_movement): Examine all the candidate rows that occlude
1347 point, to return the best match. If rows are bidi-reordered
1348 and point moved backwards, back up to the row that is not a
1349 continuation line, and start looking for a suitable row from
1350 there.
1351
1352 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1353 rather than appending, if the glyph_row's reversed_p flag is set.
1354 Set the resolved_level and bidi_type members of each glyph.
1355
1356 * .gdbinit (pbiditype): New command.
1357 (pgx): Use it to display bidi level and type of the glyph.
1358 (pitx): Display some bidi information about the iterator.
1359 (prowlims, pmtxrows): New commands.
1360
1361 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1362
1363 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1364 * s/usg5-4.h (LIBS_DEBUG):
1365 * s/irix6-5.h (C_DEBUG_SWITCH):
1366 * s/gnu-linux.h (LIBS_DEBUG):
1367 * s/darwin.h (LIBS_DEBUG):
1368 * s/bsd-common.h (LIBS_DEBUG):
1369 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1370 * m/iris4d.h (LIBS_DEBUG):
1371 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1372
1373 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1374 (LIBS_DEBUG): Remove definition.
1375
1376 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
1377
1378 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1379 Windows.
1380
1381 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1382
1383 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1384 `connect' (Bug#5723).
1385
1386 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
1387
1388 * process.c (Fmake_network_process): Call `select' for interrupted
1389 `connect' rather than creating new socket (Bug#5173).
1390
1391 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
1392
1393 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1394
1395 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1396
1397 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1398
1399 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1400
1401 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1402 XLoadQueryFont.
1403
1404 2010-03-24 Kenichi Handa <handa@m17n.org>
1405
1406 * coding.c (decode_coding_ccl): Fix previous change for the
1407 multibyte case.
1408 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1409 case that the output buffer is fullfilled.
1410 (encode_coding): Setup ccl program here.
1411
1412 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
1413
1414 * editfns.c (Fformat): Account for string precision when computing
1415 field width (Bug#5710).
1416
1417 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1418
1419 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1420
1421 Simplify LIBS_MACHINE definitions.
1422 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1423 * m/iris4d.h (LIBS_MACHINE): Likewise.
1424 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1425 * s/aix4-2.h (LIBS_SYSTEM): ... here.
1426 * s/netbsd.h: Remove commented out code.
1427
1428 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1429
1430 Remove dead code dealing with POSIX_SIGNALS.
1431 * atimer.c (set_alarm): Remove dead code, all USG systems define
1432 POSIX_SIGNALS.
1433 * data.c (arith_error): Likewise.
1434 * keyboard.c (input_available_signal, handle_user_signal)
1435 (interrupt_signal): Likewise.
1436 * process.c (sigchld_handler): Likewise.
1437 (create_process): Remove if 0 code. Remove HPUX conditional when
1438 !defined (POSIX_SIGNALS), it cannot be true.
1439 * syssignal.h: Remove USG5_4 and USG conditionals when
1440 !POSIX_SIGNALS, they cannot be true.
1441
1442 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1443 NO_SOCK_SIGIO, not used anymore.
1444
1445 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1446
1447 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1448 support vax on BSDs.
1449
1450 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1451 * s/aix4-2.h (ORDINARY_LINK): ... here.
1452
1453 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1454
1455 * Makefile.in (abs_builddir): Define.
1456 (bootstrap_exe): Use it.
1457 (VPATH): Use $(srcdir) instead of @srcdir@.
1458
1459 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1460
1461 * Makefile.in (bootstrap_exe): Use an absolute name.
1462
1463 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1464
1465 Remove support for old GNU/Linux using libc version 5.
1466 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1467 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1468
1469 Consolidate redundant definitions in s/bsd-common.h.
1470 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1471 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1472 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1473 doing it in all files that include this one.
1474 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1475 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1476 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1477 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1478 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1479 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1480 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1481 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1482 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1483
1484 Consolidate redundant definitions.
1485 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1486 it's undefined in all files that include this one.
1487 (POSIX_SIGNALS): Define here instead of doing it in all files that
1488 include this one.
1489 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1490 (POSIX_SIGNALS): Do not define.
1491 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1492 (POSIX_SIGNALS): Do not define.
1493 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1494 (POSIX_SIGNALS): Do not define.
1495
1496 Remove support for old UNIX System V systems.
1497 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1498 * s/usg-5-4-2.h: Remove.
1499
1500 Remove support for Solaris on PPC and for old versions.
1501 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1502 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1503 that cancel each other.
1504 * s/sol2-3.h:
1505 * s/sol2-4.h:
1506 * s/sol2-5.h: Remove.
1507 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1508 (NO_REMAP): Remove, unused.
1509 (UNEXEC): Move definition ...
1510 * s/aix4-2.h (UNEXEC): ... here.
1511
1512 * s/openbsd.h: Remove support for non-ELF and for systems that do
1513 not support shared libraries.
1514 * s/netbsd.h:
1515 * s/freebsd.h: Likewise.
1516
1517 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1518
1519 Remove non-working support for lynxos 3.0.
1520 * s/lynxos.h: Remove file.
1521
1522 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1523 COFF_BSD_SYMBOLS, nothing defines it anymore.
1524
1525 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1526
1527 Remove obsolete uses of HAVE_SHM.
1528 * emacs.c (standard_args):
1529 (Fdump_emacs):
1530 (syms_of_emacs): Remove code depending on HAVE_SHM.
1531
1532 * alloc.c: Remove HAVE_SHM dependent definition.
1533
1534 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1535
1536 2010-03-18 Glenn Morris <rgm@gnu.org>
1537
1538 * emacs.c (USAGE4): Hard-code bug address.
1539 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1540 (bug_reporting_address): Remove.
1541 (main): Don't call bug_reporting_address.
1542
1543 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1544 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1545
1546 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
1547
1548 * xfns.c (Fx_create_frame):
1549 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1550 on left.
1551
1552 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1553
1554 * editfns.c (Fformat): Account for string precision when computing
1555 field width (Bug#5710).
1556
1557 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
1558
1559 * xfns.c (Fx_create_frame): Set default to Qright.
1560
1561 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1562 all window systems.
1563
1564 2010-03-12 Eli Zaretskii <eliz@gnu.org>
1565
1566 These changes remove termcap.c from the build on Posix platforms.
1567 * Makefile.in (termcapobj): Move termcap.o from here...
1568 (MSDOS_OBJ): ...to here.
1569 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1570 now identical to when LIBS_TERMCAP is defined.
1571
1572 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1573
1574 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1575
1576 * config.in: Regenerated. (See top-level ChangeLog.)
1577
1578 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
1579
1580 * Branch for 23.2.
1581
1582 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1583
1584 Cleanup setup of gl_state in various parts of the code.
1585 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1586 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1587 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1588 (skip_chars):
1589 * regex.c (regex_compile): Use it.
1590 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1591 it's now set in regex_compile when/if we need it.
1592
1593 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1594
1595 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1596 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1597 (QUIT): Use it to consolidate code and remove redundancy.
1598 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1599
1600 * regex.c (regex_compile): Setup gl_state as well.
1601
1602 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1603 (in_classes): Use CONSP before XCAR/XCDR.
1604
1605 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
1606
1607 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1608 definitions, so that keyboard macros are correctly handled
1609 (Bug#5481).
1610
1611 2010-03-02 Eli Zaretskii <eliz@gnu.org>
1612
1613 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1614 text that could be relocated inside the call to emacs_mule_char.
1615 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1616 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1617
1618 2010-03-02 Kenichi Handa <handa@m17n.org>
1619
1620 * character.c (parse_str_as_multibyte): Fix handling of the
1621 multibyte form of raw-bytes.
1622 (str_as_multibyte): Likewise.
1623
1624 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1625 form of raw-bytes.
1626
1627 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
1628
1629 * charset.c (load_charset_map_from_file)
1630 (load_charset_map_from_vector): Zero out allocated
1631 charset_map_entries before using them.
1632
1633 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1634
1635 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1636
1637 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
1638
1639 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1640 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
1641
1642 2010-02-26 Kenichi Handa <handa@m17n.org>
1643
1644 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1645
1646 * xdisp.c (reseat_to_string): Fix previous change.
1647
1648 2010-02-26 David Reitter <david.reitter@gmail.com>
1649
1650 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1651 Lisp_Object (Bug#4736).
1652
1653 2010-02-25 Kenichi Handa <handa@m17n.org>
1654
1655 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1656
1657 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1658
1659 * xterm.c (XTflash): Move declarations before statements.
1660
1661 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1662 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1663 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1664 (xg_create_tool_bar): Remove unused variables.
1665 (x_wm_set_size_hint): Move declarations before statements.
1666 (xg_create_frame_widgets): Remove variable grav,
1667
1668 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
1669
1670 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1671
1672 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1673
1674 * term.c (fatal): Add a final \n if needed (bug#5596).
1675
1676 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
1677
1678 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1679
1680 2010-02-18 Glenn Morris <rgm@gnu.org>
1681
1682 * callint.c (Finteractive): Doc fix.
1683
1684 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1685
1686 * coding.c (record_conversion_result):
1687 Handle CODING_RESULT_INSUFFICIENT_DST.
1688 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1689 memory allocation error.
1690
1691 2010-02-17 Kenichi Handa <handa@m17n.org>
1692
1693 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1694 Fix for the case that the output buffer is fullfilled.
1695 (decode_coding): Setup ccl program here. Keep looping when the
1696 decoder stopped because the output buffer is
1697 fullfilled (bug#5534).
1698
1699 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1700
1701 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1702
1703 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
1704 bug #5571.
1705 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
1706 overdrawn.
1707
1708 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1709
1710 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1711 doing_interact here.
1712 (ice_connection_closed): New function.
1713 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1714 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1715 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1716 returns I/O error.
1717 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1718 bug #5512.
1719
1720 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
1721
1722 * nsfont.m (nsfont_open): The system's value for the font descent
1723 is negative, so round it down to avoid clipping.
1724
1725 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
1726
1727 * charset.c (load_charset_map_from_file)
1728 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
1729 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
1730
1731 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
1732
1733 * charset.c (load_charset_map_from_file): Allocate large
1734 charset_map_entries structure on the heap rather than the stack.
1735 (Bug#5526).
1736
1737 2010-01-31 Kenichi Handa <handa@m17n.org>
1738
1739 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
1740 size in NAME is invalid, return -1 (Bug#5396).
1741
1742 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
1743
1744 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1745 <deactivated@gmail.com> (Bug#3605).
1746
1747 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
1748
1749 * fileio.c (Frename_file): Correctly rename symlinks to
1750 directories (Bug#5496).
1751
1752 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1753
1754 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1755
1756 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1757
1758 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1759
1760 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
1761
1762 * frame.c (DEFAULT_ROWS): Change default to 35.
1763
1764 * xfns.c (x_default_font_parameter): Change default XFT font to
1765 monospace-10 (Bug#3643).
1766
1767 2010-01-29 Eli Zaretskii <eliz@gnu.org>
1768
1769 * w32inevt.c (key_event): Remove unnecessary comparison of
1770 event->uChar.AsciiChar with 128.
1771
1772 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
1773
1774 * fileio.c (Frename_file): Fix last change (Bug#5487).
1775
1776 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1777
1778 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1779
1780 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1781
1782 * xfns.c (Fx_create_frame): Remove window size matching code from
1783 2010-01-15.
1784 (x_get_current_desktop, x_get_desktop_workarea): Remove
1785
1786 2010-01-27 Jason Rumney <jasonr@gnu.org>
1787
1788 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
1789 (key_event): Use unicode for characters 128 and higher (Bug#4567).
1790
1791 2010-01-27 Kenichi Handa <handa@m17n.org>
1792
1793 * regex.c (analyse_first): Fix setting of fastmap for unibyte
1794 pattern string (Bug#4209).
1795
1796 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
1797
1798 * fileio.c (Frename_file): Call copy-directory and
1799 delete-directory for directories, in order to handle cross-device
1800 renaming (Bug#3353).
1801
1802 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1803
1804 * xfns.c (Fx_create_frame): If frame height is too big, try
1805 sizes 24 and 10. Bug #3643.
1806
1807 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1808
1809 Try and fix bug#788, hopefully for real this time.
1810 * keymap.c (shadow_lookup): Add `remap' arg.
1811 (describe_map, describe_vector): Update calls to shadow_lookup.
1812 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1813 `remapped' so this flag is applicable to `sequence'. Be careful to
1814 perform remapping during shadow_lookup check of remapped_sequences.
1815
1816 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1817
1818 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1819 png_check_sig, which has been removed in libpng 1.4.
1820
1821 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1822
1823 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1824 lacks this header file).
1825
1826 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1827
1828 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1829 as in Emacs 22.
1830
1831 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1832
1833 * lisp.h (make_pure_string): String pointer arg now points to const.
1834
1835 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1836 args now point to const.
1837
1838 2010-01-22 Eli Zaretskii <eliz@gnu.org>
1839
1840 * lread.c (Fload): Don't treat files without .elc extension as
1841 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1842 them. (bug#5303)
1843
1844 2010-01-20 Kenichi Handa <handa@m17n.org>
1845
1846 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1847 treat the source as actual byte sequence.
1848
1849 2010-01-19 Alan Mackenzie <acm@muc.de>
1850
1851 Fix spurious before-change-functions invocation from (insert ?\n).
1852 * textprop.c (set_text_properties): Rename parameter
1853 `signal_after_change_p' to `coherent_change_p', and make the
1854 invocation of `modify_region' conditional on it.
1855
1856 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1857
1858 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1859 for debug purpose.
1860 (syms_of_xsettings): Declare xft-settings.
1861
1862 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
1863
1864 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1865
1866 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1867
1868 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1869
1870 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
1871
1872 * emacs.c (standard_args): Adjust arg priorities to reflect how
1873 they are processed in startup.el.
1874
1875 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1876
1877 * Makefile.in (lisp, shortlisp): Update.
1878
1879 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1882 code, link the new kboard into all_kboard before running Lisp code,
1883 and protect the new terminal with GCPRO (Bug#5365).
1884 (x_term_init): Remove unused var `atom'.
1885 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1886
1887 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1888
1889 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1890 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1891 to find out usable size of the desktop. Don't make frames larger than
1892 this. Bug #3643.
1893
1894 2010-01-15 Kenichi Handa <handa@m17n.org>
1895
1896 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1897
1898 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
1899
1900 * nsterm.m (Qnone): Define.
1901
1902 * nsfns.m (Qnone): Move definition to nsterm.m.
1903
1904 2010-01-14 Kenichi Handa <handa@m17n.org>
1905
1906 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1907 systems.
1908
1909 2010-01-14 Kenichi Handa <handa@m17n.org>
1910
1911 Make auto-composition work on all buffers even if they are
1912 fundamental mode.
1913
1914 * composite.c (Vauto_composition_mode): New variable.
1915 (composition_compute_stop_pos): Check Vauto_composition_mode
1916 instead of Vauto_composition_function.
1917 (composition_adjust_point, Ffind_composition_internal): Likewise.
1918 (syms_of_composite): Declare Lisp variable
1919 "auto-composition-mode" here.
1920
1921 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
1922
1923 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1924 during call to vendor-specific-keysyms (Bug#5365).
1925
1926 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1927
1928 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1929 Call SIGNAL_THREAD_CHECK (Bug#5333).
1930
1931 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1932 Call SIGNAL_THREAD_CHECK.
1933
1934 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1935
1936 Try to fix bug#5314. This is probably not the final word, tho.
1937 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1938 recent-auto-save-p as a side-effect.
1939 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1940 * buffer.c (Fkill_buffer, reset_buffer):
1941 * editfns.c (Fsubst_char_in_region):
1942 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1943 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1944
1945 2010-01-13 Kenichi Handa <handa@m17n.org>
1946
1947 Display buffer name, etc. in mode line by composing correctly.
1948
1949 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1950 STRING is not nil.
1951 (display_mode_element): Adjust for the change of
1952 decode_mode_spec and display_line.
1953 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1954 (display_string): Handle the case that STRING is non-null and
1955 LISP_STRING is not nil.
1956
1957 * xterm.c (x_draw_composite_glyph_string_foreground):
1958 Pay attention to s->face->overstrike.
1959
1960 * composite.c (composition_reseat_it): Don't check PT if STRING is
1961 non nil.
1962
1963 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1964
1965 * keyboard.c (read_char): Don't apply previous change when current
1966 buffer is unchanged by command execution.
1967
1968 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1969
1970 * keyboard.c (read_char): Return after executing from special map.
1971
1972 2010-01-12 Glenn Morris <rgm@gnu.org>
1973
1974 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1975 bug-gnu-emacs rather than emacs-pretest-bug.
1976
1977 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
1978
1979 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1980 initializing the Lisp variables that depend on them.
1981
1982 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1983
1984 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1985 Clear areas that will not be updated after change of menu bar lines.
1986 Clear the menu bar window's current matrix when the window gets empty.
1987
1988 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
1989
1990 * intervals.h, textprop.c (extend_property_ranges): Return value
1991 and args changed. Discard properties that begin at or after the
1992 new end (Bug#5306).
1993
1994 * editfns.c (Fformat): Caller changed.
1995
1996 * nsterm.m (ns_set_default_prefs): Delete function.
1997 (syms_of_nsterm): Initialize ns_command_modifier,
1998 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1999 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2000
2001 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2002 position (Bug#4040).
2003
2004 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2005
2006 * editfns.c (Ffloat_time): Doc fix.
2007
2008 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2009
2010 * xfns.c (Fx_create_frame): Don't create frame larger than display
2011 by default bug#3643.
2012
2013 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2014
2015 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2016 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2017 windows above internal border.
2018
2019 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2020 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2021 windows above internal border.
2022
2023 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2024 tool bar windows specially.
2025
2026 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2027
2028 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2029 specially.
2030 (XTflash): Take account of menu bar height.
2031
2032 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2033 specially.
2034
2035 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2036
2037 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2038 also be true before we can return early (bug #5339).
2039
2040 2010-01-06 David Reitter <david.reitter@gmail.com>
2041
2042 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2043 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2044 (Bug#3233).
2045
2046 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2047
2048 * font.c (font_open_entity): Enable chache and call cached_font_ok
2049 for the driver if defined.
2050 (QCuser_spec): New symbol.
2051 (font_spec_from_name): Save name as user-spec.
2052 (font_load_for_lface): Keep user-spec instead of name.
2053 (font_open_by_name): Save name as user-spec.
2054 (syms_of_font): Initialize QCuser_spec.
2055 (font_clear_prop): Clear name if it exists in font (bug#5157).
2056
2057 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2058 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2059 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2060
2061 * font.h (struct font_driver): Add cached_font_ok.
2062
2063 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2064
2065 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2066
2067 * xterm.c (x_new_font): Move code for setting rows/cols before
2068 resizing ...
2069 (x_set_window_size): ... to here. Bug #2568.
2070
2071 * gtkutil.c (xg_clear_under_internal_border): New function.
2072 (xg_frame_resized, xg_frame_set_char_size):
2073 Call xg_clear_under_internal_border.
2074 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2075
2076 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
2077
2078 * keyboard.c (read_key_sequence): Catch keyboard switch after
2079 making a new tty frame (Bug#5095).
2080
2081 2010-01-05 Kenichi Handa <handa@m17n.org>
2082
2083 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2084
2085 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2086
2087 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2088 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2089 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2090
2091 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
2092
2093 * dbusbind.c (xd_add_watch): Improve debug message.
2094 (xd_remove_watch): Improve debug message. If DATA is the session
2095 bus, unset D-Bus session environment.
2096 (Fdbus_init_bus): Pass the bus as argument to
2097 dbus_connection_set_watch_functions. (Bug#5283)
2098
2099 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
2100
2101 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2102
2103 * lread.c (syms_of_lread): Make it clearer that these are the
2104 names of loaded files (Bug#5068).
2105
2106 * eval.c (run_hook_with_args): Handle the case where the global
2107 value has the obsolete single-function form (Bug#5026).
2108
2109 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2110
2111 * minibuf.c (Fall_completions): Minor optimization.
2112
2113 2009-12-26 Eli Zaretskii <eliz@gnu.org>
2114
2115 * .gdbinit (pgx): Fix display of composite glyphs.
2116 Display cmp.from and cmp.to as well.
2117 (pitx): Fix last change.
2118
2119 2009-12-25 Kenichi Handa <handa@m17n.org>
2120
2121 * composite.h (composition_adjust_point): Update prototype.
2122
2123 * composite.c (composition_reseat_it): Don't make a composition
2124 spanning over point.
2125 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2126 composable characters.
2127 (composition_adjust_point): New arg NEW_PT. Callers changed.
2128
2129 * keyboard.c (command_loop_1): Force redisplay if the last point
2130 was within a composition.
2131 (adjust_point_for_property): Don't adjust point for automatic
2132 composition when called after buffer modification.
2133
2134 2009-12-19 Eli Zaretskii <eliz@gnu.org>
2135
2136 * .gdbinit (pitx): Don't use enum names, use their values.
2137 Remove reference to non-existing value GET_FROM_COMPOSITION.
2138 (pgx): Don't use enum names, use their values.
2139 (pitmethod): New helper command.
2140 (pitx): Use it to display iteration method.
2141 (pgrowit): New command.
2142
2143 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2144
2145 Update dependencies in Makefile.in.
2146
2147 * Makefile.in (alloc.o): Depend on termhooks.h.
2148 (atimer.o): Depend on blockinput.h.
2149 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2150 and frame.h.
2151 (callint.o): Depend on systime.h, coding.h, and composite.h.
2152 (callproc.o): Depend on buffer.h.
2153 (casefiddle.o): Don't depend on charset.h.
2154 (casetab.o): Depend on character.h.
2155 (ccl.o): Depend on composite.h.
2156 (chartab.o): Depend on ccl.h.
2157 (cm.o): Depend on dispextern.h.
2158 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2159 (coding.o): Don't depend on $(INTERVALS_H).
2160 (composite.o): Don't depend on dispextern.h explicitly (it's in
2161 $(INTERVALS_H)). Depend on ccl.h.
2162 (data.o): Depend on systime.h, coding.h, composite.h,
2163 dispextern.h, font.h, and ccl.h.
2164 (dired.o): Depend on composite.h.
2165 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2166 composite.h (it's in $(INTERVALS_H)).
2167 (doc.o): Depend on systime.h, coding.h, and composite.h.
2168 (editfns.o): Don't depend explicitly on dispextern.h.
2169 (emacs.o): Depend on frame.h and coding.h.
2170 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2171 (fileio.o): Depend on frame.h and commands.h. Don't depend
2172 explicitly on dispextern.h.
2173 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2174 composite.h.
2175 (fns.o): Don't depend on termhooks.h.
2176 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2177 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2178 coding.h, $(INTERVALS_H), window.h, xterm.h.
2179 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2180 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2181 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2182 fontset.h, ccl.h, and ftfont.h.
2183 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2184 (gtkutil.o): Depend on dispextern.h and composite.h.
2185 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2186 termhooks.h, and ccl.h.
2187 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2188 (intervals.o): Depend on systime.h and coding.h.
2189 (keyboard.o): Depend on composite.h and coding.h.
2190 (keymap.o): Depend on coding.h and frame.h.
2191 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2192 (macros.o): Depend on systime.h, coding.h, and composite.h.
2193 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2194 and atimer.h.
2195 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2196 dispextern.h explicitly.
2197 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2198 Don't depend explicitly on dispextern.h and composite.h.
2199 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2200 (regex.o): Don't depend on charset.h.
2201 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2202 (search.o): Don't depend explicitly on composite.h.
2203 (sound.o): Depend on atimer.h and systime.h.
2204 (syntax.o): Don't depend explicitly on composite.h.
2205 (sysdep.o): Depend on coding.h and composite.h.
2206 (term.o): Depend on xterm.h and buffer.h.
2207 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2208 (textprop.o): Don't depend on dispextern.h explicitly.
2209 (undo.o): Depend on dispextern.h.
2210 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2211 dispextern.h and composite.h explicitly.
2212 (xdisp.o): Depend on ccl.h.
2213 (xfaces.o): Depend on coding.h and ccl.h.
2214 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2215 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2216 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2217 ftfont.h.
2218 (xgselect.o): New dependency.
2219 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2220 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2221 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2222 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2223 (xsmfns.o): Depend on frame.h and dispextern.h.
2224 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2225 sysselect.h.
2226
2227 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2228
2229 * font.c (Fclear_font_cache): Pass correct cache argument to
2230 font_clear_cache.
2231
2232 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2233
2234 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2235 twice.
2236
2237 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2240 calling file-remote-p. Reported by Jim Meyering.
2241
2242 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
2243
2244 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
2245 avoid compiler warnings. (Bug #5217)
2246
2247 2009-12-14 Kenichi Handa <handa@m17n.org>
2248
2249 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2250 in 8-bit encoding.
2251
2252 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2253
2254 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2255 tooltip windows.
2256
2257 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2258
2259 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2260 Xatom_net_window_type.
2261
2262 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2263 Xatom_net_window_type.
2264
2265 * xterm.c (my_log_handler): New function.
2266 (x_term_init): Set my_log_handler as log handler during gtk_init
2267 so we can filter out buggy messages. (Bug #5120).
2268
2269 * xterm.c (xg_scroll_callback): Parameter list changed,
2270 use parameter GtkScrollType to determine scroll/line/page.
2271 Only allow dragging if a button < 4 is grabbed (bug #5177).
2272 (xg_end_scroll_callback): New function.
2273 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2274 xg_create_scroll_bar.
2275
2276 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2277 (scroll_end_callback): Remove.
2278 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2279 button-release-event. Replace value-changed event with change-value,
2280 bug #5177,
2281 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2282 bug #5177.
2283
2284 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2285 (xg_create_scroll_bar): Add GCallback end_callback.
2286
2287 * xftfont.c (QClcdfilter): New variable.
2288 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2289 (syms_of_xftfont): Initialize QClcdfilter.
2290
2291 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2292
2293 * xsettings.c (struct xsettings): Add member seen.
2294 (parse_xft_settings): Update member seen with what we have read.
2295 Return non-zero if Xft-settings have been parsed, 0 otherwise.
2296 (apply_xft_settings): Only update Xft settings with what member seen
2297 indicates as new.
2298
2299 2009-12-12 Eli Zaretskii <eliz@gnu.org>
2300
2301 * dispextern.h (struct text_pos): Use EMACS_INT;
2302 (struct glyph): Use EMACS_INT for charpos.
2303 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2304 region_beg_charpos, region_end_charpos,
2305 redisplay_end_trigger_charpos, and also for
2306 iterator_stack_entry.end_charpos and
2307 iterator_stack_entry.stop_charpos.
2308
2309 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2310
2311 * gtkutil.c (scroll_end_callback): New function (bug #5177).
2312 (xg_create_scroll_bar): Call scroll_end_callback on button release
2313 event (bug #5177).
2314 (xg_event_is_for_scrollbar): != replaced with ==.
2315
2316 2009-12-12 Kenichi Handa <handa@m17n.org>
2317
2318 * ftfont.c (struct ftfont_info): New member matrix.
2319 (ftfont_open): Setup xftfont_info->matrix.
2320 (MFLTFontFT): New member matrix.
2321 (FLOOR, CEIL, ROUND): New macros.
2322 (ftfont_get_metrics): Handle matrix transformation.
2323 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2324
2325 * xftfont.c (struct xftfont_info): New member matrix.
2326 (xftfont_open): Setup xftfont_info->matrix.
2327
2328 2009-12-10 Kenichi Handa <handa@m17n.org>
2329
2330 * xdisp.c (append_space_for_newline): Consider face-remapping.
2331
2332 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2333
2334 * xsettings.c: Include "keyboard.h".
2335
2336 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2337
2338 Fix implicit function declarations.
2339 * cmds.c: Include "frame.h".
2340 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2341 * frame.h: Move declaration of delete_frame outside of
2342 HAVE_WINDOW_SYSTEM.
2343
2344 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2345
2346 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2347
2348 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2349 GTK builds.
2350
2351 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2352
2353 * unexelf.c (unexec): Don't search for .data twice.
2354
2355 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
2356
2357 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2358 if push failed.
2359 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2360 of push_display_prop (Bug#5000).
2361
2362 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2363 value of font_list_entities (Bug#5085).
2364
2365 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
2366
2367 Fix `string-to-number' to deal consistently with integers and floats.
2368 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2369 trailing characters, not just whitespace.
2370 (read1): Pass new arg 0 to keep old behavior.
2371 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2372 trailing chars, as it is already done for integers. Doc fixes.
2373 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2374
2375 2009-12-04 Eli Zaretskii <eliz@gnu.org>
2376
2377 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2378 Delete unused enumeration value.
2379
2380 2009-12-03 Eli Zaretskii <eliz@gnu.org>
2381
2382 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2383
2384 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2385
2386 * process.c (Fmake_network_process): Fix up the tests for
2387 "connectionless socket", so they DTRT for seqpacket sockets as well.
2388
2389 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2390
2391 * process.c (Qseqpacket): New symbol.
2392 (HAVE_SEQPACKET): New macro.
2393 (Fmake_network_process): Accept new :type `seqpacket'.
2394 (init_process): Add `seqpacket' feature when applicable.
2395 (syms_of_process): Initialize Qseqpacket.
2396
2397 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2398
2399 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2400 if entity is Qnil.
2401
2402 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2403
2404 * print.c (print_preprocess): Preprocess the key_and_value table of
2405 hashtables, even tho they're "hidden" (bug#5082).
2406
2407 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2408
2409 * frame.c (frame_make_pointer_invisible)
2410 (frame_make_pointer_visible): Declare f before statements.
2411
2412 2009-11-28 Eli Zaretskii <eliz@gnu.org>
2413
2414 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2415 omitted dependencies on lisp.h.
2416
2417 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2418
2419 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2420 is NULL.
2421
2422 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2423
2424 * frame.c (frame_make_pointer_invisible)
2425 (frame_make_pointer_visible): Just return if there isn't any selected
2426 frame.
2427
2428 * search.c (simple_search): Remove warning by making *p const.
2429
2430 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2431
2432 * xdisp.c (power_letter): Remove duplicate const.
2433
2434 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2435
2436 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2437
2438 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
2439 defaults (bug #5025).
2440
2441 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2442
2443 * insdel.c (adjust_markers_for_delete): Move it in the
2444 right direction! (bug#4803)
2445
2446 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2447
2448 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2449
2450 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2451
2452 2009-11-24 Glenn Morris <rgm@gnu.org>
2453
2454 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2455
2456 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2457
2458 * Makefile.in: Must create deps for ecrt0.o in its rule.
2459
2460 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2461 because that is what Gtk+ font dialog understands.
2462
2463 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2464 of Fcopy_sequence.
2465 (font_open_by_name): Put name given into QCname for font-object returned.
2466
2467 * frame.c (x_set_font): Save original font name as frame parameter
2468 font-parameter.
2469
2470 * xsettings.c (set_default_xft_settings): New function.
2471 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2472 is found.
2473
2474 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2475
2476 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2477 searching backwards through multibyte buffer.
2478
2479 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2480
2481 * xterm.c: #include xgselect.h.
2482 (x_initialize): Call xgselect_initialize.
2483
2484 * xsettings.c (something_changedCB): C++ comments => C comments.
2485 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2486 does that now.
2487
2488 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2489 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2490 (scroll_bar_button_cb): Remove.
2491 (create_menus): C++ comments => C comments. Don't bind grab-notify
2492 event.
2493 (xg_create_scroll_bar): Don't bind button-press-event and
2494 button-release-event.
2495
2496 * process.c: Include xgselect.h if defined (USE_GTK) ||
2497 defined (HAVE_GCONF).
2498 (wait_reading_process_output): Call xg_select for the same condition.
2499
2500 * xgselect.c (xg_select): New function to better integrate with
2501 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2502
2503 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2504
2505 * Makefile.in (XOBJ): Add xgselect.o.
2506
2507 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2508
2509 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2510 Remove ignored second argument. All callers changed.
2511 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2512 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2513 * xdisp.c (string_char_and_length): Likewise.
2514
2515 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2516
2517 * xterm.c (x_new_font):
2518 * print.c (print_object):
2519 * cmds.c (Fself_insert_command): Move declarations before statements.
2520
2521 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2522
2523 * s/cygwin.h: Remove unneeded linker flags.
2524
2525 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2526
2527 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2528
2529 * xsettings.h: Declare xsettings_get_system_font.
2530
2531 * xsettings.c (xsettings_get_system_font): New function.
2532 (init_gconf): No use initiating gconf unless we have Xft also.
2533 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2534 HAVE_GCONF.
2535
2536 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2537 add a blank entry so it doesn't collapse into nothing.
2538
2539 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2540
2541 * lread.c (Funintern): Comment out last change.
2542
2543 2009-11-19 Richard Stallman <rms@gnu.org>
2544
2545 * lread.c (Funintern): Error if symbol is t or nil.
2546
2547 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2548
2549 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2550 representation of Lisp integers.
2551 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2552
2553 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2554
2555 * lisp.h: Remove declaration of Ffont_get_system_font.
2556 * xfns.c: Move include of "xsettings.h".
2557 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2558
2559 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2560
2561 * xsettings.c (something_changedCB, Ffont_get_system_font):
2562 Check use_system_font.
2563 (syms_of_xsettings): DEFVAR font-use-system-font.
2564
2565 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2566
2567 * xfns.c (x_default_font_parameter): Remove dead assignment.
2568
2569 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2570
2571 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2572
2573 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
2574 not have FC_LCD_*. #define them if not there.
2575
2576 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
2577
2578 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2579
2580 * xterm.c (handle_one_xevent): Call xft_settings_event for
2581 ClientMessage, PropertyNotify and DestroyNotify.
2582 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2583 Call xsettings_initialize.
2584
2585 * xftfont.c (xftfont_fix_match): New function.
2586 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2587 Call xftfont_fix_match after XftFontMatch.
2588
2589 * xfont.c (xfont_driver): Initialize all members.
2590
2591 * xfns.c (x_default_font_parameter):
2592 Try font from Ffont_get_system_font.
2593 Do not get font from x_default_parameter if we got one from
2594 Ffont_get_system_font.
2595 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
2596
2597 * w32font.c (w32font_driver): Initialize all members.
2598
2599 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2600
2601 * lisp.h: Declare syms_of_xsettings.
2602
2603 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2604 Handle CONFIG_CHANGED_EVENT.
2605
2606 * ftfont.c (ftfont_filter_properties): New function.
2607
2608 * frame.c (x_set_font): Remove unused variable lval.
2609
2610 * font.h (struct font_driver): Add filter_properties.
2611
2612 * font.c (font_put_extra): Don't return if val is nil, it means
2613 boolean option is off.
2614 (font_parse_fcname): Collect all extra properties in extra_props
2615 and call filter_properties for all drivers with extra_props and
2616 font as parameter.
2617 (font_open_entity): Do not use cache, it does not pick up new
2618 fontconfig settings like hinting.
2619 (font_load_for_lface): If spec had a name in it, store it in entity.
2620
2621 * emacs.c (main): Call syms_of_xsettings
2622
2623 * config.in: HAVE_GCONF is new.
2624
2625 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2626 xsettings.o is new.
2627
2628 2009-11-17 Kenichi Handa <handa@m17n.org>
2629
2630 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2631 back to the default font in case that no suitable font is found.
2632
2633 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2634
2635 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2636 Suggested by Chad Brown <yandros@mit.edu>.
2637 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2638
2639 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2640
2641 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2642
2643 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2644
2645 * Makefile.in: Ignore errors from mkdir when creating deps directory.
2646
2647 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2648
2649 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2650 has a parent.
2651
2652 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
2653 dependency files in deps/. Include those files into Makefile.
2654
2655 * config.in: Generated (AUTO_DEPEND).
2656
2657 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
2658
2659 * dbusbind.c (Vdbus_registered_objects_table): Rename from
2660 Vdbus_registered_functions_table, because it contains also
2661 properties. Fix docstring.
2662 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
2663
2664 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2665
2666 * alloc.c (mark_object): Don't reprocess marked strings.
2667 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2668 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2669
2670 2009-11-13 Kenichi Handa <handa@m17n.org>
2671
2672 * category.c (word_boundary_p): Adjust for the change of the
2673 semantics of Vword_combining_categories.
2674 (Vword_combining_categories): Describe the slight change of the
2675 semantics.
2676
2677 2009-11-13 Eli Zaretskii <eliz@gnu.org>
2678
2679 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2680
2681 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2682
2683 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2684
2685 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2686
2687 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
2688
2689 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2690
2691 2009-11-11 David Reitter <david.reitter@gmail.com>
2692
2693 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2694 variables to fix 2009-11-09 change.
2695
2696 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2697
2698 * process.c (ifflag_def): Make flag_sym constant.
2699 (Fnetwork_interface_info): Use a constant pointer.
2700 (ifflag_table):
2701 * xfns.c (cursor_bits):
2702 * xdisp.c (power_letter):
2703 * termcap.c (speeds, esctab):
2704 * sysdep.c (baud_convert):
2705 * keyboard.c (lispy_accent_codes, modifier_names):
2706 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2707 (jpeg_format, tiff_format, gif_format, svg_format)
2708 (interlace_start, interlace_increment, gs_format):
2709 * gtkutil.c (separator_names):
2710 * fringe.c (swap_nibble):
2711 * fns.c (base64_value_to_char, base64_char_to_value):
2712 * fileio.c (make_temp_name_tbl):
2713 * coding.c (suffixes): Make constant.
2714
2715 * frame.c (make_initial_frame):
2716 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2717 build_string.
2718 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2719
2720 * s/freebsd.h:
2721 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2722
2723 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2724 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2725
2726 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2727 * xterm.c (syms_of_xterm):
2728 * xfaces.c (syms_of_xfaces):
2729 * xdisp.c (syms_of_xdisp):
2730 * lread.c (syms_of_lread):
2731 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2732 build_string.
2733
2734 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2735
2736 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2737
2738 * fns.c (Fplist_get): Merge the active and the commented out code.
2739
2740 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2741
2742 * keyboard.h: Declare timer_check.
2743
2744 * keyboard.c (timer_check_2): New function that does what the old
2745 timer_check did.
2746 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2747 returned, i.e. don't return -1 with timers pending.
2748
2749 * process.c: Remove extern declaration of timer_check.
2750
2751 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2752 even if timer_check returned -1.
2753
2754 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2755 xg_dialog_data.
2756 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2757 the event loop.
2758 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2759 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2760 Destroy the dialog after xg_dialog_run.
2761
2762 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2763
2764 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2765
2766 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2767
2768 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2769
2770 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
2771
2772 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2773
2774 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2775
2776 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2777 w32menu.c, and nsmenu.m.
2778 Simplify the obsolete case where position is nil.
2779 (cleanup_popup_menu): New function, moved from nsmenu.m.
2780 (struct skp): Remove slot `notreal'.
2781 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2782 adjust callers.
2783 (single_menu_item): Adjust call to parse_menu_item.
2784 (syms_of_menu): Defsubr x-popup-menu.
2785 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2786 (keymap_panes): Don't export any more.
2787 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2788 (xmenu_show): Declare.
2789 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2790 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2791 * keyboard.h (parse_menu_item): Update declaration.
2792 * xmenu.c (Fx_popup_menu): Remove.
2793 (syms_of_xmenu): Don't defsubr x-popup-menu.
2794 * w32menu.c (Fx_popup_menu): Remove.
2795 (syms_of_w32menu): Don't defsubr x-popup-menu.
2796 * nsmenu.m (cleanup_popup_menu): Remove.
2797 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2798 moved to menu.c's Fx_popup_menu.
2799 (Fx_popup_menu): Remove.
2800 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2801 menu_items (it's done in menu.c already).
2802
2803 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2804
2805 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2806 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2807
2808 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
2809
2810 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
2811 xmenu_show. Hide any tooltip before opening a menu.
2812 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2813 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2814
2815 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2816
2817 Let integers use up 2 tags to give them one extra bit and thus double
2818 their range.
2819 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2820 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2821 New macros.
2822 (enum Lisp_Type): Use them. Give explicit values.
2823 (Lisp_Type_Limit): Remove.
2824 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2825 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2826 Pay attention to USE_2_TAGS_FOR_INTS.
2827 (INTEGERP): Use LISP_INT_TAG_P.
2828 * fns.c (internal_equal): Simplify the default case.
2829 (sxhash): Use case_Lisp_Int.
2830 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2831 any more.
2832 (Ftype_of): Use case_Lisp_Int.
2833 (store_symval_forwarding): Take into account the fact that Ints can
2834 now have more than one tag.
2835 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2836 buffer_slot_type_mismatch):
2837 * xfaces.c (face_attr_equal_p):
2838 * print.c (print_object):
2839 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2840 Use case_Lisp_Int.
2841
2842 2009-11-06 Eli Zaretskii <eliz@gnu.org>
2843
2844 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2845
2846 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2847 warning.
2848
2849 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2850
2851 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2852
2853 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2854
2855 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2856 ButtonPressRelease and MotionNotify (bug#4870).
2857
2858 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2859
2860 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2861
2862 * xterm.c (syms_of_xterm):
2863 * xselect.c (syms_of_xselect):
2864 * xmenu.c (syms_of_xmenu):
2865 * xfns.c (syms_of_xfns):
2866 * xfaces.c (syms_of_xfaces):
2867 * xdisp.c (syms_of_xdisp):
2868 * window.c (syms_of_window):
2869 * w32fns.c (syms_of_w32fns):
2870 * undo.c (syms_of_undo):
2871 * textprop.c (syms_of_textprop):
2872 * terminal.c (syms_of_terminal):
2873 * syntax.c (syms_of_syntax):
2874 * sound.c (syms_of_sound):
2875 * search.c (syms_of_search):
2876 * print.c (syms_of_print):
2877 * minibuf.c (syms_of_minibuf):
2878 * macros.c (syms_of_macros):
2879 * keymap.c (syms_of_keymap, initial_define_key)
2880 (initial_define_lispy_key):
2881 * keyboard.c (syms_of_keyboard):
2882 * insdel.c (syms_of_insdel):
2883 * image.c (syms_of_image):
2884 * fringe.c (syms_of_fringe):
2885 * frame.c (syms_of_frame):
2886 * fontset.c (syms_of_fontset):
2887 * fns.c (syms_of_fns):
2888 * fns.c (syms_of_fns):
2889 * fileio.c (syms_of_fileio):
2890 * fileio.c (syms_of_fileio):
2891 * eval.c (syms_of_eval):
2892 * doc.c (syms_of_doc):
2893 * dispnew.c (syms_of_display):
2894 * dired.c (syms_of_dired):
2895 * dbusbind.c (syms_of_dbusbind):
2896 * data.c (syms_of_data):
2897 * composite.c (syms_of_composite):
2898 * coding.c (syms_of_coding):
2899 * cmds.c (syms_of_cmds):
2900 * charset.c (define_charset_internal, syms_of_character):
2901 * ccl.c (syms_of_ccl):
2902 * category.c (syms_of_category, init_category_once):
2903 * casetab.c (syms_of_casetab):
2904 * casefiddle.c (syms_of_casefiddle):
2905 * callint.c (syms_of_callint):
2906 * bytecode.c (syms_of_bytecode):
2907 * buffer.c (keys_of_buffer, syms_of_buffer):
2908 * alloc.c (syms_of_alloc):
2909 * process.c (syms_of_process, init_process):
2910 * lread.c (syms_of_lread, init_obarray):
2911 * font.c (build_style_table):
2912 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2913 intern_c_string, calls to make_pure_string with
2914 make_pure_c_string. Use pure_cons instead of Fcons.
2915
2916 * process.c (socket_options): Make it const.
2917 (set_socket_option, init_process): Use a const pointer.
2918
2919 * lread.c (intern_c_string): New function.
2920 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2921 (defvar_int): Uset it. Make the name const char*.
2922
2923 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2924 (defvar_int): Update prototypes.
2925 (DEFUN, EXFUN): Support for prototypes is now required.
2926 (intern_c_string): New prototype.
2927 (struct Lisp_Subr): Make symbol_name constant.
2928
2929 * font.c (struct table_entry): Remove unused member. Make NAMES
2930 constant.
2931 (weight_table, slant_table, width_table): Make constant.
2932
2933 * emacs.c (struct standard_args): Make name and longname constant.
2934
2935 * character.h (DEFSYM): Use intern_c_string.
2936
2937 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2938
2939 * alloc.c (make_pure_c_string): New function.
2940
2941 * eval.c (Fautoload): Purecopy all arguments.
2942
2943 2009-11-05 Kenichi Handa <handa@m17n.org>
2944
2945 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2946 the buffer in case of replace.
2947
2948 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2949
2950 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2951
2952 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2953
2954 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2955 when applicable (bug#4851).
2956
2957 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2958 (P_): Support for prototypes is now required.
2959
2960 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
2961
2962 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2963 (Bug#4827).
2964
2965 2009-10-30 Eli Zaretskii <eliz@gnu.org>
2966
2967 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2968
2969 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2970
2971 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2972
2973 * lread.c (Fload): Purecopy the file name when building
2974 Vpreloaded_file_list.
2975
2976 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2977
2978 * w32fns.c (syms_of_w32fns): Change default value of
2979 w32-scroll-lock-modifier to nil. (Bug#2827)
2980
2981 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2982
2983 * minibuf.c (Fall_completions): Fix typos in docstring.
2984
2985 2009-10-26 Andreas Schwab <schwab@redhat.com>
2986
2987 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2988
2989 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2990
2991 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2992 For delta < 0, skip check that only makes sense when the mini-window
2993 is going to be enlarged. (Bug#4534)
2994
2995 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
2996
2997 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2998 string in menu maps (Bug#4471).
2999
3000 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3001
3002 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3003 FRAME_NS_VIEW on terminal frames (Bug#4765).
3004
3005 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3006
3007 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3008 DBUS_TYPE_UINTnn separately to get proper sign extension.
3009
3010 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3011 can properly handle unsigned types.
3012 (make_uid, make_gid): Remove.
3013
3014 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3015 types again.
3016
3017 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3018 (system_process_attributes): Likewise.
3019
3020 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3021
3022 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3023
3024 * eval.c (Fautoload): Purecopy the filename. Simplify.
3025
3026 * category.c (Fdefine_category): Purecopy docstring.
3027
3028 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3029
3030 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3031
3032 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3033
3034 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
3035
3036 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3037 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3038 (Bug#4775).
3039
3040 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3041
3042 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3043 (init_fileio_once):
3044 * lisp.h (init_fileio_once): Remove.
3045 * emacs.c (main): Don't call init_fileio_once.
3046
3047 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3048
3049 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3050
3051 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3052
3053 * doprnt.c (doprnt): Fix overflow check.
3054
3055 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3056
3057 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3058
3059 * xterm.h (x_wait_for_event): Declare it.
3060
3061 * xterm.c (pending_event_wait): New variable.
3062 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3063 see pending_event_wait.eventtype.
3064 (handle_one_xevent): Don't change gravity when parent changes.
3065 (x_new_font): Call change_frame_size with new rows/columns before we
3066 try to resize the frame.
3067 (x_wait_for_event): New function.
3068 (x_set_window_size_1): Don't change gravity unless change_gravity
3069 is set.
3070 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3071 don't change frame size, instead wait for the ConfigureNotify.
3072 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3073 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3074 (x_initialize): Initialize pending_event_wait.
3075
3076 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3077 size.
3078
3079 * widget.c (EmacsFrameSetValues): Add comment.
3080 (EmacsFrameSetCharSize): Just call x_set_window_size.
3081
3082 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3083 x_wait_for_event.
3084 (flush_and_sync): Remove again.
3085 (xg_get_font_name): Suggest monospace if no previous font is known.
3086
3087 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3088
3089 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3090 8th bit, since that only made sense in the ASCII world (bug#4751).
3091
3092 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3093
3094 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3095 processing pending events when event is filtered for input method.
3096 (Bug#3681)
3097
3098 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
3099
3100 * fns.c: Add #endif accidentally removed in previous change.
3101
3102 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3103
3104 * fns.c: Remove code for unsupported system: MAC_OS.
3105 * image.c: Likewise. Include setjmp.h.
3106
3107 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3108
3109 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3110 pixel -1 (bug #4742).
3111
3112 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3113
3114 * process.c (create_pty): Remove conditionals for no longer
3115 supported systems: UNIPLUS and RTU.
3116
3117 * xterm.c:
3118 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3119
3120 * alloc.c: Do not define struct catchtag.
3121 * eval.c: Move struct catchtag definition ...
3122 * lisp.h: ... here.
3123
3124 * image.c: Move png.h #include earlier to avoid warnings.
3125
3126 * xterm.c:
3127 * xsmfns.c:
3128 * xselect.c:
3129 * xrdb.c:
3130 * xmenu.c:
3131 * xftfont.c:
3132 * xfont.c:
3133 * xfns.c:
3134 * xfaces.c:
3135 * xdisp.c:
3136 * window.c:
3137 * widget.c:
3138 * w32xfns.c:
3139 * w32uniscribe.c:
3140 * w32term.c:
3141 * w32select.c:
3142 * w32reg.c:
3143 * w32proc.c:
3144 * w32menu.c:
3145 * w32inevt.c:
3146 * w32heap.c:
3147 * w32font.c:
3148 * w32fns.c:
3149 * w32console.c:
3150 * w32.c:
3151 * w16select.c:
3152 * vm-limit.c:
3153 * unexsol.c:
3154 * unexec.c:
3155 * unexcw.c:
3156 * unexaix.c:
3157 * undo.c:
3158 * tparam.c:
3159 * textprop.c:
3160 * terminfo.c:
3161 * terminal.c:
3162 * termcap.c:
3163 * term.c:
3164 * syntax.c:
3165 * sound.c:
3166 * sheap.c:
3167 * search.c:
3168 * scroll.c:
3169 * region-cache.c:
3170 * regex.c:
3171 * ralloc.c:
3172 * process.c:
3173 * print.c:
3174 * nsterm.m:
3175 * nsselect.m:
3176 * nsmenu.m:
3177 * nsimage.m:
3178 * nsfont.m:
3179 * nsfns.m:
3180 * msdos.c:
3181 * minibuf.c:
3182 * menu.c:
3183 * marker.c:
3184 * macros.c:
3185 * keymap.c:
3186 * keyboard.c:
3187 * intervals.c:
3188 * insdel.c:
3189 * indent.c:
3190 * gtkutil.c:
3191 * ftxfont.c:
3192 * ftfont.c:
3193 * fringe.c:
3194 * frame.c:
3195 * fontset.c:
3196 * font.c:
3197 * fns.c:
3198 * floatfns.c:
3199 * filelock.c:
3200 * fileio.c:
3201 * emacs.c:
3202 * editfns.c:
3203 * dosfns.c:
3204 * doprnt.c:
3205 * doc.c:
3206 * dispnew.c:
3207 * dired.c:
3208 * dbusbind.c:
3209 * data.c:
3210 * composite.c:
3211 * coding.c:
3212 * cmds.c:
3213 * cm.c:
3214 * chartab.c:
3215 * charset.c:
3216 * character.c:
3217 * ccl.c:
3218 * category.c:
3219 * casetab.c:
3220 * casefiddle.c:
3221 * callproc.c:
3222 * callint.c:
3223 * bytecode.c:
3224 * buffer.c:
3225 * atimer.c: Include setjmp.h. (Bug#4643)
3226
3227 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3228
3229 Remove leftover table unibyte_to_multibyte_table.
3230 * character.c (unibyte_to_multibyte_table): Remove.
3231 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3232 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3233 * character.h (UNIBYTE_TO_CHAR): New macro.
3234 (MAKE_CHAR_MULTIBYTE): Use it.
3235 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3236 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3237 (message_dolog, set_message_1):
3238 * search.c (Freplace_match):
3239 * editfns.c (Fcompare_buffer_substrings):
3240 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3241 (concat):
3242 * insdel.c (copy_text, count_size_as_multibyte):
3243 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3244 * term.c (produce_glyphs):
3245 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3246 * regex.c (RE_CHAR_TO_MULTIBYTE):
3247 * cmds.c (internal_self_insert):
3248 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3249
3250 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3251
3252 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3253
3254 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3255
3256 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
3257
3258 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3259
3260 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3261
3262 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3263 still needed under Tiger.
3264
3265 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3266
3267 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3268 __Apple__.
3269
3270 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3271
3272 2009-10-15 Kenichi Handa <handa@m17n.org>
3273
3274 * print.c (print_object): Escape a symbol like "2E10" too.
3275
3276 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
3277
3278 Cleanups and changes for 64-bit compile under Snow Leopard.
3279 Based on suggestions by Erik Charlebois.
3280
3281 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3282
3283 * nsfont.m (ns_char_width): Replace deprecated call.
3284 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3285 cast argument.
3286 (nsfont_open): Use ns_char_width() everywhere.
3287 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
3288
3289 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3290
3291 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3292 where appropriate.
3293
3294 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3295 where appropriate.
3296 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3297 Use stringWithUTF8String.
3298 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3299
3300 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3301 Add formal protocol mention to inheritance.
3302 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3303
3304 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3305 Fix printf format.
3306 (ns_query_color): Use CGFloat where appropriate.
3307 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
3308 (EmacsScroller-mouseDown:): Use long format in printf, and cast
3309 argument.
3310
3311 * config.in (NS_HAVE_NSINTEGER): Drop.
3312
3313 * dbusbind.c (dbus-method-return-internal)
3314 (dbus-method-error-internal): Use long format in printf, and cast
3315 argument.
3316
3317 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3318 in printf, and cast argument.
3319
3320 * process.c (list_processes_1): Use long format in printf, and
3321 cast argument.
3322
3323 2009-10-11 Glenn Morris <rgm@gnu.org>
3324
3325 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3326
3327 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3328
3329 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3330 menu bar with a small width so it doesn't enlarge the frame.
3331
3332 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
3333
3334 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3335
3336 2009-10-06 Glenn Morris <rgm@gnu.org>
3337
3338 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3339 SOME_MACHINE_LISP (this enters indirectly via DOC).
3340
3341 2009-10-05 Eli Zaretskii <eliz@gnu.org>
3342
3343 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3344
3345 2009-10-04 Eli Zaretskii <eliz@gnu.org>
3346
3347 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3348 Doc fix.
3349
3350 2009-10-03 Martin Rudalics <rudalics@gmx.at>
3351
3352 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3353
3354 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
3355
3356 * lisp.h (Qdelete_directory_internal): Remove, because it is not
3357 used anymore outside fileio.c.
3358
3359 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3360
3361 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
3362
3363 * lisp.h (Qdelete_directory_internal):
3364 Declare, instead of Qdelete_directory.
3365
3366 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3367
3368 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3369
3370 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3371
3372 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
3373
3374 * fileio.c (Fdelete_directory_internal): Rename from
3375 Fdelete_directory. It is not a command anymore. It has no file
3376 name handler.
3377
3378 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3379
3380 * xdisp.c (get_next_display_element): Use an enum in last change.
3381
3382 2009-09-28 Kenichi Handa <handa@m17n.org>
3383
3384 * xdisp.c (get_next_display_element): Pay attention to
3385 unibyte_display_via_language_environment in handling
3386 Vnobreak_char_display.
3387
3388 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3389
3390 * nsterm.h (ns_app_name): New extern variable.
3391
3392 * nsterm.m (ns_app_name): New variable.
3393 (ns_term_init): Set and use it.
3394 (ns_term_shutdown): Use it.
3395
3396 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3397 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3398
3399 * nsfns.m (ns_set_name_iconic, ns_set_name)
3400 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3401 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3402
3403 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3404 Remove double-casting in client_data comparison.
3405
3406 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3407
3408 * keyboard.c (make_lispy_event): Remember last wheel direction.
3409 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3410
3411 2009-09-26 Glenn Morris <rgm@gnu.org>
3412
3413 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3414 internal.elc. Add term/pc-win.elc.
3415 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3416 term/x-win.elc.
3417 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3418 term/w32-win.elc.
3419 (NS_SUPPORT): New.
3420 (lisp): Add NS_SUPPORT.
3421 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3422
3423 2009-09-25 David Reitter <david.reitter@gmail.com>
3424
3425 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3426 on Mac OS X 10.6+ (bug#4513).
3427
3428 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
3429
3430 * frame.c (xrdb_get_resource): Return nil for empty string resources;
3431 some parts of Emacs code (like font selection) don't grok them.
3432 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
3433
3434 2009-09-24 Andreas Schwab <schwab@redhat.com>
3435
3436 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3437
3438 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
3439
3440 * dired.c (Fdirectory_files): Fix typo in docstring.
3441
3442 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3443
3444 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3445 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3446 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3447 under GNUstep.
3448 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3449
3450 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3451 glyph advancement.
3452
3453 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3454
3455 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
3456 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
3457
3458 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3459 deleted (bug #4492).
3460
3461 * nsfont.m (Vns_reg_to_script): New lisp variable.
3462 (syms_of_nsfont): Declare it.
3463 (ns_registry_to_script): New function.
3464 (ns_get_req_script): Call it.
3465 (ns_findfonts): Don't give up on non-unicode registry.
3466
3467 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3468
3469 2009-09-20 Tom Tromey <tromey@redhat.com>
3470
3471 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3472 batch mode (bug#4228).
3473
3474 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
3475
3476 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
3477 carefully. (Bug #4339)
3478
3479 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
3480
3481 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
3482
3483 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3484
3485 * emacs.c (inhibit_x_resources): Update doc string for NS.
3486 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
3487 legacy code for -NXHost. Fix error printf in daemon case.
3488
3489 * nsterm.h (ns_no_defaults): Remove.
3490
3491 * nsterm.m (ns_no_defaults): Remove.
3492 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3493 (ns_use_qd_smoothing): Remove legacy variable.
3494 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3495 don't update the NSWindow itself.
3496 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
3497 state detection and store user rect ourselves. (Bug #3581)
3498
3499 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3500 ns_use_qd_smoothing.
3501
3502 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3503 platform versions. Drop support for emacs-20-style face specs.
3504 (x-close-connection): Drop PSFlush() under OS X.
3505 (x-focus-frame): Activate the app first. (Bug #4180)
3506
3507 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
3508
3509 * emacs.c (inhibit_x_resources): New variable.
3510 (main) [HAVE_NS]: Don't process --quick command line option.
3511 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3512
3513 * lisp.h (inhibit_x_resources): Declare it extern.
3514
3515 * w32reg.c (x_get_string_resource):
3516 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3517
3518 2009-09-17 Eli Zaretskii <eliz@gnu.org>
3519
3520 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3521 Add lisp/term/internal.elc.
3522
3523 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3524
3525 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3526 (bug#4461).
3527
3528 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3529
3530 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3531
3532 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3533 (OBJECTS_MACHINE): Remove, unused.
3534
3535 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3536
3537 * frame.c (x_get_resource_string): Remove unused.
3538
3539 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3540
3541 * xterm.c (x_new_font): Call change_frame_size before calling
3542 x_set_window_size, in case frame size won't change.
3543
3544 * frame.c (x_set_font): Remove dead code.
3545
3546 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3547
3548 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3549
3550 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3551
3552 * lread.c (Fload): Don't output a message after loading an obsolete
3553 package any more (done in Lisp now).
3554
3555 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
3556
3557 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3558
3559 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3560
3561 * keymap.c (Fwhere_is_internal): Use nconc2.
3562
3563 2009-09-11 Alan Mackenzie <acm@muc.de>
3564
3565 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3566 batch mode.
3567
3568 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3569
3570 * xdisp.c (display_mode_element): Detect cycles.
3571
3572 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3573
3574 * keymap.c (where_is_internal): Don't erroneously return nil right after
3575 filling the cache.
3576 (where_is_internal_1): Fix up typo.
3577
3578 2009-09-11 Glenn Morris <rgm@gnu.org>
3579
3580 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3581 share a common doc-string.
3582
3583 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3584
3585 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3586 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3587
3588 * keymap.c (QCadvertised_binding): New constant.
3589 (syms_of_keymap): Initialize it.
3590 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3591 if applicable.
3592
3593 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3594
3595 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3596 (parse_menu_item): Streamline since bindings are recomputed all the
3597 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3598 more and don't support lmenu's menu-alias any more either.
3599
3600 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3601 (where_is_internal): Strip it down to only traverse the keymaps.
3602 Move the cache handling from Fwhere_is_internal to here.
3603 (Fwhere_is_internal): Move the handling of remapping and the choice of
3604 the best binding from where_is_internal to here.
3605 Unify the cached/noncached paths, so remapping is also handled
3606 correctly when the cache is used, and so the cache can be used to
3607 speed up remap-handling when applicable.
3608 Give preference to non-remapped bindings.
3609 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3610 non-remapped bindings.
3611 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3612 command remapping.
3613
3614 * xdisp.c (display_mode_element): Move list length limit from 50 to
3615 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3616
3617 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
3618
3619 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3620
3621 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3622
3623 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3624 (Bug#4334)
3625
3626 * keymap.c (where_is_internal): Filter out shadowed remappings.
3627 Assume that where_is_internal returns unshadowed bindings to simplify
3628 the code and get rid of the gotos. Use ASIZE.
3629
3630 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3631
3632 * xterm.c (x_focus_changed): If we get a focusout and pointer
3633 is invisible, make it visible.
3634
3635 * xterm.h: Remove condition for declaration of
3636 x_*_window_to_frame.
3637
3638 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3639
3640 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3641 initial terminal as well.
3642
3643 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3644
3645 * xterm.h: Rename x_non_menubar_window_to_frame to
3646 x_menubar_window_to_frame.
3647
3648 * xterm.c: Remove declarations also in xterm.h.
3649 (XTmouse_position): Do not return valid positions
3650 for clicks in the menubar and the toolbar for Gtk+.
3651
3652 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3653 if the widget for the event has the same top level as a frame,
3654 return the frame.
3655 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3656 internal windows, bug #4122.
3657 (x_non_menubar_window_to_frame): Remove.
3658
3659 2009-09-02 Glenn Morris <rgm@gnu.org>
3660
3661 * buffer.c (default-major-mode): Move most of the doc from here...
3662 (major-mode): ... to here.
3663
3664 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
3665
3666 * process.c (wait_reading_process_output): Keep the descriptor
3667 when pty is used by a non-child process, e.g., in I/O buffer of
3668 GDB this allows inferior to be restarted.
3669
3670 2009-08-29 Eli Zaretskii <eliz@gnu.org>
3671
3672 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3673 both branches into one.
3674
3675 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3676
3677 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3678 (main): Use enable-multibyte-characters rather than
3679 default-enable-multibyte-characters. Output a warning message when
3680 running a unibyte session.
3681
3682 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3683
3684 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3685 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3686 (copy_data_segment): Also copy __program_vars section.
3687 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3688 (dump_it) [LC_DYLD_INFO]: Use it.
3689
3690 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3691
3692 2009-08-28 Eli Zaretskii <eliz@gnu.org>
3693
3694 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3695 $(SRC)/buildobj.h.
3696 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3697 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3698 $(SRC)/buildobj.h.
3699 (clean): Add buildobj.h.
3700
3701 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3702
3703 * print.c (print_object): Set escapeflag to 1 when printing
3704 hashtable keys and values.
3705
3706 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3707
3708 * lread.c (read_integer): Use doubles (and potentially return a float
3709 number) as we do in string-to-number.
3710 (read1): Use strtol to read integers, signal errors on strtol's
3711 overflow and use floats if strtol's output is too large for
3712 Elisp integers.
3713
3714 2009-08-27 Eli Zaretskii <eliz@gnu.org>
3715
3716 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3717 (make-buildobj-SH): Fix last change.
3718 (SRC): Move to before where it's first used.
3719
3720 2009-08-27 Kenichi Handa <handa@m17n.org>
3721
3722 * process.c (send_process): Use encode_coding_object instead of
3723 encode_coding_string to perform eol-conversion even if the string
3724 is unibyte.
3725
3726 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3727 character.
3728
3729 * cmds.c (Fself_insert_command): Avoid unnecessay
3730 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
3731
3732 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3733
3734 * callproc.c (Fcall_process): Remove always true #if.
3735
3736 * lisp.h: Replace #if 0 code for checking with text pointing to
3737 the --enable-checking configure flag.
3738
3739 * emacs.c (main): Mention the --enable-profiling configure flag
3740 instead of using CFLAGS.
3741
3742 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
3743
3744 * Makefile.in (buildobj.h): New target.
3745 (doc.o): Depend on it.
3746 (temacs${EXEEXT}): Don't generate buildobj.lst.
3747 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3748 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3749 ($(BLD)/doc.$(O)): Depend on it.
3750 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3751 provided by Eli Zaretskii.)
3752 ($(TEMACS)): Don't generate buildobj.lst.
3753 * doc.c: Include buildobj.h.
3754 (buildobj): New static variable.
3755 (Fsnarf_documentation): Use it, instead of opening and reading
3756 buildobj.lst.
3757
3758 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
3759
3760 * dbusbind.c (Fdbus_call_method)
3761 (Fdbus_call_method_asynchronously): Use English numeric format for
3762 timeout values in doc string.
3763
3764 2009-08-25 Kenichi Handa <handa@m17n.org>
3765
3766 * alloc.c (mark_char_table): New function.
3767 (mark_object): Use mark_char_table for a char-table.
3768
3769 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3770 (CHAR_TABLE_REF): Use it.
3771
3772 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
3773
3774 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3775 before invoking the newly build emacs to check for load-path
3776 shadowing.
3777
3778 2009-08-22 Glenn Morris <rgm@gnu.org>
3779
3780 * Makefile.in (bootstrap_exe): New variable.
3781 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3782 Use ${bootstrap_exe}.
3783
3784 2009-08-22 Eli Zaretskii <eliz@gnu.org>
3785
3786 * coding.h (encode_coding_string): Don't encode unibyte strings.
3787 (Bug#4047)
3788
3789 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
3790
3791 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3792
3793 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3794 intended as hotfix only.
3795 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3796
3797 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3798
3799 * nsterm.m (ns_get_color): Update documentation properly for last
3800 change, and clean up loose ends in the code left by it. Fix
3801 longstanding bug with 16-bit hex parsing, and add support for
3802 yet another X11 format (rgb:r/g/b) for compatibility.
3803 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3804 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3805
3806 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3807
3808 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3809
3810 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
3811
3812 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3813 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3814 (xd_initialize, xd_pending_messages): Check, whether
3815 $DBUS_SESSION_BUS_ADDRESS is set.
3816
3817 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3818
3819 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3820
3821 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3822
3823 2009-08-20 Glenn Morris <rgm@gnu.org>
3824
3825 * emacs.c (system-type): Doc fix.
3826
3827 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3828
3829 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3830 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3831
3832 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
3833
3834 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3835 New functions.
3836 (xd_initialize): Revert change from 2009-08-16.
3837
3838 2009-08-18 Kenichi Handa <handa@m17n.org>
3839
3840 * fontset.c (Ffontset_font): If a nil element is found in a
3841 font-group vector, return nil.
3842
3843 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
3844
3845 * process.c (status_notify): Don't perform redisplay.
3846 (Fdelete_process, list_processes_1, process_send_signal):
3847 Expliticly perform redisplay.
3848 (wait_reading_process_output): Always check process status, but
3849 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3850
3851 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
3852
3853 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
3854 (XFLOAT_INIT): New macro for storing a float value.
3855 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3856 * fns.c (sxhash): Copy out the value of a float in order to
3857 examine its bytes.
3858 * dbusbind.c (xd_append_arg): Likewise.
3859
3860 * emacs.c (main): Don't call syms_of_data twice.
3861
3862 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
3863
3864 * dbusbind.c (xd_initialize): Add connection file descriptor to
3865 input_wait_mask, in order to let select() detect, whether a new
3866 message has been arrived.
3867 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
3868
3869 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
3870
3871 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3872 New functions.
3873
3874 * lisp.h (xd_pending_messages): Declare.
3875
3876 * keyboard.c (readable_events): Call xd_pending_messages.
3877
3878 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
3879
3880 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
3881
3882 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3883
3884 * buffer.c (set_buffer_internal_1)
3885 (swap_out_buffer_local_variables): Check for unbound local
3886 variables (Bug#4138).
3887
3888 2009-08-14 Eli Zaretskii <eliz@gnu.org>
3889
3890 * process.c (create_pty): Fix last change.
3891
3892 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
3893
3894 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3895 (xbm_load_image): Caller changed.
3896 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
3897
3898 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
3899
3900 * process.c (create_pty): New function.
3901 (Fstart_process): Use it to allow Emacs to just associate a pty
3902 with the buffer. See associated change in gdb-mi.el.
3903 (list_processes_1): Deal with no program name.
3904 (start_process_unwind): Use pid == -2 to mean no process.
3905
3906 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3907
3908 * cmds.c (nonundocount): New global variable.
3909 (keys_of_cmds): Initialize it.
3910 (Fself_insert_command): Use it to combine upto 20 sequential chars
3911 into a single undo entry, just like the Qself_insert_command code in
3912 keyboard.c does.
3913 Call frame_make_pointer_invisible, also like the Qself_insert_command
3914 code in keyboard.c does.
3915 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3916 than its own local replacement for it.
3917
3918 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
3919
3920 * fns.c (concat): Don't re-set string length to its current value.
3921
3922 * coding.h (decode_coding_string, encode_coding_string):
3923 Use SBYTES macro.
3924
3925 * doprnt.c (doprnt_lisp): Delete unused function.
3926 (doprnt): Merge with doprnt1, discarding lispstrings code.
3927 * lisp.h (doprnt_lisp): Don't declare.
3928
3929 2009-08-07 Juri Linkov <juri@jurta.org>
3930
3931 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3932
3933 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3934
3935 * print.c (syms_of_print): Undo previous change.
3936
3937 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3938
3939 * lread.c (read1, syms_of_lread): Read hashtables back from the
3940 readable format.
3941
3942 * print.c (print_preprocess, print_object): Print hashtables fully
3943 and readably.
3944 (syms_of_print): Provide 'hashtable-print-readable.
3945
3946 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3947
3948 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3949 no family set.
3950 (nsfont_open): Handle case when entity has no family.
3951
3952 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3953
3954 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3955 element, not a list, for match case.
3956
3957 2009-07-28 Kenichi Handa <handa@m17n.org>
3958
3959 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3960 rigidly.
3961
3962 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3963 font_parse_xlfd. Check font properties more rigidly.
3964
3965 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3966
3967 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3968 bsd-common.h.
3969
3970 2009-07-27 Kenichi Handa <handa@m17n.org>
3971
3972 * xfaces.c (face_with_height): Call font_clear_prop.
3973
3974 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
3975
3976 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3977
3978 * xterm.c (x_term_init): Use Qx.
3979
3980 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3981
3982 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3983 (ns_get_color): Revert 2009-07-16 change.
3984
3985 2009-07-25 Eli Zaretskii <eliz@gnu.org>
3986
3987 * lread.c (syms_of_lread) <force_load_messages>: New variable.
3988 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3989
3990 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
3991
3992 * coding.h (decode_coding_string, encode_coding_string):
3993 Use SCHARS macro.
3994
3995 * lread.c: Rewrite 2009-07-21 changes.
3996 (load_depth): Delete.
3997 (Qload_in_progress): New variable.
3998 (load_unwind): Don't reference load_depth or load_in_progress.
3999 (Fload): Likewise; specbind Qload_in_progress instead.
4000 (init_lread): Don't initialize load_depth.
4001 (syms_of_lread): Initialize and protect Qload_in_progress.
4002
4003 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4004
4005 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4006
4007 2009-07-23 Yavor Doganov <yavor@gnu.org>
4008
4009 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4010
4011 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4012
4013 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4014 Bugs 3792, 3720, 2402.
4015 (ns_lookup_indexed_color): Check for bad index.
4016 (ns_index_color): Init unused slot to 0.
4017 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4018 Bug 3714, possibly 3082.
4019
4020 2009-07-22 Jason Rumney <jasonr@gnu.org>
4021
4022 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4023 Position IME window at cursor (Bug#2570).
4024 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4025 (globals_of_w32fns): Dynamically load functions required above.
4026
4027 * w32term.c (w32_draw_window_cursor): Send message to reposition
4028 any IME window.
4029
4030 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4031
4032 * fileio.c: Revert 2009-07-16 changes.
4033 (Vauto_save_include_big_deletions): New variable.
4034 (Fdo_auto_save): Disable auto-save only if
4035 auto-save-include-big-deletions is nil.
4036
4037 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4038
4039 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4040 the overflowed pixels into account (Bug#3879).
4041
4042 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
4043
4044 * lread.c (load_depth): New variable.
4045 (Fload, load_unwind, init_lread): Set it to the load recursion
4046 depth; set load_in_progress as a simple boolean based on the
4047 current load_depth. (Bug#3892)
4048
4049 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4050
4051 * nsfont.m (ns_has_attribute): Remove.
4052 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4053
4054 2009-07-18 Juri Linkov <juri@jurta.org>
4055
4056 * process.c (Fset_process_query_on_exit_flag): Mention killing
4057 a buffer in docstring.
4058
4059 2009-07-17 Kenichi Handa <handa@m17n.org>
4060
4061 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4062
4063 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4064
4065 * nsfns.m (Fns_set_alpha): Remove function.
4066 (syms_of_nsfns): Don't defsubr it.
4067
4068 * nsterm.m (ns_get_color): Remove incompatible color formats.
4069 (ns_color_to_lisp): Generate #rrggbb color format string.
4070
4071 2009-07-16 Richard Stallman <rms@gnu.org>
4072
4073 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4074 (Fset_buffer_auto_saved): Handle save_length = -2.
4075
4076 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
4077
4078 * xterm.c (Qx_gtk_map_stock): New var.
4079
4080 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4081 of calling intern each time.
4082
4083 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4084
4085 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4086 does tiling.
4087
4088 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4089
4090 2009-07-14 Kenichi Handa <handa@m17n.org>
4091
4092 * font.c (font_vconcat_entity_vectors): New function.
4093 (struct font_sort_data): New member font_driver_preference.
4094 (font_compare): Check font_driver_preference.
4095 (font_sort_entities): The format of the first argument changed.
4096 (font_delete_unmatched): Likewise.
4097 (font_list_entities): The return type changed.
4098 (font_select_entity): The format of the second argument changed.
4099 (font_find_for_lface): Adjuste for the above changes.
4100 Don't suppress the checking of C even if the repertory supports it.
4101 (Flist_fonts): Adjust for the above changes.
4102
4103 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4104 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4105 Reject a font who has adstyle property that is different from a
4106 langname derived from registry property.
4107 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4108
4109 2009-07-13 Eli Zaretskii <eliz@gnu.org>
4110
4111 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4112 local copy of dirfilename.
4113
4114 2009-07-13 Kenichi Handa <handa@m17n.org>
4115
4116 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4117 against max_char.
4118
4119 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4120 calling XSYMBOL (sym).
4121
4122 2009-07-11 Eli Zaretskii <eliz@gnu.org>
4123
4124 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4125 New function.
4126 (directory_files_internal) [WINDOWSNT]:
4127 Bind w32-get-true-file-attributes to either t or nil, depending whether
4128 the filesystem of the directory is fast or slow.
4129
4130 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4131 file name.
4132 (is_slow_fs): New function.
4133 (stat): Use it to determine whether to issue more system calls to
4134 get accurate file attributes, when w32-get-true-file-attributes is
4135 `local'.
4136
4137 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4138
4139 * xfns.c (Fx_select_font): Remember last font selected in
4140 x_last_font_name and use that the next time. Also try the frame
4141 parameter font-parameter as default to the font dialog.
4142
4143 2009-07-10 Kenichi Handa <handa@m17n.org>
4144
4145 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4146
4147 2009-07-09 Eli Zaretskii <eliz@gnu.org>
4148
4149 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4150
4151 * w32.c (stat): Treat UNC file names as residing on remote
4152 drives. (Bug#3542)
4153
4154 2009-07-09 Kenichi Handa <handa@m17n.org>
4155
4156 * fontset.c (fontset_find_font): Fix previous change.
4157
4158 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
4159
4160 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4161 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4162 error flag.
4163
4164 2009-07-08 Kenichi Handa <handa@m17n.org>
4165
4166 * fontset.c (fontset_find_font): Fix the logic of handling
4167 charset_matched.
4168 (font_for_char): Delete unused var.
4169 (generate_ascii_font_name): Delete it.
4170
4171 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4172
4173 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4174 (encode_coding_sjis): Fix the code range check.
4175
4176 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
4177
4178 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4179 (Fexpand_file_name): Copy string data properly (Bug#3772).
4180
4181 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4182
4183 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4184 first MapNotify.
4185
4186 2009-07-07 Kenichi Handa <handa@m17n.org>
4187
4188 * character.h (unibyte_has_multibyte_table): Delete extern.
4189 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4190
4191 * charset.c (Fset_charset_priority): Update charset_unibyte.
4192 (syms_of_charset): Initialize charset_unibyte.
4193
4194 * character.c (unibyte_has_multibyte_table): Delete it.
4195 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4196 charset_unibyte.
4197 (multibyte_char_to_unibyte_safe): Likewise.
4198 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4199
4200 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4201 (x_produce_glyphs): Likewise.
4202
4203 * .gdbinit (xcharset): Fix the treating $arg0.
4204
4205 2009-07-04 Eli Zaretskii <eliz@gnu.org>
4206
4207 Emulation of `getloadavg' on MS-Windows.
4208 * w32.c: Include float.h.
4209 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4210 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4211 (get_native_system_info, get_system_times): New functions.
4212 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4213 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4214 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4215 g_b_init_get_system_times, and num_of_processors.
4216
4217 2009-07-03 Jason Rumney <jasonr@gnu.org>
4218
4219 * w32term.c (w32_initialize): Use standard types.
4220
4221 2009-07-03 Eli Zaretskii <eliz@gnu.org>
4222
4223 * dired.c (Ffile_attributes): Decode user and group names by the
4224 locale's encoding. (Bug#3443)
4225
4226 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4227
4228 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4229 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4230
4231 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4232
4233 * term.c (init_tty): Remove spurious #ifdef.
4234
4235 * m/mips.h: Mention this file is also used for netbsd.
4236 * m/pmax.h: Remove file.
4237
4238 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4239
4240 * xterm.h (struct x_display_info): Add invisible_cursor.
4241 (struct x_output): Add current_cursor.
4242
4243 * xterm.c (XTtoggle_invisible_pointer): New function.
4244 (x_define_frame_cursor): Don't define cursor if invisible or the
4245 same as before. Set current_cursor.
4246 (x_create_terminal): Set toggle_invisible_pointer_hook.
4247
4248 * xfns.c (make_invisible_cursor): New function.
4249 (x_set_mouse_color): Call make_invisible_cursor.
4250 Set current_cursor.
4251 (x_window): Set current_cursor.
4252
4253 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4254
4255 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4256 inserting a character.
4257 (read_avail_input): Call frame_make_pointer_visible.
4258
4259 * frame.c (Vmake_pointer_invisible): New variable.
4260 (frame_make_pointer_invisible, frame_make_pointer_visible):
4261 New functions.
4262 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4263
4264 * frame.h: Declare frame_make_pointer_invisible and
4265 frame_make_pointer_visible.
4266 (struct frame): Add pointer_invisible.
4267
4268 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4269
4270 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4271 frame isn't visible.
4272 (xg_frame_resized): If width/height is -1, get size of window
4273 from X server.
4274
4275 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4276 for MapNotify.
4277
4278 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
4279 here or call change_frame_size. Just call flush_and_sync.
4280 (flush_and_sync): Reintroduce.
4281
4282 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
4283
4284 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
4285
4286 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4287 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4288
4289 * frame.h: Declare Qsticky.
4290
4291 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4292
4293 * nsfns.m (ns_frame_parm_handlers): Ditto.
4294
4295 * frame.c: Declare Qsticky.
4296 (frame_parms): Add sticky.
4297
4298 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4299
4300 * xterm.h: Declare x_set_sticky.
4301
4302 * xterm.c (x_set_sticky): New function.
4303
4304 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4305 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4306 xg_tool_bar_proxy_help_callback.
4307
4308 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4309
4310 * frame.c: Qmaximized is new.
4311 (x_set_frame_parameters): Do not handle fullscreen specially.
4312 Only set width and height if explicitly set.
4313 (x_set_fullscreen): Handle Qmaximized.
4314 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4315 (syms_of_frame): Initialize Qmaximized.
4316
4317 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4318 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
4319
4320 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
4321 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4322 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
4323 set gravity to NorthWestGravity when USE_GTK.
4324 (set_wm_state): New function.
4325 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
4326 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4327 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
4328 or the case when no window manager is running. That means remove calls
4329 to x_real_positions and x_fullscreen_adjust.
4330
4331 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4332 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4333 flush_and_sync.
4334 (xg_height_changed): New function.
4335 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
4336 and gtk_window_set_policy. Set frame gravity after parsing the
4337 geometry string.
4338 (xg_update_frame_menubar, free_frame_menubar)
4339 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4340 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4341 Remove calls to xg_frame_set_char_size.
4342
4343 2009-07-01 Kenichi Handa <handa@m17n.org>
4344
4345 * keyboard.c (decode_keyboard_code): New function.
4346 (tty_read_avail_input): Decode the input bytes if necessary.
4347
4348 * coding.c (setup_coding_system):
4349 Initialize coding->carryover_bytes to 0.
4350 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4351 use Qno_conversion.
4352
4353 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4354
4355 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4356
4357 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
4358
4359 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
4360
4361 2009-06-30 Jason Rumney <jasonr@gnu.org>
4362
4363 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4364 is already loaded.
4365 Set user model ID if supported (bug#1849).
4366
4367 2009-06-29 Jim Meyering <meyering@redhat.com>
4368
4369 Remove useless if-before-xfree test.
4370 * nsfont.m (nsfont_close): Remove useless test.
4371 * term.c (delete_tty): Likewise.
4372 * w32.c (system_process_attributes): Likewise.
4373 * w32font.c (w32font_close): Likewise.
4374 * xfaces.c (x_free_gc): Likewise.
4375 * xselect.c (buffer): Likewise.
4376
4377 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4378
4379 * process.c (send_process): Keep decoded string in a local
4380 variable and protect it from GC. (Bug#3521)
4381
4382 2009-06-28 Eli Zaretskii <eliz@gnu.org>
4383
4384 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4385 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4386
4387 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
4388
4389 * xdisp.c (start_display, handle_face_prop)
4390 (move_it_vertically_backward, cursor_row_fully_visible_p)
4391 (redisplay_window, try_window_id, produce_image_glyph):
4392 Delete some #ifdef-ed out code chunks that are now obsolete.
4393
4394 * xterm.c (x_update_window_begin, x_new_focus_frame)
4395 (x_scroll_bar_handle_click, handle_one_xevent)
4396 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4397 (x_make_frame_visible, x_make_frame_invisible)
4398 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4399 code chunks that are now obsolete.
4400
4401 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
4402
4403 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4404 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4405 for hours, when optimzation is enabled.
4406 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4407 (xd_read_message): Make them static.
4408
4409 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4410
4411 * term.c (turn_on_face): Allow simultaneously bold and dim
4412 terminal faces (Bug#3530).
4413
4414 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
4415
4416 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4417
4418 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4419 truncation glyphs (Bug#3686).
4420
4421 2009-06-27 Glenn Morris <rgm@gnu.org>
4422
4423 * m/pmax.h: Restore file, with only netbsd portions.
4424
4425 2009-06-26 David Reitter <david.reitter@gmail.com>
4426
4427 * nsterm.m (keydown): Avoid infinite loop.
4428
4429 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4430
4431 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4432 the arg FORCE_SYMBOL.
4433
4434 2009-06-25 Kenichi Handa <handa@m17n.org>
4435
4436 * fontset.c (fontset_find_font): When a usable rfont_def is found
4437 in a fallback font-group, make it the first element of the group.
4438
4439 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4442
4443 2009-06-24 Kenichi Handa <handa@m17n.org>
4444
4445 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4446 set for C.
4447 (fontset_font): Record the availability of a font for C both in
4448 the realized fontsets of the current one and the default one.
4449
4450 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4451
4452 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4453 conditional, it is always defined on AIX.
4454
4455 2009-06-23 Miles Bader <miles@gnu.org>
4456
4457 * window.c (Vrecenter_redisplay): New variable.
4458 (syms_of_window): Initialize it.
4459 (Qtty): New extern declaration.
4460 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4461
4462 2009-06-23 Jim Meyering <meyering@redhat.com>
4463
4464 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4465 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
4466 pointer dereferences are guaranteed to be valid.
4467
4468 2009-06-23 Kenichi Handa <handa@m17n.org>
4469
4470 * emacs.c (main): Call init_font ().
4471
4472 * font.h (Vfont_log): Extern it.
4473 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4474
4475 * font.c (font_sort_entities, font_list_entities)
4476 (font_matching_entity, font_open_entity)
4477 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4478 (Vfont_log): Delete static.
4479 (font_log_env_checked): Delete this variable.
4480 (font_add_log): Don't check font_log_env_checked.
4481 (font_deferred_log): Check Vfont_log.
4482 (init_font): New function.
4483
4484 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4485
4486 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4487
4488 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4489
4490 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4491
4492 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4493 (face_for_char): Don't call font_deferred_log here.
4494 (font_for_char): Likewise.
4495
4496 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4499 rather than its background_width for drawing the overline and
4500 underline (Bug#489).
4501
4502 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4503 rather than its background_width for drawing the overline and
4504 underline (Bug#489).
4505 (xg_default_icon_file): New variable.
4506 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4507 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
4508
4509 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4510 (load_overlay_strings): Remove externs.
4511 (fast_find_position): Function deleted.
4512 (mouse_face_from_buffer_pos): New function, based on
4513 fast_find_position. Correctly handle before-strings,
4514 display-strings, and after-strings (Bug#1220).
4515 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4516
4517 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4520 (move_it_in_display_line_to, move_it_in_display_line_to)
4521 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4522
4523 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
4524
4525 * Branch for 23.1.
4526
4527 2009-06-21 Jason Rumney <jasonr@gnu.org>
4528
4529 * w32term.c (keyboard_codepage): New static variable.
4530 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4531 (w32_read_socket) [WM_CHAR]: Use it to decode character
4532 input (bug#3237).
4533 (w32_initialize): Initialize it.
4534 (codepage_for_locale): New function.
4535
4536 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
4537
4538 * process.c (status_message): Pass Faset index argument as a lisp
4539 object, so as to work with USE_LISP_UNION_TYPE.
4540
4541 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4542
4543 * coding.c (Ffind_coding_systems_region_internal):
4544 Cache checked characters.
4545
4546 2009-06-18 Kenichi Handa <handa@m17n.org>
4547
4548 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
4549
4550 2009-06-18 Andreas Schwab <aschwab@redhat.com>
4551
4552 * xdisp.c (redisplay_internal): Check that the frame is still
4553 live after redisplay of its windows.
4554 (redisplay_windows): Check that the window is still live.
4555
4556 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4557
4558 * coding.c (detect_coding_utf_16): Fix previous change.
4559
4560 2009-06-16 Kenichi Handa <handa@m17n.org>
4561
4562 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4563 UTF-16 by checking the dispersion of Eth and Oth bytes.
4564
4565 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4566
4567 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4568
4569 2009-06-15 Kenichi Handa <handa@m17n.org>
4570
4571 * process.c (status_message): Fix previous change. Be sure to
4572 decode a localized string.
4573
4574 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4575
4576 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4577 add comment explaining why.
4578
4579 2009-06-14 Sidney Markowitz <sidney@sidney.com>
4580
4581 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
4582
4583 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4584
4585 * nsfont.m (ns_attribute_value): Remove.
4586 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4587 (ns_has_attribute): Shrink the normal range.
4588 (ns_findfonts): Don't worry about requested spec in determining
4589 need for synthItal.
4590 (ns_get_covering_families): Retain scriptToFamilies.
4591
4592 2009-06-14 Seiji Zenitani <zenitani@mac.com>
4593
4594 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4595
4596 2009-06-11 Kenichi Handa <handa@m17n.org>
4597
4598 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4599 overhang for the static composition case.
4600
4601 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4602
4603 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4604 overhang for the automatic composition case.
4605
4606 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4607 composition case.
4608
4609 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
4610
4611 * xdisp.c (get_next_display_element): When handling wrap-prefix
4612 and line-prefix, treat \n as a control character (bug#3502).
4613
4614 2009-06-10 Kenichi Handa <handa@m17n.org>
4615
4616 * font.c (font_parse_family_registry): Fix for one-char foundry.
4617 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4618
4619 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4620
4621 * process.c (status_message): Fix handling of multibyte signal
4622 string (Bug#3499).
4623
4624 2009-06-09 Jim Meyering <meyering@redhat.com>
4625
4626 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4627 color name is missing.
4628
4629 2009-06-09 Kenichi Handa <handa@m17n.org>
4630
4631 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4632 FROM-CODE and TO-CODE are codepoints of CHARSET.
4633
4634 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4635
4636 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4637
4638 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4639
4640 Changes to support :script/:lang/:otf in NS font driver.
4641 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4642 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4643 indicate not part of font driver interface, and change callers.
4644 (ns_get_family): Remove pointless null check.
4645 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4646 ns_spec_to_descriptor, ns_descriptor_to_entity.
4647 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4648 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4649 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4650 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4651 (ns_get_req_script, ns_accumulate_script_ranges)
4652 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4653 New functions.
4654 (nsfont_list, nsfont_match): Use ns_findfonts.
4655 (nsfont_open): Use font descriptor instead of traits.
4656 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4657 (dump_glyphstring): Rename to ns_dump_glyphstring.
4658
4659 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4660
4661 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4662
4663 * fontset.c (fontset_from_font): Remove NS-specific code.
4664
4665 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
4666
4667 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4668 nonactive windows.
4669
4670 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
4671
4672 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
4673
4674 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4675
4676 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4677
4678 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4681 account for the overflowing of newlines into the last glyph on the
4682 display line (Bug#3482).
4683
4684 2009-06-05 David Reitter <david.reitter@gmail.com>
4685
4686 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4687 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
4688 Fns_selection_exists_p, Fns_selection_owner_p.
4689
4690 2009-06-03 Jason Rumney <jasonr@gnu.org>
4691
4692 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4693 available. (Bug#3379)
4694
4695 2009-05-29 Kenichi Handa <handa@m17n.org>
4696
4697 * coding.c (get_translation_table):
4698 Check Venable_character_translation.
4699
4700 2009-05-26 David Reitter <david.reitter@gmail.com>
4701
4702 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4703 (x_make_frame_visible): Move frame to front rather than calling
4704 ns_raise_frame().
4705 (keyDown:): Do not swallow events that aren't re-sent if frame
4706 isn't key window.
4707 (drawRect:): Do not set visibility/iconified flags because
4708 drawRect may be called by NSView even if the frame is hidden.
4709
4710 * nsfns.m (Fx_create_frame): Follow other ports in
4711 determining visibility; default to t. Ensure async_visible is set.
4712
4713 2009-05-23 Eli Zaretskii <eliz@gnu.org>
4714
4715 * dired.c (Ffile_attributes): Doc fix.
4716
4717 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4720
4721 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4722
4723 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4724 and xfont_scratch_props.
4725 (syms_of_xfont): Do it here instead.
4726 (xfont_find_ccl_program): Delete, unused.
4727 (xfont_open): Delete unused var `i'.
4728
4729 2009-05-21 Kenichi Handa <handa@m17n.org>
4730
4731 * fontset.c (Qlatin): Don't make it static.
4732
4733 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4734 New functions.
4735 (xfont_scripts_cache, xfont_scratch_props): New variables.
4736 (Qlatin, Vscalable_fonts_allowed): Extern it.
4737 (xfont_list_pattern): Argument changed. Callers changed.
4738 Check Vscalable_fonts_allowed. Check the support of a script.
4739 (xfont_list): Don't reject a font spec with :script property.
4740 (xfont_has_char): Fix setting of encoding.
4741 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4742 xfont_scratch_props.
4743
4744 2009-05-19 Kenichi Handa <handa@m17n.org>
4745
4746 * font.c (font_sort_entities): Rename from font_sort_entites.
4747 Callers changed.
4748
4749 2009-05-18 Kenichi Handa <handa@m17n.org>
4750
4751 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4752
4753 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4754
4755 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4756 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4757
4758 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4759
4760 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4761 (x_delete_terminal): Dissociate resource database from display and
4762 then call XrmDestroyDatabase before closing display.
4763
4764 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4765
4766 * nsterm.m (ns_read_socket): Remove unused variable.
4767 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4768 whether selected frame is viable before raising it (based on patch
4769 by David Reitter), and improve commentary.
4770 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
4771
4772 2009-05-15 Kenichi Handa <handa@m17n.org>
4773
4774 * font.c (Ffont_spec): Check arguments.
4775
4776 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
4777
4778 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4779 weight when testing attributes (Bug#3282).
4780
4781 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4782
4783 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4784 what we expect to get in the next ConfigureNotify event.
4785
4786 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4787 before Xft one (Bug#1696).
4788
4789 2009-05-07 David Reitter <david.reitter@gmail.com>
4790
4791 * nsfns.m (Fx_display_planes): Compute bitplanes using
4792 NSBitsPerPixelFromDepth (Bug#3207).
4793
4794 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
4795
4796 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4797
4798 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
4799
4800 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4801
4802 2009-05-07 David Reitter <david.reitter@gmail.com>
4803
4804 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4805 Respect mouse face background.
4806
4807 2009-05-07 David Reitter <david.reitter@gmail.com>
4808
4809 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4810 Mouse movement/highlight: bracket drawing operations
4811 in ns_update_begin and ns_update_end.
4812
4813 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4814
4815 * nsfns.m (ns_get_screen): Rewrite.
4816 Don't presume selected-frame is of type `ns'.
4817
4818 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4819 all drivers.
4820
4821 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4822
4823 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4824
4825 * keyboard.h (add_user_signal): Fix typo in extern.
4826
4827 * lisp.h (add_user_signal): Remove extern.
4828
4829 * unexelf.c (unexec): Consider a section to precede the .bss section
4830 if its addresses overlap that of .bss.
4831 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4832 instead of dumping process.
4833
4834 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4835
4836 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4837
4838 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4839
4840 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4841
4842 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4843
4844 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4845 any statements.
4846
4847 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4848
4849 * process.c (read_process_output): Make sure the current buffer is
4850 always restored.
4851
4852 * coding.c (record_conversion_result): Don't modify
4853 Vlast_code_conversion_error for successful result.
4854 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4855
4856 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4857
4858 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
4859 (load_charset_map): Remove unnecessary code.
4860
4861 2009-04-30 David Reitter <david.reitter@gmail.com>
4862
4863 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4864 through f24.
4865
4866 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
4867
4868 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4869
4870 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4871 face_at_buffer_position.
4872 (face_before_or_after_it_pos, get_next_display_element)
4873 (note_mouse_highlight): Update face_at_buffer_position call.
4874
4875 * term.c (term_mouse_highlight):
4876 * msdos.c (IT_note_mouse_highlight):
4877 * fontset.c (Finternal_char_font):
4878 * font.c (font_at, font_range): Update face_at_buffer_position call.
4879
4880 * dispextern.h (face_at_buffer_position): Update prototype.
4881
4882 2009-04-30 Kenichi Handa <handa@m17n.org>
4883
4884 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
4885
4886 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4887
4888 * callproc.c (Fcall_process): Fix GC protection. Make sure
4889 current buffer is always restored.
4890
4891 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4892
4893 * atimer.c (init_atimer): Also clear stopped_atimers.
4894
4895 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4896
4897 * process.c (create_process): Clean up merger residues of
4898 2008-07-17 change.
4899
4900 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
4901
4902 * lread.c (Vread_circle): New variable.
4903 (read1): Disable recursive read if Vread_circle is nil.
4904
4905 2009-04-29 Kenichi Handa <handa@m17n.org>
4906
4907 * fontset.h (set_default_ascii_font): Delete extern.
4908
4909 * fontset.c (set_default_ascii_font): Delete this unused function.
4910
4911 * frame.c (x_set_font): When ARG is a font-object, check if the
4912 font-object matches with the ASCII font-spec of the frame's
4913 fontset. If not, create a new fontset for the frame. (Bug #3075)
4914
4915 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4916
4917 * fns.c (Flocale_info): Protect vector from GC during decoding.
4918
4919 * process.c (Fstart_process): Protect argv strings from GC during
4920 encoding.
4921
4922 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4923
4924 * sysdep.c: Include <ctype.h>.
4925
4926 2009-04-27 David Reitter <david.reitter@gmail.com>
4927
4928 * nsfont.m (nsfont_open): Remove unused variable shrink.
4929 Remove commented-out code.
4930
4931 2009-04-26 Johan Bockgård <bojohan@gnu.org>
4932
4933 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4934
4935 2009-04-25 Jason Rumney <jasonr@gnu.org>
4936
4937 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4938
4939 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4940
4941 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4942 Swap bytes in short integer if fringe bitmap width > 8.
4943
4944 2009-04-23 Kenichi Handa <handa@m17n.org>
4945
4946 * xfaces.c (Fx_list_fonts): If a font size is specified in
4947 PATTERN, set it in returned scalable fonts.
4948
4949 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
4950
4951 * keyboard.c (Fset_input_meta_mode): Doc fix.
4952
4953 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4954
4955 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4956
4957 * coding.c (Fterminal_coding_system): Doc fix.
4958
4959 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4960 (Fx_display_pixel_height, Fx_display_planes)
4961 (Fx_display_color_cells, Fx_server_max_request_size)
4962 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4963 (Fx_display_mm_height, Fx_display_mm_width)
4964 (Fx_display_backing_store, Fx_display_visual_class)
4965 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4966 Doc fixes, replacing "terminal id" with "terminal object".
4967 (check_x_display_info): Handle terminal objects instead of
4968 terminal ids.
4969
4970 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4971 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4972 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4973 Doc fixes, replacing "terminal id" with "terminal object".
4974
4975 2009-04-21 Kenichi Handa <handa@m17n.org>
4976
4977 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4978 (font_score): Check AVGWIDTH too.
4979
4980 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4981 worst case.
4982 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4983 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4984
4985 2009-04-19 Jason Rumney <jasonr@gnu.org>
4986
4987 The following changes fix Bug#3005 for wide glyphs on each platform,
4988 without reintroducing Bug#1258 for stretch glyphs.
4989
4990 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4991 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4992 get_phys_cursor_geometry.
4993
4994 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4995 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4996 using get_phys_cursor_geometry.
4997
4998 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4999 correctly calculated.
5000
5001 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5002
5003 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5004 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5005 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5006 is deprecated.
5007
5008 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5009
5010 * font.c (font_put_frame_data): Use xfree instead of free.
5011
5012 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5013
5014 * w32font.c (Qja, Qko): Remove declarations.
5015 (syms_of_w32font): Don't DEFSYM them.
5016
5017 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5018
5019 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5020
5021 * font.h (Qja, Qko): Extern them.
5022
5023 * ftfont.c (Qja, Qko): Remove declarations.
5024
5025 * xfont.c (Qja, Qko): Remove declarations.
5026
5027 2009-04-17 Kenichi Handa <handa@m17n.org>
5028
5029 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5030 string from a vector to handle Latin-1 characters correctly.
5031
5032 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5033 entity even if the cache hits.
5034
5035 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5036
5037 * search.c (boyer_moore): Use zero as marker value for a possible
5038 match instead of depending on overflow behavior. (Bug#2844)
5039
5040 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5041 * lisp.h: Adjust prototypes.
5042
5043 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
5044
5045 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5046 change (Bug#3003).
5047
5048 2009-04-16 Kenichi Handa <handa@m17n.org>
5049
5050 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5051
5052 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5053 adstyle.
5054
5055 * ftfont.c (Qja, Qko): Don't make them static.
5056 (enum ftfont_cache_for): New enum.
5057 (fc_charset_table): Undo the previous change.
5058 (ftfont_get_latin1_charset): Delete it.
5059 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5060 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5061 non-scarable font, try to get AVERAGE_WIDTH.
5062 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5063 Change ft_face_cache from a list of a hash-table. Don't check
5064 `ja' and `ko' adstyle here.
5065 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5066 FTFONT_CACHE_FOR_CHARET.
5067 (ftfont_get_charset): Undo the previous change.
5068 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5069 (ftfont_close): Likewise.
5070 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5071
5072 * font.c (font_sort_entites): Change the meaning of the arg
5073 BEST-ONLY. Don't optimize for VEC of lenght 1.
5074 (font_select_entity): Just return the value of font_sort_entites.
5075
5076 * xfaces.c (merge_face_vectors): Reflect font properties in
5077 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5078 font_clear_prop if a face attribute doesn't change.
5079
5080 * charset.h (charset_ksc5601): Extern it.
5081
5082 * charset.c (charset_ksc5601): New variable.
5083 (Fdefine_charset_internal): Set charset_ksc5601.
5084 (init_charset_once): Initialize charset_ksc5601 to -1.
5085
5086 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 * fileio.c (history_delete_duplicates): Remove unused declaration.
5089
5090 * callint.c (history_delete_duplicates): New declaration.
5091 (Fcall_interactively): Remove command history duplicates when
5092 history_delete_duplicates is true.
5093
5094 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5095
5096 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5097
5098 2009-04-14 Kenichi Handa <handa@m17n.org>
5099
5100 * font.c (Ffont_info): Fix docstring. Fix the second element of
5101 the returned value (bug#2949).
5102
5103 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
5104
5105 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5106
5107 2009-04-14 Kenichi Handa <handa@m17n.org>
5108
5109 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5110 encoding charset is ascii_compatible.
5111
5112 * charset.c (Fdefine_charset_internal): Make charset
5113 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5114 code_offset is 0, and covers all ASCII characters.
5115
5116 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5117
5118 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5119 (ns_string_to_pasteboard_internal):
5120 * nsmenu.m (process_dialog):
5121 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5122 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5123 * lisp.h (Fx_load_color_file): Declare.
5124
5125 2009-04-13 Kenichi Handa <handa@m17n.org>
5126
5127 * font.c (font_delete_unmatched): Preserve the order of list elements.
5128 (font_select_entity): Suppress the code to optimize for the same
5129 kind of fonts.
5130 (font_load_for_lface): Get a font that supports at least ASCII
5131 characters.
5132
5133 * ftfont.c (Qja, Qko): New variables.
5134 (fc_charset_table): Delete uniquifier data for iso8859-1.
5135 (ftfont_get_latin1_charset): New function.
5136 (get_adstyle_property): New function.
5137 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5138 bitmap fonts.
5139 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5140 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5141 `ko' or `ja'.
5142 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5143 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5144 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5145 property.
5146 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5147 (syms_of_ftfont): DEFSYM Qja and Qko.
5148
5149 2009-04-09 Kenichi Handa <handa@m17n.org>
5150
5151 * charset.c (map_charset_chars): For a charset of `superset'
5152 method, fix calculation of code range.
5153
5154 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5155 from the list of extra properties.
5156 (font_clear_prop): Be sure to delete `:name' font property.
5157
5158 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5159
5160 * dispnew.c (redraw_overlapping_rows): Fix detection of
5161 overlapping for topmost and bottommost rows.
5162
5163 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5164
5165 2009-04-06 Jason Rumney <jasonr@gnu.org>
5166
5167 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5168
5169 2009-04-06 Kenichi Handa <handa@m17n.org>
5170
5171 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5172
5173 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5174
5175 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5176
5177 * ftfont.c (ftfont_open): Fix checking of the return value of
5178 FT_Load_Char. Fix setting font->underline_thickness.
5179
5180 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
5181
5182 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5183 (Fterminal_parameters, Fterminal_parameter)
5184 (Fset_terminal_parameter): In doc string, refer to terminal
5185 objects rather than terminal ids.
5186
5187 2009-04-04 Eli Zaretskii <eliz@gnu.org>
5188
5189 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5190 ret_lim_data. (Bug#2867)
5191
5192 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
5193
5194 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5195 so they don't get wider than the window, matching 2006-01-23
5196 change to the partner function in xdisp.c (Bug#2800).
5197
5198 2009-04-03 Kenichi Handa <handa@m17n.org>
5199
5200 * print.c (print_object): Make each lowest sub_char_table start a
5201 new line (Bug#2866).
5202
5203 2009-04-02 Kenichi Handa <handa@m17n.org>
5204
5205 * fontset.c (fontset_font): Record no-font when a fontset
5206 explicitly tells not to try another font-specs.
5207
5208 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5209
5210 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5211
5212 2009-03-30 Kenichi Handa <handa@m17n.org>
5213
5214 * fontset.c (fontset_from_font): Specify only registry in a
5215 font-spec for all characters supported by that registry.
5216
5217 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5218 even if HAVE_M17N_FLT is not defined.
5219
5220 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5221
5222 * ftfont.c: Conditionalize prototyping and use of
5223 ftfont_variation_glyphs.
5224
5225 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5226
5227 * frame.c (delete_frame): Work around compiler bug.
5228
5229 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5230 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5231 Some more EMACS_INT.
5232 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5233
5234 * xdisp.c (dump_glyph): Fix typo.
5235
5236 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5237 (adjust_markers_gap_motion, adjust_markers_for_delete)
5238 (adjust_markers_for_insert, adjust_point)
5239 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5240 (make_gap, copy_text, count_size_as_multibyte, insert)
5241 (insert_and_inherit, insert_before_markers)
5242 (insert_before_markers_and_inherit, insert_1)
5243 (count_combining_before, count_combining_after, insert_1_both)
5244 (insert_from_string, insert_from_string_before_markers)
5245 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5246 (insert_from_buffer_1, adjust_after_replace)
5247 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5248 (replace_range_2, del_range, del_range_1, del_range_byte)
5249 (del_range_both, del_range_2, modify_region)
5250 (prepare_to_modify_buffer, signal_before_change)
5251 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5252 for buffer positions and sizes.
5253 * lisp.h: Adjust prototypes accordingly.
5254
5255 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5256 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5257 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5258
5259 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5260
5261 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5262
5263 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5264 lines and columns so we keep the same pixel height and width.
5265
5266 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5267 the property _NET_WM_STATE has changed.
5268 (x_handle_net_wm_state): New function to update frame parameter
5269 fullscreen.
5270 (x_term_init): Initialize atoms for _NET_WM_STATE.
5271
5272 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5273
5274 2009-03-27 Kevin Ryde <user42@zip.com.au>
5275
5276 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5277 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5278 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5279 (Fgpm_mouse_stop): Pass that new parameter.
5280 * termhooks.h (close_gpm): Adjust prototype.
5281
5282 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5283
5284 * lisp.h (Fx_focus_frame): Declare.
5285
5286 * callint.c (Fcall_interactively): For '^' just delegate the work to
5287 handle-shift-selection.
5288 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5289
5290 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
5291
5292 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5293
5294 * data.c (Qinteractive_form): New variable.
5295 (Finteractive_form): Use it.
5296
5297 * eval.c (Fcommandp): Use Qinteractive_form.
5298
5299 2009-03-24 Jason Rumney <jasonr@gnu.org>
5300
5301 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5302 Calculate total size precisely. Decode environment variables
5303 before substituting. (Bug#38)
5304
5305 2009-03-24 Kenichi Handa <handa@m17n.org>
5306
5307 * font.c (find_font_encoding): Return Qnil for unsupported
5308 encoding (Bug#2722).
5309
5310 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5311
5312 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5313 that gdpy is set.
5314
5315 2009-03-22 Alan Mackenzie <acm@muc.de>
5316
5317 * callint.c (Finteractive): Clarify the doc string - even
5318 promptless elements need \n separators.
5319
5320 2009-03-22 Jason Rumney <jasonr@gnu.org>
5321
5322 * w32term.c (syms_of_w32term): Doc fix for
5323 x-use-underline-position-properties.
5324
5325 2009-03-21 Eli Zaretskii <eliz@gnu.org>
5326
5327 * w32.c (getpwuid): Change argument type to unsigned.
5328 (struct w32_id): Change type of `rid' member to unsigned.
5329 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5330 argument ID to unsigned. All callers changed.
5331 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5332
5333 2009-03-20 Eli Zaretskii <eliz@gnu.org>
5334
5335 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5336 negative, produce a float value.
5337
5338 * dired.c (make_uid, make_gid): New functions.
5339 (Ffile_attributes): Use them to avoid negative UID and GID.
5340
5341 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
5342
5343 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5344 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5345 Fix typos in docstrings.
5346
5347 2009-03-19 Kenichi Handa <handa@m17n.org>
5348
5349 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
5350 changed, use font_load_for_lface to get a new font object.
5351 Call free_realized_fontset after handling ASCII font change.
5352
5353 * frame.c (x_set_font): Handle the case that ARG is a cons.
5354
5355 2009-03-19 Glenn Morris <rgm@gnu.org>
5356
5357 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5358
5359 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
5360
5361 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5362
5363 2009-03-19 Kenichi Handa <handa@m17n.org>
5364
5365 * charset.c (load_charset_map_from_file): When a mapfile can't be
5366 loaded, signal an error.
5367
5368 2009-03-18 Eli Zaretskii <eliz@gnu.org>
5369
5370 * dired.c (Ffile_attributes): Make sure UID and GID are always
5371 positive, even if the value is too large for a positive EMACS_INT.
5372 Doc fix.
5373
5374 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5375
5376 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5377
5378 * xmenu.c (xdialog_show): Move Fredisplay call ...
5379 (Fx_popup_dialog): ... here.
5380
5381 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5382
5383 * dired.c (file_name_completion): Disable the first optimization just
5384 installed, since it is not implemented correctly.
5385
5386 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5387
5388 * dired.c (file_name_completion): Check completion-ignored-extensions
5389 only if the entry can affect bestmatch.
5390 Stop the search early, as Ftry_completion already does.
5391
5392 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
5395
5396 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
5397
5398 * keyboard.c (parse_menu_item): Don't display remappings as menu
5399 equivalent bindings (Bug#788).
5400
5401 2009-03-15 Jason Rumney <jasonr@gnu.org>
5402
5403 * w32term.h (WM_EMACS_PAINT): New message.
5404 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5405 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5406 before passing to lisp thread. (Bug#950)
5407
5408 2009-03-14 David Reitter <david.reitter@gmail.com>
5409
5410 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5411 variable as it was never reset.
5412 (ns_term_init): Remove initialization of Lisp-settable defaults
5413 and ns_expand_space.
5414 (-setPanelFromDefaultValues): Remove ns_expand_space.
5415 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5416 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
5417 i.e. no additional spacing, similar to Carbon port.
5418
5419 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5420 * nsfns.m (ns-popup-prefs-panel): Remove.
5421
5422 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5423
5424 * sound.c (alsa_configure): Remove call to deprecated
5425 snd_pcm_sw_params_set_xfer_align.
5426
5427 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
5428
5429 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5430 after clicking in a detached tool bar.
5431 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5432
5433 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5434
5435 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5436 int/Lisp_Object mixup).
5437
5438 2009-03-13 Kenichi Handa <handa@m17n.org>
5439
5440 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
5441 Handle NAME nil and t correctly. Callers changed.
5442 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5443 (set_fontset_font): Change ARG to a vector. Handle range_list in
5444 ARG correctly.
5445 (Fset_fontset_font): Fix the case that TARGET is both a script
5446 name and charset name. Adjust the arg to set_fontset_font for
5447 the above change.
5448 (fontset_from_font): Fix previous change.
5449 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
5450 entry. If FONTSET is the default fontset, don't set the extra
5451 slot of the returning char-table.
5452
5453 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
5454
5455 * nsfns.m (Fx_close_connection): Doc fix.
5456 (Fns_do_applescript): Reflow docstring.
5457 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5458 (Fx_display_pixel_width, Fx_display_pixel_height)
5459 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5460 Fix typos in docstrings.
5461 (Fns_set_alpha): Fix typos in error messages.
5462
5463 2009-03-12 David Reitter <david.reitter@gmail.com>
5464
5465 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
5466 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5467 were used for such events.
5468
5469 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5470 (toggleToolbar, performDragOperation, runHelp): Use it.
5471
5472 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
5473 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5474
5475 2009-03-11 Kenichi Handa <handa@m17n.org>
5476
5477 * font.h (font_open_by_spec): Extern it.
5478
5479 * font.c (font_open_by_spec): New function.
5480 (font_open_by_name): Use font_open_by_spec.
5481
5482 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5483 fontset of the frame.
5484
5485 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5486 modify the default font of frames that use this fontset.
5487 (num_auto_fontsets): New variable.
5488 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5489 name. Be sure to set FONTSET_ASCII to the correct font name.
5490 (update_auto_fontset_alist): New function.
5491
5492 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
5493
5494 * makefile.w32-in: Update dependencies.
5495
5496 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5497
5498 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5499
5500 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5501
5502 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5503
5504 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
5505
5506 * lread.c (Feval_buffer): Doc fix.
5507
5508 2009-03-09 Kenichi Handa <handa@m17n.org>
5509
5510 * charset.c (Qfile_name_handler_alist): Extern it.
5511 (load_charset_map_from_file): Temporarily bind
5512 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5513
5514 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
5515
5516 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5517 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
5518
5519 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5520
5521 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5522 (x_set_window_size): Change back to calculated method of setting
5523 toolbar height under Cocoa. (Bug#2546)
5524 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5525 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5526
5527 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5528
5529 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5530 accelerator in parens under GNUstep.
5531
5532 2009-03-06 Kenichi Handa <handa@m17n.org>
5533
5534 These changes are to detect incorrect composition sequence without
5535 looking ahead the source. (Bug#2370)
5536
5537 * coding.h: Include "composite.h".
5538 (enum compisition_state): New enum.
5539 (struct compisition_status): New struct.
5540 (struct iso_2022_spec): New member cmp_status.
5541 (struct emacs_mule_spec): New struct.
5542 (struct coding_system): New members ctext_extended_segment_len and
5543 embedded_utf_8. Change the union member
5544 spec.emacs_mule_full_support to spec.emacs_mule.
5545
5546 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5547 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
5548 (MAX_ANNOTATION_LENGTH): Define to 5.
5549 (ADD_COMPOSITION_DATA): New arg nbytes.
5550 (emacs_mule_char): New arg cmp_status.
5551 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5552 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5553 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5554 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5555 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5556 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5557 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5558 (EMACS_MULE_COMPOSITION_END): New macro.
5559 (emacs_mule_finish_composition): New function.
5560 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5561 (decode_coding_emacs_mule): Avoid long looking ahead while
5562 handling composition.
5563 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5564 (ENCODE_COMPOSITION_RULE): New macro.
5565 (finish_composition): New function.
5566 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5567 (DECODE_COMPOSITION_START): New implementation.
5568 (DECODE_COMPOSITION_END): Likewise.
5569 (STORE_COMPOSITION_RULE): New macro.
5570 (decode_coding_iso_2022): Avoid long looking ahead while handling
5571 composition, CTEXT extended segment, and embedded UTF-8.
5572 (setup_coding_system): For a coding of type iso-2022, reset
5573 CODING_ISO_EXTSEGMENT_LEN (coding) and
5574 CODING_ISO_EMBEDDED_UTF_8 (coding).
5575 (get_translation): Delete arguments last_block, from_nchars,
5576 to_nchars. Callers changed.
5577 (produce_chars): Don't modify charbuf. Adjusted for the change of
5578 get_translation.
5579 (produce_composition): Adjust for the new annotation sequence.
5580 (handle_composition_annotation): Likewise.
5581 (consume_chars): Adjust for the change of get_translation.
5582
5583 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5584
5585 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
5586
5587 2009-03-05 Kenichi Handa <handa@m17n.org>
5588
5589 * font.c (font_select_entity): New function.
5590 (font_find_for_lface): Use font_select_entity to select a font.
5591
5592 * fontset.c (fontset_find_font): If a font found without
5593 restricting to the characters C doesn't support C, try to find a
5594 font with C restriction.
5595
5596 2009-03-04 Nikolaj Schumacher <me@nschum.de>
5597
5598 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
5599
5600 2009-03-04 Jason Rumney <jasonr@gnu.org>
5601
5602 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
5603 characters that have already been read. (Bug#2569)
5604
5605 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5606 Log an error message if check_image_size failed.
5607 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
5608 (gs_load): Mention max-image-size in size error message. (Bug#2560)
5609
5610 2009-03-02 Eli Zaretskii <eliz@gnu.org>
5611
5612 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5613 when decoding process output.
5614
5615 2009-03-01 Richard M Stallman <rms@gnu.org>
5616
5617 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5618
5619 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5620
5621 2009-02-28 Eli Zaretskii <eliz@gnu.org>
5622
5623 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5624 (decode_coding_emacs_mule, decode_coding_iso_2022)
5625 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5626 (decode_coding_raw_text, decode_coding_charset)
5627 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5628 Honor inhibit-eol-conversion. (Bug #2186)
5629
5630 2009-02-28 Jason Rumney <jasonr@gnu.org>
5631
5632 * coding.c (detect_coding_charset): If not checking latin extra,
5633 fail on characters between 0x80 and 0xA0. (Bug#2354)
5634
5635 2009-02-28 Eli Zaretskii <eliz@gnu.org>
5636
5637 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
5638 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
5639
5640 2009-02-27 Glenn Morris <rgm@gnu.org>
5641
5642 * callint.c (Finteractive): Doc fix.
5643
5644 2009-02-27 Kenichi Handa <handa@m17n.org>
5645
5646 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5647
5648 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * font.c (font_style_to_value): Set value for unknown symbols to
5651 100 instead of 255.
5652 (weight_table, slant_table, width_table): Treat "unspecified" as
5653 the default value.
5654
5655 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
5656
5657 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5658
5659 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
5660
5661 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5662 error as soon as a recursive load is detected.
5663
5664 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5665
5666 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5667 before caching.
5668
5669 2009-02-24 Kenichi Handa <handa@m17n.org>
5670
5671 * fontset.c (fontset_find_font): Fix the condition for checking
5672 unavailable font.
5673
5674 2009-02-24 Glenn Morris <rgm@gnu.org>
5675
5676 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5677 whitespace that confuses documentation.
5678
5679 2009-02-23 Miles Bader <miles@gnu.org>
5680
5681 * process.c (Flist_system_processes, Fprocess_attributes)
5682 (syms_of_process): Rename `system-process-attributes' to
5683 `process-attributes'.
5684
5685 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5686
5687 * coding.h (struct coding_system): Make safe_charsets a pointer to
5688 unsigned char.
5689 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5690 being 255.
5691 (SAFE_CHARSET_P): Likewise.
5692 (setup_iso_safe_charsets): Properly setup safe_charsets.
5693 (Fdefine_coding_system_internal): Likewise.
5694 (setup_coding_system): Likewise. Remove unneeded casts.
5695 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5696 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5697 unneeded casts.
5698
5699 * insdel.c (del_range_2): Don't modify gap contents when called
5700 from decode_coding_object. (Bug#1809)
5701
5702 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
5703
5704 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5705 Qfont_object.
5706 (Ftype_of): Recognize font objects.
5707
5708 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5709
5710 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5711 moved to data.c.
5712
5713 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5714
5715 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5716 async_iconified. Based on a patch by Christian Lynbech
5717 <christian.lynbech@tieto.com>.
5718 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5719
5720 2009-02-20 Glenn Morris <rgm@gnu.org>
5721
5722 * syntax.c (Fskip_chars_forward): Fix doc typo.
5723
5724 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
5725
5726 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5727
5728 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
5729
5730 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5731
5732 2009-02-19 Kenichi Handa <handa@m17n.org>
5733
5734 * coding.c (detect_coding): Preserve coding->mode.
5735 Don't overflow coding->carryover. (Bug#2370)
5736
5737 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5738
5739 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5740
5741 2009-02-18 Kenichi Handa <handa@m17n.org>
5742
5743 * font.c (font_check_otf_features): Fix handling of `nil' element.
5744 (Ffont_spec): Describe :lang and :otf in the docstring.
5745
5746 2009-02-16 Andreas Schwab <schwab@suse.de>
5747
5748 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5749 string.
5750
5751 2009-02-16 Kenichi Handa <handa@m17n.org>
5752
5753 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
5754 (Bug#1723)
5755
5756 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
5757
5758 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
5759
5760 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5761 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5762
5763 2009-02-14 Eli Zaretskii <eliz@gnu.org>
5764
5765 * msdos.c (MAX_SCREEN_BUF): New macro.
5766 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5767 Encode the entire run of glyphs sharing the same face, instead of
5768 doing that one glyph at a time (fixes a bug with displaying
5769 double-size characters).
5770
5771 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5772
5773 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5774
5775 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5776 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
5777 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
5778
5779 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
5780 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
5781
5782 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5783
5784 * keyboard.c (adjust_point_for_property): Allow stopping between two
5785 invisible areas.
5786
5787 2009-02-12 Jason Rumney <jasonr@gnu.org>
5788
5789 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5790 (add_font_entity_to_list): Call check_face_name even when family
5791 is unspecified.
5792
5793 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5794 Release DC when finished. Use NULL window to refer to desktop.
5795 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
5796
5797 * w32font.c (add_font_entity_to_list): Fix check for substituted
5798 raster fonts. (Bug#2219)
5799
5800 2009-02-12 Kenichi Handa <handa@m17n.org>
5801
5802 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5803 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5804 (autocmp_chars): Use fast_looking_at. Don't compose more
5805 characters than MAX_COMPOSITION_COMPONENTS.
5806 (find_automatic_composition): While looking forward and backward,
5807 check static composition. Fix where to stop looking forward.
5808 (composition_adjust_point): Fix checking of static composition.
5809 (Fcomposition_get_gstring): Pay attention to
5810 MAX_COMPOSITION_COMPONENTS.
5811
5812 * lisp.h (fast_looking_at): Extern it.
5813
5814 * search.c (fast_looking_at): New function.
5815
5816 * term.c (encode_terminal_code): Adjust for the change of
5817 <struct glyph>.u.cmp.to.
5818 (append_composite_glyph): Likewise.
5819
5820 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
5821 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5822 composition.
5823 (append_composite_glyph): Adjust for the change of
5824 <strcut glyph>.u.cmp.to.
5825
5826 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
5827
5828 * casetab.c (init_casetab_once):
5829 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5830 * font.c (font_update_lface):
5831 * fontset.c (Fnew_fontset):
5832 * ftfont.c (ftfont_drive_otf):
5833 * xfont.c (xfont_open):
5834 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5835
5836 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5837
5838 * fileio.c (Fwrite_region): !NILP -> CONSP.
5839
5840 2009-02-10 Andreas Schwab <schwab@suse.de>
5841
5842 * process.c (send_process): Properly relocate pointer into data
5843 when using encoded data. (Bug#2272)
5844
5845 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5846
5847 * coding.c (detect_coding_charset): Fix previous change.
5848
5849 2009-02-08 Jason Rumney <jasonr@gnu.org>
5850
5851 * w32fns.c (w32_hide_hourglass): Handle case where frame
5852 disappeared while hourglass was displayed. (Bug #2193)
5853
5854 2009-02-07 Andreas Schwab <schwab@suse.de>
5855
5856 * unexelf.c (unexec): Fix error message.
5857
5858 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5859
5860 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
5861 when modal window is active. (Bug #2152)
5862 (applicationShouldTerminate:): Remove now-unneeded while loop
5863 around NSRunAlertPanel.
5864
5865 * nsmenu.m (popupSession): New file-global variable.
5866 (pop_down_menu): End the popupSession before closing dialog.
5867 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5868 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5869 don't query NSApp for events (just sleep instead).
5870
5871 2009-02-07 Eli Zaretskii <eliz@gnu.org>
5872
5873 * coding.c (syms_of_coding) <translation-table-for-input>:
5874 Modify doc string to discourage use for character code unification.
5875
5876 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5877
5878 * atimer.c (run_timers): Update pending_atimers.
5879
5880 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
5881
5882 * image.c (svg_load_image): Fix last change.
5883
5884 * xfns.c (Fx_create_frame): Signal an error if no font is
5885 found (Bug#2147).
5886
5887 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
5888
5889 * character.c (syms_of_character) <script-representative-chars>:
5890 Fix typo in docstring.
5891
5892 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5893
5894 * nsmenu.m (pop_down_menu): New function.
5895 (ns_popup_dialog): Call it on unwind.
5896 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5897 call timer_check() (Bug#2154).
5898 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5899 handling_signal is set.
5900 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5901
5902 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
5903
5904 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5905
5906 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5907
5908 * keyboard.c (poll_for_input_1, handle_async_input):
5909 Set handling_signal under HAVE_NS.
5910
5911 2009-02-04 Glenn Morris <rgm@gnu.org>
5912
5913 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5914
5915 2009-02-04 Kenichi Handa <handa@m17n.org>
5916
5917 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5918
5919 * charset.c (Fchar_charset): New optional arg restriction.
5920
5921 * coding.h (coding_system_charset_list): Extern it.
5922
5923 * coding.c (coding_system_charset_list): New function.
5924
5925 * composite.c: Include coding.h and termhooks.h.
5926 (composition_gstring_p): Fix for the terminal case.
5927 (composition_gstring_width): Likewise.
5928 (fill_gstring_body): Likewise.
5929 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5930 the frame.
5931 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5932 is within a composition.
5933 (Fcomposition_get_gstring): Fix the terminal case.
5934
5935 * term.c (encode_terminal_code): Fix handling of composition.
5936 (produce_composite_glyph): For static composition, get pixel_width
5937 from struct composition.
5938
5939 2009-02-02 Andreas Schwab <schwab@suse.de>
5940
5941 * unexelf.c (unexec): Handle unaligned bss offset.
5942
5943 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5944
5945 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5946 XT,w32read_socket changes to ns_read_socket.
5947
5948 * keyboard.c (handle_interrupt): Don't call
5949 quit_throw_to_read_char() under NS.
5950
5951 * blockinput.h: Remove NS-specific code.
5952
5953 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5954
5955 * dispnew.c (window_change_signal): Don't try to get the size of a
5956 suspended tty frame.
5957 * term.c (Fresume_tty): Resize if the size has changed while the
5958 tty was suspended.
5959
5960 * alloc.c (mark_stack): Properly conditionalize previous change.
5961
5962 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5963
5964 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5965 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5966 Remove; this code is not used on Windows.
5967
5968 2009-01-30 Eli Zaretskii <eliz@gnu.org>
5969
5970 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5971 EOLs that also has stray ^M characters.
5972
5973 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5974
5975 * atimer.c (run_timers, alarm_signal_handler):
5976 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5977 * w32inevt.c (w32_console_read_socket):
5978 * w32term.c (w32_read_socket):
5979 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5980
5981 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5984 Initialize it as a relative filename pattern.
5985 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5986 (Fcall_process_region): Simplify temp file creation using
5987 temporary-file-directory.
5988
5989 2009-01-29 Eli Zaretskii <eliz@gnu.org>
5990
5991 * msdos.c: Rename pending_signals to msdos_pending_signals.
5992 (sig_suspender, sigprocmask): Adjust.
5993
5994 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
5995
5996 * keyboard.c (pending_signals): New var.
5997 (poll_for_input, input_available_signal, init_keyboard): Set it.
5998 (process_pending_signals): New function.
5999
6000 * lisp.h (QUIT): Check pending_signals instead of
6001 interrupt_input_pending. Use process_pending_signals.
6002
6003 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6004
6005 * process.c (wait_reading_process_output): Use process_pending_signals.
6006
6007 * sysdep.c (emacs_write): Use process_pending_signals.
6008
6009 * xterm.c (XTread_socket): Update pending_signals.
6010
6011 * w32term.c (w32_read_socket): Update pending_signals.
6012
6013 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6014
6015 2009-01-29 Kenichi Handa <handa@m17n.org>
6016
6017 * xftfont.c (xftfont_has_char): New function.
6018 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6019
6020 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6021
6022 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6023 under GNUstep.
6024 (ns_query_color): New declaration.
6025
6026 * nsterm.m (ns_confirm_quit): New variable.
6027 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6028 (EmacsApp-applicationShouldTerminate:): Use it.
6029 (EmacsPrefsController): Let user set it.
6030 (ns_query_color): New function.
6031 (ns_defined_color): Use it.
6032 (ns_initialize): Drop.
6033 (ns_term_init): Add two lines from ns_initialize(), and set
6034 input_interrupt_mode to nil.
6035
6036 * image.c (svg_load_image): Don't right-shift background RGB when
6037 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6038
6039 2009-01-28 Kenichi Handa <handa@m17n.org>
6040
6041 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6042 (fontset_get_font_group): Remember that no font-group is specified
6043 for C.
6044
6045 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
6046
6047 * fns.c (concat): Check for string overflow (bug#1787).
6048
6049 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6050 Quadruple undo limits (bug#1501).
6051
6052 2009-01-27 Kenichi Handa <handa@m17n.org>
6053
6054 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6055 directly use GT_Get_Char_index.
6056
6057 * xftfont.c (struct xftfont_info): New member `index'.
6058
6059 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6060 (Ffontset_font): Adjust for the change of fontset entry.
6061
6062 2009-01-26 Kenichi Handa <handa@m17n.org>
6063
6064 * fontset.c (fontset_find_font): Fix handling of non-cons return
6065 value of fontset_get_font_group.
6066 (fontset_font): Revert last change.
6067
6068 2009-01-26 Jason Rumney <jasonr@gnu.org>
6069
6070 * w32font.c (w32font_list_internal): Return quickly if registry is
6071 unknown. Simplify final return.
6072 (add_font_entity_to_list): Break complex logic down into more
6073 manageable chunks. Move unknown registry check to
6074 w32font_list_internal.
6075
6076 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6077
6078 Changes to remove Feval calls from GUI under NS.
6079
6080 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6081 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6082 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6083
6084 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6085 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6086 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6087 instead of NON_ASCII_KEYSTROKE_EVENT.
6088 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6089 (EmacsApp-applicationShouldTerminate:): Query user.
6090 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6091 instead of Feval.
6092
6093 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6094
6095 * keyboard.c (kbd_buffer_get_event): Check for it.
6096 (keys_of_keyboard): Define lispy keys for
6097 ns-put/unput-working-text.
6098
6099 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6100 versions.
6101 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6102
6103 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6106 setting current_buffer directly. (Bug#2044)
6107
6108 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
6109
6110 * fontset.c (fontset_font): If we know there is no font, don't do
6111 any work. (Bug#1952, bug#1990).
6112
6113 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6114
6115 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6116
6117 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6118 (ns_no_defaults): New declaration.
6119 (main): Use it.
6120
6121 * nsterm.h (ns_no_defaults): New declaration.
6122
6123 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6124
6125 * nsterm.m (ns_no_defaults): New variable.
6126 (ns_initialize): Don't read defaults when ns_no_defaults.
6127 (EmacsView-readSelectionFromPasteboard:)
6128 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6129 NSServicesRequests protocol. (Bug#1435)
6130 (ns_dumpglyphs_stretch): New function.
6131 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6132 of 2008-11-15 to other terms. (Bug#615)
6133
6134 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6135
6136 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6137
6138 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6139 call for Sparc64.
6140
6141 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6142
6143 * nsfns.m:
6144 * nsgui.h:
6145 * nsmenu.m:
6146 * nsselect.m:
6147 * nsterm.h:
6148 * nsterm.m: Remove '23' comments that indicated code added during
6149 update from emacs-20 -> emacs-23.
6150
6151 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6152
6153 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6154 ns_alternate_modifier. (Bug#1217)
6155
6156 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6157 Display all shortcuts, including those w/o super modifier.
6158
6159 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6160
6161 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
6162
6163 * fileio.c (Vwrite_region_post_annotation_function)
6164 (Vwrite_region_annotation_buffers): New vars.
6165 (build_annotations_unwind): Just reset
6166 Vwrite_region_annotation_buffers.
6167 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6168 Call write-region-post-annotation-function.
6169 (build_annotations): Add to Vwrite_region_annotation_buffers if
6170 buffer changes.
6171
6172 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6173
6174 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6175 Tiger.
6176 * nsfns.m (ns_do_applescript):
6177 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6178
6179 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6180
6181 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6182
6183 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6184
6185 * nsmenu.m (NSMENUPROFILE): Change #if style.
6186
6187 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6188
6189 * nsterm.m (x_set_frame_alpha): Add prototype.
6190 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6191 handle Ctrl-tab. (Bug#1841)
6192 (ns_get_color): Use unsigned long long for scanned hex string value.
6193 (ns_term_shutdown): Abort on non SIGTERM signals.
6194 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6195 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6196 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6197 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6198 (ns_defined_color): Fix settings of the XColor variable fields:
6199 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6200
6201 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6202 DPI. (Bug#1316)
6203 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6204 values in onTiger section.
6205
6206 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
6207
6208 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6209 Check return value of font_spec_from_name.
6210 (Fx_list_fonts): Doc fix. (Bug#1951)
6211
6212 * font.c (font_spec_from_name): Return Qnil if font name could not
6213 be parsed.
6214 (font_parse_name): Treat a `?' character as part of an XLFD.
6215
6216 * fns.c (Fsubstring): Doc fix.
6217
6218 2009-01-19 Kenichi Handa <handa@m17n.org>
6219
6220 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6221 (ftfont_list): Likewise.
6222
6223 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
6224
6225 * dbusbind.c (Fdbus_register_signal):
6226 * process.c (conv_sockaddr_to_lisp):
6227 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6228
6229 * callproc.c (Fgetenv_internal): Doc fix.
6230
6231 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
6232
6233 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6234 it is not even used.
6235
6236 2009-01-16 Glenn Morris <rgm@gnu.org>
6237
6238 * font.c (Ffont_variation_glyphs): Silence compiler.
6239
6240 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
6241
6242 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6243 Reported by David Robinow <drobinow@gmail.com>.
6244
6245 2009-01-15 Kenichi Handa <handa@m17n.org>
6246
6247 * coding.c (detect_coding_system): Fix handling of null_byte_found.
6248
6249 2009-01-14 Jason Rumney <jasonr@gnu.org>
6250
6251 * frame.c (x_set_font): Always store a font to the font parameter,
6252 never a fontset. (Bug#1562)
6253
6254 2009-01-14 Kenichi Handa <handa@m17n.org>
6255
6256 * coding.c (TWO_MORE_BYTES): New macro.
6257 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
6258
6259 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
6260
6261 * font.c (font_clear_prop): If clearing the family, clear the font
6262 width index too.
6263
6264 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
6265
6266 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
6267
6268 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6269 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6270 functions, use sizeof.
6271
6272 2009-01-12 Martin Rudalics <rudalics@gmx.at>
6273
6274 * keyboard.c (read_char): Fix case where last_nonmenu_event
6275 returned a bad value with submenus. (Bug#447)
6276
6277 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
6278
6279 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6280 family, clear the font width index too.
6281
6282 2009-01-11 Jason Rumney <jasonr@gnu.org>
6283
6284 * keyboard.c (cmd_error_internal): Exit when errors occur before
6285 frame creation and not in daemon mode. (Bug#1836)
6286
6287 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6290 of a display vector, backtrack.
6291 (try_window_reusing_current_matrix): Check glyph type before
6292 referencing charpos member.
6293
6294 2009-01-10 Eli Zaretskii <eliz@gnu.org>
6295
6296 Fix Bug #876:
6297
6298 * coding.c (inhibit_null_byte_detection): New variable.
6299 (detect_coding, detect_coding_system): Don't pay attention to null
6300 bytes if inhibit_null_byte_detection is non-zero.
6301 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
6302 <inhibit-iso-escape-detection>: Doc fix.
6303
6304 2009-01-09 Jason Rumney <jasonr@gnu.org>
6305
6306 * w32font.c (add_font_entity_to_list): Don't report unknown
6307 Windows charset as any unrecognized registry. (Bug#1548)
6308 Only report Unicode Plane 2 fonts as unicode-sip.
6309
6310 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
6311
6312 * xfaces.c (Fx_font_family_list): Delete function.
6313 Move compatibility version to faces.el.
6314
6315 * font.c (Ffont_family_list): Return a list of strings, not symbols.
6316
6317 2009-01-09 Martin Rudalics <rudalics@gmx.at>
6318
6319 * frame.c (x_set_frame_parameters): Remember requested value for
6320 fullscreen before it's reset by the parameter handler.
6321
6322 2009-01-09 Glenn Morris <rgm@gnu.org>
6323
6324 * keyboard.c (last_command_char): For clarity, rename to...
6325 (last_command_event): ... and update all users.
6326 (last_input_char): For clarity, rename to...
6327 (last_input_event): ... and update all users.
6328 (last-command-char, last-input-char): Move to subr.el as aliases.
6329 * cmds.c, commands.h: Update for last_command_char rename.
6330
6331 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
6332
6333 * font.c (font_open_for_lface): Handle unspecified height attribute.
6334
6335 2009-01-08 Jason Rumney <jasonr@gnu.org>
6336
6337 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6338 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6339 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6340 Don't declare.
6341 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
6342 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6343
6344 2009-01-07 Kenichi Handa <handa@m17n.org>
6345
6346 * fileio.c (Finsert_file_contents): In the case of replace,
6347 remember the coding system used for decoding in
6348 coding_system (Bug#1039).
6349
6350 * coding.c (decode_coding_utf_8): Check byte_after_cr before
6351 breaking the loop. (Bug#870)
6352 (decode_coding_utf_16, decode_coding_emacs_mule)
6353 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6354 (decode_coding_charset): Likewise.
6355
6356 2009-01-05 Martin Rudalics <rudalics@gmx.at>
6357
6358 * frame.c (x_set_frame_parameters): Make sure height (width) get
6359 applied when fullwidth (fullheight) is set. (Bug#1522)
6360
6361 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
6362
6363 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6364 (utc_base): Declare as ULONGLONG, not long double.
6365 (convert_time_raw): Delete.
6366 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6367 (initialize_utc_base): New function.
6368 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6369 (convert_from_time_t): Use initialize_utc_base; compute result with
6370 64-bit arithmetic.
6371 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6372
6373 2009-01-03 Eli Zaretskii <eliz@gnu.org>
6374
6375 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
6376 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6377 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6378 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6379 [!subprocesses]: Define.
6380 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6381 (Flist_system_processes, Fsystem_process_attributes)
6382 [!subprocesses]: Call list_system_processes and
6383 system_process_attributes instead of returning Qnil.
6384
6385 * dosfns.c (system_process_attributes, list_system_processes):
6386 New functions.
6387
6388 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6389
6390 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6391 Don't use the default (no-op) implementation.
6392
6393 2009-01-03 Jason Rumney <jasonr@gnu.org>
6394
6395 * keyboard.c (parse_modifiers_uncached): Wheel events are
6396 clicks (bug#687).
6397
6398 * w32term.c (x_query_colors, x_query_color): New functions.
6399
6400 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6401 (svg_load_image): Cast returned pointers from dynamically loaded
6402 functions. Eliminate W32 specific code.
6403
6404 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6405
6406 * nsfns.m (x_set_foreground_color, x_set_background_color)
6407 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6408 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6409 x_ prefix instead of ns_. Update references.
6410 (syms_of_nsfns): Add a FIXME comment.
6411
6412 * nsterm.m (x_set_cursor_type): New prototype.
6413 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6414
6415 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6416 for Solaris instead of incorrectly providing Qutime and Qcutime.
6417
6418 2009-01-02 Eli Zaretskii <eliz@gnu.org>
6419
6420 * w32.c (process_times): Compute sum of utime and stime.
6421 (system_process_attributes): Add Qtime to the alist.
6422
6423 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6424 and add them to the alist.
6425
6426 * process.c (top level) <Qtime, Qctime>: New variables.
6427 (syms_of_process): staticpro them.
6428 (Fsystem_process_attributes): Add their documentation to the doc
6429 string.
6430
6431 * process.h: Declare Qtime and Qctime.
6432
6433 2009-01-02 Jason Rumney <jasonr@gnu.org>
6434
6435 * image.c (Qgobject): New symbol.
6436 (syms_of_image): Initialize it.
6437 (init_svg_functions): Load some functions from gobject library.
6438
6439 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6440
6441 * frame.c (make_terminal_frame): Remove redundant code and useless
6442 block.
6443
6444 2009-01-01 Andreas Schwab <schwab@suse.de>
6445
6446 * process.c (conv_sockaddr_to_lisp): Add workaround for
6447 getsockname bug on BSD.
6448
6449 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * xfns.c (x_create_tip_frame): Set border width of the X window.
6452
6453 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
6454
6455 2009-01-01 Jason Rumney <jasonr@gnu.org>
6456
6457 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
6458 Don't block input, as per earlier xterm.c changes.
6459
6460 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6461
6462 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6463 (ns_appkit_version_int): New function.
6464 (x-server-version): Use ns_appkit_version_int and follow 21+
6465 convention of returning 3 integers.
6466
6467 2008-12-30 Kenichi Handa <handa@m17n.org>
6468
6469 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6470 (CHAR_SURROGATE_PAIR_P): New macro.
6471
6472 * font.h (struct font_driver): New member get_variation_glyphs.
6473
6474 * font.c (font_range): Don't require a font for a variation selector.
6475 (Ffont_variation_glyphs): New function.
6476 (syms_of_font): Defsubr it.
6477
6478 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6479 ftfont_variation_glyphs.
6480 (setup_otf_gstring): New function.
6481 (ftfont_drive_otf): Use it.
6482 (ftfont_shape_by_flt): Handle variation selector.
6483 (ftfont_variation_glyphs): New function.
6484
6485 2008-12-30 Martin Rudalics <rudalics@gmx.at>
6486
6487 * frame.c (Vemacs_iconified): Remove.
6488
6489 2008-12-30 Jason Rumney <jasonr@gnu.org>
6490
6491 * frame.c (store_frame_param, x_get_arg): Enable newer code on
6492 WINDOWSNT too, as related changes have already been synced. (Bug#117)
6493
6494 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
6495
6496 * indent.c (Fvertical_motion): Don't advance iterator if we have
6497 reseated to the desired position.
6498
6499 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6500 checking for pos match.
6501
6502 2008-12-30 Kenichi Handa <handa@m17n.org>
6503
6504 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6505 just get the low 8-bit of the code.
6506
6507 * font.c (font_intern_prop): Validate str as multibyte.
6508
6509 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6510
6511 * dispextern.h (struct face): Move lface and hash from the middle
6512 of bitfields.
6513
6514 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6515
6516 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6517
6518 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6519 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6520 instead of intervals.h.
6521
6522 2008-12-26 Andreas Schwab <schwab@suse.de>
6523
6524 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6525 cons.
6526
6527 2008-12-26 Martin Rudalics <rudalics@gmx.at>
6528
6529 * textprop.c (Qminibuffer_prompt): New variable.
6530 (syms_of_textprop): Initialize it.
6531 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6532 in minibuffer-prompt face. (Bug#1662)
6533
6534 2008-12-25 Jason Rumney <jasonr@gnu.org>
6535
6536 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6537
6538 2008-12-24 Jason Rumney <jasonr@gnu.org>
6539
6540 * ralloc.c (r_alloc_reset_variable): New function.
6541
6542 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
6543 record of what points where. (Bug#716)
6544
6545 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6546
6547 * minibuf.c (read_minibuf): Follow the non-interactive case when
6548 running as a daemon, before detaching.
6549
6550 2008-12-22 Andreas Schwab <schwab@suse.de>
6551
6552 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6553 * gtkutil.c (free_widget_value): Use xfree instead of free.
6554
6555 2008-12-22 Martin Rudalics <rudalics@gmx.at>
6556
6557 * frame.c (delete_frame): New function derived from
6558 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6559 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6560 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6561 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6562 * frame.h: Extern delete_frame.
6563 * window.c (window_loop):
6564 * terminal.c (delete_terminal):
6565 * xterm.c (x_connection_closed):
6566 * xfns.c (Fx_hide_tip):
6567 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
6568
6569 2008-12-21 Jason Rumney <jasonr@gnu.org>
6570
6571 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6572 when character maps to .notdef character.
6573
6574 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6575
6576 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6577
6578 2008-12-20 Jason Rumney <jasonr@gnu.org>
6579
6580 * frame.c (Fmake_terminal_frame): Raise an error when called from
6581 a graphical frame on Windows. (Bug#1325)
6582
6583 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6584
6585 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6586
6587 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
6588
6589 * minibuf.c (Fread_buffer): Doc fix.
6590
6591 2008-12-20 Jason Rumney <jasonr@gnu.org>
6592
6593 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
6594 server name in UNC paths. (Bug#719)
6595
6596 * coding.c (decode_coding): Clear chars_at_source flag when using
6597 charbuf. (Bug#1035)
6598
6599 2008-12-19 Daniel Engeler <engeler@gmail.com>
6600
6601 * sysdep.c (serial_configure): Fix typo.
6602
6603 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6604
6605 * sysdep.c: Include alloca.h.
6606 (system_process_attributes): Add implementation for Solaris.
6607
6608 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
6609
6610 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6611
6612 Reorganize implementation of Flist_system_processes and
6613 Fsystem_process_attributes. No functional changes.
6614 * process.c: Don't #include pwd.h, grp.h and limits.h.
6615 (Flist_system_processes): Just call list_system_processes.
6616 (Fsystem_process_attributes): Just call system_process_attributes.
6617 (procfs_list_system_processes, time_from_jiffies)
6618 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6619 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6620
6621 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6622 (list_system_processes): Rename from
6623 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6624 Provide a do nothing implementation.
6625 (system_process_attributes): Rename from
6626 procfs_list_system_processes.
6627 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6628 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
6629
6630 * w32.c (list_system_processes): Rename from
6631 w32_list_system_processes.
6632 (system_process_attributes): Rename from
6633 w32_system_process_attributes.
6634
6635 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6636
6637 * process.h (w32_list_system_processes)
6638 (w32_system_process_attributes): Remove.
6639 (list_system_processes, system_process_attributes):
6640 New prototypes.
6641
6642 2008-12-19 Kenichi Handa <handa@m17n.org>
6643
6644 * xfont.c (xfont_decode_coding_xlfd): New function.
6645 (xfont_encode_coding_xlfd): New function.
6646 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6647 (xfont_list): Decode and encode XLFD by iso-8859-1.
6648 (xfont_match): Likewise.
6649 (xfont_list_family): Likewise.
6650 (xfont_open): Likewise.
6651
6652 * ftfont.c (ftfont_open): Generate a multibyte string if given
6653 names are utf-8.
6654
6655 * xftfont.c (xftfont_open): Generate a multibyte string if given
6656 names are utf-8.
6657
6658 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6659
6660 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6661 changed.
6662 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6663 clicked on a detached tool bar button.
6664
6665 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6666
6667 * emacs.c (main): Print and error and exit when no data is read
6668 from the pipe.
6669
6670 2008-12-17 Jason Rumney <jasonr@gnu.org>
6671
6672 * w32font.c (w32font_has_char): Always return -1.
6673
6674 2008-12-16 Kenichi Handa <handa@m17n.org>
6675
6676 * font.c (font_open_entity): Fix previous change.
6677
6678 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6679
6680 * process.c: Include <limits.h>.
6681
6682 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
6683
6684 * font.c (font_update_drivers): Fix mistake in reconstructing the
6685 driver list.
6686
6687 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
6688
6689 * font.c (font_clear_cache): Fix format of font cache data.
6690
6691 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
6692
6693 * xftfont.c (xftfont_open): Free Xft font pattern if
6694 XftFontOpenPattern fails.
6695
6696 * xterm.c (x_free_frame_resources): Remove extraneous call to
6697 free_frame_faces.
6698
6699 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6700
6701 * xterm.c (x_delete_display): Move xim_close_dpy call to
6702 x_delete_terminal.
6703 (x_delete_terminal): Call xim_close_dpy.
6704
6705 2008-12-13 Jason Rumney <jasonr@gnu.org>
6706
6707 * w32font.c (intern_font_name): New function.
6708 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6709 (w32font_open_internal, Fx_select_font): Decode font name.
6710 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6711
6712 * w32font.h (intern_font_name): Declare new function.
6713
6714 * w32uniscribe.c (add_opentype_font_name_to_list):
6715 Use intern_font_name.
6716
6717 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6718
6719 * frame.c (Fdelete_frame): Call free_font_driver_list.
6720
6721 * font.c (free_font_driver_list): Implement missing function.
6722
6723 * w32term.c (w32_term_init): Don't initialize the image cache
6724 here; it will be done in init_frame_faces.
6725
6726 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6727 (struct x_display_info): Remove unused member null_pixel. New
6728 member xim_callback_data.
6729
6730 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6731 (xim_initialize): Save pointer to callback function data.
6732 (xim_close_dpy): Free callback function data. Call XCloseIM,
6733 reverting 2008-11-04 change by David Smith.
6734 (x_term_init): Don't initialize the image cache here; it will be
6735 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6736 (x_delete_display): Free x_dnd_atoms member.
6737
6738 2008-12-13 Kenichi Handa <handa@m17n.org>
6739
6740 * font.c (font_rescale_ratio): Moved from xfaces.c.
6741 Argument type changed. Handle a font-spec too.
6742 (font_score): Check Vface_font_rescale_alist.
6743 (font_open_entity): Likewise. (Bug#1547)
6744
6745 * xfaces.c (font_rescale_ratio): Moved to font.c.
6746
6747 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6748
6749 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6750
6751 2008-12-12 Jason Rumney <jasonr@gnu.org>
6752
6753 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6754 Vwindow_system_version to the real w32 major version.
6755
6756 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6757
6758 * term.c (init_tty): Move setting the terminal name before the
6759 potential user: maybe_fatal.
6760
6761 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
6762
6763 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6764 all callers changed. Call free_frame_faces to free the face cache.
6765
6766 2008-12-11 Jason Rumney <jasonr@gnu.org>
6767
6768 * w32font.c (fill_in_logfont): Don't assume symbol script means
6769 SYMBOL_CHARSET. (Bug#547)
6770
6771 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
6772 size for surrogates. (Bug#1096, bug#872)
6773
6774 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6775
6776 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6777
6778 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6779
6780 * process.c (Fsystem_process_attributes, syms_of_process):
6781 Fix typo in name of Ssystem_process_attributes.
6782 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6783
6784 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6785
6786 * syntax.c (Fmodify_syntax_entry): Doc fix.
6787
6788 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6789
6790 * font.c (Ffont_spec): Move usage to end of docstring.
6791
6792 2008-12-10 Jason Rumney <jasonr@gnu.org>
6793
6794 * w32font.c (Qcham): New symbol.
6795 (font_supported_scripts): Add cham, and comments for other new
6796 scripts in bitfield from OpenType spec.
6797 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6798 contain characters beyond the bmp.
6799
6800 2008-12-10 Kenichi Handa <handa@m17n.org>
6801
6802 * ftfont.c (fc_charset_table): Add "unicode-sip".
6803 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
6804 Qunicode_sip.
6805
6806 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6807
6808 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6809 (Fcoding_system_put): Use QCdefault_char.
6810 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6811
6812 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
6813
6814 * xftfont.c (syms_of_xftfont): Fix typo.
6815
6816 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
6817
6818 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6819
6820 * emacs.c (main): Close daemon_pipe on exec.
6821
6822 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
6823
6824 * termchar.h (struct tty): New members termcap_term_buffer and
6825 termcap_strings_buffer.
6826
6827 * term.c (encode_terminal_code): Free any previous memory blocks
6828 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
6829 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6830 All callers changed.
6831 (init_tty): Store termcap data and string buffers in new struct
6832 tty members termcap_term_buffer and termcap_strings_buffer.
6833 (delete_tty): Free them.
6834 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
6835
6836 2008-12-07 Seiji Zenitani <zenitani@mac.com>
6837
6838 * nsfns.m (ns_set_background_color): Remove code duplication.
6839 It was a substitute for face-transparency on OS X 10.3.
6840
6841 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
6842
6843 * coding.c (make_conversion_work_buffer): Disable buffer
6844 modification hooks in the work buffer.
6845
6846 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6847
6848 * process.c (procfs_system_process_attributes): If `nread' has a
6849 negative value, assign zero to it.
6850
6851 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
6852
6853 * eval.c (Vdebug_on_error): Doc fix.
6854
6855 2008-12-05 Kenichi Handa <handa@m17n.org>
6856
6857 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6858 second character is a combining character.
6859
6860 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6861
6862 * process.c (procfs_system_process_attributes): Don't use cmd,
6863 cmdsize, and q without initializing them first.
6864
6865 2008-12-04 Jason Rumney <jasonr@gnu.org>
6866
6867 * w32font.c (w32font_draw): Initialize orig_clip before getting
6868 it, and delete it when finished.
6869
6870 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6871
6872 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6873 case when running as a daemon before detaching.
6874
6875 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
6876
6877 * w32.c (init_environment): Don't unload library shell32.dll.
6878
6879 2008-12-03 Kenichi Handa <handa@m17n.org>
6880
6881 * font.c (font_at): Set `multibyte' at first.
6882
6883 * coding.c (decode_coding_charset): Check type of an element of
6884 vector VALIDS.
6885 (encode_coding_emacs_mule): Be sure to set `code'.
6886
6887 * fontset.c (face_for_char): Handle invalid charset property correctly.
6888 (font_for_char): Likewise.
6889
6890 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
6891
6892 * font.c (Fopen_font): Compute pixel size correctly.
6893 (font_update_lface): Handle fonts with corrupted size specs,
6894 i.e. non-int and non-float.
6895
6896 * ftfont.c (ftfont_match): Initialize entity variable.
6897 (ftfont_resolve_generic_family): Avoid using uninitialized var.
6898 (ftfont_list_family): Initialize list var earlier.
6899
6900 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6901
6902 * xterm.c (x_draw_glyph_string): Fall back on
6903 underline_minimum_offset for underline position.
6904
6905 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6906
6907 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6908
6909 * character.c (c_string_width): Specify the type for LEN.
6910
6911 2008-12-03 Kenichi Handa <handa@m17n.org>
6912
6913 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
6914 (decode_coding_utf_8): Likewise.
6915 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
6916 (produce_chars): Initialize consumed_chars to 0.
6917
6918 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6919
6920 * keyboard.c (make_lispy_position): Only use PT if the selected
6921 window is current.
6922
6923 2008-12-02 Andreas Schwab <schwab@suse.de>
6924
6925 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6926
6927 * doprnt.c (doprnt1): Fix size of charbuf.
6928
6929 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6930
6931 * keyboard.c (timer_check): Revert last change.
6932
6933 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
6934
6935 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6936
6937 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
6938
6939 * makefile.w32-in: Update dependencies.
6940 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6941
6942 2008-12-01 Andreas Schwab <schwab@suse.de>
6943
6944 * font.c (register_font_driver): Use xmalloc.
6945 (font_put_frame_data): Likewise.
6946
6947 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
6948
6949 * xfaces.c (realize_x_face): Make abort condition clearer.
6950
6951 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6952
6953 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
6954
6955 * keyboard.c (timer_check): After a timer runs, ensure that the
6956 selected window's buffer is current.
6957
6958 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
6959
6960 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6961 It was accidentally restored by the Unicode merge.
6962
6963 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6964
6965 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
6966
6967 * w32proc.c: Include "coding.h".
6968 (Fw32_short_file_name): Encode filename passed to Windows API.
6969 (Fw32_long_file_name): Encode filename passed to Windows API and
6970 decode back the result. (Bug#1433)
6971
6972 2008-11-29 Kenichi Handa <handa@m17n.org>
6973
6974 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6975 not before accessing it.
6976
6977 * charset.c (Fdefine_charset_internal): After calculating
6978 min_char, max_char, and fastmap, copy the charset structure again.
6979 (encode_char): Fix the previous change.
6980
6981 2008-11-28 Seiji Zenitani <zenitani@mac.com>
6982
6983 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6984
6985 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6986
6987 * nsterm.m (x_set_frame_alpha): New function.
6988
6989 2008-11-27 Eli Zaretskii <eliz@gnu.org>
6990
6991 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6992
6993 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
6994
6995 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6996 pointer to check_face_name.
6997
6998 2008-11-27 Kenichi Handa <handa@m17n.org>
6999
7000 * category.h (SET_CATEGORY_SET): Call set_category_set.
7001 (set_category_set): Extern it.
7002
7003 * category.c (hash_get_category_set): New function.
7004 (Fmodify_category_entry): Adjusted for the change of
7005 char_table_ref_and_range. Call hash_get_category_set to get a
7006 category set to store in the table.
7007
7008 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7009 Funify_charset.
7010
7011 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7012 (DECODE_CHAR): Check if the decoder vector is ready.
7013 (ENCODE_CHAR): Check if the encoder char-table is ready.
7014 (maybe_unify_char): Extern it.
7015
7016 * charset.c (Vchar_unified_charset_table): Delete it.
7017 (inhibit_load_charset_map): New variable.
7018 (temp_charset_work): New variable.
7019 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7020 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7021 New macros.
7022 (load_charset_map): Meaning of control_flag changed. If
7023 inhibit_load_charset_map is nonzero, setup a table in
7024 temp_charset_work.
7025 (load_charset): New argument control_flag.
7026 (map_charset_for_dump): New function.
7027 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7028 map_charset_for_dump.
7029 (Fdefine_charset_internal): If the charset method is MAP, load
7030 mapping tables by calling load_charset.
7031 (Funify_charset): Don't load a mapping table but directly set
7032 Vchar_unify_table.
7033 (maybe_unify_char): New function.
7034 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7035 Handle the case of inhibit_load_charset_map being nonzero.
7036 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7037 Handle the case of inhibit_load_charset_map being nonzero.
7038 (Fclear_charset_maps): Just free temp_charset_work.
7039 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7040 variable.
7041
7042 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7043 change of char_table_ref_and_range.
7044 (char_table_ref_and_range): Change the meaning of argument FROM
7045 and TO. Now the caller must provide initial values for *FROM
7046 and *TO.
7047
7048 * fontset.c (fontset_add): Adjusted for the change of
7049 char_table_ref_and_range.
7050 (fontset_get_font_group): Likewise.
7051 (Ffontset_info): Likewise.
7052
7053 * keymap.c (describe_vector): Adjusted for the change of
7054 char_table_ref_and_range. For char-table, put boundary between
7055 non-ASCII and 8-bit characters.
7056
7057 * print.c (print_object): For bool-vector, delete unnecessary
7058 check of ASCII_BYTE_P.
7059
7060 2008-11-26 Jason Rumney <jasonr@gnu.org>
7061
7062 * w32font.c (w32font_open_internal): Don't include external
7063 leading in font height. (Bug#879)
7064
7065 2008-11-26 Glenn Morris <rgm@gnu.org>
7066
7067 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7068 redefinition with ifdef. (Bug#1383)
7069
7070 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7071
7072 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7073
7074 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7075
7076 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7077 New EmacsView methods.
7078 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7079 Fixes bug #1048,1357,1414.
7080
7081 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7082
7083 Fix bug #1362.
7084 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7085 is not an indexed color.
7086 * nsterm.m (free_indexed_color): Add argument checking.
7087 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7088
7089 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
7090
7091 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7092 Document confirm-after-completion value for
7093 minibuffer-completion-confirm.
7094
7095 2008-11-24 Jason Rumney <jasonr@gnu.org>
7096
7097 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7098 warning.
7099
7100 2008-11-23 Jason Rumney <jasonr@gnu.org>
7101
7102 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7103 restored before returning.
7104
7105 * w32font.c (check_face_name): New function.
7106 (add_font_entity_to_list): Use it to filter out common substituted
7107 fonts. (Bug#642)
7108
7109 2008-11-22 Martin Rudalics <rudalics@gmx.at>
7110
7111 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7112 confirm-nonexistent-file-or-buffer in doc-string.
7113
7114 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7115
7116 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7117 Fix copy/paste typo. Add checks.
7118
7119 2008-11-21 Kenichi Handa <handa@m17n.org>
7120
7121 * coding.c (detect_coding_iso_2022): Reject invalid composition
7122 sequence.
7123 (DECODE_COMPOSITION_START): If the current source is the last
7124 block, and the current composition doesn't end, regard this
7125 sequence as invalid.
7126 (decode_coding_iso_2022): Handle invalid composition sequence.
7127
7128 2008-11-20 Martin Rudalics <rudalics@gmx.at>
7129
7130 * window.c (coordinates_in_window): Don't return
7131 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7132 line when the window is not the rightmost one. (Bug#1372)
7133
7134 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7135
7136 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7137
7138 2008-11-15 Eli Zaretskii <eliz@gnu.org>
7139
7140 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7141 and bright_bg if noninteractive is non-zero.
7142
7143 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7144
7145 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7146 x_draw_glyph_string_background.
7147
7148 * w32term.c (x_draw_glyph_string): Likewise.
7149
7150 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
7151
7152 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7153 the next glyph string once past the overhang width.
7154
7155 * nsterm.m (ns_draw_glyph_string): Likewise.
7156
7157 * w32term.c (x_draw_glyph_string): Likewise.
7158
7159 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7160
7161 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7162 double file close.
7163
7164 2008-11-14 Martin Rudalics <rudalics@gmx.at>
7165
7166 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7167 dedicated status of window before attempting to display another
7168 buffer in it.
7169
7170 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
7171
7172 * msdos.c (Fmsdos_long_file_names):
7173 (syms_of_msdos) <dos-unsupported-char-glyph>:
7174 * dosfns.c (Fint86): Fix typos in docstrings.
7175
7176 2008-11-14 Eli Zaretskii <eliz@gnu.org>
7177
7178 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7179
7180 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7181
7182 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7183
7184 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7185
7186 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7187
7188 * frame.h: Negative alpha means "don't touch".
7189
7190 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7191
7192 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7193
7194 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7195
7196 * hftctl.c:
7197 * chpdef.h:
7198 * acldef.h: Remove files used only for systems no longer supported.
7199
7200 * Makefile.in: Fix .o alphabetical ordering.
7201 (hftctl.o): Remove dependency, file removed.
7202 (keymap.o, print.o): Depend on charset.h.
7203
7204 2008-11-10 Kenichi Handa <handa@m17n.org>
7205
7206 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7207
7208 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * dired.c (file_name_completion): If completion_ignore_case is
7211 enabled, ignore case when checking completion-regexp-list.
7212
7213 2008-11-08 Eli Zaretskii <eliz@gnu.org>
7214
7215 * vm-limit.c (get_lim_data): Fix last change.
7216
7217 2008-11-08 Kenichi Handa <handa@m17n.org>
7218
7219 * character.c (Fget_byte): New function.
7220 (syms_of_character): Defsubr Fget_byte.
7221
7222 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
7223
7224 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7225 cursor position is valid after scrolling.
7226
7227 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
7228
7229 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7230
7231 2008-11-06 Glenn Morris <rgm@gnu.org>
7232
7233 * xterm.c (handle_one_xevent): Don't let popup menus cause
7234 mouse-autoselect-window related window switching. (Bug#1261)
7235
7236 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7237
7238 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7239
7240 2008-11-04 Andreas Schwab <schwab@suse.de>
7241
7242 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7243
7244 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
7245
7246 * xfns.c (Fx_wm_set_size_hint): New function.
7247
7248 2008-11-03 Martin Rudalics <rudalics@gmx.at>
7249
7250 * textprop.c (Fprevious_single_char_property_change): Return 0
7251 when there's no change in a string. (Bug#1301)
7252
7253 2008-11-02 Martin Rudalics <rudalics@gmx.at>
7254
7255 * frame.c (do_switch_frame): New argument NORECORD passed to
7256 Fselect_window.
7257 (Fselect_frame): New argument NORECORD passed to
7258 do_switch_frame.
7259 (Fset_frame_selected_window): New argument NORECORD passed to
7260 Fselect_frame.
7261 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7262 in call of do_switch_frame.
7263 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7264 Handle NORECORD argument in call of Fselect_frame.
7265 * lisp.h (do_switch_frame, Fselect_frame)
7266 (Fset_frame_selected_window): Adjust declarations.
7267 * window.c (select_frame_norecord): New function.
7268 (run_window_configuration_change_hook): Use it and call
7269 Fselect_frame with NORECORD set.
7270 (Fselect_window): Pass NORECORD to Fselect_frame.
7271 (Fset_window_configuration): Handle NORECORD argument in call of
7272 do_switch_frame.
7273 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7274 Fset_frame_selected_window.
7275 * keyboard.c (command_loop_1): Handle NORECORD in call of
7276 Fselect_frame (currently ifdefd).
7277
7278 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7279
7280 * emacs.c (USAGE2): Untabify.
7281
7282 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7283
7284 * composite.c (fill_gstring_header): Fix copy/paste typo.
7285
7286 2008-10-31 Martin Rudalics <rudalics@gmx.at>
7287
7288 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7289 (Fother_window): Rename argument and rewrite doc-string.
7290 (select_window_norecord): Fix return value. (Bug#1276)
7291
7292 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
7293
7294 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7295 new frames overriding foreground for tooltips. Based on similar patch
7296 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7297
7298 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
7299
7300 * emacs.c (Fdaemon_initialized): Initialize nfd.
7301
7302 2008-10-29 Martin Rudalics <rudalics@gmx.at>
7303
7304 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7305 (Fwindow_text_height): Clarify doc-strings.
7306 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7307 doc-string of window-scroll-functions.
7308
7309 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7310
7311 * category.c (syms_of_category): Fix typo in docstring.
7312
7313 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
7314
7315 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7316 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7317 Fix typos in docstrings.
7318
7319 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7320
7321 * emacs.c (daemon_pipe): Make non-static.
7322 (IS_DAEMON): Move definition ...
7323 * lisp.h (IS_DAEMON): ... here.
7324 (daemon_pipe): Declare.
7325 (is_daemon): Remove.
7326 * dispnew.c (init_display): Use IS_DAEMON.
7327
7328 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7329
7330 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7331 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7332
7333 * emacs.c (is_daemon): Remove.
7334 (main): Don't set is_daemon.
7335 (IS_DAEMON): New macro.
7336 (Fdaemonp, Fdaemon_initialized): Use it.
7337 (Fdaemon_initialized): Write a char into the pipe to make sure the
7338 parent exits.
7339 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7340
7341 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
7342
7343 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7344 over-sized glyph, draw it with the default glyph width.
7345
7346 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7347 glyph, draw it with the default glyph width.
7348
7349 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7350 glyph, draw it with the default glyph width.
7351
7352 * xdisp.c (try_scrolling): When computing the distance from the
7353 scroll margin to PT, try moving some distance past the window
7354 bottom before giving up.
7355
7356 2008-10-27 Martin Rudalics <rudalics@gmx.at>
7357
7358 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7359 (Fset_window_buffer): Explain in doc-string that a window can be
7360 "strongly" dedicated to its buffer.
7361
7362 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7363
7364 * emacs.c (daemon_name): New variable.
7365 (main): Deal with --daemon=SERVER_NAME.
7366 (Fdaemonp): Return a name if one was passed to --daemon.
7367
7368 2008-10-26 Romain Francoise <romain@orebokech.com>
7369
7370 * emacs.c (daemon_pipe): New variable.
7371 (main): Create a pipe before forking, make the parent exit only after
7372 the child has closed its end of the pipe. Move closing the
7373 descriptors ...
7374 (Fdaemon_initialized): ... here. New function.
7375
7376 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7377
7378 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7379 the previous unoptimized table.
7380
7381 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7382 the distinction between non-nil and non-t value of `dedicated'.
7383
7384 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
7385
7386 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
7387 read_char_minibuf_menu_text is large enough to hold the menu string.
7388
7389 2008-10-25 Martin Rudalics <rudalics@gmx.at>
7390
7391 * window.c (Fget_buffer_window, Fdelete_windows_on)
7392 (Freplace_buffer_in_windows): Make buffer argument optional and
7393 rename to buffer_or_name.
7394
7395 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
7396
7397 * xdisp.c (handle_single_display_spec, handle_display_prop):
7398 Undo 2005-05-16 change.
7399 (handle_stop): Pop iterator if it's loaded with an empty string.
7400 (get_overlay_strings_1): Don't save iterator if it's loaded with
7401 an empty string (bug#1201).
7402
7403 2008-10-24 Kenichi Handa <handa@m17n.org>
7404
7405 * ftfont.c (ftfont_otf_features): Fix previous change.
7406 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7407 calling ftfont_otf_features.
7408
7409 2008-10-24 Kenichi Handa <handa@m17n.org>
7410
7411 * font.c (font_match_p): Fix for the case that a vector of
7412 characters is in script-representative-chars.
7413
7414 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
7415
7416 * dbusbind.c (xd_in_read_queued_messages): New variable.
7417 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
7418 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7419 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
7420 macro. (Bug#1186)
7421
7422 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
7423
7424 * s/sol2-10.h: New file.
7425
7426 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
7427
7428 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7429 poor beast has survived 9+ years and the jump from xterm.c!).
7430
7431 2008-10-23 Martin Rudalics <rudalics@gmx.at>
7432
7433 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7434 Reword doc-string.
7435 (Fbury_buffer): In doc-string say what happens to the buffer's window.
7436
7437 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
7438
7439 * character.c (syms_of_character) <script-representative-chars>:
7440 <unicode-category-table>: Doc fixes.
7441
7442 2008-10-23 Noah Friedman <friedman@splode.com>
7443
7444 * coding.c (make_conversion_work_buffer): Check that
7445 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7446 Fget_buffer_create.
7447
7448 2008-10-23 Kenichi Handa <handa@m17n.org>
7449
7450 * font.c (font_add_log): Check the values of extra properties.
7451
7452 2008-10-22 Martin Rudalics <rudalics@gmx.at>
7453
7454 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7455 Reword doc-string.
7456 (Fset_window_parameter): Use NILP.
7457 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
7458 (Frecenter): Use "selected" instead of "current" window in doc-strings.
7459
7460 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
7461
7462 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7463
7464 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7465
7466 * nsfns.m (ns_appkit_version): New function.
7467 (x-server-version): Use it.
7468 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7469 (x-server-vendor): Don't check_ns().
7470
7471 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7472
7473 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
7474
7475 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7476 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7477
7478 2008-10-22 Kenichi Handa <handa@m17n.org>
7479
7480 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7481 scripts.
7482
7483 * category.c (word_boundary_p): Check scripts instead of charset.
7484 Handle nil value in word-separating-categories and
7485 word-combining-categories.
7486 (syms_of_category): Fix docstrings of word-separating-categories
7487 and word-combining-categories.
7488
7489 2008-10-21 Eli Zaretskii <eliz@gnu.org>
7490
7491 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7492 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7493
7494 2008-10-21 Martin Rudalics <rudalics@gmx.at>
7495
7496 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7497 Rename arg "buffer" to "buffer_or_name".
7498 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7499 it optional.
7500 (no_switch_window): Remove since the return value is not used.
7501 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
7502 Consider window as dedicated when Fwindow_dedicated_p returns a
7503 non-nil value.
7504 * lisp.h: Remove prototype for no_switch_window.
7505
7506 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7507
7508 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
7509 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
7510
7511 2008-10-21 Kenichi Handa <handa@m17n.org>
7512
7513 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7514 check Vlatin_extra_code_table.
7515
7516 2008-10-20 Eli Zaretskii <eliz@gnu.org>
7517
7518 * fileio.c (Fset_file_modes): Doc fix.
7519
7520 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
7521
7522 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7523 in arrays.
7524
7525 2008-10-19 Martin Rudalics <rudalics@gmx.at>
7526
7527 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7528 Mention kill-buffer in doc-string.
7529 (Fset_window_buffer): Reinsert tem check removed in last commit.
7530 (Fenlarge_window, Fshrink_window): Have argument names and
7531 doc-string follow Elisp manual more closely.
7532
7533 2008-10-18 Eli Zaretskii <eliz@gnu.org>
7534
7535 * fileio.c (Fset_file_modes): Doc fix.
7536
7537 2008-10-18 Martin Rudalics <rudalics@gmx.at>
7538
7539 * window.c (Fwindow_width, Fset_window_start)
7540 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
7541 (Fdelete_windows_on, Freplace_buffer_in_windows):
7542 Make doc-strings follow code and Elisp manual more closely.
7543 (Fwindow_dedicated_p): Make window argument optional.
7544 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7545 (Fset_window_buffer): Respect any non-nil dedicated value for
7546 window. Rename "buffer" argument to "buffer_or_name".
7547
7548 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
7549
7550 * m/sh3.h: New file, machine description for SuperH.
7551
7552 2008-10-17 Martin Rudalics <rudalics@gmx.at>
7553
7554 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7555
7556 2008-10-17 Kenichi Handa <handa@m17n.org>
7557
7558 * ftfont.c (ftfont_otf_features): Fix indexing
7559 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7560
7561 2008-10-16 Magnus Henoch <mange@freemail.hu>
7562
7563 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7564 (Fdbus_call_method_asynchronously): Ditto.
7565 This change makes C-h f display the argument list.
7566
7567 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
7568
7569 * fileio.c (Fexpand_file_name): Doc fix.
7570
7571 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7572 of :foreground and :background equivalent to unspecified (20.x
7573 compatibility).
7574
7575 2008-10-15 Eli Zaretskii <eliz@gnu.org>
7576
7577 * buffer.c (syms_of_buffer): Doc fix.
7578
7579 2008-10-14 Kenichi Handa <handa@m17n.org>
7580
7581 * font.c (font_clear_prop): When clearing font width, clear the
7582 average width field too.
7583
7584 2008-10-12 Andreas Schwab <schwab@suse.de>
7585
7586 * ftfont.c (ftfont_shape_by_flt): Make static.
7587 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7588
7589 * font.c: Don't include <m17n-flt.h>.
7590
7591 2008-10-10 Eli Zaretskii <eliz@gnu.org>
7592
7593 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7594
7595 2008-10-09 Eli Zaretskii <eliz@gnu.org>
7596
7597 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7598 away code.
7599
7600 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
7601
7602 * dispnew.c (update_text_area): Avoid looping due to large glyph
7603 overhangs (bug#1070).
7604
7605 2008-10-09 Kenichi Handa <handa@m17n.org>
7606
7607 * fontset.c (face_for_char): If face->fontset is negative, just
7608 return ascii_face.
7609
7610 * font.c (font_delete_unmatched): Fix previous change.
7611 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
7612
7613 2008-10-09 Martin Rudalics <rudalics@gmx.at>
7614
7615 * frame.c (Fraise_frame): On text-only terminals select frame in
7616 order to make it visible. (Bug#1061)
7617
7618 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
7619
7620 * fontset.c (fontset_find_font): Check frame validity.
7621
7622 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
7623
7624 * gtkutil.c (xg_display_open): Reset default display if none exists.
7625 (xg_display_close): Allow Emacs to close all displays (bug#985).
7626
7627 2008-10-06 Andreas Schwab <schwab@suse.de>
7628
7629 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
7630
7631 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
7632
7633 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
7634
7635 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
7636
7637 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7638 during initialization.
7639
7640 2008-10-04 Eli Zaretskii <eliz@gnu.org>
7641
7642 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7643 whole thing on MSDOS frames as well as on a TTY.
7644
7645 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7646 well as for TTY.
7647 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7648 well as on a TTY.
7649
7650 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7651 as well as for TTY.
7652
7653 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7654
7655 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7656 MSDOS frames as well.
7657
7658 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7659
7660 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7661 correct arguments.
7662 * menu.c (find_and_return_menu_selection): Add cast.
7663
7664 2008-10-03 Glenn Morris <rgm@gnu.org>
7665
7666 * emacs.c (USAGE1): Add --daemon.
7667
7668 2008-10-02 Eli Zaretskii <eliz@gnu.org>
7669
7670 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7671 100, so it's in percents as advertised.
7672
7673 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7674
7675 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7676 (ns_output.current_cursor, ns_output.desired_cursor)
7677 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7678 (FRAME_NEW_CURSOR_COLOR): Remove.
7679
7680 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
7681 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
7682 enumeration (HOLLOW_BOX_CURSOR, etc.).
7683
7684 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7685 (draw_window_cursor): Simplify code.
7686 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7687 Don't change cursor type. In latter, call rehighlight instead of doing
7688 updates manually.
7689 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7690 Use core Emacs cursor types.
7691
7692 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
7693
7694 2008-10-02 Martin Rudalics <rudalics@gmx.at>
7695
7696 * process.c (Faccept_process_output): Fix doc-string.
7697
7698 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7699
7700 * gmalloc.c (__sbrk): Also define for uClibc.
7701
7702 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7703 for uClibc.
7704
7705 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7706
7707 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7708 styles.
7709 (nsfont_open): Reenable the cache.
7710
7711 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7712
7713 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7714 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7715
7716 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7717
7718 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7719 a suspended terminal.
7720
7721 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
7722
7723 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7724
7725 2008-09-30 Eli Zaretskii <eliz@gnu.org>
7726
7727 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7728
7729 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
7730
7731 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7732 in a continued line coincides with a line beginning.
7733
7734 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7735
7736 * nsfont.m (nsfont_trait_distance): Fix bug.
7737 (nsfont_list): Return a list rather than a vector (syncs with Handa
7738 changes of 2008-05-14).
7739 (nsfont_open): Improve logging.
7740
7741 2008-09-29 Andreas Schwab <schwab@suse.de>
7742
7743 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7744
7745 2008-09-28 Martin Rudalics <rudalics@gmx.at>
7746
7747 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7748 name as char-resolve-modifiers.
7749 Reported by: Markus Triska <markus.triska@gmx.at>
7750
7751 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7752
7753 * dispnew.c (init_display): Return earlier when running as a daemon.
7754
7755 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7756
7757 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7758
7759 2008-09-27 Eli Zaretskii <eliz@gnu.org>
7760
7761 * composite.c (Fcomposition_get_gstring)
7762 (Fcompose_region_internal, Fcompose_string_internal)
7763 (Ffind_composition_internal): Doc fix.
7764 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7765 (syms_of_composite) <auto-composition-function>: Doc fix.
7766 (syms_of_composite) <composition-function-table>: Doc fix.
7767
7768 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
7769
7770 * search.c (wordify): New argument for lax word-ends.
7771 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7772
7773 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7774
7775 * lisp.h (is_daemon): Declare.
7776 * dispnew.c (init_display): Do not try to initialize the terminal
7777 when running as a daemon.
7778
7779 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7782 x_display_pixel_height.
7783
7784 2008-09-22 Martin Rudalics <rudalics@gmx.at>
7785
7786 * undo.c (record_point): Don't call Fundo_boundary for first
7787 change. (Bug#731)
7788
7789 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
7790
7791 * emacs.c (Fdaemonp): Doc fix.
7792
7793 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7794
7795 * emacs.c (main): Place #ifdef in the proper place.
7796
7797 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7798
7799 * emacs.c (standard_args): Add --daemon.
7800 (main): Disconnect from the terminal when --daemon is passed.
7801 (is_daemon): New variable.
7802 (Fdaemonp): New function.
7803 (syms_of_emacs): Defsubr it.
7804
7805 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
7806
7807 * xdisp.c (get_next_display_element): Handle string display
7808 correctly when checking for the end of a box run.
7809
7810 2008-09-20 Glenn Morris <rgm@gnu.org>
7811
7812 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7813 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7814 (Frename_file): Avoid copying to trash if a rename involves
7815 a delete. (Bug#964).
7816
7817 2008-09-20 Eli Zaretskii <eliz@gnu.org>
7818
7819 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7820 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7821 frames as well as termcap frames.
7822 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7823 get_named_tty.
7824
7825 2008-09-19 Eli Zaretskii <eliz@gnu.org>
7826
7827 * process.c (procfs_system_process_attributes): Fix cmdline in
7828 case /proc/PID/cmdline is empty.
7829
7830 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7831 x_display_pixel_height.
7832
7833 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
7834
7835 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7836
7837 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7838 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7839
7840 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7841
7842 * dispextern.h (struct it): Move line_wrap away from the middle of
7843 bitfields. Move voffset in struct iterator_stack_entry after the
7844 bitfields. Move tab_width near after another short.
7845
7846 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7847
7848 * frame.h (struct frame): Move alpha from the middle of bitfields.
7849
7850 * window.h (struct window): Move frozen_window_start_p after the
7851 rest of the bitfields to reduce padding.
7852
7853 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
7854
7855 * xterm.h (x_display_info): Remove `height' and `width' members.
7856
7857 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7858
7859 * w32term.h (w32_display_info): Remove `height', `width',
7860 `height_in', and `width_in' members.
7861
7862 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7863 New functions.
7864 (x_calc_absolute_position): Use them.
7865 (x_term_init): Omit removed `height' and `width' members.
7866
7867 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7868 New functions.
7869 (w32_read_socket, x_calc_absolute_position): Use them.
7870 (w32_initialize_display_info, w32_term_init): Omit removed members
7871 of w32_display_info.
7872
7873 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7874 New functions.
7875 (ns_initialize_display_info): Omit removed members of ns_display_info.
7876
7877 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7878 New functions.
7879 (x_calc_absolute_position): Use them.
7880 (x_term_init): Omit removed `height' and `width' members.
7881
7882 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7883 (compute_tip_xy):
7884 * frame.c (x_fullscreen_adjust):
7885 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7886 x_display_pixel_width.
7887
7888 2008-09-18 Kenichi Handa <handa@m17n.org>
7889
7890 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7891 (composition_compute_stop_pos): Fix handling of static composition.
7892 (Fcomposition_get_gstring): Check FROM and TO at first.
7893
7894 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7895
7896 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
7897 mixup (YAILOM).
7898
7899 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
7900
7901 * indent.c (Fvertical_motion): Use position reported by iterator
7902 instead of PT for determining screen motion (bug#943).
7903
7904 2008-09-17 Romain Francoise <romain@orebokech.com>
7905
7906 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7907
7908 2008-09-17 Kenichi Handa <handa@m17n.org>
7909
7910 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7911
7912 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7913 if necessary.
7914
7915 2008-09-16 Kenichi Handa <handa@m17n.org>
7916
7917 * coding.c (make_conversion_work_buffer): Avoid calling
7918 Fget_buffer_create if it is not necessary.
7919
7920 2008-09-15 Martin Rudalics <rudalics@gmx.at>
7921
7922 * window.c (Fselect_window): Don't update window_select_count and
7923 use_time when norecord is not nil.
7924
7925 2008-09-14 Kenichi Handa <handa@m17n.org>
7926
7927 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7928 specpdl_ptr.
7929
7930 2008-09-12 Kenichi Handa <handa@m17n.org>
7931
7932 * indent.c (scan_for_column): Don't handle automatic composition
7933 if the current buffer is not associated with a window.
7934
7935 * composite.c (composition_reseat_it): If the current buffer is
7936 not associated with a window, ignore the automatic composition.
7937 (find_automatic_composition): Likewise.
7938
7939 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7940
7941 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7942 (Fgpm_mouse_stop): Use it.
7943 * termhooks.h (close_gpm): Declare.
7944 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7945 connection if Gpm_GetEvent fails.
7946
7947 * window.c (set_window_buffer): Always preserve current-buffer.
7948
7949 2008-09-12 Glenn Morris <rgm@gnu.org>
7950
7951 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7952
7953 2008-09-11 Glenn Morris <rgm@gnu.org>
7954
7955 * charset.c (charset-map-path): Doc fix.
7956
7957 2008-09-10 Kenichi Handa <handa@m17n.org>
7958
7959 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7960
7961 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7962 compose a grapheme cluster with the preceding base glyph.
7963
7964 * composite.c (composition_compute_stop_pos): Fix previous change.
7965 Reset cmp_it->id to -1 at first.
7966
7967 2008-09-10 Glenn Morris <rgm@gnu.org>
7968
7969 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7970
7971 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * keyboard.c (read_key_sequence): Reapply translation maps when
7974 switching keyboards.
7975
7976 2008-09-09 Kenichi Handa <handa@m17n.org>
7977
7978 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7979 characters.
7980
7981 * composite.c (FORWARD_CHAR): Fix calculation
7982 of (POSITION).pos_byte.
7983 (composition_compute_stop_pos): Limit the search of composition to
7984 at most 500 characters ahead. If we reach the limit or find a
7985 newline, set cmp_it->ch to -2 and return 0.
7986 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7987
7988 2008-09-08 Kenichi Handa <handa@m17n.org>
7989
7990 * indent.c (Fvertical_motion): Be sure to set
7991 it_overshoot_expected if it.cmp_it.id is non-negative.
7992
7993 2008-09-07 Andreas Schwab <schwab@suse.de>
7994
7995 * callproc.c (Fcall_process): Don't hold references to string data
7996 across garbage collection. Move initialisation of new_argv down
7997 to avoid compiler bug.
7998
7999 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8000
8001 * process.c (Fsystem_process_attributes): Doc fix.
8002
8003 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8004
8005 * callproc.c (Fcall_process): Canonicalize current directory name.
8006
8007 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8008 iterator advances to the next line if the current line ends in a
8009 continued tab.
8010
8011 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8012
8013 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8014 member to point to cmp_from.
8015
8016 * xdisp.c: Doc fix for references to gidx data member.
8017
8018 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8019
8020 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8021
8022 2008-09-07 Kenichi Handa <handa@m17n.org>
8023
8024 * composite.c (FORWARD_CHAR): Check STOP after
8025 incrementing (POSITION).pos.
8026
8027 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8028
8029 * process.c (Fsystem_process_attributes): Doc fix.
8030
8031 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * keyboard.c (Ftop_level): Doc fix.
8034
8035 2008-09-06 Eli Zaretskii <eliz@gnu.org>
8036
8037 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8038 minibuffer, don't let lower part of menu invade the echo area.
8039
8040 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8041 "char *q" to access menu text and advance through it. Revert the
8042 change that displayed ">" instead of ASCII character 0x10.
8043
8044 2008-09-05 Eli Zaretskii <eliz@gnu.org>
8045
8046 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8047 toggle boxes and radio buttons on MS-DOS as well.
8048
8049 2008-09-05 Kenichi Handa <handa@m17n.org>
8050
8051 * composite.c (autocmp_chars): Check lookback count.
8052 (composition_compute_stop_pos): Set cmp_it->lookback.
8053 (composition_reseat_it): Check lookback count.
8054 (struct position_record): New struct.
8055 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8056 (find_automatic_composition): New function.
8057 (composition_adjust_point): Use find_automatic_composition.
8058
8059 * dispextern.h (struct composition_it): New member lookback.
8060
8061 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
8062
8063 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8064 if moving by a single line.
8065
8066 2008-09-02 Andreas Schwab <schwab@suse.de>
8067
8068 * xterm.c (x_delete_display): Fix merge error.
8069
8070 * fileio.c (Fexpand_file_name): Remove unused variables.
8071
8072 2008-09-02 Eli Zaretskii <eliz@gnu.org>
8073
8074 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8075 storage on all platforms, not just on DOS_NT.
8076
8077 2008-09-02 Jason Rumney <jasonr@gnu.org>
8078
8079 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8080 Ensure mouse is not grabbed after menu is finished.
8081
8082 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
8083
8084 * xfaces.c (Finternal_set_alternative_font_family_alist)
8085 (Finternal_set_alternative_font_registry_alist): Properly copy
8086 entire alist structure.
8087
8088 2008-09-01 Kenichi Handa <handa@m17n.org>
8089
8090 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8091 representative chars of the script is a vector.
8092 (ftfont_list): Handle the case where the representative chars of
8093 the script is a vector.
8094
8095 * character.c (syms_of_character): Docstring of
8096 script-representative-chars fixed.
8097
8098 2008-08-31 Eli Zaretskii <eliz@gnu.org>
8099
8100 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8101 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8102 the menu. Allocate larger buffer for `text', to account for
8103 possible ^C characters.
8104
8105 2008-08-31 Martin Rudalics <rudalics@gmx.at>
8106
8107 * xdisp.c (prepare_menu_bars): Don't call
8108 Vwindow_size_change_functions with arg Qt.
8109
8110 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8111
8112 * font.h (font_range):
8113 * fileio.c (report_file_error):
8114 * composite.c (composition_update_it): Yet another int/Lisp_Object
8115 mixup (YAILOM).
8116
8117 2008-08-30 Glenn Morris <rgm@gnu.org>
8118
8119 * data.c (Fmake_variable_frame_local): Doc fix.
8120
8121 * frame.c (Fmodify_frame_parameters): Doc fix.
8122
8123 2008-08-30 Eli Zaretskii <eliz@gnu.org>
8124
8125 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8126 needed by GetTokenInformation.
8127 (w32_system_process_attributes): Check return values of all system
8128 APIs.
8129
8130 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8131 only when the state changes.
8132 (IT_update_begin, IT_update_end): Add termscript trace.
8133
8134 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8135 clipboard is unavailable. Set dst to NULL if it doesn't point to
8136 malloc'ed data.
8137 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8138 passing random values to xfree.
8139
8140 * dispnew.c (init_display): Set `tty's association in frame's
8141 parameters alist to the name of the terminal device, if that is known.
8142
8143 2008-08-29 Jason Rumney <jasonr@gnu.org>
8144
8145 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8146
8147 2008-08-29 Eli Zaretskii <eliz@gnu.org>
8148
8149 * composite.c (fill_gstring_body): Avoid compiler warnings.
8150
8151 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8152 LGLYPH_SET_CODE to avoid compiler warnings.
8153
8154 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8155
8156 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8157
8158 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8159 LGLYPH_SET_CODE.
8160
8161 2008-08-29 Kenichi Handa <handa@m17n.org>
8162
8163 * fileio.c (report_file_error): Don't downcase the first character
8164 of errstring if it is still unibyte.
8165
8166 2008-08-29 Kenichi Handa <handa@m17n.org>
8167
8168 These changes are to re-implement the automatic composition so
8169 that it doesn't use text properties.
8170
8171 * Makefile.in (ftfont.o): Depend on composite.h.
8172 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8173
8174 * character.h (Vunicode_category_table): Extern it.
8175
8176 * character.c (Vunicode_category_table): New variable.
8177 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8178
8179 * chartab.c (optimize_sub_char_table): Perform more greedy
8180 optimization.
8181
8182 * composite.h (enum composition_method):
8183 Delete COMPOSITION_WITH_GLYPH_STRING.
8184 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8185 (Vcomposition_function_table): Extern it.
8186 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8187 (composition_gstring_put_cache, composition_gstring_from_id)
8188 (composition_gstring_p, composition_gstring_width)
8189 (composition_compute_stop_pos, composition_reseat_it)
8190 (composition_update_it, composition_adjust_point): Extern them.
8191 (Fcomposition_get_gstring): EXFUN it.
8192
8193 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8194 (Vcomposition_function_table)
8195 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8196 (gstring_hash_table, gstring_work, gstring_work_headers):
8197 New variables.
8198 (gstring_lookup_cache, composition_gstring_put_cache)
8199 (composition_gstring_from_id, composition_gstring_p)
8200 (composition_gstring_width, fill_gstring_header)
8201 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8202 (composition_reseat_it, composition_update_it)
8203 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8204 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8205 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8206 Defsubr compostion_get_gstring.
8207
8208 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8209 cmp_id.
8210 (struct glyph_string): Delete the member gidx. New members
8211 cmp_id, cmp_from, and cmp_to.
8212 (enum it_method): Delete GET_FROM_COMPOSITION.
8213 (struct composition_it): New struct.
8214 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8215 Delete c, len, cmp_id, cmp_len in u.comp.
8216
8217 * font.h (enum lgstring_indices): Delete it.
8218 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8219 (enum lglyph_indices): Likewise.
8220 (font_range): Adjust extern.
8221 (font_fill_lglyph_metrics): Extern it.
8222
8223 * font.c (QCf): New variable.
8224 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8225 (font_prepare_composition): Delete this function.
8226 (font_range): Type and arguments changed.
8227 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8228 (font_fill_lglyph_metrics): New function.
8229 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
8230 (syms_of_font): DEFSYM QCf. Delete defsubr for
8231 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8232 Defsubr Sfont_shape_gstring.
8233
8234 * fontset.h (font_for_char): Extern it.
8235
8236 * fontset.c (font_for_char): New function.
8237
8238 * ftfont.c: Include composite.h.
8239 (ftfont_resolve_generic_family): Add langset "en" to pattern.
8240 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8241
8242 * indent.c: Include composite.h and dispextern.h.
8243 (check_composition): Delete this function.
8244 (scan_for_column): Handle composition by
8245 composition_compute_stop_pos, composition_reseat_it, and
8246 composition_update_it.
8247 (compute_motion): Likewise.
8248 (Fvertical_motion): Fix checking of composition.
8249
8250 * keyboard.c (adjust_point_for_property): Check composition by
8251 composition_adjust_point.
8252
8253 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
8254 struct glyph_string.
8255
8256 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8257 (append_composite_glyph): Adjust for the change of struct it and
8258 struct glyph.
8259 (produce_composite_glyph): Likewise.
8260
8261 * w32term.c (x_draw_composite_glyph_string_foreground):
8262 Adjust for the change of struct glyph_string.
8263 (x_draw_glyph_string): Likewise.
8264
8265 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8266 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8267
8268 * xdisp.c: Include font.h.
8269 (it_props): Delete the entry for Qauto_composed.
8270 (init_iterator): Initialize it->cmp_it.id to -1.
8271 (compute_stop_pos): Call composition_compute_stop_pos.
8272 (face_before_or_after_it_pos): Adjust for the change of struct it.
8273 (handle_auto_composed_prop): Delete it.
8274 (handle_composition_prop): Handle only static composition.
8275 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8276 from xassert. Initialize it->cmp_it.stop_pos.
8277 (push_it): Adjust for the change of struct it.
8278 (pop_it): Likewise.
8279 (get_next_element): Delete next_element_from_composition.
8280 (CHAR_COMPOSED_P): New macro.
8281 (get_next_display_element): For automatic composition, get a face
8282 from the font in the glyph-string.
8283 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
8284 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
8285 (next_element_from_string): Check if the character at the current
8286 position is composed by CHAR_COMPOSED_P.
8287 (next_element_from_buffer): Likewise.
8288 (next_element_from_composition): Adjust for the change of struct it.
8289 Update it->cmp_it.
8290 (dump_glyph): Adjust for the change of struct glyph.
8291 (fill_composite_glyph_string): Adjust for the change of struct
8292 it and struct glyph. Don't handle automatic composition here.
8293 (fill_gstring_glyph_string): New function.
8294 (x_get_glyph_overhangs): Handle automatic composition.
8295 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
8296 (BUILD_GSTRING_GLYPH_STRING): New macro.
8297 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8298 automatic composition.
8299 (append_composite_glyph): Adjust for the change of struct it and
8300 struct glyph.
8301 (x_produce_glyphs): Adjust for the change of struct it.
8302
8303 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8304 the change of struct glyph_string.
8305 (x_draw_glyph_string): Likewise.
8306
8307 2008-08-29 Glenn Morris <rgm@gnu.org>
8308
8309 * buffer.c (word-wrap): Doc fix.
8310 * xdisp.c (truncate-partial-width-windows): Doc fix.
8311 Increase default to 50.
8312
8313 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
8314
8315 * xdisp.c (update_tool_bar_unwind): New function.
8316 (update_tool_bar): Temporarily set selected frame before building
8317 tool-bar items.
8318
8319 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
8320
8321 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8322 snprintf, respectively.
8323 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8324
8325 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
8326
8327 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8328 LDFLAGS to GNUstep CC invocation.
8329
8330 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * indent.c (Fvertical_motion): Revert last change. Handle the
8333 general case where we are moving forward, and PT spans multiple
8334 screen lines.
8335
8336 * eval.c (find_handler_clause): Temporarily increase
8337 max-lisp-eval-depth while printing the backtrace buffer, to
8338 guarantee that help-mode code can run.
8339
8340 2008-08-27 Eli Zaretskii <eliz@gnu.org>
8341
8342 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8343 colors under -rv.
8344 (IT_set_frame_parameters): Don't swap foreground and background
8345 colors if `(reverse . t)' is present in the frame properties.
8346 (internal_terminal_init): Call init_frame_faces only for the
8347 initial frame.
8348
8349 2008-08-27 Andreas Schwab <schwab@suse.de>
8350
8351 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8352
8353 2008-08-27 Andreas Schwab <schwab@suse.de>
8354
8355 * search.c (search_buffer): Set char_base to zero only at the end.
8356
8357 2008-08-27 Kenichi Handa <handa@m17n.org>
8358
8359 * fileio.c (report_file_error): Fix handling of multibyte error string.
8360
8361 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8362
8363 * xterm.c (x_term_init): Temporarily hide the partially
8364 initialized terminal while calling vendor-specific-keysyms.
8365
8366 2008-08-26 Eli Zaretskii <eliz@gnu.org>
8367
8368 * msdos.c (internal_terminal_init): Most initializations done only
8369 once, especially initial_screen_colors[] and termscript open.
8370
8371 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * eval.c (Fcondition_case): Doc fix.
8374
8375 * widgetprv.h (EmacsFramePart): Change font member to the new font
8376 struct.
8377
8378 * widget.c: Include character.h and font.h for XSETFONT.
8379 (setup_frame_gcs): Compute X font id from font struct, just once.
8380
8381 2008-08-26 Eli Zaretskii <eliz@gnu.org>
8382
8383 * term.c (get_named_tty): Fix last change.
8384
8385 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
8386
8387 * indent.c (Fvertical_motion): If moving forward starting from a
8388 multi-line string, move the iterator to the last line of that string.
8389
8390 2008-08-25 Eli Zaretskii <eliz@gnu.org>
8391
8392 * frame.c (do_switch_frame): Mark previously displayed frame as
8393 obscured for FRAME_MSDOS_P frames as well.
8394
8395 2008-08-24 Eli Zaretskii <eliz@gnu.org>
8396
8397 * frame.c (make_terminal_frame): Initialize f->terminal,
8398 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8399 Set the top frame to newly created frame.
8400 (Fmake_terminal_frame): Reuse the_only_display_info.
8401
8402 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8403 estimating available memory.
8404
8405 2008-08-23 David Reitter <david.reitter@gmail.com>
8406
8407 * nsterm.m (ns_draw_window_cursor): Don't call
8408 NSDisableScreenUpdates and NSEnableScreenUpdates on
8409 non-NS_IMPL_COCOA systems.
8410
8411 2008-08-23 Andreas Schwab <schwab@suse.de>
8412
8413 * process.c (procfs_system_process_attributes): Fix use of
8414 uninitialized variables.
8415
8416 2008-08-23 Eli Zaretskii <eliz@gnu.org>
8417
8418 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8419
8420 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8421 calling tty-set-up-initial-frame-faces.
8422
8423 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8424 Allow MSDOS frames along with X frames.
8425
8426 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8427 addition to output_termcap.
8428
8429 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8430
8431 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8432 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8433 highlight.
8434
8435 * process.c [!subprocesses]: Define QCname.
8436 (syms_of_process): Intern and staticpro it.
8437
8438 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
8439 Adjust for changes in encoding/decoding routines.
8440 Use encode_coding_object and decode_coding_object instead of
8441 encode_coding and decode_coding.
8442
8443 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
8444
8445 * dosfns.c: Include frame.h before termhooks.h.
8446 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8447 variable termscript.
8448
8449 * s/msdos.h (USER_FULL_NAME): Define.
8450 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8451
8452 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8453 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8454 pw->pw_gecos.
8455
8456 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8457 SELECTED_FRAME as additional (1st) argument.
8458 (tty_read_avail_input): Handle output_msdos_raw in
8459 addition to output_termcap.
8460
8461 * msdos.c: Include frame.h before termhooks.h.
8462 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8463 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8464 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8465 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8466 (IT_set_terminal_modes, IT_reset_terminal_modes)
8467 (IT_set_frame_parameters): Use tty->termscript instead of a global
8468 variable termscript.
8469 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8470 global variable terminal_coding. Don't refer to
8471 Vnonascii_translation_table.
8472 (internal_terminal_init): Set Vwindow_system in current_kboard.
8473 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8474 Announce date and time of session start, if termscript is open.
8475 Don't zero out the_only_display_info (it is done in
8476 term.c:init_tty). Open termscript only of not already open.
8477 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
8478 here instead of dos_ttraw. Don't initialize display if this is an
8479 initial tty. Don't set FRAME_FONT.
8480 (Vwindow_system_version): Bump to 23.
8481 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8482 is available, set up mouse_position_hook.
8483 (dos_ttraw, IT_set_terminal_modes): If called with initial
8484 terminal, do nothing.
8485 (IT_set_frame_parameters): Handle the Qtty_type frame
8486 parameter by calling internal_terminal_init.
8487 (dos_set_window_size, show_mouse_face)
8488 (clear_mouse_face, IT_note_mode_line_highlight)
8489 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8490 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8491 (initialize_msdos_display): New function.
8492 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8493 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8494 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8495 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
8496 Accept additional argument: a pointer to a frame. Update all callers.
8497 (request_sigio, unrequest_sigio): Don't define, now defined on
8498 sysdep.c.
8499 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8500
8501 * term.c [MSDOS]: Include msdos.h.
8502 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8503 conditional to DOS_NT. Allow only one call to this function in a
8504 session. Don't allocate a new struct tty_display_info; instead,
8505 reuse the_only_display_info. Call get_tty_size to get screen
8506 dimensions. Call init_baud_rate to set bad_rate.
8507 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8508 (Fsuspend_tty) [MSDOS]: Don't close input and output.
8509 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
8510 (get_tty_terminal, get_named_tty, Ftty_type)
8511 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8512 output_termcap.
8513 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8514 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
8515 only when subprocesses are supported.
8516
8517 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8518 f->output_data.x.
8519 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8520 terminal devices.
8521
8522 * msdos.h: Remove definition of struct x_display_info and struct
8523 x_output.
8524 (FRAME_FONT): Use output_data.tty.
8525 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
8526 (struct x_display_info): Rename from display_info. Update all users in
8527 msdos.c.
8528 (struct x_output): Remove background_pixel and foreground_pixel.
8529 (the_only_display_info): Rename from the_only_x_display.
8530 (dos_ttraw): Update prototype.
8531
8532 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8533 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8534
8535 2008-08-23 Jason Rumney <jasonr@gnu.org>
8536
8537 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8538 (fn_TIFFSetDirectory): New library function used.
8539 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8540 (tiff_load): Use :index to select among multiple images. Set count
8541 property when multiple images exist.
8542 (gif_format): Use :index, not :image.
8543
8544 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
8545
8546 * xdisp.c (try_scrolling): Check INT_MAX instead of
8547 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8548 to obtain INT_MAX.
8549
8550 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8551
8552 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8553
8554 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8555
8556 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8557 GNUstep library location.
8558
8559 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
8560
8561 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8562 before using it.
8563
8564 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8565
8566 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8567
8568 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8569 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8570 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8571 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8572 (EmacsApp-cursor_blink_handler): Remove declaration.
8573 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8574 match 01 Feb 2008 changes in xterm.c.
8575 (ns_read_socket): Add cast to avoid warning.
8576 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8577 GNUstep.
8578
8579 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
8580
8581 * xselect.c (x_get_foreign_selection): Return nil if desired
8582 selection could not be obtained, instead of signalling an error.
8583
8584 2008-08-20 David Reitter <david.reitter@gmail.com>
8585
8586 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8587 * nsterm.m: Remove ns-specific code for cursor blinking.
8588 (ns_draw_window_cursor): Clear cursor properly rather than
8589 redrawing the area. Respect width of bar cursors.
8590 These changes enable the use of generic blink-cursor-mode and
8591 generic cursor types in NS and support smooth cursor movements (do
8592 not blink off after command).
8593 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8594 Nextstep, too.
8595
8596 2008-08-19 Kenichi Handa <handa@m17n.org>
8597
8598 * font.c (Vfont_log_deferred): New variable.
8599 (font_add_log): Check Vfont_log_deferred.
8600 (font_deferred_log): New function.
8601
8602 * font.h (font_deferred_log): Extern it.
8603
8604 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8605 for sorting.
8606 (face_for_char): Use deferred log.
8607
8608 2008-08-18 Kenichi Handa <handa@m17n.org>
8609
8610 * fontset.c (face_for_char): Add font log.
8611
8612 * font.c (font_add_log): Add the font properties :script, :lang,
8613 and :otf in the log.
8614
8615 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
8616
8617 * xdisp.c: Remove dead code.
8618 (handle_invisible_prop, next_overlay_string): Defer call to
8619 setup_for_ellipsis.
8620 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8621
8622 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
8623
8624 * xfaces.c (lookup_derived_face): Properly handle possible zero
8625 return value of get_lface_attributes.
8626 (merge_faces): Don't tell lookup_derived_face to signal an error
8627 if face is not found.
8628
8629 * dired.c (Fdirectory_files): Doc fix.
8630
8631 * process.c (make_process): Initialize kill_without_query struct
8632 member.
8633
8634 2008-08-15 Eli Zaretskii <eliz@gnu.org>
8635
8636 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8637 Alternative calculation of totphys for Visual Studio 6.
8638
8639 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8640
8641 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8642 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8643 All users changed.
8644 (stat): Only root directory passed to GetDriveType. Allow RAM
8645 disk as well as local fixed disk when w32-get-true-file-attributes
8646 is set to `local'.
8647 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8648 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8649 (w32_cached_id, w32_add_to_cache): New functions.
8650 (get_name_and_id): Look account names in the cache before calling
8651 lookup_account_sid.
8652 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8653 New initialization flags.
8654 (globals_of_w32): Initialize them to zero.
8655 (w32_system_process_attributes): Use w32_cached_id and
8656 w32_add_to_cache.
8657
8658 2008-08-14 Lawrence Mitchell <wence@gmx.li>
8659
8660 * lread.c (Fread_char, Fread_char_exclusive): If no character
8661 event is read before timeout is reached, return nil, rather than
8662 converting to a number.
8663
8664 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
8665
8666 * fns.c (use_dialog_box): Doc fix.
8667
8668 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8669 on OS X.
8670
8671 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
8672
8673 * frame.c (Qns_parse_geometry): New var.
8674 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8675
8676 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
8677
8678 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8679 space character in calculating tabs.
8680
8681 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8682
8683 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8684
8685 2008-08-10 Glenn Morris <rgm@gnu.org>
8686
8687 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8688 silence gcc "limited range of data type" warnings in some
8689 make_fixnum_or_float calls.
8690
8691 2008-08-09 Eli Zaretskii <eliz@gnu.org>
8692
8693 * w32.c (w32_system_process_attributes): If the process does not
8694 exist, return nil.
8695
8696 * w32.c: Include thelp32.h, psapi.h and coding.h.
8697 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8698 declarations.
8699 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8700 (Process32Next_Proc): New typedefs.
8701 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8702 (g_b_init_process32_next, g_b_init_open_thread_token)
8703 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8704 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8705 (g_b_init_get_process_working_set_size)
8706 (g_b_init_global_memory_status_ex): New static variables.
8707 (globals_of_w32): Initialize them.
8708 (create_toolhelp32_snapshot, process32_first, process32_next)
8709 (open_thread_token, impersonate_self, revert_to_self)
8710 (get_process_memory_info, get_process_working_set_size)
8711 (global_memory_status, global_memory_status_ex): New wrapper
8712 functions.
8713 (w32_list_system_processes, w32_system_process_attributes)
8714 (enable_privilege, restore_privilege, ltime, process_times):
8715 New functions.
8716 (convert_time_raw): New function.
8717 (convert_time): Remove conversion of FILETIME into time in 100
8718 nsec units, call convert_time_raw instead.
8719
8720 * process.h (w32_list_system_processes, w32_system_process_attributes):
8721 Add prototypes.
8722 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8723 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8724 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8725 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8726
8727 * process.c (Fsystem_process_attributes): Doc fix.
8728
8729 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
8730
8731 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8732 a continued multi-char glyph; if so, advance to the actual glyph.
8733
8734 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8735
8736 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8737
8738 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8739 (.m.o): Use it.
8740 * config.in: Regenerate.
8741
8742 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
8743
8744 * xdisp.c (redisplay_window): Revert last change.
8745 (try_window): Check bottom scroll margin too.
8746
8747 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8748
8749 * config.in: Regenerate.
8750
8751 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8752 -list-load-path-shadows'.
8753 (nsgui.h): Reduce number of things depending on it.
8754
8755 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
8756
8757 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8758 instead of window-end which does the wrong thing at eob.
8759 (try_cursor_movement): Minor optimization.
8760 (redisplay_window): If scroll margin is defined, don't assume
8761 window doesn't need scrolling.
8762
8763 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8764
8765 * config.in: Regenerate.
8766
8767 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8768 (mostlyclean): Don't delete *.d under NS.
8769
8770 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8771
8772 2008-08-06 Kenichi Handa <handa@m17n.org>
8773
8774 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8775
8776 2008-08-06 Andreas Schwab <schwab@suse.de>
8777
8778 * config.in: Regenerate.
8779
8780 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
8781
8782 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8783 forcing a window start.
8784
8785 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8786 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8787
8788 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8789
8790 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8791 argument.
8792
8793 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
8794
8795 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8796 <scroll-down-aggressively, before-change-functions>:
8797 <after-change-functions>: Reflow docstrings.
8798
8799 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8800 Ken Raeburn <raeburn@gnu.org>
8801
8802 Dock menu customization, based on a patch by Ken Raeburn, plus some
8803 other fixes.
8804 * nsmenu.m (dockMenu): New variable.
8805 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8806
8807 * nsterm.h (dockMenu): Declare.
8808
8809 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8810 (ns_term_init): Initialize dockMenu.
8811 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8812 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8813 left.
8814
8815 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8816
8817 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8818
8819 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8820
8821 * config.in: Regenerate.
8822
8823 2008-08-04 Seiji Zenitani <zenitani@mac.com>
8824
8825 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8826
8827 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8828
8829 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8830
8831 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8832
8833 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8834
8835 * keyboard.h: Comment an #endif.
8836
8837 * lisp.h (have_menus_p): Adjust comment.
8838
8839 * menu.c (find_and_return_menu_selection): Fix comparison with
8840 client_data.
8841
8842 * nsmenu.m (popup_activated_flag): New variable.
8843 (popup_activated): New function.
8844 (menu-or-popup-active-p): New exported lisp definition.
8845 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8846 when popup done.
8847 (ns_popup_dialog): Set popup_activated_flag.
8848
8849 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8850 version for GNUstep (handled by conditional typedef in nsterm.m).
8851 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8852 in rgb.txt).
8853
8854 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8855
8856 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8857
8858 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8859
8860 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8861 shortcircuit if popup_activated like GTK and X toolkit.
8862
8863 * m/inter386.h: Change DARWIN to DARWIN_OS.
8864
8865 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8866 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8867 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8868 comment on NO_SOCK_SIGIO.
8869
8870 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
8871
8872 * nsterm.m (windowDidResize): Remove stopModal call.
8873
8874 2008-08-03 Andreas Schwab <schwab@suse.de>
8875
8876 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8877 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8878
8879 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
8880
8881 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8882 Don't use uninitialized pointer variable when using getrlimit.
8883
8884 2008-08-02 Jason Rumney <jasonr@gnu.org>
8885
8886 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8887
8888 2008-08-02 Eli Zaretskii <eliz@gnu.org>
8889
8890 * alloc.c (NSTATICS): Bump to 0x640.
8891
8892 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8893
8894 * lisp.h: Add prototype for directory_files_internal.
8895
8896 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8897 New functions.
8898 (syms_of_process): Defsubr them. Add initializations for various
8899 Q* symbols used in procfs_system_process_attributes.
8900 (procfs_list_system_processes, procfs_system_process_attributes)
8901 [HAVE_PROCFS]: New functions.
8902 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8903 (procfs_get_total_memory): New functions.
8904
8905 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8906
8907 * xfaces.c (Fx_load_color_file): Fix previous change;
8908 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8909
8910 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
8911
8912 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8913
8914 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8915
8916 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8917
8918 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
8919
8920 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8921
8922 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8923 define NSApplicationDelegateReplySuccess.
8924 (EmacsView -converstationIdentifier): Use long instead of
8925 NSInteger for GNUstep, since it doesn't have NSInteger.
8926
8927 * xmenu.c: Revert last change.
8928
8929 * keyboard.h: Fix last change.
8930
8931 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8932
8933 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8934 on Windows.
8935
8936 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8937
8938 Warning clearing and clean-up in NS port.
8939 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8940 Add prototypes.
8941 * nsgui.h (FACE_DEFAULT): Remove, unused.
8942 (XGCValues): Change colors to unsigned long.
8943 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8944 nsterm.m.
8945 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8946 (ns_list_fonts): Remove, unused.
8947 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8948 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8949 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8950 (nsfont_draw): Compare face colors to 0, not nil.
8951 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8952 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8953 (-addSubmenuWithTitle:): Use NSMenuItem class.
8954 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8955 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8956 (ns_clip_to_row): Make gc arg a BOOL.
8957 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8958 ns_clip_to_row() call.
8959 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8960 used). Cast FRAME_FONT assignments.
8961 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8962 (ns_string_to_lispmod): Change arg to const char.
8963 (ns_term_init): Use NSMenuItem class.
8964 (EmacsApp -openFile:): Move to different section of file.
8965 (EmacsApp -application:openFiles:): Don't return a value, call
8966 -replyToOpenOrPrint:.
8967 (EmacsView -keyDown:): Fix up cast.
8968 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8969 (EmacsView -menuDown:): Cast tag in call to
8970 find_and_call_menu_selection().
8971 (ns_list_fonts): Remove, unused.
8972 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8973 (ns_fontname_to_xlfd): Make static.
8974 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8975 Remove prototypes (now in keyboard.h).
8976 (next_menubar_widget_id): Remove, unused.
8977 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8978 Remove prototypes (now in keyboard.h).
8979 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8980
8981 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8982
8983 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8984 (floatfns.o): Depend on syssignal.h.
8985 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8986
8987 * systty.h: Fix previous change that removed BSD_TERMIOS.
8988 Add comments to #ifdefs.
8989
8990 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8991
8992 * w32fns.c (w32-load-color-file): Remove.
8993 (x-open-connection): Use renamed Fx_load_color_file.
8994 * xfaces.c (x-load-color-file): Add.
8995 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8996 Emacs.clr.
8997 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8998
8999 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9000
9001 * dbusbind.c (Fdbus_call_method_asynchronously)
9002 (Fdbus_method_error_internal): New defuns.
9003 (xd_read_message): Handle also reply messages.
9004 (Vdbus_registered_functions_table): Extend docstring.
9005
9006 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9007
9008 * keyboard.c (gobble_input): Fix previous change.
9009
9010 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9011
9012 * bitmaps/README:
9013 * xfns.c:
9014 * termcap.c:
9015 * term.c:
9016 * syswait.h:
9017 * systty.h:
9018 * systime.h:
9019 * syssignal.h:
9020 * sysdep.c:
9021 * process.h:
9022 * process.c:
9023 * print.c:
9024 * ndir.h:
9025 * lread.c:
9026 * keyboard.c:
9027 * getpagesize.h:
9028 * floatfns.c:
9029 * fileio.c:
9030 * emacs.c:
9031 * doc.c:
9032 * dispnew.c:
9033 * dired.c:
9034 * data.c:
9035 * callproc.c:
9036 * buffer.c:
9037 * README:
9038 * Makefile.in:
9039 * s/template.h:
9040 * s/msdos.h:
9041 * m/vax.h: Remove VMS support.
9042 * s/vms.h:
9043 * vlimit.h:
9044 * uaf.h:
9045 * temacs.opt:
9046 * param.h:
9047 * ioctl.h: Remove file.
9048
9049 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9050
9051 * s/ms-w32.h (MULTI_KBOARD): Remove.
9052 * xterm.c:
9053 * xselect.c:
9054 * xfns.c:
9055 * window.c:
9056 * w32term.c:
9057 * w32fns.c:
9058 * terminal.c:
9059 * termhooks.h:
9060 * term.c:
9061 * sysdep.c:
9062 * keyboard.h:
9063 * keyboard.c:
9064 * frame.h:
9065 * frame.c:
9066 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9067 * config.in: Regenerate.
9068
9069 2008-07-30 Jason Rumney <jasonr@gnu.org>
9070
9071 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9072
9073 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9074 (w32font_open_internal): Get unicode version of textmetrics.
9075 Don't enable or disable glyph indices here.
9076 (w32font_open): Disable use of glyph indices.
9077
9078 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9079
9080 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
9081
9082 * minibuf.c (Vread_buffer_function): Doc fix.
9083
9084 2008-07-30 John Paul Wallington <jpw@pobox.com>
9085
9086 * minibuf.c (read_buffer_completion_ignore_case): New var.
9087 (Fread_buffer): Use it.
9088
9089 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9090
9091 * systty.h (sensemode): Remove empty #if. Remove reference to
9092 BSD_TERMIOS, unused.
9093
9094 * sysdep.c: Remove reference to DGUX.
9095 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9096
9097 * config.in: Regenerate.
9098
9099 2008-07-30 Jason Rumney <jasonr@gnu.org>
9100
9101 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9102
9103 2008-07-29 Jason Rumney <jasonr@gnu.org>
9104
9105 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9106 is populated.
9107 (uniscribe_encode_char): Always use uniscribe.
9108 Avoid using context if cache is populated.
9109
9110 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9111
9112 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9113 open menu.
9114
9115 * gtkutil.c (menu_nav_ended): Remove.
9116 (create_menus): Remove signal connect for menu_nav_ended.
9117
9118 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
9119
9120 * xdisp.c (redisplay_window): Check return value of
9121 compute_window_start_on_continuation_line before forcing a window
9122 start.
9123
9124 2008-07-28 Jason Rumney <jasonr@gnu.org>
9125
9126 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9127
9128 * w32term.c (w32_enable_unicode_output, cleartype_active):
9129 Remove obsolete display options.
9130 (x_draw_glyph_string_background): Don't use old cleartype_active
9131 workaround.
9132 (w32_initialize): Remove cleartype_active initialization.
9133 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9134
9135 2008-07-28 Andreas Schwab <schwab@suse.de>
9136
9137 * lisp.h (init_weak_hash_tables, syms_of_font)
9138 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9139 (remove_hash_entry): Don't declare.
9140 * eval.c (maybe_call_debugger): Make static and move before use.
9141 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9142 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9143 * xterm.h (x_set_frame_alpha): Declare.
9144
9145 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9146
9147 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9148 (create_menus): Connect selection-done to menu_nav_ended.
9149
9150 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9151
9152 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9153 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9154 parameter with read of 'alpha' one.
9155 (Qns_frame_parameter): Remove.
9156 * nsselect.m (selection-coding-system)
9157 (next-selection-coding-system, Vselection_coding_system)
9158 (Vnext_selection_coding_system): Drop.
9159
9160 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9161
9162 * nsfns.m (do-applescript, do_applescript): Rename to
9163 ns-do-applescript, ns_do_applescript, and move within file.
9164
9165 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9166
9167 Remove support for Mac Carbon.
9168 * mactoolbox.c:
9169 * macterm.h:
9170 * macterm.c:
9171 * macselect.c:
9172 * macmenu.c:
9173 * macgui.h:
9174 * macfns.c:
9175 * mac.c: Remove file.
9176 * s/darwin.h:
9177 * m/intel386.h:
9178 * xfaces.c:
9179 * xdisp.c:
9180 * window.c:
9181 * tparam.c:
9182 * termhooks.h:
9183 * termcap.c:
9184 * term.c:
9185 * syssignal.h:
9186 * sysselect.h:
9187 * sysdep.c:
9188 * process.c:
9189 * lread.c:
9190 * lisp.h:
9191 * keyboard.c:
9192 * image.c:
9193 * fringe.c:
9194 * frame.h:
9195 * frame.c:
9196 * fontset.c:
9197 * font.h:
9198 * font.c:
9199 * fns.c:
9200 * fileio.c:
9201 * emacs.c:
9202 * dispnew.c:
9203 * dispextern.h:
9204 * config.in:
9205 * atimer.c:
9206 * Makefile.in: Remove code for Carbon.
9207
9208 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9209
9210 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9211
9212 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9213
9214 * macterm.h (kCGBitmapByteOrder32Host): New define for
9215 non-universal SDKs.
9216
9217 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9218 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9219
9220 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9221 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9222
9223 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9224
9225 * w32inevt.c: Include dispextern.h.
9226
9227 2008-07-26 Andreas Schwab <schwab@suse.de>
9228
9229 * print.c (print_object): Fix off-by-one in last change.
9230
9231 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
9232
9233 * term.c (syms_of_term): Don't initialize default_orig_pair,
9234 default_set_foreground and default_set_background on Windows.
9235
9236 2008-07-25 Jason Rumney <jasonr@gnu.org>
9237
9238 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9239 ScriptItemize. Clean up return value checking. Remove unused
9240 variables.
9241 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9242 shaping engine.
9243
9244 * w32font.c (w32font_has_char): Handle the case where we can't
9245 determine the script for a character.
9246
9247 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9248
9249 * term.c (syms_of_term): Initialize default_orig_pair,
9250 default_set_foreground, and default_set_background.
9251
9252 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9253 clash (bug#86).
9254 (getloadavg): Callers changed.
9255
9256 * image.c (svg_load_image): Fix last change.
9257 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9258 image size is valid. Use g_object_unref instead of deprecated
9259 rsvg_handle_free to free rsvg handle.
9260 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9261
9262 2008-07-25 Jason Rumney <jasonr@gnu.org>
9263
9264 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9265 surrogates before looking up glyph index.
9266 (w32font_text_extents): Encode as surrogates if falling back to
9267 functions that need UTF-16 wide chars.
9268
9269 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9270 BMP as surrogates before looking up glyph index.
9271
9272 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9273
9274 * image.c (svg_load_image): Check for failure in return value of
9275 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9276
9277 2008-07-25 Jason Rumney <jasonr@gnu.org>
9278
9279 * w32font.c (Fx_select_font): Reverse sense of second arg.
9280
9281 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9282
9283 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9284 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9285
9286 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9287 (PURESIZE): Use it.
9288
9289 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9290
9291 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9292 * m/alpha.h (TEXT_END):
9293 * m/ibmrs6000.h (TEXT_END):
9294 * m/macppc.h (TEXT_END):
9295 * s/darwin.h (TEXT_END):
9296 * s/msdos.h (TEXT_END): Remove, unused.
9297 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9298 * s/cygwin.h: Remove comment.
9299
9300 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9301 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9302 * m/intel386.h (DOT_GLOBAL_START):
9303 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9304 (USG): Remove, file not used on USG platforms.
9305
9306 * Makefile.in (HAVE_X11): Remove empty #else.
9307
9308 2008-07-24 Andreas Schwab <schwab@suse.de>
9309
9310 * fileio.c (Finsert_file_contents): Properly adjust undo list
9311 after format conversion.
9312
9313 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9314
9315 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9316 (menu_nav_ended): Remove.
9317 (create_menus): Remove signal connect for menu_nav_ended.
9318 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9319 create_menus.
9320 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9321
9322 2008-07-23 Jason Rumney <jasonr@gnu.org>
9323
9324 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9325 with opened font.
9326 (w32font_open): Set font type to gdi.
9327
9328 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9329
9330 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9331
9332 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9333 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9334 defines it.
9335 * unexec.c (ADDR_CORRECT): Define unconditionally.
9336
9337 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9338
9339 * unexec.c: Remove code depending on !COFF and USG, the file is
9340 not used for such systems.
9341
9342 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9343 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9344 (LD_SWITCH_SYSTEM_1): Remove, update users.
9345
9346 * s/darwin.h (DATA_END):
9347 * m/intel386.h (DATA_END):
9348 * m/ibmrs6000.h (DATA_END):
9349 * m/alpha.h (DATA_END): Remove, unused.
9350
9351 * config.in: Regenerate.
9352 * s/ms-w32.h (subprocesses): Define unconditionally.
9353 * s/template.h (subprocesses): Update comment.
9354 * s/vms.h (subprocesses):
9355 * s/usg5-4.h (subprocesses):
9356 * s/hpux10-20.h (subprocesses):
9357 * s/gnu-linux.h (subprocesses):
9358 * s/cygwin.h (subprocesses):
9359 * s/bsd-common.h (subprocesses):
9360 * s/aix4-2.h (subprocesses):
9361 * s/darwin.h (subprocesses): Do not define, defined by default now.
9362
9363 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9364 Remove all references.
9365 (temacs): Add GNUstep specific ld flags.
9366
9367 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9368 similarly to what X does.
9369
9370 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9371
9372 * nsfns.m (x-list-fonts): Remove.
9373 (syms_of_nsfns): Drop the x-list-fonts declaration.
9374 * nsterm.m: Get rid of remaining "//" comments.
9375
9376 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
9377
9378 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9379
9380 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9381 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9382 (Fns_own_selection_internal, Fx_disown_selection_internal)
9383 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9384
9385 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9386 ... */' style of docstrings. Doc fixes.
9387
9388 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9389
9390 * terminfo.c (UP, BC, PC): Undo previous change.
9391
9392 * nsfns.m: Rename ns prefixed functions/variables to the
9393 corresponding x versions. Update references.
9394
9395 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9396
9397 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9398
9399 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9400
9401 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9402 Remove forwarding functions.
9403 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9404 non-static.
9405 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9406 non-static.
9407 (ns_frame_parm_handlers): Use the new names.
9408 (syms_of_nsfns): Move to the end of file.
9409
9410 * nsterm.m (syms_of_nsterm): Move to the end of file.
9411
9412 * dispnew.c (init_display): Remove code for X10.
9413
9414 2008-07-22 Jason Rumney <jasonr@gnu.org>
9415
9416 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9417 bare drive.
9418
9419 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9420
9421 * nsterm.m (syms_of_nsterm): Remove debugging println.
9422
9423 2008-07-22 David Reitter <david.reitter@gmail.com>
9424
9425 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9426 Carbon implementation of the same functionality: execute arbitrary
9427 AppleScript code.
9428
9429 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9430
9431 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9432 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9433 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9434 (Fx_display_mm_height, Fx_display_mm_width)
9435 (Fx_display_backing_store, Fx_display_visual_class)
9436 (Fx_display_save_under, Fx_open_connection)
9437 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9438 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9439 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9440 (Fx_display_pixel_width, Fx_display_pixel_height)
9441 (Fx_display_usable_bounds, Fx_display_planes)
9442 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9443 ... */' style of docstrings.
9444
9445 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9446
9447 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9448 on this platform.
9449 (mips):
9450 * m/iris4d.h (mips): Do not define.
9451 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9452
9453 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9454
9455 * image.c:
9456 * nsfns.m:
9457 * nsselect.m:
9458 * nsterm.h:
9459 * nsterm.m: Rename ns prefixed functions/variables to the
9460 corresponding x versions. Update references.
9461
9462 * m/ibms390x.h (NO_REMAP): Do not undefine.
9463
9464 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9465
9466 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
9467
9468 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9469 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9470 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9471 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9472 (Fns_display_mm_height, Fns_display_mm_width)
9473 (Fns_display_backing_store, Fns_display_visual_class)
9474 (Fns_display_save_under, Fns_open_connection)
9475 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9476 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9477 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9478 (Fns_display_pixel_width, Fns_display_pixel_height)
9479 (Fns_display_usable_bounds, Fx_display_planes)
9480 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9481
9482 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9483
9484 * print.c (print_object): Check print_depth before searching for
9485 circularities.
9486
9487 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
9488
9489 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9490 only sprintf.
9491
9492 2008-07-21 Kenichi Handa <handa@m17n.org>
9493
9494 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9495
9496 2008-07-20 Andreas Schwab <schwab@suse.de>
9497
9498 * syntax.c (find_start_pos, find_start_value)
9499 (find_start_value_byte, find_start_begv, find_defun_start)
9500 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9501
9502 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9503
9504 * s/sol2-3.h: Insert contents of s/sol2.h.
9505 (LD_SWITCH_SYSTEM): Remove redundant definition.
9506 * s/sol2.h: Remove, unused.
9507
9508 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9509
9510 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9511
9512 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9513
9514 * Makefile.in (ns_appdir): Fix typo in find command.
9515
9516 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9517
9518 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9519
9520 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9521 added not supported anymore.
9522
9523 * s/usg5-4-2.h (LIBS_SYSTEM):
9524 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9525
9526 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9527 * s/lynxos.h (GETPGRP_NO_ARG):
9528 * s/hpux10-20.h (NO_SIOCTL_H):
9529 * s/gnu.h (GETPGRP_NO_ARG):
9530 * s/gnu-linux.h (NO_SIOCTL_H):
9531 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9532 * s/cygwin.h (GETPGRP_NO_ARG):
9533 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9534 (C_DEBUG_SWITCH): Remove duplicate definition.
9535
9536 * m/ibms390.h: Remove boilerplate comments.
9537
9538 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9539
9540 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9541 (wait_reading_process_output): Remove code for SunOS, platform not
9542 supported anymore. Use SOLARIS2 instead of sun.
9543
9544 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9545
9546 * font.c (font_open_by_name): Under NS, default lface height to zero.
9547 (font_open_for_lface): Under NS, set size based on frame fontsize.
9548 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9549 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9550
9551 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9552
9553 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9554 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9555 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9556 YES/NO.
9557 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9558 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9559 * Makefile.in (clean): Clear out build destination dir.
9560
9561 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9562
9563 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9564 xterm, xselect.
9565 * lisp.h: Remove declaration of hash_remove.
9566 * nsgui.h: Remove redefinitions of hash_remove.
9567 * fns.c (hash_remove): Rename to hash_remove_from_table.
9568
9569 2008-07-19 Seiji Zenitani <zenitani@mac.com>
9570
9571 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9572 strdup() the family UTF8String before modifying it.
9573
9574 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9575
9576 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9577 NS_FACE_BACKGROUND with 0 instead of nil.
9578 * nsfont.m (nsfont_draw): Same.
9579
9580 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
9581
9582 * nsfns.m (ns_set_background_color): Fix crash.
9583
9584 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
9585
9586 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9587
9588 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9589
9590 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9591
9592 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9593
9594 * gtkutil.c: Include <config.h> instead of "config.h".
9595
9596 * lisp.h (Foverlay_buffer): Add EXFUN.
9597
9598 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9599 child process to complete child_setup. Undo 2005-09-21 change.
9600
9601 * s/darwin.h: Mention setsid after vfork.
9602
9603 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9604
9605 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9606 Depend on macgui.h.
9607
9608 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9609 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9610
9611 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9612 and f19.
9613 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9614
9615 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9616 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9617 Remove enumerators.
9618
9619 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9620 Check if FACE_FROM_ID returns NULL.
9621
9622 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9623
9624 * w32inevt.c (change_frame_size): Remove extern declaration.
9625 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9626 change_frame_size.
9627
9628 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9629
9630 * getloadavg.c: Revert last change (2008-07-15).
9631
9632 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9633
9634 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
9635 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
9636 from configure.
9637
9638 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9639
9640 * s/sol2.h:
9641 * s/sol2-4.h: Reorganize conditionals.
9642
9643 * ecrt0.c: Remove code depending on m68000, not used anymore.
9644
9645 * fns.c (hash_remove): Make static.
9646 * lisp.h (hash_remove): Don't prototype.
9647
9648 * m/ibmrs6000.h:
9649 * m/ibms390x.h:
9650 * m/macppc.h: Remove boilerplate comments.
9651
9652 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9653 Solaris, which does not need them.
9654
9655 * m/vax.h: Remove comments about unsupported systems.
9656
9657 * s/darwin.h: Reorganize ifdefs.
9658
9659 2008-07-17 Andreas Schwab <schwab@suse.de>
9660
9661 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9662
9663 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9664
9665 Use SDATA. Follow coding convention of placing operators at
9666 beginning of next line rather than end of previous line, and placing
9667 spaces around infix operators.
9668
9669 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9670 in case it was defined already.
9671 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9672 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9673 ns_default.
9674 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9675 Lisp_Objects.
9676 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9677 (ns_defined_color, ns_color_to_lisp): Declare.
9678 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9679 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9680 it's accepted even with USE_LISP_UNION_TYPE.
9681 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9682 (update_frame_tool_bar): Remove apparently obsolete tests for
9683 non-integerness of f->tool_bar_lines.
9684 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9685 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9686 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9687 (nsfont_open): Don't confuse NULL for Qnil.
9688 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9689 * menu.h (find_and_call_menu_selection):
9690 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9691 (find_and_return_menu_selection): Always return something.
9692 * frame.h: Include dispextern.h for Display_Info.
9693 (display_x_get_resource): Declare.
9694
9695 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9696
9697 * syntax.c: Remove stdio.h include accidentally introduced in
9698 Emacs.app commit.
9699 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9700 NS_IMPL_COCOA.
9701 * keyboard.c (handle_async_input, input_available_signal): Remove
9702 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9703
9704 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9705
9706 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9707 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9708 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9709 Use SDATA.
9710
9711 * keymap.c: Remove all NS-specific code.
9712 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9713 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9714 where_is_preferred_modifier, return a different value depending on how
9715 preferred is the binding.
9716 (where_is_internal): Adjust accordingly.
9717 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9718 Adjust to new preferred_sequence_p.
9719 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9720 * keyboard.c (parse_solitary_modifier): Not static any more.
9721 * keyboard.h (parse_solitary_modifier): Declare.
9722
9723 2008-07-16 Andreas Schwab <schwab@suse.de>
9724
9725 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9726 of easymenu.
9727
9728 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
9729
9730 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9731 that we don't move off the line.
9732
9733 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9734
9735 * keyboard.c (Qsuper): Remove.
9736 (parse_menu_item): Don't call where_is_internal specially for NS.
9737
9738 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9739
9740 * s/gnu-linux.h: Remove boilerplate comments.
9741
9742 * m/alpha.h (__ELF__): Consolidate conditions.
9743
9744 * m/m68k.h (linux): Use GNU_LINUX instead.
9745 Remove boilerplate comments.
9746
9747 * m/intel386.h: Undo refactoring from previous change.
9748 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9749 too, remove dead code.
9750 (linux): Use GNU_LINUX instead.
9751
9752 2008-07-16 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32gui.h: Repeat 26 June changes lost by last change.
9755
9756 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9757
9758 * systty.h: Remove code for Aix on 386, unsupported platform.
9759
9760 * s/ms-w32.h: Remove boilerplate comments.
9761 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9762
9763 * s/gnu-linux.h (TERM): Remove support.
9764 (HAVE_SYSVIPC): Remove, unused.
9765 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9766 for this system.
9767
9768 * process.c: Remove support for IRIS, unused.
9769 Remove support for TERM, not relevant anymore.
9770
9771 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9772 used with the definition.
9773
9774 * s/aix4-2.h (static): Do not undef.
9775
9776 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9777 only used on Aix.
9778 (HAVE_SYSVIPC): Remove, unused.
9779
9780 * m/hp800.h (CANNOT_DUMP): Do not undef.
9781
9782 * m/alpha.h: Fix comment.
9783
9784 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9785 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9786 used by this configuration.
9787 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9788 * unexec.c: Remove code depending on HPUX and
9789 USG_SHARED_LIBRARIES, not used with this file. Remove code
9790 depending on IRIS, unused. Remove if 0-ed code.
9791
9792 * s/template.h: Remove comments about static.
9793
9794 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9795 Remove if 0-ed code.
9796 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9797 were the same as the default.
9798 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9799 Remove boilerplate comments.
9800 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9801 (HAVE_SYSVIPC): Remove, unused.
9802 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9803
9804 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9805 Remove boilerplate comments.
9806 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9807 Remove boilerplate comments.
9808 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9809 Remove boilerplate comments.
9810 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9811
9812 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9813 USG systems which do not use DATA_SEG_BITS.
9814 Refactor code. Remove boilerplate comments.
9815
9816 * m/ibms390.h:
9817 * m/m68k.h:
9818 * s/bsd-common.h:
9819 * s/cygwin.h:
9820 * s/darwin.h:
9821 * s/freebsd.h:
9822 * s/gnu.h:
9823 * s/msdos.h: Remove boilerplate comments.
9824
9825 * m/iris4d.h: Remove boilerplate comments and code for systems that
9826 do not use this file.
9827 (IRIS_4D): Remove, unused.
9828
9829 * m/mips.h: Remove boilerplate comments and code for systems that
9830 do not use this file.
9831 (SIGN_EXTEND_CHAR):
9832 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9833 * unexmips.c: Remove file, unused.
9834
9835 * editfns.c (Fuser_full_name): Replace the only use of
9836 USER_FULL_NAME with its value.
9837 * config.in: Regenerate.
9838
9839 2008-07-16 David Reitter <david.reitter@gmail.com>
9840
9841 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9842 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9843
9844 2008-07-16 Glenn Morris <rgm@gnu.org>
9845
9846 * emacs.c (system-type): Doc fix.
9847
9848 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9849
9850 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9851 If the cache doesn't work, let's fix it, rather than work around it.
9852
9853 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9854
9855 * Makefile.in: Correct additions for nsfont.o in last commit.
9856 * nsfont.m: New file (forgot last commit).
9857
9858 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9859
9860 * callproc.c (set_initial_environment): Initialize
9861 Vprocess_environment under CANNOT_DUMP (fixes crash when
9862 batch-compiling for bootstrap).
9863
9864 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9865 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9866
9867 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9868 fix crash due to different init order.
9869
9870 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9871
9872 Changes and additions for NeXTstep windowing system (Cocoa and
9873 GNUstep) support.
9874
9875 * Makefile.in:
9876 * config.in: Support defines and build commands for NS port.
9877 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9878 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9879 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9880 windowing.
9881 (struct face): Add synth_ital field.
9882 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9883 (init_display): Initialize Vinitial_window_system to "ns" when so
9884 compiled.
9885 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9886 (display_arg): Use under NS.
9887 (main): Under NS, allocate autorelease pool and handle command line
9888 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9889 (standard_args): Add NS-specific args.
9890 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9891 * font.c (DEFAULT_ENCODING): New variable.
9892 (font_find_for_lface): Use it.
9893 (syms_of_font): Load syms_of_nsfont under NS.
9894 * font.h: Declare nsfont_driver when compiled under NS.
9895 * fontset.c: When compiling under NS, include nsterm.h.
9896 (fontset_from_font): Autoconstruct fontset under NS.
9897 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9898 symbol, document and use it.
9899 (do_switch_frame): When for_deletion under Cocoa, add
9900 Fraise_frame(Qnil).
9901 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9902 (x_get_arg): Allow "yes" and "no" as boolean values.
9903 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9904 Qright under Cocoa.
9905 (focus-follows-mouse): Default to 0 under NS.
9906 * frame.h (enum output_method): Add output_ns.
9907 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9908 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9909 (FRAME_WINDOW_P): NS-specific definition.
9910 * fringe.c (max_used_fringe_bitmap): Make public.
9911 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9912 (getloadavg): Use NeXT code under descendant OS's.
9913 * image.c (includes and header section, x_create_bitmap_from_data)
9914 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9915 (image_background_transparent, x_clear_image_1)
9916 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9917 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9918 (x_to_xcolors, x_from_xcolors, x_disable_image)
9919 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9920 other GUIs, including XPM support using code originally written for
9921 Carbon GUI.
9922 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9923 using NS API.
9924 (image_ascent): Use font metrics macros instead of direct struct field
9925 access.
9926 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9927 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9928 Also, handle NS as GTK for menu bar purposes.
9929 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9930 toolkit where they differ.
9931 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9932 use cachelist, still needed under NS.
9933 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9934 (struct widget_value): Define it here for menu.c.
9935 * keymap.c (includes): Include modifier internals.
9936 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9937 NS.
9938 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9939 support for preferring sequences using certain modifiers, specified by
9940 the FIRSTONLY argument.
9941 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9942 under NS GNUstep implementation.
9943 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9944 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9945 * menu.c: Include nsterm.h under NS.
9946 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9947 (free_menubar_widget_tree_value, update_submenu_strings)
9948 (find_and_call_menu_selection): Treat NS as X and NT.
9949 (find_and_return_menu_selection): New function, used for popup menus.
9950 * nsgui.h:
9951 * nsterm.h:
9952 * nsfns.m:
9953 * nsimage.m:
9954 * nsmenu.m:
9955 * nsselect.m:
9956 * nsterm.m: New files.
9957 * process.c (wait_reading_process_output): Under NS, call ns_select()
9958 instead of plain select().
9959 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9960 beginning of buffer.
9961 * sysselect.h (init_process): Rename when compiling under Cocoa to
9962 avoid name conflict.
9963 * termhooks.h (display_info): Add ns_display_info to union.
9964 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9965 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9966 COCOA environment.
9967 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9968 unexec() signature. (Note, this will dump, but the resulting file
9969 crashes; unexosx is used instead; keeping around for reference and
9970 possible aid in getting dump working under GNUstep.)
9971 * w32gui.h (button_type, widget_value): Remove definitions (now in
9972 keyboard.h).
9973 * window.c: Include nsterm.h when compiling under NS.
9974 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9975 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9976 other GUI windowing systems.
9977 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9978 GTK.
9979 (x_consider_frame_title): Under NS, set icon type and frame
9980 modified-state indicator; use ns_set_name_as_filename() when using
9981 formatted title.
9982 (update_window_cursor): Make public when compiling under NS.
9983 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9984 (hourglass_atimer, Vhourglass_delay
9985 * xfaces.c (header section, init_frame_faces, clear_font_table)
9986 (defined_color, unload_color, x_face_list_fonts)
9987 (prepare_face_for_display): Add NS support parallel to other GUIs.
9988 Emulate GCs like other non-X GUIs.
9989 (split_font_name): Don't lowercase font name under NS.
9990 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9991 under NS.
9992 * s/darwin.h: Add support for compilation under NS.
9993
9994 2008-07-15 Jason Rumney <jasonr@gnu.org>
9995
9996 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9997 (w32_show_hourglass): Rename from show_hourglass.
9998 (w32_hide_hourglass): Rename from hide_hourglass.
9999 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10000 (Vhourglass_delay): Declare extern.
10001 (hourglass_started): Remove.
10002
10003 * xdisp.c (Vhourglass_delay): Remove static.
10004 (hourglass_started, start_hourglass, cancel_hourglass):
10005 Don't include these versions on WINDOWSNT.
10006
10007 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10008
10009 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10010 variables (formerly in xfns.c).
10011 (show_hourglass, hide_hourglass): New prototypes (same).
10012 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10013 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10014 in xfns.c).
10015 (syms_of_xdisp): Declare/initialize display-hourglass,
10016 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10017 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10018 formerly in xfns.c.
10019 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10020 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10021 (start_hourglass, cancel_hourglass): Remove.
10022 (show_hourglass, hide_hourglass): Remove prototypes and static
10023 modifiers.
10024 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10025 hourglass_atimer, hourglass_shown_p declaration/initialization.
10026 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10027 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10028 (start_hourglass, cancel_hourglass): Remove.
10029 (show_hourglass, hide_hourglass): Remove prototypes and static
10030 modifiers.
10031 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10032 hourglass_atimer, hourglass_shown_p declaration/initialization.
10033 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10034 (DEFAULT_HOURGLASS_DELAY): Remove.
10035 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10036 hourglass_shown_p declaration/initialization.
10037
10038 2008-07-14 Jason Rumney <jasonr@gnu.org>
10039
10040 * w32fns.c (w32_get_arg): Remove wrapper function.
10041 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10042 directly.
10043 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10044
10045 2008-07-14 Kenichi Handa <handa@m17n.org>
10046
10047 * xfont.c (xfont_open): Add workaround for X's bug.
10048
10049 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10050
10051 * fontset.c: Include <stdio.h> unconditionally.
10052
10053 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
10054
10055 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10056 for filtering.
10057
10058 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10059
10060 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10061
10062 * m/macppc.h:
10063 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10064
10065 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10066 (SPECIAL_EMACS_INT):
10067 * m/ia64.h (SPECIAL_EMACS_INT):
10068 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10069 * s/gnu.h (NLIST_STRUCT):
10070 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10071 * s/gnu-linux.h (LINUX):
10072 * s/msdos.h (HAVE_FACES):
10073 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10074
10075 * systty.h:
10076 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10077 anymore.
10078
10079 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10080
10081 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10082 always defined as int.
10083
10084 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10085 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10086 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10087 * s/freebsd.h (HAVE_WAIT_HEADER):
10088 * s/bsd-common.h (HAVE_UNION_WAIT):
10089 * s/aix4-2.h (HAVE_WAIT_HEADER):
10090 * m/mips.h (HAVE_UNION_WAIT):
10091 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10092 (COFF, static): Do not define, they are undefined later in the file.
10093
10094 * process.c (update_status): Don't use a union.
10095 (status_convert):
10096 (sigchld_handler): Use int instead of WAITTYPE.
10097
10098 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
10099
10100 * indent.c (Fvertical_motion): Restore hscroll before moving to
10101 goal column.
10102
10103 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10104
10105 * lisp.h: Remove left over code.
10106
10107 2008-07-11 Andreas Schwab <schwab@suse.de>
10108
10109 * lisp.h: Fix logic in last change.
10110
10111 * menu.h: New file.
10112 * menu.c: Include it.
10113 * xmenu.c: Likewise.
10114 * Makefile.in: Update dependencies.
10115
10116 2008-07-11 Kenichi Handa <handa@m17n.org>
10117
10118 * fontset.c (fontset_from_font): Cancel the previous change.
10119
10120 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10121
10122 * lisp.h:
10123 * w32heap.c:
10124 * emacs.c:
10125 * alloc.c: Replace all references of NO_UNION_TYPE with
10126 USE_LISP_UNION_TYPE.
10127
10128 * m/xtensa.h (NO_UNION_TYPE):
10129 * m/vax.h (NO_UNION_TYPE):
10130 * m/template.h (NO_UNION_TYPE):
10131 * m/sparc.h (NO_UNION_TYPE):
10132 * m/mips.h (NO_UNION_TYPE):
10133 * m/macppc.h (NO_UNION_TYPE):
10134 * m/m68k.h (NO_UNION_TYPE):
10135 * m/iris4d.h (NO_UNION_TYPE):
10136 * m/intel386.h (NO_UNION_TYPE):
10137 * m/ibms390x.h (NO_UNION_TYPE):
10138 * m/ibms390.h (NO_UNION_TYPE):
10139 * m/ibmrs6000.h (NO_UNION_TYPE):
10140 * m/ia64.h (NO_UNION_TYPE):
10141 * m/hp800.h (NO_UNION_TYPE):
10142 * m/arm.h (NO_UNION_TYPE):
10143 * m/amdx86-64.h (NO_UNION_TYPE):
10144 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10145 defining it the same.
10146
10147 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
10148
10149 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10150
10151 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10152
10153 * fileio.c:
10154 * sysdep.c:
10155 * systty.h:
10156 * m/ibmrs6000.h:
10157 * m/iris4d.h:
10158 * s/aix4-2.h:
10159 * s/freebsd.h:
10160 * s/gnu-linux.h:
10161 * s/hpux10-20.h:
10162 * s/hpux11.h:
10163 * s/netbsd.h:
10164 * s/sol2-3.h:
10165 * s/sol2-4.h:
10166 * s/sol2.h:
10167 * s/usg5-4.h:
10168 * s/vms.h: Remove references to unused variables.
10169
10170 2008-07-10 Andreas Schwab <schwab@suse.de>
10171
10172 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10173 pattern before matching the generic family.
10174
10175 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10176
10177 * unexec.c:
10178 * s/vms.h:
10179 * s/usg5-4-2.h:
10180 * s/sol2-5.h:
10181 * s/freebsd.h:
10182 * s/darwin.h: Remove dead code.
10183
10184 * m/template.h:
10185 * m/sparc.h:
10186 * m/mips.h:
10187 * m/m68k.h:
10188 * m/iris4d.h:
10189 * m/intel386.h:
10190 * m/ibms390x.h:
10191 * m/ibms390.h:
10192 * m/ia64.h:
10193 * m/hp800.h:
10194 * m/arm.h:
10195 * m/amdx86-64.h: Remove dead code and references to unused
10196 and compiler defined symbols.
10197
10198 * unexmips.c:
10199 * unexelf.c: Remove references to desupported systems.
10200
10201 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10202
10203 * m/powermac.h: Remove boilerplate comments.
10204 (NO_REMAP): Remove unused definition.
10205
10206 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10207 define them.
10208
10209 2008-07-10 Kenichi Handa <handa@m17n.org>
10210
10211 * xfont.c (xfont_open): Log the reason of failure.
10212
10213 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10214
10215 * fontset.c (fontset_get_font_group):
10216 * font.c (font_check_otf): Specify argument types.
10217
10218 2008-07-09 Kenichi Handa <handa@m17n.org>
10219
10220 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10221 non-ASCII char is found.
10222
10223 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10224 (reorder_font_vector): Change the arg preferred_family to font.
10225 Prefer the spec matching with font.
10226 (fontset_get_font_group): New function.
10227 (fontset_find_font): Change the format of an element of a realized
10228 fontset. Use fontset_get_font_group.
10229 (fontset_font): Try the current fontset, the default fontset, the
10230 fallbacks of the current fontset, and the fallbacks of the default
10231 fontset in this order.
10232 (face_for_char): Delete the shortcut to use the current font.
10233 (fontset_from_font): Don't set fonts for Latin in the fontset.
10234
10235 * font.h (font_make_object, font_match_p): Adjust prototypes.
10236
10237 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10238
10239 * font.c (font_make_object): New arg entity and pixelsize.
10240 (font_check_otf_features, font_check_otf): New functions.
10241 (font_match_p): Check :lang, :script, and :otf properties.
10242
10243 * xfont.c (xfont_open): Adjust it for the change of
10244 font_make_object.
10245 (xfont_text_extents): Fix initial setting of metrics.
10246
10247 * ftfont.c (struct ftfont_info): New member index, delete member
10248 fc_charset_idx. Make the member order compatible with struct
10249 xftfont_info.
10250 (fc_charset_table): Change charset names to registry names.
10251 (ftfont_pattern_entity): Delete the args registry and
10252 fc_charset_idx. Change the value of :font-entity property
10253 to (FONTNAME . INDEX). Always set :registry property to
10254 `iso10646-1'.
10255 (struct ftfont_cache_data): New struct.
10256 (ftfont_lookup_cache): New arg for_face.
10257 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10258 (ftfont_driver): Set the member otf_capability.
10259 (ftfont_get_charset): Adjust it for the change of
10260 fc_charset_table.
10261 (OTF_TAG_SYM): New macro.
10262 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10263 for the change of fc_charset_table.
10264 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10265 ftfont_pattern_entity. Add FC_INDEX to objset.
10266 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10267 and ftfont_pattern_entity.
10268 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10269 font_make_object, struct ftfont_info.
10270 (ftfont_has_char): Use ftfont_get_fc_charset.
10271 (ftfont_otf_features, ftfont_otf_capability): New functions.
10272 (ftfont_shape): Use ftfont_get_otf.
10273 (ftfont_text_extents): Fix initial setting of metrics.
10274
10275 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10276 member order compatible with struct ftfont_info.
10277 (xftfont_open): Add FC_CHARSET to the pattern. Set
10278 xftfont_info->ft_size. Don't unlock the face. Check BDF
10279 properties if appropriate.
10280 (xftfont_close): Unlock the face.
10281 (xftfont_anchor_point, xftfont_shape): Deleted.
10282 (syms_of_xftfont): Don't set members anchor_point and shape of
10283 xftfont_driver.
10284
10285 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10286 font_make_object.
10287
10288 * w32font.c (w32font_open): Adjust it for the change of
10289 font_make_object.
10290 (w32font_open_internal): Don't set properties of font_object here.
10291
10292 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
10293
10294 * macfns.c (x_create_tip_frame):
10295 * w32fns.c (x_create_tip_frame):
10296 * xfns.c (x_create_tip_frame): Pass parameter argument to
10297 face-set-after-frame-default.
10298
10299 * xfaces.c (Finternal_merge_in_global_face): Save merged
10300 attributes for the default face back into the face vector.
10301
10302 2008-07-08 Andreas Schwab <schwab@suse.de>
10303
10304 * fontset.h: Declare fontset_from_font. Don't declare
10305 new_fontset_from_font and fontset_from_font_name.
10306 * xterm.c: Include "fontset.h".
10307 * Makefile.in (xterm.o): Update dependencies.
10308
10309 2008-07-08 Glenn Morris <rgm@gnu.org>
10310
10311 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10312 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10313
10314 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
10315
10316 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10317 (x_set_frame_parameters): Don't bind it.
10318
10319 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
10320
10321 * w32fns.c (map_w32_filename): Declare extern.
10322
10323 2008-07-07 Jason Rumney <jasonr@gnu.org>
10324
10325 * w32term.c (WS_EX_LAYERED): Define if not already.
10326
10327 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
10328
10329 * xfaces.c (set_font_frame_param): Don't try to set the font
10330 parameter if it is still unspecified in the lface.
10331
10332 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10333
10334 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10335 face if it didn't already exist.
10336
10337 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10338
10339 2008-07-05 Andreas Schwab <schwab@suse.de>
10340
10341 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10342
10343 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10344
10345 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10346 word-wrapping.
10347 (IT_DISPLAYING_WHITESPACE): New macro.
10348 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10349 when word-wrapping. Simplify word-wrapping logic. Use correct
10350 pixel positions when saving copies of the iterator.
10351 (display_line): Use proper wrap point if the last character on a
10352 line was preceded by whitespace.
10353
10354 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10355
10356 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10357
10358 2008-07-04 Kenichi Handa <handa@m17n.org>
10359
10360 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10361
10362 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10363
10364 2008-07-02 Jason Rumney <jasonr@gnu.org>
10365
10366 * xfns.c (syms_of_xfns): Only define x-select-font when both
10367 HAVE_FREETYPE and USE_GTK.
10368
10369 * xdisp.c (next_element_from_display_vector): Move assignment out
10370 of if statement.
10371
10372 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10373
10374 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10375
10376 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10377 (syms_of_fileio): Initialize and export them.
10378 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10379
10380 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10381 (Fsystem_move_file_to_trash): New function.
10382 (syms_of_w32fns): Export it to lisp.
10383
10384 2008-07-01 Jason Rumney <jasonr@gnu.org>
10385
10386 * w32font.c (w32font_text_extents): Don't count overhang as part
10387 of width.
10388
10389 2008-06-30 Miles Bader <miles@gnu.org>
10390
10391 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10392 Add `avoid_cursor_p' field.
10393
10394 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10395 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10396 (append_glyph, append_composite_glyph, produce_image_glyph)
10397 (append_stretch_glyph): Initialize avoid_cursor_p.
10398 (get_it_property): Rename from `get_line_height_property'.
10399 (x_produce_glyphs): Use get_it_property.
10400 (handle_line_prefix, push_display_prop): New functions.
10401 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10402 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10403 New variables.
10404 (syms_of_xdisp): Initialize them.
10405
10406 2008-06-30 Kenichi Handa <handa@m17n.org>
10407
10408 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10409 XftDefaultSubstitute (they are called in XftFontMatch).
10410 (xftfont_open): Fix args to ftfont_font_format.
10411
10412 * ftfont.c (fc_charset_table): New member lang.
10413 (ftfont_resolve_generic_family): New arg pattern.
10414 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
10415 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10416 (ftfont_open): Fix args to ftfont_font_format.
10417 (ftfont_font_format): New arg filename.
10418
10419 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
10420
10421 * xfaces.c (Finternal_merge_in_global_face): If default face was
10422 modified, realize it again. Update the font face attribute.
10423
10424 2008-06-29 Jason Rumney <jasonr@gnu.org>
10425
10426 * w32term.c (x_set_frame_alpha): Fix logic.
10427
10428 2008-06-29 Kenichi Handa <handa@m17n.org>
10429
10430 * fontset.c (Finternal_char_font): Return font-object instead of
10431 font-name.
10432
10433 * composite.c (get_composition_id): Fix the width calculation for TAB.
10434
10435 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10436
10437 * indent.c (Fvertical_motion): Properly handle float column arg.
10438
10439 2008-06-28 Jason Rumney <jasonr@gnu.org>
10440
10441 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10442 (pfnSetLayeredWindowAttributes): New function pointer.
10443 (w32_initialize): Initialize it when supported.
10444 (x_set_frame_alpha): New function.
10445
10446 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10447 (w32_frame_parm_handlers): Set alpha handler.
10448
10449 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10450
10451 2008-06-27 Jason Rumney <jasonr@gnu.org>
10452
10453 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10454 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10455 (w32_to_x_charset, x_to_w32_charset)
10456 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10457 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10458 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10459 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10460 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10461 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10462 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10463 (Qw32_charset_unicode): Remove.
10464 (syms_of_w32fns): Update for above changes.
10465
10466 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10467 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10468 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10469 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10470 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10471 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10472 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10473 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10474 (syms_of_w32font): Update for above changes.
10475
10476 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10477
10478 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10479 removed #if.
10480 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10481
10482 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
10483 Eli Zaretskii <eliz@gnu.org>
10484
10485 * makefile.w32-in (LOCAL_FLAGS):
10486 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10487
10488 * sysdep.c (_spawnlp, _getpid):
10489 Declare with explicit _cdecl instead of _CRTAPI1.
10490
10491 * editfns.c (Fget_internal_run_time):
10492 Check for WINDOWSNT with #ifdef, not #if.
10493
10494 2008-06-26 Jason Rumney <jasonr@gnu.org>
10495
10496 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10497
10498 * w32term.c (x_draw_glyph_string_foreground)
10499 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10500 Use FONT_HANDLE macro.
10501 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10502
10503 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10504 (uniscribe_encode_char): Use FONT_HANDLE macro.
10505
10506 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10507 (w32font_text_extents): Use precast w32_font.
10508 (w32font_close): Free cached metrics.
10509 (w32font_open_internal): Allocate space for name on stack.
10510
10511 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
10512
10513 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10514
10515 2008-06-26 Jason Rumney <jasonr@gnu.org>
10516
10517 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10518 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10519
10520 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
10521
10522 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10523
10524 2008-06-26 Jason Rumney <jasonr@gnu.org>
10525
10526 * w32bdf.c, w32bdf.h: Remove obsolete files.
10527
10528 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10529
10530 * w32gui.h: Don't include w32bdf.h.
10531 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10532 Remove obsolete font support.
10533
10534 * w32font.h (struct w32font_info): Remove compat_w32_font.
10535 Add hfont member.
10536 (FONT_COMPAT): Remove obsolete macro.
10537
10538 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10539 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10540 (w32font_open_internal): Remove compat code. Set new hfont member.
10541 (Fx_select_font): Use new hfont member.
10542
10543 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10544 (uniscribe_encode_char): Use new hfont member.
10545
10546 * w32term.c (x_draw_glyph_string_foreground)
10547 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10548 (x_draw_glyph_string): Use metrics in w32font_info.
10549
10550 2008-06-26 Kenichi Handa <handa@m17n.org>
10551
10552 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10553
10554 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10555
10556 * unexnext.c:
10557 * m/ews4800.h:
10558 * m/hp9000s300.h:
10559 * m/ibm370aix.h:
10560 * m/mips-siemens.h:
10561 * m/ncr386.h:
10562 * m/next.h:
10563 * m/pmax.h:
10564 * m/powerpcle.h:
10565 * m/tandem-s2.h:
10566 * s/386bsd.h:
10567 * s/bsd386.h:
10568 * s/bsd4-1.h:
10569 * s/bsd4-2.h:
10570 * s/bsdos2-1.h:
10571 * s/bsdos2.h:
10572 * s/bsdos3.h:
10573 * s/bsdos4.h:
10574 * s/nextstep.h:
10575 * s/ultrix4-3.h:
10576 * s/usg5-0.h:
10577 * s/usg5-2-2.h:
10578 * s/usg5-2.h:
10579 * s/usg5-4-3.h:
10580 * s/ux4800.h:
10581 * s/uxpds.h:
10582 * s/uxpv.h: Remove support for obsolete systems.
10583 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
10584 Remove, insert contents in s/hpux10-20.h.
10585 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10586 Remove, insert contents in s/aix4-2.h.
10587 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10588 * s/bsd4-3.h: Rename to ...
10589 * s/bsd-common.h: ... this.
10590 * data.c:
10591 * doc.c:
10592 * ecrt0.c:
10593 * emacs.c:
10594 * fileio.c:
10595 * floatfns.c:
10596 * keyboard.c:
10597 * mem-limits.h:
10598 * print.c:
10599 * process.c:
10600 * sysdep.c:
10601 * syssignal.h:
10602 * systty.h:
10603 * syswait.h:
10604 * term.c:
10605 * unexec.c:
10606 * unexelf.c:
10607 * unexhp9k800.c:
10608 * m/hp800.h:
10609 * m/ibmrs6000.h:
10610 * m/mips.h:
10611 * m/vax.h:
10612 * s/darwin.h:
10613 * s/freebsd.h:
10614 * s/gnu.h:
10615 * s/ms-w32.h:
10616 * s/msdos.h:
10617 * s/netbsd.h:
10618 * s/template.h: Remove references to obsolete variables.
10619
10620 * Makefile.in: Add dependencies for all unexec files.
10621 (admindir): Remove unused variable.
10622 (UNEXEC_SRC): Remove references.
10623
10624 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
10625
10626 * xfns.c (x_default_font_parameter): If Xft is available, first
10627 try Monospace-12 for the default font.
10628
10629 2008-06-25 Jason Rumney <jasonr@gnu.org>
10630
10631 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10632
10633 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10634
10635 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10636
10637 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10638
10639 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
10640
10641 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10642 <scroll-conservatively>: Fix typo in docstring.
10643
10644 * xselect.c (Fx_send_client_event): Doc fix.
10645
10646 2008-06-25 Kenichi Handa <handa@m17n.org>
10647
10648 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10649
10650 * font.c (font_parse_fcname): Remove unused variables.
10651 (font_sort_entites): Delete the arg SPEC. Caller changed.
10652 Fix for the case of ! best_only.
10653 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10654
10655 * lisp.h (Fstring_to_unibyte): EXFUN it.
10656
10657 * character.h (str_to_unibyte): Extern it.
10658
10659 * character.c (str_to_unibyte): New function.
10660
10661 * fns.c (Fstring_to_unibyte): New function.
10662 (syms_of_fns): Defsubr it.
10663
10664 2008-06-24 Kenichi Handa <handa@m17n.org>
10665
10666 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10667 DPI too.
10668 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10669
10670 2008-06-24 Andreas Schwab <schwab@suse.de>
10671
10672 * Makefile.in (${lispsource}loaddefs.el): Rename from
10673 ../lisp/loaddefs.el.
10674 (bootstrap-clean): Do what distclean does but don't remove
10675 Makefile.
10676 (distclean): Depend on bootstrap-clean and remove Makefile.
10677
10678 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
10679
10680 * buffer.h (struct buffer): New member word_wrap.
10681
10682 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10683 word-wrap.
10684 (init_buffer_once): Initialize them.
10685
10686 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10687 line_wrap enum possessing three possible values.
10688
10689 * termopts.h: Replace truncate_partial_width_windows with
10690 Vtruncate_partial_width_windows.
10691
10692 * dispnew.c (direct_output_for_insert): Avoid direct output when
10693 inserting a space with word wrap on.
10694
10695 * indent.c (compute_motion): Obey integer values of
10696 truncate-partial-width-windows.
10697
10698 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10699 replacing truncate_partial_width_windows.
10700 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10701 truncate only if the window width is below that integer.
10702 (start_display, resize_mini_window, produce_stretch_glyph)
10703 (display_string, move_it_in_display_line_to): Use line_wrap.
10704 (back_to_previous_visible_line_start, reseat_1): Reset
10705 string_from_display_prop_p.
10706 (display_line): Extend default face to end of line when wrapping.
10707
10708 2008-06-24 Kim F. Storm <storm@cua.dk>
10709
10710 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10711 to wrap continued lines at word boundaries.
10712
10713 2008-06-24 Jason Rumney <jasonr@gnu.org>
10714
10715 * font.c (Ffont_face_attributes): Multiply pixel size before point
10716 conversion to avoid multiplying rounding error.
10717
10718 2008-06-23 Jason Rumney <jasonr@gnu.org>
10719
10720 * w32term.c (x_draw_glyph_string_background)
10721 (x_draw_glyph_string): Remove old bdf font code.
10722
10723 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10724
10725 2008-06-22 Kenichi Handa <handa@m17n.org>
10726
10727 * font.c (font_find_for_lface): Try the adstyle specified in
10728 the property of LFACE_FONT of LFACE (if any).
10729
10730 2008-06-21 Seiji Zenitani <zenitani@mac.com>
10731 Ryo Yoshitake <ryo@shiftmode.net>
10732
10733 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10734
10735 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10736
10737 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10738 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10739 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10740 (witness-emacs): Remove.
10741 (lisp, shortlisp): Move loaddefs.el earlier.
10742 (mostlyclean): Forget about witness-emacs.
10743
10744 2008-06-22 Glenn Morris <rgm@gnu.org>
10745
10746 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10747 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10748
10749 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * Makefile.in (PRECOMP): Remove.
10752 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10753 (witness-emacs): Run `compile-first'.
10754 (.el.elc): Use the new compile-onefile target.
10755
10756 2008-06-21 Kenichi Handa <handa@m17n.org>
10757
10758 * xftfont.c (xftfont_open): Handle QCembolden only when
10759 FC_EMBOLDEN is defined.
10760
10761 2008-06-21 Andreas Schwab <schwab@suse.de>
10762
10763 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10764 (.el.elc): Likewise.
10765
10766 2008-06-21 Miles Bader <miles@gnu.org>
10767
10768 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10769 build dir, not the lisp source dir.
10770
10771 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10772
10773 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10774 (bootstrapclean): Remove.
10775 (.el.elc): New rule.
10776 (PRECOMP): New var.
10777 (../lisp/subdirs.el): Remove.
10778 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10779 (witness-emacs): New target.
10780 (mostlyclean): Remove witness-emacs as well.
10781 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10782 Add witness-emacs dependency.
10783
10784 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
10785
10786 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10787 defined by the font.
10788
10789 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10790
10791 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10792 (bootstrap-clean): New target that keeps TAGS around.
10793 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10794 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10795
10796 2008-06-20 Jason Rumney <jasonr@gnu.org>
10797
10798 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10799 Remove obsolete font code.
10800
10801 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10802 to determine language support.
10803
10804 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 * sysdep.c (cfsetspeed): New fun extracted from the code.
10807 (cfmakeraw): Move before first use.
10808
10809 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10810
10811 * sysdep.c (cfmakeraw): Provide fallback implementation.
10812 (serial_configure): Provide fallback implementation of cfsetspeed.
10813
10814 2008-06-20 Kenichi Handa <handa@m17n.org>
10815
10816 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10817 the pattern.
10818
10819 * fontset.c (fontset_from_font): Copy font_spec before changing
10820 the elements.
10821
10822 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10823
10824 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10827 for explicit `font' parameters.
10828
10829 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10830
10831 2008-06-19 Kenichi Handa <handa@m17n.org>
10832
10833 * frame.c: Include <ctype.h>.
10834 (x_set_font_backend): Allow spacing characters in the X resource
10835 for FontBackend.
10836
10837 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 * w32fns.c, xfns.c (Qfont_param): New var.
10840 (syms_of_w32fns): Initialize it.
10841 (x_default_font_parameter): Record explicit `font' into
10842 `font-parameter'.
10843
10844 2008-06-18 Kenichi Handa <handa@m17n.org>
10845
10846 * font.c (font_parse_xlfd): Fix previous change.
10847 (font_parse_fcname): Don't use :fc-unknown-spec.
10848 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10849 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10850 (font_add_log): Prepend the driver name to the resulting fonts.
10851
10852 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10853 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10854 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10855
10856 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10857 (QCembolden): New variables.
10858 (syms_of_xftfont): DEFSYM them.
10859 (xftfont_open): Call XftFontMatch. Don't trust the result of
10860 XftTextExtents8 if the pixel_size is less than 5.
10861
10862 2008-06-18 Andreas Schwab <schwab@suse.de>
10863
10864 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10865 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10866
10867 2008-06-18 Jason Rumney <jasonr@gnu.org>
10868
10869 * w32font.c (w32font_list, w32font_match): Add logging.
10870
10871 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10872
10873 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
10874
10875 * font.c (font_parse_fcname): Store divider characters for
10876 unknown-spec list. For known key symbols, intern using correct
10877 symbol name.
10878
10879 2008-06-17 Kenichi Handa <handa@m17n.org>
10880
10881 * xfaces.c (realize_default_face): If the frame is not on window
10882 system, set the fontset of face to nil.
10883
10884 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10885
10886 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10887
10888 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10889
10890 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10891 (build_font_name_from_vector): Delete externs.
10892
10893 * xfaces.c (struct font_name): Don't declare.
10894
10895 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10896
10897 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10898
10899 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10900
10901 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10902
10903 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10904
10905 * font.c (Ffont_spec): Fix usage in docstring.
10906 (Ffont_face_attributes): Doc fix.
10907
10908 2008-06-16 Andreas Schwab <schwab@suse.de>
10909
10910 * font.c (Ffont_face_attributes): Fix definition.
10911
10912 2008-06-16 Jason Rumney <jasonr@gnu.org>
10913
10914 * font.h (font_style_symbolic_from_value): Remove.
10915
10916 * font.c (font_style_symbolic_from_value): Remove.
10917 (font_style_symbolic): Revert to pre 2008-06-13 version.
10918
10919 * w32font.c (w32_to_fc_weight): New function.
10920 (w32font_full_name, logfont_to_fcname): Use it.
10921
10922 2008-06-16 Kenichi Handa <handa@m17n.org>
10923
10924 * font.c (font_check_object): Delete it.
10925 (font_clear_cache): Check if a font-object is alive.
10926 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10927 font-object to nil.
10928 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10929 (font_at): Don't call font_check_object.
10930 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10931
10932 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10933
10934 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10935
10936 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10937
10938 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10939
10940 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
10941
10942 * font.c (font_parse_fcname): Only one decimal point.
10943 (font_unparse_fcname): Handle data in family and foundry indices
10944 as symbols, not strings.
10945 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10946
10947 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10948
10949 * font.h (font_unparse_gtkname): Add prototype.
10950
10951 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10952
10953 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10954
10955 2008-06-15 Andreas Schwab <schwab@suse.de>
10956
10957 * font.c (font_update_drivers): Fix crash when no drivers match.
10958
10959 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10960
10961 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10962 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10963
10964 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10965
10966 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10967
10968 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10969
10970 * process.c (Fserial_process_configure, Fprocess_send_eof):
10971 Use EQ to compare Lisp_Objects.
10972
10973 2008-06-13 Jason Rumney <jasonr@gnu.org>
10974
10975 * w32fns.c (Fw32_select_font): Remove old font API function.
10976
10977 * w32font.c (logfont_to_fcname): New function.
10978 (Fx_select_font): New font dialog function compatible with
10979 GTK/fontconfig version.
10980
10981 * font.c (font_style_symbolic_from_value): New function.
10982 (font_style_symbolic): Use it.
10983
10984 * font.h (font_style_symbolic_from_value): Declare new function.
10985
10986 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
10987
10988 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10989 <font-width-table>: Fix typos in docstrings.
10990
10991 2008-06-13 Daniel Engeler <engeler@gmail.com>
10992
10993 These changes add serial port access.
10994 * process.c: Add HAVE_SERIAL.
10995 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10996 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10997 (list_processes_1, select_wrapper, Fstop_process)
10998 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10999 (status_notify): Modify to handle serial processes.
11000 [HAVE_SERIAL] (Fserial_process_configure)
11001 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11002 New functions.
11003 * process.h (struct Lisp_Process): Add `type'.
11004 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11005 New functions.
11006 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11007 serial ports.
11008 (serial_open, serial_configure): New functions.
11009 * w32.h: Add FILE_SERIAL.
11010 (struct _child_process): Add ovl_read, ovl_write.
11011
11012 2008-06-13 Kenichi Handa <handa@m17n.org>
11013
11014 * dispextern.h (enum lface_attribute_index): New member
11015 LFACE_FOUNDRY_INDEX.
11016
11017 * font.c (font_score): Delete arg alternate_families. Check only
11018 weight, slant, width, and size. Ignore the difference of alias
11019 style symbols.
11020 (font_sort_entites): Adjust for the above change. Reflect the
11021 order of font-driver to scores.
11022 (font_list_entities): Don't check alternate_familes here.
11023 (font_clear_prop): Handle foundry.
11024 (font_update_lface): Don't parse "foundry-family" form here.
11025 Handle FONT_FOUNDRY_INDEX.
11026 (font_find_for_lface): Likewise. Handle alternate families here.
11027 If registry is nil, try iso8859-1 and ascii-0.
11028 (font_open_for_lface): Pay attention to size in ENTITY.
11029 (font_open_by_name): Simplify by calling font_load_for_lface.
11030 (free_font_driver_list): Delete it.
11031 (font_update_drivers): Preserve the order of backends.
11032 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11033 of font_score and font_sort_entites.
11034 (font_update_sort_order): Likewise.
11035
11036 * xfaces.c (LFACE_FOUNDRY): New macro.
11037 (check_lface_attrs): Check foundry.
11038 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11039 (merge_face_vectors): Check foundry.
11040 (merge_face_ref): Likewise.
11041 (Finternal_set_lisp_face_attribute): Likewise.
11042 (x_update_menu_appearance): Likewise.
11043 (Finternal_get_lisp_face_attribute): Likewise.
11044 (lface_hash): Likewise.
11045 (lface_same_font_attributes_p): Likewise.
11046 (x_supports_face_attributes_p): Likewise.
11047 (tty_supports_face_attributes_p): Likewise.
11048 (Finternal_set_alternative_font_family_alist): Intern strings.
11049 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11050 (realize_default_face): Set LFACE_FOUNDRY (lface).
11051
11052 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11053 font-driver at first.
11054
11055 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11056
11057 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11058
11059 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11060
11061 2008-06-12 Jim Meyering <meyering@redhat.com>
11062
11063 Make unexec_free handle NULL the same way free does.
11064 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11065
11066 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11067
11068 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11069 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11070 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11071 (WEAK_ALIAS): Simplify.
11072 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11073 when searching a unibyte buffer.
11074
11075 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
11076
11077 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11078
11079 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
11080
11081 * w32font.c: Include ctype.h.
11082
11083 2008-06-11 Jason Rumney <jasonr@gnu.org>
11084
11085 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11086 misreported as space.
11087 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11088 as aliases for registry iso10646-1.
11089
11090 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11091
11092 * buffer.c (clone_per_buffer_values): Skip `name'.
11093
11094 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
11095
11096 * font.c (font_parse_fcname): Fix last change; accept decimal
11097 points in font size.
11098
11099 2008-06-10 Jason Rumney <jasonr@gnu.org>
11100
11101 * w32uniscribe.c (add_opentype_font_name_to_list):
11102 Skip non unicode fonts.
11103
11104 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11105
11106 * xfns.c (Fx_font_dialog): New function.
11107
11108 * gtkutil.c (xg_dialog_response_cb): Rename from
11109 xg_file_response_callback.
11110 (pop_down_dialog): Rename from pop_down_file_dialog.
11111 (xg_get_file_name): Callers changed.
11112 (xg_get_font_name): New function.
11113
11114 * gtkutil.h (xg_get_font_name): Insert prototype.
11115
11116 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11119 x_underline_minimum_display_offset.
11120 (syms_of_xdisp): Declare it here rather than in xterm.c.
11121 * dispextern.h (underline_minimum_offset): Declare it.
11122 * w32term.c (x_draw_glyph_string): Use it.
11123 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11124 (syms_of_xterm): Don't declare it any more.
11125 (x_draw_glyph_string): Adjust to the new name.
11126
11127 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
11128
11129 * xterm.c (x_underline_minimum_display_offset): New var.
11130 (x_draw_glyph_string): Use it.
11131 (syms_of_xterm): Declare it.
11132
11133 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11134
11135 * font.c (font_parse_fcname): Accept GTK-style font names too.
11136
11137 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11138
11139 * dired.c (file_name_completion): Don't return t if the match is exact
11140 but with different capitalization.
11141 * minibuf.c (Ftry_completion): Simplify.
11142
11143 * window.c (Vwindow_point_insertion_type): New var.
11144 (set_window_buffer): Use it.
11145 (syms_of_window): Init and export it to Lisp.
11146
11147 2008-06-10 Kenichi Handa <handa@m17n.org>
11148
11149 * font.h (font_intern_prop): Prototype adjusted.
11150
11151 * font.c (font_intern_prop): New arg force_symbol.
11152 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11153 Adjust for the change of font_intern_prop.
11154
11155 * ftfont.c (ftfont_pattern_entity):
11156 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11157 (w32_registry):
11158 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11159 the change of font_intern_prop.
11160
11161 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
11162
11163 * w32menu.c (digest_single_submenu): Declare extern.
11164
11165 2008-06-09 Jason Rumney <jasonr@gnu.org>
11166
11167 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11168
11169 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11170 (parse_single_submenu): Remove.
11171 (digest_single_submenu): Remove.
11172 (syms_of_w32menu): Don't initialise variables that have moved
11173 to menu.c.
11174 (set_frame_menubar): Sync with version in xmenu.c.
11175 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11176
11177 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11178 Make static again.
11179
11180 2008-06-09 Jason Rumney <jasonr@gnu.org>
11181
11182 Changes to w32 files related to the move of common menu code
11183 to menu.c on 2008-06-08 by Chong Yidong.
11184
11185 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11186 defs to w32gui.h.
11187 (single_keymap_panes, push_menu_item, push_menu_pane):
11188 Make globally visible.
11189
11190 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11191 (local_free, malloc_widget_value, free_widget_value)
11192 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11193 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11194 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11195 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11196 (menu_items, menu_items_allocated, menu_items_used)
11197 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11198 (init_menu_items, finish_menu_items, discard_menu_items)
11199 (grow_menu_items, push_submenu_start, push_submenu_end)
11200 (push_left_right_boundary, push_menu_pane, push_menu_item)
11201 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11202 (free_menubar_widget_tree_value, parse_single_submenu)
11203 (update_submenu_strings): Remove functions.
11204 (xmalloc_widget_value): Remove and declare extern.
11205
11206 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11207 (OBJ1): Build it.
11208
11209 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11210 (local_heap, local_alloc, local_free, malloc_widget_value)
11211 (free_widget_value): Define here.
11212
11213 2008-06-09 Kenichi Handa <handa@m17n.org>
11214
11215 * font.h (Qascii_0): Extern it.
11216
11217 * font.c (Qascii_0): New variable.
11218 (syms_of_font): DEFSYM it.
11219 (font_open_by_name): If the registry "iso8859-1" fails, try also
11220 "ascii-0".
11221
11222 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11223
11224 2008-06-08 Kenichi Handa <handa@m17n.org>
11225
11226 * .gdbinit (xfont): New command.
11227
11228 2008-06-08 Andreas Schwab <schwab@suse.de>
11229
11230 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11231 * Makefile.in (menu.o): Update dependencies.
11232
11233 * Makefile.in (obj): Always add menu.o.
11234 * emacs.c (main): Always call syms_of_menu.
11235 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11236
11237 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
11238
11239 * Makefile.in: Compile menu.c.
11240
11241 * lisp.h: Declare syms_of_menu.
11242
11243 * emacs.c (main): Call syms_of_menu.
11244
11245 * keyboard.h: Relocate platform-independent menu definitions from
11246 xmenu.c.
11247
11248 * menu.c: New file. Relocate platform-independent menu
11249 definitions from xmenu.c. Suggested by Adrian Robert.
11250
11251 * xmenu.c: Remove platform-independent menu definitions.
11252 (menu_items menu_items_inuse, menu_items_allocated)
11253 (menu_items_used, menu_items_n_panes)
11254 (menu_items_submenu_depth): Move to keyboard.h.
11255 (init_menu_items, finish_menu_items, unuse_menu_items)
11256 (discard_menu_items, restore_menu_items, save_menu_items)
11257 (grow_menu_items, push_submenu_start, push_submenu_end)
11258 (push_left_right_boundary, push_menu_pane, push_menu_item)
11259 (keymap_panes, single_keymap_panes, single_menu_item)
11260 (list_of_panes, list_of_items, find_and_call_menu_selection)
11261 (xmalloc_widget_value, free_menubar_widget_value_tree)
11262 (parse_single_submenu, digest_single_submenu)
11263 (update_submenu_strings): Move to menu.c.
11264
11265 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11266
11267 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11268
11269 2008-06-06 Miles Bader <miles@gnu.org>
11270
11271 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11272 face, not frame default.
11273
11274 2008-06-05 Martin Rudalics <rudalics@gmx.at>
11275
11276 * window.c (pop_up_windows, pop_up_frames)
11277 (display_buffer_reuse_frames, Vpop_up_frame_function)
11278 (Vdisplay_buffer_function, Veven_window_heights)
11279 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11280 (Vspecial_display_function, Vsame_window_buffer_names)
11281 (Vsame_window_regexps, split_height_threshold)
11282 (Vsplit_window_preferred_function): Move those vars to window.el.
11283 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11284 (Fdisplay_buffer): Move those functions to window.el.
11285 (syms_of_window): Remove corresponding declarations.
11286 (display_buffer): New function.
11287 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11288 * dispnew.c (Flast_nonminibuf_frame): New function.
11289 * buffer.c (Fpop_to_buffer): Move to window.el.
11290
11291 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11292
11293 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11294
11295 2008-06-05 Kenichi Handa <handa@m17n.org>
11296
11297 * coding.c (detect_coding): Fix previous change.
11298 (detect_coding_system): Likewise.
11299
11300 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11301
11302 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11303
11304 * keymap.c (Vminibuffer_local_filename_must_match_map):
11305 Rename from Vminibuffer_local_must_match_filename_map.
11306 (syms_of_keymap):
11307 * minibuf.c (Fcompleting_read): Adjust accordingly.
11308 * commands.h: Rename declaration as well.
11309
11310 2008-06-05 Kenichi Handa <handa@m17n.org>
11311
11312 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11313 family name.
11314 (Ffont_put): Likewise.
11315
11316 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11317 current font-spec.
11318
11319 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11320 is unspecified.
11321
11322 * xfaces.c (realize_x_face): If the font-related face attributes
11323 are the same as those of default face, realize a new fontset from
11324 default->fontset.
11325 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11326
11327 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11330 (move_it_in_display_line): New wrapper.
11331
11332 * window.c (window_scroll_pixel_based_preserve_x)
11333 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11334 (window_scroll_pixel_based, window_scroll_line_based):
11335 Use them to preserve column positions.
11336 (syms_of_window): Initialize them.
11337
11338 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11339 (HPOS . VPOS) pair.
11340
11341 * dispextern.h (move_it_in_display_line): Declare.
11342
11343 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
11344
11345 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11346 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11347 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11348
11349 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
11350
11351 * window.c (Fset_window_parameter): Doc fix.
11352 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11353
11354 2008-06-04 Joakim Verona <joakim@verona.se>
11355
11356 * window.h (struct window): Add new member window_parameters.
11357
11358 * window.c (Fwindow_parameters, Fwindow_parameter)
11359 (Fset_window_parameter): New defuns.
11360 (syms_of_window): Defsubr the new defuns.
11361 (make_window): Initialize window_parameters to nil.
11362
11363 2008-06-04 John Paul Wallington <jpw@pobox.com>
11364
11365 * eval.c (Fdefmacro): Doc fix.
11366
11367 2008-06-04 Kenichi Handa <handa@m17n.org>
11368
11369 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11370 Be sure to call setup_coding_system when we find a proper coding system.
11371 (detect_coding_system): Fix handling of coding->head_ascii.
11372
11373 2008-06-03 Andreas Schwab <schwab@suse.de>
11374
11375 * font.c (font_prop_validate_spacing): Fix last change.
11376
11377 2008-06-03 Kenichi Handa <handa@m17n.org>
11378
11379 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11380 (font_parse_fcname): Fix handling of unknown key.
11381
11382 * xfont.c (xfont_list): Try an alias.
11383
11384 * charset.c (char_charset): Return NULL if the arg charset_list is
11385 specified and C doesn't belong to any of them.
11386
11387 2008-06-02 Chip Coldwell <coldwell@redhat.com>
11388
11389 * font.c (font_pixel_size): Don't take cdr of an integer.
11390
11391 2008-06-02 Jim Meyering <meyering@redhat.com>
11392
11393 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11394 * alloc.c (xfree): Return right away for a NULL arg.
11395 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11396 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11397 * mac.c (create_apple_event_from_event_ref): Likewise.
11398 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11399 Likewise.
11400 * doprnt.c (doprnt1): Likewise.
11401 * frame.c (frame): Likewise.
11402 * keyboard.c (wipe_kboard): Likewise.
11403 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11404 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11405 * term.c (tty_default_color_capabilities, maybe_fatal)
11406 (delete_tty): Likewise.
11407 * w16select.c (string): Likewise.
11408 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11409 * w32bdf.c (w32_free_bdf_font): Likewise.
11410 * w32fns.c (w32_unload_font): Likewise.
11411 * w32font.c (w32font_close): Likewise.
11412 * window.c (size_window): Likewise.
11413 * xselect.c (receive_incremental_selection): Likewise.
11414 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11415 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11416 * w32.c (stat): Likewise.
11417
11418 Remove useless if-before-free tests.
11419 * editfns.c (Fset_time_zone_rule): Likewise.
11420 * lread.c (nosuffix): Likewise.
11421 * ralloc.c (get_bloc): Likewise.
11422 * regex.c (reg_free): Likewise.
11423 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11424 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11425 * xsmfns.c (smc_save_yourself_CB): Likewise.
11426
11427 2008-06-02 Kenichi Handa <handa@m17n.org>
11428
11429 * font.c (font_find_for_lface): Handle float font size.
11430 (font_open_for_lface): Likewise.
11431
11432 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11433 comparing the properties.
11434
11435 2008-06-01 Jason Rumney <jasonr@gnu.org>
11436
11437 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11438 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11439 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11440 Don't add empty script list.
11441 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11442
11443 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11444
11445 * Makefile.in (dot, dotdot): Remove, update users.
11446 ".." has been used elsewhere in the file for a long time.
11447 (LIBXT_STATIC): Remove conditional based on unused variable.
11448
11449 2008-06-01 Miles Bader <miles@gnu.org>
11450
11451 * xfaces.c (Vface_remapping_alist): New variable.
11452 (syms_of_xfaces): Initialize it.
11453 (enum named_merge_point_kind): New type.
11454 (struct named_merge_point): Add `named_merge_point_kind' field.
11455 (push_named_merge_point): Make cycle detection respect different
11456 named-merge-point kinds.
11457 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11458 Remove face-name alias resolution.
11459 (lface_from_face_name): New definition using
11460 `lface_from_face_name_no_resolve'.
11461 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11462 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11463 (get_lface_attributes): New definition that layers face-remapping on
11464 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11465 (lookup_basic_face): New function.
11466 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11467 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11468 `get_lface_attributes'.
11469 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11470 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11471 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11472
11473 * xdisp.c (init_iterator): Pass base_face_id through
11474 `lookup_basic_face' when we actually use it as a face-id.
11475 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11476 DEFAULT_FACE_ID.
11477
11478 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11479 lookup the initial face-id.
11480
11481 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11482
11483 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
11484
11485 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11486 (Fremove_text_properties): Fix typos in docstrings.
11487
11488 2008-05-31 Kenichi Handa <handa@m17n.org>
11489
11490 * font.c (font_list_entities): Fix the car part of data to be
11491 stored in the cache.
11492
11493 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11494
11495 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11496
11497 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11498 Add a `test' argument so another predicate than `equal' can be used.
11499 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11500 (map_char_table): Remove unused vars `c' and `i'.
11501 * lisp.h (Foptimize_char_table): Adjust declaration.
11502 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11503
11504 2008-05-30 Kenichi Handa <handa@m17n.org>
11505
11506 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11507 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11508 defined.
11509
11510 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11511
11512 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11513 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11514 frame-local settings for the same variable.
11515
11516 2008-05-30 Kenichi Handa <handa@m17n.org>
11517
11518 * fontset.c (Ffont_info): Move to font.c.
11519 (syms_of_fontset): Delete defsubr of Sfont_info.
11520
11521 * font.c (font_style_to_value, font_score): Delete casting of the
11522 args to xstcasecmp.
11523 (register_font_driver): Increment num_font_drivers only when
11524 registering the driver globally.
11525 (Ffont_info): Move from fontset.c. Handle a font object too.
11526 (syms_of_font): Defsubr Sfont_info.
11527
11528 2008-05-29 Kenichi Handa <handa@m17n.org>
11529
11530 * coding.h (enum define_coding_utf8_arg_index): New enum.
11531 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11532 coding_attr_utf_bom.
11533 (enum utf_bom_type): Rename from utf_16_bom_type.
11534 (struct utf_16_spec): Adjust for the above change.
11535 (struct coding_system): Add utf_8_bom in `spec' union.
11536
11537 * coding.c (CODING_UTF_8_BOM): New macro.
11538 (enum coding_category): Delete coding_category_utf_8, add
11539 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11540 coding_category_utf_8_sig.
11541 (CATEGORY_MASK_UTF_8): Delete it.
11542 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11543 (CATEGORY_MASK_UTF_8_SIG): New macros.
11544 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11545 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11546 CATEGORY_MASK_UTF_8_SIG.
11547 (CATEGORY_MASK_UTF_8): New macro.
11548 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11549 (detect_coding_utf_8): Check BOM.
11550 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11551 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11552 (encode_coding_utf_16): Likewise.
11553 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11554 (detect_coding, detect_coding_system): Handle utf-8-auto.
11555 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11556 (syms_of_coding): Fix setting up of Vcoding_category_table.
11557
11558 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11559
11560 * process.c (Faccept_process_output): If `millisec' is non-nil,
11561 `seconds' default to 0.
11562 (wait_reading_process_output): Also return non-nil if we read output
11563 from a non-running process.
11564
11565 2008-05-29 Jason Rumney <jasonr@gnu.org>
11566
11567 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11568 `raster' specified.
11569 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11570 in the uniscribe backend, but disallow any font that has no
11571 unicode subrange support.
11572
11573 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
11574
11575 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11576 Fix typos in docstrings.
11577
11578 2008-05-29 Kenichi Handa <handa@m17n.org>
11579
11580 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11581 (Fx_family_fonts): Set frame correctly.
11582
11583 2008-05-28 Jason Rumney <jasonr@gnu.org>
11584
11585 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11586
11587 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11588
11589 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11590 calling build_annotations.
11591
11592 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
11593
11594 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11595 (Fencode_coding_string):
11596 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11597 <latin-extra-code-table>: Fix typos in docstrings.
11598 (syms_of_coding) <coding-system-alist>: Doc fix.
11599 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11600
11601 2008-05-28 Kenichi Handa <handa@m17n.org>
11602
11603 * fontset.c (Ffont_info): Don't call font_close_object.
11604
11605 * font.c (font_parse_family_registry): Use Ffont_put to validate
11606 foundry and family.
11607 (font_delete_unmatched): Don't check spacing.
11608 (font_list_entities): Add spacing to the spec to list fonts.
11609
11610 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11611 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11612
11613 * coding.c (encode_coding_raw_text): Fix previous change.
11614 (encode_coding_object): When the dst_object is a buffer and is
11615 different from src_object, move gap to PT.
11616
11617 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
11618
11619 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11620
11621 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11622
11623 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11624 all branches. Compute it differently.
11625
11626 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11627
11628 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
11629
11630 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11631 into "else if () ... else ...".
11632
11633 2008-05-27 Jason Rumney <jasonr@gnu.org>
11634
11635 * w32font.c (w32font_open_internal): Determine if glyph indices
11636 are likely to work here.
11637
11638 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
11639
11640 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11641 draw overlap glyphs with appropriate highlighting.
11642
11643 2008-05-27 Kenichi Handa <handa@m17n.org>
11644
11645 * xfont.c (xfont_open): Fix calculation of font->average_width.
11646
11647 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * casefiddle.c (casify_object): Try to guess better whether the
11650 argument is a byte or a char.
11651
11652 2008-05-26 Andreas Schwab <schwab@suse.de>
11653
11654 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11655 Always send multiples of format size.
11656
11657 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11658
11659 2008-05-26 Jason Rumney <jasonr@gnu.org>
11660
11661 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11662 (compute_metrics): Don't set failure if we just cleared the cache.
11663 (w32_weight_table): Remove unused variable.
11664 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11665 backwards compatibility.
11666
11667 2008-05-25 Kenichi Handa <handa@m17n.org>
11668
11669 * w32term.c (x_draw_glyph_string):
11670 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11671
11672 * xfaces.c: Delete unused function prototypes.
11673 (xstrlwr, font_frame): Delete them.
11674 (clear_face_cache): Delete unused variable.
11675
11676 * xftfont.c (xftfont_open): Delete unused variable.
11677 If underline_thickness is not 1, adjust underline_position.
11678
11679 * ftxfont.c (ftxfont_open): Delete unused variable.
11680
11681 * fontset.c (face_for_char): Optimize for the case of no charset
11682 property.
11683
11684 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11685 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11686 (otf_open, font_otf_capability, generate_otf_features)
11687 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11688 Comment out by surrounding "#if 0" and "#endif" for the moment.
11689 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11690 (syms_of_font): Codes for accessing above commented out.
11691
11692 2008-05-24 Eli Zaretskii <eliz@gnu.org>
11693
11694 * w32proc.c: Include dispextern.h.
11695
11696 * w32.c: Include dispextern.h.
11697
11698 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
11699
11700 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11701 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11702 Fix typos in docstrings.
11703
11704 2008-05-23 Jason Rumney <jasonr@gnu.org>
11705
11706 * xsmfns.c: Remove includes that are already included by config.h.
11707
11708 2008-05-23 Kenichi Handa <handa@m17n.org>
11709
11710 * charset.c (Qemacs, charset_emacs): New variables.
11711 (char_charset): Fix for non-Unicode characters.
11712 (syms_of_charset): Define charset_emacs.
11713
11714 * w32term.c (x_draw_glyph_string): Be sure to update
11715 s->underline_thickness and s->underline_position. Be sure to draw
11716 underline within the current line area.
11717
11718 * xterm.c (x_draw_glyph_string): Be sure to update
11719 s->underline_thickness and s->underline_position. Be sure to draw
11720 underline within the current line area.
11721
11722 * fontset.c: Delete unused variables and add casting for char *
11723 throughout the file.
11724 (fontset_font): Try the fallback fonts of the current fontset
11725 before consulting the default fontset.
11726
11727 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11728
11729 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11730
11731 2008-05-22 Jason Rumney <jasonr@gnu.org>
11732
11733 * font.c: Don't include strings.h.
11734
11735 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11736
11737 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11738 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11739 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11740 to call xstrcasecmp.
11741
11742 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11743
11744 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11745
11746 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11747
11748 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11749
11750 2008-05-22 Kenichi Handa <handa@m17n.org>
11751
11752 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11753
11754 * font.c (font_prop_validate_style): Adjust for the format
11755 change of font_style_table.
11756
11757 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11758 two args.
11759
11760 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11761 two args.
11762
11763 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11764
11765 * minibuf.c (keys_of_minibuf): Delete.
11766 * lisp.h (keys_of_minibuf): Delete.
11767 * emacs.c (main): Don't call keys_of_minibuf.
11768
11769 2008-05-22 Kenichi Handa <handa@m17n.org>
11770
11771 * ftfont.c (ftfont_resolve_generic_family): Rename from
11772 ftfont_list_generic_family. Return a single family for each
11773 generic family.
11774 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11775 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11776 Call font_add_log.
11777 (ftfont_match): Call font_add_log.
11778
11779 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11780 (FONT_DEBUG): Define it.
11781 (font_add_log): Extern it.
11782 (font_assert): Rename from xassert.
11783
11784 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11785 (xfont_list_family): Call font_add_log.
11786 (xfont_match): Likewise.
11787 (memq_no_quit): Delete.
11788
11789 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11790 call of Ffont_xlfd_name.
11791
11792 * xfaces.c (struct table_entry, slant_table, weight_table)
11793 (swidth_table): Move to font.c.
11794
11795 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11796 xassert are changed to font_assert. Delete many unused variables.
11797 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11798 New variables.
11799 (struct table_entry): Move from xfaces.c and modified.
11800 (weight_table, slant_table, width_table): Move from xfaces.c and
11801 contents adjusted for the change of struct table_entry.
11802 (font_style_to_value, font_style_symbolic): Adjust for the
11803 format change of font_style_table.
11804 (font_parse_family_registry): Don't overwrite existing foundry and
11805 family of font_spec.
11806 (font_score): Fix calculation of diff for sizes.
11807 (font_sort_entites): Call font_add_log.
11808 (font_delete_unmatched): Return a newly created list.
11809 (font_list_entities): Fix previous change. Call font_add_log.
11810 (font_matching_entity, font_open_entity, font_close_entity):
11811 Call font_add_log.
11812 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11813 (Finternal_set_font_style_table): Delete.
11814 (BUILD_STYLE_TABLE): New macro.
11815 (build_style_table): New function.
11816 (Vfont_log, font_log_env_checked): New variables.
11817 (font_add_log): New function.
11818 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11819 Declare Lisp variables "font-weight-table", "font-slant-table",
11820 "font-width-table", and "font-log". Initialize font_style_table.
11821
11822 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11823
11824 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11825
11826 2008-05-21 Seiji Zenitani <zenitani@mac.com>
11827 Ryo Yoshitake <ryo@shiftmode.net>
11828
11829 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11830 (Vframe_alpha_lower_limit): New variable.
11831 (x_set_alpha): New function.
11832
11833 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11834
11835 * xfns.c (x-create-frame, Qalpha):
11836 Initialize the frame parameter `alpha'.
11837 * xterm.c (OPAQUE, OPACITY): New.
11838 (x_set_frame_alpha): New function.
11839 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11840
11841 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11842 * w32fns.c (w32_frame_parm_handlers): Likewise.
11843
11844 2008-05-20 Jason Rumney <jasonr@gnu.org>
11845
11846 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11847 truetype fonts to opentype list.
11848
11849 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
11850
11851 * fontset.c (Ffontset_info): Doc fix.
11852 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11853 <ignore-relative-composition>: Fix typos in docstrings.
11854
11855 * font.c (syms-of-font) <font-encoding-alist>:
11856 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11857 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11858 (Ffont_otf_alternates): Doc fixes.
11859
11860 2008-05-20 Kenichi Handa <handa@m17n.org>
11861
11862 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11863 font.h through out the file.
11864 (FONT_DRIVERS): Rename from FONTOBJ.
11865 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11866 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11867
11868 * emacs.c (main): Call syms_of_font unconditionally.
11869
11870 * font.h (find_font_encoding): Extern it.
11871
11872 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11873 fontset.c.
11874 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
11875 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11876 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11877 only when HAVE_WINDOW_SYSTEM is defined.
11878 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11879 when HAVE_WINDOW_SYSTEM is defined.
11880
11881 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11882 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11883
11884 * xfaces.c: Include font.h unconditionally.
11885 (merge_face_ref, merge_face_vectors)
11886 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11887
11888 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11889
11890 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11891 indirect_variable.
11892 * eval.c (lisp_indirect_variable): New fun.
11893 (Fuser_variable_p): Use it.
11894
11895 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11896
11897 * lisp.h (indirect_variable):
11898 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11899 Use Lisp_Symbol pointers rather than Lisp_Object.
11900 Adjust callers.
11901 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11902 To this end, change calling-convention.
11903
11904 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11905 if some non-hidden buffers are selected by string&pred.
11906
11907 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
11908
11909 * process.c (wait_reading_process_output): Always check status
11910 when in batch mode.
11911
11912 2008-05-19 Kenichi Handa <handa@m17n.org>
11913
11914 * font.c (font_list_entities): Fix handling of cache.
11915 (font_matching_entity): Likewise.
11916
11917 * ftfont.c (cs_iso8859_1): Delete.
11918 (ft_face_cache): New variable.
11919 (struct ftfont_info): New member fc_charset_idx.
11920 (ftfont_build_basic_charsets): Delete.
11921 (fc_charset_table): New variable.
11922 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11923 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11924 Callers changed.
11925 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11926 (ftfont_spec_pattern): New argument fc_charset_idx.
11927 Check registry more rigidly. Change callers.
11928 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11929 change of :font-entity property of the font.
11930
11931 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11932 property of the font.
11933
11934 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
11935
11936 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11937 (Funencodable_char_position, Fcheck_coding_systems_region)
11938 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11939 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11940 (Ffind_operation_coding_system, Fset_coding_system_priority)
11941 (Fcoding_system_eol_type): Doc fixes.
11942
11943 2008-05-17 Glenn Morris <rgm@gnu.org>
11944
11945 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11946
11947 2008-05-16 Eli Zaretskii <eliz@gnu.org>
11948
11949 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11950 and st_gid.
11951
11952 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11953 HAVE_WINDOW_SYSTEM is not defined.
11954
11955 * xfaces.c (merge_face_ref, merge_face_vectors)
11956 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11957 HAVE_WINDOW_SYSTEM is defined.
11958 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11959
11960 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11961
11962 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11963
11964 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11965
11966 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11967
11968 2008-05-15 Kenichi Handa <handa@m17n.org>
11969
11970 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11971 preference.
11972
11973 2008-05-15 Glenn Morris <rgm@gnu.org>
11974
11975 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11976
11977 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
11978
11979 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11980 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11981
11982 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11983
11984 2008-05-15 Kenichi Handa <handa@m17n.org>
11985
11986 * ftfont.c (ftfont_list): Downcase family name to check generic
11987 families.
11988
11989 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11990 font-spec for QCfont value.
11991
11992 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11993 buffer. Check the return value of it.
11994
11995 2008-05-14 Jason Rumney <jasonr@gnu.org>
11996
11997 * w32term.c (w32_get_glyph_overhangs): Remove.
11998 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11999
12000 2008-05-14 Kenichi Handa <handa@m17n.org>
12001
12002 * font.c (font_prop_validate): Make nil a valid value.
12003 (font_clear_cache): Check if the cached vector of entities is nil
12004 or not.
12005
12006 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12007
12008 * emacs.c (main_thread): Conditionalize on
12009 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12010 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12011
12012 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12013 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12014 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12015
12016 2008-05-14 Kenichi Handa <handa@m17n.org>
12017
12018 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12019 has no corresponding coding system.
12020
12021 2008-05-14 Jason Rumney <jasonr@gnu.org>
12022
12023 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12024
12025 * w32font.h (w32font_open_internal): Update declaration.
12026
12027 * w32font.c (w32font_open_internal): Change last argument from
12028 w32font_info struct to font object. Fill in font object from
12029 font_entity. Get Outline metrics if possible. Use them to
12030 calculate underline position and thickness. Use xlfd name as name
12031 property. Don't set codepage.
12032 (w32font_open): Pass font_object to w32font_open_internal. Don't
12033 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12034 (w32font_draw): Use s->font.
12035 (clear_cached_metrics): Don't clear non-existent blocks.
12036
12037 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12038 font was not found.
12039 (x_draw_glyph_string): Use underline position and thickness from font.
12040
12041 * w32uniscribe.c (uniscribe_open): Pass font_object to
12042 w32font_open_internal.
12043
12044 2008-05-14 Kenichi Handa <handa@m17n.org>
12045
12046 These changes are to delete all legacy font-handling codes, and
12047 make Emacs use only font-backends.
12048
12049 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12050 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12051
12052 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12053
12054 * charset.h (Vcharset_non_preferred_head)
12055 (Vcurrent_iso639_language): Extern them.
12056
12057 * charset.c (Vcharset_non_preferred_head): New variable.
12058 (Vcurrent_iso639_language): New variable.
12059 (syms_of_charset): Declare it as a Lisp variable.
12060 (char_charset): Don't check non preferred charsets. As a last
12061 resort, return charset_unicode.
12062 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12063
12064 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12065 conditionals. Don't check enable_font_backend. Delete all codes
12066 used only when USE_FONT_BACKEND is not defined.
12067
12068 * dispextern.h (struct glyph_string): Change type of `font' to
12069 `struct font *'.
12070 (struct glyph_string): New member underline_position and
12071 underline_thickness.
12072 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12073 (struct face): Change type of `font' to `struct font *'. Remove
12074 members `font_name', `font_info_id'.
12075 (per_char_metric, encode_char): Delete externs.
12076 (calc_pixel_width_or_height): Adjust the prototype.
12077
12078 * emacs.c (enable_font_backend): Delete extern.
12079 (main): Don't set enable_font_backend. Don't check the command
12080 line argument "-disable-font-backend".
12081
12082 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12083 (enum font_property_index): New members FONT_DPI_INDEX,
12084 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12085 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12086 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12087 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12088 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12089 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12090 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12091 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12092 (struct font_spec, struct font_entity): New structs.
12093 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12094 (struct font): Many members from old "struct font_info" moved to
12095 here. Members font and entity deleted.
12096 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12097 the new font-related objects.
12098 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12099 (CHECK_FONT_GET_OBJECT): Likewise.
12100 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12101 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12102 (struct font_driver): New members case_sensitive anc check. Type
12103 of the member list and open changed.
12104 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12105 (font_symbolic_width, font_find_object, font_get_spec)
12106 (font_set_lface_from_name): Delete extern.
12107 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12108
12109 * font.c: Include <strings.h>.
12110 (enable_font_backend): Delete it.
12111 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12112 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12113 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12114 (null_string): Delete it.
12115 (null_vector): Make it static.
12116 (font_family_alist): Delete it.
12117 (Qnormal): Extern it.
12118 (QCextra, QClanguage): Delete it.
12119 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12120 (font_make_spec, font_make_entity, font_make_object)
12121 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12122 the string. Callers changed.
12123 (font_pixel_size): Adjusted for the format change of font-related
12124 objects.
12125 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12126 (font_style_to_value, font_style_symbolic): New function.
12127 (build_font_family_alist): Delete it.
12128 (font_registry_charsets): Use Fassoc_string instead of
12129 assq_no_quit.
12130 (font_prop_validate_symbol): Don't return null_string.
12131 (font_prop_validate_style): Adjusted for the change of
12132 style-related values in a font vector.
12133 (font_property_table): Delete entries for QClanguage and
12134 QCantialias, add entries for QCavgwidth.
12135 (get_font_prop_index): Delete the 2nd argument FROM.
12136 (font_prop_validate): Arguments changed.
12137 (font_put_extra): Adjusted for the change of font-related objects.
12138 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12139 (font_parse_fcname, font_unparse_fcname)
12140 (font_prepare_composition): Likewise.
12141 (font_parse_family_registry): Renamed from font_merge_old_spec.
12142 (otf_open): Delete the 1st arg entity.
12143 (font_otf_capability): Adjusted for the above change.
12144 (font_score): New arg alternate_families. Adjusted for the change
12145 of font-related objects.
12146 (font_sort_entites): New arg best_only.
12147 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12148 Delete them.
12149 (font_match_p): Check alternate families.
12150 (font_find_object): Delete it.
12151 (font_check_object): New function.
12152 (font_clear_cache): Adjusted for the change of font-related objects.
12153 (font_delete_unmatched): New arg.
12154 (font_list_entities): Call font_driver->list with a spec that
12155 doesn't specify style-related properties.
12156 (font_matching_entity): Arguments changed. Caller changed.
12157 (font_open_entity): Adjusted for the change of font-related objects.
12158 (font_close_object, font_has_char, font_encode_char)
12159 (font_get_name, font_get_spec): Likewise.
12160 (font_spec_from_name, font_clear_prop, font_update_lface):
12161 New functions.
12162 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12163 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12164 (font_at): Adjusted for the change of font-related objects.
12165 (font_range): New function.
12166 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12167 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12168 (Fcopy_font_spec, Fmerge_font_spec): New function.
12169 (Ffont_family_list): Renamed from list-families.
12170 (Finternal_set_font_style_table): Arguments changed.
12171 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12172 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12173 change of font-related objects.
12174 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12175
12176 * fontset.h (struct font_info): Delete it. Most members go to
12177 struct font.
12178 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12179 (enum FONT_SPEC_INDEX): Delete it.
12180 (font_info, list_fonts_func, load_font_func, query_font_func)
12181 (set_frame_fontset_func, find_ccl_program_func)
12182 (get_font_repertory_func, new_fontset_from_font_name): Delete
12183 externs.
12184 (fontset_from_font_name): Extern it.
12185 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12186 (FONT_INFO_FROM_FACE): Deleted.
12187 (face_for_font): Adjust prototype.
12188
12189 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12190 conditionals. Don't check enable_font_backend. Delete all codes
12191 used only when USE_FONT_BACKEND is not defined.
12192 (get_font_info_func, list_font_func, load_font_func)
12193 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12194 (get_font_repertory_func): Delete them.
12195 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12196 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12197 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12198 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12199 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12200 (fontset_compare_rfontdef): New function.
12201 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12202 rfont-defs by qsort. Adjusted for the change of font-group vector.
12203 (load_font_get_repertory): Deleted.
12204 (fontset_find_font): Use new macros to ref/set elements of
12205 font-def and rfont-def.
12206 (fontset_font): Fix the timing of remembering that no font for C.
12207 (free_face_fontset): Do nothing if the face has no fontset.
12208 (face_suitable_for_char_p): Use new macros to ref/set elements of
12209 rfont-def.
12210 (face_for_char): Likewise. Call face_for_char with font_object.
12211 (fs_load_font): Delete. Delete #pragma surrounding it.
12212 (fs_query_fontset): Use strcasecmp instead of strcmp.
12213 (generate_ascii_font_name): Adjusted for the format change of
12214 font-spec.
12215 (Fset_fontset_font): Likewise. Use new macros to set elements of
12216 font-def.
12217 (Fnew_fontset): Use font_unparse_xlfd to generate
12218 FONTSET_ASCII (fontset).
12219 (new_fontset_from_font_name): Deleted.
12220 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12221 a fontset is already created for the font. FIx updating of
12222 Vfontset_alias_alist.
12223 (fontset_ascii_font): Deleted.
12224 (Ffont_info): Adjusted for the format change of font-spec.
12225 (Finternal_char_font): Likewise.
12226 (Ffontset_info): Likewise.
12227 (syms_of_fontset): Don't check load_font_func.
12228
12229 * fns.c (internal_equal): Handle PREV_FONT.
12230
12231 * frame.h: Delete USE_FONT_BACKEND conditional.
12232
12233 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12234 conditionals. Don't check enable_font_backend. Delete all codes
12235 used only when USE_FONT_BACKEND is not defined.
12236 (x_set_font): Call x_new_font, not x_new_fontset2.
12237 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12238 already set for the frame.
12239
12240 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12241 a font-entity by font_make_entity. Use font_intern_prop instead
12242 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12243 font property. If a font is scalable, set avgwidth property to 0.
12244 Set font-entity property by font_put_extra.
12245 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12246 (ffont_driver): Adjusted for the change of struct font_driver.
12247 (ftfont_spec_pattern): New function.
12248 (ftfont_list): Return a list, not vector.
12249 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12250 (ftfont_list_family): Don't downcase names.
12251 (ftfont_free_entity): Deleted.
12252 (ftfont_open): Return a font-object. Adjusted for the change of
12253 struct font. Get underline_thickness and underline_position from
12254 font property. Don't update dpyinfo->smallest_font_height and
12255 dpyinfo->smallest_char_width.
12256 (ftfont_close): Don't free `struct font'.
12257 (ftfont_has_char): Adjusted for the format change of font-entity.
12258 (ftfont_encode_char, ftfont_text_extents): Likewise.
12259
12260 * ftxfont.c (ftxfont_list): Return a list, not vector.
12261 (ftxfont_open): Return a font-object. Adjusted for the change of
12262 struct font. Get underline_thickness and underline_position from
12263 font property. Don't update dpyinfo->smallest_font_height and
12264 dpyinfo->smallest_char_width.
12265 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12266 (ftxfont_draw): Adjusted for the change of struct font.
12267
12268 * image.c (image_ascent): Don't include "charset.h". Include
12269 "character.h" and "font.h".
12270
12271 * lisp.h (enum pvec_type): New member PREV_FONT.
12272 (Fassoc_string): EXFUN it.
12273
12274 * print.c: Include font.h.
12275 (print_object): Handle font-related objects.
12276
12277 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12278 conditionals. Don't check enable_font_backend. Delete all codes
12279 used only when USE_FONT_BACKEND is not defined.
12280 (handle_auto_composed_prop): Do nothing if it->f is not on a
12281 window system. Check how many following characters can be
12282 displayed by the same font.
12283 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12284 'struct font *'.
12285 (get_char_face_and_encoding): Assign the whole encoding task to
12286 the `encode-char' method of a font driver.
12287 (fill_composite_glyph_string): Adjusted for the change of `struct
12288 face' and `struct glyph_string'.
12289 (fill_glyph_string): Likewise.
12290 (get_per_char_metric): Arguments changed.
12291 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12292 and `struct glyph_string'.
12293 (produce_stretch_glyph, calc_line_height_property)
12294 (x_produce_glyphs): Likewise.
12295
12296 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12297 conditionals. Don't check enable_font_backend. Delete all codes
12298 used only when USE_FONT_BACKEND is not defined. Use
12299 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12300 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12301 (Qp): Extern them.
12302 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12303 Deleted.
12304 (struct font_name): Deleted.
12305 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12306 (compare_fonts_by_sort_order): New function.
12307 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12308 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12309 Deleted.
12310 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12311 compare_fonts_by_sort_order.
12312 (Fx_font_family_list): Call Ffont_family_list.
12313 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12314 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12315 (face_symbolic_slant, face_symbolic_swidth)
12316 (split_font_name_into_vector, build_font_name_from_vector)
12317 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12318 (font_rescale_ratio, split_font_name, build_font_name)
12319 (free_font_names, sort_fonts, x_face_list_fonts)
12320 (face_font_available_p, sorted_font_list, cmp_font_names)
12321 (font_list_1, concat_font_list, font_list, remove_duplicates):
12322 Deleted.
12323 (Fx_list_fonts): Use Ffont_list.
12324 (LFACE_AVGWIDTH): Deleted.
12325 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12326 by FONTP.
12327 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12328 (set_lface_from_font_name): Delete it.
12329 (set_lface_from_font): Renamed from
12330 set_lface_from_font_and_fontset. Caller changed. Don't set
12331 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12332 for face.
12333 (merge_face_vectors): Copy font-spec if necessary.
12334 Clear properties of the font-spec if necessary.
12335 (merge_face_ref): Clear properties of the font-spec if necessary.
12336 (Finternal_set_lisp_face_attribute): Likewise.
12337 (set_font_frame_param): Use font_load_for_lface to load a
12338 font-object, and call Fmodify_frame_parameters with it.
12339 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12340 font name by Ffont_xlfd_name.
12341 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12342 QCslant, and QCwidth.
12343 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12344 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12345 Compare fonts by EQ.
12346 (lookup_non_ascii_face): Deleted.
12347 (face_for_font): The 2nd argument changed.
12348 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12349 Check atomic font properties by case insensitive.
12350 (realize_non_ascii_face): Set face->overstrike correctly.
12351 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12352 (dump_realized_face): Get font name from
12353 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12354
12355 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12356 conditionals. Don't check enable_font_backend. Delete all codes
12357 used only when USE_FONT_BACKEND is not defined.
12358 (xic_create_xfontset): Original code deleted and renamed from
12359 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12360 (x_make_gc): Don't set GCFont in GCs.
12361 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12362 opened by "fixed".
12363 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12364 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12365 get_font_repertory_func.
12366
12367 * xfont.c: Include <stdlib.h> and "ccl.h".
12368 (struct xfont_info): New structure.
12369 (xfont_query_font): Deleted.
12370 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12371 moved from xterm.c.
12372 (xfont_driver): Adjusted for the change of struct font_driver.
12373 (compare_font_names): New function.
12374 (xfont_list_pattern): Sort font names case insensitively. Make
12375 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12376 (xfont_list): Return a list, not vector.
12377 (xfont_match): If the font doesn't have QCname property, generate
12378 a name from the other font properties.
12379 (xfont_open): Return a font-object. Adjusted for the change of
12380 struct font. Get underline_thickness and underline_position from
12381 font property. Don't update dpyinfo->smallest_font_height and
12382 dpyinfo->smallest_char_width.
12383 (xfont_close): Don't free struct font.
12384 (xfont_prepare_face): Adjusted for the change of struct font.
12385 (xfont_done_face): Deleted.
12386 (xfont_has_char): Adjusted for the change of struct font.
12387 (xfont_encode_char, xfont_draw): Likewise.
12388 (xfont_check): New function.
12389
12390 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12391 callback function.
12392 (xftfont_match): Adjusted for the format change of font-entity.
12393 (xftfont_open): Adjusted for the format change of font-entity and
12394 font-object. Adjusted for the change of struct font. Return a
12395 font-object. Don't update dpyinfo->smallest_font_height and
12396 dpyinfo->smallest_char_width.
12397 (xftfont_close): Block input while calling XftFontClose.
12398 (xftfont_prepare_face): Don't block input while calling
12399 xftfont_get_colors. Adjusted for the change of struct font.
12400 (xftfont_shape): Return value of error case fixed.
12401
12402 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12403
12404 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12405 conditionals.
12406 (FONT_WIDTH): Return (f)->max_width.
12407 (struct x_display_info): Delete member `font'.
12408 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12409 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12410 (struct x_output): Change type of `font' to `struct font *'.
12411
12412 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12413 conditionals. Don't check enable_font_backend. Delete all codes
12414 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12415 (x_per_char_metric, x_encode_char): Deleted.
12416 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12417 (x_compute_glyph_string_overhangs): Adjusted for the change of
12418 `struct face'.
12419 (x_draw_glyph_string_foreground)
12420 (x_draw_composite_glyph_string_foreground): Likewise.
12421 (x_draw_glyph_string): Likewise. Use font->underline_position and
12422 font->underline_thickness.
12423 (x_new_font): Renamed from x_new_fontset2.
12424 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12425 (x_check_font): Call `check' method of a font driver.
12426 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12427 (x_query_font, x_get_font_repertory): Deleted.
12428 (x_find_ccl_program): Renamed and moved to xfont.c.
12429 (x_redisplay_interface): Adjusted for the change of `struct
12430 redisplay_interface'.
12431
12432 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12433 conditionals. Don't check enable_font_backend. Delete all codes
12434 used only when USE_FONT_BACKEND is not defined. Surround non-used
12435 code by "#ifdef OLD_FONT" and "endif".
12436 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12437
12438 * w32font.h (struct w32font_info): New member.
12439 (FONT_COMPAT): New macro.
12440 (w32font_open_internal): Prototype adjusted.
12441
12442 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12443 OLD_FONT" and "endif".
12444
12445 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12446 conditionals. Don't check enable_font_backend. Delete all codes
12447 used only when USE_FONT_BACKEND is not defined.
12448 (w32font_open): Return a font-object. Make a font-object by
12449 font_make_object. Adjusted for the change of struct w32font_info.
12450 (w32font_close): Don't free struct font. Adjusted for the change
12451 of struct w32font_info.
12452 (w32font_encode_char, w32font_text_extents, w32font_draw):
12453 Adjusted for the change of struct w32font_info.
12454 (w32font_draw): Likewise.
12455 (w32font_list_internal): Return a list, not vector.
12456 (w32font_open_internal): Change the 4th arg to font-object.
12457 Adjusted for the change of struct w32font_info and font-object format.
12458 (add_font_name_to_list): Don't downcase names.
12459 (w32_enumfont_pattern_entity): Make a font-entity by
12460 font_make_entity. Adjusted for the format change of font-entity.
12461 Use FONT_SET_STYLE to set a style-related font property. If a
12462 font is scalable, set avgwidth property to 0. Set font-entity
12463 property by font_put_extra.
12464 (font_matches_spec): Adjusted for the format change of font-entity.
12465 (w32_weight_table, w32_decode_weight): New variables.
12466 (w32_encode_weight): New function.
12467 (fill_in_logfont): Adjusted for the format change of font-spec.
12468 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12469 weight value.
12470 (w32font_driver): Adjusted for the change of struct font_driver.
12471
12472 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12473 conditionals. Don't check enable_font_backend. Surround non-used
12474 code by "#ifdef OLD_FONT" and "endif".
12475 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12476 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12477
12478 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12479 conditionals. Don't check enable_font_backend. Delete all codes
12480 used only when USE_FONT_BACKEND is not defined. Surround non-used
12481 code by "#ifdef OLD_FONT" and "endif".
12482
12483 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12484 (uniscribe_open): Return value changed to font-object.
12485 Adjusted for the format change of font-object.
12486 (uniscribe_otf_capability): Adjusted for the change of struct font.
12487 (add_opentype_font_name_to_list): Don't downcase names.
12488 (uniscribe_font_driver): Adjusted for the change of struct
12489 font_driver.
12490
12491 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
12492
12493 * dispnew.c (update_frame_1): Check if tty output is still valid
12494 before flushing it.
12495
12496 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12497
12498 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12499 to Gtk+ menus.
12500
12501 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12502
12503 * dired.c (file_name_completion): Tweak the code so as to always do it
12504 in a single pass. Tighten the scope of some variables.
12505
12506 * dired.c (Qdefault_directory): New var.
12507 (file_name_completion): Use it instead of Fexpand_file_name.
12508 (syms_of_dired): Initialize it.
12509
12510 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * fileio.c (double_dollars): Remove dead code.
12513
12514 2008-05-10 Eli Zaretskii <eliz@gnu.org>
12515
12516 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12517 Mention w32-get-true-file-attributes in doc string.
12518
12519 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12520
12521 2008-05-09 Glenn Morris <rgm@gnu.org>
12522
12523 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12524 2008-04-23.
12525
12526 2008-05-09 Eli Zaretskii <eliz@gnu.org>
12527
12528 Support for reporting owner and group of each file on MS-Windows:
12529 * dired.c (stat_uname, stat_gname): New functions, with special
12530 implementation for w32.
12531 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12532
12533 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12534 (dflt_group_name): New static variable.
12535 (dflt_group): Rename from the_group.
12536 (init_user_info): Init dflt_group fields. Get user's group name
12537 from LookupAccountSid.
12538 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12539 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12540 New initialization states.
12541 (globals_of_w32): Initialize them to zero. Initialize the default
12542 group name to "None".
12543 (GetFileSecurity_Name): New global var, the name of the function
12544 to call for GetFileSecurity.
12545 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12546 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12547 (get_file_security, get_security_descriptor_owner)
12548 (get_security_descriptor_group, is_valid_sid)
12549 (get_file_security_desc, get_rid, get_name_and_id)
12550 (get_file_owner_and_group): New functions.
12551 (stat): Use get_file_security_desc and get_file_owner_and_group to
12552 report the owner and primary group of each file. Don't ignore the
12553 high 32 bits of file's size, now that st_size is 64-bit wide.
12554 Fix test when to get true file attributes.
12555 (init_user_info): Use get_rid instead of equivalent inline code.
12556 (fstat): Don't ignore the high 32 bits of file's size.
12557
12558 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
12559
12560 * image.c (png_load): Use correct bit-depth for setting background
12561 color.
12562
12563 2008-05-08 Eli Zaretskii <eliz@gnu.org>
12564
12565 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12566 epa-hook.elc.
12567
12568 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
12569
12570 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12571
12572 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12573
12574 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12575 because the original parameters are in pure storage now.
12576 (mac_window): Remove unused params. Update callers.
12577
12578 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12579
12580 * lread.c (substitute_object_recurse): Use lower-level primitives.
12581 Don't signal errors when traversing sub-char-tables.
12582 Don't loop over all the possible characters when traversing char-tables.
12583
12584 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12585 just like we do in print.c.
12586
12587 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12588
12589 * minibuf.c (Ftry_completion): Remove code left over from when we used
12590 scmp instead of Fcompare_strings.
12591
12592 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
12593
12594 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12595
12596 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12597
12598 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12599 Create bitmap context in native byte order.
12600
12601 * macterm.c (XDrawLine)
12602 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12603 context in native byte order.
12604
12605 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12606
12607 * config.in: Regenerate.
12608
12609 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12610 New definitions for Image I/O support.
12611 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12612 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12613 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12614 (mac_data_provider_release_data, image_load_image_io)
12615 [USE_MAC_IMAGE_IO]: New functions.
12616 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12617 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12618 (init_image_func_pointer) [MAC_OSX]: Remove function.
12619 (image_load_quartz2d) [MAC_OSX]: Check availability of
12620 CGImageCreateWithPNGDataProvider at compile time.
12621 Use lowercase `false' for boolean constant.
12622 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12623 Use image_load_image_io.
12624 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12625 Don't check MyCGImageCreateWithPNGDataProvider.
12626 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12627 Don't call init_image_func_pointer.
12628
12629 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12630
12631 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12632 Make variable non-static.
12633 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12634 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12635
12636 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12637 (RED_FROM_ULONG): Mask off higher bits.
12638 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12639
12640 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12641 Include AvailabilityMacros.h.
12642 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12643 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12644
12645 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12646
12647 * chartab.c (Fset_char_table_range): If range is t, really set all
12648 chars to that value.
12649
12650 2008-05-03 Eli Zaretskii <eliz@gnu.org>
12651
12652 * dired.c (Ffile_attributes): Don't allow the device number become
12653 negative.
12654
12655 2008-05-02 Daiki Ueno <ueno@unixuser.org>
12656
12657 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12658
12659 2008-05-02 Juri Linkov <juri@jurta.org>
12660
12661 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12662 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12663 DEFAULT argument as a list of default values in docstrings.
12664
12665 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
12666
12667 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12668
12669 2008-05-01 Martin Rudalics <rudalics@gmx.at>
12670
12671 * dispnew.c (change_frame_size_1): Preserve small windows when
12672 shrinking frames by calling set_window_height|width with third
12673 arg 2.
12674
12675 * window.h (struct window): Replace field too_small_ok by field
12676 resize_proportionally.
12677
12678 * window.c (make_window): Initialize resize_proportionally.
12679 (enlarge_window): Temporarily set resize_proportionally to make
12680 sure that shrink_windows does scale the window proportionally.
12681 (shrink_windows): When window has resize_proportionally set try
12682 to shrink it proportionally by stealing from other windows.
12683 (struct saved_window, Fset_window_configuration)
12684 (compare_window_configurations): Handle resize_proportionally.
12685 (WINDOW_TOTAL_SIZE): New macro.
12686 (window_min_size, shrink_windows, size_window): Use it.
12687 (check_min_window_sizes): Remove. Invalid values of
12688 window-min-height|width are handled by window_min_size_2 now.
12689 (size_window, Fsplit_window, enlarge_window)
12690 (adjust_window_trailing_edge, grow_mini_window): Don't call
12691 check_min_window_sizes.
12692 (window_min_size_2, window_min_size_1, window_min_size):
12693 New argument safe_p for retrieving "safe" minimum sizes.
12694 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12695 (adjust_window_trailing_edge, grow_mini_window):
12696 Adjust arguments of window_min_size... functions.
12697 (shrink_windows): Argument min_size removed. New argument
12698 safe_p allows shrinking windows to their safe minimum sizes.
12699 Calculate minimum size and decide whether a window shall be
12700 deleted for each window individually.
12701 (size_window): When nodelete_p equals 2, tell shrink_windows to
12702 delete windows only if their new minimum size is no more safe.
12703 (shrink_window_lowest_first): Call window_min_size_1 to make
12704 sure to preserve modeline of bottom-most window when resizing
12705 the minibuffer.
12706 (Fset_window_configuration, Fcurrent_window_configuration)
12707 (compare_window_configurations): Do not handle
12708 window-min-height|width any more.
12709 (syms_of_window): Clarify window-min-height|width doc-strings.
12710
12711 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12712
12713 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12714 some more. Copy some of the code from Ftry_completions.
12715 Remove special case code that dates back to initial revision when the
12716 slash was only added when necessary and that can't trigger nowadays.
12717
12718 2008-04-27 Kenichi Handa <handa@m17n.org>
12719
12720 * font.c (font_prop_validate): Signal `error' instead of `font'.
12721
12722 2008-04-29 Jason Rumney <jasonr@gnu.org>
12723
12724 * w32fns.c (Fw32_battery_status): New defun.
12725 (syms_of_w32fns): Defsubr it.
12726
12727 2008-04-28 Andreas Schwab <schwab@suse.de>
12728
12729 * dired.c (file_name_completion): Fix another mixing of encoded
12730 and decoded names.
12731
12732 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
12733
12734 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12735
12736 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
12737
12738 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12739
12740 2008-04-27 Andreas Schwab <schwab@suse.de>
12741
12742 * dired.c (file_name_completion): Fix inappropriate mixing of
12743 encoded and decoded names.
12744
12745 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12746
12747 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12748
12749 2008-04-26 Eli Zaretskii <eliz@gnu.org>
12750
12751 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12752 2008-03-31, it's not needed anymore with `struct stat' definition
12753 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12754 for the same reasons.
12755
12756 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12757
12758 * m/sparc.h: Additional redefinitions for GNU/Linux.
12759
12760 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12761
12762 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12763 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12764 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12765 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12766 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12767 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12768 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12769 Likewise.
12770
12771 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12772 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12773 (mac_ax_number_of_characters): Add externs.
12774 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12775 [USE_MAC_TSM]: Likewise.
12776 (mac_handle_text_input_event) [MAC_OSX]:
12777 Handle kEventTextInputOffsetToPos for no active input area case.
12778 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12779 (mac_handle_document_access_event)
12780 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12781 (install_application_handler) [MAC_OSX]: Register handlers for
12782 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12783 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12784 Register mac_handle_document_access_event.
12785
12786 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12787 Make functions non-static.
12788
12789 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12790
12791 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12792 (read_file_name_completion_ignore_case, insert_default_directory)
12793 (Qdefault_directory): Move to minibuffer.el.
12794 (Fread_file_name): Call the new `read-file-name' instead.
12795
12796 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12797
12798 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12799 Make function non-static.
12800 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12801 Remove function.
12802 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12803 Move to mactoolbox.c.
12804 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12805
12806 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12807 (mac_rect_make): New macro.
12808
12809 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12810 instead of float.
12811 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12812 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12813 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12814 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12815 CGRectMake.
12816 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12817 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12818 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12819 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12820 instead of WindowRef in argument type.
12821 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12822 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12823 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12824 instead of DISPLAY. All uses changed.
12825 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12826 (x_calc_absolute_position): Simplify so as not to use
12827 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12828
12829 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12830 instead of WindowRef in argument type.
12831 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12832 [TARGET_API_MAC_CARBON]: Remove externs.
12833 (create_apple_event, mac_event_parameters_to_lisp)
12834 [TARGET_API_MAC_CARBON]: Add externs.
12835
12836 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12837 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12838 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12839 is clicked.
12840 (x_activate_menubar): Remove extern for saved_menu_event_location.
12841 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12842 Move from mac.c.
12843
12844 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12845
12846 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12847 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12848
12849 2008-04-23 Jason Rumney <jasonr@gnu.org>
12850
12851 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12852 attributes only for local files.
12853
12854 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12855 default to Qlocal.
12856
12857 2008-04-22 Juri Linkov <juri@jurta.org>
12858
12859 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12860 read-buffer-to-switch instead of using the letter "B".
12861
12862 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12863
12864 * fileio.c (Qdefault_directory): New variable.
12865 (Fread_file_name): Use it to pass `dir' to the completion functions.
12866
12867 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
12868
12869 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12870
12871 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12872
12873 * keyboard.c (Vpre_help_message): Remove.
12874 (show_help_echo): Remove default C code.
12875
12876 * dired.c (directory_files_internal, file_name_completion):
12877 Only call ENCODE_FILE if the string is indeed decoded.
12878
12879 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12880
12881 * Makefile.in (TOOLKIT_DEFINES): Remove.
12882 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12883
12884 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12885
12886 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12887 (mactoolbox.o): New target.
12888
12889 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12890 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12891
12892 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12893 Use mac_set_frame_window_background instead of XSetWindowBackground.
12894 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12895 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12896 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12897 instead of SetWindowTitleWithCFString.
12898 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12899 Move function to mactoolbox.c.
12900 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12901 Use mac_set_window_modified instead of SetWindowModified.
12902 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12903 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12904 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12905 FrontNonFloatingWindow. Use mac_activate_window instead of
12906 ActivateWindow. Use mac_active_non_floating_window instead of
12907 ActiveNonFloatingWindow.
12908 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12909 Use mac_show_hourglass and mac_hide_hourglass.
12910 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12911 instead of GetGlobalMouse.
12912 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12913 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12914 Use mac_bring_window_to_front instead of BringToFront.
12915 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12916 mactoolbox.c.
12917 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12918 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12919 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12920 mactoolbox.c.
12921
12922 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12923 (XtPointer): Move typedef from macmenu.c.
12924 (enum button_type): Move enum from macmenu.c.
12925 (widget_value): Move typedef from macmenu.c.
12926 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12927 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12928 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12929 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12930 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12931 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12932 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12933 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12934 (Selection): Move typedef from macselect.c.
12935 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12936 macterm.c.
12937 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12938 (mac_is_window_collapsed, mac_bring_window_to_front)
12939 (mac_send_window_behind, mac_hide_window, mac_show_window)
12940 (mac_collapse_window, mac_front_non_floating_window)
12941 (mac_active_non_floating_window, mac_activate_window)
12942 (mac_move_window_structure, mac_move_window, mac_size_window)
12943 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12944
12945 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12946 (enum mac_menu_kind): Move enum to mactoolbox.c.
12947 (min_menu_id): Move variable to mactoolbox.c.
12948 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12949 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12950 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12951 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12952 [TARGET_API_MAC_CARBON]: Likewise.
12953 (XtPointer): Move typedef to macgui.h.
12954 (enum button_type): Move enum to macgui.h.
12955 (widget_value): Move typedef to macgui.h.
12956 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12957 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12958 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12959 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12960 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12961 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12962 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12963 (popup_activated_flag): Make variable non-static.
12964 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12965 (add_menu_item, fill_menu, dispose_menus):
12966 Move functions to mactoolbox.c.
12967 (restore_show_help_function, menu_target_item_handler)
12968 (install_menu_target_item_handler, mac_handle_dialog_event)
12969 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12970 [TARGET_API_MAC_CARBON]: Likewise.
12971 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12972 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12973 (find_and_call_menu_selection, name_is_separator): Make function
12974 non-static.
12975 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12976 to mactoolbox.c.
12977 (set_frame_menubar): Don't call install_menu_quit_handler.
12978 (menu_item_selection): New variable.
12979 (mac_menu_show): Use create_and_show_popup_menu.
12980 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12981 selection but set variable menu_item_selection. All uses changed.
12982 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12983 Call install_menu_quit_handler. Move to mactoolbox.c.
12984
12985 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12986 (Selection): Move typedef to macgui.h.
12987 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12988 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12989 Make variables non-static.
12990 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12991 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12992 Make functions non-static.
12993 (Vmac_service_selection) [MAC_OSX]: Likewise.
12994 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12995 (mac_valid_selection_target_p, mac_clear_selection)
12996 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12997 (mac_put_selection_value, mac_selection_has_target_p)
12998 (mac_get_selection_value, mac_get_selection_target_list)
12999 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13000 Move functions to mactoolbox.c.
13001 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13002 Likewise.
13003 (copy_scrap_flavor_data, mac_handle_service_event)
13004 (install_service_handler) [MAC_OSX]: Likewise.
13005 (syms_of_macselect) <Vmac_dnd_known_types>:
13006 Use mac_dnd_default_known_types.
13007
13008 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13009 Move to mactoolbox.c.
13010 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13011 (Fx_selection_owner_p): Add EXFUN.
13012 (install_window_handler, remove_window_handler, XSetWindowBackground):
13013 Remove externs.
13014 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13015 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13016 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13017 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13018 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13019 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13020 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13021 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13022 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13023 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13024 (mac_valid_selection_target_p, mac_clear_selection)
13025 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13026 (mac_put_selection_value, mac_selection_has_target_p)
13027 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13028 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13029 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13030 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13031 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13032 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13033 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13034 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13035 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13036
13037 * mactoolbox.c: New file.
13038
13039 2008-04-18 Jason Rumney <jasonr@gnu.org>
13040
13041 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13042
13043 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13044
13045 * character.c (Fmultibyte_char_to_unibyte):
13046 Return latin1 chars unchanged.
13047
13048 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13049 relocated if it points to `name'.
13050
13051 2008-04-17 Kenichi Handa <handa@m17n.org>
13052
13053 * data.c (Faset): Allow setting a multibyte character in an
13054 ASCII-only unibyte string.
13055
13056 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13057
13058 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13059
13060 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13061 done in config.h.
13062
13063 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
13064
13065 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13066 (Fchar_direction): Add usage in the docstring.
13067
13068 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
13069
13070 * keyboard.c (read_key_sequence): Remove always-true checks.
13071
13072 2008-04-14 Jason Rumney <jasonr@gnu.org>
13073
13074 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13075 compatibility struct, for better underline positioning.
13076
13077 2008-04-13 David Hansen <david.hansen@gmx.net>
13078
13079 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13080 string.
13081
13082 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13083
13084 * m/hp800.h (XUINT, XSET): Remove.
13085
13086 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
13087
13088 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13089 previous change.
13090
13091 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13092
13093 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13094 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13095
13096 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13097
13098 * keymap.h (map_keymap_canonical): Declare.
13099 * xmenu.c (single_keymap_panes): Use it.
13100
13101 2008-04-11 Glenn Morris <rgm@gnu.org>
13102
13103 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13104 set the target's value to that of the alias.
13105
13106 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13107
13108 * term.c (set_tty_color_mode): Left over typo.
13109
13110 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
13111
13112 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13113 only after check for file name handler functions. Signal, when
13114 native functionality is not supported.
13115 (syms_of_fileio): Declare it unconditionally.
13116
13117 2008-04-10 Jason Rumney <jasonr@gnu.org>
13118
13119 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13120 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13121
13122 * w32.c (logon_network_drive): Also logon to remote drives that
13123 are mapped to drive letters.
13124
13125 2008-04-10 Glenn Morris <rgm@gnu.org>
13126
13127 * xdisp.c (truncate-partial-width-windows): Doc fix.
13128
13129 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13130
13131 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13132 Move functions to minibuffer.el.
13133 (syms_of_fileio): Don't declare them.
13134
13135 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13136
13137 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13138 (syms_of_minibuf): Remove its initialization.
13139
13140 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13141
13142 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
13143
13144 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13145
13146 2008-04-09 Jason Rumney <jasonr@gnu.org>
13147
13148 * makefile.w32-in (distclean): Delete makefile too.
13149 (maintainer-clean): New target.
13150
13151 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13152
13153 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13154 for new font backend and composite cases.
13155
13156 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13157
13158 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13159 Most of the code moved to run_timers.
13160 (do_pending_atimers): Call run_timers.
13161 (run_timers): New function.
13162
13163 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13164 run atimers.
13165
13166 * process.c (wait_reading_process_output): The same as above.
13167
13168 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13169
13170 * minibuf.c (last_exact_completion): Remove variable.
13171 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13172 (complete_and_exit_1, complete_and_exit_2)
13173 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13174 (Fdisplay_completion_list, display_completion_list_1)
13175 (Fminibuffer_completion_help, Fself_insert_and_exit)
13176 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13177 minibuffer.el.
13178 (syms_of_minibuf): Remove corresponding initializations.
13179
13180 * keyboard.c (Qdeactivate_mark): New var.
13181 (command_loop_1): Use it to call `deactivate-mark'.
13182 (syms_of_keyboard): Initialize it.
13183
13184 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13185 to another frame.
13186 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13187 Don't call set_tty_color_mode.
13188 (store_frame_param): Reset previous_frame rather than call
13189 set_tty_color_mode.
13190 * term.c (set_tty_color_mode): Rewrite.
13191 * dispextern.h (set_tty_color_mode): New type.
13192 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13193
13194 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13195
13196 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13197 for generic chars, which do not exist any more in emacs-unicode.
13198
13199 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
13200
13201 * coding.c (detect_coding_emacs_mule)
13202 (Ffind_operation_coding_system): Fix typo.
13203
13204 2008-04-08 Jason Rumney <jasonr@gnu.org>
13205
13206 * w32uniscribe.c (SNAME): Extract only symbol name.
13207
13208 * w32font.h (struct w32_metric_cache): New struct.
13209 (w32font_info): Use it.
13210 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13211 (CACHE_BLOCKSIZE): New constants.
13212
13213 * w32font.c (Qja, Qko, Qzh): New symbols.
13214 (syms_of_w32font): Initialise them.
13215 (font_matches_spec): Use them to filter by language.
13216 (recompute_cached_metrics): Remove function.
13217 (compute_metrics, clear_cached_metrics): New functions.
13218 (w32font_encode_char): Use them to manage metric cache.
13219 (w32font_text_extents): Cache metrics for all glyphs on demand.
13220 Delay converting glyph indices to WORD until needed.
13221 (w32font_open_internal): Initialize metric cache to empty.
13222 (registry_to_w32_charset): Charset should always be a symbol.
13223 (fill_in_logfont, list_all_matching_fonts): Family should
13224 always be a symbol.
13225
13226 2008-04-06 Jason Rumney <jasonr@gnu.org>
13227
13228 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13229 Give up if glyph indices not supported. Use uniscribe obtained
13230 ABC widths for individual metrics. Map glyph clusters back to
13231 characters using fClusterStart flag. Return number of glyphs
13232 produced, not chars processed.
13233 (uniscribe_shape): Map char at FROM to current glyph.
13234
13235 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13236
13237 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13238 Use SetMenuItemHierarchicalMenu.
13239
13240 2008-04-05 Jason Rumney <jasonr@gnu.org>
13241
13242 * image.c (pbm_load): Allow color values up to 65535.
13243 Throw an error if max_color_idx is outside the supported range.
13244 Report an error when image size is invalid.
13245 Read two bytes at a time when raw images have max_color_idx above 255.
13246
13247 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13248
13249 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13250 cFileName a file name that includes `?' characters, use the 8+3
13251 alias in cAlternateFileName instead.
13252
13253 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13254
13255 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13256 append "CCL: Quitted" when the CCL program is quitted.
13257 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13258
13259 * ccl.h (struct ccl_program): New member quit_silently.
13260
13261 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
13262
13263 * search.c (compile_pattern_1): Treat non-nil and non-string of
13264 search-spaces-regexp as nil.
13265
13266 * minibuf.c (Fassoc_string): Tweak docstring.
13267
13268 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13269
13270 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13271 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13272 2008-03-14 to force inode be positive.
13273
13274 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13275 _S_* ones, since we now use our own sys/stat.h.
13276 (stat, fstat): Don't mangle the inode number.
13277 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13278
13279 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13280
13281 * frame.h (struct frame): Give one more bit to `visible' since we use
13282 values larger than 1 to indicate obscured frames on ttys.
13283
13284 * keymap.c (Qkeymap_canonicalize): New var.
13285 (Fmap_keymap_internal): New fun.
13286 (describe_map): Use keymap-canonicalize.
13287
13288 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13289 (Fundo_boundary): Set them.
13290 (syms_of_undo): Initialize them.
13291 (record_point): Use them instead of last_point_position*.
13292 (last_undo_buffer): Change type.
13293
13294 2008-04-04 Jason Rumney <jasonr@gnu.org>
13295
13296 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13297 (recompute_cached_metrics): Don't set ascent and descent per char.
13298
13299 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13300 (uniscribe_check_otf): Add GC protection before consing.
13301 Rearrange loop for counting features.
13302
13303 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13304
13305 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13306 buffer with byte-size of source buffer.
13307
13308 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
13309
13310 * callint.c (Fcall_interactively): Handle temporary region even
13311 when shift-select-mode is off.
13312
13313 2008-04-03 Jason Rumney <jasonr@gnu.org>
13314
13315 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13316
13317 2008-04-03 Kenichi Handa <handa@m17n.org>
13318
13319 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13320 (CATEGORY_MASK_UTF_16): Likewise.
13321 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13322 binary file.
13323 (detect_coding): Add null-byte detection for a binary file.
13324 (detect_coding_system): Likewise.
13325
13326 2008-04-03 Jason Rumney <jasonr@gnu.org>
13327
13328 * w32uniscribe.c: New file.
13329
13330 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13331
13332 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13333
13334 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13335 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13336 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13337 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13338 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13339 (Qphonetic): New symbols.
13340 (syms_of_w32font): Initialize them.
13341 (font_supported_scripts): Use them.
13342 (w32font_list_family): List all charsets.
13343 (w32font_text_extents, recompute_cached_metrics): Fix metric
13344 calculations.
13345 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13346 Give opentype fonts their own format.
13347 (font_matches_spec): New arguments backend and logfont.
13348 Handle :otf spec for uniscribe backend.
13349 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13350 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13351
13352 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13353 font backend.
13354 (globals_of_w32fns): Initialize uniscribe font backend.
13355
13356 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13357 dependencies.
13358 (w32uniscribe.$(O)): New file to build.
13359 (FONT_OBJ): Include w32uniscribe.$(O).
13360 (LIBS): Add uniscribe libraries.
13361
13362 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13363
13364 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
13365
13366 * callint.c (Vshift_select_mode): New var.
13367 (Finteractive): Document new ^ spec.
13368 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13369 is present.
13370
13371 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13372 (command_loop_1): Avoid running the direct display versions of
13373 forward-char and backward-char if shift-selection may occur.
13374 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13375 shift-translation takes place.
13376
13377 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13378 avoid clobbering by define-minor-mode.
13379
13380 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13381 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13382
13383 * syntax.c (Fforward_word): Add ^ interactive spec.
13384
13385 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13386 (Fscroll_right): Add ^ interactive spec.
13387
13388 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13389
13390 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13391
13392 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13393
13394 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13395
13396 2008-03-31 Juri Linkov <juri@jurta.org>
13397
13398 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13399
13400 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13401
13402 * gtkutil.c (xg_set_geometry): Fix indentation.
13403 (xg_resize_outer_widget): Remove.
13404 (x_wm_size_hint_off): Fix indentation.
13405 (xg_frame_set_char_size): Call flush_and_sync after
13406 gtk_window_resize.
13407 (x_wm_set_size_hint): Pass NULL as geometry window to
13408 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13409 Add menu bar and tool bar height to base height.
13410 (xg_update_frame_menubar, free_frame_menubar)
13411 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13412 (update_frame_tool_bar, free_frame_tool_bar):
13413 Change xg_resize_outer_widget to xg_frame_set_char_size.
13414
13415 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
13416
13417 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13418 (Fdbus_call_method): New parameter TIMEOUT.
13419 (dbus-send-signal): Optimize UNGCPRO call.
13420
13421 2008-03-29 Juri Linkov <juri@jurta.org>
13422
13423 * window.c (Fdisplay_buffer): Move call to
13424 Vsplit_window_preferred_function out of conditions that check
13425 if window is eligible for vertical splitting.
13426 When Vsplit_window_preferred_function is non-nil, call it and use
13427 its non-nil return value as window. Otherwise, continue doing
13428 vertical splitting using Fsplit_window with arg horflag=nil.
13429 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13430 default value from `split-window' to nil.
13431
13432 2008-03-29 Juri Linkov <juri@jurta.org>
13433
13434 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13435 for interactive code letters 'b' and 'B'.
13436
13437 2008-03-29 Eli Zaretskii <eliz@gnu.org>
13438
13439 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13440 multibyte string.
13441
13442 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13443
13444 * keyboard.c (pending_funcalls): New var.
13445 (timer_check): Run it.
13446 (syms_of_keyboard): Initialize it.
13447 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13448 (Vdelete_terminal_functions): New vars.
13449 (syms_of_terminal): Initialize them.
13450 (Fdelete_terminal): Run delete-terminal-functions.
13451 * xdisp.c (safe_eval): Rewrite.
13452 (safe_call2): New fun.
13453 * frame.c (Qdelete_frame_functions): New var.
13454 (syms_of_frame): Initialize it.
13455 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13456 * lisp.h (safe_call2, pending_funcalls): Declare.
13457
13458 2008-03-28 Andreas Schwab <schwab@suse.de>
13459
13460 * indent.c (Fmove_to_column): Move declaration before statements.
13461
13462 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13463
13464 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13465 (struct frame): Use bit fields for boolean vars.
13466
13467 * process.c (server_accept_connection): Simplify naming.
13468 (emacs_get_tty_pgrp): Use SDATA.
13469
13470 * coding.c (decode_coding_object): Fix last change.
13471
13472 2008-03-27 Jason Rumney <jasonr@gnu.org>
13473
13474 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13475
13476 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13477
13478 * charset.c (Fdefine_charset_internal): Change the way of
13479 registering charsets in Vcharset_order_list.
13480 (syms_of_charset): Make the charset `eight-bit' supplementary.
13481
13482 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13483
13484 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13485 operations, to avoid having the difference between pointers
13486 overflow.
13487
13488 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13489
13490 * indent.c (check_display_width): New fun.
13491 (scan_for_column): Use it.
13492
13493 * data.c (syms_of_data): Mark most-positive-fixnum and
13494 most-negative-fixnum as constants.
13495
13496 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13497
13498 * indent.c (scan_for_column): Extract from current_column_1.
13499 Merge with the same code from Fmove_to_column.
13500 (current_column_1, Fmove_to_column): Use it.
13501
13502 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13503
13504 * keymap.c (map_keymap_internal): New fun.
13505 (map_keymap): Use it.
13506 (Fmap_keymap_internal): New fun.
13507 (Fmap_keymap): Remove left-out test from before make_save_value.
13508
13509 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13510
13511 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13512 Use XCAR/XCDR.
13513
13514 * process.h (struct Lisp_Process): Remove filter_multibyte.
13515 * process.c (QCfilter_multibyte): Remove.
13516 (setup_process_coding_systems): Don't use filter_multibyte.
13517 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13518 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13519 (Fset_process_filter_multibyte): Change the coding-system to
13520 approximate the previous behavior.
13521 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13522 coding-system.
13523
13524 * coding.c (decode_coding_object): When not decoding into a buffer,
13525 obey the coding system's preference of (uni|multi)byte.
13526
13527 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13528
13529 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13530 every char is changed and has a different byte-length.
13531 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13532 Fix int -> EMACS_INT.
13533
13534 2008-03-23 David Hansen <david.hansen@gmx.net>
13535
13536 * dbusbind.c (xd_read_message): Remove extra copying of message
13537 strings. Check for NULL `interface' or `member'.
13538
13539 2008-03-22 Eli Zaretskii <eliz@gnu.org>
13540
13541 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13542 cFileName a file name that includes `?' characters, use the 8+3
13543 alias in cAlternateFileName instead.
13544
13545 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13548
13549 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13550
13551 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13552 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13553 work on current_buffer only instead (that was already the case
13554 for some of the code anyway).
13555 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13556 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13557 (SET_PT, SET_PT_BOTH): Adjust.
13558 * intervals.h (set_point, temp_set_point, set_point_both)
13559 (temp_set_point_both): Remove redundant declarations.
13560
13561 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13562
13563 * fileio.c (Finsert_file_contents):
13564 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13565 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13566 when buffer != current_buffer anyway.
13567
13568 2008-03-20 Andreas Schwab <schwab@suse.de>
13569
13570 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13571 as default.
13572
13573 2008-03-19 Jason Rumney <jasonr@gnu.org>
13574
13575 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13576 (syms_of_w32fns): Initialize them.
13577 (HOURGLASS_ID): New constant.
13578 (x_window_to_frame): Don't check hourglass_window.
13579 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13580 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13581 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13582 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13583 Only change the cursor if hourglass is not active.
13584 (Fx_create_frame): Initialize frame's current_cursor.
13585 (hourglass_atimer): Remove.
13586 (hourglass_started): New function.
13587 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13588 (show_hourglass): Adapt to w32, changing argument to frame.
13589
13590 * w32term.h (struct w32_output): Remove hourglass_window.
13591 Add current_cursor.
13592
13593 * eval.c (call_debugger, Fsignal):
13594 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13595 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13596 (Fexecute_extended_command, cancel_hourglass_unwind):
13597 * minibuf.c (read_minibuf):
13598 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13599
13600 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13601
13602 * window.c (run_funs): New fun.
13603 (run_window_configuration_change_hook): Use it to run the buffer-local
13604 and the global part of the hook.
13605
13606 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13607 (unwind_format_mode_line): Restore selected window.
13608 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13609
13610 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * editfns.c (Fchar_equal): Check they are valid characters.
13613
13614 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13615
13616 2008-03-17 Andreas Schwab <schwab@suse.de>
13617
13618 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13619 against a charset.
13620
13621 * lisp.h (Fbuffer_list): Declare.
13622
13623 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
13624
13625 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13626 handlebox_widget is != 0.
13627
13628 2008-03-16 Juri Linkov <juri@jurta.org>
13629
13630 * callint.c (Fcall_interactively): For interactive code letters
13631 'b' and 'B' put the buffer list into the list of default "future"
13632 values of the minibuffer.
13633
13634 2008-03-16 Andreas Schwab <schwab@suse.de>
13635
13636 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13637 modifiers.
13638
13639 * regex.c (re_match_2_internal): Correct matching of a charset
13640 against latin-1 characters.
13641
13642 2008-03-16 Kenichi Handa <handa@m17n.org>
13643
13644 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13645 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13646 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13647 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13648 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13649 CHAR_STRING_ADVANCE.
13650 (produce_chars): Fix for the case that the source and the
13651 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13652 instead of CHAR_STRING_ADVANCE.
13653 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13654 STRING_CHAR_ADVANCE.
13655
13656 2008-03-15 Andreas Schwab <schwab@suse.de>
13657
13658 * regex.c (re_match_2_internal): Correct matching of eight bit
13659 characters in unibyte strings.
13660
13661 2008-03-15 Martin Rudalics <rudalics@gmx.at>
13662
13663 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13664 at end of range when it coincides with the end of the buffer.
13665
13666 2008-03-14 Eli Zaretskii <eliz@gnu.org>
13667
13668 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13669
13670 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13671
13672 2008-03-14 Jason Rumney <jasonr@gnu.org>
13673
13674 * editfns.c (initial_tz): New variable.
13675 (syms_of_editfns): Initialize it.
13676 (Fset_time_zone_rule): Set it when first called.
13677 Use it when TZSTRING is nil.
13678
13679 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13680 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13681 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13682 (globals_of_w32fns): Initialize them.
13683 (compute_tip_xy): Use them to position tooltips.
13684
13685 2008-03-14 Glenn Morris <rgm@gnu.org>
13686
13687 * emacs.c (main): Revert previous change.
13688 (standard_args): Revert -internal-script back to -scriptload,
13689 and remove the long-option form.
13690
13691 2008-03-13 Glenn Morris <rgm@gnu.org>
13692
13693 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13694 Remove option -enable-font-backend.
13695
13696 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13697
13698 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13699
13700 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13701
13702 * xterm.c (x_connection_closed): For GTK: If this is the last
13703 terminal just exit without closing the display.
13704
13705 2008-03-11 Jason Rumney <jasonr@gnu.org>
13706
13707 * w32font.c (w32font_full_name): Use floor to round.
13708
13709 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13710
13711 * sound.c (alsa_configure): Declare vol at beginning of block.
13712
13713 * fontset.c (Ffontset_info): Remove extra semicolon.
13714
13715 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13716
13717 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13718 size of resulting string.
13719
13720 2008-03-10 Jason Rumney <jasonr@gnu.org>
13721
13722 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13723
13724 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13725
13726 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13727 Don't pretend as if characters with display property haven't been
13728 consumed for string-replacing-string case.
13729
13730 2008-03-08 Kim F. Storm <storm@cua.dk>
13731
13732 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13733 (get_next_display_element, next_element_from_string)
13734 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13735
13736 2008-03-08 Andreas Schwab <schwab@suse.de>
13737
13738 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13739
13740 2008-03-06 Jason Rumney <jasonr@gnu.org>
13741
13742 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13743 when charset not specified. Only translate ANSI to unicode when
13744 font_type is truetype.
13745 (w32font_coverage_ok): New function.
13746 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13747
13748 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13749
13750 * lread.c (Fread_char): Resolve modifiers.
13751 (Fread_char_exclusive): Likewise.
13752
13753 * character.c (char_resolve_modifier_mask): New function.
13754 (char_string): Use char_resolve_modifier_mask.
13755 (Fchar_resolve_modifiers): New function.
13756 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13757 function.
13758
13759 2008-03-04 Jason Rumney <jasonr@gnu.org>
13760
13761 * makefile.w32-in: Always include w32font.c in the build.
13762 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13763
13764 2008-03-04 Andreas Schwab <schwab@suse.de>
13765
13766 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13767 (versionclean): Likewise.
13768
13769 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
13770
13771 * .cvsignore: Add oo.
13772
13773 2008-03-03 Andreas Schwab <schwab@suse.de>
13774
13775 * coding.c (decode_coding_object): Inhibit gap shrinking while
13776 decoding in place.
13777
13778 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13779
13780 * w32term.c: Remove unused include "gnu.h".
13781 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13782
13783 * gnu.h: Rename to ...
13784 * emacs-icon.h: ... this.
13785 * xterm.c: Use emacs-icon.h instead of gnu.h.
13786 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13787
13788 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
13789
13790 * w32font.c: Include math.h.
13791
13792 2008-03-03 Jason Rumney <jasonr@gnu.org>
13793
13794 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13795 Compute options separately.
13796 (w32font_open_internal): Set glyph_idx before caching metrics.
13797
13798 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13799 Define if system headers don't.
13800 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13801 (w32font_encode_char): Don't declare here.
13802
13803 * w32font.c (Quniscribe, QCformat): New symbols.
13804 (syms_of_w32font): Define them.
13805 (w32font_has_char): Indicate uncertainty.
13806 (w32font_encode_char): Encode as glyph point. Make static.
13807 (recompute_cached_metrics): New function.
13808 (w32font_open_internal): Use it. Set font to use glyph points
13809 initially. Set format based on type of font.
13810 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13811 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13812 on it. Set format based on information available here.
13813 (add_font_entity_to_list): Identify backend based on opentype_only.
13814
13815 2008-03-02 Andreas Schwab <schwab@suse.de>
13816
13817 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13818
13819 * coding.c (decode_coding_big5, produce_chars):
13820 Fix typos in last change.
13821
13822 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13823
13824 * gnu.h: New icon.
13825
13826 2008-03-02 Kenichi Handa <handa@m17n.org>
13827
13828 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13829 `dos', don't decode '\r' if that is the last in the source.
13830 (decode_coding_utf_16, decode_coding_emacs_mule)
13831 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13832 (decode_coding_raw_text, decode_coding_charset): Likewise.
13833 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13834
13835 2008-03-01 Jason Rumney <jasonr@gnu.org>
13836
13837 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13838
13839 2008-03-01 Kim F. Storm <storm@cua.dk>
13840
13841 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13842
13843 2008-03-01 Jason Rumney <jasonr@gnu.org>
13844
13845 * w32font.c (w32font_full_name): New function.
13846 (w32font_open_internal): Use it.
13847
13848 2008-03-01 Kim F. Storm <storm@cua.dk>
13849
13850 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13851
13852 2008-03-01 Jason Rumney <jasonr@gnu.org>
13853
13854 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13855
13856 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13857
13858 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13859 xg_frame_resized when the event is for the edit widget.
13860
13861 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13862
13863 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13864 set_char_size.
13865 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13866 operations on widgets here. Just set frame size if needed.
13867 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13868 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13869 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13870 the whole frame.
13871 (xg_create_tool_bar): Move attachment of the tool bar to
13872 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13873 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13874
13875 2008-03-01 Jason Rumney <jasonr@gnu.org>
13876
13877 * w32fns.c (w32_msg_pump): Disable debug code.
13878
13879 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13880
13881 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13882
13883 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13884
13885 * xdisp.c (next_overlay_string): Don't set
13886 overlay_strings_at_end_processed_p if we're currently reading from
13887 a display string.
13888
13889 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13890
13891 * xdisp.c (get_overlay_strings_1): Fix typo.
13892
13893 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13894
13895 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13896
13897 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13898
13899 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13900
13901 * xdisp.c (display_mode_element): Cancel the previous change.
13902 (decode_mode_spec): Likewise.
13903 (handle_auto_composed_prop): Don't make composition if it->string
13904 is a string.
13905
13906 2008-02-27 Kim F. Storm <storm@cua.dk>
13907
13908 * lisp.h (GLYPH): Change type from int to struct with separate char
13909 and face_id members.
13910 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13911 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13912 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13913 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13914 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13915 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13916 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13917 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13918 handle new Lisp glyph code encoding, either an integer or a cons.
13919
13920 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13921 (GLYPH_ALIAS): Delete.
13922 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13923 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13924 (GLYPH_FROM_CHAR): Replace macro by ...
13925 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13926
13927 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13928 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13929 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13930 (GLYPH_INVALID_P): New macro.
13931 (spec_glyph_lookup_face): Update prototype.
13932
13933 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13934 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13935 new glyph code encoding.
13936 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13937 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13938
13939 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13940 Adapt to new glyph type and new glyph code encoding.
13941
13942 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13943
13944 * indent.c (current_column, current_column_1, Fmove_to_column)
13945 (compute_motion): Adapt to new glyph code encoding.
13946
13947 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13948
13949 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
13950
13951 * process.c (wait_reading_process_output): Check for window
13952 changes caused by timers.
13953 Suggested by Johan Bockgård.
13954
13955 2008-02-27 Glenn Morris <rgm@gnu.org>
13956
13957 * emacs.c (USAGE1): Add `--disable-font-backend'.
13958
13959 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13960
13961 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13962 is made to the buffer.
13963
13964 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13965
13966 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13967 (face_at_string_position):
13968 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13969 (face_at_string_position):
13970 * xdisp.c (display_string, next_overlay_change):
13971 * buffer.h (overlays_at):
13972 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13973 Update callers.
13974
13975 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
13976
13977 * editfns.c (Fformat): Doc fix.
13978
13979 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
13980
13981 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13982 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13983 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13984
13985 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * buffer.c (Fbuffer_swap_text): New function.
13988 (syms_of_buffer): Defsubr it.
13989
13990 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
13991
13992 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13993
13994 2008-02-25 Jason Rumney <jasonr@gnu.org>
13995
13996 * w32font.c (w32font_draw): Draw one character at a time when padding.
13997
13998 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13999
14000 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14001 Handle a nil arg. Use run_window_configuration_change_hook.
14002 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14003 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14004 Use run_window_configuration_change_hook.
14005
14006 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14007
14008 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14009 1-pixel width.
14010
14011 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14012
14013 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14014 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14015 if the glyph in the font is zero pixel with.
14016
14017 * dispextern.h (struct glyph_string): New member padding_p.
14018
14019 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14020
14021 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14022
14023 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14024
14025 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14026
14027 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14028
14029 2008-02-25 Jason Rumney <jasonr@gnu.org>
14030
14031 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14032
14033 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14034
14035 Allow fine-grained image-cache flushing.
14036 * dispextern.h (struct image): Add `dependencies' field.
14037 (clear_image_caches): Change arg to Lisp_Object.
14038 * image.c (make_image): Initialize `dependencies' field.
14039 (clear_image_cache): Change arg to allow fine-grained flushing.
14040 Perform the flush even if image-cache-eviction-delay is nil.
14041 (clear_image_caches): Change arg to Lisp_Object.
14042 (Fclear_image_cache): Expand meaning of the argument.
14043 (mark_image): Mark `dependencies' field.
14044 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14045 (lface_hash): Use XHASH rather than XFASTINT.
14046 (face_at_buffer_position): Fix int -> EMACS_INT position.
14047 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14048 (select_frame_for_redisplay): Remove code duplication.
14049 (redisplay_internal): Adapt arg to call to clear_image_caches.
14050
14051 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14052
14053 * s/vms4-0.h:
14054 * s/vms4-2.h:
14055 * s/vms4-4.h:
14056 * s/vms5-5.h: Remove, unused.
14057
14058 * s/irix5-2.h:
14059 * s/irix6-0.h:
14060 * s/riscos5.h:
14061 * s/mach-bsd4-3.h:
14062 * m/mips4.h: Remove files for obsolete systems.
14063
14064 * Makefile.in:
14065 * filelock.c:
14066 * unexmips.c:
14067 * m/hp9000s300.h:
14068 * m/iris4d.h:
14069 * s/aix3-1.h:
14070 * s/hpux.h:
14071 * s/msdos.h:
14072 * s/usg5-0.h:
14073 * s/usg5-2-2.h:
14074 * s/usg5-2.h:
14075 * s/usg5-3.h: Remove references to obsolete variables.
14076
14077 * s/irix5-0.h: Remove, move all the contents ...
14078 * s/irix6-5.h: ... here. Simplify.
14079 * config.in: Regenerate.
14080
14081 2008-02-24 Jason Rumney <jasonr@gnu.org>
14082
14083 * w32term.c (x_draw_glyph_string_background): Clear the background
14084 manually when cleartype is in use.
14085 (x_draw_glyph_string_foreground): Draw text transparently when
14086 cleartype is in use.
14087
14088 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14089 a font into it unless we have to.
14090
14091 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14092
14093 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14094 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14095
14096 2008-02-18 Jason Rumney <jasonr@gnu.org>
14097
14098 * w32fns.c (Fw32_shell_execute): Encode parameters.
14099
14100 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14101
14102 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14103
14104 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
14105
14106 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14107
14108 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14109
14110 * xterm.c (x_set_offset): Don't change the gravity if
14111 CHANGE_GRAVITY is -1.
14112
14113 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
14114
14115 * fileio.c (auto_save_error_occurred): New var.
14116 (auto_save_error): Set it.
14117 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14118 error occurred.
14119
14120 2008-02-23 Eli Zaretskii <eliz@gnu.org>
14121
14122 * w32.c (globals_of_w32): Add initializations for
14123 g_b_init_get_sid_sub_authority and
14124 g_b_init_get_sid_sub_authority_count.
14125
14126 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14127
14128 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14129 (font_parse_xlfd): Use them for sanity check.
14130 (Finternal_set_font_style_table): Make sure the table is bijective.
14131
14132 Consolidate the image_cache to the terminal struct.
14133 * termhooks.h (P_): Remove redundant def.
14134 (struct terminal): New field `image_cache'.
14135 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14136 of FRAME_X_IMAGE_CACHE.
14137 * xterm.h (struct x_display_info): Remove image_cache field.
14138 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14139 * w32term.h (struct w32_display_info): Remove image_cache field.
14140 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14141 * macterm.h (struct mac_display_info): Remove image_cache field.
14142 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14143 * xterm.c (x_term_init):
14144 * w32term.c (w32_term_init):
14145 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14146 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14147 Remove declarations.
14148 (clear_image_caches, mark_image_cache): New declarations.
14149 * xfaces.c (clear_face_cache):
14150 * xdisp.c (redisplay_internal): Use clear_image_caches.
14151 * image.c (clear_image_cache): Don't check that a frame is on
14152 a window-system before checking if it shares the same cache.
14153 (clear_image_caches): New function.
14154 (Fclear_image_cache): Use it.
14155 (mark_image): Move from allo.c.
14156 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14157 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14158 (mark_object): Don't call mark_image_cache for frames.
14159 (mark_terminals): Call mark_image_cache.
14160
14161 * lisp.h (Fdelete_terminal): Declare.
14162
14163 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14164 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14165 wrong_type_argument.
14166
14167 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14168
14169 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14170 malayalam.el, and tamil.el. Add sinhala.el.
14171
14172 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14173
14174 * xterm.c (x_connection_closed): Consolidate identical tests.
14175 (x_delete_terminal): Don't crash if called via x_connection_closed.
14176
14177 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14178
14179 * xdisp.c (decode_mode_spec): New arg string.
14180 (display_mode_element): Adjust for the above change.
14181
14182 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14183
14184 * callint.c (Fcall_interactively): Use AREF.
14185
14186 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14187
14188 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14189
14190 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14191
14192 * xfns.c (Fx_show_tip): Set string to " " if empty.
14193
14194 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14195
14196 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14197 with Qt.
14198
14199 2008-02-17 Kenichi Handa <handa@m17n.org>
14200
14201 * ftfont.c (ftfont_shape): Return Lispy number.
14202
14203 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14204 for GCs.
14205 (Finternal_set_font_selection_order): Call font_update_sort_order
14206 only when enable_font_backend is set.
14207 (realize_x_face): Set face->font_info to that of default face only
14208 when enable_font_backend is set.
14209
14210 * xdisp.c (handle_composition_prop): Set it->c to the fist
14211 character of the composed region.
14212 (fill_composite_glyph_string): Set base_face->font_info to
14213 s->font_info. Get a face for ascii from base_face->ascii_face.
14214 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14215 with a face already decided.
14216 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14217 non-negative.
14218 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14219 call font_prepare_composition unconditionally.
14220
14221 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14222
14223 * xterm.h (struct x_display_info): New member font.
14224
14225 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14226 (x_set_mouse_face_gc, x_new_font): Likewise.
14227 (x_term_init): Setup display_info->font.
14228 (x_delete_terminal): Free display_info->font.
14229
14230 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14231
14232 * ftxfont.c (ftxfont_default_fid): Delete it.
14233 (ftxfont_open): Set xfont->fid to 0.
14234 (ftxfont_end_for_frame): Clear data specific to the frame and the
14235 font-driver.
14236
14237 * xftfont.c (xftfont_default_fid): Delete it.
14238 (xftfont_open): Set xfont->fid to 0.
14239
14240 * fontset.c (FONTSET_OBJLIST): New macro.
14241 (fontset_find_font): Update font-object list of the fontset.
14242 (free_realized_fontset): New function.
14243 (free_face_fontset): Call free_realized_fontset.
14244 (Ffont_info): Call font_close_object only when enable_font_backend
14245 is set.
14246
14247 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14248 [HAVE_NTGUI]: Include w32term.h.
14249 [MAC_OS]: Include macterm.ch.
14250 (font_otf_ValueRecord): Use make_number.
14251 (font_finish_cache): Fix handling of reference count.
14252 (font_clear_cache): Update num_fonts.
14253 (font_open_entity): Update smallest_char_width and
14254 smallest_font_height of the frame.
14255 (font_close_object): Update num_fonts.
14256 (Fclear_font_cache): Fix finding the target cache data.
14257
14258 2008-02-16 Glenn Morris <rgm@gnu.org>
14259
14260 * fontset.c (Finternal_char_font): Fix compilation warning.
14261
14262 2008-02-16 Eli Zaretskii <eliz@gnu.org>
14263
14264 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14265 instead of char arrays. Enlarge the size of array passed to
14266 get_token_information.
14267
14268 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14269 warnings.
14270
14271 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14272
14273 * .gdbinit: Don't set `args', it breaks gdb --args.
14274
14275 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14276
14277 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14278 within a narrowed buffer.
14279
14280 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14281
14282 * coding.c (decode_coding_object, encode_coding_object):
14283 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14284
14285 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14286
14287 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14288 hardcoding 1.
14289 (detect_coding_system):
14290 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14291 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14292 * insdel.c (insert_from_gap):
14293 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14294 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14295 (string_to_multibyte):
14296 * character.c (chars_in_text, multibyte_chars_in_text):
14297 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14298
14299 * character.h (FETCH_STRING_CHAR_ADVANCE)
14300 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14301 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14302 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14303
14304 * casefiddle.c (casify_region): Only call after-change and composition
14305 functions on the part of the region that was changed.
14306
14307 * keyboard.c (read_avail_input):
14308 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14309
14310 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14311
14312 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14313 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14314
14315 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
14316
14317 * w32menu.c (push_submenu_start, push_submenu_end)
14318 (push_left_right_boundary, push_menu_pane, push_menu_item):
14319 * keyboard.c (read_key_sequence): Don't pass args with side effects
14320 to AREF, it fails when compiling with -DENABLE_CHECKING.
14321
14322 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14323
14324 * Makefile.in (${lispsource}international/charprop.el):
14325 Delete this target.
14326
14327 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14328 emacs-unicode-2.
14329
14330 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14331
14332 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14333
14334 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14335
14336 * frame.c (Qnoelisp): New symbol.
14337 (syms_of_frame): Initialize it.
14338 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14339 harmless Elisp code, from a strong `force' from x_connection_closed.
14340 * frame.h (Qnoelisp): Declare.
14341 * xterm.c (x_connection_closed): Pass `noelisp'.
14342
14343 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14344 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14345 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14346 rather than `int' for the type of `type'.
14347
14348 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14349
14350 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14351
14352 * Makefile.in (GNUC): Remove support for gcc-1.x.
14353
14354 2008-02-10 Richard Stallman <rms@gnu.org>
14355
14356 * lisp.h (ASET): Use AREF, not ASLOT.
14357
14358 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14359
14360 * lisp.h (ASET): Check bounds.
14361
14362 2008-02-10 Glenn Morris <rgm@gnu.org>
14363
14364 * buffer.c (mode-name): Doc fix.
14365
14366 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14367
14368 * Makefile.in:
14369 * emacs.c:
14370 * gmalloc.c:
14371 * keyboard.c:
14372 * lisp.h:
14373 * m/ibm370aix.h:
14374 * process.c:
14375 * regex.c:
14376 * s/hpux.h:
14377 * sysdep.c:
14378 * sysselect.h:
14379 * systty.h:
14380 * unexec.c:
14381 * w32term.c:
14382 * xsmfns.c:
14383 * xterm.c: Remove code that deals with obsolete variables.
14384
14385 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14386
14387 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14388 nothing else needs it anymore.
14389
14390 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14391
14392 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14393 instead of unibyte_char_to_multibyte.
14394
14395 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14396
14397 * s/gnu-linux.h: Remove commented out code.
14398
14399 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14400
14401 * Makefile.in: Update what RMS says about using autoconf.
14402 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14403 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14404 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14405 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14406
14407 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14408
14409 * keymap.c (Fkey_description): Move side effect outside of macro call.
14410
14411 * xfaces.c (Finternal_make_lisp_face):
14412 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14413
14414 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14415 (syms_of_fontset): Use ASET.
14416
14417 * fns.c (concat): Move side effect outside of macro call.
14418 (hash_clear): Use ASET.
14419
14420 2008-02-08 Richard Stallman <rms@gnu.org>
14421
14422 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14423 If FORCE, and frame has a surrogate minibuffer for another frame,
14424 delete the other frame first.
14425
14426 2008-02-07 Timo Savola <timo.savola@iki.fi>
14427
14428 * xterm.c (x_detect_focus_change): Handle embed client message.
14429 (handle_one_xevent): Ditto.
14430 (handle_one_xevent): If embedded and we get a button press/release,
14431 request focus.
14432 (xembed_set_info, xembed_send_message): New functions.
14433 (x_make_frame_visible): Call xembed_set_info if embedded.
14434 (x_make_frame_invisible): Call xembed_set_info if embedded.
14435 (x_term_init): Initialize Xatom_XEMBED.
14436 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14437 (x_iconify_frame): Ditto.
14438
14439 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14440 (enum xembed_info, enum xembed_message, enum xembed_focus)
14441 (enum xembed_modifier, enum xembed_accelerator): New.
14442 (xembed_set_info, xembed_send_message): Declare.
14443 (FRAME_X_EMBEDDED_P): New.
14444
14445 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14446 gtk_plug_new.
14447
14448 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14449 window ID of a frame.
14450 (x_window): Reparent frame if embedded.
14451 (Fx_create_frame): Don't set border width if embedded.
14452
14453 * emacs.c (USAGE3): Add --parent-id.
14454 (standard_args): Ditto.
14455
14456 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14457
14458 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14459
14460 2008-02-07 Jim Meyering <meyering@redhat.com>
14461
14462 Use "do...while (0)", not "if (1)...else" in macro definitions.
14463 The latter provokes a warning from gcc about the empty else, when
14464 followed by ";". Also, without that trailing semicolon, it would
14465 silently swallow up any following statement.
14466 * syntax.h (SETUP_SYNTAX_TABLE)
14467 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14468 * buffer.h (DECODE_POSITION): Likewise.
14469 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14470 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14471 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14472 (FETCH_CHAR_ADVANCE): Likewise.
14473 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14474
14475 2008-02-07 Jim Meyering <meyering@redhat.com>
14476
14477 * lread.c [lint]: Don't include <sys/inode.h>.
14478
14479 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14480
14481 * xselect.c (x_handle_dnd_message):
14482 * xmenu.c (digest_single_submenu, xmenu_show):
14483 * xdisp.c (with_echo_area_buffer_unwind_data)
14484 (format_mode_line_unwind_data, unwind_format_mode_line)
14485 (display_menu_bar):
14486 * eval.c (Ffetch_bytecode):
14487 * doc.c (store_function_docstring):
14488 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14489 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14490 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14491
14492 2008-02-07 Kenichi Handa <handa@m17n.org>
14493
14494 * ftxfont.c (ftxfont_open): Don't set
14495 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14496
14497 * ftfont.c (ftfont_open): Fix previous change.
14498
14499 2008-02-06 Jason Rumney <jasonr@gnu.org>
14500
14501 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14502 Use cached metrics for ASCII characters.
14503 (w32font_open_internal): Don't set font's owning_frame.
14504 Cache metrics for ASCII characters.
14505
14506 * w32font.h (struct w32font_info): Add ascii_metrics.
14507 Remove owning_frame.
14508
14509 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14510
14511 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14512 to negative value.
14513
14514 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14515
14516 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14517
14518 * charset.c (syms_of_charset): Set QCtest and Qeq.
14519
14520 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14521
14522 * process.c (Fstart_process):
14523 * callproc.c (Fcall_process): Handle the case where
14524 Funhandled_file_name_directory returns nil.
14525
14526 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14527 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14528 * font.c (check_gstring): Use them and AREF to access the vector before
14529 we know it's really a gstring.
14530 (Ffont_shape_text): Fix typo.
14531 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
14532
14533 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14534 Declare.
14535
14536 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14537
14538 2008-02-05 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14541 Set smallest_font_height and smallest_char_width in display info.
14542
14543 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14544
14545 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14546
14547 2008-02-05 Miles Bader <miles@gnu.org>
14548
14549 * xfaces.c (get_lface_attributes, merge_named_face)
14550 (lookup_named_face, lookup_derived_face, realize_named_face):
14551 Revert 2008-02-01 change by cyd@stupidchicken.com.
14552
14553 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14554
14555 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14556 fallback fonts.
14557 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14558
14559 2008-02-04 Jason Rumney <jasonr@gnu.org>
14560
14561 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14562 set full_name.
14563 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14564
14565 2008-02-03 Jason Rumney <jasonr@gnu.org>
14566
14567 * makefile.w32-in (OBJ1): Include font.o here.
14568 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14569
14570 2008-02-02 Jason Rumney <jasonr@gnu.org>
14571
14572 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14573
14574 2008-02-01 Jason Rumney <jasonr@gnu.org>
14575
14576 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14577
14578 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14579
14580 2008-02-01 Andreas Schwab <schwab@suse.de>
14581
14582 * Makefile.in (shortlisp, lisp): Update for rename of
14583 ../lisp/language/myanmar.el.
14584
14585 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
14586
14587 * xfaces.c (get_lface_attributes): Delete function.
14588 (merge_named_face, lookup_named_face, lookup_derived_face)
14589 (realize_named_face): Call lface_from_face_name directly, and use
14590 the fact that merge_face_vectors does not alter its FROM argument.
14591
14592 2008-02-01 Jason Rumney <jasonr@gnu.org>
14593
14594 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14595 input in the default locale. Handle non-Unicode multibyte input.
14596
14597 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14598
14599 * fontset.c (reorder_font_vector): Exclude nil elements from the
14600 font group. Don't try multiple fonts.
14601 (fontset_font): Adjust for the above change.
14602 (Finternal_char_font): Return nil if the found font doesn't
14603 contain the character ch.
14604
14605 * Makefile.in (lisp, shortlisp): Add cham.el.
14606
14607 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14608
14609 * font.h (FONTP): Make it return 1 also for a font-object.
14610
14611 * .gdbinit (xfontset): New function.
14612
14613 * font.c (font_find_for_lface): Check if the character C is
14614 supported or not only for the first font.
14615
14616 * fontset.c (reorder_font_vector): Fix typo.
14617 (fontset_find_font): Don't add a font-spec specifying a script.
14618 Use 0 (not Qt) for the indication of empty font-group. Change the
14619 format of RFONT-DEF. Return Qt if no font in the font-group
14620 support the character.
14621 (fontset_font): Adjust for the above change. If no font was
14622 found the character, remember that.
14623 (face_for_char): Adjust for the change of RFONT-DEF.
14624 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14625 no font for the target.
14626 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14627
14628 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14629
14630 * font.c (font_load_for_face): Handle the case that the font in
14631 face->lface is a string.
14632
14633 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14634
14635 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14636
14637 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14638
14639 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14640 Fix previous change. If the frame is not on a window system,
14641 signal an error.
14642
14643 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14644
14645 * coding.c (decode_coding_object, encode_coding_object): Adjust
14646 marker positions after conversion.
14647
14648 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14649
14650 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14651
14652 * font.c (font_find_for_lface): Fix the handling of the return
14653 value of font_has_char.
14654 (Ffont_shape_text): Fix previous change.
14655
14656 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14657 (fontset_ref_and_range): Delete it.
14658 (fontset_find_font): Call char_table_ref_and_range instead of
14659 FONTSET_REF_AND_RANGE.
14660 (make_fontset): Don't setup font groups of Latin here.
14661 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14662 (new_fontset_from_font): Make the specified font the default for
14663 all Latin characters.
14664
14665 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14666
14667 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14668 is on a window system before accessing the fontset of the frame.
14669
14670 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14671
14672 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14673
14674 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14675 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14676
14677 * font.c (Ffont_shape_text): If the font driver doesn't have a
14678 shaper function, make zero-width glyphs to have at least one-pixel
14679 width. Fix setting of `to' field of glyphs.
14680
14681 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14682
14683 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14684 glyphs.
14685
14686 * font.h (struct font_driver): Improve docstring of member `shape'.
14687
14688 2008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * composite.c (syms_of_composite): Fix docstring of
14691 auto-composition-function.
14692
14693 * font.h (LGLYPH_SIZE): New macro.
14694
14695 * font.c (Ffont_fill_gstring): Stop filling when a character not
14696 supported by the font is found.
14697 (Ffont_shape_text): When a shape callback function returns nil,
14698 try at most two more times with larger gstring.
14699 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14700
14701 * xdisp.c (handle_auto_composed_prop): Change the argument to
14702 auto-composition-function.
14703
14704 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14705 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14706 Lispy glyph and store it in the lgstring.
14707
14708 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14709
14710 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14711
14712 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14713
14714 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14715
14716 * fontset.c (Vfont_encoding_charset_alist): New variable.
14717 (syms_of_fontset): DEFVAR it.
14718 (reorder_font_vector, fontset_find_font): Optimize for the case of
14719 no need of reordering.
14720 (face_for_char): Map the charset property by
14721 Vfont_encoding_charset_alist.
14722
14723 2008-02-01 Jason Rumney <jasonr@gnu.org>
14724
14725 * w32font.c (logfonts_match): Don't check adstyle here.
14726 (font_matches_spec): Check here against physical font instead.
14727 (add_font_entity_to_list): Avoid some substitutions.
14728
14729 * font.c (font_parse_fcname): Default weight and slant to normal.
14730 (font_score): Prefer normal fonts if weight or slant unspecified.
14731 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14732 match freetype scores.
14733
14734 2008-02-01 Jason Rumney <jasonr@gnu.org>
14735
14736 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14737 font, as it may have been deleted.
14738 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14739 most common hyphenless variation.
14740 (logfonts_match): Check generic family.
14741 (font_matches_spec): Don't check generic family here.
14742 (fill_in_logfont): Set generic family based on adstyle.
14743
14744 * w32font.h (w32font_get_cache): Update declaration.
14745
14746 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14747
14748 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14749
14750 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14751 If none of the new drivers are available, call font_update_drivers
14752 with the old drivers.
14753
14754 * w32font.c (w32font_get_cache): Adjust the argument type.
14755
14756 * xfont.c (xfont_get_cache): Adjust the argument type.
14757
14758 * font.h (struct font_driver): Change argument type of get_cache.
14759
14760 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14761
14762 * font.c (Ffont_get): Fix arguments to Fassoc.
14763 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14764 (font_clear_cache): New function.
14765 (font_list_entities, font_matching_entity): Use font_get_cache.
14766 (font_update_drivers): Call font_clear_cache when finishing a driver.
14767
14768 * fontset.c (fontset_find_font): Fix previous change.
14769
14770 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14771
14772 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14773 dpyinfo->font_table.
14774 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14775 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14776
14777 * font.c (font_at): Handle the case that the arg C is negative.
14778 Handle the unibyte case.
14779 (Ffont_at): Call font_at with the arg C -1.
14780
14781 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14782 the position here, and call font_at with the arg C -1.
14783 Don't check the range of the existing composition at the point.
14784
14785 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14786
14787 * fontset.c (fontset_add): New args charset_id and family.
14788 Change caller.
14789 (load_font_get_repertory, fontset_find_font): Assume that
14790 font_spec is always a font-spec object.
14791 (Fset_fontset_font): Always store a font-spec object in a fontset.
14792
14793 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14794 instead of get_property_and_range.
14795
14796 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14797
14798 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14799 (xftfont_open): Don't keep locking face.
14800 (xftfont_close): Don't unlock face.
14801 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14802
14803 * fontset.c (fontset_find_font): Don't prefer a font of
14804 supplementary charset.
14805
14806 2008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14809 script, langsys_tag to langsys, new member script.
14810 (OTF_TAG_STR): Terminate by '\0'.
14811 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
14812 listing to the script specified in that property. Fix arg to
14813 OTF_check_features.
14814
14815 2008-02-01 Jason Rumney <jasonr@gnu.org>
14816
14817 * w32font.h: New file.
14818
14819 * w32font.c: Include it.
14820 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14821 (w32font_open): Set owning_frame.
14822 (w32font_text_extents): Use owning_frame.
14823 (struct font_callback_data): Add opentype_only field.
14824 (add_font_entity_to_list): Use it to filter fonts.
14825 Don't check against full name.
14826 (w32font_list_internal): New function.
14827 (w32font_list): Use it.
14828 (w32font_match_internal): New function.
14829 (w32font_match): Use it.
14830 (w32font_open_internal): New function.
14831 (w32font_open): Use it.
14832 (w32font_get_cache, w32font_close, w32font_has_char)
14833 (w32font_encode_char, w32font_text_extents, w32font_draw):
14834 Make non-static.
14835
14836 * makefile.w32-in (w32font.o): Depend on w32font.h.
14837
14838 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14839
14840 * charset.c (Fdefine_charset_internal): Record a supplementary
14841 charset at the tail of Vcharset_order_list.
14842
14843 * font.c (Ffont_shape_text): Fix the return value.
14844
14845 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14846
14847 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14848
14849 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14850
14851 * ftfont.c (struct OpenTypeSpec): New struct.
14852 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14853 (ftfont_get_open_type_spec): New function.
14854 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14855
14856 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14857
14858 2008-02-01 Jason Rumney <jasonr@gnu.org>
14859
14860 * w32font.c (add_font_entity_to_list): Compare only the beginning
14861 of full name.
14862
14863 2008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14866 Never return HANDLED_RECOMPUTE_PROPS.
14867
14868 2008-02-01 Kenichi Handa <handa@m17n.org>
14869
14870 * font.c (font_gstring_produce): Delete it.
14871
14872 * composite.h (COMPOSITION_METHOD):
14873 Handle COMPOSITION_WITH_GLYPH_STRING.
14874
14875 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14876
14877 * xfont.c (Qx): Delete.
14878 (syms_of_xfont): Don't initialize Qx.
14879
14880 * composite.h (enum composition_method):
14881 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14882
14883 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14884
14885 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14886 (choose_face_font): Accept new form of font-spec.
14887
14888 * frame.h (font_driver_list): Declare it unconditionally.
14889 (struct frame): Define members font_driver_list and font_data_list
14890 unconditionally.
14891
14892 * fontset.c: Include "font.h" unconditionally.
14893 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14894 (Fset_fontset_font): Accept a font-spec object.
14895
14896 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14897 PIXEL_SIZE part a wild card.
14898
14899 * dispextern.h (struct glyph_string): Define members clip and
14900 num_clips unconditionally.
14901 (struct face): Define members font_info and extra unconditionally.
14902
14903 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14904 ftfont_info only when HAVE_LIBOTF is defined.
14905
14906 2008-02-01 Andreas Schwab <schwab@suse.de>
14907
14908 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14909 and end.
14910
14911 2008-02-01 Jason Rumney <jasonr@gnu.org>
14912
14913 * w32font.c (w32font_driver): Add new fields.
14914
14915 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14916
14917 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14918 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14919 (LIBES): Add @M17N_FLT_CFLAGS@.
14920
14921 * composite.c (compose_text): Don't treat the new style
14922 composition specially.
14923
14924 * emacs.c (main): Call syms_of_font unconditionally.
14925
14926 * font.h (FONT_ENTITY_NOT_LOADABLE)
14927 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14928 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14929 (struct font_driver): New member shape.
14930 (font_registry_charsets): Extern it.
14931 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14932 (font_otf_capability, font_drive_otf): Delete their externs.
14933
14934 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14935 (font_charset_alist, font_registry_charsets): Move from xfont.c
14936 and rename.
14937 (font_prop_validate_otf): New function.
14938 (font_property_table): Register it for QCotf.
14939 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14940 (font_drive_otf): Delete.
14941 (font_prepare_composition): New arg F. Adjust for the change of
14942 lispy gstring.
14943 (font_find_for_lface): New arg C.
14944 (font_load_for_face): Adjust for the change of font_find_for_lface.
14945 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14946 lispy gstring.
14947 (Ffont_shape_text): New function.
14948 (Fopen_font): If the font size is not given, use 12-pixel.
14949 (Ffont_at): New arg STRING.
14950 (syms_of_font): Initalize font_charset_alist.
14951 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14952 conditionally.
14953
14954 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14955 fonts of the same font-spec. Change the format of RFONT-DEF.
14956 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14957 Adjust for the change of RFONT-DEF.
14958 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14959
14960 * ftfont.h: New file.
14961
14962 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14963 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14964 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14965 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14966 font_otf_capability and font_drive_otf, set ftfont_shape.
14967 (ftfont_list): Adjust for the change of :otf property value.
14968 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14969 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14970 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14971 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14972 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14973 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14974
14975 * w32term.c (x_draw_composite_glyph_string_foreground):
14976 Adjust for the change of lispy gstring.
14977
14978 * xdisp.c (handle_composition_prop): Adjust for the change of
14979 lispy gstring. Call a function for auto-composition with the
14980 third arg it->window.
14981 (fill_composite_glyph_string): Adjust for the change of lispy string.
14982 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14983
14984 * xfaces.c (set_font_frame_param): Adjust for the change of
14985 font_find_for_lface.
14986
14987 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14988 (xfont_registry_charsets): Likewise. Change caller.
14989 (syms_of_xfont): Don't handle x_font_charset_alist.
14990
14991 * xftfont.c: Include "ftfont.h".
14992 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14993 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14994 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14995 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14996 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14997 Set xftfont_driver.shape to xftfont_shape.
14998
14999 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15000 the change of lispy gstring.
15001
15002 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15003
15004 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15005
15006 2008-02-01 Jason Rumney <jasonr@gnu.org>
15007
15008 * w32font.c (w32font_draw): Fill background manually.
15009
15010 2008-02-01 Jason Rumney <jasonr@gnu.org>
15011
15012 * font.c (Qfontp): Remove unused symbol.
15013 (QCantialias): New symbol.
15014 (syms_of_font): Define it.
15015 (font_property_table): Set a validator for QCantialias.
15016
15017 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15018 Define if not already.
15019 (QCfamily): Share with xfaces.c.
15020 (Qstandard, Qsubpixel, Qnatural): New symbols.
15021 (syms_of_w32font): Define them. Don't define QCfamily here.
15022 (w32_antialias_type, lispy_antialias_type): New functions.
15023 (w32_enumfont_pattern_entity): New arg requested_font.
15024 Set antialias parameter if non-default was requested.
15025 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15026
15027 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15028
15029 * lread.c (read1): Undo the previous change.
15030
15031 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15032
15033 * frame.c (Fdelete_frame): Call font_update_drivers only when
15034 USE_FONT_BACKEND is defined.
15035
15036 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15037
15038 * font.h (struct font_bitmap): New member bits_per_pixel.
15039 (struct font_driver): New members start_for_frame and end_for_frame.
15040 (struct font_data_list): New struct.
15041 (font_put_frame_data, font_get_frame_data): Extern them.
15042
15043 * frame.h (struct frame): New member font_data_list.
15044
15045 * font.c (font_update_drivers): Call driver->start_for_frame and
15046 driver->end_for_frame at proper timings.
15047 (font_put_frame_data, font_get_frame_data): New functions.
15048 (Ffont_spec): Add usage in the docstring.
15049
15050 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15051 (Fdelete_frame): Call font_update_drivers.
15052
15053 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15054 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15055 (xftfont_get_xft_draw): New function.
15056 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15057 (xftfont_end_for_frame): New function.
15058 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15059
15060 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15061 Change argument. Cache GCs in the per-frame data.
15062 (struct ftxfont_frame_data): New struct.
15063 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15064 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15065 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15066 (ftxfont_end_for_frame): New function.
15067 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15068
15069 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15070
15071 2008-02-01 Kenichi Handa <handa@m17n.org>
15072
15073 * xselect.c (Vselection_coding_system)
15074 (Vnext_selection_coding_system): Delete them.
15075 (syms_of_xselect): Don't declare selection-coding-system and
15076 next-selection-coding-system. They are declared in select.el.
15077
15078 2008-02-01 Jason Rumney <jasonr@gnu.org>
15079
15080 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15081
15082 * w32fns.c: Include imm.h.
15083 (get_composition_string_fn, get_ime_context_fn): New optional
15084 system functions.
15085 (globals_of_w32fns): Load them from imm32.dll.
15086 (ignore_ime_char): New flag.
15087 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15088 WM_IME_ENDCOMPOSITION messages.
15089
15090 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15091 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15092
15093 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15094
15095 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15096 (READCHAR_REPORT_MULTIBYTE): New macro.
15097 (readchar): New 2nd arg MULTIBYTE.
15098 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15099 Make symbol's name multibyte according to the multibyteness of the
15100 source.
15101
15102 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15103
15104 * xfaces.c (face_for_overlay_string): Call lookup_face with
15105 correct arguments (fix of synching with the trunk).
15106
15107 2008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15110 (font_prop_validate_non_neg, font_prop_validate_spacing):
15111 Delete argument prop_index.
15112 (font_property_table): Change arguments to validater. Change Callers.
15113 (font_lispy_object): Delete.
15114 (font_at): Use font_find_object instead fo font_lispy_object.
15115
15116 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15117
15118 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15119 and file names.
15120
15121 2008-02-01 Jason Rumney <jasonr@gnu.org>
15122
15123 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15124 (font_matches_spec): Remove debug output.
15125 (add_font_entity_to_list): Avoid using substituted fonts.
15126
15127 2008-02-01 Jason Rumney <jasonr@gnu.org>
15128
15129 * doc.c (Fsnarf_documentation):
15130 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15131
15132 2008-02-01 Miles Bader <miles@gnu.org>
15133
15134 * dispextern.h (struct glyph_row): Only define "clip" field if
15135 HAVE_WINDOW_SYSTEM is defined.
15136
15137 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15138
15139 Fix up multi-tty merge.
15140
15141 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15142 and indentation.
15143
15144 * xfaces.c (free_realized_face, clear_face_gcs):
15145 Include font_done_for_face in the input_blocked section, just in case.
15146
15147 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15148 (get_char_face_and_encoding): Undo last change and remove the *other*
15149 duplicate definition (i.e. keep the one that's better scoped and that
15150 includes code for the font-backend).
15151
15152 * terminal.c (create_terminal): Default keyboard_coding to
15153 `no-conversion' and terminal_coding to `undecided'.
15154
15155 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15156
15157 * fontset.c (free_realized_fontsets): Check that the table entry does
15158 contain a fontset before trying to compare it to `base'.
15159
15160 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15161 syms_of_charset, and syms_of_coding earlier because init_window_once
15162 now needs Vcoding_system_hash_table to be setup.
15163
15164 * coding.h (default_buffer_file_coding): Remove.
15165
15166 * coding.c (default_buffer_file_coding): Remove.
15167 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15168 than ->symbol, and use the terminal-local coding system.
15169 (syms_of_coding): Don't setup the coding-systems that are not
15170 terminal-local.
15171 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15172
15173 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15174 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15175
15176 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15177 in chartab.c and were re-added here by mistake.
15178 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15179
15180 * doc.c (Fsnarf_documentation):
15181 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15182 src to etc.
15183
15184 * ChangeLog.10: Add mistakenly removed entry.
15185
15186 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15187
15188 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15189
15190 2008-02-01 Miles Bader <miles@gnu.org>
15191
15192 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15193 Add extra args to FACE_FOR_CHAR.
15194
15195 2008-02-01 Kenichi Handa <handa@m17n.org>
15196
15197 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15198 in sequence.
15199
15200 * chartab.c (map_sub_char_table, map_char_table): If the range
15201 contains just one character, call the function with that character
15202 even if the depth is not 3.
15203
15204 2008-02-01 Jason Rumney <jasonr@gnu.org>
15205
15206 * w32font.c (w32font_text_extents): Calculate metrics for the
15207 whole string.
15208
15209 2008-02-01 Jason Rumney <jasonr@gnu.org>
15210
15211 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15212
15213 2008-02-01 Jason Rumney <jasonr@gnu.org>
15214
15215 * w32term.c (x_set_glyph_string_clipping): Use
15216 get_glyph_string_clip_rects.
15217 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15218 Adjust for the change of struct glyph_string.
15219
15220 * w32font.c (w32font_draw): Do clipping here.
15221
15222 2008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * xftfont.c (xftfont_draw): Adjust for the change of struct
15225 glyph_string.
15226
15227 * xterm.c (x_set_glyph_string_clipping): Use
15228 get_glyph_string_clip_rects.
15229 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15230 Adjust for the change of struct glyph_string.
15231
15232 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15233 the resulting clip(s}.
15234 (expose_overlaps): Add arg r. Change callers. Set it to
15235 row->clip temporarily.
15236 (expose_window): Redraw rows overlapping the exposed area.
15237
15238 * dispextern.h (struct glyph_row): New member clip.
15239 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15240 clip_height, new member clip, and num_clips.
15241
15242 2008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * data.c (Fchar_or_string_p): Fix docstring.
15245
15246 2008-02-01 Kenichi Handa <handa@m17n.org>
15247
15248 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15249 create a temporary XftDraw object.
15250
15251 2008-02-01 Kenichi Handa <handa@m17n.org>
15252
15253 * font.c (Ffontp): Fix docstring.
15254
15255 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15256 strong evidence of ISO-2022.
15257
15258 2008-02-01 Kenichi Handa <handa@m17n.org>
15259
15260 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15261 SYNTAX_ENTRY_FOLLOW_PARENT.
15262
15263 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15264
15265 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15266 its type.
15267 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15268 Update to the new type of weak_hash_tables and next_weak.
15269
15270 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15271 a plain C pointer to Lisp_Hash_Table.
15272
15273 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15274 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15275 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15276 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15277 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15278 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15279 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15280 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15281 (GC_EQ): Remove since they've been identical to their non-GC_
15282 alter-egos ever since the markbit was eradicated.
15283
15284 * alloc.c:
15285 * buffer.c:
15286 * buffer.h:
15287 * data.c:
15288 * fileio.c:
15289 * filelock.c:
15290 * fns.c:
15291 * frame.h:
15292 * lisp.h:
15293 * macterm.c:
15294 * print.c:
15295 * process.c:
15296 * w32fns.c:
15297 * w32menu.c:
15298 * w32term.c:
15299 * xfns.c:
15300 * xmenu.c:
15301 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15302
15303 2008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * chartab.c (map_sub_char_table): Make it work for the top-level
15306 char-table. Fix handling of parent char-table.
15307 (map_char_table): Adjust for the above change.
15308
15309 2008-02-01 Jason Rumney <jasonr@gnu.org>
15310
15311 * w32font.c (Qgdi): Rename from Qw32.
15312
15313 2008-02-01 Jason Rumney <jasonr@gnu.org>
15314
15315 * w32bdf.c (get_quoted_string): Make function static.
15316
15317 2008-02-01 Kenichi Handa <handa@m17n.org>
15318
15319 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15320 bigger ascent and descent than those of the font, use them as
15321 font's ascent and descent.
15322
15323 2008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * Makefile.in (${lispsource}international/charprop.el): Move this
15326 target within "#ifdef HAVE_UNIDATA" and "#endif".
15327
15328 2008-02-01 Kenichi Handa <handa@m17n.org>
15329
15330 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15331 (shortlisp): Add ../lisp/language/tai-viet.el.
15332
15333 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
15334
15335 * Makefile.in (${lispsource}international/charprop.el): Depend on
15336 temacs${EXEEXT}.
15337
15338 2008-02-01 Jason Rumney <jasonr@gnu.org>
15339
15340 * w32font.c (w32font_close): Delete the GDI font object.
15341
15342 * w32menu.c: Include character.h.
15343
15344 * w32proc.c: Likewise.
15345
15346 * w32select.c: Likewise.
15347
15348 * makefile.w32-in (w32proc.o): Depend on character.h.
15349
15350 2008-02-01 Jason Rumney <jasonr@gnu.org>
15351
15352 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15353
15354 * w32menu.c (syms_of_w32menu): Likewise.
15355
15356 * w32proc.c (syms_of_ntproc): Likewise.
15357
15358 * w32select.c (syms_of_w32select): Likewise.
15359
15360 * w32term.c (syms_of_w32term): Likewise.
15361
15362 2008-02-01 Jason Rumney <jasonr@gnu.org>
15363
15364 * w32font.c (w32font_draw): Delete brush after using it.
15365
15366 2008-02-01 Jason Rumney <jasonr@gnu.org>
15367
15368 * w32font.c (w32font_open): Don't set font_idx.
15369 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15370 to font settings.
15371 (w32font_draw): Fill background explicitly.
15372
15373 2008-02-01 Jason Rumney <jasonr@gnu.org>
15374
15375 * w32term.c (w32_initialize): Don't call w32font_initialize.
15376
15377 * w32font.c (w32font_info): Remove subranges.
15378 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15379 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15380 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15381 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15382 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15383 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15384 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15385 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15386 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15387 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15388 New symbols.
15389 (font_callback_data): New struct.
15390 (w32font_list, w32font_match): Use it.
15391 (w32font_open): Don't populate subranges.
15392 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15393 (w32font_encode_char): Always return unicode code-point as-is.
15394 (w32font_text_extents): Supply a transformation matrix to
15395 GetGlyphOutline. Never look up by glyph index. Avoid looping
15396 twice. Use unicode version of GetTexExtentPoint32 instead of
15397 glyph index version.
15398 (set_fonts_frame): Remove.
15399 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15400 set frame parameter. Use backward compatible fake foundries.
15401 Save generic family in extra slot under QCfamily. Make width slot
15402 constant. Save QCspacing value. Save list of scripts instead of
15403 binary subranges.
15404 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15405 (add_font_entity_to_list): Use font_callback_data struct. Filter
15406 unwanted fonts.
15407 (add_one_font_entity_to_list): Use font_callback_data struct.
15408 (w32_registry): Default to iso10646_1.
15409 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15410 string font registries. Don't fill in font name if it is a generic
15411 family name, fill family instead. Use spacing, family and script
15412 extra info to fill pitch, family and charset fields.
15413 (list_all_matching_fonts): Use font_callback_data struct.
15414 (unicode_range_for_char): Remove.
15415 (font_supported_scripts): New function.
15416 (w32font_initialize): Remove.
15417 (syms_of_w32font): Update which symbols are defined.
15418
15419 2008-02-01 Jason Rumney <jasonr@gnu.org>
15420
15421 * font.c (font_pixel_size): Reverse assq_no_quit args.
15422
15423 * w32term.h (FONT_WIDTH): Report max width, not average.
15424 (FONT_MAX_WIDTH): Remove.
15425 (FONT_AVG_WIDTH): New macro.
15426
15427 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15428 redefinition of FONT_WIDTH.
15429
15430 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15431 (w32_cache_char_metrics): Use FONT_WIDTH.
15432
15433 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15434
15435 2008-02-01 Jason Rumney <jasonr@gnu.org>
15436
15437 * w32font.c (w32font_open): Make lfHeight negative.
15438
15439 * w32fns.c (x_default_font_parameter): Use new style font name.
15440 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15441
15442 2008-02-01 Jason Rumney <jasonr@gnu.org>
15443
15444 * w32font.c (QCsubranges): New symbol.
15445 (w32font_open, w32font_has_char): Get subranges from subproperty
15446 of extra.
15447 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15448 (syms_of_w32font): Define :subranges symbol.
15449
15450 * font.c (font_put_extra): Expose externally.
15451
15452 * font.h (font_put_extra): Move declaration from font.c.
15453
15454 * font.c (Ffont_get): Use font driver to determine otf capability.
15455 (adjust_anchor): Check if driver defines anchor_point before using.
15456
15457 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15458 (w32font_draw): Use options.
15459 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15460 Fix detection of truetype fonts.
15461 (registry_to_w32_charset): Handle charsets other than iso8859-1
15462 expressed as lisp symbols.
15463 (w32_registry): Express charset as lisp symbol.
15464 (fill_in_logfont): Reverse pixel and point height logic.
15465 Don't set width here. Set quality to default.
15466
15467 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15468 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15469
15470 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15471 Remove redundant loop and allocation.
15472
15473 * makefile.w32-in (font.o, w32font.o): New objects.
15474 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15475 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15476
15477 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15478 STORE_XCHARB a valid l-value.
15479
15480 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15481 calculations for non-Truetype fonts.
15482 (x_draw_glyph_string): Sync with xterm.c.
15483 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15484 Remove redundant code.
15485 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15486
15487 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15488 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15489
15490 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15491 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15492
15493 * w32font.c: New file for w32 font backend.
15494
15495 2008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * term.c: Don't include "buffer.h" twice.
15498
15499 2008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * character.c (Funibyte_string): New function.
15502 (syms_of_character): Defsubr it.
15503
15504 2008-02-01 Jason Rumney <jasonr@gnu.org>
15505
15506 * w32term.c [USE_FONT_BACKEND]:
15507 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15508 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15509 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15510 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15511 (x_free_frame_resources): Sync with xterm.c.
15512
15513 2008-02-01 Andreas Schwab <schwab@suse.de>
15514
15515 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15516 char-table size.
15517
15518 2008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15521
15522 2008-02-01 Kenichi Handa <handa@m17n.org>
15523
15524 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15525 font_otf_gpos, add font_drive_otf.
15526
15527 * fontset.c (fontset_find_font): Pay attention to font size
15528 specified for a font.
15529 (reorder_font_vector): Check contents of font_def.
15530
15531 * font.c (struct otf_list): Delete it.
15532 (otf_list): Make it a lisp variable.
15533 (otf_open): Use lispy otf_list.
15534 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15535 (check_otf_features): New function.
15536 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15537 New functions.
15538 (font_drive_otf): New function merging font_otf_gsub and
15539 font_otf_gpos.
15540 (font_open_for_lface): New arg spec. Change argument order.
15541 (font_load_for_face): Adjust for the change of font_open_for_lface.
15542 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15543 Ffont_otf_gpos.
15544 (syms_of_font): Staticpro otf_list. Delete defsubr of
15545 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15546
15547 * xfaces.c (set_font_frame_param): Adjust for the change of
15548 font_open_for_lface.
15549
15550 * font.h (font_open_for_lface): Adjust prototype.
15551 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15552 member otf_drive.
15553 (font_otf_gsub, font_otf_gpos): Delete externs.
15554 (font_drive_otf): Extern it.
15555
15556 2008-02-01 Kenichi Handa <handa@m17n.org>
15557
15558 * font.c (font_at): If the window W is not on a window system,
15559 return Qnil.
15560
15561 * coding.c (produce_chars, encode_coding): Don't call
15562 insert_from_gap if no characters to produce.
15563
15564 2008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15567 Fclear_face_cache.
15568
15569 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15570
15571 2008-02-01 Miles Bader <miles@gnu.org>
15572
15573 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15574 Parse "--disable-font-backend" option.
15575 (standard_args): Add "--disable-font-backend" option.
15576
15577 2008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * fontset.c (fontset_find_font): New function.
15580 (fontset_font): Use fontset_find_font.
15581 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15582 Register the specified font for all Latin characters.
15583 (new_fontset_from_font): Register the specified font for all Latin
15584 characters.
15585 (dump_fontset): For a realized fontset, include the base fontset
15586 name in the returned vector.
15587
15588 2008-02-01 Kenichi Handa <handa@m17n.org>
15589
15590 * character.h (CHAR_STRING): Cast C to unsigned on calling
15591 char_string.
15592
15593 * character.c (char_string): Type of arg C changed to unsigned.
15594 Signal an error if C is an invalid character code.
15595
15596 * editfns.c (general_insert_function, Fchar_to_string):
15597 Use CHARACTERP, not INTEGERP.
15598
15599 2008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15602 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15603
15604 * regex.c (analyse_first): Fix for multibyte characters in "case
15605 charset:" and "case categoryspec:".
15606
15607 2008-02-01 Andreas Schwab <schwab@suse.de>
15608
15609 * Makefile.in (LIBES): Move standard libraries to the end.
15610
15611 2008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15614 nonzero, don't shrink the buffer nextb.
15615
15616 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15617
15618 * coding.c (coding_alloc_by_making_gap): New arg offset.
15619 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15620 offset.
15621 (decode_coding_iso_2022): Update coding->safe_charsets.
15622 (decode_coding_gap): Temporarily set
15623 current_buffer->text->inhibit_shrinking to 1.
15624
15625 2008-02-01 Kenichi Handa <handa@m17n.org>
15626
15627 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15628 indexing into elements of s->cmp and s->char2b.
15629
15630 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
15631
15632 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15633
15634 2008-02-01 Kenichi Handa <handa@m17n.org>
15635
15636 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15637 target_multibyte instead of multibyte.
15638 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15639 (bcmp_translate): Change the argument name from multibyte to
15640 target_multibyte.
15641
15642 2008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 These changes are to compile a regexp into a pattern that can be
15645 used both for multibyte and unibyte targets.
15646
15647 * Makefile.in (search.o): Depend on charset.h.
15648
15649 * character.c (multibyte_char_to_unibyte_safe): New function.
15650
15651 * search.c: Include "charset.h".
15652 (compile_pattern_1): Delete argument multibyte. Don't set
15653 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15654 (compile_pattern): Don't compare cp->buf.target_multibyte.
15655 Compare cp->buf.charset_unibyte.
15656 (compile_pattern): Set cp->buf.target_multibyte.
15657
15658 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15659
15660 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15661
15662 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15663 multibyte. Change callers.
15664 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15665 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15666 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15667 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15668 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15669 (regex_compile): Make the compiled pattern usable both for
15670 multibyte and unibyte targets.
15671 (analyse_first): Make the fastmap usable both for multibyte and
15672 unibyte targets.
15673 (TRANSLATE_VIA_MULTIBYTE): Delete.
15674 (re_match_2_internal): Pay attention to the case that the
15675 multibyteness of bufp and target may be different.
15676
15677 2008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15680 empty box occupy at least one column width.
15681
15682 2008-02-01 Miles Bader <miles@gnu.org>
15683
15684 * Makefile.in: Remove redundant HAVE_XFT clause.
15685
15686 2008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15689
15690 2008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15693 being nil.
15694
15695 2008-02-01 Kenichi Handa <handa@m17n.org>
15696
15697 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15698
15699 2008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15702
15703 2008-02-01 Kenichi Handa <handa@m17n.org>
15704
15705 * search.c (simple_search): Fix previous change.
15706
15707 2008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * xftfont.c (ftfont_font_format): Extern declaration.
15710
15711 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15712
15713 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15714 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15715
15716 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15717 (ftfont_font_format): Fix previous change.
15718
15719 * font.h (Ffont_xlfd_name): EXFUN it.
15720
15721 * font.c (font_parse_xlfd): Fix the array size of `f'.
15722 (register_font_driver): Use EQ to compare driver->type.
15723
15724 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15725 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15726 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15727
15728 2008-02-01 Kenichi Handa <handa@m17n.org>
15729
15730 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15731 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15732
15733 2008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * xfont.c (xfont_open): Set font->format.
15736
15737 * xftfont.c (xftfont_open): Set font->format.
15738
15739 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15740 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15741 (ftfont_open): Set font->format.
15742 (ftfont_font_format): New function.
15743
15744 * font.h (struct font): New member format.
15745
15746 * font.c (Qopentype): New variable.
15747 (syms_of_font): Defsym it.
15748 (Fquery_font): Change the format of the last element of the return
15749 value.
15750
15751 2008-02-01 Kenichi Handa <handa@m17n.org>
15752
15753 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15754 last resort.
15755
15756 2008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * coding.c (detect_coding_charset): Fix detection of multi-byte
15759 charset.
15760
15761 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15762
15763 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15764
15765 2008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * xdisp.c (get_next_display_element): Set it->face_id for the
15768 first component of a composition.
15769 (x_produce_glyphs): Check if the font is changed or not for composition.
15770
15771 2008-02-01 Kenichi Handa <handa@m17n.org>
15772
15773 * fontset.c (Qlatin): New variable.
15774 (syms_of_fontset): Define it as a lisp symbol.
15775 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15776
15777 2008-02-01 Kenichi Handa <handa@m17n.org>
15778
15779 * font.c (font_unparse_fcname): Pay attention to the case that
15780 some of font property is a null string.
15781
15782 2008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * term.c: Include "composite.h".
15785 (encode_terminal_code): Output all components of composition.
15786 Check the size of encode_terminal_src.
15787 (produce_glyphs): For composition, call produce_composite_glyph.
15788 (append_composite_glyph, produce_composite_glyph): New functions.
15789
15790 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15791 is not found, get font_info from the current ascii face.
15792
15793 2008-02-01 Kenichi Handa <handa@m17n.org>
15794
15795 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15796 buffer-file-name to Qnil before calling insert_from_buffer.
15797
15798 * font.c (font_unparse_fcname): Pay attention to the case that
15799 foundry is a null string.
15800
15801 2008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15804
15805 * font.c (Qunicode_sip): New variable.
15806 (syms_of_font): Declare it as a Lisp symbol.
15807
15808 * font.h (Qunicode_sip): Extern it.
15809
15810 2008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * composite.c (get_composition_id): Pay attention to TAB component.
15813
15814 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15815 TAB. Adjust for the change of s->char2b which always points to
15816 the first element of allocated memory.
15817
15818 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15819
15820 * xdisp.c (handle_composition_prop): Set it->c to the first
15821 non-TAB component.
15822 (fill_composite_glyph_string): Change argument.
15823 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15824 (x_produce_glyphs): Fix handling of left/right padding.
15825
15826 2008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * coding.c (detect_coding_system): Fix for handling off
15829 inhibit_iso_escape_detection. Fix for the case that no coding
15830 system is defined for a specific coding category.
15831
15832 2008-02-01 Kenichi Handa <handa@m17n.org>
15833
15834 * font.c (font_matching_entity): Delete unused local var.
15835
15836 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15837 opening a font.
15838
15839 * fileio.c (Finsert_file_contents): On recovering a file, assume
15840 Unix-like eol.
15841 (choose_write_coding_system): On auto-saving a file, force
15842 Unix-like eol.
15843
15844 * coding.c (setup_coding_system): Fix setting of
15845 coding->common_flags based on eol_type.
15846 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15847 inherit from it.
15848
15849 2008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * alloc.c (NSTATICS): Increas to 0x600.
15852
15853 2008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15856 (ftfont_list): Don't check :name property.
15857 (ftfont_match): New function.
15858 (ftfont_pattern_entity): If the pattern doesn't contain
15859 FC_SPACING, don't assume FC_MONO.
15860
15861 * font.h (struct font_driver): New member `match'.
15862 (font_update_drivers): Adjust prototype.
15863
15864 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15865 property of FONT.
15866 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15867 them unconditionally.
15868 (font_matching_entity): New function.
15869 (font_open_by_name): Try font_matching_entity if exact match is
15870 not found.
15871 (font_update_drivers): Delete the arg FONT. Return a list of
15872 actually used backends. Don't free faces, font caches here.
15873 Don't store data in frame parameters. Don't call x_set_font.
15874 (Ffont_spec): Store :name property as is.
15875 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15876 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15877 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15878 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15879 Call font->driver->otf_gsub instead of font_otf_gsub.
15880
15881 * frame.c (x_set_font_backend): Do more works that were done in
15882 font_update_drivers before.
15883
15884 * xfont.c (xfont_match): New function.
15885 (xfont_driver): Set xfont_driver.match to xfont_match.
15886 (xfont_draw): Set font in GC if necessary.
15887
15888 * ftxfont.c (ftxfont_match): New function.
15889 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15890
15891 * xftfont.c (xftfont_match): New function.
15892 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15893
15894 2008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * font.h (struct font): New member scalable.
15897 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15898 (font_otf_gsub): Adjust prototype.
15899
15900 * font.c (font_otf_capability): Fix handling of the default langsys.
15901 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15902 Check the contents of SPEC.
15903 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15904 (check_gstring): New function.
15905 (REPLACEMENT_CHARACTER): New macro.
15906 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15907 glyph codes of GSTRING.
15908 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15909 (font_prepare_composition): Set cmp->glyph_len.
15910 (font_open_entity): Set font->scalable.
15911 (Ffont_get): Handle :otf property.
15912 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15913 functions.
15914 (Fquery_font): Use font->font.full_name.
15915 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15916 Sfont_otf_alternates.
15917
15918 * ftfont.c (ftfont_open): Set font->font.full_name and
15919 font->font.name properly. Fix calculation of font->font.height
15920 and font->min_width.
15921
15922 * ftxfont.c (ftxfont_create_gcs): New function.
15923 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15924 (ftxfont_draw_backgrond): Fix filling region.
15925 (ftxfont_default_fid): New function.
15926 (ftxfont_open): Set xfont->fid to the return value of
15927 ftxfont_default_fid.
15928 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15929 (ftxfont_done_face): Free only GCs that are created by
15930 ftxfont_create_gcs.
15931 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15932
15933 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15934 Clip to src->width, etc (not src->clip_XXX).
15935
15936 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15937 FontBackend frame parameter.
15938
15939 2008-02-01 Kenichi Handa <handa@m17n.org>
15940
15941 * font.h (struct font_driver_list): New member `on'.
15942 (Fclear_font_cache): EXFUN it.
15943 (font_update_drivers): Extern it.
15944
15945 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15946 (font_list_entities): Check driver_list->on.
15947 (register_font_driver): Initalize `on' member to 0.
15948 (font_update_drivers): New function.
15949 (Fclear_font_cache): Check driver_list->on.
15950
15951 * frame.h (Qfont_backend): Extern it.
15952 (x_set_font_backend): Extern it.
15953
15954 * frame.c (Qfont_backend): New variable.
15955 (frame_parms): New element for font-backend.
15956 (x_set_font_backend): New function.
15957
15958 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15959 FontBackend frame parameter.
15960 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15961 x_set_font_backend.
15962
15963 * xfont.c (xfont_list): Don't try listing by :name property if the
15964 name is not for XLFD.
15965
15966 2008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15969 (LGLYPH_SET_TO): New macros.
15970 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15971 element of G is vector or not.
15972 (font_at): Extern it.
15973
15974 * font.c: Include window.h.
15975 (font_lispy_object): New function.
15976 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15977 end of valid glyph.
15978 (font_close_object): Fix getting (struct font *).
15979 (font_at): New function.
15980 (Ffont_get): If FONT is a font-object, get entity from it.
15981 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15982 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15983 range check.
15984 (Ffont_at): New function.
15985 (syms_of_font): Defsubr Sfont_at.
15986
15987 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15988 before the entry for Qcomposition.
15989 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15990 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15991 the font in gstring.
15992 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15993 LGLYPH_FORM (g) to detect the end of valid glyph.
15994 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15995 we are composing with gstring.
15996
15997 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15998 Check if adjustment is vector or not.
15999
16000 * Makefile.in (font.o): Make it depends on window.h.
16001
16002 2008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16005 adjustment is vector or not.
16006
16007 2008-02-01 Miles Bader <miles@gnu.org>
16008
16009 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16010
16011 2008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16014 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16015 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16016
16017 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16018 (DEVICE_DELTA): Fix typo.
16019 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16020 LGLYPH format.
16021
16022 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16023 the change of LGLYPH format.
16024
16025 2008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * ftfont.c (ftfont_list): Fix typo.
16028 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16029
16030 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16031
16032 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16033
16034 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16035 xftface_info is non-NULL.
16036
16037 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16038
16039 * ftfont.c (ftfont_list): Move misplaced #endif.
16040
16041 2008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * ftfont.c (ftfont_list): Pay attention to the case that
16044 FC_CAPABILITY is not defined.
16045
16046 2008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * xftfont.c (xftfont_open): Set charset related members to -1.
16049
16050 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16051 QCname.
16052 (ftfont_open): Set charset related members to -1.
16053
16054 * fontset.c (Votf_script_alist): New variable.
16055 (syms_of_fontset): Initialize it.
16056 (fontset_font): Delete unused variable.
16057
16058 * fontset.h (Votf_script_alist): Extern it.
16059
16060 * font.c (font_find_for_lface): Optimize code.
16061
16062 * font.h (font_close_object, font_merge_old_spec): Extern them.
16063
16064 2008-02-01 Kenichi Handa <handa@m17n.org>
16065
16066 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16067 (syms_of_font): Initialize them.
16068 (font_pixel_size): Allow float value in dpi.
16069 (font_prop_validate_type): Delete.
16070 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16071 Change caller.
16072 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16073 (font_prop_validate_extra): Delete.
16074 (font_prop_validate_spacing): New function.
16075 (font_property_table): Add elements for all known properties.
16076 (get_font_prop_index): Rename from check_font_prop_name. New
16077 argument FROM. Change caller.
16078 (font_prop_validate): Validate all known properties.
16079 (font_put_extra): Delete argument force. Change caller.
16080 (font_expand_wildcards): Make it static. Fix the way of shrinking
16081 the possible range.
16082 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16083 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16084 Change caller.
16085 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16086 (font_parse_fcname): Delete argument merge. Fix parsing of point
16087 size. Don't validate properties values here. Change caller.
16088 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16089 (font_open_by_name): Delete unused variable.
16090 (Ffont_spec): Likewise. Validate property values.
16091 (Ffont_match_p): New function.
16092
16093 * font.h (QCscalable): Extern it.
16094 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16095
16096 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16097
16098 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16099 (xfont_list_pattern): New function.
16100 (xfont_list): Use xfont_list_pattern.
16101
16102 2008-02-01 Kenichi Handa <handa@m17n.org>
16103
16104 * font.h (Flist_fonts): EXFUN it.
16105
16106 2008-02-01 Jason Rumney <jasonr@gnu.org>
16107
16108 * w32term.c (w32_initialize): Add back smoothing_type and
16109 smoothing_enabled definitions.
16110
16111 2008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16114 s->face->font on determining underline position.
16115
16116 2008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16119 (font_has_char): Accept font-object too.
16120 (font_find_for_lface): Try at first with a size specified in face.
16121
16122 2008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16125 font_open_by_name.
16126
16127 2008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * font.h (QCspacing, QCdpi): Extern them.
16130 (enum font_spacing): New enum.
16131 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16132
16133 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16134 (QCspacing, QCdpi): New variables.
16135 (syms_of_font): Initialize them.
16136 (font_pixel_size): New function.
16137 (font_put_extra): New function.
16138 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16139 in FONT_EXTRA.
16140 (font_parse_fcname): Handle enumerated values (e.g. bold).
16141 Fix handling font size. Add QCname property that contains only
16142 unknown properties.
16143 (font_score): Change argument. Change caller. Pay attention to
16144 FONT_PIXEL_SIZE_QUANTUM.
16145 (font_sort_entites, font_list_entities, font_find_for_lface)
16146 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16147 (Ffont_spec): Add QCname property that contains only unknown properties.
16148
16149 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16150 include weight in listing pattern, instead check weight of each
16151 listed font. Don't include scalable in pattern. Pay attention to
16152 FONT_PIXEL_SIZE_QUANTUM.
16153
16154 2008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * font.c (font_parse_fcname): Fix parsing of point-size.
16157 (font_unparse_fcname): Produce symbolic names for style properties.
16158 (font_list_entities): Handle float size correctly.
16159 (font_open_by_name): Prefer `normal' property values if the name
16160 doesn't specify them.
16161
16162 * fontset.c (Finternal_char_font): Use font_get_name, not
16163 Ffont_xlfd_name.
16164
16165 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16166 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16167 pattern. Don't force scalable.
16168
16169 * xftfont.c (xftfont_open): For generating a name, start from
16170 96-byte buffer.
16171
16172 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16173
16174 * frame.h (x_new_fontset2): Fix prototype.
16175
16176 2008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * font.h (struct font_driver): Delete member parse_name.
16179 (font_match_p, font_get_spec, font_parse_fcname)
16180 (font_unparse_fcname): Extern them.
16181 (font_get_name): Adjust prototype.
16182
16183 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16184 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16185 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16186 unnecessary checks for weight, slant, and swidth.
16187 (font_parse_fcname): New function.
16188 (font_unparse_fcname): New function.
16189 (font_parse_name): New function.
16190 (font_match_p): New function.
16191 (font_get_name): Change return value to Lisp string.
16192 (font_get_spec): New function.
16193 (Qunspecified, Qignore_defface): Don't extern them.
16194 (font_find_for_lface): Assume that LFACE is fully specified.
16195 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16196 object, use it for FACE.
16197 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16198 driver->parse_name.
16199 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16200
16201 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16202 prototype.
16203
16204 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16205 argument F. Don't call Fnew_fontset. Instead, directly call
16206 make_fontset.
16207
16208 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16209
16210 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16211 of x_new_fontset2.
16212
16213 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16214 (Qsans__serif): New variables.
16215 (ftfont_generic_family_list): New variable.
16216 (syms_of_ftfont): Initialize the above variables.
16217 (ftfont_pattern_entity): Delete argument NAME.
16218 (ftfont_list_generic_family): New function.
16219 (ftfont_parse_name): Delete this function.
16220 (ftfont_list): Try generic family only when FcFontList found no font.
16221 (ftfont_list_family): Fix args to FcObjectSetBuild.
16222
16223 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16224 object in attrs[LFACE_FONT_INDEX].
16225 (set_lface_from_font_name): Cancel all changes for font-backend.
16226 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16227 function.
16228 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16229 font object in QCfont attribute.
16230 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16231 (realize_default_face) [USE_FONT_BACKEND]: Call
16232 set_lface_from_font_and_fontset.
16233
16234 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16235 "fixed", and signal error here if no suitable font was found.
16236
16237 * xfont.c (xfont_parse_name): Delete this function.
16238
16239 * xftfont.c (xftfont_open): Change coding style of error
16240 handling. Generate fontconfig's fontname pattern.
16241
16242 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16243 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16244
16245 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16246 Both args FONTSET and FONT_OBJECT must be existing ones.
16247
16248 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16249
16250 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16251
16252 2008-02-01 Kenichi Handa <handa@m17n.org>
16253
16254 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16255
16256 * font.h (struct font): Fix typo.
16257
16258 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16259 XLFD_XXX_INDEX.
16260 (enum xlfd_field_mask): New enum.
16261 (intern_font_field): Changed argument. Change caller. If digits
16262 are followed by non-digits, return a symbol.
16263 (font_expand_wildcards): New function.
16264 (font_parse_xlfd): Fix wildcard handling.
16265 (Ffont_spec): If :name is specified, reflect the info in the other
16266 properties.
16267
16268 * ftfont.c (ftfont_pattern_entity): Fix typo.
16269 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16270 locale.
16271
16272 2008-02-01 Kenichi Handa <handa@m17n.org>
16273
16274 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16275
16276 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16277 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16278 registry doesn't specify encoding part.
16279 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16280 (font_open_by_name): At first try parsing the name.
16281 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16282 as Lisp symbols.
16283
16284 * fontset.c (reorder_font_vector): Pay attention to the case that
16285 the 3rd element of font_def is nil.
16286 (fontset_font): For the default fontset, append one more fontset
16287 elements for a script-based font specification. Don't add script
16288 attribute on finding a font.
16289 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16290 font name.
16291 (fontset_ascii_font): If a font can't be opened, return nil.
16292
16293 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16294 (ftfont_pattern_entity): New function.
16295 (ftfont_get_cache): Assume that freetype_font_cache is already
16296 initialized.
16297 (ftfont_list): Handle the case that a file is specified in font
16298 name. Use ftfont_pattern_entity to generate entities.
16299 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16300 (syms_of_ftfont): Initialize freetype_font_cache.
16301
16302 * xftfont.c (xftfont_open): Make the font name fontconfig's
16303 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16304 (xftfont_close): Free font->font.name if not NULL.
16305
16306 * xfont.c (xfont_list): If script is specified for a font, return
16307 null_vector.
16308 (xfont_list_family): Declare argument type.
16309
16310 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16311 name, set LFACE_FONT (lface) to nil.
16312
16313 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16314 return Qnil.
16315
16316 2008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16319 (standard_args): Add "-enable-font-backend".
16320
16321 2008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16324 (struct xftdraw_list, xftdraw_list): Delete them.
16325 (register_xftdraw, check_xftdraw): Delete them.
16326 (xftfont_prepare_face): Don't call register_xftdraw.
16327 (xftfont_done_face): Don't call check_xftdraw.
16328 (xftfont_draw): Get background color only when with_background is
16329 nonzero.
16330
16331 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16332
16333 2008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 These changes are for the new font handling codes.
16336
16337 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16338 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16339 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16340 (FONTSRC, FONTOBJ): New variables.
16341 (obj): Add $(FONTOBJ).
16342 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16343 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16344 @LIBOTF_LIBS@.
16345 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16346 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16347
16348 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16349
16350 * character.h (Vscript_representative_chars): Extern it.
16351
16352 * character.c (Vscript_representative_chars): New variable.
16353 (syms_of_character): Declare it as a Lisp variable.
16354
16355 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16356 enable_font_backend is nonzero, accept the composition method
16357 COMPOSITION_WITH_GLYPH_STRING.
16358
16359 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16360 enumeration COMPOSITION_WITH_GLYPH_STRING.
16361
16362 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16363 members clip_x, clip_y, clip_width, and clip_height.
16364 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16365
16366 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16367 --enable-font-backend. Call syms_of_font.
16368
16369 * fns.c (assoc_no_quit): New function.
16370
16371 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16372 (face_for_font, new_fontset_from_font)
16373 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16374
16375 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16376 (fontset_font, fontset_ascii, face_for_char)
16377 (make_fontset_for_ascii_face, Ffont_info)
16378 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16379 is nonzero, use font-backend mechanism.
16380 (find_font_encoding): Make it non-static.
16381 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16382 New functions.
16383
16384 * frame.h (struct frame): New members resx and resy.
16385 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16386 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16387
16388 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16389 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16390
16391 * lisp.h (assoc_no_quit): Extern it.
16392
16393 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16394 Through out the file, use FONT_INFO_FROM_FACE instead of
16395 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16396 rif->per_char_metric.
16397 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16398 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16399 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16400 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16401 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16402 nonzero, use font-backend mechanism.
16403 (get_per_char_metric): New function.
16404
16405 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16406 (set_lface_from_font_name)
16407 (set_font_frame_param, free_realized_face)
16408 (prepare_face_for_display, clear_face_gcs)
16409 (Finternal_set_font_selection_order, realize_x_face)
16410 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16411 font-backend mechanism.
16412 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16413 (load_face_font) [USE_FONT_BACKEND]: Abort.
16414 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16415 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16416
16417 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16418 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16419 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16420 nonzero, register all available font drivers. Call
16421 x_default_font_parameter for deciding a font.
16422 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16423
16424 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16425 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16426 (x_set_glyph_string_clipping_exactly)
16427 (x_compute_glyph_string_overhangs)
16428 (x_draw_glyph_string_foreground)
16429 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16430 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16431 enable_font_backend is nonzero, use font-backend mechanism.
16432 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16433
16434 2008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16437 system_eol_type.
16438 (syms_of_coding): Initialize system_eol_type.
16439
16440 * process.c (Fset_process_coding_system): Inherit system's eol
16441 format if necessary.
16442
16443 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16444
16445 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16446
16447 2008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * coding.c (decode_eol): Pay attention to buffer relocation in
16450 del_range_2.
16451 (decode_coding): Call decode_eol before restoring undo_list.
16452
16453 2008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * charset.c (Fdefine_charset_internal): Fix setting of
16456 emacs_mule_bytes.
16457
16458 2008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * keyboard.c (read_char): Check if C is a character or not before
16461 looking up Vkeyboard_translate_table.
16462
16463 2008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16466 condition to terminate the loop.
16467
16468 2008-02-01 Kenichi Handa <handa@m17n.org>
16469
16470 * coding.c (produce_composition): Compare charbuf[i] instead of
16471 args[i] against 0.
16472 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16473
16474 2008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16477 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16478 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16479 detect_coding.
16480 (emacs_mule_char): Handle old style (Emacs 20) component character
16481 of a composition.
16482 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16483 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16484 composition rule.
16485 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16486
16487 2008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * coding.c (encode_coding_ccl): Allocate destination dynamically
16490 when necessary.
16491
16492 2008-02-01 Kenichi Handa <handa@m17n.org>
16493
16494 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16495 the loop. When quitted, show a proper error message.
16496
16497 2008-02-01 Kenichi Handa <handa@m17n.org>
16498
16499 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16500 src->clip_head and src->clip_tail temporarily instead of src->hl.
16501
16502 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16503 character sequence.
16504 (Fccl_execute_on_string): Use ASET, not XSET.
16505
16506 2008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16509
16510 2008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * coding.c (decode_coding): Fix the condition of terminating the
16513 decoding loop.
16514
16515 2008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * data.c (Faset): On setting a character bigger than 255 in a
16518 unibyte string, signal an error instead of make the string multibyte.
16519
16520 2008-02-01 Kenichi Handa <handa@m17n.org>
16521
16522 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16523 made by a mapping table.
16524
16525 2008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16528 not.
16529 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16530 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16531
16532 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16533 s->face is NULL or not.
16534
16535 2008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16538 (x_draw_glyph_string): Fix drawing of right_overhang and
16539 left_overhang around/on cursor.
16540
16541 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16542
16543 2008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16546
16547 2008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * coding.c (Fdefine_coding_system_internal)
16550 (Fdefine_coding_system_alias): Avoid a duplicated element in
16551 Vcoding_system_alist.
16552
16553 2008-02-01 Kenichi Handa <handa@m17n.org>
16554
16555 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16556
16557 * coding.c (Qcoding_system_define_form): New variable.
16558 (syms_of_coding): Intern and staticpro it.
16559 (Fcoding_system_p): Check Qcoding_system_define_form.
16560 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16561
16562 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16563 Fcoding_system_p.
16564 (CHECK_CODING_SYSTEM): If ID is not available, call
16565 Fcheck_coding_system.
16566 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16567 Try also Fcheck_coding_system.
16568
16569 2008-02-01 Kenichi Handa <handa@m17n.org>
16570
16571 * coding.c (code_conversion_restore): GCPRO arg.
16572
16573 2008-02-01 Kenichi Handa <handa@m17n.org>
16574
16575 * character.c (lisp_string_width): Check multibyteness of STRING.
16576
16577 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16578
16579 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16580 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16581 (decode_mac_font_name): Use decode_coding_c_string instead of
16582 decode_coding.
16583 (x_load_font): Initialize fontp->fontset to -1. Set
16584 fontp->encoding_type.
16585
16586 2008-02-01 Kenichi Handa <handa@m17n.org>
16587
16588 * search.c (search_buffer): Give up BM search on case-fold-search
16589 if one of a target character has a case-equivalence of different
16590 byte length even if that target charcter is an ASCII.
16591 (simple_search): Fix calculation of byte length of matched text.
16592 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16593
16594 2008-02-01 Kenichi Handa <handa@m17n.org>
16595
16596 * coding.c (decode_coding): Fix handling of invalid bytes.
16597
16598 2008-02-01 Kenichi Handa <handa@m17n.org>
16599
16600 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16601 Unicode characters.
16602
16603 2008-02-01 Kenichi Handa <handa@m17n.org>
16604
16605 * coding.c (encode_coding_object): If a pre-write-conversion
16606 function makes a new buffer, kill it.
16607
16608 2008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * coding.c (QCascii_compatible_p): New variable.
16611 (syms_of_coding): Initialize it.
16612 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16613 calling string_char.
16614 (record_conversion_result): Add `default:' case.
16615 (coding_charset_list): Delete unused variable `coding_type'.
16616 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16617 property in the plist of the coding system.
16618 (Fcoding_system_put): Check QCascii_compatible_p.
16619
16620 2008-02-01 Miles Bader <miles@gnu.org>
16621
16622 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16623 removed calculation of frame `f', as it's now used.
16624
16625 2008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16628 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16629 (UNIDATA): New variable.
16630 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16631 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16632 $(RUN_TEMACS) unconditionally.
16633
16634 2008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16637 (admindir): New variable.
16638 ($(lispsource)international/charprop.el): New target.
16639
16640 2008-02-01 Miles Bader <miles@gnu.org>
16641
16642 * character.c (chars-in-region): Remove obsolete function.
16643 (syms_of_character): Remove its initialization.
16644
16645 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16646
16647 * w32select.c (validate_coding_system)
16648 (setup_windows_coding_system): New functions.
16649 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16650 setup_windows_coding_system.
16651 (setup_config, Fw32_get_clipboard_data): Use
16652 validate_coding_system.
16653 (Fx_selection_exists): Move call to setup_config to a place
16654 where signals are allowed.
16655
16656 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16657 (Fcheck_coding_system): Add declarations.
16658
16659 2008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16662
16663 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16664
16665 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16666 string as the second argument for x_new_fontset.
16667
16668 2008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16671 (encode_coding_object): Use safe_call instead of call2.
16672
16673 2008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16676
16677 * Makefile.in (lisp): Include charprop.el.
16678
16679 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16680
16681 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16682 Not sure if it's unnecessary.
16683
16684 2008-02-01 Steven Tamm <steventamm@mac.com>
16685
16686 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16687 some possibly unnecessary fontset checking code that crashed
16688 when creating a new frame.
16689
16690 2008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16693 lookup_face.
16694
16695 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16696
16697 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16698
16699 2008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16702 (coding_charset_list): New function.
16703
16704 * coding.h (coding_charset_list): Extern it.
16705
16706 2008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16709 concatenation of family and registry.
16710
16711 2008-02-01 Kenichi Handa <handa@m17n.org>
16712
16713 * character.h (BYTE8_STRING): Fix typo.
16714
16715 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16716 string to multibyte (sync to HEAD).
16717
16718 * casefiddle.c (casify_region): Handle changes in byte-length
16719 using replace_range_2 (sync to HEAD).
16720
16721 2008-02-01 Andreas Schwab <schwab@suse.de>
16722
16723 * chartab.c (map_char_table): GCPRO table and arg.
16724
16725 2008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16728 already at limit.
16729
16730 2008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16733 instead of fast_c_string_match_ignore_case.
16734 (find_font_encoding): Change argument to Lisp_Object. Use
16735 fast_string_match_ignore_case instead of
16736 fast_c_string_match_ignore_case. Change caller.
16737
16738 2008-02-01 Kenichi Handa <handa@m17n.org>
16739
16740 * xdisp.c (get_next_display_element): In unibyte case, decide to
16741 display in octal form by checking a character by
16742 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16743
16744 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16745
16746 * character.c (unibyte_has_multibyte_table): New variable.
16747
16748 * character.h (unibyte_has_multibyte_table): Extern it.
16749 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16750
16751 2008-02-01 Kenichi Handa <handa@m17n.org>
16752
16753 * coding.c (encode_coding_iso_2022): Fix handling of charset
16754 annotation.
16755
16756 2008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * coding.c (setup_coding_system): If coding_system is nil, use
16759 Qundecided.
16760 (Fterminal_coding_system): Return nil if terminal coding system is
16761 `undecided'.
16762 (syms_of_coding): Define coding-system `undecided' here. Setup
16763 terminal_coding as `undecided'.
16764
16765 2008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * xdisp.c (message_dolog, set_message_1): Call
16768 unibyte_char_to_multibyte with arg type int.
16769
16770 * lread.c (read1): Fix reading of a char-table.
16771
16772 * print.c (print_object): Include sub char-table in circularities
16773 detection.
16774
16775 2008-02-01 Kenichi Handa <handa@m17n.org>
16776
16777 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16778 Append the found sequences in car of ARGS instead of prepending.
16779
16780 2008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * fileio.c (report_file_error): Make a unibyte string from
16783 strerror (errorno).
16784 (Fsubstitute_in_file_name): Fix the arg to
16785 unibyte_char_to_multibyte. It is evaluated twice.
16786
16787 2008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16790
16791 2008-02-01 Kenichi Handa <handa@m17n.org>
16792
16793 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16794 BOM is not found.
16795 (detect_coding, detect_coding_system): Optimization for ISO-2022
16796 when no 8-bit data is found.
16797
16798 2008-02-01 Jason Rumney <jasonr@gnu.org>
16799
16800 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16801
16802 2008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16805 CHARS.
16806
16807 2008-02-01 Steven Tamm <steventamm@mac.com>
16808
16809 * macterm.c (mac_encode_char): Add charset argument and update
16810 to use encoding_type.
16811 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16812 switch to pure fontset.
16813 (decode_mac_font_name): Temporarily remove decoding.
16814 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16815 (x_load_font): Temporarily remove encoding.
16816
16817 2008-02-01 Kenichi Handa <handa@m17n.org>
16818
16819 * xfaces.c (Fface_font): If frame is not on a window system,
16820 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16821 refer to face->font.
16822 (split_font_name_into_vector, build_font_name_from_vector)
16823 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16824 when HAVE_WINDOW_SYSTEM is defined.
16825
16826 2008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16829 (x_produce_glyphs): Fix setting of members of cmp in case
16830 cmp->glyph_len is zero.
16831
16832 * fontset.c (Fset_fontset_font): Fix docstring.
16833 (Ffontset_info): Make it backward compatible. New arg ALL.
16834
16835 2008-02-01 Kim F. Storm <storm@cua.dk>
16836
16837 * process.c (read_process_output): Grow decoding_buf when needed;
16838 this could cause a crash in allocate_string and compact_small_strings.
16839
16840 2008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16843
16844 2008-02-01 Kenichi Handa <handa@m17n.org>
16845
16846 * coding.c (setup_coding_system): Set coding->common_flags
16847 correctly for raw-text.
16848 (consume_chars): On encoding unibyte text by raw-text, don't check
16849 multibyte form.
16850 (encode_coding): On encoding by raw-text, never use translation tables.
16851
16852 * fileio.c (e_write): Short cut for the case of no encoding.
16853
16854 2008-02-01 Kenichi Handa <handa@m17n.org>
16855
16856 * coding.c (detect_coding, detect_coding_system): Delete unused
16857 variables.
16858
16859 2008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16862 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16863
16864 2008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * coding.c (Ffind_coding_systems_region_internal): Include
16867 raw-text and no-conversion in the result.
16868
16869 2008-02-01 Kenichi Handa <handa@m17n.org>
16870
16871 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16872 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16873 FONT_DEF.
16874 (font_def_arg, add_arg, from_arg, to_arg): New args.
16875 (set_fontset_font): Change argument.
16876 (Fset_fontset_font): Fix for the case that TARGET is a script
16877 name and charset name.
16878 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16879
16880 2008-02-01 Kenichi Handa <handa@m17n.org>
16881
16882 * fontset.c (fontset_font): Rename from fontset_face. Change return
16883 value.
16884 (face_suitable_for_char_p, face_for_char): Adjust for the change
16885 of fontset_font.
16886 (make_fontset_for_ascii_face): Fix setting of the fontset element
16887 for ASCII.
16888 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16889 to get a font name.
16890 (Ffontset_info): Adjust for the change of fontset_font.
16891
16892 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16893
16894 * character.h (LEADING_CODE_LATIN_1_MIN)
16895 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16896
16897 2008-02-01 Kenichi Handa <handa@m17n.org>
16898
16899 * editfns.c (check_translation): New function.
16900 (Ftranslate_region_internal): Handle M:N mapping.
16901
16902 2008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16905
16906 2008-02-01 Kenichi Handa <handa@m17n.org>
16907
16908 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16909 goto invalid_code.
16910 (decode_coding_iso_2022): Fix handling of invalid designation.
16911
16912 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16913 after calling code_conversion_save.
16914
16915 2008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16918
16919 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16920
16921 * fontset.c: Include "intervals.h".
16922 (fontset_face): Fix comparing of Lisp_Objects.
16923 (free_face_fontset, new_fontset_from_font_name): Fix
16924 Lisp_Object/int mixup.
16925
16926 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16927
16928 * coding.c: Add many prototypes for static functions.
16929 (get_translation_table): Allow max_lookup to be NULL.
16930 (decode_coding, Ffind_coding_systems_region_internal)
16931 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16932 get_translation_table with max_lookup NULL.
16933
16934 2008-02-01 Kenichi Handa <handa@m17n.org>
16935
16936 * coding.c (get_translation_table): Declare it as Lisp_Object.
16937 (LOOKUP_TRANSLATION_TABLE): New macro.
16938 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16939 instead of CHAR_TABLE_REF.
16940
16941 2008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16944 annotation data format.
16945 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16946 Change arguments FROM and TO to single argument NCHARS. Change caller.
16947 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16948 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16949 (decode_coding_ccl, decode_coding_charset): Pay attention to
16950 coding->charbuf_used.
16951 (get_translation): New function.
16952 (produce_chars): New arguments translation_table and last_block.
16953 Translate characters here. Return number of carryover chars.
16954 Change caller.
16955 (produce_composition): New argument pos. Change caller.
16956 Adjust for the change of annotation data format.
16957 (produce_charset, produce_annotation): Likewise.
16958 (decode_coding, encode_coding): Don't call translate_chars.
16959 (consume_chars): New arg translation_table. Change caller.
16960 (translate_chars): Delete.
16961 (syms_of_coding): Make translation-table's number of extra slots 2.
16962
16963 2008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * search.c (simple_search): Fix setting this_pos_byte in backward
16966 search.
16967
16968 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16969 byte sequence.
16970 (detect_coding_ccl): Fix setting of the variable valids.
16971
16972 2008-02-01 Kenichi Handa <handa@m17n.org>
16973
16974 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16975
16976 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16977
16978 * editfns.c (Ftranslate_region_internal): Rename from
16979 Ftranslate_region. Accept a char-table in TABLE.
16980 (syms_of_editfns): Defsubr Stranslate_region_internal.
16981
16982 * xfaces.c (set_lface_from_font_name): If a font is specified for
16983 a frame, generate a fontset from the font.
16984 (build_scalable_font_name): If the scalable font is requested for
16985 a specific size, don't change that size.
16986 (try_font_list): Try a scalable font also in the case that a
16987 pattern string is specified.
16988
16989 2008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * xfaces.c (Fface_font): New optional arg CHARACTER.
16992
16993 2008-02-01 Kenichi Handa <handa@m17n.org>
16994
16995 * charset.h (CHARSET_OFFSET): New macro.
16996
16997 2008-02-01 Kenichi Handa <handa@m17n.org>
16998
16999 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17000
17001 * fontset.c (fontset_face): Handle the case that repertory is a
17002 char-table.
17003 (find_font_encoding): Return nil for unknown encoding.
17004 (Fset_fontset_font): Ignore a font of unknown encoding.
17005
17006 2008-02-01 Kenichi Handa <handa@m17n.org>
17007
17008 * keymap.c (describe_vector): Handle default value of a char table.
17009
17010 * fontset.c (fontset_face): Handle fallback fonts correctly.
17011 (Ffontset_info): Return infomation about fallback fonts.
17012
17013 2008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * fontset.c (FONTSET_DEFAULT): New macro.
17016 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17017 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17018 the case that it is nil.
17019 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17020 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17021
17022 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17023 subset or superset.
17024
17025 2008-02-01 Kenichi Handa <handa@m17n.org>
17026
17027 * emacs.c (main): Call init_charset after syms_of_XXX.
17028
17029 * charset.c (Vcharset_map_directory): Delete.
17030 (Vcharset_map_path): New variable.
17031 (load_charset_map_from_file): Use Vcharset_map_path instead.
17032 (init_charset): Initialize Vcharset_map_path.
17033 (syms_of_charset): Delete declaration of "charset-map-directory",
17034 add declaration of "charset-map-path".
17035
17036 2008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17039 ASCII only string.
17040
17041 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17042
17043 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17044 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17045
17046 2008-02-01 Kenichi Handa <handa@m17n.org>
17047
17048 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17049
17050 * coding.c (QCmnemonic, QCdefalut_char)
17051 (QCdecode_translation_table, QCencode_translation_table)
17052 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17053 (get_translation_table): Return a list of translation tables if
17054 necessary.
17055 (decode_coding): Call get_translation_table with ENCODEP 0.
17056 (char_encodable_p): If translation_table is non-nil, always call
17057 translate_char.
17058 (Fdefine_coding_system_internal): Accept list of translation
17059 tables as :encode-translation-table and :decode-translation-table.
17060 (Fcoding_system_put): New function.
17061 (syms_of_coding): Declare new symbols. Defsubr
17062 Scoding_system_put.
17063 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17064 typically JISX0212.
17065
17066 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17067 when the charset is superset type.
17068
17069 * character.c (translate_char): Accept list of translation tables.
17070
17071 2008-02-01 Kenichi Handa <handa@m17n.org>
17072
17073 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17074 (CODING_ATTR_TRANS_TBL): New macro.
17075
17076 * coding.c (get_translation_table): New function.
17077 (translate_chars): Fix the bug of skipping annotation data.
17078 (decode_coding, encode_coding): Utilize get_translation_table.
17079 (char_encodable_p, Funencodable_char_position): Translate char if
17080 necessary.
17081 (Ffind_coding_systems_region_internal)
17082 (Fcheck_coding_systems_region): Setup translation table for encode
17083 in a coding system attribute vector in advance.
17084 (Fdefine_coding_system_internal): Allow a symbol as translation
17085 table. For shift-jis type coding system, allow 4th charset.
17086
17087 2008-02-01 Kenichi Handa <handa@m17n.org>
17088
17089 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17090
17091 * xdisp.c (get_next_display_element): Pass -1 as POS to
17092 FACE_FOR_CHAR if displaying a C-string.
17093
17094 2008-02-01 Kenichi Handa <handa@m17n.org>
17095
17096 * composite.c (get_composition_id): Handle xoff and yoff in a
17097 composition rule.
17098
17099 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17100 (struct composition): New member lbearing and rbearing.
17101
17102 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17103 (x_get_glyph_overhangs): Handle a composition glyph.
17104 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17105
17106 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17107 composition glyph.
17108
17109 2008-02-01 Kenichi Handa <handa@m17n.org>
17110
17111 * print.c: Include charset.h.
17112 (Vprint_charset_text_property): New variable.
17113 (Qdefault): Extern it.
17114 (PRINT_STRING_NON_CHARSET_FOUND)
17115 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17116 (print_check_string_result): New variable.
17117 (print_check_string_charset_prop): New function.
17118 (print_prune_charset_plist): New variable.
17119 (print_prune_string_charset): New function.
17120 (print_object): Call print_prune_string_charset if
17121 Vprint_charset_text_property is not t.
17122 (print_interval): Print nothing if interval->plist is nil.
17123 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17124 variable. Init and staticpro print_prune_charset_plist.
17125
17126 2008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * fontset.c (new_fontset_from_font_name): Use the specified font
17129 for all characters in the new fontset.
17130
17131 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17132 OBJECT args.
17133
17134 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17135 OBJECT args for composition too.
17136
17137 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17138 OBJECT args.
17139
17140 2008-02-01 Kenichi Handa <handa@m17n.org>
17141
17142 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17143
17144 * fontset.c (reorder_font_vector): Adjust for the change of
17145 FONT_DEF format.
17146 (fontset_face): New arg id. Change caller.
17147 (face_for_char): New args pos and object.
17148 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17149 (fs_query_fontset): Check NAME by Fassoc too.
17150 (Fset_fontset_font): Allow non-XLFD font name.
17151 (Ffontset_info): Adjust for the change of FONT_DEF format.
17152
17153 * fontset.h (face_for_char): Adjust prototype.
17154
17155 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17156 (append_space, extend_face_to_end_of_line)
17157 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17158 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17159
17160 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17161 POS and OBJECT args.
17162
17163 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17164 POS and OBJECT args.
17165
17166 2008-02-01 Jason Rumney <jasonr@gnu.org>
17167
17168 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17169 of GlobalAlloc'ed memory.
17170
17171 2008-02-01 Kenichi Handa <handa@m17n.org>
17172
17173 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17174
17175 * charset.h (charset_table_used): Delete extern.
17176
17177 * charset.c (charset_table_used): Make it static.
17178 (map_charset_chars): Fix args to c_function with.
17179
17180 * chartab.c (map_sub_char_table_for_charset): Fix args to
17181 c_function with.
17182
17183 * coding.h (enum coding_result_code): Delete
17184 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17185
17186 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17187 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17188 (Vlast_code_conversion_error): New variables.
17189 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17190 (ONE_MORE_BYTE): Record error if any instead of signaling an
17191 error. If non-ASCII multibyte char is found, return the negative
17192 value of the code. All callers changed to check it.
17193 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17194 (record_conversion_result): New function. Change all codes setting
17195 coding->result to call this function.
17196 (detect_coding_utf_8, decode_coding_utf_8)
17197 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17198 Don't use the local variable incomplete.
17199 (emacs_mule_char): Change the second arg to `const'.
17200 (decode_coding): Fix of flushing out unprocessed data.
17201 (make_conversion_work_buffer): Fix making of a work buffer.
17202 (decode_coding_object): Return coding->dst_object.
17203
17204 * fontset.c (set_fontset_font): Fix args.
17205
17206 * lisp.h (CHARACTERBITS): Define as 22.
17207
17208 * process.c (send_process): Be sure to set coding->src_multibyte.
17209
17210 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17211
17212 2008-02-01 Kenichi Handa <handa@m17n.org>
17213
17214 * xdisp.c (handle_auto_composed_prop): Give limit to
17215 Fnext_single_char_property_change.
17216
17217 2008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * composite.c (syms_of_composite): Don't make the composition hash
17220 table weak.
17221
17222 * fontset.c (Fset_fontset_font): Fix docstring.
17223
17224 * lisp.h (detect_coding_system): Adjust prototype.
17225
17226 * fileio.c (kill_workbuf_unwind): Delete this function.
17227 (Finsert_file_contents): Adjust the call of detect_coding_system.
17228 Get conversion_buffer by code_conversion_save. Use the macro
17229 CODING_MAY_REQUIRE_DECODING. After decoding, update
17230 coding_system.
17231
17232 * coding.h (make_conversion_work_buffer): Delete extern.
17233 (code_conversion_save): Extern it.
17234
17235 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17236 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17237 (decode_coding_utf_8): Don't do eol converion.
17238 (detect_coding_utf_16): Check coding->src_chars, not
17239 coding->src_bytes. Add heuristics for those that have no signature.
17240 (decode_coding_emacs_mule, decode_coding_iso_2022)
17241 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17242 Don't do eol converion.
17243 (adjust_coding_eol_type): Return a new coding system.
17244 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17245 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17246 each change.
17247 (decode_coding): Pay attention to undo_list. Do eol conversion for
17248 all types of coding-systems (if necessary).
17249 (Vcode_conversion_work_buf_list): Delete it.
17250 (Vcode_conversion_reused_workbuf): Rename from
17251 Vcode_conversion_reused_work_buf.
17252 (Vcode_conversion_workbuf_name): New variable.
17253 (reused_workbuf_in_use): New variable.
17254 (make_conversion_work_buffer): Delete the arg DEPTH.
17255 (code_conversion_restore): Change argument to cons.
17256 (code_conversion_save): Delete the argument BUFFER. Change callers.
17257 (detect_coding_system): New argument src_chars. Change callers.
17258 Fix for utf-16 detection.
17259 (init_coding_once): Don't use ISO_carriage_return.
17260 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17261 reused_workbuf_in_use.
17262
17263 2008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * keymap.c (store_in_keymap): Pay attention to the case that idx
17266 is a cons specifying a character range.
17267
17268 2008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17271 HANDLED_RECOMPUTE_PROPS.
17272
17273 * coding.c (Fdefine_coding_system_internal): Fix checking of
17274 ascii compatibility.
17275
17276 2008-02-01 Kenichi Handa <handa@m17n.org>
17277
17278 * charset.c (find_charsets_in_text): Delete unused locale variable.
17279 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17280
17281 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17282 Resync charset_list to Vemacs_mule_charset_list.
17283
17284 * keymap.c (store_in_keymap): Pay attention to the case that idx
17285 is a cons specifying a character range.
17286
17287 2008-02-01 Kenichi Handa <handa@m17n.org>
17288
17289 * composite.c (update_compositions): Bind inhibit-read-only, etc
17290 to t before calling remove-list-of-text-properties.
17291
17292 * print.c (print_object): Always print ASCII chars as is.
17293
17294 2008-02-01 Kenichi Handa <handa@m17n.org>
17295
17296 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17297
17298 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17299 is a char table.
17300
17301 2008-02-01 Kenichi Handa <handa@m17n.org>
17302
17303 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17304
17305 2008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * xfaces.c (set_lface_from_font_name): Fix for the case that
17308 FONTNAME is not fontset name.
17309
17310 2008-02-01 Kenichi Handa <handa@m17n.org>
17311
17312 * fns.c (base64_encode_1): Fix previous change.
17313
17314 2008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * fontset.c (set_fontset_font): New function.
17317 (Fset_fontset_font): If a font is specified for a charset, use
17318 map_charset_chars to store the font spec in a fontset.
17319
17320 2008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * fontset.c (fontset_face): Create a fallback fontset on demand.
17323 (make_fontset): Don't create a fallback fontset here.
17324 (free_face_fontset): Free a fallback fontset (if any) too.
17325 (n_auto_fontsets): Delete this variable.
17326 (auto_fontset_alist): New variable.
17327 (new_fontset_from_font_name): Check auto_fontset_alist.
17328 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17329 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17330 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17331 Defsubr Sfontset_list_all.
17332
17333 2008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17336
17337 2008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17340
17341 2008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * editfns.c (Fgoto_char): Fix docstring.
17344
17345 2008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * insdel.c (insert_from_gap): Adjust intervals correctly.
17348
17349 2008-02-01 Jason Rumney <jasonr@gnu.org>
17350
17351 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17352 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17353 (w32_initialize): Try to load it.
17354 (x_get_font_repertory): Use it if available.
17355 (w32_encode_char): Add shortcut for unicode output.
17356
17357 * w32fns.c (w32_load_system_font): Default charset to -1.
17358 (x_to_w32_charset): Match all fonts for unicode.
17359 (w32_to_x_charset): New parameter matching. Don't return partial
17360 or wildcard charsets.
17361 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17362 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17363 (w32_to_x_font): Match charset to real charset.
17364 (enum_font_cb2): Always list unicode versions.
17365
17366 * makefile.w32-in (temacs): Increase EMHEAP.
17367
17368 2008-02-01 Jason Rumney <jasonr@gnu.org>
17369
17370 * w32term.c (w32_encode_char): New charset parameter.
17371 font_info.encoding becomes encoding_type.
17372 (x_get_font_repertory): New function. Warning: stub only!
17373 (x_new_font): Return quickly if font already set.
17374 (x_new_fontset): fontsetname parameter is Lisp_Object.
17375 Use new fs_query_fontset. Try new_fontset_from_font_name.
17376 Use fontset_name for return value.
17377
17378 * w32term.h: Declare x_get_font_repertory.
17379
17380 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17381 place of find_charset_in_text. Use encode_coding_object in place
17382 of encode_coding.
17383 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17384 decode_coding.
17385
17386 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17387 of x_new_fontset.
17388 (w32_load_system_font): Initialize charset as unicode.
17389 font_info.encoding becomes encoding_type.
17390 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17391 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17392 (syms_of_w32fns): Set get_font_repertory_func.
17393
17394 * w32console.c: Include character.h. Use terminal_encode_buffer
17395 from term.c.
17396 (write_glyphs): Use new version of encode_terminal_code. Use
17397 encode_coding_object in place of encode_coding.
17398
17399 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17400 encoding becomes encoding_type.
17401
17402 * term.c (terminal_encode_buffer): Make externally visible.
17403
17404 * makefile.w32-in: Add character.h dependancies.
17405 (character.o, chartab.o): New targets.
17406
17407 2008-02-01 Kenichi Handa <handa@m17n.org>
17408
17409 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17410 CODING_ID_EOL_TYPE.
17411
17412 2008-02-01 Andreas Schwab <schwab@suse.de>
17413
17414 * coding.c (produce_chars): Revert last change.
17415
17416 2008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * charset.h (charset_unicode): Extern it.
17419
17420 * charset.c (string_xstring_p): Check by (C >= 0x100).
17421 (find_charsets_in_text): Change format of the arc CHARSETS. New
17422 arg MULTIBYTE.
17423 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17424 change of find_charsets_in_text.
17425 (Fsplit_char): Fix doc. Never return unknown.
17426
17427 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17428
17429 * coding.c (Fdefine_coding_system_alias): Update
17430 Vcoding_system_list.
17431
17432 * fontset.c (load_font_get_repertory): Pay attention to the case
17433 that ENCODING of a font is specified by a char-table.
17434
17435 * xterm.c (x_get_font_repertory): Handle the case that the
17436 encoding of font is other than Unicode.
17437
17438 2008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17441 if a character is encodable by the terminal coding system. If
17442 not, produces proper number of `?'s. Update
17443 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17444 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17445
17446 2008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17449 variables.
17450 (encode_terminal_code): Change argument. Encode multiple
17451 characters at once. Store the result of encoding in
17452 terminal_encode_buffer.
17453 (write_glyphs, insert_glyphs): Adjust for the change of
17454 encode_terminal_code.
17455 (term_init): Initialize terminal_encode_buffer and
17456 terminal_encode_buf_size.
17457
17458 * coding.c (consume_chars): If coding->src_object is nil, don't
17459 check annotation.
17460
17461 2008-02-01 Kenichi Handa <handa@m17n.org>
17462
17463 * character.c (char_string): Use ASCII_CHAR_P instead of
17464 SINGLE_BYTE_CHAR_P.
17465
17466 2008-02-01 Kenichi Handa <handa@m17n.org>
17467
17468 * xdisp.c (handle_auto_composed_prop): Check if the last
17469 characters of auto-composed region is newly composed with the
17470 following characters.
17471 (handle_composition_prop): Fix checking of point being inside
17472 composition.
17473
17474 2008-02-01 Kenichi Handa <handa@m17n.org>
17475
17476 * fns.c (concat): Don't change multibyteness of the result by
17477 concatenating an 8-bit character.
17478
17479 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17480 multibyteness of the result when newelt is an 8-bit character.
17481
17482 2008-02-01 Dave Love <fx@gnu.org>
17483
17484 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17485 EMACS_INT.
17486
17487 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17488
17489 * xfaces.c (face_numeric_value): Declare dim size_t.
17490 (Finternal_lisp_face_equal_p): Remove unused f.
17491
17492 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17493 (MATRIX_ROW): Remove unused vars.
17494 (draw_glyphs, x_insert_glyphs, fast_find_position)
17495 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17496 byte/char counts.
17497
17498 * regex.c (regex_compile): Remove unused var.
17499
17500 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17501
17502 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17503 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17504
17505 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17506
17507 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17508
17509 * fileio.c (Fwrite_region): Remove unused var.
17510
17511 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17512 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17513
17514 * composite.c (Fremove_list_of_text_properties): Declare.
17515
17516 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17517 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17518 (coding_inherit_eol_type): Remove unused attrs.
17519 (detect_coding): Cast arg of detect_eol.
17520
17521 * charset.c (syms_of_charset): Remove unused var p.
17522 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17523 byte/char counts.
17524
17525 * casetab.c (set_case_table): Remove unused var.
17526
17527 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17528 unused vars.
17529
17530 2008-02-01 Dave Love <fx@gnu.org>
17531
17532 * xterm.c (x_bitmap_mask): Declare.
17533
17534 2008-02-01 Dave Love <fx@gnu.org>
17535
17536 * xterm.c (x_term_init): Fix type error.
17537
17538 * lisp.h: Add Funibyte_char_to_multibyte.
17539
17540 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17541 (Fset_coding_system_priority): Doc fix.
17542
17543 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17544
17545 * indent.c (check_composition): Make start and end EMACS_INT.
17546
17547 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17548
17549 * xdisp.c (handle_composition_prop, check_point_in_composition):
17550 Make buffer positions EMACS_INT.
17551
17552 * composite.c (find_composition, run_composition_function)
17553 (update_compositions, Ffind_composition_internal): Make buffer
17554 positions EMACS_INT.
17555
17556 * composite.h (find_composition, update_compositions): Make
17557 position args EMACS_INT.
17558
17559 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17560
17561 * intervals.c (get_property_and_range):
17562 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17563
17564 * unexalpha.c: Don't include varargs.h.
17565
17566 2008-02-01 Dave Love <fx@gnu.org>
17567
17568 * coding.h (ENCODE_UTF_8): New.
17569
17570 * Makefile.in (gtkutil.o): Depend on coding.h.
17571
17572 * coding.c (Fset_coding_system_priority): Doc fix.
17573
17574 2008-02-01 Kenichi Handa <handa@m17n.org>
17575
17576 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17577 the case of auto saving.
17578
17579 2008-02-01 Andreas Schwab <schwab@suse.de>
17580
17581 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17582 `range' from GC.
17583
17584 2008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17587
17588 2008-02-01 Kenichi Handa <handa@m17n.org>
17589
17590 * fileio.c (choose_write_coding_system): Return a decided coding system.
17591 (Fwrite_region): Set Vlast_coding_system_used to the return value
17592 of choose_write_coding_system.
17593
17594 2008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * charset.c (Fset_charset_priority): Pay attention to duplicated
17597 arguments.
17598
17599 * coding.c (QCcategory): New variable.
17600 (syms_of_coding): Defsym it. Set all elements of
17601 Vcoding_category_table and their symbol values.
17602 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17603 coding-category-XXX, and coding-category-list.
17604 (Fdefine_coding_system_internal): Add category in the plist.
17605
17606 2008-02-01 Kenichi Handa <handa@m17n.org>
17607
17608 * callproc.c (Fcall_process): Handle carryover correctly.
17609
17610 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17611 (raw_text_coding_system): Check NILP (coding_system).
17612 (coding_inherit_eol_type): Check NILP (coding_system) and
17613 NILP (parent).
17614 (consume_chars): Fix for the case of raw-text.
17615
17616 * process.c (read_process_output): Handle carryover correctly.
17617
17618 2008-02-01 Dave Love <fx@gnu.org>
17619
17620 * regex.c (re_search_2): Fix last change.
17621
17622 2008-02-01 Kenichi Handa <handa@m17n.org>
17623
17624 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17625 target_multibyte. Even in a unibyte case, return a converted
17626 multibyte char.
17627 (GET_CHAR_AFTER): New macro.
17628 (PATFETCH): Translate via multibyte char.
17629 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17630 (SETUP_MULTIBYTE_RANGE): New macro.
17631 (regex_compile): Setup compiled code so that its multibyteness
17632 matches that of a target. Fix the handling of "[X-YZ]" using
17633 SETUP_MULTIBYTE_RANGE.
17634 (analyse_first) <charset>: For filling fastmap for all multibyte
17635 characters, don't check by BASE_LEADING_CODE_P.
17636 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17637 the same as RE_MULTIBYTE_P (bufp) now.
17638 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17639 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17640 (TRANSLATE_VIA_MULTIBYTE): New macro.
17641 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17642 It is the same as RE_MULTIBYTE_P (bufp) now.
17643 <exactn>: Translate via multibyte.
17644 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17645 translate it.
17646 <charset, charset_not>: Fetch a character by
17647 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17648 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17649 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17650 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17651 by GET_CHAR_AFTER.
17652 (bcmp_translate): Likewise.
17653
17654 * search.c (compile_pattern): Check the member target_multibyte,
17655 not the member multibyte of buf.
17656
17657 * lread.c (read1): While reading a string, set force_singlebyte
17658 and force_multibyte correctly.
17659
17660 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17661 up of unibyte_to_multibyte_table.
17662
17663 2008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * coding.c (setup_coding_system): If coding has
17666 post-read-conversion or pre-write-conversion, set
17667 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17668 respectively.
17669 (decode_coding_gap): Run post-read-conversion if any.
17670
17671 * fileio.c (Finsert_file_contents): Even if we read into a
17672 unibyte buffer, check if we must decode the result or not.
17673
17674 2008-02-01 Kenichi Handa <handa@m17n.org>
17675
17676 * coding.c (make_conversion_work_buffer): Change the work buffer
17677 name to the same one as that of Emacs 21.
17678
17679 2008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * coding.h (make_conversion_work_buffer): Adjust prototype.
17682 (code_conversion_restore): Don't extern it.
17683
17684 * coding.c (detected_mask): Delete unused variable.
17685 (decode_coding_iso_2022): Pay attention to the byte sequence of
17686 CTEXT extended segment, and retain those bytes as is.
17687 (decode_coding_ccl): Delete unused variable `valids'.
17688 (setup_coding_system): Delete unused variable `category'.
17689 (consume_chars): Delete unused variable `category'. Make it work
17690 for non-multibyte case.
17691 (make_conversion_work_buffer): Change argument.
17692 (saved_coding): Delete unused variable.
17693 (code_conversion_restore): Don't check saved_coding->destination.
17694 (code_conversion_save): New function.
17695 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17696 instead of record_unwind_protect.
17697 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17698 (detect_coding_system): Delete unused variable `mask'.
17699 (Fdefine_coding_system_internal): Delete unused variable id.
17700
17701 * fileio.c (kill_workbuf_unwind): New function.
17702 (Finsert_file_contents): On replacing, call
17703 make_conversion_work_buffer with correct args, and call
17704 record_unwind_protect with the first arg kill_workbuf_unwind.
17705
17706 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17707
17708 2008-02-01 Kenichi Handa <handa@m17n.org>
17709
17710 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17711 (fontset_add): Fix for the case that TO is less than TO1.
17712 (Ffontset_info): Don't use fallback fontset on checking the
17713 default fontset.
17714 (dump_fontset): New function for debugging.
17715
17716 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17717 coding_type is Qcharset.
17718
17719 2008-02-01 Kenichi Handa <handa@m17n.org>
17720
17721 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17722 (map_char_table): Don't inherit the value from the parent on
17723 initializing VAL. Adjust for the above change.
17724
17725 2008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * coding.c (Qsignature, Qendian): Delete these variables.
17728 (syms_of_coding): Don't initialize them.
17729 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17730 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17731 detect_info->found.
17732 (decode_coding_utf_16): Don't detect BOM here.
17733 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17734 is NOT utf_16_without_bom.
17735 (setup_coding_system): For a coding system of type utf-16, check
17736 if the attribute :endian is Qbig or not (not nil or not), and set
17737 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17738 (detect_coding): If coding type is utf-16 and BOM detection is
17739 required, detect it.
17740 (Fdefine_coding_system_internal): For a coding system of type
17741 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17742
17743 2008-02-01 Kenichi Handa <handa@m17n.org>
17744
17745 * coding.c (coding_set_source): Fix for the case that the current
17746 buffer is different from coding->src_object.
17747 (decode_coding_object): Don't use the conversion work buffer if
17748 DST_OBJECT is a buffer.
17749
17750 2008-02-01 Dave Love <fx@gnu.org>
17751
17752 * lread.c (read_emacs_mule_char) [len==2]: Index
17753 emacs_mule_charset correctly.
17754
17755 2008-02-01 Dave Love <fx@gnu.org>
17756
17757 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17758 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17759 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17760 treated specially.)
17761 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17762 (detected_mask): Remove Big5 bits.
17763
17764 2008-02-01 Kenichi Handa <handa@m17n.org>
17765
17766 The following changes are to make the font rescaling facility
17767 compatible with Emacs 21.
17768
17769 * xfaces.c (Vface_font_rescale_alist): Rename from
17770 Vface_resizing_fonts.
17771 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17772 (font_rescale_ratio): Rename from font_resizing_ratio.
17773 (split_font_name): Set font->rescale_ratio.
17774 (better_font_p): Pay attention to font->rescale_ratio.
17775 (build_scalable_font_name): Likewise. Change RESX, and RESY
17776 fields.
17777 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17778
17779 2008-02-01 Kenichi Handa <handa@m17n.org>
17780
17781 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17782 (Qutf_16_le): Remove these variables.
17783 (syms_of_coding): Don't DEFSYM them.
17784 (decode_coding_utf_16): Fix handling of BOM.
17785 (encode_coding_utf_16): Fix handling of BOM.
17786
17787 2008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * fileio.c (Finsert_file_contents): On replacing, before decoding
17790 the file into the work buffer, set point of the work buffer to the end.
17791
17792 2008-02-01 Dave Love <fx@gnu.org>
17793
17794 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17795
17796 2008-02-01 Dave Love <fx@gnu.org>
17797
17798 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17799 and fix C types.
17800
17801 2008-02-01 Kenichi Handa <handa@m17n.org>
17802
17803 * xdisp.c (SKIP_GLYPHS): New macro.
17804 (set_cursor_from_row): Pay attention to string display properties.
17805
17806 * category.c (copy_category_entry): Fix for the case that RANGE
17807 is an integer.
17808
17809 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17810
17811 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17812
17813 2008-02-01 Kenichi Handa <handa@m17n.org>
17814
17815 * charset.c (Fcharset_id_internal): New function.
17816 (syms_of_charset): Defsubr it.
17817
17818 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17819 with the last arg charset_list acquired from coding.
17820 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17821 the attribute coding_attr_ccl_valids.
17822
17823 * coding.h (enum define_coding_ccl_arg_index): Set the first
17824 member coding_arg_ccl_decoder to coding_arg_max.
17825
17826 * ccl.h (ccl_driver): Adjust prototype.
17827
17828 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17829 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
17830 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
17831 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17832 last arg Qnil.
17833
17834 2008-02-01 Kenichi Handa <handa@m17n.org>
17835
17836 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17837 call encode_char.
17838
17839 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17840
17841 2008-02-01 Dave Love <fx@gnu.org>
17842
17843 * composite.c (syms_of_composite): Make composition_hash_table weak.
17844
17845 2008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17848 (font_name_registry): Don't extern them.
17849 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17850
17851 * fontset.h (Qfontset): Don't extern it.
17852 (new_fontset_from_font_name): Extern it.
17853
17854 * fontset.c: Give 8 extra slots to fontset objects.
17855 (Qfontset_info): New variable.
17856 (syms_of_fontset): Defsym it.
17857 (FONTSET_FALLBACK): New macro.
17858 (fontset_face): Try also the default fontset.
17859 (make_fontset): Realize a fallback fontset from the default fontset.
17860 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17861 using split_font_name_into_vector and build_font_name_from_vector.
17862 (Fset_fontset_font): Access the elements of font_spec by enum
17863 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17864 name by using split_font_name_into_vector.
17865 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17866 generate a proper font name from the fontset name. Update
17867 Vfontset_alias_alist.
17868 (n_auto_fontsets): New variable.
17869 (new_fontset_from_font_name): New function.
17870 (Ffont_info): Store the information about fonts generated from the
17871 default fontset in the first extra slot of the returned char-table.
17872
17873 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17874 (font_name_registry): Delete function.
17875 (split_font_name_into_vector): New function.
17876 (build_font_name_from_vector): New function.
17877 (font_list): The argument REGISTRY is now a list of registry names.
17878 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17879 specifies an explicit font name, return the name as is. Make a
17880 list of registy names.
17881
17882 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17883 of x_new_fontset.
17884 (Fx_create_frame): Don't call x_new_fontset here. Just use
17885 x_list_fonts to check the existence of fonts.
17886
17887 * xterm.h (x_new_fontset): Adjust prototype.
17888
17889 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17890 string. Use new_fontset_from_font_name to create a fontset from a
17891 font name.
17892
17893 2008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * syntax.c (Vfind_word_boundary_function_table): New name for
17896 Vnext_word_boundary_function_table.
17897 (find-word-boundary-function-table): New name for
17898 next-word-boundary-function-table.
17899
17900 2008-02-01 Dave Love <fx@gnu.org>
17901
17902 * Makefile.in: Fix some dependencies.
17903
17904 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17905 set it to nil before returning.
17906
17907 * composite.c (update_compositions): Fix type error.
17908
17909 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17910
17911 2008-02-01 Kenichi Handa <handa@m17n.org>
17912
17913 * xterm.c (x_new_font): Optimize for the case that the font is
17914 already set for the frame.
17915
17916 2008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * chartab.c (char_table_ascii): Check if the char table contents
17919 is sub-char-table or not.
17920 (char_table_set, char_table_set_range): Fix argument to
17921 char_table_ascii.
17922
17923 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17924 (detect_coding_utf_8, detect_coding_utf_16)
17925 (detect_coding_emacs_mule, detect_coding_iso_2022)
17926 (detect_coding_sjis, detect_coding_big5)
17927 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17928 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17929 sequence is valid in this coding system. Change callers.
17930 (MAX_ANNOTATION_LENGTH): New macro.
17931 (ADD_ANNOTATION_DATA): New macro.
17932 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17933 ADD_ANNOTATION_DATA. Change the format of annotation data.
17934 (ADD_CHARSET_DATA): New macro.
17935 (emacs_mule_char): New argument ID. Change callers.
17936 (decode_coding_emacs_mule, decode_coding_iso_2022)
17937 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17938 Produce charset annotation data in coding->charbuf.
17939 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17940 to charset annotation data in coding->charbuf.
17941 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17942 coding->common_flags if the coding system is iso-2022 based and
17943 uses designation.
17944 (produce_composition): Adjust for the new annotation data format.
17945 (produce_charset): New function.
17946 (produce_annotation): Handle charset annotation.
17947 (handle_composition_annotation, handle_charset_annotation): New
17948 functions.
17949 (consume_chars): Handle charset annotation. Utilize the above two
17950 functions.
17951 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17952 buffer, get the deleted text as a string and set
17953 coding->src_object to that string.
17954 (detect_coding, detect_coding_system): Use the new struct
17955 coding_detection_info.
17956
17957 * coding.h (struct coding_detection_info): New structure.
17958 (struct coding_system): Adjust prototype of the member `detector'.
17959 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17960
17961 2008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17964
17965 2008-02-01 Dave Love <fx@gnu.org>
17966
17967 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17968 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17969 to new local and nullify apropos_accumulate before returning.
17970 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17971
17972 2008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17975 correctly.
17976
17977 2008-02-01 Dave Love <fx@gnu.org>
17978
17979 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17980
17981 2008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 The following changes are to make character composition happen
17984 automatically on displaying.
17985
17986 * Makefile.in (lisp, shortlisp): Add composite.elc.
17987
17988 * composite.h (Qauto_composed, Vauto_composition_function)
17989 (Qauto_composition_function): Extern them.
17990
17991 * composite.c (Vcomposition_function_table)
17992 (Qcomposition_function_table): Delete variables.
17993 (Qauto_composed, Vauto_composition_function)
17994 (Qauto_composition_function): New variables.
17995 (run_composition_function): Don't call
17996 compose-chars-after-function.
17997 (update_compositions): Clear `auto-composed' text property.
17998 (compose_chars_in_text): Delete this function.
17999 (syms_of_composite): Staticpro Qauto_composed and
18000 Qauto_composition_function. Declare Vauto_composition_function as
18001 a Lisp variable.
18002
18003 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18004
18005 * xdisp.c (it_props): Add an entry for Qauto_composed.
18006 (handle_auto_composed_prop): New function.
18007
18008 * xselect.c (selection_data_to_lisp_data): Don't call
18009 compose_chars_in_text.
18010
18011 2008-02-01 Dave Love <fx@gnu.org>
18012
18013 * keyboard.c (read_char): Modify checking around use of
18014 Vkeyboard_translate_table.
18015
18016 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18017 and fix C types.
18018
18019 2008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18022 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18023 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18024 the case that the last byte is '\r' correctly.
18025 (decode_coding): Flush out the unprocessed data correctly.
18026 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18027
18028 2008-02-01 Dave Love <fx@gnu.org>
18029
18030 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18031 Add XK_ISO... case.
18032 (xaw_scroll_callback): Revert last change.
18033
18034 2008-02-01 Kenichi Handa <handa@m17n.org>
18035
18036 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18037
18038 2008-02-01 Kenichi Handa <handa@m17n.org>
18039
18040 * xfaces.c (Vface_resizing_fonts): New variable.
18041 (struct font_name): New member `resizing_ratio'.
18042 (font_resizing_ratio): New function.
18043 (split_font_name): Set font->resizing_ratio.
18044 (better_font_p): Pay attention to font->resizing_ratio.
18045 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18046 RESX, and RESY fields.
18047 (try_alternative_families): Try scalable fonts if
18048 Vscalable_fonts_allowed is not Qt.
18049 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18050
18051 2008-02-01 Dave Love <fx@gnu.org>
18052
18053 * xterm.c (xaw_scroll_callback): Cast correctly.
18054
18055 2008-02-01 Dave Love <fx@gnu.org>
18056
18057 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18058 (lispy_kana_keys): Comment out.
18059 (make_lispy_event) [XK_kana_A]: Comment out.
18060
18061 * xterm.c (xaw_scroll_callback): Cast call_data.
18062 (XTread_socket): Deal with ASCII keysyms.
18063 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18064
18065 2008-02-01 Dave Love <fx@gnu.org>
18066
18067 * xterm.c (Vx_keysym_table): New.
18068 (syms_of_xterm): Initialize it.
18069 (XTread_socket): Use it.
18070 From head: Eliminate incorrect optimization that tried to avoid
18071 decoding the output of X*LookupString.
18072 (x_get_font_repertory): Delete charset declaration.
18073
18074 2008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18077 return 0.
18078 (Fdefine_coding_system_internal): Setup
18079 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18080
18081 2008-02-01 Dave Love <fx@gnu.org>
18082
18083 * coding.c (Fcheck_coding_system): Doc fix.
18084
18085 * editfns.c (Finsert_byte): Return a proper value.
18086
18087 2008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * coding.c (decode_coding): Fix args to translate_chars. Pay
18090 attention to Vstandard_translation_table_for_decode.
18091 (encode_coding): Fix args to translate_chars. Pay attention to
18092 Vstandard_translation_table_for_encode.
18093
18094 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18095 SINGLE_BYTE_CHAR_P.
18096
18097 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18098 not by SINGLE_BYTE_CHAR_P.
18099
18100 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18101 SINGLE_BYTE_CHAR_P.
18102
18103 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18104 SINGLE_BYTE_CHAR_P.
18105
18106 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18107 by SINGLE_BYTE_CHAR_P.
18108
18109 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18110 SINGLE_BYTE_CHAR_P.
18111
18112 2008-02-01 Dave Love <fx@gnu.org>
18113
18114 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18115
18116 2008-02-01 Dave Love <fx@gnu.org>
18117
18118 * fns.c (Flanginfo): Fix typo.
18119
18120 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18121
18122 2008-02-01 Kenichi Handa <handa@m17n.org>
18123
18124 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18125 (detect_coding_emacs_mule, detect_coding_iso_2022)
18126 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18127 incomplete byte sequence. Don't update *mask when correctly detected.
18128 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18129 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18130 (detect_coding, detect_coding_system): Adjust for the changes above.
18131
18132 2008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * character.c (char_string): Rename from
18135 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18136 (string_char): Rename from string_char.
18137
18138 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18139 if C is greater than MAX_3_BYTE_CHAR.
18140 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18141 string_char instead of string_char_with_unification.
18142
18143 2008-02-01 Dave Love <fx@gnu.org>
18144
18145 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18146
18147 2008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * keymap.c (push_key_description): Pay attention to force_multibyte.
18150
18151 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18152
18153 2008-02-01 Dave Love <fx@gnu.org>
18154
18155 * charset.c (define_charset_internal): Rename `supprementary'.
18156
18157 * Makefile.in (lisp, shortlisp): Remove latin-N.
18158
18159 2008-02-01 Dave Love <fx@gnu.org>
18160
18161 * xfns.c (x_window, x_window): Use use_xim.
18162
18163 * xterm.c (use_xim): Initialize.
18164 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18165 (x_term_init): Maybe set use_xim.
18166
18167 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18168
18169 2008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * search.c (search_buffer): Fix case-fold-search of multibyte
18172 characters.
18173 (boyer_moore): Rename the last argument to char_high_bits.
18174
18175 2008-02-01 Kenichi Handa <handa@m17n.org>
18176
18177 * xdisp.c (display_string): Fix for the case of zero width glyph.
18178
18179 * xfns.c (x_set_font): Change the error message of the case that
18180 x_new_fontset returns Qt.
18181
18182 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18183 (Finternal_set_lisp_face_attribute): Use signal_error for the
18184 error of invalid fontset.
18185
18186 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18187 fontset, return Qt.
18188
18189 2008-02-01 Dave Love <fx@gnu.org>
18190
18191 * unexelf.c (unexec): Make .got handling not SGI-specific.
18192
18193 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18194
18195 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18196
18197 * keyboard.c (read_key_sequence): Fix type error.
18198
18199 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18200 type error.
18201
18202 * fontset.c (fontset_add): Return Lisp_Object.
18203
18204 2008-02-01 Dave Love <fx@gnu.org>
18205
18206 * charset.h (charset_ordered_list_tick): Declare extern.
18207
18208 2008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 The following changes (and some of 2008-02-01 changes of mine) are
18211 for handling syntax, category, and case conversion for unibyte
18212 characters by converting them to multibyte on the fly. With these
18213 changes, we don't have to setup syntax and case tables for unibyte
18214 characters in each language environment.
18215
18216 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18217 multibyte if necessary.
18218
18219 * bytecode.c (Fbyte_code): Likewise.
18220
18221 * character.h (LEADING_CODE_LATIN_1_MIN)
18222 (LEADING_CODE_LATIN_1_MAX): New macros.
18223 (unibyte_to_multibyte_table): Extern it.
18224 (unibyte_char_to_multibyte): New macro.
18225 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18226 (CHAR_LEADING_CODE): New macro.
18227 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18228
18229 * character.c (unibyte_to_multibyte_table): New variable.
18230 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18231 (multibyte_char_to_unibyte): If C is an eight-bit character,
18232 convert it to the corresponding byte value.
18233
18234 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18235 not 1, signals an error. Update the elements of
18236 unibyte_to_multibyte_table.
18237 (init_charset_once): Initialize unibyte_to_multibyte_table.
18238 (syms_of_charset): Define the charset `iso-8859-1'.
18239
18240 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18241 as is without converting it to unibyte. In a unibyte buffer,
18242 convert C to multibyte before checking the syntax.
18243
18244 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18245
18246 * minibuf.c (Fminibuffer_complete_word): Use the macro
18247 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18248
18249 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18250
18251 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18252 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18253 that is zero, convert an eight-bit char to multibyte.
18254 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18255 non-emacs case.
18256 (PATFETCH): Convert an eight-bit char to multibyte.
18257 (HANDLE_UNIBYTE_RANGE): New macro.
18258 (regex_compile): Setup the compiled pattern for multibyte chars
18259 even if the given regex string is unibyte. Use PATFETCH_RAW
18260 instead of PATFETCH in many places. To handle `charset'
18261 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18262 only for ASCII chars.
18263 (analyse_first) <exactn>: Simplify because the compiled pattern
18264 is multibyte.
18265 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18266 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18267 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18268 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18269 multibyte always 1.
18270 (re_search_2): In emacs, set the locale variable multibyte to 1,
18271 otherwise to 0. New local variable target_multibyte. Check it
18272 to decide the multibyteness of STR1 and STR2. If
18273 target_multibyte is zero, convert unibyte chars to multibyte
18274 before translating and checking fastmap.
18275 (TARGET_CHAR_AND_LENGTH): New macro.
18276 (re_match_2_internal): In emacs, set the locale variable multibyte
18277 to 1, otherwise to 0. New local variable target_multibyte. Check
18278 it to decide the multibyteness of STR1 and STR2. Use
18279 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18280 <charset, charset_not>: If multibyte is nonzero, check fastmap
18281 only for ASCII chars. Call bcmp_translate with
18282 target_multibyte, not with multibyte.
18283 <begline>: Declare the local variable C as `unsigned'.
18284 (bcmp_translate): Change the last arg name to target_multibyte.
18285
18286 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18287 the regexp pattern and the matching target. Set cp->buf.multibyte
18288 to the multibyteness of the regexp pattern. Set
18289 cp->but.target_multibyte to the multibyteness of the matching target.
18290 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18291 FETCH_STRING_CHAR_ADVANCE.
18292 (Freplace_match): Convert unibyte chars to multibyte.
18293
18294 * syntax.c (char_quoted, back_comment, scan_words)
18295 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18296 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18297 unibyte chars to multibyte.
18298 (skip_chars): Delete the arg syntaxp, and move the code for
18299 handling syntaxes to skip_syntaxes. Change callers.
18300 Fix the case that the multibyteness of STRING and the current
18301 buffer doesn't match.
18302 (skip_syntaxes): New function.
18303 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18304 SINGLE_BYTE_CHAR_P.
18305
18306 2008-02-01 Kenichi Handa <handa@m17n.org>
18307
18308 * xfaces.c (QCfontset): New variable.
18309 (LFACE_FONTSET): New macro.
18310 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18311 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18312 (Finternal_set_lisp_face_attribute)
18313 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18314 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18315 check also LFACE_FONTSET_INDEX.
18316 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18317 attrs[LFACE_FONT_INDEX].
18318 (syms_of_xfaces): Intern and staticpro QCfontset.
18319
18320 * dispextern.h (enum lface_attribute_index): New member
18321 LFACE_FONTSET_INDEX.
18322
18323 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18324
18325 2008-02-01 Kenichi Handa <handa@m17n.org>
18326
18327 * coding.c (coding_set_destination): Fix coding->destination for
18328 the case converting a region.
18329 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18330 (encode_coding_object): Fix coding->dst_pos and
18331 coding->dst_pos_byte for the case converting a region.
18332
18333 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18334
18335 * character.h (BYTE8_STRING): New macro.
18336
18337 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18338
18339 2008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18342 characters by octal form.
18343
18344 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18345
18346 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18347 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18348 _fetch_multibyte_char_len.
18349 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18350
18351 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18352
18353 * casefiddle.c (casify_object): Simplify. Handle the case that
18354 the case conversion change the byte length.
18355 (casify_region): Likewise.
18356
18357 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18358
18359 * character.c (_fetch_multibyte_char_len): Delete this variable.
18360 (syms_of_character): Setup Vprintable_chars.
18361
18362 * editfns.c (Fchar_equal): Fix for the unibyte case.
18363 (Finsert_byte): New function.
18364 (syms_of_editfns): Defsubr it.
18365
18366 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18367 of direct code 0x3ffff.
18368
18369 * search.c (Freplace_match): Fix for the unibyte case.
18370
18371 2008-02-01 Kenichi Handa <handa@m17n.org>
18372
18373 * lread.c (safe_to_load_p): Fix the logic.
18374
18375 * syntax.c (scan_words): Don't treat characters belonging to
18376 different scripts as constituting a word.
18377
18378 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18379
18380 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18381
18382 * emacs.c (main): In the case of --unibyte, instead of aborting on
18383 finding non-empty buffer, make it unibyte.
18384
18385 2008-02-01 Kenichi Handa <handa@m17n.org>
18386
18387 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18388 to create a fontset.
18389
18390 2008-02-01 Dave Love <fx@gnu.org>
18391
18392 * character.c (Funibyte_char_to_multibyte): Doc fix.
18393
18394 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18395
18396 2008-02-01 Kenichi Handa <handa@m17n.org>
18397
18398 * fontset.c (fontset_add): Make the type `int'.
18399 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18400
18401 * character.c (unibyte_char_to_multibyte)
18402 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18403 charset_unibyte, not charset_primary.
18404
18405 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18406
18407 * charset.c (charset_unibyte): Rename from charset_primary.
18408 (Funibyte_charset): Rename from Fprimary_charset.
18409 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18410 (syms_of_charset): Adjust for the above changes.
18411
18412 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18413 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18414 it->multibyte_p is zero.
18415
18416 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18417 Delete extern.
18418
18419 2008-02-01 Kenichi Handa <handa@m17n.org>
18420
18421 * coding.c (Fdefine_coding_system_internal): Fix category setting
18422 for a coding system of type iso-2022.
18423
18424 2008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18427
18428 2008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * syntax.c (Vnext_word_boundary_function_table): New variable.
18431 (next-word-boundary-function-table): Declare it as a Lisp variable
18432 in syms_of_syntax.
18433 (scan_words): Call functions in Vnext_word_boundary_function_table
18434 if any.
18435
18436 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18437
18438 * fontset.c (fs_load_font): If fontp->charset is not negative,
18439 return fontp without setting its members.
18440
18441 2008-02-01 Dave Love <fx@gnu.org>
18442
18443 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18444
18445 * m/sparc.h (HAVE_ALLOCA): Delete.
18446
18447 * s/irix6-5.h: Don't include strings.h.
18448 (bcopy, bzero, bcmp): Don't undef.
18449
18450 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18451
18452 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18453 (TIOCSIGSEND): Don't test IRIX6.
18454 (bcopy, bzero, bcmp): Define conditionally.
18455
18456 2008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * buffer.c (Qas, Qmake, Qto): New variables.
18459 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18460 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18461
18462 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18463 we are inserting a process output into a multibyte buffer.
18464
18465 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18466 multibyte_char_to_unibyte.
18467
18468 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18469 by the primary charset, make it eight-bit char.
18470 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18471
18472 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18473 (charset_8_bit__control, charset_8_bit_graphic)
18474 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18475 (define_charset_internal): New function.
18476 (syms_of_charset): Call define_charset_internal for pre-defined
18477 charsets.
18478
18479 * charset.h (charset_8_bit): Extern it.
18480
18481 * coding.c (make_conversion_work_buffer): Adjust for the change
18482 of Fset_buffer_multibyte.
18483 (encode_coding_raw_text): Increment p0 in the loop.
18484
18485 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18486
18487 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18488 for the change of Fset_buffer_multibyte.
18489
18490 * fns.c (Fstring_to_multibyte): New function.
18491 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18492
18493 2008-02-01 Dave Love <fx@gnu.org>
18494
18495 * xfns.c (x_put_x_image): Declare args.
18496
18497 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18498 (try_font_list): Declare an arg.
18499
18500 * xdisp.c (message2_nolog, set_message): Declare an arg.
18501
18502 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18503
18504 * syntax.c (scan_sexps_forward): Declare an arg.
18505
18506 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18507 Declare an arg.
18508
18509 * lisp.h (Fnew_fontset): Declare.
18510
18511 * keymap.c (push_key_description): Call CHARACTERP correctly.
18512
18513 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18514 (face_for_char): Delete unused vars.
18515 (Fset_fontset_font): Doc fix. Delete unused vars.
18516
18517 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18518
18519 * composite.c (update_compositions): Declare arg.
18520
18521 * cm.c (calccost, cmgoto): Declare args.
18522
18523 * charset.c: Remove `emacs' conditional. Doc fixes.
18524 (map_char_table_for_charset): Declare.
18525
18526 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18527
18528 * ccl.c: Remove `emacs' conditional.
18529
18530 2008-02-01 Kenichi Handa <handa@m17n.org>
18531
18532 The following changes are to allow specifying multiple font
18533 patterns for a character range (specified by script or charset).
18534
18535 * Makefile.in (abbrev.o): Depend on syntax.h.
18536 (xfaces.o): Depend on charset.h.
18537
18538 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18539 SINGLE_BYTE_CHAR_P.
18540
18541 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18542
18543 * character.h (Vchar_script_table): Extern it.
18544
18545 * character.c (Vscript_alist): Delete.
18546 (Vchar_script_table, Qchar_script_table): New variable.
18547 (syms_of_character): Declare Vchar_script_table as a lisp variable
18548 and initialize it.
18549
18550 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18551 have property char-table-extra-slots, make no extra slot.
18552
18553 * dispextern.h (struct face): Delete member `charset'.
18554 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18555 SINGLE_BYTE_CHAR_P.
18556 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18557 Add prototypes.
18558 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18559 (generate_ascii_font_name): Rename from generate_ascii_font.
18560
18561 * fontset.h (get_font_repertory_func): New prototype.
18562 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18563 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18564
18565 * fontset.c (Qprepend, Qappend): New variables.
18566 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18567 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18568 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18569 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18570 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18571 (load_font_get_repertory): New functions.
18572 (fontset_set): Delete.
18573 (fontset_face): New arg FACE. Return face ID, not face.
18574 Complete re-write to handle new fontset structure. Change caller.
18575 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18576 (face_for_char): Don't call lookup_face.
18577 (make_fontset_for_ascii_face): New arg FACE.
18578 (fs_load_font): New arg CHARSET_ID. Don't check
18579 Vfont_encoding_alist here.
18580 (find_font_encoding): New function.
18581 (list_fontsets): Use STRINGP, not ! NILP.
18582 (accumulate_script_ranges): New function.
18583 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18584 re-written to handle new fontset structure.
18585 (Ffontset_font): Return a copy of element.
18586 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18587 docstring of font-encoding-alist.
18588
18589 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18590 (Fset_fotset_font): Fix arguments to 5.
18591
18592 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18593
18594 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18595 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18596 (highlight_trailing_whitespace): Adjust for the change of
18597 lookup_named_face.
18598
18599 * xfaces.c: Include charset.h.
18600 (load_face_font): Delete argument C. Change caller.
18601 (generate_ascii_font_name): Rename from generate_ascii_font.
18602 (font_name_registry): New function.
18603 (cache_face): Store ascii faces before non-ascii faces in buckets.
18604 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18605 Lookup only ascii faces.
18606 (lookup_non_ascii_face): New function.
18607 (lookup_named_face): Delete argument C. Change caller.
18608 (lookup_derived_face): Delete argument C. Change caller.
18609 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18610 a string, just call font_list with it.
18611 (choose_face_font): Delete arguments FACE and C. New arg
18612 FONT_SPEC. Change caller.
18613 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18614 Change caller.
18615 (realize_non_ascii_face): New function.
18616 (realize_x_face): Call load_face_font here.
18617 (realize_tty_face): Delete argument C. Change caller.
18618 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18619 get a face ID.
18620 (dump_realized_face): Don't print charset of FACE.
18621
18622 * xfns.c (x_set_font): Always call x_new_fontset and
18623 store_frame_parameter.
18624 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18625 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18626
18627 * xterm.h (x_get_font_repertory): Extern it.
18628
18629 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18630 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18631 it->multibyte_p is zero.
18632 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18633 (x_new_fontset): If FONTSETNAME doesn't match any existing
18634 fontsets, create a new one.
18635 (x_get_font_repertory): New function.
18636
18637 2008-02-01 Kenichi Handa <handa@m17n.org>
18638
18639 * coding.c (Ffind_coding_systems_region_internal): Detect an
18640 ASCII only string correctly.
18641
18642 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18643 version is 0.
18644
18645 2008-02-01 Kenichi Handa <handa@m17n.org>
18646
18647 * lread.c: Include "coding.h".
18648 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18649 (load_each_byte, unread_char): New variables.
18650 (readchar_backlog): Delete.
18651 (readchar): Return a character unless load_each_byte is nonzero.
18652 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18653 cons. If unread_char is not -1, simply return it.
18654 (unreadchar): Handle the case that readcharfun is
18655 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18656 (read_multibyte): Delete.
18657 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18658 (read_emacs_mule_char): New functions.
18659 (Fload): Even if the file doesn't have the extension ".elc", if
18660 safe_to_load_p returns a positive version number, assume that the
18661 file contains bytecompiled code. If the version is less than 22,
18662 load the file while decoding multibyte sequences by emacs-mule.
18663 (readevalloop): Don't use readchar_backlog.
18664 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18665 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18666 (read_escape): Delete the arg BYTEREP.
18667 (read1): Set load_each_byte to 1 temporarily while handling
18668 #@NUMBER. Don't call read_multibyte.
18669 (read_vector): Call Fread with a cons. If readcharfun is
18670 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18671 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18672 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18673 and Qload_force_doc_strings.
18674
18675 2008-02-01 Kenichi Handa <handa@m17n.org>
18676
18677 * xdisp.c (face_before_or_after_it_pos): Call
18678 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18679
18680 2008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * character.h (TRAILING_CODE_P): New macro.
18683 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18684 (string_char_with_unification): Fix prototype.
18685 (Vscript_alist): Extern it.
18686
18687 * character.c (Vscript_alist): New variable.
18688 (string_char_with_unification, str_as_unibyte)
18689 (string_escape_byte8): Add `const' to local variables.
18690 (syms_of_character): Declare script-alist as a Lisp variable.
18691
18692 * charset.h (Vcharset_ordered_list): Extern it.
18693 (charset_ordered_list_tick): Extern it.
18694 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18695 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18696 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18697 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18698 (Funify_charset): Adjust for the change of Funify_charset.
18699
18700 * charset.c (charset_ordered_list_tick): New variable.
18701 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18702 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18703 deunify intead of unify a charset.
18704 (string_xstring_p): Add `const' to local variables.
18705 (find_charsets_in_text): Add `const' to arguments and local variables.
18706 (encode_char): Adjust for the change of Funify_charset. Fix
18707 detecting of invalid code.
18708 (Fset_charset_priority): Increment charset_ordered_list_tick.
18709 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18710 and TO_CODE.
18711
18712 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18713 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18714 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18715 (decode_coding_ccl, consume_chars)
18716 (Ffind_coding_systems_region_internal)
18717 (Fcheck_coding_systems_region): Add `const' to local variables.
18718
18719 * print.c (print_object): Use octal form for printing the
18720 contents of a bool vector.
18721
18722 2008-02-01 Dave Love <fx@gnu.org>
18723
18724 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18725 <version == 20>: Refuse to load.
18726
18727 2008-02-01 Dave Love <fx@gnu.org>
18728
18729 * fns.c: Move coding.h.
18730 (Qcodeset, Qdays, Qmonths): New.
18731 (concat): Use CHARACTERP instead of INTEGERP.
18732 (Flocale_codeset): Delete.
18733 (Flanginfo): New function.
18734 (syms_of_fns): Change accordingly.
18735
18736 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18737
18738 2008-02-01 Dave Love <fx@gnu.org>
18739
18740 * casetab.c (init_casetab_once, init_casetab_once): Fix
18741 CHAR_TABLE_SET call.
18742
18743 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18744
18745 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18746
18747 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18748 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18749 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18750
18751 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18752
18753 * coding.c (ENCODE_DESIGNATION, decode_eol)
18754 (make_conversion_work_buffer, code_conversion_restore)
18755 (Fdefine_coding_system_internal): Convert Lisp types.
18756 (code_conversion_restore): Use EQ, not ==.
18757 (Fencode_coding_string): Fix code_convert_string call.
18758
18759 * coding.h (code_convert_region): Fix prototype.
18760
18761 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18762
18763 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18764 (Ffontset_info): Convert Lisp types.
18765
18766 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18767
18768 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18769
18770 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18771
18772 * chartab.c: Include "...h", not <...h> in some cases.
18773
18774 * callproc.c (Fcall_process): Remove unused variables.
18775
18776 2008-02-01 Dave Love <fx@gnu.org>
18777
18778 * coding.c (Fset_coding_system_priority): Allow null arg list.
18779
18780 2008-02-01 Dave Love <fx@gnu.org>
18781
18782 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18783 (Fself_insert_and_exit): Use CHARACTERP.
18784
18785 * callproc.c (Fcall_process): Remove unused vars.
18786
18787 * xterm.c (XTread_socket): Add extra dead keysyms.
18788
18789 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18790
18791 * dispextern.h: Remove prototypes for redraw_frame,
18792 redraw_garbaged_frames.
18793
18794 * cmds.c (Fself_insert_command): Use CHARACTERP.
18795
18796 * chartab.c (make_sub_char_table): Remove unused var.
18797 (Fset_char_table_default, Fmap_char_table): Doc fix.
18798
18799 * keymap.c (access_keymap): Remove generic char code.
18800 (push_key_description): Use CHARACTERP.
18801
18802 2008-02-01 Dave Love <fx@gnu.org>
18803
18804 * charset.c: Doc fixes.
18805 (Funify_charset): Extra checking.
18806
18807 2008-02-01 Dave Love <fx@gnu.org>
18808
18809 * lread.c: Remove some unused variables.
18810 (safe_to_load_p): If safe, return the magic number version byte.
18811 (Fload): Maybe use load-with-code-conversion.
18812
18813 2008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * category.c (Fmodify_category_entry): Don't modify the contents
18816 of category_set for characters out of the range. Avoid
18817 unnecessary modification.
18818
18819 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18820 Vchar_unify_table. The default value of the table is now nil.
18821
18822 * character.c (syms_of_character): Setup Vchar_width_table for
18823 eight-bit-control and raw-byte chars.
18824
18825 * charset.h (enum define_charset_arg_index): Delete
18826 charset_arg_parents and add charset_arg_subset and
18827 charset_arg_superset.
18828 (enum charset_attr_index): Delete charset_parents and add
18829 charset_subset and charset_superset.
18830 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18831 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18832 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18833 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18834 (CHARSET_SUPERSET): New macros.
18835 (charset_work): Extern it.
18836 (ENCODE_CHAR): Use charset_work.
18837 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18838 (map_charset_chars): Extern it.
18839
18840 * charset.c (load_charset_map): Set the default value of encoder
18841 and deunifier char-tables to nil.
18842 (map_charset_chars): Change argument. Change callers. Use
18843 map_char_table_for_charset instead of map_char_table.
18844 (Fmap_charset_chars): New optional args from_code and to_code.
18845 (Fdefine_charset_internal): Adjust for the change of
18846 `define-charset' (:parents -> :subset or :superset).
18847 (charset_work): New variable.
18848 (encode_char, syms_of_charset): Adjust for the change of
18849 Fdefine_charset_internal.
18850 (Ffind_charset_string): Setup the vector `charsets' correctly.
18851
18852 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18853 the previous change.
18854 (char_table_ref_and_range): Adjust for the above change.
18855 (map_sub_char_table_for_charset): New function.
18856 (map_char_table_for_charset): New function.
18857
18858 * keymap.c (describe_vector): Handle a char-table directly here.
18859 (describe_char_table): Delete.
18860
18861 * lisp.h (map_charset_chars): Delete.
18862
18863 2008-02-01 Dave Love <fx@gnu.org>
18864
18865 * fns.c (count_combining): Comment out (unused).
18866 (Flocale_codeset): New.
18867 (syms_of_fns): Defsubr it.
18868
18869 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18870 (size_t): Remove.
18871
18872 2008-02-01 Dave Love <fx@gnu.org>
18873
18874 * Makefile.in (chartab.o): Depend on charset.h.
18875
18876 2008-02-01 Kenichi Handa <handa@m17n.org>
18877
18878 * character.c (syms_of_character): Set the default value of
18879 Vprintable_chars to Qnil.
18880
18881 2008-02-01 Dave Love <fx@gnu.org>
18882
18883 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18884
18885 2008-02-01 Kenichi Handa <handa@m17n.org>
18886
18887 * charset.c (load_charset_map): Handle the case that from < to
18888 correctly.
18889
18890 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18891 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18892 Pay attention to raw-8-bit chars.
18893
18894 2008-02-01 Kenichi Handa <handa@m17n.org>
18895
18896 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18897 It is not bytecompiled now.
18898
18899 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18900 (charset_jisx0208): New variables.
18901 (Fdefine_charset_internal): Setup them if appropriate.
18902 (init_charset_once): Initialize them to -1.
18903
18904 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18905 (charset_jisx0208): Extern them.
18906
18907 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18908 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18909 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18910 (setup_iso_safe_charsets): Fix arguments to Fassq.
18911 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18912 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18913 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18914 (encode_coding_iso_2022): Change the 1st arg to
18915 ENCODE_ISO_CHARACTER to a variable.
18916
18917 2008-02-01 Kenichi Handa <handa@m17n.org>
18918
18919 * charset.h (enum define_charset_arg_index): New enums
18920 charset_arg_min_code and charset_arg_max_code.
18921 (struct charset): New member char_index_offset.
18922
18923 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18924 Take charset->char_index_offset into account.
18925 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18926 args[charset_arg_max_code]. Setup charset.char_index_offset.
18927 (syms_of_charset): Fix args to Fdefine_charset_internal.
18928
18929 2008-02-01 Dave Love <fx@gnu.org>
18930
18931 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18932
18933 2008-02-01 Dave Love <fx@gnu.org>
18934
18935 * coding.c: Doc fixes.
18936 (Fcoding_system_aliases): Fix return value.
18937 (Qmac): Remove (duplicated) definition.
18938
18939 2008-02-01 Dave Love <fx@gnu.org>
18940
18941 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18942 New functions.
18943
18944 * character.c (Fstring): Doc fix.
18945
18946 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18947
18948 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
18949 (font-encoding-alist): Doc fix.
18950
18951 2008-02-01 Dave Love <fx@gnu.org>
18952
18953 * term.c (costs_set): Declare static, non-initialized for pcc.
18954 (encode_terminal_code): Remove unused var.
18955
18956 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18957 for K&R.
18958
18959 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18960
18961 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18962 (suffixes): Move out of make_subsidiaries for K&R.
18963
18964 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18965
18966 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18967
18968 2008-02-01 Dave Love <fx@gnu.org>
18969
18970 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18971
18972 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18973
18974 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18975
18976 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18977
18978 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18979
18980 2008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18983 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18984
18985 2008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * coding.c (decode_coding_charset): Adjust for the change of
18988 Fdefine_coding_system_internal.
18989 (Fdefine_coding_system_internal): For a coding system of
18990 `charset' type, store a list of charset IDs in
18991 `charset_attr_charset_valids' element of coding attributes.
18992
18993 2008-02-01 Kenichi Handa <handa@m17n.org>
18994
18995 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18996 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18997 caller. Handle 2-byte and 3-byte charsets correctly.
18998 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18999 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19000 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19001 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19002 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19003 sequence.
19004 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19005 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19006 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19007 and alt&rule composition.
19008 (decode_coding_iso_2022): Handle composition correctly.
19009 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19010
19011 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19012 re-defining a charset. If the charset has :emacs-mule-id, setup
19013 emacs_mule_bytes.
19014 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19015
19016 2008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19019 (encode_coding_big5, encode_coding_charset): If coding requires safe
19020 encoding, produce a character specified by
19021 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19022
19023 2008-02-01 Dave Love <fx@gnu.org>
19024
19025 * xterm.c (XSetIMValues): Declare.
19026
19027 * process.c: Conditionally include sys/wait.h, pty.h.
19028
19029 * print.c (print_object): Fix print format for 64-bit systems.
19030
19031 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19032
19033 * buffer.c (emacs_strerror): Declare.
19034
19035 * fontset.c (Fclear_face_cache): Declare.
19036 (accumulate_font_info): Comment-out (unused).
19037 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19038 variables.
19039
19040 * character.h (string_escape_byte8): Declare.
19041
19042 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19043 unused vars.
19044 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19045 (Fmap_charset_chars): Doc fix.
19046
19047 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19048 (Fset_coding_system_priority, Fset_coding_system_priority)
19049 (Fdefine_coding_system_internal): Doc fix.
19050
19051 2008-02-01 Dave Love <fx@gnu.org>
19052
19053 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19054
19055 2008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * character.c (string_escape_byte8): Make multibyte string with
19058 correct size.
19059
19060 * charset.c (Fmake_char): Delete unnecessary code.
19061
19062 2008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * xfns.c (x_encode_text): Allocate coding.destination here, and
19065 call encode_coding_object with dst_object Qnil.
19066
19067 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19068 multibyte form correctly.
19069
19070 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19071 against Vfont_encoding_alist.
19072
19073 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19074 handling of charset list.
19075 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19076 (decode_coding_object): Move point to coding->dst_pos before
19077 calling post-read-conversion function.
19078 (encode_coding_object): Give correct arguments to
19079 pre-write-conversion. Ignore the return value of
19080 pre-write-conversion function. Pay attention to the case that
19081 pre-write-conversion changes the current buffer. If dst_object is
19082 Qt, even if coding->src_bytes is zero, allocate at least one byte
19083 to coding->destination.
19084
19085 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19086
19087 * charset.c (Fmake_char): Make it more backward compatible.
19088 (Fmap_charset_chars): Fix docstring.
19089
19090 2008-02-01 Dave Love <fx@gnu.org>
19091
19092 * coding.c: Doc fixes.
19093 (Fdefine_coding_system_alias): Use names, not symbols, in
19094 coding-system-alist.
19095
19096 2008-02-01 Kenichi Handa <handa@m17n.org>
19097
19098 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19099 of calling free_realized_face.
19100
19101 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19102
19103 * charset.c (read_hex): Don't treat SPC as a comment starter.
19104 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19105 (Fdecode_char): Fix typo.
19106
19107 2008-02-01 Kenichi Handa <handa@m17n.org>
19108
19109 * charset.h (struct charset): New member `code_space_mask'.
19110
19111 * coding.c (coding_set_source): Delete the local variable beg_byte.
19112 (encode_coding_charset, Fdefine_coding_system_internal):
19113 Delete the local variable charset.
19114 (Fdefine_coding_system_internal): Setup
19115 attrs[coding_attr_charset_valids] correctly.
19116
19117 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19118 member to check if CODE is valid or not.
19119 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19120 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19121 is within the range of charset->min_code and carset->max_code.
19122
19123 2008-02-01 Dave Love <fx@gnu.org>
19124
19125 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19126
19127 * dispextern.h (generate_ascii_font): Fix return type.
19128
19129 * xfaces.c (generate_ascii_font): Fix arg declaration.
19130
19131 * coding.c (coding_inherit_eol_type)
19132 (Fset_terminal_coding_system_internal)
19133 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19134
19135 2008-02-01 Kenichi Handa <handa@m17n.org>
19136
19137 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19138 multiple charsets correctly.
19139
19140 2008-02-01 Kenichi Handa <handa@m17n.org>
19141
19142 * search.c (boyer_moore): Fix handling of multibyte character
19143 translation.
19144
19145 * xdisp.c (display_mode_element): When the variable `elt' is
19146 changed, update `this' and `lisp_string'.
19147
19148 2008-02-01 Kenichi Handa <handa@m17n.org>
19149
19150 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19151
19152 * callproc.c (Fcall_process): Be sure to give the current buffer
19153 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19154
19155 * charset.c (struct charset_map_entries): New struct.
19156 (load_charset_map): Rename from parse_charset_map. New args
19157 entries and n_entries. Change caller.
19158 (load_charset_map_from_file): Rename from load_charset_map.
19159 Change caller. New arg control_flag. Call load_charset_map at
19160 the tail.
19161 (load_charset_map_from_vector): New function.
19162 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19163 (encode_char): If the charset is compact, change a character index
19164 to a code point.
19165
19166 * coding.c (coding_alloc_by_making_gap): Check the case that the
19167 source and destination are the same correctly.
19168 (decode_coding_raw_text): Set coding->consumed_char and
19169 coding->consumed to 0.
19170 (produce_chars): If coding->chars_at_source is nonzero, update
19171 coding->consumed_char and coding->consumed before calling
19172 alloc_destination.
19173 (Fdefine_coding_system_alias): Register ALIAS in
19174 Vcoding_system_alist.
19175 (syms_of_coding): Define `no-conversion' coding system at the tail.
19176
19177 * fileio.c (Finsert_file_contents): Set coding_system instead of
19178 val. If the current buffer is multibyte, always call
19179 decode_coding_gap.
19180
19181 * xfaces.c (try_font_list): Give higher priority to fontset's
19182 family than face's family.
19183
19184 2008-02-01 Kenichi Handa <handa@m17n.org>
19185
19186 * callproc.c (Fcall_process): Be sure to give the current buffer
19187 to decode_coding_c_string.
19188
19189 * xfaces.c (try_font_list): Give a family specified in a fontset
19190 higher priority than a family specified in a face.
19191
19192 2008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19195 Fix arguments to insert_from_buffer.
19196
19197 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19198
19199 2008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19202 (decode_coding_gap): Set coding->dst_multibyte correctly.
19203
19204 2008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19207 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19208 (encode_coding_utf_16): Substitute coding->default_char for
19209 non-Unicode characters.
19210 (decode_coding): Don't call record_insert here.
19211 (setup_coding_system): Initialize `surrogate' of
19212 coding->spec.utf_16 to 0.
19213 (EMIT_ONE_BYTE): Fix for multibyte case.
19214
19215 * insdel.c (insert_from_gap): Call record_insert.
19216
19217 2008-02-01 Kenichi Handa <handa@m17n.org>
19218
19219 * casefiddle.c (casify_region): Fix multibyte case.
19220
19221 * character.c (c_string_width): Add return type `int'.
19222 (char_string_with_unification): Delete arg ADVANCED.
19223
19224 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19225 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19226 (CHAR_STRING_ADVANCE): Make it do-while statement.
19227
19228 * chartab.c (sub_char_table_set_range): Optimize for the case
19229 DEPTH == 3. Add workaround code for a GCC optimization bug.
19230
19231 * charset.c (parse_charset_map): Remove an unused variable.
19232
19233 * coding.c: Delete unused variables.
19234
19235 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19236 earlier. If inserted is zero and the coding system doesn't
19237 require flushing, don't call decode_coding_gap.
19238
19239 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19240
19241 2008-02-01 Kenichi Handa <handa@m17n.org>
19242
19243 The following changes are for using Unicode as an internal
19244 character model, and use UTF-8 format for buffer/string
19245 representation.
19246
19247 * .gdbinit (xchartable): Adjust for the change of char table structure.
19248 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19249
19250 * Makefile.in (obj): Add character.o and chartab.o.
19251 (lisp, shortlisp): Remove utf-8.elc.
19252 (*.o): For many files, change dependency on charset.h to
19253 character.h, and add dependency on character.h.
19254 (character.o, chartab.o): New targets.
19255
19256 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19257 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19258 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19259 of "charset.h".
19260
19261 * dired.c, filelock.c: Include "character.h".
19262
19263 * alloc.c: Include "character.h" instead of "charset.h".
19264 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19265 (syms_of_alloc): Remove defsubr for Smake_char_table.
19266
19267 * buffer.c: Include "character.h" instead of "charset.h", don't
19268 include "coding.h".
19269 (Fset_buffer_multibyte): Adjust for UTF-8.
19270
19271 * buffer.h: EXFUN Fbuffer_live_p.
19272
19273 * callproc.c: Include "character.h" instead of "charset.h".
19274 (Fcall_process): Big change for the new code-conversion APIs.
19275
19276 * casetab.c: Include "character.h" instead of "charset.h".
19277 (set_canon, set_identity, shuffle): Adjust for the new
19278 map_char_table spec.
19279 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19280 accessing the char table structure.
19281
19282 * chartab.c: New file that implements char table.
19283
19284 * category.c: Include "character.h".
19285 (copy_category_entry): New function.
19286 (copy_category_table): Call map_char_table and copy_category_entry.
19287 (Fmake_category_table): Initialize all top-level slots.
19288 (char_category_set): New function.
19289 (modify_lower_category_set): Delete.
19290 (Fmodify_category_entry): Call char_table_ref_and_range.
19291
19292 * category.h (CATEGORY_SET): Just call char_category_set.
19293
19294 * ccl.c: Include "character.h".
19295 (Qccl, Qcclp): New variables.
19296 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19297 it's less than 256.
19298 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19299 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19300 and DST type.
19301 (ccl_driver): Change types of argument, adjust code accordingly.
19302 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19303 ccl_driver.
19304 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19305
19306 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19307 New members src_multibyte, dst_multibyte, consumed, and produced.
19308 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19309 (CODING_SPEC_CCL_PROGRAM): New macro.
19310 (ccl_driver): Update prototype.
19311 (Qccl, Qcclp, Fccl_program_p): Extern them.
19312 (CHECK_CCL_PROGRAM): New macro.
19313
19314 * character.c, character.h, chartab.c: New files.
19315
19316 * charset.c: Mostly re-written. Move character and multibyte sequence
19317 handling codes to character.c.
19318
19319 * charset.h: Mostly re-written. Move character and multibyte sequence
19320 handling codes to character.h.
19321
19322 * coding.c, coding.h: Mostly re-written.
19323
19324 * composite.c: Include "character.h" instead of "charset.h".
19325 (CHAR_WIDTH): Move to character.h.
19326 (HASH_KEY, HASH_VALUE): Delete.
19327
19328 * composite.h (enum composition_method): Change order of enumeration
19329 symbols.
19330
19331 * data.c: Include "character.h" instead of "charset.h".
19332 (Faref): Call CHAR_TABLE_REF for a char table.
19333 (Faset): Call CHAR_TABLE_SET for a char table.
19334
19335 * dispextern.h (free_realized_face, check_face_attribytes)
19336 (generate_ascii_font): Extern them.
19337 (free_realized_multibyte_face): Delete extern.
19338
19339 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19340 table structure.
19341
19342 * editfns.c: Include "character.h" instead of "charset.h".
19343 (Fchar_to_string): Always call CHAR_STRING.
19344
19345 * emacs.c (main): Call init_charset_once, init_charset,
19346 syms_of_chartab, and syms_of_character.
19347
19348 * fileio.c: Include "character.h" instead of "charset.h".
19349 (Finsert_file_contents): Big change for the new code-conversion API.
19350 (choose_write_coding_system, Fwrite_region): Likewise.
19351 (build_annotations_2): Delete.
19352 (e_write): Big change for the new code-conversion API.
19353
19354 * fns.c: Include "character.h" instead of "charset.h".
19355 (copy_sub_char_table): Move to chartab.c.
19356 (Fcopy_sequence): Call copy_char_table for a char table.
19357 (concat): Delete codes calling count_multibyte.
19358 (string_char_to_byte, string_byte_to_char): Adjust for the new
19359 multibyte form.
19360 (internal_equal): Adjust for the change of char table structure.
19361 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19362 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19363 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19364 (char_table_translate, optimize_sub_char_table)
19365 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19366 chartab.c.
19367 (char_table_ref_and_index): Delete.
19368 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19369 (Fmd5): Call preferred_coding_system instead of accessing
19370 Vcoding_category_list. Adjust for the new code-conversion API.
19371 (syms_of_fns): Move defsubr for char table related functions to
19372 chartab.c.
19373
19374 * fontset.c: Mostly re-written.
19375
19376 * fontset.h (struct font_info): Change type of the member encoding_type.
19377 (enum FONT_SPEC_INDEX): New enum.
19378 (fontset_font_pattern, fs_load_font): Update prototype.
19379 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19380
19381 * indent.c: Include "character.h" instead of "charset.h".
19382 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19383
19384 * insdel.c: Include "character.h" instead of "charset.h".
19385 (copy_text): Don't refer to Vnonascii_translation_table.
19386 (insert_from_gap): New function.
19387
19388 * keyboard.c: Include "character.h" instead of "charset.h".
19389 (command_loop_1): Never call direct_output_forward_char before
19390 a non-ASCII character.
19391 (read_char): If Vkeyboard_translate_table is a char table, always
19392 translate a character.
19393
19394 * keymap.c: Include "character.h".
19395 (store_in_keymap): Handle the case that IDX is a cons.
19396 (Fdefine_key): Handle the case that KEY is a cons and the car part
19397 is also a cons (range).
19398 (push_key_description): Adjust for the new character code.
19399 (describe_vector): Call describe_char_table for a char table.
19400 (describe_char_table): New function.
19401
19402 * keymap.h (describe_char_table): Extern it.
19403
19404 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19405 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19406 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19407 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19408 Delete.
19409 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19410 structure.
19411 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19412 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19413 (CHARTAB_SIZE_BITS_3): New macros.
19414 (chartab_size): Extern it.
19415 (struct Lisp_Char_Table): Re-design.
19416 (struct Lisp_Sub_Char_Table): New structure.
19417 (HASH_KEY, HASH_VALUE): Move from fns.c.
19418 (CHARACTERBITS): Define as 22.
19419 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19420 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19421 (GC_SUB_CHAR_TABLE_P): New macro.
19422 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19423 (code_convert_string_norecord): Deleted extern.
19424 (init_character_once, syms_of_character, init_charset)
19425 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19426
19427 * lread.c: Include "character.h".
19428 (read_multibyte): New arg NBYTES.
19429 (read_escape): Change the meaning of returned *BYTEREP.
19430 (to_multibyte): Delete.
19431 (read1): Adjust the handling of char table and string.
19432
19433 * print.c: Include "character.h" instead of "charset.h".
19434 (print_string): Convert 8-bit raw bytes to octal form by
19435 string_escape_byte8.
19436 (print_object): Adjust for the new multibyte form. Print 8-bit
19437 raw bytes always in octal form. Handle sub char table correctly.
19438
19439 * process.c: Include "character.h" instead of "charset.h".
19440 (read_process_output, send_process): Adjust for the new
19441 code-conversion API.
19442
19443 * puresize.h (BASE_PURESIZE): Increase.
19444
19445 * regex.c: Include "character.h" instead of "charset.h".
19446 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19447 (regex_compile): Accept a range whose starting and ending
19448 character have different leading bytes.
19449 (analyse_first): Adjust for the above change.
19450
19451 * search.c: Include "character.h" instead of "charset.h".
19452 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19453 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19454
19455 * syntax.c: Include "character.h" instead of "charset.h".
19456 (syntax_parent_lookup): Delete.
19457 (Fmodify_syntax_entry): Accept a cons as CHAR.
19458 (skip_chars): Adjust for the new multibyte form.
19459 (init_syntax_once): Call char_table_set_range instead of directly
19460 accessing the structure of a char table.
19461
19462 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19463 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19464 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19465 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19466
19467 * term.c: Include "buffer.h" and "character.h".
19468 (encode_terminal_code, write_glyphs): Adjust for the new
19469 code-conversion API.
19470 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19471
19472 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19473
19474 * xdisp.c: Include "character.h".
19475 (get_next_display_element): Adjust for the new multibyte form.
19476 (disp_char_vector): Adjust for the new char table structure.
19477 (decode_mode_spec_coding): Adjust for the new structure of
19478 coding system.
19479 (decode_mode_spec): Adjust for the new code-conversion API.
19480
19481 * xfaces.c: Include "character.h" instead of "charset.h".
19482 (load_face_font): Adjust for the change of choose_face_font and
19483 FS_LOAD_FONT.
19484 (generate_ascii_font): New function.
19485 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19486 (set_font_frame_param): Adjust for the change of choose_face_font.
19487 (free_realized_face): Make it public.
19488 (free_realized_faces_for_fontset): Rename from
19489 free_realized_multibyte_face. Free also faces realized for ASCII.
19490 (choose_face_font): Change arguments. Adjust for the change of
19491 fontset_font_pattern and FS_LOAD_FONT.
19492
19493 * xfns.c: Include "character.h".
19494 (x_encode_text): Adjust for the new code-conversion API.
19495
19496 * xselect.c: Don't include "charset.h".
19497 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19498
19499 * xterm.c: Include "character.h".
19500 (x_encode_char): New argument CHARSET. Change caller.
19501 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19502 Call ENCODE_CHAR instead of SPLIT_CHAR.
19503 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19504 CHAR_WIDTH instead of CHARSET_WIDTH.
19505 (XTread_socket): Adjust for the new code-conversion API.
19506 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19507 (x_load_font): Adjust for the change of struct font.
19508
19509 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19510
19511 * xfaces.c (face_at_buffer_position): Remove unused vars.
19512
19513 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19514
19515 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19516 Fix overflow checking.
19517
19518 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19519
19520 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19521 Cancel previous change.
19522
19523 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19524
19525 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19526 ccl->eight_bit_control. Fix check for buffer overflow.
19527 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19528 (ccl_driver): Initialize extra_bytes to 0.
19529
19530 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19531
19532 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19533 return it ORed with ctrl_modifier.
19534
19535 2008-01-29 Miles Bader <miles@gnu.org>
19536
19537 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19538
19539 2008-01-28 Jason Rumney <jasonr@gnu.org>
19540
19541 * w32.c (stat): Don't double check for networked drive.
19542
19543 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19544
19545 * window.c (run_window_configuration_change_hook): New function.
19546 Code extracted from set_window_buffer. Set the selected frame.
19547 (set_window_buffer): Use it.
19548 * window.h (run_window_configuration_change_hook): Declare.
19549 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19550
19551 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19552
19553 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19554
19555 * Makefile.in: Remove references to unused macros.
19556
19557 2008-01-26 Eli Zaretskii <eliz@gnu.org>
19558
19559 * w32.c (g_b_init_get_sid_sub_authority)
19560 (g_b_init_get_sid_sub_authority_count): New static variables.
19561 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19562 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19563 (init_user_info): Use them to retrieve uid and gid.
19564 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19565 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19566 st_uid and st_gid of the file.
19567
19568 2008-01-26 Jason Rumney <jasonr@gnu.org>
19569
19570 * w32.c (logon_network_drive): New function.
19571 (stat): Use it.
19572
19573 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
19574
19575 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19576 invisible text covered with an ellipsis.
19577
19578 2008-01-25 Richard Stallman <rms@gnu.org>
19579
19580 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19581 jump back to beginning. Move some other initializations after that.
19582 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19583 New variables.
19584 (syms_of_xdisp): Init them.
19585
19586 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19587
19588 * buffer.c (reset_buffer_local_variables):
19589 Implement `permanent-local-hook'.
19590 (Qpermanent_local_hook): New variable.
19591 (syms_of_buffer): Init and staticpro it.
19592
19593 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
19594
19595 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19596
19597 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19598
19599 * fns.c (Fclrhash): Return TABLE.
19600
19601 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19602
19603 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19604 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19605 is set even without positional changes.
19606 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19607
19608 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19609
19610 2008-01-23 Jason Rumney <jasonr@gnu.org>
19611
19612 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19613
19614 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19615 the unicode range available in MULE by locale-coding-system.
19616 Improve dbcs lead byte detection. Set event timestamp and modifiers
19617 earlier.
19618
19619 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19620
19621 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19622 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19623 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19624 when used on child processes.
19625
19626 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
19627
19628 * dbusbind.c (Fdbus_method_return_internal): Rename from
19629 Fdbus_method_return.
19630 (Fdbus_unregister_object): Move to dbus.el.
19631 (Fdbus_call_method, Fdbus_method_return_internal)
19632 (Fdbus_send_signal): Improve debug messages.
19633
19634 2008-01-20 Martin Rudalics <rudalics@gmx.at>
19635
19636 * undo.c (undo_inhibit_record_point): New variable.
19637 (syms_of_undo): Initialize it.
19638 (record_point): Don't record point when undo_inhibit_record_point
19639 is set.
19640
19641 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19642
19643 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19644
19645 * xdisp.c (Qauto_hscroll_mode): New var.
19646 (syms_of_xdisp): Initialize it.
19647 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19648 window's buffer.
19649 (hscroll_windows): Don't check automatic_hscrolling_p here.
19650
19651 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19652 vscroll if we're setting window-buffer to the value it already has.
19653
19654 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19655
19656 * m/intel386.h: Remove references to XENIX.
19657
19658 2008-01-17 Andreas Schwab <schwab@suse.de>
19659
19660 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19661 instead of HAVE_X86_64_LIB64_DIR.
19662 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19663
19664 2008-01-17 Glenn Morris <rgm@gnu.org>
19665
19666 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19667 to HAVE_X86_64_LIB64_DIR.
19668
19669 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19670
19671 * s/irix3-3.h:
19672 * s/irix4-0.h:
19673 * s/386-ix.h:
19674 * s/domain.h:
19675 * s/hpux9-x11r4.h:
19676 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19677
19678 * sysdep.c: Remove code containing references to symbols defined
19679 by unsupported systems.
19680
19681 2008-01-16 Glenn Morris <rgm@gnu.org>
19682
19683 * coding.c (select-safe-coding-system-function): Doc fix.
19684
19685 2008-01-15 Glenn Morris <rgm@gnu.org>
19686
19687 * config.in: Revert 2008-01-13 change: this is a generated file.
19688
19689 2008-01-13 Tom Tromey <tromey@redhat.com>
19690
19691 * lisp.h: Fix typo.
19692
19693 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19694
19695 * m/sequent-ptx.h:
19696 * m/sequent.h:
19697 * s/ptx.h:
19698 * s/ptx4-2.h:
19699 * s/ptx4.h: Remove files for systems no longer supported.
19700
19701 * callproc.c (Fcall_process): Fix previous change.
19702
19703 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19704
19705 * unexsunos4.c: Remove file, system not supported anymore.
19706
19707 * m/mips.h:
19708 * m/intel386.h:
19709 * callproc.c:
19710 * config.in:
19711 * ecrt0.c:
19712 * emacs.c:
19713 * fileio.c:
19714 * frame.c:
19715 * getpagesize.h:
19716 * keyboard.c:
19717 * lread.c:
19718 * process.c:
19719 * puresize.h:
19720 * sysdep.c:
19721 * systty.h:
19722 * syswait.h:
19723 * unexec.c:
19724 * xdisp.c:
19725 * alloc.c: Remove code containing references to symbols defined by
19726 unsupported systems.
19727
19728 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19729
19730 * coding.c (detect_coding_mask): Fix previous change.
19731
19732 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19733
19734 * coding.c (detect_coding_iso2022): New arg
19735 latin_extra_code_state. Allow Latin extra codes only
19736 when *latin_extra_code_state is nonzero.
19737 (detect_coding_mask): If there is a NULL byte, detect the encoding
19738 as UTF-16 or binary. If Latin extra codes exist, detect the
19739 encoding as ISO-2022 only when there's no other proper encoding is
19740 found.
19741
19742 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19743
19744 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19745 #ifdef MAC_OS.
19746
19747 2008-01-08 Richard Stallman <rms@gnu.org>
19748
19749 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19750
19751 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
19752
19753 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19754 menu bar in parentheses.
19755
19756 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19757
19758 * m/7300.h:
19759 * m/acorn.h:
19760 * m/alliant-2800.h:
19761 * m/alliant.h:
19762 * m/alliant1.h:
19763 * m/alliant4.h:
19764 * m/altos.h:
19765 * m/amdahl.h:
19766 * m/apollo.h:
19767 * m/att3b.h:
19768 * m/aviion-intel.h:
19769 * m/aviion.h:
19770 * m/celerity.h:
19771 * m/clipper.h:
19772 * m/cnvrgnt.h:
19773 * m/convex.h:
19774 * m/cydra5.h:
19775 * m/delta88k.h:
19776 * m/dpx2.h:
19777 * m/dual.h:
19778 * m/elxsi.h:
19779 * m/f301.h:
19780 * m/gould-np1.h:
19781 * m/gould.h:
19782 * m/i860.h:
19783 * m/ibmps2-aix.h:
19784 * m/ibmrt-aix.h:
19785 * m/ibmrt.h:
19786 * m/irist.h:
19787 * m/is386.h:
19788 * m/isi-ov.h:
19789 * m/mega68.h:
19790 * m/mg1.h:
19791 * m/news-r6.h:
19792 * m/news-risc.h:
19793 * m/news.h:
19794 * m/nh3000.h:
19795 * m/nh4000.h:
19796 * m/ns16000.h:
19797 * m/ns32000.h:
19798 * m/nu.h:
19799 * m/orion.h:
19800 * m/orion105.h:
19801 * m/paragon.h:
19802 * m/pfa50.h:
19803 * m/plexus.h:
19804 * m/pyramid.h:
19805 * m/pyrmips.h:
19806 * m/sh3el.h:
19807 * m/sps7.h:
19808 * m/sr2k.h:
19809 * m/stride.h:
19810 * m/sun1.h:
19811 * m/sun2.h:
19812 * m/sun3-68881.h:
19813 * m/sun3-fpa.h:
19814 * m/sun3-soft.h:
19815 * m/sun3.h:
19816 * m/sun386.h:
19817 * m/symmetry.h:
19818 * m/tad68k.h:
19819 * m/tahoe.h:
19820 * m/targon31.h:
19821 * m/tek4300.h:
19822 * m/tekxd88.h:
19823 * m/tower32.h:
19824 * m/tower32v3.h:
19825 * m/ustation.h:
19826 * m/wicat.h:
19827 * m/xps100.h:
19828 * s/cxux.h:
19829 * s/cxux7.h:
19830 * s/dgux.h:
19831 * s/dgux4.h:
19832 * s/dgux5-4-3.h:
19833 * s/dgux5-4r2.h:
19834 * s/esix.h:
19835 * s/esix5r4.h:
19836 * s/hiuxmpp.h:
19837 * s/hiuxwe2.h:
19838 * s/iris3-5.h:
19839 * s/iris3-6.h:
19840 * s/isc2-2.h:
19841 * s/isc3-0.h:
19842 * s/isc4-0.h:
19843 * s/isc4-1.h:
19844 * s/newsos5.h:
19845 * s/newsos6.h:
19846 * s/osf1.h:
19847 * s/osf5-0.h:
19848 * s/riscix1-1.h:
19849 * s/riscix12.h:
19850 * s/sco4.h:
19851 * s/sco5.h:
19852 * s/sunos4-0.h:
19853 * s/sunos4-1.h:
19854 * s/sunos413.h:
19855 * s/sunos4shr.h:
19856 * s/umax.h:
19857 * s/unipl5-2.h:
19858 * s/xenix.h:
19859 * cxux-crt0.s:
19860 * unexapollo.c:
19861 * unexconvex.c:
19862 * unexenix.c:
19863 * unexsni.c: Remove files for systems no longer supported.
19864
19865 * m/intel386.h: Remove references to unsupported systems.
19866
19867 * w32.c (get_emacs_configuration): Remove reference to i860.
19868
19869 * sysdep.c: Remove dead code.
19870
19871 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19872
19873 * s/rtu.h:
19874 * m/masscomp.h: Remove files. Platform is obsolete.
19875
19876 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
19877
19878 * dbusbind.c (Fdbus_method_return): New function.
19879 (xd_read_message): Add the serial number to the event.
19880 (Fdbus_register_method): Activate the function.
19881
19882 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19883
19884 * keyboard.c (read_key_sequence): Fix typo.
19885
19886 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
19887
19888 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19889 (xd_signature, xd_append_arg): Handle element type detection for
19890 empty arrays.
19891 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19892 SDATA () calls; this must be solved more general.
19893 (Fdbus_register_signal): Use SBYTES instead of strlen.
19894
19895 2008-01-03 Magnus Henoch <magnus@zemdatav>
19896
19897 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19898 unsigned int for byte values (necessary for big-endian platform).
19899 (Fdbus_call_method): Handle the case of no returned arguments.
19900
19901 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19902
19903 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19904
19905 2007-12-31 Magnus Henoch <mange@freemail.hu>
19906
19907 * dbusbind.c (xd_signature): Signature of variant is just "v".
19908
19909 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
19910
19911 * dbusbind.c: Fix several errors and compiler warnings.
19912 Reported by Tom Tromey <tromey@redhat.com>.
19913 (XD_ERROR, XD_DEBUG_MESSAGE)
19914 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19915 (xd_append_arg): Part for basic D-Bus types rewritten.
19916 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19917 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19918 appropriate.
19919 (xd_read_message): Return Qnil. Don't signal an error; it is not
19920 useful during event reading.
19921 (Fdbus_register_signal): Signal an error if the check for
19922 FUNCTIONP fails.
19923 (Fdbus_register_method): New function. The implementation is not
19924 complete, the call of the function signals an error therefore.
19925 (Fdbus_unregister_object): New function, renamed from
19926 Fdbus_unregister_signal. The initial check signals an error, if
19927 the object is not well formed.
19928
19929 2007-12-30 Richard Stallman <rms@gnu.org>
19930
19931 * textprop.c (get_char_property_and_overlay):
19932 Signal error if POSITION is out of range in a buffer.
19933
19934 2007-12-29 Martin Rudalics <rudalics@gmx.at>
19935
19936 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19937 because the original parameters are in pure storage now.
19938
19939 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19940
19941 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19942
19943 2007-12-22 Eli Zaretskii <eliz@gnu.org>
19944
19945 * callint.c (syms_of_callint) <command-history>: Add reference to
19946 history-length in the doc string.
19947
19948 2007-12-17 Jason Rumney <jasonr@gnu.org>
19949
19950 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19951 before passing as wParam.
19952
19953 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
19954
19955 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19956 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19957 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19958 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19959 as number.
19960 (Fdbus_call_method): Fix docstring.
19961
19962 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
19963
19964 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19965 New macros.
19966 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19967 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19968 Simplify.
19969 (xd_signature): New function.
19970 (xd_append_arg): Compute also signatures. Major rewrite.
19971 (xd_retrieve_arg): Make debug messages friendly.
19972 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19973 Check for signatures of arguments.
19974
19975 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
19976
19977 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19978 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19979 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19980 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19981 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19982 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19983 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19984 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19985 (xd_retrieve_value): Remove. Functionality included in ...
19986 (xd_append_arg): New function.
19987 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19988
19989 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
19990
19991 * dbusbind.c (top): Include <stdio.h>.
19992 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19993 dbus_message_new_method_call and dbus_message_new_signal.
19994 (Fdbus_register_signal): Rename unique_name to uname.
19995 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19996 non-existing unique name. Fix typos in matching rule. Return an
19997 object which is useful in Fdbus_unregister_signal.
19998 (Fdbus_unregister_signal): Reimplementation, in order to remove
19999 only the corresponding entry.
20000 (Vdbus_registered_functions_table): Change the order of entries.
20001 Apply these changes in xd_read_message and Fdbus_register_signal.
20002
20003 2007-12-16 Andreas Schwab <schwab@suse.de>
20004
20005 * fileio.c (Finsert_file_contents): Fix overflow check to not
20006 depend on undefined integer overflow.
20007
20008 2007-12-14 Jason Rumney <jasonr@gnu.org>
20009
20010 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20011 for characters above 127.
20012
20013 2007-12-13 Jason Rumney <jasonr@gnu.org>
20014
20015 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20016 before dereferencing array.
20017 (lookup_vk_code): Remove zero comparison.
20018
20019 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20020
20021 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20022 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20023 Use `unsigned int' instead of `uint'.
20024 (xd_read_message, Fdbus_register_signal): Split expressions into
20025 multiple lines before operators "&&" and "||", according to the
20026 GNU Coding Standards.
20027
20028 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20029
20030 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20031
20032 2007-12-12 Juri Linkov <juri@jurta.org>
20033
20034 * buffer.c (Frename_buffer): In interactive spec replace
20035 `read-buffer' with `read-string' that uses `buffer-name-history'
20036 as history, and the current buffer's name as default.
20037
20038 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20039
20040 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20041 manipulating the backtrace manually.
20042 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20043 (struct backtrace, backtrace_list): Remove.
20044 (command_loop_1): Remove dead var `no_direct'.
20045
20046 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20047 preserve non-built-in buffer-local variables.
20048 (Fkill_all_local_variables): Don't re-create&re-set permanent
20049 buffer-local variables.
20050
20051 2007-12-09 Juri Linkov <juri@jurta.org>
20052
20053 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20054 Lisp code that uses `read-buffer' with current buffer as default.
20055
20056 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
20057
20058 * dbusbind.c (xd_read_message): Generate an event for every
20059 registered handler. There might be several handlers registered
20060 for the same signal.
20061 (Fdbus_register_signal): Don't overwrite a registration for the
20062 same signal. Add a new registration if handlers are different.
20063 (Vdbus_registered_functions_table): Rework doc string.
20064
20065 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
20066
20067 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20068 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20069 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20070 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20071 Unify argument lists.
20072 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20073 arguments and hash table keys. Use unique name for service.
20074 (Fdbus_unregister_signal): Remove checks.
20075 (Vdbus_registered_functions_table): Fix doc string.
20076
20077 2007-12-05 Magnus Henoch <mange@freemail.hu>
20078
20079 * process.c (make_process): Initialize pty_flag to 0.
20080
20081 2007-12-05 Jason Rumney <jasonr@gnu.org>
20082
20083 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20084 specified XBMs.
20085
20086 2007-12-05 Richard Stallman <rms@gnu.org>
20087
20088 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20089
20090 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20091
20092 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20093 New variable.
20094 (mac_try_close_socket) [MAC_OSX]: New function.
20095 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20096 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20097
20098 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20099 Use mac_try_close_socket.
20100
20101 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20102
20103 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20104 reloc_base.
20105 (copy_dysymtab): Compute relocation base here.
20106 (rebase_reloc_address) [__ppc64__]: New function.
20107 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20108 changed.
20109
20110 2007-12-05 Jason Rumney <jasonr@gnu.org>
20111
20112 * w32proc.c (sys_spawnve): Quote args with wildcards.
20113
20114 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20115
20116 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20117 __objc_* sections.
20118 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20119
20120 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
20121
20122 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20123 Move check for Vdbus_registered_functions_table to
20124 xd_read_queued_messages.
20125 (xd_read_queued_messages): Protect xd_read_message calls by
20126 internal_condition_case_1.
20127
20128 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
20129
20130 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20131 Qdbus_system_bus and Qdbus_session_bus, respectively.
20132 (Vdbus_intern_symbols): Remove.
20133 (Vdbus_registered_functions_table): New hash table.
20134 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20135 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20136 Rewrite in order to manage registered functions by hash table
20137 Vdbus_registered_functions_table.
20138
20139 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20140
20141 * xterm.c: Update URL to Window Manager Specification in comment.
20142
20143 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
20144
20145 * config.in (HAVE_DBUS): Add.
20146
20147 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20148 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20149 (obj): Add $(DBUS_OBJ).
20150 (LIBES): Add $(DBUS_LIBS).
20151 (dbusbind.o): New target.
20152
20153 * dbusbind.c: New file.
20154
20155 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20156
20157 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20158 (Qdbus_event): New Lisp symbol.
20159 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20160 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20161 (keys_of_keyboard): Define dbus-event.
20162
20163 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20164
20165 2007-12-01 Richard Stallman <rms@gnu.org>
20166
20167 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20168
20169 2007-11-30 Jason Rumney <jasonr@gnu.org>
20170
20171 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20172 (w32con_reset_terminal_modes): Clear screen buffer.
20173 (w32_face_attributes): Don't use color indexes that are out of range.
20174 Only reverse the default colors.
20175
20176 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20177 WINDOWSNT.
20178
20179 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20180
20181 2007-11-29 Jason Rumney <jasonr@gnu.org>
20182
20183 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20184 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20185 if the terminal colors are initialized.
20186 (unspecified_fg, unspecified_bg): Remove unused declarations.
20187
20188 2007-11-29 Andreas Schwab <schwab@suse.de>
20189
20190 * keyboard.c (apply_modifiers): Fix typo.
20191
20192 2007-11-29 Richard Stallman <rms@gnu.org>
20193
20194 * keymap.c (Fcurrent_local_map): Doc fix.
20195
20196 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20197
20198 * s/gnu-kfreebsd.h: New file.
20199
20200 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20201
20202 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20203 Don't cast redundantly.
20204
20205 * keyboard.c (KEY_TO_CHAR): New macro.
20206 (parse_modifiers, apply_modifiers): Accept integer arguments.
20207 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20208 for chars and symbol keys.
20209 After doing such remapping, apply function-key-map again.
20210
20211 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20212
20213 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20214 compiled anymore.
20215
20216 2007-11-26 Andreas Schwab <schwab@suse.de>
20217
20218 * process.c (list_processes_1): Fix indentation level of the
20219 command column.
20220
20221 2007-11-23 Andreas Schwab <schwab@suse.de>
20222
20223 * editfns.c (Fformat): Handle %c specially since it requires the
20224 argument to be of type int.
20225
20226 2007-11-23 Markus Triska <markus.triska@gmx.at>
20227
20228 * emacs.c (main): Call init_editfns before init_process, since
20229 init_process sets Vprocess_connection_type depending on OS release.
20230
20231 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20232
20233 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20234 (find_symbol_value): Use do_symval_forwarding.
20235
20236 * data.c (set_internal): Set the value in the `cons-cell' (for
20237 Buffer_Local_values) not only for frame-local variables.
20238
20239 2007-11-22 Andreas Schwab <schwab@suse.de>
20240
20241 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20242 values to sprintf.
20243 * keymap.c (Fsingle_key_description): Likewise.
20244 * print.c (print_object): Likewise.
20245
20246 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20247
20248 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20249 file for image is nil.
20250
20251 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20252
20253 * term.c: Include stdarg.h.
20254 (fatal): Implement using varargs.
20255 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20256
20257 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20258
20259 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20260 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20261 Update call to buffer_slot_type_mismatch.
20262 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20263 (buffer_slot_type_mismatch): Update.
20264 * buffer.c (buffer_local_types): Remove.
20265 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20266 (defvar_per_buffer): Set the type in the buffer_objfwd.
20267
20268 2007-11-21 Jason Rumney <jasonr@gnu.org>
20269
20270 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20271 CreateFileMapping returns NULL on failure.
20272
20273 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20274
20275 * search.c (Fset_match_data): Remove the `evaporate' feature.
20276 (unwind_set_match_data): Don't use the `evaporate' feature.
20277
20278 2007-11-21 Jason Rumney <jasonr@gnu.org>
20279
20280 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20281
20282 * w32console.c (w32con_write_glyphs): Remove unused variables.
20283
20284 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20285
20286 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20287
20288 * s/darwin.h (MULTI_KBOARD): Remove.
20289
20290 * macfns.c (x_create_tip_frame, Fx_create_frame)
20291 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20292
20293 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20294
20295 * buffer.c (Fbuffer_local_value): Remove redundant test.
20296 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20297 than in `current-buffer' to match the comment.
20298 Do the swap using swap_in_global_binding.
20299
20300 * data.c (store_symval_forwarding, set_internal):
20301 * eval.c (specbind): Remove dead code.
20302
20303 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20304 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20305 Since we do not want to see internal Lisp_*fwd objects here.
20306
20307 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20308
20309 * sysdep.c (init_system_name): Use getaddrinfo if available.
20310
20311 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20312 (x_scroll_bar_note_movement): start, end, with, height in struct
20313 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20314
20315 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20316
20317 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20318
20319 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20320
20321 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20322 This undoes Richard's change of 14-Oct-2002.
20323
20324 * alloc.c (allocate_other_vector):
20325 * lisp.h (allocate_other_vector): Remove.
20326
20327 * window.c (struct save_window_data): Move non-lisp data to the end
20328 and make it `int' rather than Lisp_Object.
20329 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20330 Done wrap/unwrap integer values.
20331 (Fset_window_configuration, compare_window_configurations):
20332 Update use of fields to their new types.
20333
20334 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20335 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20336 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20337 (SET_SCROLL_BAR_X_WINDOW): Remove.
20338 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20339 Access the new x_window field directly.
20340 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20341 Don't wrap/unwrap integers into Lisp_Objects.
20342 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20343 (x_scroll_bar_report_motion):
20344 Don't wrap/unwrap integers into Lisp_Objects.
20345 (x_term_init): Use SDATA.
20346 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20347 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20348 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20349 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20350 * xfns.c (x_set_background_color):
20351 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20352 Access the new x_window field directly.
20353
20354 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20355 (allocate_pseudovector): Make non-static.
20356
20357 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20358 (allocate_pseudovector): Declare.
20359 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20360
20361 2007-11-15 Andreas Schwab <schwab@suse.de>
20362
20363 * editfns.c (Fformat): Correctly format EMACS_INT values.
20364 Also take precision into account when formatting an integer.
20365
20366 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20367
20368 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20371 (syms_of_keyboard): Defsubr it.
20372
20373 * data.c (swap_in_global_binding): Fix longstanding bug where
20374 store_symval_forwarding was not called with the right second argument,
20375 thus causing objfwd-ing from being dropped.
20376
20377 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
20378
20379 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20380 (Fx_display_pixel_height, Fx_display_planes)
20381 (Fx_display_color_cells, Fx_server_max_request_size)
20382 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20383 (Fx_display_visual_class, Fx_display_save_under):
20384 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20385 (Fx_display_pixel_height, Fx_display_planes)
20386 (Fx_display_color_cells, Fx_server_max_request_size)
20387 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20388 (Fx_display_mm_height, Fx_display_mm_width)
20389 (Fx_display_backing_store, Fx_display_visual_class)
20390 (Fw32_select_font, Fx_display_save_under):
20391 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20392 (Fx_display_pixel_height, Fx_display_planes)
20393 (Fx_display_color_cells, Fx_server_max_request_size)
20394 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20395 (Fx_display_save_under): Fix typos in docstrings.
20396
20397 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
20398
20399 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20400 corresponding to deleted entries; they are an implementation detail.
20401 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20402 Remove variables.
20403 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20404 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20405 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20406 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20407 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20408 (Fw32_define_rgb_color, Fw32_load_color_file)
20409 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20410 Fix typos in docstrings.
20411 (Fx_server_version): Reflow docstring.
20412 (Fw32_shell_execute): Doc fixes.
20413
20414 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
20415
20416 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20417 if w32_parse_hot_key returned nil.
20418
20419 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20420
20421 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20422
20423 2007-11-09 Jason Rumney <jasonr@gnu.org>
20424
20425 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20426
20427 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20428
20429 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20430 Remove W32_SCROLL_BAR_CLICK_EVENT.
20431
20432 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20433 Add MULTIMEDIA_KEY_EVENT.
20434
20435 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20436 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20437 (make_lispy_event) [WINDOWSNT]: Use it to translate
20438 MULTIMEDIA_KEY_EVENT.
20439
20440 * w32term.h (WM_APPCOMMAND): Define if not already.
20441 (GET_APPCOMMAND_LPARAM): Likewise.
20442
20443 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20444 WM_APPCOMMAND.
20445
20446 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20447 (syms_of_w32fns): Export and initialize it.
20448 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20449
20450 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
20451
20452 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20453 twice.
20454
20455 * xdisp.c (handle_face_prop): Fix last change.
20456
20457 2007-11-09 Richard Stallman <rms@gnu.org>
20458
20459 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20460 not just for after-strings and before-strings.
20461 Call face_for_overlay_string and pass the overlay to it.
20462 (handle_display_prop): Determine whether property came from an overlay.
20463 Pass OVERLAY arg to handle_single_display_spec.
20464 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20465 (load_overlay_strings): Fill in it->string_overlays.
20466 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20467
20468 * xfaces.c (face_for_overlay_string): Function renamed from
20469 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20470
20471 * dispextern.h (struct it): New elt string_overlays.
20472 New elt from_overlay, also in stack.
20473 Rearrange a few elements.
20474 (face_for_overlay_string): Decl renamed from
20475 face_at_buffer_position_no_overlays, and add argument.
20476
20477 2007-11-09 Richard Stallman <rms@gnu.org>
20478
20479 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20480 to get the base face for an overlay string.
20481
20482 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20483
20484 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20485
20486 * xdisp.c (handle_stop): Move some code out of loop.
20487
20488 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20489
20490 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20491 Fix conversion from Lisp object to ATSUFontID.
20492
20493 2007-11-09 Jason Rumney <jasonr@gnu.org>
20494
20495 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20496
20497 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20498
20499 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20500 Don't assume regions are aligned to page boundary.
20501 (print_load_command_name): Add LC_UUID if defined.
20502
20503 2007-11-09 Richard Stallman <rms@gnu.org>
20504
20505 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20506
20507 2007-11-07 Jason Rumney <jasonr@gnu.org>
20508
20509 * s/windows95.h: Remove.
20510
20511 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20512
20513 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20514 abort with a message on unhandled store_type values.
20515
20516 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20517
20518 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20519 Remove HAVE_X11R5 and HAVE_X11R4.
20520
20521 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20522
20523 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20524
20525 2007-11-01 Johan Bockgård <bojohan@gnu.org>
20526
20527 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20528 Don't set s->stippled_p here, since it has already been set by
20529 x_set_glyph_string_gc from x_draw_glyph_string.
20530
20531 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20532
20533 * sunfns.c: Remove file.
20534
20535 * m/sun386.h:
20536 * m/sun2.h:
20537 * m/sparc.h: Remove Sun windows code.
20538
20539 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20540
20541 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20542 (init_keyboard): Set current_kboard's window-system to nil.
20543 (tty_read_avail_input): Typo.
20544 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20545
20546 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20547
20548 * s/usg5-4.h:
20549 * s/usg5-3.h:
20550 * s/ptx.h:
20551 * m/is386.h:
20552 * m/ibmps2-aix.h:
20553 * Makefile.in: Remove all mentions of X10.
20554
20555 * dispnew.c (syms_of_display): Don't mention version 10.
20556
20557 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
20558
20559 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20560 ($(BLD)/abbrev.$(O)): Remove.
20561
20562 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20563
20564 Rewrite abbrev.c in Elisp.
20565 * image.c (Qcount): Don't declare as extern.
20566 (syms_of_image): Initialize and staticpro `Qcount'.
20567 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20568 * emacs.c (main): Don't call syms_of_abbrev.
20569 * Makefile.in (obj): Remove abbrev.o.
20570 (abbrev.o): Remove.
20571 * abbrev.c: Remove.
20572
20573 2007-10-26 Martin Rudalics <rudalics@gmx.at>
20574
20575 * window.c (window_min_size_2): Don't count header-line.
20576
20577 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20578
20579 * frame.h (struct frame): Move all bit fields after the first bit
20580 field to take advantage of the available space. Group all the
20581 chars together to reduce wasted space due to padding.
20582
20583 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
20584
20585 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20586
20587 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20588 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20589 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20590 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20591 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20592 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20593 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20594 (last_marked, mark_object_loop_halt): Make static.
20595
20596 * frame.c (syms_of_frame) <delete-frame-functions>:
20597 Fix typo in docstring.
20598
20599 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
20600
20601 * w32.c (init_environment): Fix tiny memory leak.
20602 (w32_get_resource): Remove unused variable `ok'.
20603
20604 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20605
20606 Make `window-system' into a keyboard-local variable (rather than
20607 frame-local as done originally by multi-tty).
20608
20609 * keyboard.h (struct kboard): Add Vwindow_system.
20610 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20611 (mark_kboards): Mark Vwindow_system.
20612
20613 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20614 (init_display): Don't set the obsolete `window-system' frame-param.
20615
20616 * xterm.c (x_term_init):
20617 * w32term.c (w32_create_terminal):
20618 * term.c (init_tty): Set Vwindow_system.
20619 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20620 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20621
20622 * xfns.c (Fx_create_frame, x_create_tip_frame):
20623 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20624 * macfns.c (Fx_create_frame):
20625 Don't set the obsolete `window-system' frame-param.
20626
20627 * frame.h (Qwindow_system): Remove.
20628 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20629 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20630
20631 2007-10-24 Richard Stallman <rms@gnu.org>
20632
20633 * frame.c (x_figure_window_size): For fullscreen case,
20634 set USPosition | PPosition without clobbering rest of window_prompting.
20635
20636 * keyboard.c (Fcurrent_idle_time): Doc fix.
20637
20638 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20639
20640 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20641
20642 * process.c (unwind_request_sigio): Only define if __ultrix__.
20643
20644 * callproc.c (child_setup): Remove spurious *.
20645
20646 * lisp.h (Fget_text_property): Declare.
20647 (have_menus_p): Declare it here rather than in sys-dep header files.
20648 * macterm.h (have_menus_p):
20649 * msdos.h (have_menus_p):
20650 * xterm.h (have_menus_p): Remove.
20651
20652 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20653 (Fmake_variable_frame_local): Just check the variable's const-ness
20654 rather than checking nil or t.
20655
20656 2007-10-22 Jason Rumney <jasonr@gnu.org>
20657
20658 * w32fns.c: Include math.h.
20659 (w32_abort): Declaration moved to nt/config.nt.
20660
20661 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20662 (abort): Redefinition moved to nt/config.nt.
20663
20664 * m/windowsnt.h: Remove.
20665
20666 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
20667
20668 * emacs.c (Fdump_emacs): Fix typo in message.
20669 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20670 <installation-directory>: Reflow docstring.
20671
20672 2007-10-22 Juri Linkov <juri@jurta.org>
20673
20674 * minibuf.c: Allow minibuffer default to be a list of default values.
20675 With empty input use the first element of this list as returned default.
20676 (string_to_object)
20677 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20678 (read_minibuf): If defalt is cons, set histstring to its car.
20679 (Fread_string): If default_value is cons, set val to its car.
20680 (Fread_buffer): If def is cons, use its car.
20681 (Fcompleting_read): If defalt is cons, set val to its car.
20682
20683 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
20684
20685 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20686
20687 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
20688
20689 * doc.c (Fdocumentation): Check for advice in all cases.
20690
20691 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
20692
20693 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20694
20695 2007-10-19 Richard Stallman <rms@gnu.org>
20696
20697 * doc.c (Fdocumentation): Check for and handle an advised function.
20698
20699 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
20700
20701 * process.c (Fset_process_filter): Doc fix.
20702
20703 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20704
20705 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20706 which caused key-translation-map to applied repeatedly (thus breaking
20707 double-mode).
20708
20709 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20710
20711 * xselect.c (x_own_selection, x_handle_selection_clear)
20712 (x_clear_frame_selections):
20713 * w32menu.c (list_of_panes, list_of_items):
20714 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20715 * textprop.c (validate_plist, interval_has_all_properties)
20716 (interval_has_some_properties, interval_has_some_properties_list)
20717 (add_properties, text_property_list):
20718 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20719 * minibuf.c (Fassoc_string):
20720 * macselect.c (x_own_selection, x_clear_frame_selections)
20721 (Fx_disown_selection_internal):
20722 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20723 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20724
20725 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
20726
20727 * process.c: Link to libs for calling res_init() if available.
20728 (Fmake_network_process): Call res_init() before getaddrinfo or
20729 gethostbyname, if possible.
20730
20731 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20732
20733 * lread.c (read1): Set pvectype for char_tables.
20734
20735 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20736 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20737 Add type checks.
20738 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20739
20740 * alloc.c (free_misc): Use XMISCTYPE.
20741 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20742
20743 2007-10-17 Glenn Morris <rgm@gnu.org>
20744
20745 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20746 (syms_of_minibuf): Add Qcompletion_ignore_case.
20747 * dired.c (Qcompletion_ignore_case): Change to external.
20748 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20749 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20750 (Fread_file_name): Use it rather than intern'ing.
20751
20752 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20753 (Fread_coding_system): Ignore case of user input.
20754
20755 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20756
20757 * xdisp.c (handle_display_prop): Ignore display specs after
20758 replacing one when string text is being replaced.
20759 (handle_single_display_spec): Pretend as if characters with display
20760 property haven't been consumed only when buffer text is being replaced.
20761
20762 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20763
20764 * xfns.c (Fx_create_frame, Fx_display_list):
20765 * window.c (window_fixed_size_p, enlarge_window)
20766 (shrink_window_lowest_first):
20767 * macterm.c (init_font_name_table):
20768 * macfns.c (Fx_create_frame, Fx_display_list):
20769 * lread.c (close_load_descs):
20770 * keyboard.c (read_char_x_menu_prompt):
20771 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20772 * coding.c (code_convert_region_unwind): Test the type of an object
20773 rather than just !NILP before extracting data from it.
20774
20775 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20776
20777 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20778 (XMISCANY): New macro.
20779 (XMISCTYPE): Use it.
20780 (struct Lisp_Misc_Any): New type.
20781 (union Lisp_Misc): Use it.
20782 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20783 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20784 (find_symbol_value, set_internal, default_value, Fset_default)
20785 (Fmake_variable_buffer_local, Fmake_local_variable)
20786 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20787 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20788 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20789 * alloc.c (allocate_buffer): Set the size and tag.
20790 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20791 Use XMISCANY.
20792 (die): Follow the GNU convention for error messages.
20793 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20794 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20795 tag any more.
20796 (set_buffer_internal_1):
20797 * frame.c (store_frame_param):
20798 * eval.c (specbind):
20799 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20800
20801 * doc.c (Fsnarf_documentation): Simplify.
20802
20803 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20804
20805 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20806 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20807
20808 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20809
20810 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20811
20812 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20813
20814 * eval.c (do_autoload): Don't save autoloads.
20815
20816 * data.c (Ffset): Save autoload of the function being set.
20817
20818 2007-10-07 John Paul Wallington <jpw@pobox.com>
20819
20820 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20821 parameter before setting up faces.
20822
20823 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20824
20825 * ccl.c (Fregister_code_conversion_map):
20826 * keyboard.c (append_tool_bar_item): Reformat last change.
20827
20828 * lisp.h (eabs): Rename from `abs'. All callers changed.
20829
20830 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20831
20832 * buffer.c (add_overlay_mod_hooklist):
20833 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20834 * fontset.c (make_fontset):
20835 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20836 (append_tool_bar_item):
20837 * macmenu.c (grow_menu_items):
20838 * w32menu.c (grow_menu_items):
20839 * xmenu.c (grow_menu_items): Use larger_vector.
20840
20841 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20842
20843 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20844 selected frame'' on MSDOS).
20845
20846 2007-10-12 Martin Rudalics <rudalics@gmx.at>
20847
20848 * frame.c (Qexplicit_name): New variable.
20849 (x_report_frame_params): Report it in parameter alist.
20850 (syms_of_frame): Intern and staticpro it.
20851
20852 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20853
20854 * macfns.c (x_create_tip_frame): Set terminal for frame.
20855
20856 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20857
20858 * frame.c (Qenvironment): Remove.
20859 (syms_of_frame) <Qenvironment>: Don't initialize.
20860 (Fdelete_frame): Don't treat the `environment' param specially.
20861 * frame.h (Qenvironment): Don't declare.
20862 * callproc.c (set_initial_environment): Don't set unused frame param.
20863
20864 * frame.c (Fframe_with_environment): Remove.
20865 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20866
20867 * lisp.h (Fframe_with_environment): Don't declare.
20868
20869 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
20870
20871 * indent.c (indent_tabs_mode, last_known_column)
20872 (last_known_column_modified): Make static.
20873 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20874
20875 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20876
20877 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20878
20879 2007-10-09 Jason Rumney <jasonr@gnu.org>
20880
20881 * w32term.c (x_set_window_size): Disable code that attempts to tell
20882 Lisp code about a size change before it actually happens.
20883
20884 2007-10-09 Richard Stallman <rms@gnu.org>
20885
20886 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20887 return HANDLED_RETURN.
20888
20889 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20890
20891 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20892 when there's an unread command event.
20893
20894 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20895 window autoselection act appropriately when leaving selected frame.
20896 (syms_of_frame): Initialize focus_follows_mouse.
20897 * frame.h (focus_follows_mouse): Extern it.
20898 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20899 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20900 * msdos.c (dos_rawgetc): Likewise.
20901 * w32term.c (w32_read_socket): Likewise.
20902 * xterm.c (handle_one_xevent): Likewise.
20903 * xdisp.c (syms_of_xdisp): In doc-string of
20904 mouse-autoselect-window mention focus-follows-mouse.
20905
20906 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20907
20908 * macterm.c (mac_load_query_font): Fix missing return value.
20909 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20910 Add BLOCK_INPUT.
20911
20912 2007-10-08 Richard Stallman <rms@gnu.org>
20913
20914 * xdisp.c (get_window_cursor_type): Implement documented behavior
20915 for cursor-in-non-selected-windows = t.
20916
20917 2007-10-08 Jason Rumney <jasonr@gnu.org>
20918
20919 * w32.c (w32_get_resource): Always close registry keys.
20920
20921 2007-10-08 Jason Rumney <jasonr@gnu.org>
20922
20923 * makefile.w32-in (LIBS): Add COMCTL32.
20924
20925 * w32fns.c (globals_of_w32fns): Init common controls.
20926
20927 2007-10-08 Richard Stallman <rms@gnu.org>
20928
20929 * image.c (our_memory_buffer): Rename from omfib_buffer.
20930
20931 2007-10-08 Richard Stallman <rms@gnu.org>
20932
20933 * buffer.c (Foverlays_at): Doc fix.
20934
20935 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20936
20937 * fns.c (Fplist_put): Preserve uneven tail data.
20938
20939 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20940
20941 * termhooks.h (enum event_kind): Remove trailing comma.
20942
20943 * frame.h (enum): Remove trailing comma.
20944
20945 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20946
20947 * w32proc.c (delete_child): Don't terminate threads of zombies.
20948
20949 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20950
20951 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20952
20953 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20954 last-repeatable-command.
20955 (init_kboard): Initialize Vlast_repeatable_command.
20956 (command_loop_1): Set it to real_this_command unless that was
20957 bound to an input event.
20958 (mark_kboards): Mark it.
20959
20960 2007-10-08 Richard Stallman <rms@gnu.org>
20961
20962 * eval.c (condition-case): Doc fix.
20963
20964 2007-10-08 Masatake YAMATO <jet@gyve.org>
20965
20966 * xfaces.c (tty_supports_face_attributes_p): Fix code
20967 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20968 was copied and not edited.
20969
20970 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20971
20972 Add new `input-decode-map' keymap and use it for terminal
20973 escape sequences.
20974 * keyboard.h (struct kboard): Add Vinput_decode_map.
20975 Remove Vlocal_key_translation_map.
20976 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20977 (init_kboard): Init input-decode-map.
20978 Replace local-key-translation-map back with key-translation-map.
20979 (syms_of_keyboard): Declare input-decode-map.
20980 Remove local-key-translation-map. Update docstrings.
20981 (mark_kboards): Mark Vinput_decode_map.
20982 Don't mark Vlocal_key_translation_map.
20983 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20984 Replace local-key-translation-map back with key-translation-map.
20985 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20986 Bind in input-decode-map rather than function-key-map.
20987
20988 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20989 This was made redundant by the previous introduction of XSETPVECTYPE.
20990
20991 2007-10-09 Richard Stallman <rms@gnu.org>
20992
20993 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20994
20995 2007-09-29 Richard Stallman <rms@gnu.org>
20996
20997 * eval.c (internal_condition_case_2, internal_condition_case_1)
20998 (internal_condition_case): Reenable abort if x_catching_errors ()
20999 to see if that really happens and why.
21000
21001 2007-10-06 Andreas Schwab <schwab@suse.de>
21002
21003 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21004
21005 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21006
21007 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21008
21009 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21010
21011 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21012
21013 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21014
21015 * window.h (struct window):
21016 * window.c (struct save_window_data, struct saved_window):
21017 * termhooks.h (struct terminal):
21018 * process.h (struct Lisp_Process):
21019 * frame.h (struct frame):
21020 * buffer.h (struct buffer):
21021 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21022 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21023 The size field of (pseudo)vectors is now unsigned.
21024 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21025
21026 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21027 Turn `count' into an integer.
21028
21029 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21030 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21031 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21032 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21033 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21034
21035 * alloc.c (allocate_pseudovector): New fun.
21036 (ALLOCATE_PSEUDOVECTOR): New macro.
21037 (allocate_window, allocate_terminal, allocate_frame)
21038 (allocate_process): Use it.
21039 (mark_vectorlike): New function.
21040 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21041 (mark_terminals): Use it.
21042 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21043 (Fmake_byte_code): Use XSETPVECTYPE.
21044
21045 * frame.c (Fframe_parameters): Minor simplification.
21046
21047 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21048
21049 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21050
21051 * buffer.c (Fget_buffer_create, init_buffer_once):
21052 * lread.c (defsubr):
21053 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21054
21055 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21056 defined differently in the m/*.h files.
21057 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21058 (XSETPVECTYPE): New macro.
21059 (XSETPSEUDOVECTOR): Use it.
21060
21061 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21062 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21063
21064 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21065 * lread.c (defvar_per_buffer):
21066 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21067
21068 * window.c (candidate_window_p): Only consider as visible frames that
21069 are on the same terminal.
21070
21071 * m/ibms390x.h (MARKBIT): Remove unused macro.
21072
21073 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
21074
21075 * lread.c (Fload): Fix typo in docstring.
21076
21077 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21078
21079 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21080 of a non-zero value can't yield zero.
21081
21082 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21083
21084 * term.c (term_clear_mouse_face, term_mouse_highlight)
21085 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21086
21087 * print.c (safe_debug_print): Use XHASH.
21088
21089 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21090 Lisp elements such as tags.
21091 (XHASH): New macro.
21092 (EQ): Use it.
21093 (SREF, SSET, STRING_COPYIN): Use SDATA.
21094 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21095
21096 * alloc.c (mark_terminal): Remove left-over declaration.
21097 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21098 (allocate_vectorlike): Remove type argument. Adjust callers.
21099 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21100 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21101
21102 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21103 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21104 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21105 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21106 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21107 Use them.
21108
21109 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21110 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21111 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21112
21113 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21114
21115 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21116 loaded by default.
21117
21118 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21119
21120 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21121 on this tty.
21122 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21123
21124 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21125 Update all users.
21126 (handle_one_term_event): Use Gpm_DrawPointer.
21127 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21128 Signal errors instead of returning nil. Always return nil.
21129 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21130 Make it a noop if gpm-mouse was not activated.
21131 (syms_of_term): Update names.
21132
21133 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21134
21135 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21136 (init_sys_modes): Check that gpm_tty is the current tty.
21137
21138 * alloc.c (allocate_terminal): Set the vector size to only count the
21139 lisp fields. Initialize those to nil.
21140 (mark_object): Don't treat terminals specially.
21141 (mark_terminal): Remove.
21142 (mark_terminals): Use mark_object instead.
21143
21144 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21145 the GC to the beginning.
21146
21147 * indent.h:
21148 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21149
21150 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21151
21152 2007-09-25 Jason Rumney <jasonr@gnu.org>
21153
21154 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21155
21156 * w32console.c (create_w32cons_output): Remove.
21157
21158 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21159
21160 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21161 (reset_sys_modes): Use reset_terminal_modes_hook.
21162
21163 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21164
21165 * eval.c (do_autoload): Don't output any message.
21166
21167 2007-09-24 Juri Linkov <juri@jurta.org>
21168
21169 * emacs.c (standard_args): Change priority of "--no-splash"
21170 from 40 to 3. Add "--no-desktop" with the same priority.
21171
21172 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21173
21174 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21175 and optimize the case where they are all 1.
21176
21177 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
21178
21179 * lisp.h (abs): Define if not defined.
21180 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21181 Don't define `abs', since it's defined in lisp.h.
21182
21183 2007-09-22 Eli Zaretskii <eliz@gnu.org>
21184
21185 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21186 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21187 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21188 (init_tty): Use DEV_TTY instead of "/dev/tty".
21189 [WINDOWSNT]: No need to protect from NAME arg being null.
21190
21191 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21192
21193 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21194 up the tty state.
21195
21196 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21197
21198 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21199 (gpm_tty): Change its type.
21200 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21201 (gpm_tty): Change its type and initialize it.
21202 (Fterm_open_connection): Check the frame is indeed a tty.
21203 Use the new gpm_tty.
21204 (Fterm_close_connection): Use the new gpm_tty.
21205 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21206 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21207
21208 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
21209
21210 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21211 underline_color, to draw strike-through.
21212
21213 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21214
21215 * lisp.h (allocate_terminal): Declare.
21216
21217 * window.c (candidate_window_p): Consider frames that are being placed
21218 by the user as somewhere between visible and iconified.
21219 (window_loop): Prefer windows on the current frame.
21220 (Fselect_window): Move the use of select-frame to the beginning so we
21221 can just delegate all the work (it'll call us back anyway).
21222
21223 * frame.c (Qdisplay_environment_variable):
21224 * frame.h (Qdisplay_environment_variable): Delete.
21225
21226 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21227 of the first arg, since that value may be a union.
21228
21229 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21230 parameter rather than Qdisplay_environment_variable. If all else
21231 fails, look for DISPLAY in initial-environment.
21232
21233 2007-09-21 Glenn Morris <rgm@gnu.org>
21234
21235 * Makefile.in (emacstool): Remove target.
21236 (lisp, shortlisp): Remove termdev.elc.
21237
21238 2007-09-21 Markus Triska <markus.triska@gmx.at>
21239
21240 * xterm.c (x_delete_display): Compile session management conditionally.
21241
21242 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21243
21244 * callproc.c (getenv_internal_1): New function.
21245 (getenv_internal): Use it.
21246 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21247
21248 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21249 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21250 (Fset_terminal_parameter): Work with dead terminals as well.
21251 (Fmodify_terminal_parameters): Remove.
21252
21253 * terminal.c (get_terminal): Handle terminals.
21254 Make sure the terminal returned is live.
21255 (create_terminal): Use allocate_terminal.
21256 (mark_terminals): Move to alloc.c.
21257 (delete_terminal): Use terminal->name as liveness status.
21258 NULL out fields after freeing their contents.
21259 Don't deallocate the object.
21260 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21261 rather than an int.
21262 (Fterminal_live_p): Accept non-integer arguments.
21263 (Fterminal_list): Return terminal objects rather than an ints.
21264
21265 * alloc.c (enum mem_type): New member for `terminal' objects.
21266 (allocate_terminal): New function.
21267 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21268 Handle terminals.
21269 (mark_terminal): New fun.
21270 (mark_terminals): Move from terminal.c.
21271
21272 * term.c (get_tty_terminal): Don't treat output_initial specially.
21273 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21274 (delete_tty): Use terminal->name as liveness status.
21275
21276 * termhooks.h (struct terminal): Make it into a pseudovector.
21277 Remove `deleted' replaced by checking `name's nullness.
21278
21279 * print.c (print_object): Handle terminals.
21280
21281 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21282 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21283
21284 * frame.c (make_terminal_frame):
21285 * keyboard.c (tty_read_avail_input):
21286 * w32term.c (x_delete_terminal):
21287 * xfns.c (Fx_create_frame, x_create_tip_frame):
21288 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21289
21290 2007-09-20 Glenn Morris <rgm@gnu.org>
21291
21292 * process.c (Fmake_network_process): Doc fix.
21293
21294 2007-09-19 Jason Rumney <jasonr@gnu.org>
21295
21296 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21297
21298 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21299
21300 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21301 Fix a C warning regarding variable constness.
21302
21303 * xterm.c (handle_one_xevent): Fix a C warning.
21304
21305 2007-09-18 Jason Rumney <jasonr@gnu.org>
21306
21307 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21308
21309 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21310
21311 * gtkutil.c (gdpy_def): New variable.
21312 (xg_initialize): Initialize gdpy_def.
21313 (xg_display_close): If no other display exists, set gdpy_def to a
21314 new connection.
21315
21316 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21317
21318 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21319 when we have no file name for the icon.
21320 (xg_tool_bar_expose_callback): Remove.
21321 (xg_create_tool_bar): Don't connect expose signal to
21322 xg_tool_bar_expose_callback.
21323 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21324
21325 2007-09-16 Andreas Schwab <schwab@suse.de>
21326
21327 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21328 values instead of zapping them.
21329
21330 2007-09-14 Glenn Morris <rgm@gnu.org>
21331
21332 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21333 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21334 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21335 scope and rename to omfib_buffer for clarity.
21336 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21337
21338 2007-09-14 Kenichi Handa <handa@m17n.org>
21339
21340 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21341
21342 2007-09-13 Jason Rumney <jasonr@gnu.org>
21343
21344 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21345
21346 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21347
21348 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21349 (mac_term_init): Call here instead, passing rif.
21350
21351 2007-09-13 Glenn Morris <rgm@gnu.org>
21352
21353 * s/hpux.h: No longer define `static' as nothing.
21354
21355 2007-09-13 Johan Bockgård <bojohan@gnu.org>
21356
21357 * callint.c (Fcall_interactively): Remove unused var `fun'.
21358
21359 2007-09-12 Romain Francoise <romain@orebokech.com>
21360
21361 * window.c (prefer_window_split_horizontally, display_buffer):
21362 Revert 2007-09-08 change.
21363
21364 2007-09-12 Glenn Morris <rgm@gnu.org>
21365
21366 * alloca.c: Remove file.
21367 * Makefile.in (alloca): Do not undef.
21368 (allocaobj, alloca.o): Remove.
21369 (otherobj): Remove allocaobj.
21370 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21371 * regex.c (C_ALLOCA): Remove all references and code that was only
21372 used when this was defined.
21373 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21374 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21375 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21376
21377 * Makefile.in (SOURCES, unlock, relock): Delete.
21378
21379 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21380 (menu_grab_callback): All uses changed.
21381
21382 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21383 (x_reply_selection_request): All uses changed.
21384
21385 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21386
21387 * lread.c (load_warn_old_style_backquotes): Change message to look
21388 better when it appears in the middle of byte-compiler messages.
21389
21390 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21391
21392 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21393
21394 * xterm.c (x_create_terminal): Add comment.
21395
21396 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21397
21398 2007-09-10 Richard Stallman <rms@gnu.org>
21399
21400 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21401
21402 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21403
21404 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21405 (DEFUN): Document `intspec', use it instead of `prompt'.
21406
21407 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21408
21409 * data.c (Finteractive_form): If the interactive specification starts
21410 with a `(', use it as a Lisp form.
21411
21412 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21413 name and file modes.
21414
21415 * callint.c (Fcall_interactively): Comment fixes.
21416
21417 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21418
21419 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21420 and compiled functions.
21421
21422 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21423
21424 * window.c (prefer_window_split_horizontally): New variable.
21425 (display_buffer): Consider splitting window horizontally depending
21426 on prefer_window_split_horizontally.
21427
21428 2007-09-08 Eli Zaretskii <eliz@gnu.org>
21429
21430 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21431
21432 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21433
21434 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21435
21436 * frame.c (x_set_frame_parameters): Check number is positive before
21437 using XFASTINT.
21438
21439 * window.c (freeze_window_start): Don't presume selected_window holds
21440 a window object.
21441 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21442
21443 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21444
21445 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21446
21447 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21448
21449 * window.c (Vsplit_window_preferred_function): New var.
21450 (Fdisplay_buffer): Use it.
21451 (syms_of_window): Export, and initialize it.
21452
21453 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21454
21455 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21456
21457 2007-09-06 Glenn Morris <rgm@gnu.org>
21458
21459 * gtkutil.c (menu_grab_callback) <cnt>:
21460 * xselect.c (x_reply_selection_request) <cnt>: Move static
21461 variable to file scope.
21462
21463 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21464
21465 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21466 consistent values of selected_frame and selected_window.
21467
21468 2007-09-04 Jason Rumney <jasonr@gnu.org>
21469
21470 * w32console.c (initialize_w32_display): Zero unused hooks.
21471
21472 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21473
21474 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21475 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21476
21477 2007-09-04 Jason Rumney <jasonr@gnu.org>
21478
21479 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21480 in w32console.c. Set up input. Remove XXX comments that have been
21481 confirmed as correct.
21482
21483 * s/ms-w32.h (MULTI_KBOARD): Define.
21484
21485 * w32console.c (one_and_only_w32cons): Remove.
21486 (initialize_w32_display): Take terminal argument.
21487
21488 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21489 initialize_w32_display.
21490 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21491
21492 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21493
21494 * keyboard.c (discard_mouse_events): Discard it.
21495 (make_lispy_event): Translate it to a lisp event.
21496 (lispy_wheel_names): Add wheel-left and right events.
21497 (syms_of_keyboard): Enlarge wheel_syms.
21498
21499 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21500 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21501
21502 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21503
21504 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21505 from WM_MOUSEHWHEEL.
21506 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21507
21508 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21509 terminal.
21510
21511 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21512 keyboard for the terminal.
21513
21514 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21515
21516 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21517 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21518 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21519 and resume-tty-function to resume-tty-hook.
21520 (Fsuspend_tty, Fresume_tty): Use new names.
21521
21522 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21523
21524 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21525 if it starts with "n:".
21526
21527 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21528
21529 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21530
21531 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21532
21533 * frame.h:
21534 * frame.c (Qterm_environment_variable): Remove.
21535 (syms_of_frame): Don't init and staticpro it.
21536
21537 * callproc.c (getenv_internal): Remove special case for $TERM.
21538
21539 * callproc.c (Vinitial_environment): New variable.
21540 (set_initial_environment): Initialize it.
21541 (syms_of_callproc): Declare it.
21542 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21543 TERM under which a process runs is never related to the TERM in which
21544 Emacs is running.
21545
21546 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21547
21548 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21549 * s/darwin.h: ... do it here.
21550
21551 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21552
21553 * lisp.h (set_initial_environment): Rename from set_global_environment.
21554
21555 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21556 removed by mistake on the multi-tty branch.
21557
21558 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21559 (Fmodify_frame_parameters): Return a value.
21560
21561 * image.c (png_load): Comment-out var only used in commented-out code.
21562
21563 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21564 before passing it to mark_object.
21565
21566 * xfaces.c (internal_resolve_face_name): Return a value.
21567 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21568
21569 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21570 (x_icon): Comment-out var only used in commented-out code.
21571
21572 2007-08-29 Romain Francoise <romain@orebokech.com>
21573
21574 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21575 QUIT hasn't been provided.
21576
21577 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21578
21579 * callproc.c (child_setup, getenv_internal): Use the
21580 display-environment-variable and term-environment-variable frame params.
21581 (set_initial_environment): Initialise Vprocess_environment.
21582
21583 * config.in: Disable multi-keyboard support on a mac.
21584
21585 * frame.c (Qterm_environment_variable)
21586 (Qdisplay_environment_variable): New variables.
21587 (syms_of_frame): Intern and staticpro them.
21588 (Fmake_terminal_frame): Disable output method test.
21589
21590 * frame.h: Declare them here.
21591
21592 * macfns.c (x_set_mouse_color): Get rif from the frame.
21593 (x_set_tool_bar_lines): Don't use updating_frame.
21594 (mac_window): Add 2 new parameters for consistency with other systems.
21595 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21596 frame parameters following what is done in X11 and w32. Don't use
21597 FRAME_MAC_DISPLAY_INFO.
21598 (Fx_open_connection, start_hourglass): Remove window-system check.
21599 (x_create_tip_frame): Get the keyboard from the terminal.
21600
21601 * macmenu.c: Reorder includes.
21602 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21603
21604 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21605 terminal parameter.
21606 (x_clear_frame): Add a frame parameter.
21607 (note_mouse_movement): Get rif from the frame.
21608 (mac_term_init): Initialize the terminal.
21609 (mac_initialize): Make static and move terminal initialization ...
21610 (mac_create_terminal): ... to this new function.
21611
21612 * macterm.h (struct mac_display_info): Add terminal.
21613 (mac_initialize): Delete declaration.
21614
21615 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21616
21617 * sysdep.c: Comment out text after #endif.
21618
21619 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21620 is defined. Better initialize ttys in windows. Use terminal
21621 specific mouse_position_hook.
21622
21623 * termhooks.h (union display_info): Add mac_display_info.
21624
21625 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21626 Set the default minibuffer frame, window_system and the rest of the
21627 frame parameters following what is done in X11.
21628
21629 * w32term.c (w32_initialize): Make static.
21630
21631 * xselect.c (x_handle_selection_clear): Only access
21632 terminal->kboard when MULTI_KBOARD is defined.
21633
21634 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21635 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21636
21637 2007-08-29 Jason Rumney <jasonr@gnu.org>
21638
21639 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21640 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21641
21642 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21643 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21644
21645 * keyboard.c (restore_kboard_configuration): Only define when
21646 MULTI_KBOARD defined.
21647
21648 * makefile.w32-in: Update dependancies from Makefile.in.
21649 (OBJ1): Add terminal.$(O)
21650
21651 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21652 Don't define function body.
21653 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21654
21655 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21656
21657 * w32.c (request_sigio, unrequest_sigio): Remove.
21658
21659 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21660 (w32con_clear_frame, w32con_clear_end_of_line)
21661 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21662 (w32con_delete_glyphs, w32con_set_terminal_window)
21663 (scroll_line, w32_sys_ring_bell): Add frame arg.
21664 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21665 Add terminal arg.
21666 (PICK_FRAME): Remove.
21667 (w32con_write_glyphs): Use frame specific terminal coding.
21668 (one_and_only_w32cons): New global variable.
21669 (initialize_w32_display): Use it for storing hooks.
21670 (create_w32cons_output): New function.
21671
21672 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21673 arg a frame.
21674
21675 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21676 Set window_system.
21677 (x_set_tool_bar_lines): Don't use updating_frame.
21678 (Fx_create_frame): Set terminal and ref count.
21679 (Fx_open_connection): Remove window-system check.
21680
21681 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21682
21683 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21684 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21685 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21686 Add frame arg.
21687 (x_delete_terminal, w32_create_terminal): New functions.
21688 (w32_term_init): Create a terminal.
21689 (w32_initialize): Move terminal specific initialization to
21690 w32_create_terminal.
21691
21692 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21693 (w32_clear_rect, w32_clear_area): Use background from frame.
21694 (w32_display_info): Add terminal.
21695 (w32_sys_ring_bell, x_delete_display): Declare here.
21696
21697 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21698
21699 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21700
21701 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21702
21703 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21704 Fix get_named_tty calls for the controlling tty.
21705
21706 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21707
21708 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
21709
21710 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21711
21712 * term.c (tty_insert_glyphs): Add missing first parameter.
21713
21714 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21715
21716 * buffer.c (Fbuffer_list, Fbury_buffer):
21717 Take frame->buried_buffer_list into account.
21718
21719 * cm.c (current_tty): New variable, for cmputc().
21720 (cmputc): Use it.
21721 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21722 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21723 (cmgoto): Add tty parameter. Pass it on to calccost().
21724 Use emacs_tputs() instead of tputs().
21725
21726 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21727 tputs().
21728 (current_tty): New variable, for cmputc().
21729 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21730
21731 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21732 (internal_condition_case, internal_condition_case_1)
21733 (internal_condition_case_2): Don't abort when x_catching_errors.
21734
21735 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21736 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21737 prevent crashes caused by bogus longjmps in read_char.
21738
21739 * keymap.h (Fset_keymap_parent): Add EXFUN.
21740
21741 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21742 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21743 Remove redundant definition.
21744
21745 * macfns.c (x_set_mouse_color, x_make_gc):
21746 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21747
21748 * w32term.c (x_free_frame_resources):
21749 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21750 (w32_initialize): Use the accessor macros for terminal characteristics.
21751
21752 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21753 Use the accessor macros for terminal characteristics.
21754 * msdos.c (internal_terminal_init): Use the accessor macros for
21755 terminal characteristics.
21756 (ScreenVisualBell, internal_terminal_init):
21757 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21758
21759 * termopts.h (no_redraw_on_reenter): Declare.
21760
21761 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21762 (mark_terminals, mark_ttys): Declare.
21763 (Fgarbage_collect): Call them.
21764 (mark_object): Mark buried_buffer_list.
21765
21766 * prefix-args.c: Include stdlib.h for exit.
21767
21768 * syssignal.h: Add comment.
21769
21770 * indent.c: Include stdio.h.
21771
21772 * window.h (Vinitial_window_system): Declare.
21773 (Vwindow_system): Delete declaration.
21774
21775 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21776
21777 * image.c (lookup_image): Don't initialize `c' until the xasserts
21778 have been run.
21779
21780 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21781 FRAME_FOREGROUND_PIXEL.
21782
21783 * print.c (print_preprocess): Don't lose print_depth levels while
21784 iterating.
21785
21786 * widget.c (update_from_various_frame_slots):
21787 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21788
21789 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21790 frames.
21791 (window_internal_height): Remove bogus make_number call.
21792 (init_window_once): Call make_terminal_frame with two zero parameters.
21793
21794 * fileio.c (Fread_file_name): Update comment.
21795
21796 * callint.c (Fcall_interactively):
21797 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21798 Make sure it is correctly unwound.
21799
21800 * xsmfns.c (x_session_close): New function.
21801
21802 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21803 Delete declarations.
21804
21805 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21806 (x_output): Remove background_pixel and foreground_pixel fields.
21807 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21808 (x_delete_device, x_session_close): Declare.
21809
21810 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21811 (read_filtered_event): Call `read_char' with a local
21812 `wrong_kboard_jmpbuf'.
21813
21814 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21815 Don't call single_kboard_state. Use FRAME_RIF.
21816
21817 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21818 systems.
21819
21820 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21821 (Fframe_with_environment, Fset_input_meta_mode)
21822 (Fset_quit_char): EXFUN.
21823 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21824 (init_sys_modes, reset_sys_modes): Update prototypes.
21825 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21826
21827 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21828 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21829 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21830 Delete declarations.
21831 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21832 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21833 New declarations.
21834
21835 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21836 already does that during init_display(). Call syms_of_keymap
21837 before syms_of_keyboard. Call `syms_of_terminal'.
21838 Call set_initial_environment, not set_process_environment.
21839 (shut_down_emacs): Call reset_all_sys_modes() instead of
21840 reset_sys_modes().
21841
21842 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21843 (internal_resolve_face_name, resolve_face_name_error): New functions.
21844 (resolve_face_name): Protect against loops and errors thrown by Fget.
21845 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21846 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21847
21848 * scroll.c: Replace CURTTY() with local variables throughout the
21849 file (where applicable).
21850 (calculate_scrolling, calculate_direct_scrolling)
21851 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21852 characteristics.
21853
21854 * keymap.c (Vfunction_key_map): Remove.
21855 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21856 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21857 (Vkey_translation_map): Remove.
21858 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21859 (Fdescribe_buffer_bindings)
21860 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21861 Update for terminal-local key-translation-map.
21862
21863 * Makefile.in (callproc.o): Update dependencies.
21864 (lisp, shortlisp): Add termdev.elc.
21865 (obj): Add terminal.o.
21866 (terminal.o): Add dependencies.
21867 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21868 (data.o, fns.o): Add termhooks.h dependency.
21869 (SOME_MACHINE_LISP): Add dnd.elc.
21870 (minibuf.o): Fix typo.
21871 Update dependencies.
21872
21873 * data.c (do_symval_forwarding, store_symval_forwarding)
21874 (find_symbol_value): Use the selected frame's keyboard, not
21875 current_kboard.
21876
21877 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21878 Vwindow_system.
21879
21880 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21881 Fmenu_bar_open.
21882 (syms_of_xmenu): Update defsubr.
21883 (mouse_position_for_popup, Fx_popup_menu)
21884 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21885 (set_frame_menubar, free_frame_menubar)
21886 (create_and_show_popup_menu, xmenu_show)
21887 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21888 an X frame.
21889
21890 * xselect.c (x_own_selection): Abort if not an X frame.
21891 (some_frame_on_display): Check if it is an X frame.
21892 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21893
21894 * coding.c: Include frame.h and termhooks.h.
21895 (terminal_coding, keyboard_coding): Delete.
21896 (Fset_terminal_coding_system_internal)
21897 (Fset_keyboard_coding_system_internal)
21898 (Fkeyboard_coding_system)
21899 (Fterminal_coding_system): Add a terminal parameter.
21900 Get terminal_coding from the terminal.
21901 (init_coding_once): Don't call setup_coding_system here.
21902
21903 * dispextern.h (set_scroll_region, turn_off_insert)
21904 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21905 (tty_clear_end_of_line, tty_setup_colors)
21906 (delete_tty, updating_frame)
21907 (produce_special_glyphs, produce_glyphs, write_glyphs)
21908 (insert_glyphs): Remove.
21909 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21910 (tty_turn_off_highlight, get_tty_size): Add declaration.
21911 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21912
21913 * frame.h (enum output_method): Add output_initial.
21914 (struct x_output): Delete.
21915 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21916 Access foreground_pixel and background_pixel directly from the frame.
21917 (tty_display): Delete.
21918 (struct frame): Add buried_buffer_list, foreground_pixel,
21919 background_pixel and terminal. Delete kboard.
21920 (union output_data): Add tty.
21921 (FRAME_KBOARD): Get the kboard from the terminal.
21922 (FRAME_INITIAL_P): New macro.
21923 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21924 (Qterm_environment_variable, Qdisplay_environment_variable)
21925 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21926 New declarations.
21927
21928 * termchar.h (tty_output, tty_display_info): New structures.
21929 (tty_list): Declare.
21930 (FRAME_TTY, CURTTY): New macros.
21931 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21932 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21933 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21934 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21935
21936 * callproc.c: Include frame.h and termhooks.h, for terminal
21937 parameters.
21938 (add_env): New function.
21939 (child_setup): Use it.
21940 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21941 (getenv_internal): Fix get_terminal_param call.
21942 (Fgetenv_internal, egetenv): Update doc.
21943 (syms_of_callproc): Initialize Vprocess_environment to nil.
21944 Register and initialize them. Remove obsolete defvars. Update doc
21945 strings.
21946 (child_setup): Handle Vlocal_environment_variables.
21947 (getenv_internal): Add terminal parameter.
21948 Handle Vlocal_environment_variables.
21949 (Fgetenv_internal): Add terminal parameter.
21950 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21951 environment in a frame (not terminal) parameter. Update doc strings.
21952 (set_initial_environment): Rename from set_global_environment.
21953 Store Emacs environment in initial frame parameter.
21954
21955 * xdisp.c (redisplay_internal): Update references to
21956 `previous_terminal_frame'.
21957 (display_mode_line, Fformat_mode_line): Replace calls to
21958 `push_frame_kboard' with `push_kboard'.
21959 (get_glyph_string_clip_rects): Add extra parentheses and
21960 braces to prevent compiler warnings.
21961 (calc_pixel_width_or_height): Add xassert to check that the
21962 frame is alive. Don't call `lookup_image' on a termcap frame.
21963 (message2_nolog, message3_nolog, redisplay_internal)
21964 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21965 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21966 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21967 (Fx_display_pixel_width, Fx_display_pixel_height)
21968 (Fx_display_planes, Fx_display_color_cells)
21969 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21970 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21971 (Fx_display_backing_store, Fx_display_visual_class)
21972 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21973 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21974
21975 * xfns.c (x_set_foreground_color x_set_background_color)
21976 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21977 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21978 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21979 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21980 terminal that is being deleted.
21981 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21982 frame parameter, and make sure it overrides any user-supplied setting.
21983 (Fx_close_connection, Fx_synchronize): Unify argument names with
21984 the rest of the DEFUNs.
21985
21986 * dispnew.c (Fsend_string_to_terminal): Update call to
21987 `get_tty_terminal'.
21988 (Fredraw_frame, Fsend_string_to_terminal)
21989 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21990 FRAME_TERMCAP_P and FRAME_TTY.
21991 (window_change_signal): Don't believe width/height values that are
21992 impossibly small.
21993 (Vinitial_window_system): Rename from Vwindow_system.
21994 (termscript, Wcm, rif): Delete.
21995
21996 * termhooks.h (struct terminal): New struct containing the
21997 previously global text display hooks and new members NAME,
21998 DELETED and PARAM_ALIST.
21999 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22000 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22001 (FRAME_RIF): New macros.
22002 (get_terminal_param, get_device): New declarations.
22003 (termscript): Delete declaration.
22004
22005 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22006 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22007 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22008 FRAME_FOREGROUND_PIXEL.
22009 (x_fully_uncatch_errors): Disable definition.
22010 (x_scroll_bar_expose): Fix reference to foreground pixel.
22011 (XTread_socket): Disable loop on all X displays.
22012 (x_delete_terminal): Don't set terminal->deleted and let
22013 delete_terminal delete the frames on the terminal.
22014 (x_delete_display): Doc update to reflect changes in
22015 delete_terminal.
22016 (x_display_info) <terminal>: Move member earlier in the struct.
22017 (deleting_tty): Remove old variable.
22018 (Fsuspend_tty): Call clear_tty_hooks.
22019 (Fresume_tty, init_tty): Call set_tty_hooks.
22020 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22021 errors on X frames.
22022 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22023 (handle_one_xevent): Initialize `f' to NULL.
22024 (x_delete_terminal, x_create_terminal): New functions.
22025 (XTset_terminal_modes, XTreset_terminal_modes)
22026 (XTread_socket, x_connection_closed, x_term_init)
22027 (x_term_init, x_delete_display): Add terminal parameter.
22028 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22029 X connections.
22030
22031 * frame.c: Include termchar.h.
22032 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22033 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22034 (Qdisplay_environment_variable): New vars.
22035 (Fframep): Deal with output_initial.
22036 (Fframe-live-p): Doc fix.
22037 (Fwindow-system): New function.
22038 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22039 (make_terminal_frame): Don't create frames on a terminal that is
22040 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22041 (store_frame_param): Check for found_for_frame before calling XFRAME.
22042 (Fmake_terminal_frame): Handle NULL tty names correctly.
22043 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22044 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22045 frames to refer to a deleted frame in their 'environment parameter.
22046 (Fframe_with_environment): New function.
22047 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22048 (get_future_frame_param): New function.
22049 (Fmake_terminal_frame): Use it.
22050 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22051
22052 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22053 * sysdep.c (reset_sys_modes): Update for renames.
22054
22055 * keyboard.c (tty_read_avail_input): New function.
22056 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22057 (syms_of_keyboard): Defsubr them.
22058 (Fset_input_meta_mode, Fset_quit_char): New functions.
22059 (Fset_input_mode): Split to above functions.
22060 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22061 parameter. Use it in call to `read_char'.
22062 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22063 Set wrong_kboard_jmpbuf correctly in recursive calls.
22064 Use current_kboard to access Vkeyboard_translate_table.
22065 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22066 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22067 Update longjmp invocations. Remember the original current_kboard,
22068 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22069 changes it. Comment out unnecessary calls to
22070 `record_single_kboard_state' and `any_kboard_state'.
22071 Update recursive calls.
22072 (wrong_kboard_jmpbuf): Remove global variable.
22073 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22074 Handle deleted interrupted_kboards correctly; that is a legal
22075 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22076 and read_char calls. Abort if interrupted_kboard died in read_char.
22077 (any_kboard_state, single_kboard_state)
22078 (push_frame_kboard): Remove function.
22079 (pop_kboard): Switch out of single_kboard mode if the kboard has
22080 been deleted. Remove unused variable. Help debugging by not
22081 changing current_kboard unnecessarily. Set current_kboard to the
22082 kboard of the selected frame when the stored kboard object has
22083 been deleted before pop_kboard.
22084 (temporarily_switch_to_single_kboard): Change first parameter to a
22085 frame pointer. Throw an error when caller wants to change kboards
22086 while in single_kboard mode. Don't push_kboard if we weren't in
22087 single kboard state. Don't pop_kboard if we popped into any
22088 kboard state.
22089 (restore_kboard_configuration): Abort if pop_kboard changed the
22090 kboard in single_kboard mode. Call pop_kboard only after setting
22091 up single_kboard mode.
22092 (Frecursive_edit): Switch to single_kboard mode only in nested
22093 command loops.
22094 (cmd_error, command_loop, command_loop_1, timer_check):
22095 Comment out unnecessary call to `any_kboard_state' and
22096 `record_single_kboard_state'.
22097 (delete_kboard): Exit single_kboard mode if we have just deleted
22098 that kboard. Use FRAME_KBOARD.
22099 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22100 `fatal_error_signal'.
22101 (record_single_kboard_state): Don't push_kboard if we weren't in
22102 single kboard state. Don't pop_kboard if we popped into any
22103 kboard state.
22104 (push_frame_kboard): Rename to push_kboard.
22105 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22106 (read_avail_input): Read input from all terminals.
22107 (mark_kboards): Also mark Vkeyboard_translate_table.
22108 (kbd_buffer_store_event_hold): Simplify condition.
22109 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22110 (Vkeyboard_translate_table): Move to struct kboard.
22111 (init_kboard): Initialize Vkeyboard_translate_table.
22112 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22113 Vkeyboard_translate_table. Update doc strings. Update docs of
22114 local-function-key-map and function-key-map.
22115
22116 * terminal.c: New file.
22117
22118 * term.c: Include errno.h.
22119 (Vring_bell_function, device_list, initial_device)
22120 (next_device_id, ring_bell, update_begin, update_end)
22121 (set_terminal_window, cursor_to, raw_cursor_to)
22122 (clear_to_end, clear_frame, clear_end_of_line)
22123 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22124 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22125 (syms_of_term): Move their initialization to terminal.c.
22126 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22127 (Ftty_display_color_cells)
22128 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22129 (clear_tty_hooks, set_tty_hooks)
22130 (init_tty, maybe_fatal): New functions.
22131 (Ftty_type): Return nil if terminal is not on a tty instead of
22132 throwing an error. Doc update.
22133 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22134 Doc update. Initialize new subrs and variables.
22135 (delete_tty): Use terminal->deleted.
22136 (tty_set_terminal_modes): Rename from set_terminal_modes.
22137 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22138 (set_scroll_region): Rename to `tty_set_scroll_region'.
22139 (turn_on_insert): Rename to `tty_turn_on_insert'.
22140 (turn_off_insert): Rename to `tty_turn_off_insert'.
22141 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22142 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22143 (toggle_highligh): Rename to `tty_toggle_highlight'.
22144 (background_highlight): Rename to `tty_background_highlight'.
22145 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22146 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22147 (tty_set_scroll_region, tty_background_highlight)
22148 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22149 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22150 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22151 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22152 Add static modifier.
22153 (tty_reset_terminal_modes, tty_set_terminal_window)
22154 (tty_set_scroll_region, tty_background_highlight)
22155 (tty_highlight_if_desired, tty_cursor_to)
22156 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22157 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22158 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22159 renames.
22160
22161 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22162
22163 * keyboard.c: Qrtl is new.
22164 (parse_tool_bar_item): Handle :rtl keyword.
22165 (syms_of_keyboard): Intern :rtl keyword.
22166
22167 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22168
22169 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22170 so no Lisp code is executed.
22171 (file_for_image, find_rtl_image): New functions.
22172 (xg_get_image_for_pixmap): Use file_for_image.
22173 (update_frame_tool_bar): If direction is RTL, use RTL image if
22174 defined. Use Gtk stock images if defined.
22175
22176 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22177
22178 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22179 for nonexistent or zero-width glyph in composition glyph.
22180
22181 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22182
22183 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22184
22185 * xdisp.c (Finvisible_p): New function.
22186 (syms_of_xdisp): defsubr it.
22187
22188 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
22189
22190 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22191 Doc fixes.
22192
22193 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22194
22195 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22196
22197 2007-08-24 Martin Rudalics <rudalics@gmx.at>
22198
22199 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22200 whether decoding has modified buffer contents.
22201
22202 2007-08-24 Jason Rumney <jasonr@gnu.org>
22203
22204 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22205 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22206 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22207 (init_svg_functions) [HAVE_NTGUI]: New function.
22208 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22209 (svg_load_image): Use them.
22210 (svg_load_image) [HAVE_NTGUI]: Implement background.
22211
22212 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22213
22214 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22215 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22216 (LIBX): Remove @RSVG_LIBS@.
22217 (LIBES): Add $(RSVG_LIBS).
22218
22219 * image.c (svg_load_image): Blend with specified background if exists.
22220 Use IMAGE_BACKGROUND. Add Mac OS Support.
22221
22222 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22223 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22224 Remove macros.
22225 [MAC_OSX] (socket_callback): Do nothing.
22226 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22227 ReceiveNextEvent.
22228 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22229 socket_callback.
22230 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22231
22232 2007-08-22 Glenn Morris <rgm@gnu.org>
22233
22234 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22235
22236 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22237
22238 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22239
22240 * image.c: Add support for SVG images. Some additional comments
22241 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22242 (svg_image_p): New function to test for SVG image.
22243 (svg_load): New function to load SVG image.
22244 (svg_load_image): New function, helper for svg_load.
22245 (Qsvg): New Lisp_object.
22246 (svg_keyword_index): New enum.
22247 (svg_format): New static `image_keyword' struct.
22248 (svg_type): New static `image_type' struct.
22249 (librsvg/rsvg.h): Include it.
22250
22251 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22252
22253 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22254
22255 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22256
22257 * lread.c (Qold_style_backquotes): New var.
22258 (syms_of_lread): Init and staticpro it.
22259 (load_warn_old_style_backquotes): New fun.
22260 (Fload): Use them to warn about old style backquotes.
22261 (end_of_file_error, Fload): Remove unused vars.
22262
22263 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22264
22265 * lread.c (Vold_style_backquotes): New var.
22266 (syms_of_lread): Init and export it to Elisp.
22267 (read1): Set it when we find an old-style (back)quote.
22268
22269 2007-08-22 Jason Rumney <jasonr@gnu.org>
22270
22271 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22272
22273 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22274
22275 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22276
22277 2007-08-19 Richard Stallman <rms@gnu.org>
22278
22279 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22280
22281 2007-08-19 Andreas Schwab <schwab@suse.de>
22282
22283 * alloc.c (pure): Round PURESIZE up.
22284
22285 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22286
22287 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22288 active frame.
22289
22290 2007-08-16 Richard Stallman <rms@gnu.org>
22291
22292 * eval.c (Fcommandp): Add parens to clarify.
22293
22294 * minibuf.c (Fall_completions): Use enum for type of table.
22295
22296 * emacs.c (USAGE2): Improve text.
22297
22298 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22299
22300 * term.c (tty_default_color_capabilities): Declare static
22301 variables in file scope, to avoid HPUX compiler problem.
22302
22303 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22304
22305 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22306 to gtk_toolbar_insert.
22307
22308 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22309
22310 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22311
22312 * insdel.c (reset_var_on_error): New fun.
22313 (signal_before_change, signal_after_change):
22314 Use it to reset (after|before)-change-functions to nil in case of error.
22315 Bind inhibit-modification-hooks to t.
22316 Don't bind (after|before)-change-functions to nil while they run.
22317
22318 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22319
22320 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22321 filling pixmap with stippled background.
22322
22323 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22324
22325 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22326 Don't use invisible frame as parent window for repositioning.
22327
22328 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22329
22330 * print.c (new_backquote_output): Rename from old_backquote_output.
22331 (print): Inverse its logic (according to its name) so as to match the
22332 behavior of new_backquote_flag in lread.c.
22333
22334 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22335
22336 * gmalloc.c (posix_memalign): New function.
22337
22338 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22339 ActivateControl/DeactivateControl here.
22340 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22341 frame-notice-user-settings is non-nil.
22342 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22343 for kEventParamFMFontStyle.
22344 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22345 mac_pass_command_to_system and mac_pass_control_to_system here.
22346 (XTread_socket): Call ActivateControl/DeactivateControl here.
22347 (XTread_socket) [TARGET_API_MAC_CARBON]:
22348 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22349 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22350 for window repositioning.
22351
22352 2007-08-08 Glenn Morris <rgm@gnu.org>
22353
22354 * Replace `iff' in doc-strings and comments.
22355
22356 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
22357
22358 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22359
22360 2007-08-07 Martin Rudalics <rudalics@gmx.at>
22361
22362 * fileio.c (Finsert_file_contents): Run format-decode and
22363 after_insert_file_functions on entire buffer when REPLACE is
22364 non-nil and inhibit modification_hooks and point_motion_hooks.
22365 For consistency, run after_insert_file_functions iff something
22366 got inserted. Move signal_after_change and update_compositions
22367 after code running after_insert_file_functions. Make sure that
22368 undo_list doesn't record intermediate steps of the decoding process.
22369
22370 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22371
22372 * emacs.c (main)
22373 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22374 Call malloc_enable_thread on interactive startup.
22375
22376 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22377 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22378 [USE_PTHREAD]: Conditionalize with it.
22379 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22380 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22381 New functions.
22382
22383 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
22384
22385 * xdisp.c (redisplay_window): When restoring original buffer
22386 position, make sure it is still valid.
22387
22388 * image.c (png_load): Ignore png-supplied background color.
22389
22390 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22391
22392 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22393 Use kCFAbsoluteTimeIntervalSince1970.
22394
22395 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22396 New variable.
22397 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22398 event loop should be quit.
22399 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22400 Quit dialog event loop if quit_dialog_event_loop is set.
22401
22402 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22403 (Selection): New typedef. Use instead of ScrapRef.
22404 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22405 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22406 (mac_clear_selection): Rename from clear_scrap.
22407 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22408 scrap_has_target_type. All uses changed.
22409 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22410 (mac_selection_has_target_p): New functions.
22411 (mac_put_selection_value): Rename from put_scrap_string.
22412 (mac_get_selection_value): Rename from get_scrap_string.
22413 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22414 (put_scrap_private_timestamp, scrap_has_target_type)
22415 (get_scrap_private_timestamp): Remove functions.
22416 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22417 (x_own_selection, x_get_local_selection):
22418 Use mac_valid_selection_value_p.
22419 (x_own_selection): Don't use put_scrap_private_timestamp.
22420 Record OWNERSHIP-INFO into Vselection_alist instead.
22421 (x_get_local_selection): Don't check type if request is local.
22422 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22423 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22424
22425 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22426
22427 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22428 add comment explaining why.
22429
22430 2007-08-03 Richard Stallman <rms@gnu.org>
22431
22432 * fileio.c (Fvisited_file_modtime): Use make_time.
22433
22434 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22435
22436 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22437 build.
22438
22439 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22440
22441 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22442
22443 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22444
22445 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22446
22447 2007-07-30 Richard Stallman <rms@gnu.org>
22448
22449 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22450
22451 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22452
22453 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22454
22455 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
22456
22457 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22458 remote default-directory.
22459
22460 * buffer.c (mode-line-format): Update doc string.
22461
22462 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22463
22464 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22465 scroll bar gap.
22466 (x_scroll_bar_create): Set bar->fringe_extended_p.
22467 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22468 on frame edge. Check fringe background extension. Don't clear
22469 extended fringe background area.
22470
22471 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22472 (w32_fill_area): Enclose multiple statements with do ... while (0).
22473
22474 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22475 Extend fringe background to scroll bar gap.
22476 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22477 Set bar->fringe_extended_p.
22478 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22479 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22480 background extension. Don't clear extended fringe background area.
22481
22482 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22483 New member fringe_extended_p.
22484
22485 2007-07-25 Glenn Morris <rgm@gnu.org>
22486
22487 * Relicense all FSF files to GPLv3 or later.
22488
22489 * COPYING: Switch to GPLv3.
22490
22491 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22492
22493 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22494
22495 * data.c (Finteractive_form): Check for the presence of an
22496 `interactive-form' symbol property more thoroughly.
22497
22498 * data.c (Finteractive_form): Use an `interactive-form' property if
22499 present, analogous to the function-documentation property.
22500
22501 2007-07-24 Jason Rumney <jasonr@gnu.org>
22502
22503 * w32fns.c (x_real_positions): Get real position from OS instead of
22504 calculating it.
22505
22506 2007-07-23 Jason Rumney <jasonr@gnu.org>
22507
22508 * filelock.c (current_lock_owner): Allow for @ sign in username.
22509
22510 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
22511
22512 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22513 remote default-directory.
22514
22515 * buffer.c (mode-line-format): Describe above case in doc string.
22516
22517 2007-07-20 Eli Zaretskii <eliz@gnu.org>
22518
22519 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22520 Define if not defined.
22521
22522 2007-07-18 Jason Rumney <jasonr@gnu.org>
22523
22524 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22525
22526 2007-07-18 Richard Stallman <rms@gnu.org>
22527
22528 * data.c (Fsetq_default): Doc fix.
22529
22530 * eval.c (Fsetq): Doc fix.
22531
22532 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
22533
22534 * coding.c (Ffind_operation_coding_system):
22535 * eval.c (For, Fand): Doc fixes.
22536 Reported by Johan Bockgård.
22537
22538 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22539
22540 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22541
22542 * xterm.h: Declare x_ewmh_activate_frame.
22543
22544 * xterm.c (x_ewmh_activate_frame): New function.
22545 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22546
22547 2007-07-17 Martin Rudalics <rudalics@gmx.at>
22548
22549 * window.c (Fdisplay_buffer): If largest or LRU window is the
22550 only window, split it even if it is not eligible for splitting.
22551 This restores the original behavior broken by the 2007-07-15
22552 change.
22553
22554 2007-07-17 Glenn Morris <rgm@gnu.org>
22555
22556 * abbrev.c (abbrev_check_chars): New function.
22557 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22558 Call abbrev_check_chars to check abbrev characters are word
22559 constituents. Doc fix.
22560
22561 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22562
22563 * process.c (Fstart_process, Fmake_network_process)
22564 (read_process_output): Fix up last changes.
22565
22566 2007-07-16 Eli Zaretskii <eliz@gnu.org>
22567
22568 * makefile.w32-in (clean): Don't delete *~.
22569
22570 2007-07-16 Andreas Schwab <schwab@suse.de>
22571
22572 * window.c (Fdisplay_buffer): Use NILP.
22573 (Fset_window_scroll_bars): Likewise.
22574
22575 2007-07-15 Martin Rudalics <rudalics@gmx.at>
22576
22577 * window.c (window_min_size_2): New function.
22578 (window_min_size_1, size_window, Fdisplay_buffer)
22579 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22580 windows without mode- or header-lines when window-min-height is
22581 too small.
22582 (size_window): Reset nodelete_p after testing it, following an
22583 earlier note by Kim F. Storm.
22584 (display_buffer): Do not set split_height_threshold to twice the
22585 value of window_min_height to avoid changing the value of a
22586 customizable variable. Rather explicitly check whether the
22587 height of the window that shall be splitted is at least as large
22588 as split_height_threshold.
22589 (Fwindow_full_width_p): New defun.
22590 (syms_of_window): Defsubr it.
22591
22592 * window.h: Add EXFUN for Fwindow_full_width_p.
22593
22594 2007-07-14 Jason Rumney <jasonr@gnu.org>
22595
22596 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22597
22598 2007-07-14 Richard Stallman <rms@gnu.org>
22599
22600 * eval.c (maybe_call_debugger): New function.
22601 (find_handler_clause): Use maybe_call_debugger.
22602 Call it when the handler says `debug'.
22603 Eliminate DEBUGGER_VALUE_PTR.
22604 (Fsignal): Eliminate debugger_value.
22605 (Qdebug): New variable.
22606 (syms_of_eval): Initialize it.
22607
22608 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
22609
22610 * eval.c (Fprogn):
22611 * keyboard.c (Ftrack_mouse):
22612 * print.c (Fwith_output_to_temp_buffer):
22613 * window.c (Fsave_window_excursion): Doc fix.
22614
22615 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22616
22617 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22618
22619 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22620
22621 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22622 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22623 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22624 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22625 Remove unused encoding_carryover.
22626 * process.c: Adjust all functions accordingly.
22627
22628 2007-07-12 Richard Stallman <rms@gnu.org>
22629
22630 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22631
22632 2007-07-11 Jason Rumney <jasonr@gnu.org>
22633
22634 * makefile.w32-in (LIBS): Include OLE32.
22635
22636 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22637 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22638
22639 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22640
22641 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22642 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22643 from a Lisp_Object into a bare pointer.
22644 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22645 Adjust the code correspondingly.
22646
22647 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22648
22649 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22650 (term_show_mouse_face): Remove unused var `j'.
22651 (handle_one_term_event): Remove unused vars `i' and `j'.
22652 Don't cast return value of ttyname since it's not necessary.
22653
22654 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22655
22656 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22657 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22658
22659 * fns.c (map_char_table): Use an array of int for `indices' rather than
22660 an array of Lisp_Objects (which are only ever integers anyway).
22661 (Fmap_char_table): Update caller.
22662 * lisp.h: Update prototype.
22663 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22664 * fontset.c (Ffontset_info):
22665 * casetab.c (set_case_table): Update callers.
22666
22667 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22668
22669 * keymap.c (struct accessible_keymaps_data)
22670 (struct where_is_internal_data): New structures.
22671 (accessible_keymaps_1, where_is_internal_1): Use them to change
22672 interface to adhere to the one used by map_keymap.
22673 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22674 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22675
22676 * keymap.h (map_keymap_function_t): More informative prototype.
22677
22678 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22679
22680 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22681 (looking_at_1): Don't change search_regs and last_thing_searched
22682 if `inhibit-changing-match-data' is non-nil.
22683 (string_match_1, search_buffer, set_search_regs): Likewise.
22684 (syms_of_search): Add Lisp level definition for
22685 `inhibit-changing-match-data' and set it to nil.
22686 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22687 start and end of the match, instead of using values in search_regs.
22688
22689 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22690
22691 * minibuf.c (Fcompleting_read): New value `confirm-only'
22692 for `require-match'.
22693
22694 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22695
22696 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22697 part of the 2007-06-27 change to syms_of_fileio.
22698
22699 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22700
22701 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22702 Check WINDOWP before using XWINDOW. Consolidate return statements.
22703
22704 2007-06-27 Richard Stallman <rms@gnu.org>
22705
22706 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22707
22708 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
22709
22710 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22711
22712 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22713
22714 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22715 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22716 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22717 (_free_internal, memalign): Use them.
22718 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22719 Initialize to PTHREAD_MUTEX_INITIALIZER.
22720 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22721 (morecore_nolock): Rename from morecore. All uses changed.
22722 Use only nolock versions of internal allocation functions.
22723 (_malloc_internal_nolock, _realloc_internal_nolock)
22724 (_free_internal_nolock): New functions created from
22725 _malloc_internal, _realloc_internal, and _free_internal.
22726 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22727 Copy hook value to automatic variable before its use.
22728 (memalign): Copy hook value to automatic variable before its use.
22729
22730 2007-06-26 Kenichi Handa <handa@m17n.org>
22731
22732 * coding.c (Ffind_operation_coding_system): Docstring improved.
22733 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22734
22735 2007-06-25 David Kastrup <dak@gnu.org>
22736
22737 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22738 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22739 cater for additional parameter.
22740
22741 * keymap.h: Adjust number of parameters to `current-active-maps'.
22742
22743 * doc.c (Fsubstitute_command_keys): Adjust call of
22744 `current-active-maps'.
22745
22746 2007-06-25 David Kastrup <dak@gnu.org>
22747
22748 * callint.c (Fcall_interactively): Make the parsing of interactive
22749 specs somewhat more readable.
22750
22751 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22752
22753 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22754 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22755 if extended background has already been filled.
22756
22757 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22758
22759 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22760 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22761
22762 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22763 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22764 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22765 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22766 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22767 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22768 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22769 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22770 Run timers during dialog popup.
22771 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22772
22773 2007-06-21 Jason Rumney <jasonr@gnu.org>
22774
22775 * image.c (convert_mono_to_color_image): Swap fore and background.
22776
22777 2007-06-20 Jason Rumney <jasonr@gnu.org>
22778
22779 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22780 (w32_free_bdf_font): Unmap memory not handle.
22781
22782 2007-06-20 Sam Steingold <sds@gnu.org>
22783
22784 * gmalloc.c (__morecore): Fix the declaration to comply with the
22785 definition.
22786
22787 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
22788
22789 * w32term.c (w32_delete_display): Remove leftover declaration.
22790 (w32_define_cursor, w32_initialize): Make static.
22791
22792 * w32.c (_wsa_errlist): Fix typo in error message.
22793 (init_environment): Ignore any environment variable from the
22794 registry having a null value.
22795
22796 2007-06-20 Glenn Morris <rgm@gnu.org>
22797
22798 * Makefile.in (LIBGIF): Default to -lgif.
22799
22800 2007-06-17 Jason Rumney <jasonr@gnu.org>
22801
22802 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22803 unicode strings.
22804
22805 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
22806
22807 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22808 Fix typo in docstring.
22809
22810 2007-06-16 Eli Zaretskii <eliz@gnu.org>
22811
22812 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22813 and their keybindings.
22814
22815 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
22816
22817 * composite.c (update_compositions): Fix last fix.
22818
22819 2007-06-14 Jason Rumney <jasonr@gnu.org>
22820
22821 * w32.c (get_process_times_fn): New function pointer.
22822 (globals_of_w32): Intialize it if present in kernel32.dll.
22823 (w32_get_internal_run_time): New function.
22824
22825 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22826
22827 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22828
22829 * composite.c (update_compositions): Check the validness of
22830 compositions.
22831
22832 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22833
22834 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22835 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22836
22837 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22838 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22839
22840 * macgui.h (USE_MAC_TOOLBAR): New define.
22841
22842 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22843 Return immediately unless popup is activated.
22844
22845 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22846 background to scroll bar gap.
22847 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22848 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22849 scroll bars on frame edge. Check fringe background extension.
22850 Don't clear extended fringe background area.
22851 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22852 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22853 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22854 [USE_MAC_TOOLBAR]: New macros.
22855 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22856 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22857 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22858 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22859 [USE_MAC_TOOLBAR]: New functions.
22860 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22861 manually if previous repositioning has failed.
22862 (mac_handle_keyboard_event): Use precomputed event kind.
22863 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22864 as tool bar item click. Handle mouse movement over tool bar items.
22865
22866 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22867 toolbar_win_gravity.
22868 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22869 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22870 Add externs.
22871
22872 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22873 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22874
22875 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
22876
22877 * image.c (search_image_cache): Remove unused variable.
22878
22879 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
22880
22881 * xfns.c, xmenu.c: Link to xaw3d if available.
22882
22883 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22884
22885 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22886 frame_foreground and frame_background.
22887
22888 * image.c (lookup_image): Save frame foreground and background colors.
22889 (search_image_cache): Check if saved and current frame colors match.
22890
22891 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22892
22893 * regex.c (regex_compile): Remove the `regnum' counter.
22894 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22895
22896 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22897
22898 * term.c: Include intervals.h to declare Fget_text_property.
22899
22900 2007-06-10 Jason Rumney <jasonr@gnu.org>
22901
22902 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22903
22904 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
22905
22906 * callint.c (Fcall_interactively):
22907 * editfns.c (Fdelete_and_extract_region):
22908 * fileio.c (Fread_file_name):
22909 * fns.c (Fmapconcat):
22910 * keyboard.c (cmd_error_internal):
22911 * keymap.c (Fkey_description):
22912 * lread.c (openp):
22913 * minibuf.c (read_minibuf):
22914 * search.c (wordify):
22915 * sunfns.c (sel_read):
22916 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22917 * xfns.c (x_default_scroll_bar_color_parameter):
22918 * xmenu.c (menu_help_callback):
22919 * xselect.c (Fx_get_atom_name):
22920 * xterm.c (x_term_init): Use empty_unibyte_string.
22921
22922 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22923
22924 * alloc.c (init_strings): Initialize canonical empty strings.
22925 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22926 canonical empty string when the requested size is 0.
22927
22928 * emacs.c (empty_unibyte_string): Rename from empty_string.
22929 (empty_multibyte_string): New canonical empty string.
22930 (syms_of_emacs): Don't initialize empty_string.
22931
22932 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22933 string, if appropriate.
22934 (empty_unibyte_string, empty_multibyte_string): New externs.
22935 (empty_string): Remove extern.
22936
22937 * lread.c (syms_of_lread): Use empty_unibyte_string.
22938
22939 2007-06-07 Jason Rumney <jasonr@gnu.org>
22940
22941 * s/ms-w32.h: Don't define HAVE_TZNAME.
22942
22943 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22944
22945 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22946
22947 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22948
22949 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22950 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22951
22952 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22953 Don't call next handler.
22954 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22955 Remove argument. Install handler to application.
22956 (set_frame_menubar): Don't change deep_p.
22957 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22958 FRAME_OUTER_TO_INNER_DIFF_Y.
22959 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22960 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22961 [HAVE_DIALOGS]: New macros.
22962 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22963 Use them.
22964 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22965
22966 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22967 init_service_handler. All callers changed. Return OSStatus value.
22968
22969 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22970 All callers changed so as not to call SetPortWindowPort.
22971 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22972 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22973 mac_draw_string_common.
22974 (mac_draw_image_string_qd): Likewise.
22975 (mac_draw_string_common): Use them. Add INLINE.
22976 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22977 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22978 GetGlobalMouse.
22979 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22980 and FRAME_OUTER_TO_INNER_DIFF_Y.
22981 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22982 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22983 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22984 repositioning window to mac_handle_window_event.
22985 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22986 saving window location to mac_handle_window_event
22987 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22988 (install_menu_target_item_handler): Remove argument in extern.
22989 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22990 Also accept command events.
22991 (do_keystroke): New function created from XTread_socket.
22992 (init_command_handler): Remove functions.
22993 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22994 and save window location by kEventWindowShowing and kEventWindowHiding
22995 handlers here. Don't call next handler for window state change and
22996 focus events.
22997 (mac_handle_application_event, mac_handle_keyboard_event)
22998 [TARGET_API_MAC_CARBON]: New functions.
22999 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23000 kEventWindowShowing and kEventWindowHiding events. Move installation
23001 of mouse, font, text input and menu target item handlers to
23002 install_application_handler.
23003 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23004 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23005 New function.
23006 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23007 Register it.
23008 (XTread_socket) [TARGET_API_MAC_CARBON]:
23009 Consolidate SendEventToEventTarget calls.
23010 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23011 Move application activation handler to mac_handle_application_event.
23012 Move keyboard handler to mac_handle_keyboard_event.
23013 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23014 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23015 init_command_handler. Call install_application_handler.
23016
23017 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23018 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23019
23020 2007-06-07 Glenn Morris <rgm@gnu.org>
23021
23022 * emacs.c (main): Use `emacs-copyright' in --version output.
23023
23024 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23025
23026 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23027
23028 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23029
23030 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23031
23032 * macgui.h: Replace WindowPtr with WindowRef.
23033
23034 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23035 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23036 Replace ControlHandle with ControlRef.
23037 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23038
23039 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23040 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23041 Replace ControlHandle with ControlRef.
23042 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23043 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23044
23045 * macterm.h (struct scroll_bar): Rename member control_handle_low
23046 and control_handle_high to control_ref_low and control_ref_high.
23047 All uses changed.
23048 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23049 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23050 respectively. All uses changed.
23051 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23052 (install_window_handler, remove_window_handler): Replace WindowPtr
23053 with WindowRef in externs.
23054
23055 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
23056
23057 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23058
23059 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
23060
23061 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23062
23063 * frame.c (Fmouse_position, Fmouse_pixel_position):
23064 Condition on HAVE_GPM too.
23065
23066 * term.c (term_mouse_highlight): Remove unused variables.
23067 (Fterm_open_connection): Set gpm_zerobased to 1.
23068 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23069 Use zero based co-ordinates.
23070 (handle_one_term_event): Report a drag as mouse movement too.
23071
23072 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23073
23074 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
23075
23076 * image.c (search_image_cache): New function. Require background
23077 color match if background color is unspecified in the image spec.
23078 (uncache_image, lookup_image): Use it.
23079
23080 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
23081
23082 * window.c (Fshrink_window): Reflow docstring.
23083
23084 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
23085
23086 * Version 22.1 released.
23087
23088 2007-06-01 Richard Stallman <rms@gnu.org>
23089
23090 * xfns.c (x_encode_text): Add GCPRO.
23091
23092 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23093
23094 * xfns.c (x_set_name_internal): Save encoded name before
23095 x_encode_text in case string data is relocated.
23096
23097 2007-05-31 Richard Stallman <rms@gnu.org>
23098
23099 * buffer.c (syms_of_buffer): Doc fix.
23100
23101 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
23102
23103 * sysdep.c (init_sys_modes): Add rather than replace with
23104 O_NONBLOCK.
23105
23106 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23107 term_mouse_moveto.
23108
23109 * termhooks.h (term_mouse_moveto): New extern.
23110
23111 * term.c (mouse_face_window): Rename...
23112 (Qmouse_face_window): ...to this.
23113 (term_show_mouse_face, term_clear_mouse_face)
23114 (term_mouse_highlight): Use Qmouse_face_window.
23115 (term_mouse_moveto): New function.
23116 (term_mouse_position): Make it work.
23117 (syms_of_term): Uncomment assignment to mouse_position_hook.
23118 Staticpro Qmouse_face_window.
23119
23120 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23121
23122 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23123 around current_column call.
23124
23125 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23126
23127 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23128 * xdisp.c (next_element_from_buffer):
23129 * window.c (delete_window):
23130 * term.c (term_mouse_highlight):
23131 * msdos.c (getdefdir):
23132 * macterm.c (mac_create_bitmap_from_bitmap_data)
23133 (init_font_name_table):
23134 * fns.c (Fsxhash):
23135 * data.c (Fmake_local_variable):
23136 * ccl.c (ccl_driver): Likewise.
23137
23138 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23139
23140 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23141 Call mac_wakeup_from_rne on window size change.
23142
23143 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
23144
23145 * image.c (uncache_image): Fix typo.
23146
23147 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23148
23149 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23150
23151 2007-05-22 Richard Stallman <rms@gnu.org>
23152
23153 * xterm.c (x_connection_closed): Remove NO_RETURN.
23154
23155 2007-05-22 Martin Rudalics <rudalics@gmx.at>
23156
23157 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23158
23159 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
23160
23161 * image.c (uncache_image): New function.
23162 (Fimage_refresh): New function.
23163
23164 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23165
23166 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23167
23168 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23169
23170 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23171 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23172
23173 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23174
23175 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23176 conditional on [HAVE_GPM_H].
23177
23178 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23179
23180 * syntax.c (skip_chars): Update syntax-table only after we checked that
23181 the new location is valid.
23182
23183 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23184
23185 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23186 mac_get_window_bounds.
23187
23188 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23189
23190 * Makefile.in (LIBGPM): Allow it to be set from configure.
23191 If set then link Emacs with it.
23192
23193 * config.in: Regenerate.
23194
23195 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23196 New externs.
23197
23198 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23199 Include gpm.h.
23200 (handle_one_term_event, term_gpm): New externs.
23201
23202 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23203 and allow it to be interrupted by SIGIO.
23204
23205 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23206 (wait_reading_process_output): Wait on gpm_fd too.
23207 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23208 (add_gpm_wait_descriptor_called_flag): New variable.
23209 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23210
23211 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23212 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23213 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23214 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23215 (make_lispy_event): Add case GPM_CLICK_EVENT.
23216 (read_avail_input): Handle mouse input.
23217
23218 * term.c (write_glyphs_with_face): New function.
23219 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23220 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23221 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23222 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23223 (last_mouse_x, last_mouse_y): New variables.
23224 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23225 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23226 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23227 (Fterm_close_connection): New functions.
23228 (term_init): Initialise mouse_face_window.
23229
23230 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
23231
23232 * xdisp.c (redisplay_window): If first window line is a
23233 continuation line, recompute the new window start instead of
23234 recentering.
23235
23236 2007-05-18 Glenn Morris <rgm@gnu.org>
23237
23238 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23239 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23240
23241 2007-05-17 Glenn Morris <rgm@gnu.org>
23242
23243 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23244
23245 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23246
23247 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23248 dead key repeat and up events.
23249
23250 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
23251
23252 * image.c (pbm_load): Check image size for monochrome pbm.
23253
23254 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
23255
23256 * xterm.c (XTread_socket): Revert last change.
23257
23258 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
23259
23260 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23261
23262 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23263
23264 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23265
23266 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23267 mixup (YAILOM).
23268
23269 2007-05-07 Andreas Schwab <schwab@suse.de>
23270
23271 * keymap.c (Flookup_key): Fix typo in last change.
23272
23273 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23274
23275 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23276 mapping for unibyte strings.
23277
23278 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23279
23280 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23281 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23282
23283 2007-04-29 Richard Stallman <rms@gnu.org>
23284
23285 * insdel.c (replace_range): For undo, record insertion first.
23286
23287 2007-04-29 Andreas Schwab <schwab@suse.de>
23288
23289 * lisp.h (VECSIZE): Use OFFSETOF.
23290
23291 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23292
23293 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23294 disabled lines.
23295
23296 2007-04-28 Richard Stallman <rms@gnu.org>
23297
23298 * lread.c (read_escape): In a string, \s is always space.
23299
23300 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23301
23302 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23303
23304 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23305 submenu for menu bar items.
23306
23307 See ChangeLog.10 for earlier changes.
23308
23309 ;; Local Variables:
23310 ;; coding: utf-8
23311 ;; add-log-time-zone-rule: t
23312 ;; End:
23313
23314 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
23315
23316 This file is part of GNU Emacs.
23317
23318 GNU Emacs is free software: you can redistribute it and/or modify
23319 it under the terms of the GNU General Public License as published by
23320 the Free Software Foundation, either version 3 of the License, or
23321 (at your option) any later version.
23322
23323 GNU Emacs is distributed in the hope that it will be useful,
23324 but WITHOUT ANY WARRANTY; without even the implied warranty of
23325 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23326 GNU General Public License for more details.
23327
23328 You should have received a copy of the GNU General Public License
23329 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23330
23331 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40