* xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3e56b11d
JD
12010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4
e3cf0cde
GM
52010-05-06 Glenn Morris <rgm@gnu.org>
6
7 * Makefile.in (CPP, LN_S): Remove unused variables.
8
774b9a60
SM
92010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10
11 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
12
4ab92842
LM
132010-05-05 Lawrence Mitchell <wence@gmx.li>
14
15 * m/sparc.h: Fix typo in earlier change.
16
178f2507
SM
172010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
18
19 Misc tweaks.
20 * eval.c (Fdefvaralias): Remove unintended nested if.
21 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
22
80f00217 232010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
24
25 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
26
ef03a4e6
DN
272010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
28
58eb6cf0
DN
29 Remove BSD_PGRPS.
30 * s/bsd-common.h (BSD_PGRPS): Remove undef.
31 * s/gnu-linux.h (BSD_PGRPS): Remove.
32 * term.c (dissociate_if_controlling_tty):
33 * sysdep.c (narrow_foreground_group, widen_foreground_group)
34 (init_sys_modes, reset_sys_modes):
35 * emacs.c (main):
36 * callproc.c (Fcall_process, child_setup): Remove code depending
37 on BSD_PGRPS.
38
ef03a4e6
DN
39 Remove POSIX_SIGNALS.
40 * s/usg5-4.h (POSIX_SIGNALS):
41 * s/netbsd.h (POSIX_SIGNALS):
42 * s/msdos.h (POSIX_SIGNALS):
43 * s/ms-w32.h (POSIX_SIGNALS):
44 * s/hpux11.h (POSIX_SIGNALS):
45 * s/gnu.h (POSIX_SIGNALS):
46 * s/gnu-linux.h (POSIX_SIGNALS):
47 * s/freebsd.h (POSIX_SIGNALS):
48 * s/darwin.h (POSIX_SIGNALS):
49 * s/cygwin.h (POSIX_SIGNALS):
50 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
51 * s/unixware.h:
52 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
53 * process.c (create_process):
54 * syssignal.h:
55 * sysdep.c (wait_for_termination, init_signals):
56 * process.c (create_process):
57 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
58 remove all code that assumes the contrary.
59
49628785
GM
602010-05-04 Glenn Morris <rgm@gnu.org>
61
27a2cdfc
GM
62 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
63 variable.
64 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
65 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
66 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
67 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
68 LD_SWITCH_SYSTEM_tmp.
69 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
70 New variables, set by configure.
71
eb21eab5
GM
72 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
73 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
74 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
75 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
76 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
77
49628785
GM
78 * s/aix4-2.h (C_SWITCH_SYSTEM):
79 * m/alpha.h (C_SWITCH_MACHINE):
80 Move to configure.in.
81 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
82 New variables, set by configure.
83 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
84 $c_switch_machine and $c_switch_system.
85
7dff330b
DN
862010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
87
88 * s/hpux10-20.h (LIB_STANDARD): New definition.
89 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
90 on it, not used anymore.
91
53967e09
CY
922010-05-03 Chong Yidong <cyd@stupidchicken.com>
93
94 * eval.c (internal_condition_case_n): Rename from
95 internal_condition_case_2.
96 (internal_condition_case_2): New function.
97
98 * xdisp.c (safe_call): Use internal_condition_case_n.
99
100 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
101 (internal_delete_file, Frename_file): Callers changed.
102
103 * buffer.c (Fkill_buffer):
104 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
105
106 * lisp.h: Update prototypes.
107
3dee6fdb
GM
1082010-05-03 Glenn Morris <rgm@gnu.org>
109
110 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
111 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
112 (LIBXT): Set with configure, not cpp.
113 (LIBX): Remove.
114 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
115
a101e0fb
DN
1162010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
117
118 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
119 The FreeBSD is not needed, the default works, Solaris version is
120 not needed, and the remaining case is not supported by configure.
121
f63d0028
JD
1222010-05-02 Jan Djärv <jan.h.d@swipnet.se>
123
124 * xsmfns.c (CHDIR_OPT): New define.
125 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
126 restarting emacs.
127
128 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
129 shut_down_emacs.
130
131 * emacs.c (USAGE1): Mention --chdir.
132 (main): Handle --chdir.
133 (standard_args): Add --chdir.
134 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
135 #5552).
136
e4814a9f
DN
1372010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
138
cd03c74a
DN
139 Remove LD_SWITCH_MACHINE.
140 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
141 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
142
c3a398a1
DN
143 Clean up IRIX code.
144 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
145 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
146
87e7285c
DN
147 Clean up AIX code.
148 * m/ibmrs6000.inp: Remove file, unused.
149 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
150 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
151 definition ...
152 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
153
80f00217
JB
154 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
155 unused.
e4814a9f 156
59ca28de
EZ
1572010-05-01 Eli Zaretskii <eliz@gnu.org>
158
197daef4
EZ
159 Emulate POSIX_SIGNALS on MS-Windows.
160
161 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
162 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
163
164 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
165 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
166 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
167
80f00217
JB
168 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
169 New stubs.
197daef4 170
af7c7572
EZ
171 Miscellaneous fixes of bidi display.
172
59ca28de
EZ
173 * xdisp.c (find_row_end): New function, refactored from display_line.
174 (display_line): Use it.
017ea819
EZ
175 (extend_face_to_end_of_line): In almost-filled rows, extend only
176 if the row is R2L and not continued.
166e930d 177 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 178 Preserve overlay and string info in row->end.
166e930d
EZ
179 (insert_left_trunc_glyphs): Support addition of left truncation
180 glyphs to R2L rows.
b47e0dcf 181 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
182 glyph between adjacent windows. Fix a crash when a display string
183 is continued to the next line. Don't return zero if cursor was
184 found by `cursor' property of a display string.
b47e0dcf
EZ
185 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
186 test for that explicitly.
59ca28de 187
7acac9f4
GM
1882010-05-01 Glenn Morris <rgm@gnu.org>
189
190 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
191 for clarity.
192 (OTHER_OBJ): Remove.
193 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
194 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
195
45841e65
KK
1962010-05-01 Karel Klíč <kklic@redhat.com>
197
198 * fileio.c (Ffile_selinux_context): Context functions may return null.
199
afc61943
DN
2002010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
201
80f00217 202 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 203
5a1bb006
GM
2042010-04-30 Glenn Morris <rgm@gnu.org>
205
206 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
207 (OTHER_OBJ): Define as a separate variable, for clarity.
208
210af043
J
2092010-04-30 Jan Djärv <jan.h.d@swipnet.se>
210
211 * xsettings.c: include limits.h and update file comment.
212
0a7df391
GM
2132010-04-30 Glenn Morris <rgm@gnu.org>
214
d5096f16
GM
215 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
216 Set with configure, not cpp.
217 (LIBW): Remove, replace with $TOOLKIT_LIBW.
218
7eb1ac33
GM
219 * Makefile.in (mallocobj): Remove.
220 (otherobj): Simplify using @OTHER_OBJ@.
221
517d086b
GM
222 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
223 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
224 Don't bother making nsgui.h dependency platform-specific.
225
0a7df391
GM
226 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
227
d6d23852
SM
2282010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
229
d2630aef
SM
230 * process.c (read_process_output, exec_sentinel): Don't burp if the
231 sentinel/filter kills the current buffer (bug#6060).
232
f9dddf52 233 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
234 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
235 Remove unused var `args'.
236 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
237 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
238 * doc.c (store_function_docstring): Use XSETCAR.
239
f1e3642a
GM
2402010-04-28 Glenn Morris <rgm@gnu.org>
241
faf535f8
GM
242 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
243 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
244
c40f9449
GM
245 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
246
658f86ca
GM
247 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
248 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
249
bc0b5f61
GM
250 * Makefile.in (FONT_OBJ): New, set by configure.
251 (FONT_DRIVERS): Use $FONT_OBJ.
252
294c50a0
GM
253 * Makefile.in (LIBXMU): Set with configure, not cpp.
254 * s/aix4-2.h (LIBXMU):
255 * s/hpux10-20.h (LIBXMU):
256 Remove definition, now set in configure.
257
e6ec4e99
GM
258 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
259
f1e3642a
GM
260 * m/amdx86-64.h [i386]: Move this test to configure.in.
261
c6ea2936
GM
2622010-04-27 Glenn Morris <rgm@gnu.org>
263
8fdac2c3
GM
264 * Makefile.in (LIBXTR6): Set with configure, not cpp.
265 * s/unixware.h (NEED_LIBW): Remove definition.
266
986fb647
GM
267 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
268 (TOOLKIT_LIBW): New, set by configure.
269 (@X_TOOLKIT_TYPE@): No longer define it.
270
c6ea2936
GM
271 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
272 (MOTIF_LIBW): Set with configure, not cpp.
273 * s/aix4-2.h (LIB_MOTIF):
274 * s/gnu-linux.h (LIB_MOTIF):
275 * s/unixware.h (LIB_MOTIF): Move to configure.in.
276
aaa36002
DN
2772010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
278
279 Reduce CPP usage.
280 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
281 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
282 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
283 definitions and undefs. Inline definitions in the only user.
284 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 285
b678dd8b
GM
2862010-04-27 Glenn Morris <rgm@gnu.org>
287
76cda504
GM
288 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
289 since the defaults (set by the system file) are fine in most cases.
290 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
291 * m/ibms390x.h (START_FILES, LIB_STANDARD):
292 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
293 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
294 Remove definitions, since they are set correctly in s/gnu-linux.h.
295 * s/freebsd.h (START_FILES, LIB_STANDARD):
296 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
297 * s/hpux10-20.h (START_FILES):
298 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
299 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
300
b678dd8b
GM
301 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
302 (MOTIF_LIBW): Use $LIBXP.
303 (otherobj): Use $WIDGET_OBJ.
304
9452ded1
DN
3052010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
306
7e10844c
DN
307 * Makefile.in (LIBS_MACHINE): Remove, unused.
308
9452ded1
DN
309 Use autoconf instead of cpp for LIB_MATH.
310 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
311 * s/cygwin.h (LIB_MATH): Likewise.
312 * Makefile.in (LIB_MATH): Do not define with cpp.
313 (LIBES): Use autoconf for LIB_MATH.
314
fcebfc6a
KH
3152010-04-26 Kenichi Handa <handa@m17n.org>
316
317 * composite.c (Ffind_composition_internal): Fix the return value
318 for an automatic composition.
319
39e2ad1b
DN
3202010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
321
322 Remove all NO_ARG_ARRAY uses.
323 * fns.c (concat2, concat3, nconc2):
324 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
325 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
326 * m/xtensa.h (NO_ARG_ARRAY):
327 * m/template.h (NO_ARG_ARRAY):
328 * m/sparc.h (NO_ARG_ARRAY):
329 * m/sh3.h (NO_ARG_ARRAY):
330 * m/mips.h (NO_ARG_ARRAY):
331 * m/macppc.h (NO_ARG_ARRAY):
332 * m/iris4d.h (NO_ARG_ARRAY):
333 * m/intel386.h (NO_ARG_ARRAY):
334 * m/ibms390x.h (NO_ARG_ARRAY):
335 * m/ibms390.h (NO_ARG_ARRAY):
336 * m/ibmrs6000.h (NO_ARG_ARRAY):
337 * m/ia64.h (NO_ARG_ARRAY):
338 * m/hp800.h (NO_ARG_ARRAY):
339 * m/arm.h (NO_ARG_ARRAY):
340 * m/amdx86-64.h (NO_ARG_ARRAY):
341 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
342
adf4f59c
EZ
3432010-04-25 Eli Zaretskii <eliz@gnu.org>
344
6bdf5d65
EZ
345 * xdisp.c (display_line): Don't assume 2nd call to
346 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
347 (iterate_out_of_display_property): New function, body from pop_it.
348 (pop_it): Use it.
adf4f59c 349
dfbbda83
GM
3502010-04-24 Glenn Morris <rgm@gnu.org>
351
352 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
353 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
354 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
355 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
356
2d4018aa
EZ
3572010-04-24 Eli Zaretskii <eliz@gnu.org>
358
a49884a6
EZ
359 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
360 use `get_next_display_element' and `set_iterator_to_next' to
361 advance to the next character, when looking for the character that
362 begins the next row.
363
76db6fcc 364 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
365 definition of "struct Lisp_Symbol".
366
70eab5c1
GM
3672010-04-24 Glenn Morris <rgm@gnu.org>
368
369 * Makefile.in (CRT_DIR): New variable, set by configure.
370 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
371 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
372
1ad4cc3d
DN
3732010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
374
e769f484
DN
375 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
376
4196ff33
DN
377 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
378
879b0ee4
DN
379 Remove redundant flags.
380 * s/freebsd.h (C_SWITCH_SYSTEM):
381 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
382 * s/netbsd.h (C_SWITCH_SYSTEM):
383 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
384 of these.
385
03cbbcb8
DN
386 Simplify m/intel386.h.
387 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
388 user: ecrt0.c.
389 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
390 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
391 the only user: s/unixware.h.
392 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
393 from m/intel386.h.
394 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
395 moved here from m/intel386.h.
396
1ad4cc3d
DN
397 * m/mips.h: Remove #if 0 code.
398
8785b888
EZ
3992010-04-23 Eli Zaretskii <eliz@gnu.org>
400
728588cc
EZ
401 Fix display of composed characters from L2R scripts in bidi buffers.
402 * xdisp.c (set_iterator_to_next, next_element_from_composition):
403 After advancing IT past the composition, resync the bidi iterator
404 with IT's position. (Bug#5977)
405
a63f80b4
DN
4062010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
407
408 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
409 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
410
ff5dec5c
SM
4112010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
412
413 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
414
8785b888
EZ
4152010-04-23 Eli Zaretskii <eliz@gnu.org>
416
58ccf243 417 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
418 * xdisp.c (pop_it): When the stack is popped after displaying
419 from a string, bidi-iterate to exit from the text portion covered
420 by the `display' property or overlay. (Bug#5988, bug#5920)
421
feeb1604
DN
4222010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
423
8e324eb6
DN
424 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
425 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
426
809fcaba
DN
427 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
428 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
429
ed710380
DN
430 Simplify STARTFILES definition.
431 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
432 relying on Makefile.in to define it.
433 * s/cygwin.h (START_FILES): Likewise.
434 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
435
feeb1604
DN
436 Clean up Solaris code.
437 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
438 (LIB_MOTIF): Remove, configure takes care of this.
439 (NOT_USING_MOTIF): Remove, unused.
440 * xrdb.c: Remove #if 0-ed #include.
441 (SYSV): Remove conditional for old SysV.
442 * sysdep.c (closedir): Remove conditional code for Solaris,
443 Solaris has closedir.
444
a0d0b563
JD
4452010-04-22 Jan Djärv <jan.h.d@swipnet.se>
446
447 * xsettings.c (read_and_apply_settings): Check if current_font is
448 NULL before strcmp (Bug#6001).
449
56bae7c7
DN
4502010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
451
452 Clean up HP-UX files.
453 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
454 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
455 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
456 * s/hpux10-20.h: ... to the only user, here.
457
372b7a95
EZ
4582010-04-21 Eli Zaretskii <eliz@gnu.org>
459
460 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
461 use buffer-local values of paragraph-start and paragraph-separate.
462 <paragraph_start_re, paragraph_separate_re>: Rename from
463 fallback_paragraph_start_re and fallback_paragraph_separate_re.
464 (Bug#5992)
465
f904c0f9
JD
4662010-04-21 Jan Djärv <jan.h.d@swipnet.se>
467
468 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
469 current_tool_bar_style are new.
470 (store_config_changed_event): Rename from store_font_changed_event.
471 (XSETTINGS_TOOL_BAR_STYLE): New define.
472 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
473 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
474 HAVE_XFT.
475 (something_changedCB): store_font_changed_event is now
476 store_config_changed_event
477 (parse_settings): Rename from parse_xft_settings. Read
478 non-xft xsettings outside #ifdef HAVE_XFT.
479 (read_settings): Renamed from read_xft_settings.
480 (apply_xft_settings): Take current settings as parameter. Do not
481 call read_(xft)_settings.
482 (read_and_apply_settings): New function.
483 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
484 read_and_apply_settings if there are settings to be read.
485 (init_xsettings): Renamed from init_xfd_settings.
486 Call read_and_apply_settings unconditionally.
487 (xsettings_initialize): Call init_xsettings.
488 (Ftool_bar_get_system_style): New function.
489 (syms_of_xsettings): Define Qmonospace_font_name and
490 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 491 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 492 dynamic-setting.
31a01b90 493 Move misplaced HAVE_GCONF
f904c0f9
JD
494
495 * xsettings.h (Ftool_bar_get_system_style): Declare.
496
497 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
498 Qtext, Qboth, Qboth_horiz are new.
499 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
500 Vtool_bar_style, tool_bar_max_label_size.
501
502 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
503
504 * keyboard.c: QClabel is new.
505 (parse_tool_bar_item): Take out QClabel from tool bar items.
506 Try to construct a label if ther is no QClabel.
507 (syms_of_keyboard): Intern :label as QClabel.
508
509 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
510 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
511 New.
512
513 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
514 dynamic-setting.el.
515
516 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
517 (xg_make_tool_item, xg_show_toolbar_item): New function.
518 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
519 Call xg_make_tool_item to make a tool bar item.
520 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
521
522 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
523 into account for toolbars.
524
c632dfda
JD
5252010-04-21 Jan Djärv <jan.h.d@swipnet.se>
526
527 * data.c (make_blv): Declarations before code (Bug#5993).
528
10efe302
GM
5292010-04-21 Glenn Morris <rgm@gnu.org>
530
531 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
532 Define using autoconf, not cpp.
533 (LIBXSM): New variable, set by autoconf.
534 (LIBXT): Use $LIBXSM.
535
4285ac5a
DN
5362010-04-21 Dan Nicolaescu <local_user@dannlt>
537
3ec759e7
DN
538 Remove NOMULTIPLEJOBS, unused.
539 * s/template.h (NOMULTIPLEJOBS):
540 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
541
4285ac5a
DN
542 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
543 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
544 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
545 detects -znocombreloc and passes it to the linker
546 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
547
2807228d
GM
5482010-04-21 Glenn Morris <rgm@gnu.org>
549
550 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
551
574c05e2
KK
5522010-04-21 Karel Klíč <kklic@redhat.com>
553
554 * Makefile.in (LIBSELINUX_LIBS): New.
555 (LIBES): Add $LIBSELINUX_LIBS.
556 * eval.c, lisp.h (call7): New function.
557 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
558 (Ffile_selinux_context, Fset_file_selinux_context):
559 New functions.
560 (Fcopy_file): New parameter preserve-selinux-context.
561 (Frename_file): Preserve selinux context when renaming by copy-file.
562
91eac4bb
JB
5632010-04-21 Juanma Barranquero <lekktu@gmail.com>
564 Eli Zaretskii <eliz@gnu.org>
565
50426a04
JB
566 Don't depend on cm.c or termcap.c on Windows, use stubs.
567 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
568 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
569 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
570 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
571 (sys_tputs, sys_tgetstr): New stubs.
572 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
573 (tputs, tgetstr): New; define to sys_*.
91eac4bb 574
938efb77
JB
5752010-04-20 Juanma Barranquero <lekktu@gmail.com>
576
577 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
578
b4bf28b7
SM
5792010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
580
8b1e1112
SM
581 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
582 Just signal a warning rather than an error when inside a let.
583 (Fmake_variable_frame_local): Add the same test.
584
933ac235
SM
585 * font.c (syms_of_font): Make the style table vars read-only.
586
b4bf28b7
SM
587 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
588 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
589
590 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
591
93d68d0c
EZ
5922010-04-20 Eli Zaretskii <eliz@gnu.org>
593
594 Fix R2L paragraph display on TTY.
595
596 * xdisp.c (unproduce_glyphs): New function.
597 (display_line): Use it when produced glyphs are discarded from R2L
598 glyph rows.
599 (append_composite_glyph): In R2L rows, prepend the glyph rather
600 than appending it.
601
602 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
603 rather than append it. Set up the resolved_level and bidi_type
604 attributes of the appended glyph.
283ccc18
EZ
605 (produce_special_glyphs): Mirror the backslash continuation
606 character in R2L lines.
93d68d0c 607
283ccc18 608 Implement display of R2L paragraphs in GUI sessions.
26cdf528 609
283ccc18
EZ
610 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
611 append_stretch_glyph.
612 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
613 off-by-one error in computing x at end of text in the row.
614 (append_stretch_glyph): In reversed row, prepend the glyph rather
615 than append it. Set resolved_level and bidi_type of the glyph.
616 (extend_face_to_end_of_line): If the row is reversed, prepend a
617 stretch glyph whose width is such that the rightmost glyph will be
618 drawn at the right margin of the window. Fix off-by-one error on
619 TTY frames in testing whether a line needs face extension. Fix
620 face extension at ZV. If this is the last glyph row, use
621 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
622 region face.
623 (set_cursor_from_row, display_line): Use
26cdf528
EZ
624 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
625 row->continuation_lines_width.
283ccc18
EZ
626 (next_element_from_buffer): Don't call bidi_paragraph_init if we
627 are at ZV. Fixes a crash when reseated to ZV by
628 try_window_reusing_current_matrix.
45903529
EZ
629 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
630 which happens with R2L glyph rows. Fixes a crash when inserting a
631 character at end of an R2L line.
283ccc18
EZ
632 (set_cursor_from_row): Don't be fooled by truncated rows: don't
633 treat them as having zero-width characters. Improve comments.
634 Don't reverse pos_before and pos_after for reversed glyph rows.
635 Set cursor.x to negative value when the cursor might be on the
636 left fringe.
637 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
638 left fringe, not the right one.
f951a506
EZ
639 (notice_overwritten_cursor, draw_phys_cursor_glyph)
640 (erase_phys_cursor): For reversed cursor_row, support cursor on
641 the left fringe.
642
283ccc18
EZ
643 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
644 of continuation indicators on the fringes.
645 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
646 left fringe.
647
f951a506
EZ
648 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
649 draw cursor on the left fringe.
650
651 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
652 cursor on the left fringe.
653
f951a506
EZ
654 * dispnew.c (update_text_area): Handle reversed desired rows when
655 the cursor is on the left fringe.
656 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
657 below, not by 0, for when the cursor is on the left fringe.
658
3bb49aaf
JD
6592010-04-20 Jan Djärv <jan.h.d@swipnet.se>
660
661 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
662 widget is a scrollbar.
663
c0be27fd
KH
6642010-04-20 Kenichi Handa <handa@m17n.org>
665
666 * charset.c (char_charset): Consider Vcharset_non_preferred_head
667 only when the arg CHARSET_LIST is nil.
668
ce5b453a
SM
6692010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
670
671 Make variable forwarding explicit rather the using special values.
672 Basically, this makes the structure of buffer-local values and object
673 forwarding explicit in the type of Lisp_Symbols rather than use
674 special Lisp_Objects for that. This tends to lead to slightly more
675 verbose code, but is more C-like, simpler, and makes it easier to make
676 sure we handled all cases, among other things by letting the compiler
677 help us check it.
678 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
679 Removing forwarding objects.
680 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
681 (struct Lisp_Symbol): Make the various forms of variable-forwarding
682 explicit rather than hiding them inside Lisp_Object "values".
683 (XFWDTYPE): New macro.
684 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
685 (XBUFFER_LOCAL_VALUE): Remove.
686 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
687 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
688 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
689 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
690 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
691 Remove the Lisp_Misc_* header.
692 (struct Lisp_Buffer_Local_Value): Redefine.
693 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
694 (struct Lisp_Misc_Any): Add filler to get the right size.
695 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
696 Lisp_Intfwd.
697 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
698 (DEFVAR_KBOARD): Allocate a forwarding object.
699 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
700 (let_shadows_global_binding_p): New function.
701 (union Lisp_Val_Fwd): New type.
702 (make_blv): New function.
703 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
704 (store_symval_forwarding, swap_in_global_binding, Fboundp)
705 (swap_in_symval_forwarding, find_symbol_value, Fset)
706 (let_shadows_buffer_binding_p, set_internal, default_value)
707 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
708 (Fkill_local_variable, Fmake_variable_frame_local)
709 (Flocal_variable_p, Flocal_variable_if_set_p)
710 (Fvariable_binding_locus):
711 * xdisp.c (select_frame_for_redisplay):
712 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
713 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
714 * frame.c (store_frame_param):
715 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
716 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
717 value structure.
718 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
719 (clone_per_buffer_values): Only adjust markers into the current buffer.
720 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
721 (Fbuffer_local_value, set_buffer_internal_1)
722 (swap_out_buffer_local_variables):
723 Adapt to the new symbol value structure.
724 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
725 (defvar_per_buffer): Take a new arg for the fwd object.
726 (buffer_lisp_local_variables): Return a proper alist (different fix
727 for bug#4138).
728 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
729 (Fgarbage_collect): Don't handle buffer_defaults specially.
730 (mark_object): Handle new symbol value structure rather than the old
731 special Lisp_Misc_* objects.
732 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
733 * term.c (set_tty_color_mode):
734 * bidi.c (bidi_initialize): Don't access the ->value field directly.
735 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
736 a buffer_local_flags.
737 * print.c (print_object): Get rid of impossible forwarding objects.
738
fd3998ff
EZ
7392010-04-19 Eli Zaretskii <eliz@gnu.org>
740
741 * bidi.c (bidi_get_type, bidi_get_category)
742 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
743 (bidi_type_of_next_char, bidi_level_of_next_char):
744 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 745
e42cd1a7
JB
7462010-04-19 Juanma Barranquero <lekktu@gmail.com>
747
748 * dired.c (Ffile_attributes): Fix typo in docstring.
749
6e104790 7502010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
751
752 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
753 NSInteger (Bug#5811).
754
6e104790 7552010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
756
757 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
758 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
759
6e104790 7602010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
761
762 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
763
6e104790
SM
7642010-04-19 Chong Yidong <cyd@stupidchicken.com>
765
766 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
767 terminal frames (Bug#5837).
768
37dcfea0
EZ
7692010-04-19 Eli Zaretskii <eliz@gnu.org>
770
d1da276f
EZ
771 * .gdbinit (xsubchartable): New command.
772
37dcfea0
EZ
7732010-04-19 Eli Zaretskii <eliz@gnu.org>
774
775 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 776 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
777 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
778 and
779 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
780
e9515805
SM
7812010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
782
783 * alloc.c (Fpurecopy): Hash-cons if requested.
784 (syms_of_alloc): Update purify-flag docstring.
785
22aa44a8
JD
7862010-04-18 Jan Djärv <jan.h.d@swipnet.se>
787
788 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
789 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
790
ebb5722e
EZ
7912010-04-17 Eli Zaretskii <eliz@gnu.org>
792
793 Fix a crash when an NSM character is inserted at BEGV.
794
795 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
796 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
797 NEUTRAL_B or UNKNOWN_BT.
798
0f4442ef
EZ
7992010-04-16 Eli Zaretskii <eliz@gnu.org>
800
801 * xdisp.c (set_cursor_from_row): Don't consider possibility of
802 other rows with cursor unless they are different from this row and
803 this row is part of a continued line. (Bug#5943)
804
7d4e45f8
DN
8052010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
806
807 * s/freebsd.h: Restore osreldate.h include.
808 Suggested by Naohiro Aota.
809
5ba5ec85
J
8102010-04-16 Jan Djärv <jan.h.d@swipnet.se>
811
812 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
813
20af301d
CY
8142010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
815
816 * s/cygwin.h: Avoid linking against static libgcc.
817
a4b000fb
JL
8182010-04-15 Juri Linkov <juri@jurta.org>
819
820 * window.c: Add Qscroll_command.
821 Remove Vscroll_preserve_screen_position_commands.
822 (window_scroll_pixel_based, window_scroll_line_based): Check the
823 `scroll-command' property on the last command instead of searching
824 the last command in Vscroll_preserve_screen_position_commands.
825 (syms_of_window): Initialize and staticpro `Qscroll_command'.
826 Put Qscroll_command property on Qscroll_up and Qscroll_down.
827 (scroll-preserve-screen-position): Doc fix.
828 (Vscroll_preserve_screen_position_commands): Remove variable.
829
bc319ba4
DN
8302010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
831
6bb24457
DN
832 * xdisp.c (message): Do not use NO_ARG_ARRAY.
833
19d4c244
DN
8342010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
835
836 Reduce cpp use in Makefile.in.
837 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
838 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
839 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
840 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
841 (CRT0_COMPILE): Remove, inline it in the only user.
842
32129746
JL
8432010-04-14 Juri Linkov <juri@jurta.org>
844
845 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
846 `scroll-up-command' and `M-v' from `scroll-down' to
847 `scroll-down-command'.
848
9013a7f8
JL
8492010-04-14 Juri Linkov <juri@jurta.org>
850
851 * window.c (Vscroll_preserve_screen_position_commands): New variable
852 with the default value as the list of Qscroll_down and Qscroll_up.
853 (window_scroll_pixel_based, window_scroll_line_based): Search the
854 last command in the list Vscroll_preserve_screen_position_commands
855 instead of comparing with Qscroll_up and Qscroll_down.
856
4bef8d26
JD
8572010-04-13 Jan Djärv <jan.h.d@swipnet.se>
858
92848133
JD
859 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
860 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
861 does that.
862
4bef8d26
JD
863 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
864 to zero.
865
58b963f7
SM
8662010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
867
84164a0d
SM
868 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
869
2b0a91e7
SM
870 Try to solve the problem of spurious EOF chars in long lines of text
871 sent to interactive subprocesses.
872 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
873 (system_process_attributes): Remove unused var `ttotal'.
874 * process.c (send_process): Don't bother breaking long line with EOF
875 chars when talking to ttys any more.
876 (wait_reading_process_output): Output a warning when called in such
877 a way that it could block without being interruptible.
878
58b963f7
SM
879 Try to detect file modification within the same second.
880 * buffer.h (struct buffer): New field modtime_size.
881 * buffer.c (reset_buffer): Initialize it.
882 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
883 (Fverify_visited_file_modtime): Check it.
884 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
885 (Fset_visited_file_modtime): Set (or clear) it.
886
01f5787b
SM
8872010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * process.c (status_notify): Remove unused var `ro'.
890
83725342
JD
8912010-04-12 Jan Djärv <jan.h.d@swipnet.se>
892
893 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
894 more than one visual (Bug#5938).
895
b9465836
DN
8962010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
897
50426a04
JB
898 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
899 Undefine.
b9465836 900
8d9c8ece
DN
9012010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
902
b1f52161
DN
903 Remove C_SWITCH_SYSTEM_TEMACS.
904 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
905 (malloc, realloc, free): Use emacs, not temacs for conditional
906 definition.
907
908 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
909 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
910
8d9c8ece
DN
911 Use autoconf, not cpp for some variables.
912 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
913 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
914 (ALL_CFLAGS): Use them as make variables.
915 (really-lwlib, really-oldXMenu): Do not pass them.
916
1ecb2d3f
JD
9172010-04-11 Jan Djärv <jan.h.d@swipnet.se>
918
919 * xmenu.c (apply_systemfont_to_dialog): New.
920 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
921
3a4fa2f2
SM
9222010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
923
97e53006
SM
924 * process.c (exec_sentinel): Preserve current-buffer.
925
3a4fa2f2
SM
926 * process.c (read_process_output): Move the save-current-buffer to
927 apply to both the filter and the non-filter branches.
928
88df7221
DN
9292010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
930
931 * s/msdos.h (UNEXEC): New definition.
932
5634ff85
YM
9332010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
934
6eff5c3d
YM
935 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
936 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
937
938 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
939 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
940 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
941 TRY_WINDOW_CHECK_MARGINS.
942
943 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
944 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
945 width only when it is for padding.
5634ff85 946
b13aef54
J
9472010-04-09 Jan Djärv <jan.h.d@swipnet.se>
948
949 * xfns.c (Fx_show_tip): Call try_window in a loop until
950 fonts_changed_p is zero (Bug#2423).
951
21d28484
EZ
9522010-04-08 Eli Zaretskii <eliz@gnu.org>
953
954 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
955 the end of TEXT_AREA. (Bug#5856)
956
0269ef77
JD
9572010-04-08 Jan Djärv <jan.h.d@swipnet.se>
958
959 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
960 HAVE_GCONF.
961
5930fe97
EZ
9622010-04-08 Eli Zaretskii <eliz@gnu.org>
963
964 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
965 prev.orig_type, for resolving type of NSM. (Bug#5858)
966
99852628
JD
9672010-04-08 Jan Djärv <jan.h.d@swipnet.se>
968
969 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
970 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
971 in current_font.
972 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
973 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
974 New functions.
975 (syms_of_xsettings): Initialize current_font.
976 defsubr Sfont_get_system_normal_font.
99852628
JD
977
978 * xsettings.h (Ffont_get_system_normal_font,
979 xsettings_get_system_normal_font): Declare.
980
981 * xfns.c (extern xlwmenu_default_font): Remove.
982 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
983 to xlwmenu.c.
984
985 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
986 menu items in UTF-8.
987
988 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
989 (apply_systemfont_to_menu): New function.
990 (set_frame_menubar, create_and_show_popup_menu): Call
991 apply_systemfont_to_menu.
992
7fc874c4
J
9932010-04-07 Jan Djärv <jan.h.d@swipnet.se>
994
995 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
996 FRAME_LINE_TO_PIXEL_Y.
997
998 * xterm.c (x_set_window_size_1): Don't add border_width/height to
999 pixelwidth/height.
1000
863bf481
DN
10012010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1002
5e5a3b92
DN
1003 Simplify code for HP machines.
1004 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1005 for GNU_LINUX, not needed.
1006 (UNEXEC, NEED_BSDTTY): Move definitions...
1007 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1008
863bf481
DN
1009 * m/iris4d.h (UNEXEC): Move definition ...
1010 * s/irix6-5.h (UNEXEC): ... here.
1011
3e6bec3b
JD
10122010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1013
1014 * xfns.c (set_machine_and_pid_properties): New function.
1015 (Fx_create_frame): Call set_machine_and_pid_properties.
1016
2912322b
SM
10172010-04-03 Eli Zaretskii <eliz@gnu.org>
1018
1502b819
EZ
1019 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1020 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1021 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1022
2912322b
SM
1023 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1024 in this function. (Bug#5703)
1025
10262010-04-03 Chong Yidong <cyd@stupidchicken.com>
1027
1028 * nsterm.h: Fix last change.
1029
c435b432
DN
10302010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1031
a568f507
DN
1032 * m/intel386.h (NO_REMAP): Move definition ...
1033 * s/msdos.h (NO_REMAP): ... here.
1034
4cd9f6c2
DN
1035 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1036
c435b432
DN
1037 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1038 used on those platforms.
1039
42a2c622
DN
10402010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1041
1042 Remove extern errno declarations.
1043 * xterm.c:
1044 * xrdb.c:
1045 * w32term.c:
1046 * unexec.c:
1047 * unexaix.c:
1048 * sysdep.c:
1049 * process.c:
1050 * lread.c:
1051 * keyboard.c:
1052 * floatfns.c:
1053 * filelock.c:
1054 * fileio.c:
1055 * emacs.c (main):
1056 * ecrt0.c:
1057 * dispnew.c:
1058 * callproc.c:
1059 * buffer.c: Remove errno extern declarations.
1060 * s/netbsd.h (NEED_ERRNO): Remove.
1061
8224f93d
DN
10622010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1063
1064 Remove all uses of LIBX11_SYSTEM.
1065 * Makefile.in (LIBX11_SYSTEM): Remove.
1066 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1067 instead.
1068
814062c7
EZ
10692010-04-01 Eli Zaretskii <eliz@gnu.org>
1070
ed68db4d
EZ
1071 Remove support for DJGPP v1.x (bug#5813).
1072
1073 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1074 * s/msdos.h:
1075 * unexec.c (make_hdr, copy_text_and_data):
1076 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1077 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1078 (IT_set_terminal_modes, __write, _rename, gethostname)
1079 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1080 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1081 the value of __DJGPP__.
ed68db4d
EZ
1082 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1083 compatibility code.
8224f93d
DN
1084 * lread.c:
1085 * gmalloc.c (memalign):
1086 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1087 * emacs.c (main):
1088 * dosfns.c (init_dosfns):
ed68db4d
EZ
1089 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1090
52f4d8d5
EZ
10912010-04-01 Eli Zaretskii <eliz@gnu.org>
1092
814062c7
EZ
1093 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1094 string with `cursor' property comes from an `after-string'
1095 overlay. (Bug#5816)
1096
0dc2e11d
GM
10972010-04-01 Glenn Morris <rgm@gnu.org>
1098
1099 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1100 Define as Makefile variables.
1101 (LIBX): Use above variables rather than directly using autoconf.
1102
1d29df59
DN
11032010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1104
1105 Clean up BSD_SYSTEM use.
1106 * xterm.c:
1107 * process.c:
1108 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1109 for including <sys/ioctl.h>.
1110 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1111 code is only used for MSDOS.
1112
1546c559
JL
11132010-03-31 Juri Linkov <juri@jurta.org>
1114
1115 * image.c: Add `Qextension_data'.
1116 (syms_of_image): Initialize and staticpro `Qextension_data'.
1117 (Fimage_metadata): Rename from `Fimage_extension_data'.
1118 (gif_load): Put GIF extension data to the property
1119 `Qextension_data'.
1120
b8a1d5a1
CY
11212010-04-05 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1124 terminal frames (Bug#5837).
1125
6521c534
CY
11262010-03-31 Chong Yidong <cyd@stupidchicken.com>
1127
1128 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1129 * nsterm.h: Fix prototype.
1130
52c30783
EZ
11312010-03-31 Eli Zaretskii <eliz@gnu.org>
1132
1133 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1134 trailing whitespace in right-to-left rows.
1135
855a0da7
SM
11362010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1137
1138 Get rid of the direct_output optimizations.
1139 * keyboard.c (nonundocount): Remove extern declaration.
1140 (command_loop_1): Remove brittle optimisation for cheap and
1141 common operations.
1142 * xdisp.c (redisplay_internal): Don't bother checking
1143 redisplay_performed_directly_p any more.
1144 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1145 any more.
1146 * dispnew.c (redisplay_performed_directly_p)
1147 (direct_output_for_insert, direct_output_forward_char):
1148 * dispextern.h (redisplay_performed_directly_p)
1149 (direct_output_for_insert, direct_output_forward_char): Remove.
1150 * cmds.c (nonundocount): Make it static.
1151
85738751 11522010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1153
1154 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1155
85738751 11562010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1157
1158 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1159 invisible (Bug#5766).
1160
85738751 11612010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1162
855a0da7
SM
1163 * xdisp.c (x_consider_frame_title, update_window_cursor):
1164 Remove HAVE_NS conditionals.
194d44e7 1165 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1166
1167 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1168 filename for the title.
1169 (ns_set_doc_edited): Do nothing if the selected window is a
1170 minibuffer window.
1171
1172 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1173 ns_set_doc_edited.
1174
1175 * nsterm.m: Remove unneeded prototype.
1176
85738751 11772010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1178
1179 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1180 in the DOC file. (Bug#5336)
1181
85738751 11822010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1183
1184 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1185
75d1428c
SM
11862010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1187
1188 * window.c (keys_of_window): Remove redundant/overridden bindings.
1189
82043cfb
EZ
11902010-03-30 Eli Zaretskii <eliz@gnu.org>
1191
1192 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1193 Restore original behavior when the iterator is not bidi_p.
1194
b5dd0ae7
DN
11952010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1196
1197 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1198
bd924a5d
EZ
11992010-03-30 Eli Zaretskii <eliz@gnu.org>
1200
1201 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1202 are outside the range of cached character positions.
1203
3580374b
JB
12042010-03-30 Juanma Barranquero <lekktu@gmail.com>
1205
1206 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1207
a7b02820
EZ
12082010-03-30 Eli Zaretskii <eliz@gnu.org>
1209
1210 Initial support for bidirectional editing.
1211
1212 * Makefile.in (obj): Include bidi.o.
1213 (bidi.o): New target.
1214
1215 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1216 ($(BLD)/bidi.$(O)): New target.
1217
1218 * bidi.c: New file.
1219
1220 * buffer.h (struct buffer): New members bidi_display_reordering
1221 and bidi_paragraph_direction.
1222
1223 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1224 and bidi_paragraph_direction.
1225 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1226 and bidi-paragraph-direction.
1227 (Fbuffer_swap_text): Swap the values of
1228 bidi_display_reordering and bidi_paragraph_direction.
1229
1230 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1231 (bidi_type_t, bidi_dir_t): New types.
1232 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1233 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1234 prev_stop, base_level_stop, and eol_pos.
1235 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1236 (IT_STACK_SIZE): Enlarge to 5.
1237 (struct glyph_row): New member reversed_p.
1238 <string_buffer_position>: Update prototype.
1239 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1240 glyph_row if bidi_it.paragraph_dir == R2L.
1241 (struct glyph): New members resolved_level and bidi_type.
1242
1243 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1244 processing or buffer's direction is right-to-left.
1245 (prepare_desired_row): Preserve the reversed_p flag.
1246 (row_equal_p): Compare the reversed_p attributes as well.
1247
1248 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1249 bidi_init_it and set it->paragraph_embedding from the current
1250 buffer's value of bidi_paragraph_direction.
1251 (reseat_1): Initialize bidi_it.first_elt.
1252 (set_iterator_to_next, next_element_from_buffer): Use the value of
1253 paragraph_embedding to determine the paragraph direction.
1254 (set_iterator_to_next): Under bidi reordering, call
1255 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1256 new_paragraph flag is set in the bidi iterator.
1257 (next_element_from_buffer): If bidi_it.first_elt is set,
1258 initialize paragraph direction and find the first character to
1259 display in the visual order. If reseated to a middle of a line,
1260 prime the bidi iterator starting at the line's beginning. Handle
1261 the situation where we overstepped stop_charpos due to
1262 non-linearity of the bidi iteration. Likewise for when we back up
1263 beyond the previous stop_charpos. When moving across stop_charpos,
1264 record it in prev_stop.
1265 (display_line): Set row->end and it->start for the next row to the
1266 next character in logical order. Always extend reversed_p rows to
1267 the end of line, even if they end at ZV. Copy the reversed_p flag
1268 to the next glyph row. Keep calling set_cursor_from_row for
1269 bidi-reordered rows even if we already have a possible candidate
1270 for cursor position. Set row_end after all the row's glyphs have
1271 been produced, by looping over the glyphs. Record the position
1272 after EOL in it->eol_pos, and use it to set end_pos of the last
1273 row produced for a continued line.
1274 <Qright_to_left, Qleft_to_right>: New variables.
1275 (syms_of_xdisp): Initialize and staticpro them.
1276 (string_buffer_position_lim): New function.
1277 (string_buffer_position): Most of code moved to
1278 string_buffer_position_lim. Last argument and return value are
1279 now EMACS_INT; all callers changed.
1280 (set_cursor_from_row): Rewritten to support bidirectional text and
1281 reversed glyph rows.
1282 (text_outside_line_unchanged_p, try_window_id): Disable
1283 optimizations if we are reordering bidirectional text and the
1284 paragraph direction can be affected by the change.
1285 (append_glyph, append_composite_glyph)
1286 (produce_image_glyph, append_stretch_glyph): Set the
1287 resolved_level and bidi_type members of each glyph.
1288 (append_glyph): If the glyph row is reversed, prepend the glyph
1289 rather than appending it.
1290 (handle_stop_backwards): New function.
1291 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1292 (reseat): call handle_stop_backwards to recompute prev_stop and
1293 base_level_stop for the new position.
1294 (handle_invisible_prop): Under bidi iteration, skip invisible text
1295 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1296 paragraph direction. Update IT->prev_stop after skipping
1297 invisible text.
1298 (move_it_in_display_line_to): New variables prev_method
1299 and prev_pos. Compare for strict equality in
1300 BUFFER_POS_REACHED_P.
1301 (try_cursor_movement): Examine all the candidate rows that occlude
1302 point, to return the best match. If rows are bidi-reordered
1303 and point moved backwards, back up to the row that is not a
1304 continuation line, and start looking for a suitable row from
1305 there.
1306
1307 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1308 rather than appending, if the glyph_row's reversed_p flag is set.
1309 Set the resolved_level and bidi_type members of each glyph.
1310
1311 * .gdbinit (pbiditype): New command.
1312 (pgx): Use it to display bidi level and type of the glyph.
1313 (pitx): Display some bidi information about the iterator.
1314 (prowlims, pmtxrows): New commands.
1315
32a8894e
DN
13162010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1317
1318 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1319 * s/usg5-4.h (LIBS_DEBUG):
1320 * s/irix6-5.h (C_DEBUG_SWITCH):
1321 * s/gnu-linux.h (LIBS_DEBUG):
1322 * s/darwin.h (LIBS_DEBUG):
1323 * s/bsd-common.h (LIBS_DEBUG):
1324 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1325 * m/iris4d.h (LIBS_DEBUG):
1326 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1327
1328 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1329 (LIBS_DEBUG): Remove definition.
1330
649dbf36
CY
13312010-03-27 Chong Yidong <cyd@stupidchicken.com>
1332
1333 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1334 Windows.
1335
cad4261f
YM
13362010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1337
1338 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1339 `connect' (Bug#5723).
1340
cd591dbc
HE
13412010-03-25 Helmut Eller <eller.helmut@gmail.com>
1342
1343 * process.c (Fmake_network_process): Call `select' for interrupted
1344 `connect' rather than creating new socket (Bug#5173).
1345
e867cb5d 13462010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1347
1348 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1349
1350 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1351
1352 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1353
e867cb5d 13542010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1355
1356 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1357 XLoadQueryFont.
1358
e867cb5d 13592010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1360
1361 * coding.c (decode_coding_ccl): Fix previous change for the
1362 multibyte case.
fb608df3
KH
1363 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1364 case that the output buffer is fullfilled.
1365 (encode_coding): Setup ccl program here.
fbdc1721 1366
e867cb5d 13672010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1368
1369 * editfns.c (Fformat): Account for string precision when computing
1370 field width (Bug#5710).
1371
5845f0ed
DN
13722010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1373
814fb708
DN
1374 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1375
5845f0ed
DN
1376 Simplify LIBS_MACHINE definitions.
1377 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1378 * m/iris4d.h (LIBS_MACHINE): Likewise.
1379 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1380 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1381 * s/netbsd.h: Remove commented out code.
5845f0ed 1382
b7064064
DN
13832010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1384
df7734b2
DN
1385 Remove dead code dealing with POSIX_SIGNALS.
1386 * atimer.c (set_alarm): Remove dead code, all USG systems define
1387 POSIX_SIGNALS.
1388 * data.c (arith_error): Likewise.
1389 * keyboard.c (input_available_signal, handle_user_signal)
1390 (interrupt_signal): Likewise.
1391 * process.c (sigchld_handler): Likewise.
1392 (create_process): Remove if 0 code. Remove HPUX conditional when
1393 !defined (POSIX_SIGNALS), it cannot be true.
1394 * syssignal.h: Remove USG5_4 and USG conditionals when
1395 !POSIX_SIGNALS, they cannot be true.
1396
b7064064
DN
1397 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1398 NO_SOCK_SIGIO, not used anymore.
1399
55da5ee3
DN
14002010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1401
0be96e3a
DN
1402 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1403 support vax on BSDs.
1404
55da5ee3
DN
1405 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1406 * s/aix4-2.h (ORDINARY_LINK): ... here.
1407
c0282183
AS
14082010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1409
82c3d67a
AS
1410 * Makefile.in (abs_builddir): Define.
1411 (bootstrap_exe): Use it.
1412 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1413
3613edce
SM
14142010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1415
1416 * Makefile.in (bootstrap_exe): Use an absolute name.
1417
7f110ddc
DN
14182010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1419
22e87574
DN
1420 Remove support for old GNU/Linux using libc version 5.
1421 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1422 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1423
05a670e6
DN
1424 Consolidate redundant definitions in s/bsd-common.h.
1425 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1426 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1427 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1428 doing it in all files that include this one.
1429 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1430 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1431 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1432 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1433 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1434 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1435 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1436 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1437 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1438
2968f561
DN
1439 Consolidate redundant definitions.
1440 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1441 it's undefined in all files that include this one.
1442 (POSIX_SIGNALS): Define here instead of doing it in all files that
1443 include this one.
1444 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1445 (POSIX_SIGNALS): Do not define.
1446 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1447 (POSIX_SIGNALS): Do not define.
1448 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1449 (POSIX_SIGNALS): Do not define.
1450
15d25dc0
DN
1451 Remove support for old UNIX System V systems.
1452 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1453 * s/usg-5-4-2.h: Remove.
1454
07e339e4
DN
1455 Remove support for Solaris on PPC and for old versions.
1456 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1457 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1458 that cancel each other.
1459 * s/sol2-3.h:
1460 * s/sol2-4.h:
1461 * s/sol2-5.h: Remove.
1462 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1463 (NO_REMAP): Remove, unused.
1464 (UNEXEC): Move definition ...
1465 * s/aix4-2.h (UNEXEC): ... here.
1466
7f110ddc
DN
1467 * s/openbsd.h: Remove support for non-ELF and for systems that do
1468 not support shared libraries.
1469 * s/netbsd.h:
1470 * s/freebsd.h: Likewise.
1471
605f35cd
DN
14722010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1473
1474 Remove non-working support for lynxos 3.0.
1475 * s/lynxos.h: Remove file.
1476
1477 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1478 COFF_BSD_SYMBOLS, nothing defines it anymore.
1479
aed71cf4
DN
14802010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1481
1482 Remove obsolete uses of HAVE_SHM.
1483 * emacs.c (standard_args):
1484 (Fdump_emacs):
1485 (syms_of_emacs): Remove code depending on HAVE_SHM.
1486
1487 * alloc.c: Remove HAVE_SHM dependent definition.
1488
1489 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1490
aded53ff
GM
14912010-03-18 Glenn Morris <rgm@gnu.org>
1492
17284745
GM
1493 * emacs.c (USAGE4): Hard-code bug address.
1494 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1495 (bug_reporting_address): Remove.
1496 (main): Don't call bug_reporting_address.
1497
aded53ff
GM
1498 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1499 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1500
303500aa
CY
15012010-03-15 Chong Yidong <cyd@stupidchicken.com>
1502
1503 * xfns.c (Fx_create_frame):
1504 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1505 on left.
1506
cef3058f
CY
15072010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1508
1509 * editfns.c (Fformat): Account for string precision when computing
1510 field width (Bug#5710).
1511
a647d59d
CY
15122010-03-12 Chong Yidong <cyd@stupidchicken.com>
1513
4fa42018
CY
1514 * xfns.c (Fx_create_frame): Set default to Qright.
1515
a647d59d
CY
1516 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1517 all window systems.
1518
6da23aaa
EZ
15192010-03-12 Eli Zaretskii <eliz@gnu.org>
1520
a96f6398 1521 These changes remove termcap.c from the build on Posix platforms.
83d02def 1522 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1523 (MSDOS_OBJ): ...to here.
1524 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1525 now identical to when LIBS_TERMCAP is defined.
1526
1527 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1528
1529 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1530
a96f6398 1531 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1532
288f9fc0
CY
15332010-03-10 Chong Yidong <cyd@stupidchicken.com>
1534
1535 * Branch for 23.2.
1536
d48cd3f4
SM
15372010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1538
1539 Cleanup setup of gl_state in various parts of the code.
1540 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1541 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1542 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1543 (skip_chars):
1544 * regex.c (regex_compile): Use it.
1545 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1546 it's now set in regex_compile when/if we need it.
1547
618db430
SM
15482010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1549
c0335e02
SM
1550 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1551 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1552 (QUIT): Use it to consolidate code and remove redundancy.
1553 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1554
254c06a8
SM
1555 * regex.c (regex_compile): Setup gl_state as well.
1556
618db430
SM
1557 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1558 (in_classes): Use CONSP before XCAR/XCDR.
1559
233f0c9f
CY
15602010-03-03 Chong Yidong <cyd@stupidchicken.com>
1561
1562 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1563 definitions, so that keyboard macros are correctly handled
1564 (Bug#5481).
1565
75f80e63
EZ
15662010-03-02 Eli Zaretskii <eliz@gnu.org>
1567
1568 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1569 text that could be relocated inside the call to emacs_mule_char.
1570 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1571 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1572
dcfb9bc4
KH
15732010-03-02 Kenichi Handa <handa@m17n.org>
1574
fc9a17bc
KH
1575 * character.c (parse_str_as_multibyte): Fix handling of the
1576 multibyte form of raw-bytes.
1577 (str_as_multibyte): Likewise.
1578
dcfb9bc4
KH
1579 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1580 form of raw-bytes.
1581
412c01b6
CY
15822010-02-28 Chong Yidong <cyd@stupidchicken.com>
1583
1584 * charset.c (load_charset_map_from_file)
1585 (load_charset_map_from_vector): Zero out allocated
1586 charset_map_entries before using them.
1587
df7e1ea0
AS
15882010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1589
1590 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1591
fe69a722
CY
15922010-02-27 Chong Yidong <cyd@stupidchicken.com>
1593
4ed28cf4
CY
1594 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1595 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1596
7379cfce
KH
15972010-02-26 Kenichi Handa <handa@m17n.org>
1598
f88cc4d6
KH
1599 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1600
7379cfce
KH
1601 * xdisp.c (reseat_to_string): Fix previous change.
1602
cf2fdcfb
CY
16032010-02-26 David Reitter <david.reitter@gmail.com>
1604
1605 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1606 Lisp_Object (Bug#4736).
1607
cc6c7c75
KH
16082010-02-25 Kenichi Handa <handa@m17n.org>
1609
1610 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1611
32e737d7
JD
16122010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1613
1614 * xterm.c (XTflash): Move declarations before statements.
1615
1616 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1617 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1618 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1619 (xg_create_tool_bar): Remove unused variables.
1620 (x_wm_set_size_hint): Move declarations before statements.
1621 (xg_create_frame_widgets): Remove variable grav,
1622
676cae9f
CY
16232010-02-21 Chong Yidong <cyd@stupidchicken.com>
1624
1625 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1626
886cc2b8
SM
16272010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1628
1629 * term.c (fatal): Add a final \n if needed (bug#5596).
1630
ddb2d8e2
CY
16312010-02-18 Chong Yidong <cyd@stupidchicken.com>
1632
1633 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1634
2a4f8d3d
GM
16352010-02-18 Glenn Morris <rgm@gnu.org>
1636
1637 * callint.c (Finteractive): Doc fix.
1638
ebaf11b6
KH
16392010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1640
886cc2b8
SM
1641 * coding.c (record_conversion_result):
1642 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1643 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1644 memory allocation error.
1645
d0396581
KH
16462010-02-17 Kenichi Handa <handa@m17n.org>
1647
886cc2b8
SM
1648 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1649 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1650 (decode_coding): Setup ccl program here. Keep looping when the
1651 decoder stopped because the output buffer is
1652 fullfilled (bug#5534).
1653
1654 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1655
98599f74
JD
16562010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1657
471e4f04 1658 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1659 bug #5571.
886cc2b8 1660 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1661 overdrawn.
98599f74 1662
182659ae
JD
16632010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1664
1665 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1666 doing_interact here.
1667 (ice_connection_closed): New function.
1668 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1669 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1670 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1671 returns I/O error.
1672 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1673 bug #5512.
1674
9be32c4e 16752010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1676
1677 * nsfont.m (nsfont_open): The system's value for the font descent
1678 is negative, so round it down to avoid clipping.
1679
a2f3eb19
CY
16802010-02-06 Chong Yidong <cyd@stupidchicken.com>
1681
1682 * charset.c (load_charset_map_from_file)
1683 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1684 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1685
3088147c
CY
16862010-02-05 Chong Yidong <cyd@stupidchicken.com>
1687
1688 * charset.c (load_charset_map_from_file): Allocate large
1689 charset_map_entries structure on the heap rather than the stack.
1690 (Bug#5526).
1691
b57d9029
KH
16922010-01-31 Kenichi Handa <handa@m17n.org>
1693
1694 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1695 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1696
c67d885b
CY
16972010-01-31 Chong Yidong <cyd@stupidchicken.com>
1698
1699 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1700 <deactivated@gmail.com> (Bug#3605).
1701
8fab2362
CY
17022010-01-31 David De La Harpe Golden <david@harpegolden.net>
1703
1704 * fileio.c (Frename_file): Correctly rename symlinks to
1705 directories (Bug#5496).
1706
cb2a62f2
CY
17072010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1708
1709 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1710
944c7a26
AS
17112010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1712
1713 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1714
c024ac08
CY
17152010-01-29 Chong Yidong <cyd@stupidchicken.com>
1716
1717 * frame.c (DEFAULT_ROWS): Change default to 35.
1718
1719 * xfns.c (x_default_font_parameter): Change default XFT font to
1720 monospace-10 (Bug#3643).
1721
af93af83
EZ
17222010-01-29 Eli Zaretskii <eliz@gnu.org>
1723
1724 * w32inevt.c (key_event): Remove unnecessary comparison of
1725 event->uChar.AsciiChar with 128.
1726
ca0eb708
CY
17272010-01-28 Chong Yidong <cyd@stupidchicken.com>
1728
b242dbfc
CY
1729 * fileio.c (Frename_file): Fix last change (Bug#5487).
1730
ca0eb708
CY
1731 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1732
1733 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1734
45d45af5
JD
17352010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1736
1737 * xfns.c (Fx_create_frame): Remove window size matching code from
1738 2010-01-15.
1739 (x_get_current_desktop, x_get_desktop_workarea): Remove
1740
7e233730
JR
17412010-01-27 Jason Rumney <jasonr@gnu.org>
1742
1743 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1744 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1745
86e893e3
KH
17462010-01-27 Kenichi Handa <handa@m17n.org>
1747
1748 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1749 pattern string (Bug#4209).
86e893e3 1750
8719abec
CY
17512010-01-27 David De La Harpe Golden <david@harpegolden.net>
1752
1753 * fileio.c (Frename_file): Call copy-directory and
1754 delete-directory for directories, in order to handle cross-device
1755 renaming (Bug#3353).
1756
844794c8
JD
17572010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1758
aa3e13b5 1759 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1760 sizes 24 and 10. Bug #3643.
844794c8 1761
bd4b5750
SM
17622010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1763
8dc1adf6 1764 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1765 * keymap.c (shadow_lookup): Add `remap' arg.
1766 (describe_map, describe_vector): Update calls to shadow_lookup.
1767 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1768 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1769 perform remapping during shadow_lookup check of remapped_sequences.
1770
285d07e2
CY
17712010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1772
1773 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1774 png_check_sig, which has been removed in libpng 1.4.
1775
c6d09b8d
CY
17762010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1777
1778 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1779 lacks this header file).
1780
3d782998
YM
17812010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1782
1783 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1784 as in Emacs 22.
1785
2aff7c53
YM
17862010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1787
1788 * lisp.h (make_pure_string): String pointer arg now points to const.
1789
1790 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1791 args now point to const.
1792
74327f7a
EZ
17932010-01-22 Eli Zaretskii <eliz@gnu.org>
1794
1795 * lread.c (Fload): Don't treat files without .elc extension as
1796 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1797 them. (bug#5303)
1798
4d1e6632
KH
17992010-01-20 Kenichi Handa <handa@m17n.org>
1800
1801 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1802 treat the source as actual byte sequence.
1803
1fdede8f
AM
18042010-01-19 Alan Mackenzie <acm@muc.de>
1805
1806 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1807 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1808 `signal_after_change_p' to `coherent_change_p', and make the
1809 invocation of `modify_region' conditional on it.
1810
67477f30
JD
18112010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1812
1813 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1814 for debug purpose.
1815 (syms_of_xsettings): Declare xft-settings.
1816
244b023e
CY
18172010-01-18 Chong Yidong <cyd@stupidchicken.com>
1818
1819 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1820
617364fe
CY
18212010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1822
1823 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1824
4fe22cdf
CY
18252010-01-16 Chong Yidong <cyd@stupidchicken.com>
1826
1827 * emacs.c (standard_args): Adjust arg priorities to reflect how
1828 they are processed in startup.el.
1829
e118d2be
AS
18302010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1831
1832 * Makefile.in (lisp, shortlisp): Update.
1833
523ae620
SM
18342010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1835
1836 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1837 code, link the new kboard into all_kboard before running Lisp code,
1838 and protect the new terminal with GCPRO (Bug#5365).
1839 (x_term_init): Remove unused var `atom'.
1840 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1841
f0d13888
JD
18422010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1843
1844 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1845 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1846 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1847 this. Bug #3643.
f0d13888 1848
cc320f07
KH
18492010-01-15 Kenichi Handa <handa@m17n.org>
1850
1851 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1852
7ffdf101
CY
18532010-01-15 Chong Yidong <cyd@stupidchicken.com>
1854
1855 * nsterm.m (Qnone): Define.
1856
1857 * nsfns.m (Qnone): Move definition to nsterm.m.
1858
d12bd917
KH
18592010-01-14 Kenichi Handa <handa@m17n.org>
1860
1861 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1862 systems.
1863
d9a7c140
KH
18642010-01-14 Kenichi Handa <handa@m17n.org>
1865
1866 Make auto-composition work on all buffers even if they are
1867 fundamental mode.
1868
1869 * composite.c (Vauto_composition_mode): New variable.
1870 (composition_compute_stop_pos): Check Vauto_composition_mode
1871 instead of Vauto_composition_function.
1872 (composition_adjust_point, Ffind_composition_internal): Likewise.
1873 (syms_of_composite): Declare Lisp variable
1874 "auto-composition-mode" here.
1875
63286bb2
CY
18762010-01-13 Chong Yidong <cyd@stupidchicken.com>
1877
1878 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1879 during call to vendor-specific-keysyms (Bug#5365).
1880
c2623ee7
YM
18812010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1882
1883 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1884 Call SIGNAL_THREAD_CHECK (Bug#5333).
1885
1886 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1887 Call SIGNAL_THREAD_CHECK.
1888
0b5397c2
SM
18892010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1890
1891 Try to fix bug#5314. This is probably not the final word, tho.
1892 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1893 recent-auto-save-p as a side-effect.
1894 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1895 * buffer.c (Fkill_buffer, reset_buffer):
1896 * editfns.c (Fsubst_char_in_region):
1897 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1898 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1899
dc954cb2
KH
19002010-01-13 Kenichi Handa <handa@m17n.org>
1901
1902 Display buffer name, etc. in mode line by composing correctly.
1903
1904 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1905 STRING is not nil.
0b5397c2 1906 (display_mode_element): Adjust for the change of
dc954cb2
KH
1907 decode_mode_spec and display_line.
1908 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1909 (display_string): Handle the case that STRING is non-null and
1910 LISP_STRING is not nil.
1911
0b5397c2
SM
1912 * xterm.c (x_draw_composite_glyph_string_foreground):
1913 Pay attention to s->face->overstrike.
dc954cb2
KH
1914
1915 * composite.c (composition_reseat_it): Don't check PT if STRING is
1916 non nil.
1917
4a00eaca
YM
19182010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1919
1920 * keyboard.c (read_char): Don't apply previous change when current
1921 buffer is unchanged by command execution.
1922
60abb287
JD
19232010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1924
1925 * keyboard.c (read_char): Return after executing from special map.
1926
893db5bc
GM
19272010-01-12 Glenn Morris <rgm@gnu.org>
1928
1929 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1930 bug-gnu-emacs rather than emacs-pretest-bug.
1931
4d03ece0
CY
19322010-01-11 Chong Yidong <cyd@stupidchicken.com>
1933
1934 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1935 initializing the Lisp variables that depend on them.
1936
1df47e38
YM
19372010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1938
1939 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1940 Clear areas that will not be updated after change of menu bar lines.
1941 Clear the menu bar window's current matrix when the window gets empty.
1942
2f1c6384
CY
19432010-01-09 Chong Yidong <cyd@stupidchicken.com>
1944
e398c61c
CY
1945 * intervals.h, textprop.c (extend_property_ranges): Return value
1946 and args changed. Discard properties that begin at or after the
1947 new end (Bug#5306).
1948
1949 * editfns.c (Fformat): Caller changed.
1950
e5a29a10
CY
1951 * nsterm.m (ns_set_default_prefs): Delete function.
1952 (syms_of_nsterm): Initialize ns_command_modifier,
1953 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1954 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1955
2f1c6384
CY
1956 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1957 position (Bug#4040).
1958
d427a9fa
EZ
19592010-01-09 Eli Zaretskii <eliz@gnu.org>
1960
1961 * editfns.c (Ffloat_time): Doc fix.
1962
21b9df2f
JD
19632010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1964
1965 * xfns.c (Fx_create_frame): Don't create frame larger than display
1966 by default bug#3643.
1967
4b00d3b1
YM
19682010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1969
1970 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1971 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1972 windows above internal border.
1973
1974 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1975 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1976 windows above internal border.
1977
1978 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1979 tool bar windows specially.
1980
1981 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1982
1983 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1984 specially.
1985 (XTflash): Take account of menu bar height.
1986
1987 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1988 specially.
1989
5075d853
JD
19902010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1991
ac146f82 1992 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1993 also be true before we can return early (bug #5339).
1994
474217c8
CY
19952010-01-06 David Reitter <david.reitter@gmail.com>
1996
1997 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1998 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1999 (Bug#3233).
2000
c0e6d47d
JD
20012010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2002
d0cf45b7
JD
2003 * font.c (font_open_entity): Enable chache and call cached_font_ok
2004 for the driver if defined.
2005 (QCuser_spec): New symbol.
2006 (font_spec_from_name): Save name as user-spec.
2007 (font_load_for_lface): Keep user-spec instead of name.
2008 (font_open_by_name): Save name as user-spec.
2009 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2010 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2011
2012 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2013 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2014 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2015
2016 * font.h (struct font_driver): Add cached_font_ok.
2017
c0e6d47d
JD
2018 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2019
7c583cd8
JD
20202010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2021
2022 * xterm.c (x_new_font): Move code for setting rows/cols before
2023 resizing ...
ac146f82 2024 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2025
2026 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2027 (xg_frame_resized, xg_frame_set_char_size):
2028 Call xg_clear_under_internal_border.
7c583cd8 2029 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2030
03f77f0a
CY
20312010-01-05 Chong Yidong <cyd@stupidchicken.com>
2032
2033 * keyboard.c (read_key_sequence): Catch keyboard switch after
2034 making a new tty frame (Bug#5095).
2035
2a1ef5be
KH
20362010-01-05 Kenichi Handa <handa@m17n.org>
2037
2038 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2039
e3eb1dae
SM
20402010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2041
2042 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2043 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2044 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2045
777013f2
MA
20462010-01-03 Michael Albinus <michael.albinus@gmx.de>
2047
2048 * dbusbind.c (xd_add_watch): Improve debug message.
2049 (xd_remove_watch): Improve debug message. If DATA is the session
2050 bus, unset D-Bus session environment.
2051 (Fdbus_init_bus): Pass the bus as argument to
2052 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2053
8932b1c2
CY
20542010-01-01 Chong Yidong <cyd@stupidchicken.com>
2055
87231e2c
CY
2056 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2057
4801c5fa
CY
2058 * lread.c (syms_of_lread): Make it clearer that these are the
2059 names of loaded files (Bug#5068).
2060
8932b1c2
CY
2061 * eval.c (run_hook_with_args): Handle the case where the global
2062 value has the obsolete single-function form (Bug#5026).
2063
11e3c684
CY
20642009-12-27 Chong Yidong <cyd@stupidchicken.com>
2065
2066 * minibuf.c (Fall_completions): Minor optimization.
2067
5b28ce35
EZ
20682009-12-26 Eli Zaretskii <eliz@gnu.org>
2069
5ce6e4f4
JB
2070 * .gdbinit (pgx): Fix display of composite glyphs.
2071 Display cmp.from and cmp.to as well.
2072 (pitx): Fix last change.
5b28ce35 2073
bcffff46
KH
20742009-12-25 Kenichi Handa <handa@m17n.org>
2075
2076 * composite.h (composition_adjust_point): Update prototype.
2077
2078 * composite.c (composition_reseat_it): Don't make a composition
2079 spanning over point.
2080 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2081 composable characters.
2082 (composition_adjust_point): New arg NEW_PT. Callers changed.
2083
2084 * keyboard.c (command_loop_1): Force redisplay if the last point
2085 was within a composition.
2086 (adjust_point_for_property): Don't adjust point for automatic
2087 composition when called after buffer modification.
2088
3f670e9a
EZ
20892009-12-19 Eli Zaretskii <eliz@gnu.org>
2090
5ce6e4f4
JB
2091 * .gdbinit (pitx): Don't use enum names, use their values.
2092 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2093 (pgx): Don't use enum names, use their values.
2094 (pitmethod): New helper command.
2095 (pitx): Use it to display iteration method.
2096 (pgrowit): New command.
2097
ad903955
EZ
2098 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2099
3f670e9a
EZ
2100 Update dependencies in Makefile.in.
2101
2102 * Makefile.in (alloc.o): Depend on termhooks.h.
2103 (atimer.o): Depend on blockinput.h.
2104 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2105 and frame.h.
2106 (callint.o): Depend on systime.h, coding.h, and composite.h.
2107 (callproc.o): Depend on buffer.h.
2108 (casefiddle.o): Don't depend on charset.h.
2109 (casetab.o): Depend on character.h.
2110 (ccl.o): Depend on composite.h.
2111 (chartab.o): Depend on ccl.h.
2112 (cm.o): Depend on dispextern.h.
2113 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2114 (coding.o): Don't depend on $(INTERVALS_H).
2115 (composite.o): Don't depend on dispextern.h explicitly (it's in
2116 $(INTERVALS_H)). Depend on ccl.h.
2117 (data.o): Depend on systime.h, coding.h, composite.h,
2118 dispextern.h, font.h, and ccl.h.
2119 (dired.o): Depend on composite.h.
2120 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2121 composite.h (it's in $(INTERVALS_H)).
2122 (doc.o): Depend on systime.h, coding.h, and composite.h.
2123 (editfns.o): Don't depend explicitly on dispextern.h.
2124 (emacs.o): Depend on frame.h and coding.h.
2125 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2126 (fileio.o): Depend on frame.h and commands.h. Don't depend
2127 explicitly on dispextern.h.
2128 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2129 composite.h.
2130 (fns.o): Don't depend on termhooks.h.
2131 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2132 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2133 coding.h, $(INTERVALS_H), window.h, xterm.h.
2134 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2135 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2136 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2137 fontset.h, ccl.h, and ftfont.h.
2138 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2139 (gtkutil.o): Depend on dispextern.h and composite.h.
2140 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2141 termhooks.h, and ccl.h.
2142 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2143 (intervals.o): Depend on systime.h and coding.h.
2144 (keyboard.o): Depend on composite.h and coding.h.
2145 (keymap.o): Depend on coding.h and frame.h.
2146 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2147 (macros.o): Depend on systime.h, coding.h, and composite.h.
2148 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2149 and atimer.h.
2150 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2151 dispextern.h explicitly.
0b5397c2
SM
2152 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2153 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2154 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2155 (regex.o): Don't depend on charset.h.
2156 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2157 (search.o): Don't depend explicitly on composite.h.
2158 (sound.o): Depend on atimer.h and systime.h.
2159 (syntax.o): Don't depend explicitly on composite.h.
2160 (sysdep.o): Depend on coding.h and composite.h.
2161 (term.o): Depend on xterm.h and buffer.h.
2162 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2163 (textprop.o): Don't depend on dispextern.h explicitly.
2164 (undo.o): Depend on dispextern.h.
2165 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2166 dispextern.h and composite.h explicitly.
2167 (xdisp.o): Depend on ccl.h.
2168 (xfaces.o): Depend on coding.h and ccl.h.
2169 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2170 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2171 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2172 ftfont.h.
2173 (xgselect.o): New dependency.
2174 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2175 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2176 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2177 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2178 (xsmfns.o): Depend on frame.h and dispextern.h.
2179 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2180 sysselect.h.
2181
7a6f7fea
AS
21822009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2183
2184 * font.c (Fclear_font_cache): Pass correct cache argument to
2185 font_clear_cache.
2186
f4c21026
AS
21872009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2188
2189 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2190 twice.
2191
f7ab0997
CY
21922009-12-15 Chong Yidong <cyd@stupidchicken.com>
2193
2194 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2195 calling file-remote-p. Reported by Jim Meyering.
2196
fa8e045a
MA
21972009-12-15 Michael Albinus <michael.albinus@gmx.de>
2198
2199 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2200 avoid compiler warnings. (Bug #5217)
fa8e045a 2201
a63dba42
KH
22022009-12-14 Kenichi Handa <handa@m17n.org>
2203
2204 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2205 in 8-bit encoding.
2206
5ce6e4f4 22072009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2208
2209 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2210 tooltip windows.
2211
223e5fc6
JD
22122009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2213
36acb2a7
JD
2214 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2215 Xatom_net_window_type.
2216
2217 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2218 Xatom_net_window_type.
2219
b8f00677
JD
2220 * xterm.c (my_log_handler): New function.
2221 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2222 so we can filter out buggy messages. (Bug #5120).
b8f00677 2223
e5f0bc9a
JD
2224 * xterm.c (xg_scroll_callback): Parameter list changed,
2225 use parameter GtkScrollType to determine scroll/line/page.
2226 Only allow dragging if a button < 4 is grabbed (bug #5177).
2227 (xg_end_scroll_callback): New function.
2228 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2229 xg_create_scroll_bar.
2230
2231 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2232 (scroll_end_callback): Remove.
2233 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2234 button-release-event. Replace value-changed event with change-value,
2235 bug #5177,
2236 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2237 bug #5177.
2238
2239 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2240 (xg_create_scroll_bar): Add GCallback end_callback.
2241
223e5fc6
JD
2242 * xftfont.c (QClcdfilter): New variable.
2243 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2244 (syms_of_xftfont): Initialize QClcdfilter.
2245
3c055b77
JD
22462009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2247
2248 * xsettings.c (struct xsettings): Add member seen.
2249 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2250 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2251 (apply_xft_settings): Only update Xft settings with what member seen
2252 indicates as new.
2253
05fe33ff
EZ
22542009-12-12 Eli Zaretskii <eliz@gnu.org>
2255
2256 * dispextern.h (struct text_pos): Use EMACS_INT;
2257 (struct glyph): Use EMACS_INT for charpos.
2258 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2259 region_beg_charpos, region_end_charpos,
2260 redisplay_end_trigger_charpos, and also for
2261 iterator_stack_entry.end_charpos and
2262 iterator_stack_entry.stop_charpos.
2263
e8d7886a
JD
22642009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2265
5ce6e4f4 2266 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2267 (xg_create_scroll_bar): Call scroll_end_callback on button release
2268 event (bug #5177).
2269 (xg_event_is_for_scrollbar): != replaced with ==.
2270
d0db2ec8
KH
22712009-12-12 Kenichi Handa <handa@m17n.org>
2272
2273 * ftfont.c (struct ftfont_info): New member matrix.
2274 (ftfont_open): Setup xftfont_info->matrix.
2275 (MFLTFontFT): New member matrix.
2276 (FLOOR, CEIL, ROUND): New macros.
2277 (ftfont_get_metrics): Handle matrix transformation.
2278 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2279
2280 * xftfont.c (struct xftfont_info): New member matrix.
2281 (xftfont_open): Setup xftfont_info->matrix.
2282
22832009-12-10 Kenichi Handa <handa@m17n.org>
2284
2285 * xdisp.c (append_space_for_newline): Consider face-remapping.
2286
2cc7b62f
AS
22872009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2288
b87dd913
AS
2289 * xsettings.c: Include "keyboard.h".
2290
eba5eb94
AS
2291 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2292
2cc7b62f
AS
2293 Fix implicit function declarations.
2294 * cmds.c: Include "frame.h".
2295 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2296 * frame.h: Move declaration of delete_frame outside of
2297 HAVE_WINDOW_SYSTEM.
2298
a4ef73c8
CY
22992009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2300
2301 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2302
2303 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2304 GTK builds.
2305
944a300c
AS
23062009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2307
2308 * unexelf.c (unexec): Don't search for .data twice.
2309
022eef62
CY
23102009-12-05 Chong Yidong <cyd@stupidchicken.com>
2311
426ac949
CY
2312 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2313 if push failed.
2314 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2315 of push_display_prop (Bug#5000).
2316
022eef62
CY
2317 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2318 value of font_list_entities (Bug#5085).
2319
be95bee9
JB
23202009-12-04 Juanma Barranquero <lekktu@gmail.com>
2321
2322 Fix `string-to-number' to deal consistently with integers and floats.
2323 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2324 trailing characters, not just whitespace.
2325 (read1): Pass new arg 0 to keep old behavior.
2326 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2327 trailing chars, as it is already done for integers. Doc fixes.
2328 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2329
24c2d7ce
EZ
23302009-12-04 Eli Zaretskii <eliz@gnu.org>
2331
0b5397c2
SM
2332 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2333 Delete unused enumeration value.
24c2d7ce 2334
7e694795
EZ
23352009-12-03 Eli Zaretskii <eliz@gnu.org>
2336
2337 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2338
84b31826
SM
23392009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2340
2341 * process.c (Fmake_network_process): Fix up the tests for
2342 "connectionless socket", so they DTRT for seqpacket sockets as well.
2343
f00c449b
SM
23442009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2345
2346 * process.c (Qseqpacket): New symbol.
2347 (HAVE_SEQPACKET): New macro.
2348 (Fmake_network_process): Accept new :type `seqpacket'.
2349 (init_process): Add `seqpacket' feature when applicable.
2350 (syms_of_process): Initialize Qseqpacket.
2351
8096a0ff
YM
23522009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2353
2354 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2355 if entity is Qnil.
2356
3e0de07f
SM
23572009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2358
2359 * print.c (print_preprocess): Preprocess the key_and_value table of
2360 hashtables, even tho they're "hidden" (bug#5082).
2361
abeafb2a
JD
23622009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2363
2364 * frame.c (frame_make_pointer_invisible)
2365 (frame_make_pointer_visible): Declare f before statements.
2366
4bf47195
EZ
23672009-11-28 Eli Zaretskii <eliz@gnu.org>
2368
2369 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2370 omitted dependencies on lisp.h.
2371
c525b3f2
JD
23722009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2373
ece2d4ed
JD
2374 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2375 is NULL.
2376
2377 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2378
2379 * frame.c (frame_make_pointer_invisible)
3e0de07f 2380 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2381 frame.
2382
c525b3f2
JD
2383 * search.c (simple_search): Remove warning by making *p const.
2384
2f00e299
DN
23852009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2386
2387 * xdisp.c (power_letter): Remove duplicate const.
2388
084b049b
JD
23892009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2390
a1fadc6f
JD
2391 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2392
5ce6e4f4 2393 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2394 defaults (bug #5025).
2395
28259cac
SM
23962009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2397
2398 * insdel.c (adjust_markers_for_delete): Move it in the
2399 right direction! (bug#4803)
2400
e8e14166
YM
24012009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2402
2403 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2404
2405 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2406
86677b58
GM
24072009-11-24 Glenn Morris <rgm@gnu.org>
2408
2409 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2410
581e51e8
JD
24112009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2412
cfc86c7a
JD
2413 * Makefile.in: Must create deps for ecrt0.o in its rule.
2414
581e51e8
JD
2415 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2416 because that is what Gtk+ font dialog understands.
2417
2418 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2419 of Fcopy_sequence.
2420 (font_open_by_name): Put name given into QCname for font-object returned.
2421
2422 * frame.c (x_set_font): Save original font name as frame parameter
2423 font-parameter.
2424
2425 * xsettings.c (set_default_xft_settings): New function.
2426 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2427 is found.
2428
8b264ecb
AS
24292009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2430
2431 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2432 searching backwards through multibyte buffer.
2433
872870b2
JD
24342009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2435
2436 * xterm.c: #include xgselect.h.
2437 (x_initialize): Call xgselect_initialize.
2438
2439 * xsettings.c (something_changedCB): C++ comments => C comments.
2440 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2441 does that now.
2442
2443 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2444 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2445 (scroll_bar_button_cb): Remove.
5ce6e4f4 2446 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2447 event.
2448 (xg_create_scroll_bar): Don't bind button-press-event and
2449 button-release-event.
2450
2451 * process.c: Include xgselect.h if defined (USE_GTK) ||
2452 defined (HAVE_GCONF).
2453 (wait_reading_process_output): Call xg_select for the same condition.
2454
2455 * xgselect.c (xg_select): New function to better integrate with
2456 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2457
2458 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2459
2460 * Makefile.in (XOBJ): Add xgselect.o.
2461
62a6e103
AS
24622009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2463
0b5397c2
SM
2464 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2465 Remove ignored second argument. All callers changed.
62a6e103
AS
2466 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2467 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2468 * xdisp.c (string_char_and_length): Likewise.
2469
b0ca0f33
DN
24702009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2471
2472 * xterm.c (x_new_font):
2473 * print.c (print_object):
2474 * cmds.c (Fself_insert_command): Move declarations before statements.
2475
dd5a6279
CY
24762009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2477
2478 * s/cygwin.h: Remove unneeded linker flags.
2479
4a8e097d
JD
24802009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2481
0d1d0d26
JD
2482 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2483
2484 * xsettings.h: Declare xsettings_get_system_font.
2485
2486 * xsettings.c (xsettings_get_system_font): New function.
2487 (init_gconf): No use initiating gconf unless we have Xft also.
2488 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2489 HAVE_GCONF.
2490
4a8e097d
JD
2491 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2492 add a blank entry so it doesn't collapse into nothing.
2493
8ab1650e
SM
24942009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2495
2496 * lread.c (Funintern): Comment out last change.
2497
82c602f0
RS
24982009-11-19 Richard Stallman <rms@gnu.org>
2499
2500 * lread.c (Funintern): Error if symbol is t or nil.
2501
87e32266
SM
25022009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2503
2504 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2505 representation of Lisp integers.
2506 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2507
1b9ac145
AS
25082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2509
2510 * lisp.h: Remove declaration of Ffont_get_system_font.
2511 * xfns.c: Move include of "xsettings.h".
2512 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2513
dfb3c4c6
JD
25142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2515
87e32266
SM
2516 * xsettings.c (something_changedCB, Ffont_get_system_font):
2517 Check use_system_font.
dfb3c4c6
JD
2518 (syms_of_xsettings): DEFVAR font-use-system-font.
2519
9370c1d8
AS
25202009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2521
25fe851a
AS
2522 * xfns.c (x_default_font_parameter): Remove dead assignment.
2523
9370c1d8
AS
2524 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2525
637fa988
JD
25262009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2527
87e32266 2528 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2529 not have FC_LCD_*. #define them if not there.
a6eb20d8 2530
87e32266 2531 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2532
637fa988
JD
2533 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2534
2535 * xterm.c (handle_one_xevent): Call xft_settings_event for
2536 ClientMessage, PropertyNotify and DestroyNotify.
2537 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2538 Call xsettings_initialize.
2539
2540 * xftfont.c (xftfont_fix_match): New function.
2541 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2542 Call xftfont_fix_match after XftFontMatch.
2543
2544 * xfont.c (xfont_driver): Initialize all members.
2545
87e32266
SM
2546 * xfns.c (x_default_font_parameter):
2547 Try font from Ffont_get_system_font.
637fa988
JD
2548 Do not get font from x_default_parameter if we got one from
2549 Ffont_get_system_font.
87e32266 2550 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2551
2552 * w32font.c (w32font_driver): Initialize all members.
2553
2554 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2555
2556 * lisp.h: Declare syms_of_xsettings.
2557
87e32266
SM
2558 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2559 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2560
2561 * ftfont.c (ftfont_filter_properties): New function.
2562
2563 * frame.c (x_set_font): Remove unused variable lval.
2564
87e32266 2565 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2566
2567 * font.c (font_put_extra): Don't return if val is nil, it means
2568 boolean option is off.
2569 (font_parse_fcname): Collect all extra properties in extra_props
2570 and call filter_properties for all drivers with extra_props and
2571 font as parameter.
87e32266
SM
2572 (font_open_entity): Do not use cache, it does not pick up new
2573 fontconfig settings like hinting.
637fa988
JD
2574 (font_load_for_lface): If spec had a name in it, store it in entity.
2575
2576 * emacs.c (main): Call syms_of_xsettings
2577
2578 * config.in: HAVE_GCONF is new.
2579
2580 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2581 xsettings.o is new.
2582
5a942932
KH
25832009-11-17 Kenichi Handa <handa@m17n.org>
2584
2585 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2586 back to the default font in case that no suitable font is found.
2587
b7c7a4d1
SM
25882009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2589
2590 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2591 Suggested by Chad Brown <yandros@mit.edu>.
2592 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2593
072f1e39
JD
25942009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2595
2596 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2597
5d1e70a2
AS
25982009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2599
87e32266 2600 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2601
a53cfbe5
JD
26022009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2603
473a99b7
JD
2604 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2605 has a parent.
2606
a53cfbe5 2607 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2608 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2609
2610 * config.in: Generated (AUTO_DEPEND).
2611
f04bb9b2
MA
26122009-11-13 Michael Albinus <michael.albinus@gmx.de>
2613
b7c7a4d1 2614 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2615 Vdbus_registered_functions_table, because it contains also
2616 properties. Fix docstring.
b7c7a4d1 2617 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2618
8f11f7ec
SM
26192009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2620
2621 * alloc.c (mark_object): Don't reprocess marked strings.
2622 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2623 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2624
8a605fe8
KH
26252009-11-13 Kenichi Handa <handa@m17n.org>
2626
8f11f7ec 2627 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2628 semantics of Vword_combining_categories.
2629 (Vword_combining_categories): Describe the slight change of the
2630 semantics.
2631
241c4680
EZ
26322009-11-13 Eli Zaretskii <eliz@gnu.org>
2633
2634 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2635
2636 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2637
5d58e44c
SM
26382009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2639
2640 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2641
5e13f9d3
JB
26422009-11-12 Juanma Barranquero <lekktu@gmail.com>
2643
2644 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2645
cf54c754
DR
26462009-11-11 David Reitter <david.reitter@gmail.com>
2647
2648 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2649 variables to fix 2009-11-09 change.
2650
a4ada374
DN
26512009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2652
91433552
DN
2653 * process.c (ifflag_def): Make flag_sym constant.
2654 (Fnetwork_interface_info): Use a constant pointer.
2655 (ifflag_table):
2656 * xfns.c (cursor_bits):
2657 * xdisp.c (power_letter):
2658 * termcap.c (speeds, esctab):
2659 * sysdep.c (baud_convert):
2660 * keyboard.c (lispy_accent_codes, modifier_names):
2661 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2662 (jpeg_format, tiff_format, gif_format, svg_format)
2663 (interlace_start, interlace_increment, gs_format):
2664 * gtkutil.c (separator_names):
2665 * fringe.c (swap_nibble):
2666 * fns.c (base64_value_to_char, base64_char_to_value):
2667 * fileio.c (make_temp_name_tbl):
2668 * coding.c (suffixes): Make constant.
2669
f4265f6c
DN
2670 * frame.c (make_initial_frame):
2671 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2672 build_string.
2673 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2674
04420943
DN
2675 * s/freebsd.h:
2676 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2677
0a5d24ae
DN
2678 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2679 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2680
a4ada374
DN
2681 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2682 * xterm.c (syms_of_xterm):
2683 * xfaces.c (syms_of_xfaces):
2684 * xdisp.c (syms_of_xdisp):
2685 * lread.c (syms_of_lread):
2686 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2687 build_string.
91433552 2688
a4ada374
DN
2689 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2690
af98fc7f
SM
26912009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2692
8ab1650e 2693 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2694
e90292a9
JD
26952009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2696
2697 * keyboard.h: Declare timer_check.
2698
2699 * keyboard.c (timer_check_2): New function that does what the old
2700 timer_check did.
2701 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2702 returned, i.e. don't return -1 with timers pending.
2703
2704 * process.c: Remove extern declaration of timer_check.
2705
2706 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2707 even if timer_check returned -1.
2708
af98fc7f
SM
2709 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2710 xg_dialog_data.
e90292a9
JD
2711 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2712 the event loop.
2713 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2714 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2715 Destroy the dialog after xg_dialog_run.
2716
045b83c0
SM
27172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2718
2719 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2720
1fb99a3a
JD
27212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2722
2723 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2724
04e452cb
JB
27252009-11-09 Juanma Barranquero <lekktu@gmail.com>
2726
2727 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2728
ef7417fd
SM
27292009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2730
2731 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2732 w32menu.c, and nsmenu.m.
2733 Simplify the obsolete case where position is nil.
2734 (cleanup_popup_menu): New function, moved from nsmenu.m.
2735 (struct skp): Remove slot `notreal'.
2736 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2737 adjust callers.
2738 (single_menu_item): Adjust call to parse_menu_item.
2739 (syms_of_menu): Defsubr x-popup-menu.
2740 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2741 (keymap_panes): Don't export any more.
2742 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2743 (xmenu_show): Declare.
2744 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2745 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2746 * keyboard.h (parse_menu_item): Update declaration.
2747 * xmenu.c (Fx_popup_menu): Remove.
2748 (syms_of_xmenu): Don't defsubr x-popup-menu.
2749 * w32menu.c (Fx_popup_menu): Remove.
2750 (syms_of_w32menu): Don't defsubr x-popup-menu.
2751 * nsmenu.m (cleanup_popup_menu): Remove.
2752 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2753 moved to menu.c's Fx_popup_menu.
2754 (Fx_popup_menu): Remove.
2755 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2756 menu_items (it's done in menu.c already).
2757
424d6179
SM
27582009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2759
2760 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2761 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2762
c0df13a6 27632009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2764
2765 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2766 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2767 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2768 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2769
2de9f71c
SM
27702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2771
2772 Let integers use up 2 tags to give them one extra bit and thus double
2773 their range.
2774 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2775 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2776 New macros.
2777 (enum Lisp_Type): Use them. Give explicit values.
2778 (Lisp_Type_Limit): Remove.
2779 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2780 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2781 Pay attention to USE_2_TAGS_FOR_INTS.
2782 (INTEGERP): Use LISP_INT_TAG_P.
2783 * fns.c (internal_equal): Simplify the default case.
2784 (sxhash): Use case_Lisp_Int.
2785 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2786 any more.
2787 (Ftype_of): Use case_Lisp_Int.
2788 (store_symval_forwarding): Take into account the fact that Ints can
2789 now have more than one tag.
2790 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2791 buffer_slot_type_mismatch):
2792 * xfaces.c (face_attr_equal_p):
2793 * print.c (print_object):
2794 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2795 Use case_Lisp_Int.
2796
323637a2
EZ
27972009-11-06 Eli Zaretskii <eliz@gnu.org>
2798
7ac65b38
EZ
2799 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2800
323637a2
EZ
2801 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2802 warning.
2803
e511451f
JD
28042009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2805
2806 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2807
2808 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2809
2810 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2811 ButtonPressRelease and MotionNotify (bug#4870).
2812
5e2327cf
DN
28132009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2814
5adc433e
DN
2815 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2816
d67b4f80
DN
2817 * xterm.c (syms_of_xterm):
2818 * xselect.c (syms_of_xselect):
2819 * xmenu.c (syms_of_xmenu):
2820 * xfns.c (syms_of_xfns):
2821 * xfaces.c (syms_of_xfaces):
2822 * xdisp.c (syms_of_xdisp):
2823 * window.c (syms_of_window):
2824 * w32fns.c (syms_of_w32fns):
2825 * undo.c (syms_of_undo):
2826 * textprop.c (syms_of_textprop):
2827 * terminal.c (syms_of_terminal):
2828 * syntax.c (syms_of_syntax):
2829 * sound.c (syms_of_sound):
2830 * search.c (syms_of_search):
2831 * print.c (syms_of_print):
2832 * minibuf.c (syms_of_minibuf):
2833 * macros.c (syms_of_macros):
2834 * keymap.c (syms_of_keymap, initial_define_key)
2835 (initial_define_lispy_key):
2836 * keyboard.c (syms_of_keyboard):
2837 * insdel.c (syms_of_insdel):
2838 * image.c (syms_of_image):
2839 * fringe.c (syms_of_fringe):
2840 * frame.c (syms_of_frame):
2841 * fontset.c (syms_of_fontset):
2842 * fns.c (syms_of_fns):
2843 * fns.c (syms_of_fns):
2844 * fileio.c (syms_of_fileio):
2845 * fileio.c (syms_of_fileio):
2846 * eval.c (syms_of_eval):
2847 * doc.c (syms_of_doc):
2848 * dispnew.c (syms_of_display):
2849 * dired.c (syms_of_dired):
2850 * dbusbind.c (syms_of_dbusbind):
2851 * data.c (syms_of_data):
2852 * composite.c (syms_of_composite):
2853 * coding.c (syms_of_coding):
2854 * cmds.c (syms_of_cmds):
2855 * charset.c (define_charset_internal, syms_of_character):
2856 * ccl.c (syms_of_ccl):
2857 * category.c (syms_of_category, init_category_once):
2858 * casetab.c (syms_of_casetab):
2859 * casefiddle.c (syms_of_casefiddle):
2860 * callint.c (syms_of_callint):
2861 * bytecode.c (syms_of_bytecode):
2862 * buffer.c (keys_of_buffer, syms_of_buffer):
2863 * alloc.c (syms_of_alloc):
2864 * process.c (syms_of_process, init_process):
2865 * lread.c (syms_of_lread, init_obarray):
2866 * font.c (build_style_table):
2867 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2868 intern_c_string, calls to make_pure_string with
2869 make_pure_c_string. Use pure_cons instead of Fcons.
2870
5e2327cf
DN
2871 * process.c (socket_options): Make it const.
2872 (set_socket_option, init_process): Use a const pointer.
2873
2874 * lread.c (intern_c_string): New function.
2875 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2876 (defvar_int): Uset it. Make the name const char*.
2877
2878 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2879 (defvar_int): Update prototypes.
2880 (DEFUN, EXFUN): Support for prototypes is now required.
2881 (intern_c_string): New prototype.
2882 (struct Lisp_Subr): Make symbol_name constant.
2883
2884 * font.c (struct table_entry): Remove unused member. Make NAMES
2885 constant.
2886 (weight_table, slant_table, width_table): Make constant.
2887
2888 * emacs.c (struct standard_args): Make name and longname constant.
2889
2890 * character.h (DEFSYM): Use intern_c_string.
2891
a56eaaef
DN
28922009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2893
2894 * alloc.c (make_pure_c_string): New function.
2895
2896 * eval.c (Fautoload): Purecopy all arguments.
2897
f6a07420
KH
28982009-11-05 Kenichi Handa <handa@m17n.org>
2899
2900 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2901 the buffer in case of replace.
2902
5d28d4b1
DN
29032009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2904
2905 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2906
b349d111
SM
29072009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2908
d528b1ce
SM
2909 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2910 when applicable (bug#4851).
2911
b349d111
SM
2912 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2913 (P_): Support for prototypes is now required.
2914
c38eb027
CY
29152009-10-31 Chong Yidong <cyd@stupidchicken.com>
2916
2917 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2918 (Bug#4827).
2919
0405f8d9
EZ
29202009-10-30 Eli Zaretskii <eliz@gnu.org>
2921
d528b1ce 2922 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2923
ca0a881a
DN
29242009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2925
2926 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2927
d528b1ce
SM
2928 * lread.c (Fload): Purecopy the file name when building
2929 Vpreloaded_file_list.
ca0a881a 2930
47e0e0e4
JR
29312009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2932
2933 * w32fns.c (syms_of_w32fns): Change default value of
2934 w32-scroll-lock-modifier to nil. (Bug#2827)
2935
057bce6f
JB
29362009-10-26 Juanma Barranquero <lekktu@gmail.com>
2937
782a943e 2938 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2939
242bc74c
AS
29402009-10-26 Andreas Schwab <schwab@redhat.com>
2941
2942 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2943
522d013a
JB
29442009-10-26 Juanma Barranquero <lekktu@gmail.com>
2945
2946 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2947 For delta < 0, skip check that only makes sense when the mini-window
2948 is going to be enlarged. (Bug#4534)
2949
18060980
CY
29502009-10-25 Chong Yidong <cyd@stupidchicken.com>
2951
2952 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2953 string in menu maps (Bug#4471).
2954
fec8f0fe
CY
29552009-10-24 Chong Yidong <cyd@stupidchicken.com>
2956
2957 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2958 FRAME_NS_VIEW on terminal frames (Bug#4765).
2959
10d66ec0
AS
29602009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2961
1cae01f7
AS
2962 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2963 DBUS_TYPE_UINTnn separately to get proper sign extension.
2964
58a12889
AS
2965 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2966 can properly handle unsigned types.
d528b1ce 2967 (make_uid, make_gid): Remove.
58a12889 2968
987c9327
AS
2969 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2970 types again.
2971
522d013a 2972 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2973 (system_process_attributes): Likewise.
2974
905a9ed3
DN
29752009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2976
2977 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2978
2979 * eval.c (Fautoload): Purecopy the filename. Simplify.
2980
2981 * category.c (Fdefine_category): Purecopy docstring.
2982
a599b3e8
AS
29832009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2984
7b792fc9
AS
2985 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2986
a599b3e8
AS
2987 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2988
b35ac83e
CY
29892009-10-23 Chong Yidong <cyd@stupidchicken.com>
2990
2991 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2992 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2993 (Bug#4775).
2994
e8903e00
SM
29952009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2996
2997 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2998 (init_fileio_once):
2999 * lisp.h (init_fileio_once): Remove.
3000 * emacs.c (main): Don't call init_fileio_once.
3001
8f43cbf3
DN
30022009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3003
3004 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3005
26898943
AS
30062009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3007
3008 * doprnt.c (doprnt): Fix overflow check.
3009
5c646d5a
JD
30102009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3011
3132a7ea
JD
3012 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3013
5c646d5a
JD
3014 * xterm.h (x_wait_for_event): Declare it.
3015
3016 * xterm.c (pending_event_wait): New variable.
3017 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3018 see pending_event_wait.eventtype.
3019 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3020 (x_new_font): Call change_frame_size with new rows/columns before we
3021 try to resize the frame.
5c646d5a 3022 (x_wait_for_event): New function.
d528b1ce
SM
3023 (x_set_window_size_1): Don't change gravity unless change_gravity
3024 is set.
5c646d5a
JD
3025 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3026 don't change frame size, instead wait for the ConfigureNotify.
3027 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3028 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3029 (x_initialize): Initialize pending_event_wait.
3030
3031 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3032 size.
3033
3034 * widget.c (EmacsFrameSetValues): Add comment.
3035 (EmacsFrameSetCharSize): Just call x_set_window_size.
3036
3037 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3038 x_wait_for_event.
d528b1ce 3039 (flush_and_sync): Remove again.
5c646d5a
JD
3040 (xg_get_font_name): Suggest monospace if no previous font is known.
3041
e9c1637d
SM
30422009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3043
3044 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3045 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3046
5a72cccb
YM
30472009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3048
3049 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3050 processing pending events when event is filtered for input method.
ab04798f 3051 (Bug#3681)
5a72cccb 3052
2629aa37
JB
30532009-10-20 Juanma Barranquero <lekktu@gmail.com>
3054
3055 * fns.c: Add #endif accidentally removed in previous change.
3056
c3417a74
DN
30572009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3058
3059 * fns.c: Remove code for unsupported system: MAC_OS.
3060 * image.c: Likewise. Include setjmp.h.
3061
9685cef2
JD
30622009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3063
3064 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3065 pixel -1 (bug #4742).
3066
d7306fe6
DN
30672009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3068
019d2c4c
DN
3069 * process.c (create_pty): Remove conditionals for no longer
3070 supported systems: UNIPLUS and RTU.
3071
ee6bacd4
DN
3072 * xterm.c:
3073 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3074
d7306fe6
DN
3075 * alloc.c: Do not define struct catchtag.
3076 * eval.c: Move struct catchtag definition ...
3077 * lisp.h: ... here.
3078
3079 * image.c: Move png.h #include earlier to avoid warnings.
3080
3081 * xterm.c:
3082 * xsmfns.c:
3083 * xselect.c:
3084 * xrdb.c:
3085 * xmenu.c:
3086 * xftfont.c:
3087 * xfont.c:
3088 * xfns.c:
3089 * xfaces.c:
3090 * xdisp.c:
3091 * window.c:
3092 * widget.c:
3093 * w32xfns.c:
3094 * w32uniscribe.c:
3095 * w32term.c:
3096 * w32select.c:
3097 * w32reg.c:
3098 * w32proc.c:
3099 * w32menu.c:
3100 * w32inevt.c:
3101 * w32heap.c:
3102 * w32font.c:
3103 * w32fns.c:
3104 * w32console.c:
3105 * w32.c:
3106 * w16select.c:
3107 * vm-limit.c:
3108 * unexsol.c:
3109 * unexec.c:
3110 * unexcw.c:
3111 * unexaix.c:
3112 * undo.c:
3113 * tparam.c:
3114 * textprop.c:
3115 * terminfo.c:
3116 * terminal.c:
3117 * termcap.c:
3118 * term.c:
3119 * syntax.c:
3120 * sound.c:
3121 * sheap.c:
3122 * search.c:
3123 * scroll.c:
3124 * region-cache.c:
3125 * regex.c:
3126 * ralloc.c:
3127 * process.c:
3128 * print.c:
b024548b
DN
3129 * nsterm.m:
3130 * nsselect.m:
3131 * nsmenu.m:
3132 * nsimage.m:
3133 * nsfont.m:
3134 * nsfns.m:
d7306fe6
DN
3135 * msdos.c:
3136 * minibuf.c:
3137 * menu.c:
3138 * marker.c:
3139 * macros.c:
3140 * keymap.c:
3141 * keyboard.c:
3142 * intervals.c:
3143 * insdel.c:
3144 * indent.c:
3145 * gtkutil.c:
3146 * ftxfont.c:
3147 * ftfont.c:
3148 * fringe.c:
3149 * frame.c:
3150 * fontset.c:
3151 * font.c:
3152 * fns.c:
3153 * floatfns.c:
3154 * filelock.c:
3155 * fileio.c:
3156 * emacs.c:
3157 * editfns.c:
3158 * dosfns.c:
3159 * doprnt.c:
3160 * doc.c:
3161 * dispnew.c:
3162 * dired.c:
3163 * dbusbind.c:
3164 * data.c:
3165 * composite.c:
3166 * coding.c:
3167 * cmds.c:
3168 * cm.c:
3169 * chartab.c:
3170 * charset.c:
3171 * character.c:
3172 * ccl.c:
3173 * category.c:
3174 * casetab.c:
3175 * casefiddle.c:
3176 * callproc.c:
3177 * callint.c:
3178 * bytecode.c:
3179 * buffer.c:
3180 * atimer.c: Include setjmp.h. (Bug#4643)
3181
fd5f21e6
SM
31822009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3183
4c0354d7
SM
3184 Remove leftover table unibyte_to_multibyte_table.
3185 * character.c (unibyte_to_multibyte_table): Remove.
3186 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3187 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3188 * character.h (UNIBYTE_TO_CHAR): New macro.
3189 (MAKE_CHAR_MULTIBYTE): Use it.
3190 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3191 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3192 (message_dolog, set_message_1):
3193 * search.c (Freplace_match):
3194 * editfns.c (Fcompare_buffer_substrings):
3195 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3196 (concat):
3197 * insdel.c (copy_text, count_size_as_multibyte):
3198 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3199 * term.c (produce_glyphs):
3200 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3201 * regex.c (RE_CHAR_TO_MULTIBYTE):
3202 * cmds.c (internal_self_insert):
3203 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3204
fd5f21e6
SM
3205 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3206
4418646e
DN
32072009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3208
3209 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3210
35f5c1d2
JB
32112009-10-16 Juanma Barranquero <lekktu@gmail.com>
3212
3213 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3214
a0cd8f6b
AR
32152009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3216
3217 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3218 still needed under Tiger.
3219
3220 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3221
3222 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3223 __Apple__.
3224
3225 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3226
01a8d3fa
KH
32272009-10-15 Kenichi Handa <handa@m17n.org>
3228
3229 * print.c (print_object): Escape a symbol like "2E10" too.
3230
bf6c75c9 32312009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3232
3233 Cleanups and changes for 64-bit compile under Snow Leopard.
3234 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3235
3236 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3237
c5959062 3238 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3239 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3240 cast argument.
3241 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3242 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3243
3244 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3245
3246 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3247 where appropriate.
3248
3249 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3250 where appropriate.
6e4780c5
JB
3251 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3252 Use stringWithUTF8String.
bf6c75c9
AR
3253 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3254
6e4780c5
JB
3255 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3256 Add formal protocol mention to inheritance.
bf6c75c9
AR
3257 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3258
6e4780c5
JB
3259 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3260 Fix printf format.
bf6c75c9
AR
3261 (ns_query_color): Use CGFloat where appropriate.
3262 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3263 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3264 argument.
3265
3d87f118
AR
3266 * config.in (NS_HAVE_NSINTEGER): Drop.
3267
a95c8102
AR
3268 * dbusbind.c (dbus-method-return-internal)
3269 (dbus-method-error-internal): Use long format in printf, and cast
3270 argument.
3271
3272 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3273 in printf, and cast argument.
3274
6873acca 3275 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3276 cast argument.
3277
9ec6f100
GM
32782009-10-11 Glenn Morris <rgm@gnu.org>
3279
3280 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3281
5be883cd
JD
32822009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3283
3284 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3285 menu bar with a small width so it doesn't enlarge the frame.
3286
d7a39b51
JB
32872009-10-08 Juanma Barranquero <lekktu@gmail.com>
3288
3289 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3290
0c2b6f8e
GM
32912009-10-06 Glenn Morris <rgm@gnu.org>
3292
3293 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3294 SOME_MACHINE_LISP (this enters indirectly via DOC).
3295
e02131a2
EZ
32962009-10-05 Eli Zaretskii <eliz@gnu.org>
3297
3298 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3299
b4744254
EZ
33002009-10-04 Eli Zaretskii <eliz@gnu.org>
3301
3302 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3303 Doc fix.
3304
dbf64827
JB
33052009-10-03 Martin Rudalics <rudalics@gmx.at>
3306
3307 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3308
e9a0aef8
MA
33092009-10-02 Michael Albinus <michael.albinus@gmx.de>
3310
d528b1ce 3311 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3312 used anymore outside fileio.c.
3313
3314 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3315
64eb2b56
JB
33162009-10-01 Juanma Barranquero <lekktu@gmail.com>
3317
3318 * lisp.h (Qdelete_directory_internal):
3319 Declare, instead of Qdelete_directory.
3320
3321 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3322
9d28c33e
SM
33232009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3324
3325 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3326
9d8f3bd9
MA
33272009-10-01 Michael Albinus <michael.albinus@gmx.de>
3328
9d28c33e 3329 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3330 Fdelete_directory. It is not a command anymore. It has no file
3331 name handler.
3332
9694740b
SM
33332009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3334
3335 * xdisp.c (get_next_display_element): Use an enum in last change.
3336
748e162f
KH
33372009-09-28 Kenichi Handa <handa@m17n.org>
3338
9694740b 3339 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3340 unibyte_display_via_language_environment in handling
3341 Vnobreak_char_display.
3342
17efd58d
AR
33432009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3344
3345 * nsterm.h (ns_app_name): New extern variable.
3346
3347 * nsterm.m (ns_app_name): New variable.
3348 (ns_term_init): Set and use it.
3349 (ns_term_shutdown): Use it.
3350
3351 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3352 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3353
3354 * nsfns.m (ns_set_name_iconic, ns_set_name)
3355 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3356 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3357
9694740b
SM
3358 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3359 Remove double-casting in client_data comparison.
31c2d412 3360
3208cb35
YM
33612009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3362
3363 * keyboard.c (make_lispy_event): Remember last wheel direction.
3364 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3365
b7d552d6
GM
33662009-09-26 Glenn Morris <rgm@gnu.org>
3367
3368 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3369 internal.elc. Add term/pc-win.elc.
3370 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3371 term/x-win.elc.
3372 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3373 term/w32-win.elc.
3374 (NS_SUPPORT): New.
3375 (lisp): Add NS_SUPPORT.
3376 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3377
4ff670a8
DR
33782009-09-25 David Reitter <david.reitter@gmail.com>
3379
3380 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3381 on Mac OS X 10.6+ (bug#4513).
3382
feabfb6c
JB
33832009-09-24 Juanma Barranquero <lekktu@gmail.com>
3384
3385 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3386 some parts of Emacs code (like font selection) don't grok them.
3387 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3388
de59072a
AS
33892009-09-24 Andreas Schwab <schwab@redhat.com>
3390
3391 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3392
a489517b
JB
33932009-09-24 Juanma Barranquero <lekktu@gmail.com>
3394
3395 * dired.c (Fdirectory_files): Fix typo in docstring.
3396
0592970c
AR
33972009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3398
3399 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3400 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3401 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3402 under GNUstep.
3403 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3404
3405 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3406 glyph advancement.
3407
48e8a88b
AR
34082009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3409
3410 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3411 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3412
3413 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3414 deleted (bug #4492).
3415
e14f0a78
AR
3416 * nsfont.m (Vns_reg_to_script): New lisp variable.
3417 (syms_of_nsfont): Declare it.
3418 (ns_registry_to_script): New function.
3419 (ns_get_req_script): Call it.
3420 (ns_findfonts): Don't give up on non-unicode registry.
3421
3422 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3423
5b650faa
SM
34242009-09-20 Tom Tromey <tromey@redhat.com>
3425
3426 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3427 batch mode (bug#4228).
3428
a489517b 34292009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3430
3431 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3432 carefully. (Bug #4339)
0bae4e09 3433
fcfe06f3
CY
34342009-09-18 Chong Yidong <cyd@stupidchicken.com>
3435
d798ba87 3436 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3437
31642728
AR
34382009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3439
3440 * emacs.c (inhibit_x_resources): Update doc string for NS.
3441 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3442 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3443
3444 * nsterm.h (ns_no_defaults): Remove.
3445
3446 * nsterm.m (ns_no_defaults): Remove.
3447 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3448 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3449 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3450 don't update the NSWindow itself.
3451 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3452 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3453
3454 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3455 ns_use_qd_smoothing.
3456
3457 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3458 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3459 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3460 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3461
8686ac71
JB
34622009-09-17 Juanma Barranquero <lekktu@gmail.com>
3463
3464 * emacs.c (inhibit_x_resources): New variable.
3465 (main) [HAVE_NS]: Don't process --quick command line option.
3466 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3467
3468 * lisp.h (inhibit_x_resources): Declare it extern.
3469
3470 * w32reg.c (x_get_string_resource):
3471 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3472
e227ba05
EZ
34732009-09-17 Eli Zaretskii <eliz@gnu.org>
3474
362654a6
JB
3475 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3476 Add lisp/term/internal.elc.
e227ba05 3477
742d40e8
SM
34782009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3479
3480 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3481 (bug#4461).
3482
005bd5a2
DN
34832009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3484
3485 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3486
3487 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3488 (OBJECTS_MACHINE): Remove, unused.
3489
f9af9719
SM
34902009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3491
3492 * frame.c (x_get_resource_string): Remove unused.
3493
0307c7d2
JD
34942009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3495
3496 * xterm.c (x_new_font): Call change_frame_size before calling
3497 x_set_window_size, in case frame size won't change.
3498
3499 * frame.c (x_set_font): Remove dead code.
3500
428b13d6
SM
35012009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3502
3503 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3504
5766c380
SM
35052009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3506
3507 * lread.c (Fload): Don't output a message after loading an obsolete
3508 package any more (done in Lisp now).
3509
2fd0161b
CY
35102009-09-12 Chong Yidong <cyd@stupidchicken.com>
3511
3512 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3513
bc5e75b6
SM
35142009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3515
3516 * keymap.c (Fwhere_is_internal): Use nconc2.
3517
c31c985e
AM
35182009-09-11 Alan Mackenzie <acm@muc.de>
3519
3520 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3521 batch mode.
3522
78012bd2
AS
35232009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3524
3525 * xdisp.c (display_mode_element): Detect cycles.
3526
9d889332
SM
35272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3528
3529 * keymap.c (where_is_internal): Don't erroneously return nil right after
3530 filling the cache.
3531 (where_is_internal_1): Fix up typo.
3532
7ab5d780
GM
35332009-09-11 Glenn Morris <rgm@gnu.org>
3534
3535 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3536 share a common doc-string.
3537
5238a749
SM
35382009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3539
66d77eda
SM
3540 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3541 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3542
5238a749
SM
3543 * keymap.c (QCadvertised_binding): New constant.
3544 (syms_of_keymap): Initialize it.
3545 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3546 if applicable.
3547
19f48442
SM
35482009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3549
50d4ba39
SM
3550 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3551 (parse_menu_item): Streamline since bindings are recomputed all the
3552 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3553 more and don't support lmenu's menu-alias any more either.
3554
a88a5372
SM
3555 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3556 (where_is_internal): Strip it down to only traverse the keymaps.
3557 Move the cache handling from Fwhere_is_internal to here.
3558 (Fwhere_is_internal): Move the handling of remapping and the choice of
3559 the best binding from where_is_internal to here.
3560 Unify the cached/noncached paths, so remapping is also handled
3561 correctly when the cache is used, and so the cache can be used to
3562 speed up remap-handling when applicable.
3563 Give preference to non-remapped bindings.
3564 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3565 non-remapped bindings.
3566 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3567 command remapping.
3568
19f48442
SM
3569 * xdisp.c (display_mode_element): Move list length limit from 50 to
3570 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3571
599498c3 35722009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3573
3574 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3575
f9b7b5ac
SM
35762009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3577
a53af587
JB
3578 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3579 (Bug#4334)
3580
f9b7b5ac
SM
3581 * keymap.c (where_is_internal): Filter out shadowed remappings.
3582 Assume that where_is_internal returns unshadowed bindings to simplify
3583 the code and get rid of the gotos. Use ASIZE.
3584
04f4b72d
JD
35852009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3586
4da146f2
JD
3587 * xterm.c (x_focus_changed): If we get a focusout and pointer
3588 is invisible, make it visible.
3589
04f4b72d
JD
3590 * xterm.h: Remove condition for declaration of
3591 x_*_window_to_frame.
3592
7cef7ce3
SM
35932009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3594
3595 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3596 initial terminal as well.
3597
a54fa5b7
JD
35982009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3599
3600 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3601 x_menubar_window_to_frame.
a54fa5b7 3602
50426a04 3603 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3604 (XTmouse_position): Do not return valid positions
3605 for clicks in the menubar and the toolbar for Gtk+.
3606
3607 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3608 if the widget for the event has the same top level as a frame,
3609 return the frame.
3610 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3611 internal windows, bug #4122.
3612 (x_non_menubar_window_to_frame): Remove.
3613
5a021dd0
GM
36142009-09-02 Glenn Morris <rgm@gnu.org>
3615
3616 * buffer.c (default-major-mode): Move most of the doc from here...
3617 (major-mode): ... to here.
3618
548fe2f3
NR
36192009-08-30 Nick Roberts <nickrob@snap.net.nz>
3620
3621 * process.c (wait_reading_process_output): Keep the descriptor
3622 when pty is used by a non-child process, e.g., in I/O buffer of
3623 GDB this allows inferior to be restarted.
3624
e0840eef
EZ
36252009-08-29 Eli Zaretskii <eliz@gnu.org>
3626
3627 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3628 both branches into one.
3629
82e98df4
SM
36302009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3631
3632 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3633 (main): Use enable-multibyte-characters rather than
3634 default-enable-multibyte-characters. Output a warning message when
3635 running a unibyte session.
3636
890617cb
YM
36372009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3638
3639 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3640 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3641 (copy_data_segment): Also copy __program_vars section.
3642 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3643 (dump_it) [LC_DYLD_INFO]: Use it.
3644
3645 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3646
e7adeadc
EZ
36472009-08-28 Eli Zaretskii <eliz@gnu.org>
3648
3649 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3650 $(SRC)/buildobj.h.
3651 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3652 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3653 $(SRC)/buildobj.h.
3654 (clean): Add buildobj.h.
3655
3ed8bbdc
TZ
36562009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3657
3658 * print.c (print_object): Set escapeflag to 1 when printing
3659 hashtable keys and values.
3660
155a6764
SM
36612009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3662
3663 * lread.c (read_integer): Use doubles (and potentially return a float
3664 number) as we do in string-to-number.
3665 (read1): Use strtol to read integers, signal errors on strtol's
3666 overflow and use floats if strtol's output is too large for
3667 Elisp integers.
3668
877610de
EZ
36692009-08-27 Eli Zaretskii <eliz@gnu.org>
3670
3671 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3672 (make-buildobj-SH): Fix last change.
3673 (SRC): Move to before where it's first used.
3674
ef73e7be
KH
36752009-08-27 Kenichi Handa <handa@m17n.org>
3676
550c8289
KH
3677 * process.c (send_process): Use encode_coding_object instead of
3678 encode_coding_string to perform eol-conversion even if the string
3679 is unibyte.
3680
60afa08d
KH
3681 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3682 character.
3683
ef73e7be 3684 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3685 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3686
7b3a82d7
DN
36872009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3688
5654bf63
DN
3689 * callproc.c (Fcall_process): Remove always true #if.
3690
7b3a82d7
DN
3691 * lisp.h: Replace #if 0 code for checking with text pointing to
3692 the --enable-checking configure flag.
3693
3694 * emacs.c (main): Mention the --enable-profiling configure flag
3695 instead of using CFLAGS.
3696
878bde49
KR
36972009-08-26 Ken Raeburn <raeburn@raeburn.org>
3698
3699 * Makefile.in (buildobj.h): New target.
3700 (doc.o): Depend on it.
3701 (temacs${EXEEXT}): Don't generate buildobj.lst.
3702 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3703 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3704 ($(BLD)/doc.$(O)): Depend on it.
3705 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3706 provided by Eli Zaretskii.)
3707 ($(TEMACS)): Don't generate buildobj.lst.
3708 * doc.c: Include buildobj.h.
3709 (buildobj): New static variable.
3710 (Fsnarf_documentation): Use it, instead of opening and reading
3711 buildobj.lst.
3712
1574224c
MA
37132009-08-25 Michael Albinus <michael.albinus@gmx.de>
3714
3715 * dbusbind.c (Fdbus_call_method)
3716 (Fdbus_call_method_asynchronously): Use English numeric format for
3717 timeout values in doc string.
3718
d9da2f45
KH
37192009-08-25 Kenichi Handa <handa@m17n.org>
3720
ef73e7be
KH
3721 * alloc.c (mark_char_table): New function.
3722 (mark_object): Use mark_char_table for a char-table.
3723
d9da2f45
KH
3724 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3725 (CHAR_TABLE_REF): Use it.
3726
c8edcc01
KR
37272009-08-23 Ken Raeburn <raeburn@raeburn.org>
3728
3729 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3730 before invoking the newly build emacs to check for load-path
3731 shadowing.
3732
7763401b
GM
37332009-08-22 Glenn Morris <rgm@gnu.org>
3734
3735 * Makefile.in (bootstrap_exe): New variable.
3736 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3737 Use ${bootstrap_exe}.
3738
729eadda
EZ
37392009-08-22 Eli Zaretskii <eliz@gnu.org>
3740
3741 * coding.h (encode_coding_string): Don't encode unibyte strings.
3742 (Bug#4047)
3743
eb4c6ace
MA
37442009-08-22 Michael Albinus <michael.albinus@gmx.de>
3745
3746 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3747
3748 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3749 intended as hotfix only.
3750 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3751
36e34d1b
AR
37522009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3753
3754 * nsterm.m (ns_get_color): Update documentation properly for last
3755 change, and clean up loose ends in the code left by it. Fix
3756 longstanding bug with 16-bit hex parsing, and add support for
3757 yet another X11 format (rgb:r/g/b) for compatibility.
3758 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3759 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3760
f983eb8a
SM
37612009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3762
3763 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3764
3f56d3c6
MA
37652009-08-20 Michael Albinus <michael.albinus@gmx.de>
3766
3767 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3768 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3769 (xd_initialize, xd_pending_messages): Check, whether
3770 $DBUS_SESSION_BUS_ADDRESS is set.
3771
fb641d68
YM
37722009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3773
3774 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3775
3776 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3777
cf59a374
GM
37782009-08-20 Glenn Morris <rgm@gnu.org>
3779
3780 * emacs.c (system-type): Doc fix.
3781
1373f3be
SM
37822009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3783
3784 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3785 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3786
058ed861
MA
37872009-08-18 Michael Albinus <michael.albinus@gmx.de>
3788
1373f3be
SM
3789 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3790 New functions.
058ed861
MA
3791 (xd_initialize): Revert change from 2009-08-16.
3792
563a866e 37932009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3794
3795 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3796 font-group vector, return nil.
5fc05db0 3797
e42bdf01
CY
37982009-08-17 Chong Yidong <cyd@stupidchicken.com>
3799
3800 * process.c (status_notify): Don't perform redisplay.
3801 (Fdelete_process, list_processes_1, process_send_signal):
3802 Expliticly perform redisplay.
3803 (wait_reading_process_output): Always check process status, but
3804 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3805
4230ab74
KR
38062009-08-17 Ken Raeburn <raeburn@raeburn.org>
3807
1373f3be 3808 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3809 (XFLOAT_INIT): New macro for storing a float value.
3810 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3811 * fns.c (sxhash): Copy out the value of a float in order to
3812 examine its bytes.
3813 * dbusbind.c (xd_append_arg): Likewise.
3814
4230ab74
KR
3815 * emacs.c (main): Don't call syms_of_data twice.
3816
a0645cdd
MA
38172009-08-16 Michael Albinus <michael.albinus@gmx.de>
3818
3819 * dbusbind.c (xd_initialize): Add connection file descriptor to
3820 input_wait_mask, in order to let select() detect, whether a new
3821 message has been arrived.
ca4f31ea 3822 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3823
485db0ba
MA
38242009-08-15 Michael Albinus <michael.albinus@gmx.de>
3825
1373f3be
SM
3826 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3827 New functions.
485db0ba
MA
3828
3829 * lisp.h (xd_pending_messages): Declare.
3830
3831 * keyboard.c (readable_events): Call xd_pending_messages.
3832
b5b98ff4
CY
38332009-08-15 Chong Yidong <cyd@stupidchicken.com>
3834
1373f3be 3835 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3836
f8354c6e
CY
3837 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3838
b5b98ff4
CY
3839 * buffer.c (set_buffer_internal_1)
3840 (swap_out_buffer_local_variables): Check for unbound local
3841 variables (Bug#4138).
3842
8b9fc636
EZ
38432009-08-14 Eli Zaretskii <eliz@gnu.org>
3844
3845 * process.c (create_pty): Fix last change.
3846
ce959360
CY
38472009-08-13 Chong Yidong <cyd@stupidchicken.com>
3848
3849 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3850 (xbm_load_image): Caller changed.
64b807c9 3851 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3852
c7baf7e9
NR
38532009-08-13 Nick Roberts <nickrob@snap.net.nz>
3854
3855 * process.c (create_pty): New function.
3856 (Fstart_process): Use it to allow Emacs to just associate a pty
3857 with the buffer. See associated change in gdb-mi.el.
3858 (list_processes_1): Deal with no program name.
3859 (start_process_unwind): Use pid == -2 to mean no process.
3860
1ac9108a
SM
38612009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3862
3863 * cmds.c (nonundocount): New global variable.
3864 (keys_of_cmds): Initialize it.
3865 (Fself_insert_command): Use it to combine upto 20 sequential chars
3866 into a single undo entry, just like the Qself_insert_command code in
3867 keyboard.c does.
3868 Call frame_make_pointer_invisible, also like the Qself_insert_command
3869 code in keyboard.c does.
3870 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3871 than its own local replacement for it.
3872
e267324c
KR
38732009-08-10 Ken Raeburn <raeburn@raeburn.org>
3874
1ac9108a 3875 * fns.c (concat): Don't re-set string length to its current value.
77437343 3876
1ac9108a
SM
3877 * coding.h (decode_coding_string, encode_coding_string):
3878 Use SBYTES macro.
f0bed503 3879
1ac9108a 3880 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3881 (doprnt): Merge with doprnt1, discarding lispstrings code.
3882 * lisp.h (doprnt_lisp): Don't declare.
3883
416e006d
JL
38842009-08-07 Juri Linkov <juri@jurta.org>
3885
3886 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3887
6f7d5780
DN
38882009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3889
3890 * print.c (syms_of_print): Undo previous change.
3891
f19a0f5b
TZ
38922009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3893
3894 * lread.c (read1, syms_of_lread): Read hashtables back from the
3895 readable format.
3896
3897 * print.c (print_preprocess, print_object): Print hashtables fully
3898 and readably.
3899 (syms_of_print): Provide 'hashtable-print-readable.
3900
b9173dc2
AR
39012009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3902
3903 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3904 no family set.
3905 (nsfont_open): Handle case when entity has no family.
3906
1586503c
AR
39072009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3908
3909 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3910 element, not a list, for match case.
3911
087048cd
KH
39122009-07-28 Kenichi Handa <handa@m17n.org>
3913
3914 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3915 rigidly.
3916
3917 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3918 font_parse_xlfd. Check font properties more rigidly.
3919
780c2506
DN
39202009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3921
31fd7c5c
JB
3922 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3923 bsd-common.h.
780c2506 3924
a8c0cc18
KH
39252009-07-27 Kenichi Handa <handa@m17n.org>
3926
3927 * xfaces.c (face_with_height): Call font_clear_prop.
3928
4fbe2306
CY
39292009-07-26 Chong Yidong <cyd@stupidchicken.com>
3930
111d9af3
CY
3931 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3932
3933 * xterm.c (x_term_init): Use Qx.
3934
4fbe2306
CY
3935 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3936
1ac9108a 3937 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3938 (ns_get_color): Revert 2009-07-16 change.
3939
beb0b7f9
EZ
39402009-07-25 Eli Zaretskii <eliz@gnu.org>
3941
3942 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3943 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3944
2baf5e76
KR
39452009-07-25 Ken Raeburn <raeburn@raeburn.org>
3946
1ac9108a
SM
3947 * coding.h (decode_coding_string, encode_coding_string):
3948 Use SCHARS macro.
8890e5f5 3949
2baf5e76 3950 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3951 (load_depth): Delete.
2baf5e76
KR
3952 (Qload_in_progress): New variable.
3953 (load_unwind): Don't reference load_depth or load_in_progress.
3954 (Fload): Likewise; specbind Qload_in_progress instead.
3955 (init_lread): Don't initialize load_depth.
3956 (syms_of_lread): Initialize and protect Qload_in_progress.
3957
1395c6f5
AR
39582009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3959
3960 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3961
4e2f36cf
AR
39622009-07-23 Yavor Doganov <yavor@gnu.org>
3963
3964 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3965
5dd9a6f7
AR
39662009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3967
3968 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3969 Bugs 3792, 3720, 2402.
3970 (ns_lookup_indexed_color): Check for bad index.
3971 (ns_index_color): Init unused slot to 0.
3972 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3973 Bug 3714, possibly 3082.
5dd9a6f7 3974
c902b920
JR
39752009-07-22 Jason Rumney <jasonr@gnu.org>
3976
1ac9108a
SM
3977 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3978 Position IME window at cursor (Bug#2570).
c902b920
JR
3979 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3980 (globals_of_w32fns): Dynamically load functions required above.
3981
3982 * w32term.c (w32_draw_window_cursor): Send message to reposition
3983 any IME window.
3984
090101cf
CY
39852009-07-21 Chong Yidong <cyd@stupidchicken.com>
3986
3987 * fileio.c: Revert 2009-07-16 changes.
3988 (Vauto_save_include_big_deletions): New variable.
3989 (Fdo_auto_save): Disable auto-save only if
3990 auto-save-include-big-deletions is nil.
3991
e6583e3d
CY
39922009-07-21 Chong Yidong <cyd@stupidchicken.com>
3993
3994 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3995 the overflowed pixels into account (Bug#3879).
3996
ece435a5
KR
39972009-07-21 Ken Raeburn <raeburn@raeburn.org>
3998
3999 * lread.c (load_depth): New variable.
4000 (Fload, load_unwind, init_lread): Set it to the load recursion
4001 depth; set load_in_progress as a simple boolean based on the
4002 current load_depth. (Bug#3892)
4003
40b2d973
AR
40042009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4005
4006 * nsfont.m (ns_has_attribute): Remove.
4007 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4008
10be7e0d
JL
40092009-07-18 Juri Linkov <juri@jurta.org>
4010
4011 * process.c (Fset_process_query_on_exit_flag): Mention killing
4012 a buffer in docstring.
4013
fa055055
KH
40142009-07-17 Kenichi Handa <handa@m17n.org>
4015
4016 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4017
042f7b69
YM
40182009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4019
4020 * nsfns.m (Fns_set_alpha): Remove function.
4021 (syms_of_nsfns): Don't defsubr it.
4022
4023 * nsterm.m (ns_get_color): Remove incompatible color formats.
4024 (ns_color_to_lisp): Generate #rrggbb color format string.
4025
4be941e3
RS
40262009-07-16 Richard Stallman <rms@gnu.org>
4027
4028 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4029 (Fset_buffer_auto_saved): Handle save_length = -2.
4030
4e6b227d
CY
40312009-07-16 Chong Yidong <cyd@stupidchicken.com>
4032
4033 * xterm.c (Qx_gtk_map_stock): New var.
4034
4035 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4036 of calling intern each time.
4037
a1856973
YM
40382009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4039
4040 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4041 does tiling.
4042
4043 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4044
497e54d8
KH
40452009-07-14 Kenichi Handa <handa@m17n.org>
4046
72d36834
KH
4047 * font.c (font_vconcat_entity_vectors): New function.
4048 (struct font_sort_data): New member font_driver_preference.
4049 (font_compare): Check font_driver_preference.
4050 (font_sort_entities): The format of the first argument changed.
4051 (font_delete_unmatched): Likewise.
4052 (font_list_entities): The return type changed.
4053 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4054 (font_find_for_lface): Adjuste for the above changes.
4055 Don't suppress the checking of C even if the repertory supports it.
4056 (Flist_fonts): Adjust for the above changes.
72d36834 4057
1ac9108a
SM
4058 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4059 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4060 Reject a font who has adstyle property that is different from a
4061 langname derived from registry property.
1ac9108a 4062 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4063
b6046155
EZ
40642009-07-13 Eli Zaretskii <eliz@gnu.org>
4065
4066 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4067 local copy of dirfilename.
4068
fb6b6049
KH
40692009-07-13 Kenichi Handa <handa@m17n.org>
4070
e2402a5e
KH
4071 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4072 against max_char.
4073
fb6b6049
KH
4074 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4075 calling XSYMBOL (sym).
4076
65156807
EZ
40772009-07-11 Eli Zaretskii <eliz@gnu.org>
4078
1ac9108a
SM
4079 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4080 New function.
4081 (directory_files_internal) [WINDOWSNT]:
4082 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4083 the filesystem of the directory is fast or slow.
4084
4085 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4086 file name.
4087 (is_slow_fs): New function.
4088 (stat): Use it to determine whether to issue more system calls to
4089 get accurate file attributes, when w32-get-true-file-attributes is
4090 `local'.
4091
e0ab5fcf
JD
40922009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4093
4094 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4095 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4096 parameter font-parameter as default to the font dialog.
4097
784ceded
KH
40982009-07-10 Kenichi Handa <handa@m17n.org>
4099
4100 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4101
fb8edc0b
EZ
41022009-07-09 Eli Zaretskii <eliz@gnu.org>
4103
1ac9108a 4104 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4105
fb8edc0b
EZ
4106 * w32.c (stat): Treat UNC file names as residing on remote
4107 drives. (Bug#3542)
4108
635c75b1
KH
41092009-07-09 Kenichi Handa <handa@m17n.org>
4110
4111 * fontset.c (fontset_find_font): Fix previous change.
4112
c1d5ce94
MA
41132009-07-08 Michael Albinus <michael.albinus@gmx.de>
4114
4115 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4116 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4117 error flag.
4118
edb61b39
KH
41192009-07-08 Kenichi Handa <handa@m17n.org>
4120
374bf7e4
KH
4121 * fontset.c (fontset_find_font): Fix the logic of handling
4122 charset_matched.
4123 (font_for_char): Delete unused var.
4124 (generate_ascii_font_name): Delete it.
4125
edb61b39
KH
4126 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4127
4128 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4129 (encode_coding_sjis): Fix the code range check.
4130
0f3f018c
CY
41312009-07-07 Chong Yidong <cyd@stupidchicken.com>
4132
4133 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4134 (Fexpand_file_name): Copy string data properly (Bug#3772).
4135
fcaf6f3a
JD
41362009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4137
4138 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4139 first MapNotify.
4140
6809ca75
KH
41412009-07-07 Kenichi Handa <handa@m17n.org>
4142
4143 * character.h (unibyte_has_multibyte_table): Delete extern.
4144 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4145
4146 * charset.c (Fset_charset_priority): Update charset_unibyte.
4147 (syms_of_charset): Initialize charset_unibyte.
4148
4149 * character.c (unibyte_has_multibyte_table): Delete it.
4150 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4151 charset_unibyte.
4152 (multibyte_char_to_unibyte_safe): Likewise.
4153 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4154
1ac9108a 4155 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4156 (x_produce_glyphs): Likewise.
4157
4158 * .gdbinit (xcharset): Fix the treating $arg0.
4159
ad9e2d54
EZ
41602009-07-04 Eli Zaretskii <eliz@gnu.org>
4161
4162 Emulation of `getloadavg' on MS-Windows.
50426a04 4163 * w32.c: Include float.h.
ad9e2d54
EZ
4164 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4165 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4166 (get_native_system_info, get_system_times): New functions.
4167 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4168 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4169 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4170 g_b_init_get_system_times, and num_of_processors.
4171
0a3472c7
JR
41722009-07-03 Jason Rumney <jasonr@gnu.org>
4173
4174 * w32term.c (w32_initialize): Use standard types.
4175
80904120
EZ
41762009-07-03 Eli Zaretskii <eliz@gnu.org>
4177
4178 * dired.c (Ffile_attributes): Decode user and group names by the
4179 locale's encoding. (Bug#3443)
4180
6978862d
DN
41812009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4182
f8d23104
DN
4183 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4184 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4185
4186 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4187
4188 * term.c (init_tty): Remove spurious #ifdef.
4189
6978862d
DN
4190 * m/mips.h: Mention this file is also used for netbsd.
4191 * m/pmax.h: Remove file.
4192
e044e4fc
JD
41932009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4194
4195 * xterm.h (struct x_display_info): Add invisible_cursor.
4196 (struct x_output): Add current_cursor.
4197
4198 * xterm.c (XTtoggle_invisible_pointer): New function.
4199 (x_define_frame_cursor): Don't define cursor if invisible or the
4200 same as before. Set current_cursor.
4201 (x_create_terminal): Set toggle_invisible_pointer_hook.
4202
4203 * xfns.c (make_invisible_cursor): New function.
4204 (x_set_mouse_color): Call make_invisible_cursor.
4205 Set current_cursor.
4206 (x_window): Set current_cursor.
4207
4208 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4209
4210 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4211 inserting a character.
4212 (read_avail_input): Call frame_make_pointer_visible.
4213
4214 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4215 (frame_make_pointer_invisible, frame_make_pointer_visible):
4216 New functions.
e044e4fc
JD
4217 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4218
4219 * frame.h: Declare frame_make_pointer_invisible and
4220 frame_make_pointer_visible.
4221 (struct frame): Add pointer_invisible.
4222
574c8efa
JD
42232009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4224
7b507248
JD
4225 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4226 frame isn't visible.
4227 (xg_frame_resized): If width/height is -1, get size of window
4228 from X server.
4229
4230 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4231 for MapNotify.
4232
835bdaa7 4233 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4234 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4235 (flush_and_sync): Reintroduce.
574c8efa 4236
3f1c6666 42372009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4238
31fd7c5c 4239 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4240
4241 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4242 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4243
4244 * frame.h: Declare Qsticky.
4245
cad9ef74
JD
4246 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4247
4248 * nsfns.m (ns_frame_parm_handlers): Ditto.
4249
4250 * frame.c: Declare Qsticky.
4251 (frame_parms): Add sticky.
4252
4253 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4254
4255 * xterm.h: Declare x_set_sticky.
4256
4257 * xterm.c (x_set_sticky): New function.
4258
69b16610
JD
4259 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4260 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4261 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4262
4263 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4264
4265 * frame.c: Qmaximized is new.
4266 (x_set_frame_parameters): Do not handle fullscreen specially.
4267 Only set width and height if explicitly set.
4268 (x_set_fullscreen): Handle Qmaximized.
4269 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4270 (syms_of_frame): Initialize Qmaximized.
4271
1ac9108a
SM
4272 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4273 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4274
4275 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4276 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4277 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4278 set gravity to NorthWestGravity when USE_GTK.
4279 (set_wm_state): New function.
31fd7c5c 4280 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4281 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4282 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4283 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4284 to x_real_positions and x_fullscreen_adjust.
4285
4286 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4287 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4288 flush_and_sync.
4289 (xg_height_changed): New function.
4290 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4291 and gtk_window_set_policy. Set frame gravity after parsing the
4292 geometry string.
3f1c6666
JD
4293 (xg_update_frame_menubar, free_frame_menubar)
4294 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4295 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4296 Remove calls to xg_frame_set_char_size.
4297
fd503d99
KH
42982009-07-01 Kenichi Handa <handa@m17n.org>
4299
4300 * keyboard.c (decode_keyboard_code): New function.
4301 (tty_read_avail_input): Decode the input bytes if necessary.
4302
1ac9108a
SM
4303 * coding.c (setup_coding_system):
4304 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4305 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4306 use Qno_conversion.
4307
24ed93fb
YM
43082009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4309
4310 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4311
99061dfc
CY
43122009-06-30 Chong Yidong <cyd@stupidchicken.com>
4313
1ac9108a 4314 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4315
ff90fbde
JR
43162009-06-30 Jason Rumney <jasonr@gnu.org>
4317
4318 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4319 is already loaded.
4320 Set user model ID if supported (bug#1849).
4321
5f445726
JM
43222009-06-29 Jim Meyering <meyering@redhat.com>
4323
4324 Remove useless if-before-xfree test.
4325 * nsfont.m (nsfont_close): Remove useless test.
4326 * term.c (delete_tty): Likewise.
4327 * w32.c (system_process_attributes): Likewise.
4328 * w32font.c (w32font_close): Likewise.
4329 * xfaces.c (x_free_gc): Likewise.
4330 * xselect.c (buffer): Likewise.
4331
b9607587
AS
43322009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4333
4334 * process.c (send_process): Keep decoded string in a local
4335 variable and protect it from GC. (Bug#3521)
4336
89ba96f4
EZ
43372009-06-28 Eli Zaretskii <eliz@gnu.org>
4338
4339 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4340 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4341
098a1589
CY
43422009-06-28 Chong Yidong <cyd@stupidchicken.com>
4343
485422be
CY
4344 * xdisp.c (start_display, handle_face_prop)
4345 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4346 (redisplay_window, try_window_id, produce_image_glyph):
4347 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4348
098a1589
CY
4349 * xterm.c (x_update_window_begin, x_new_focus_frame)
4350 (x_scroll_bar_handle_click, handle_one_xevent)
4351 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4352 (x_make_frame_visible, x_make_frame_invisible)
4353 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4354 code chunks that are now obsolete.
4355
78c38319
MA
43562009-06-28 Michael Albinus <michael.albinus@gmx.de>
4357
4358 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4359 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4360 for hours, when optimzation is enabled.
4361 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4362 (xd_read_message): Make them static.
4363
4189ed40
CY
43642009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4365
4366 * term.c (turn_on_face): Allow simultaneously bold and dim
4367 terminal faces (Bug#3530).
4368
cd9b5e16
CY
43692009-06-27 Chong Yidong <cyd@stupidchicken.com>
4370
4e23bedb
CY
4371 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4372
cd9b5e16
CY
4373 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4374 truncation glyphs (Bug#3686).
4375
07cc3c35
GM
43762009-06-27 Glenn Morris <rgm@gnu.org>
4377
4378 * m/pmax.h: Restore file, with only netbsd portions.
4379
31fd7c5c 43802009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4381
cd9b5e16 4382 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4383
42d4a64f
KH
43842009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4385
4386 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4387 the arg FORCE_SYMBOL.
4388
930fe55b 43892009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4390
4391 * fontset.c (fontset_find_font): When a usable rfont_def is found
4392 in a fallback font-group, make it the first element of the group.
4393
57ebc3fd
CY
43942009-06-24 Chong Yidong <cyd@stupidchicken.com>
4395
4396 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4397
f084f942
KH
43982009-06-24 Kenichi Handa <handa@m17n.org>
4399
4400 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4401 set for C.
4402 (fontset_font): Record the availability of a font for C both in
4403 the realized fontsets of the current one and the default one.
4404
2f686c87
DN
44052009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4406
4407 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4408 conditional, it is always defined on AIX.
4409
666e158e
MB
44102009-06-23 Miles Bader <miles@gnu.org>
4411
4412 * window.c (Vrecenter_redisplay): New variable.
4413 (syms_of_window): Initialize it.
4414 (Qtty): New extern declaration.
4415 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4416
c6da7cd2
JM
44172009-06-23 Jim Meyering <meyering@redhat.com>
4418
1ac9108a
SM
4419 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4420 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4421 pointer dereferences are guaranteed to be valid.
c6da7cd2 4422
678dca3d
KH
44232009-06-23 Kenichi Handa <handa@m17n.org>
4424
74d75424
KH
4425 * emacs.c (main): Call init_font ().
4426
4427 * font.h (Vfont_log): Extern it.
4428 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4429
4430 * font.c (font_sort_entities, font_list_entities)
4431 (font_matching_entity, font_open_entity)
4432 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4433 (Vfont_log): Delete static.
4434 (font_log_env_checked): Delete this variable.
4435 (font_add_log): Don't check font_log_env_checked.
4436 (font_deferred_log): Check Vfont_log.
4437 (init_font): New function.
4438
678dca3d
KH
4439 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4440
4441 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4442
4443 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4444
4445 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4446
4447 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4448 (face_for_char): Don't call font_deferred_log here.
4449 (font_for_char): Likewise.
4450
8a668709
CY
44512009-06-22 Chong Yidong <cyd@stupidchicken.com>
4452
9a01ee33
CY
4453 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4454 rather than its background_width for drawing the overline and
4455 underline (Bug#489).
4456
4457 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4458 rather than its background_width for drawing the overline and
4459 underline (Bug#489).
ec7c9926
CY
4460 (xg_default_icon_file): New variable.
4461 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4462 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4463
8a668709
CY
4464 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4465 (load_overlay_strings): Remove externs.
4466 (fast_find_position): Function deleted.
4467 (mouse_face_from_buffer_pos): New function, based on
4468 fast_find_position. Correctly handle before-strings,
4469 display-strings, and after-strings (Bug#1220).
4470 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4471
4d4c02d8
CY
44722009-06-21 Chong Yidong <cyd@stupidchicken.com>
4473
1ac9108a 4474 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4475 (move_it_in_display_line_to, move_it_in_display_line_to)
4476 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4477
70243478
CY
44782009-06-21 Chong Yidong <cyd@stupidchicken.com>
4479
4480 * Branch for 23.1.
4481
13087e59
JR
44822009-06-21 Jason Rumney <jasonr@gnu.org>
4483
4484 * w32term.c (keyboard_codepage): New static variable.
4485 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4486 (w32_read_socket) [WM_CHAR]: Use it to decode character
4487 input (bug#3237).
4488 (w32_initialize): Initialize it.
4489 (codepage_for_locale): New function.
4490
4735b74e
KR
44912009-06-20 Ken Raeburn <raeburn@raeburn.org>
4492
4493 * process.c (status_message): Pass Faset index argument as a lisp
4494 object, so as to work with USE_LISP_UNION_TYPE.
4495
0e727afa
YM
44962009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4497
4498 * coding.c (Ffind_coding_systems_region_internal):
4499 Cache checked characters.
4500
cf299835
KH
45012009-06-18 Kenichi Handa <handa@m17n.org>
4502
1ac9108a 4503 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4504
90f20d94
AS
45052009-06-18 Andreas Schwab <aschwab@redhat.com>
4506
4507 * xdisp.c (redisplay_internal): Check that the frame is still
4508 live after redisplay of its windows.
4509 (redisplay_windows): Check that the window is still live.
4510
7f1faf1c
KH
45112009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4512
4513 * coding.c (detect_coding_utf_16): Fix previous change.
4514
cc13543e
KH
45152009-06-16 Kenichi Handa <handa@m17n.org>
4516
4517 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4518 UTF-16 by checking the dispersion of Eth and Oth bytes.
4519
977b85f4
AS
45202009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4521
4522 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4523
66bd43d1
KH
45242009-06-15 Kenichi Handa <handa@m17n.org>
4525
4526 * process.c (status_message): Fix previous change. Be sure to
4527 decode a localized string.
4528
cb5ca9c5
YM
45292009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4530
4531 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4532 add comment explaining why.
4533
ec7709ba 45342009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4535
ec7709ba 4536 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4537
4b7f335c
AR
45382009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4539
4540 * nsfont.m (ns_attribute_value): Remove.
4541 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4542 (ns_has_attribute): Shrink the normal range.
4543 (ns_findfonts): Don't worry about requested spec in determining
4544 need for synthItal.
e41820ee 4545 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4546
73b26103
SZ
45472009-06-14 Seiji Zenitani <zenitani@mac.com>
4548
4549 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4550
5753e4da
KH
45512009-06-11 Kenichi Handa <handa@m17n.org>
4552
4553 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4554 overhang for the static composition case.
4555
3561b671
KH
45562009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4557
5753e4da
KH
4558 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4559 overhang for the automatic composition case.
4560
3561b671
KH
4561 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4562 composition case.
4563
852bbd41
CY
45642009-06-10 Chong Yidong <cyd@stupidchicken.com>
4565
4566 * xdisp.c (get_next_display_element): When handling wrap-prefix
4567 and line-prefix, treat \n as a control character (bug#3502).
4568
9903d1e6
KH
45692009-06-10 Kenichi Handa <handa@m17n.org>
4570
4571 * font.c (font_parse_family_registry): Fix for one-char foundry.
4572 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4573
0bcbaaaa
CY
45742009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4575
4576 * process.c (status_message): Fix handling of multibyte signal
4577 string (Bug#3499).
4578
40aa3f13
JM
45792009-06-09 Jim Meyering <meyering@redhat.com>
4580
1f80c7e2
CY
4581 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4582 color name is missing.
40aa3f13 4583
72d51285
KH
45842009-06-09 Kenichi Handa <handa@m17n.org>
4585
4586 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4587 FROM-CODE and TO-CODE are codepoints of CHARSET.
4588
c1d04d84
AR
45892009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4590
4591 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4592
45932009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4594
4595 Changes to support :script/:lang/:otf in NS font driver.
4596 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4597 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4598 indicate not part of font driver interface, and change callers.
4599 (ns_get_family): Remove pointless null check.
4600 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4601 ns_spec_to_descriptor, ns_descriptor_to_entity.
4602 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4603 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4604 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4605 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4606 (ns_get_req_script, ns_accumulate_script_ranges)
4607 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4608 New functions.
4609 (nsfont_list, nsfont_match): Use ns_findfonts.
4610 (nsfont_open): Use font descriptor instead of traits.
4611 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4612 (dump_glyphstring): Rename to ns_dump_glyphstring.
4613
c7eb9816
AR
4614 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4615
c1d04d84
AR
4616 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4617
4618 * fontset.c (fontset_from_font): Remove NS-specific code.
4619
ec7709ba 46202009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4621
4622 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4623 nonactive windows.
4624
31fd7c5c 46252009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4626
1ac9108a 4627 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4628
68852c13 46292009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4630
4631 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4632
6756cd1d
CY
46332009-06-07 Chong Yidong <cyd@stupidchicken.com>
4634
4635 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4636 account for the overflowing of newlines into the last glyph on the
4637 display line (Bug#3482).
4638
28bf482a
DR
46392009-06-05 David Reitter <david.reitter@gmail.com>
4640
ec7709ba
JB
4641 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4642 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4643 Fns_selection_exists_p, Fns_selection_owner_p.
4644
fdb55376
JR
46452009-06-03 Jason Rumney <jasonr@gnu.org>
4646
4647 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4648 available. (Bug#3379)
4649
05129fbe
KH
46502009-05-29 Kenichi Handa <handa@m17n.org>
4651
1ac9108a
SM
4652 * coding.c (get_translation_table):
4653 Check Venable_character_translation.
05129fbe 4654
ec7709ba 46552009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4656
ec7709ba
JB
4657 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4658 (x_make_frame_visible): Move frame to front rather than calling
15891144 4659 ns_raise_frame().
ec7709ba 4660 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4661 isn't key window.
ec7709ba 4662 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4663 drawRect may be called by NSView even if the frame is hidden.
4664
ec7709ba
JB
4665 * nsfns.m (Fx_create_frame): Follow other ports in
4666 determining visibility; default to t. Ensure async_visible is set.
15891144 4667
21f73755
EZ
46682009-05-23 Eli Zaretskii <eliz@gnu.org>
4669
4670 * dired.c (Ffile_attributes): Doc fix.
4671
34001e41
CY
46722009-05-22 Chong Yidong <cyd@stupidchicken.com>
4673
4674 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4675
46306a17
SM
46762009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4677
4678 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4679 and xfont_scratch_props.
4680 (syms_of_xfont): Do it here instead.
4681 (xfont_find_ccl_program): Delete, unused.
4682 (xfont_open): Delete unused var `i'.
4683
ef6e0694
KH
46842009-05-21 Kenichi Handa <handa@m17n.org>
4685
4686 * fontset.c (Qlatin): Don't make it static.
4687
46306a17
SM
4688 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4689 New functions.
ef6e0694
KH
4690 (xfont_scripts_cache, xfont_scratch_props): New variables.
4691 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4692 (xfont_list_pattern): Argument changed. Callers changed.
4693 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4694 (xfont_list): Don't reject a font spec with :script property.
4695 (xfont_has_char): Fix setting of encoding.
4696 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4697 xfont_scratch_props.
4698
46992009-05-19 Kenichi Handa <handa@m17n.org>
4700
46306a17 4701 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4702 Callers changed.
4703
47042009-05-18 Kenichi Handa <handa@m17n.org>
4705
4706 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4707
ac71ced7
SM
47082009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4709
4710 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4711 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4712
1c6d1051
YM
47132009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4714
4715 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4716 (x_delete_terminal): Dissociate resource database from display and
4717 then call XrmDestroyDatabase before closing display.
4718
9b9b779c
AR
47192009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4720
4721 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4722 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4723 whether selected frame is viable before raising it (based on patch
4724 by David Reitter), and improve commentary.
4725 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4726
cccd42d5
KH
47272009-05-15 Kenichi Handa <handa@m17n.org>
4728
4729 * font.c (Ffont_spec): Check arguments.
4730
337fbd17
CY
47312009-05-14 Chong Yidong <cyd@stupidchicken.com>
4732
4733 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4734 weight when testing attributes (Bug#3282).
4735
47a6002f
JD
47362009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4737
4738 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4739 what we expect to get in the next ConfigureNotify event.
4740
9cb363db
YM
4741 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4742 before Xft one (Bug#1696).
4743
b9126609
CY
47442009-05-07 David Reitter <david.reitter@gmail.com>
4745
4746 * nsfns.m (Fx_display_planes): Compute bitplanes using
4747 NSBitsPerPixelFromDepth (Bug#3207).
4748
27a69fd9
CY
47492009-05-10 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4752
00f37552
TTN
47532009-05-10 Ulrich Mueller <ulm@gentoo.org>
4754
4755 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4756
2d82a920
DR
47572009-05-07 David Reitter <david.reitter@gmail.com>
4758
ec7709ba
JB
4759 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4760 Respect mouse face background.
2d82a920 4761
46b0d52d
DR
47622009-05-07 David Reitter <david.reitter@gmail.com>
4763
ec7709ba
JB
4764 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4765 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4766 in ns_update_begin and ns_update_end.
4767
ce1b23bb
SM
47682009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4769
5996e1b7
SM
4770 * nsfns.m (ns_get_screen): Rewrite.
4771 Don't presume selected-frame is of type `ns'.
4772
ba98e3a0
SM
4773 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4774 all drivers.
4775
ce1b23bb
SM
4776 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4777
bcda200f
YM
47782009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4779
4780 * keyboard.h (add_user_signal): Fix typo in extern.
4781
4782 * lisp.h (add_user_signal): Remove extern.
4783
4784 * unexelf.c (unexec): Consider a section to precede the .bss section
4785 if its addresses overlap that of .bss.
4786 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4787 instead of dumping process.
4788
864660a2
SM
47892009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4790
4791 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4792
50da4e56
SM
47932009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4794
4795 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4796
51520a1a
DN
47972009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4798
4799 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4800 any statements.
4801
409ea3a1
AS
48022009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4803
59c4c60f
AS
4804 * process.c (read_process_output): Make sure the current buffer is
4805 always restored.
4806
409ea3a1
AS
4807 * coding.c (record_conversion_result): Don't modify
4808 Vlast_code_conversion_error for successful result.
4809 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4810
56f00ed2
KH
48112009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4812
4813 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4814 (load_charset_map): Remove unnecessary code.
56f00ed2 4815
4491c9d2
DR
48162009-04-30 David Reitter <david.reitter@gmail.com>
4817
35f5b128 4818 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4819 through f24.
4820
6970f632
CY
48212009-04-30 Chong Yidong <cyd@stupidchicken.com>
4822
4823 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4824
4825 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4826 face_at_buffer_position.
4827 (face_before_or_after_it_pos, get_next_display_element)
4828 (note_mouse_highlight): Update face_at_buffer_position call.
4829
4830 * term.c (term_mouse_highlight):
4831 * msdos.c (IT_note_mouse_highlight):
4832 * fontset.c (Finternal_char_font):
35f5b128 4833 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4834
4835 * dispextern.h (face_at_buffer_position): Update prototype.
4836
0c616f63
KH
48372009-04-30 Kenichi Handa <handa@m17n.org>
4838
35f5b128 4839 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4840
ad3aaf33
AS
48412009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4842
4843 * callproc.c (Fcall_process): Fix GC protection. Make sure
4844 current buffer is always restored.
4845
c3c963a0
YM
48462009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4847
4848 * atimer.c (init_atimer): Also clear stopped_atimers.
4849
4850 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4851
7e3386cb
YM
4852 * process.c (create_process): Clean up merger residues of
4853 2008-07-17 change.
4854
91f68422
CY
48552009-04-29 Ulrich Mueller <ulm@gentoo.org>
4856
4857 * lread.c (Vread_circle): New variable.
4858 (read1): Disable recursive read if Vread_circle is nil.
4859
24b34550
KH
48602009-04-29 Kenichi Handa <handa@m17n.org>
4861
4862 * fontset.h (set_default_ascii_font): Delete extern.
4863
4864 * fontset.c (set_default_ascii_font): Delete this unused function.
4865
4866 * frame.c (x_set_font): When ARG is a font-object, check if the
4867 font-object matches with the ASCII font-spec of the frame's
9c358bda 4868 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4869
77bf07e1
AS
48702009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4871
4872 * fns.c (Flocale_info): Protect vector from GC during decoding.
4873
4874 * process.c (Fstart_process): Protect argv strings from GC during
4875 encoding.
4876
2c55aacf
AS
48772009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4878
4879 * sysdep.c: Include <ctype.h>.
4880
b892d3c9
DR
48812009-04-27 David Reitter <david.reitter@gmail.com>
4882
35f5b128 4883 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4884 Remove commented-out code.
4885
9d0644c4
JB
48862009-04-26 Johan Bockgård <bojohan@gnu.org>
4887
4888 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4889
b7053016
JR
48902009-04-25 Jason Rumney <jasonr@gnu.org>
4891
4892 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4893
4e8231f3
YM
48942009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4895
4896 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4897 Swap bytes in short integer if fringe bitmap width > 8.
4898
493dcf2c
KH
48992009-04-23 Kenichi Handa <handa@m17n.org>
4900
4901 * xfaces.c (Fx_list_fonts): If a font size is specified in
4902 PATTERN, set it in returned scalable fonts.
4903
401e9e57
CY
49042009-04-22 Chong Yidong <cyd@stupidchicken.com>
4905
708e05dc
CY
4906 * keyboard.c (Fset_input_meta_mode): Doc fix.
4907
4908 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4909
1ac9108a 4910 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4911
4912 * coding.c (Fterminal_coding_system): Doc fix.
4913
4914 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4915 (Fx_display_pixel_height, Fx_display_planes)
4916 (Fx_display_color_cells, Fx_server_max_request_size)
4917 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4918 (Fx_display_mm_height, Fx_display_mm_width)
4919 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4920 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4921 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4922 (check_x_display_info): Handle terminal objects instead of
4923 terminal ids.
4924
401e9e57
CY
4925 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4926 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4927 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4928 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4929
df80c7f0
KH
49302009-04-21 Kenichi Handa <handa@m17n.org>
4931
5a8f12af 4932 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4933 (font_score): Check AVGWIDTH too.
908567ef 4934
df80c7f0
KH
4935 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4936 worst case.
1ac9108a
SM
4937 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4938 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4939
705af33f
JR
49402009-04-19 Jason Rumney <jasonr@gnu.org>
4941
4942 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4943 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4944
4945 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4946 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4947 get_phys_cursor_geometry.
4948
b71ac3dd 4949 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4950 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4951 using get_phys_cursor_geometry.
4952
4953 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4954 correctly calculated.
4955
dc2933eb
JD
49562009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4957
1ac9108a
SM
4958 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4959 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4960 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4961 is deprecated.
4962
973e7849
AS
49632009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4964
4965 * font.c (font_put_frame_data): Use xfree instead of free.
4966
314d66f4
JB
49672009-04-17 Juanma Barranquero <lekktu@gmail.com>
4968
4969 * w32font.c (Qja, Qko): Remove declarations.
4970 (syms_of_w32font): Don't DEFSYM them.
4971
cf702558
CY
49722009-04-17 Chong Yidong <cyd@stupidchicken.com>
4973
4974 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4975
4976 * font.h (Qja, Qko): Extern them.
4977
4978 * ftfont.c (Qja, Qko): Remove declarations.
4979
4980 * xfont.c (Qja, Qko): Remove declarations.
4981
b50504f5
KH
49822009-04-17 Kenichi Handa <handa@m17n.org>
4983
bde25748
KH
4984 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4985 string from a vector to handle Latin-1 characters correctly.
4986
b50504f5
KH
4987 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4988 entity even if the cache hits.
4989
f4646fff
AS
49902009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4991
4992 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4993 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4994
e7deaab0
AS
4995 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4996 * lisp.h: Adjust prototypes.
4997
0a0e7d49
CY
49982009-04-16 Chong Yidong <cyd@stupidchicken.com>
4999
5000 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5001 change (Bug#3003).
5002
3c908a57
KH
50032009-04-16 Kenichi Handa <handa@m17n.org>
5004
1ac9108a 5005 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5006
5007 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5008 adstyle.
5009
5010 * ftfont.c (Qja, Qko): Don't make them static.
5011 (enum ftfont_cache_for): New enum.
5012 (fc_charset_table): Undo the previous change.
5013 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5014 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5015 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5016 non-scarable font, try to get AVERAGE_WIDTH.
5017 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5018 Change ft_face_cache from a list of a hash-table. Don't check
5019 `ja' and `ko' adstyle here.
5020 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5021 FTFONT_CACHE_FOR_CHARET.
5022 (ftfont_get_charset): Undo the previous change.
1ac9108a 5023 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5024 (ftfont_close): Likewise.
5025 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5026
5027 * font.c (font_sort_entites): Change the meaning of the arg
5028 BEST-ONLY. Don't optimize for VEC of lenght 1.
5029 (font_select_entity): Just return the value of font_sort_entites.
5030
5031 * xfaces.c (merge_face_vectors): Reflect font properties in
5032 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5033 font_clear_prop if a face attribute doesn't change.
5034
3c908a57
KH
5035 * charset.h (charset_ksc5601): Extern it.
5036
5037 * charset.c (charset_ksc5601): New variable.
5038 (Fdefine_charset_internal): Set charset_ksc5601.
5039 (init_charset_once): Initialize charset_ksc5601 to -1.
5040
d65859c3
DN
50412009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5042
5043 * fileio.c (history_delete_duplicates): Remove unused declaration.
5044
5045 * callint.c (history_delete_duplicates): New declaration.
5046 (Fcall_interactively): Remove command history duplicates when
5047 history_delete_duplicates is true.
5048
3ba010e5
EZ
50492009-04-14 Eli Zaretskii <eliz@gnu.org>
5050
5051 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5052
06f19b91
KH
50532009-04-14 Kenichi Handa <handa@m17n.org>
5054
5055 * font.c (Ffont_info): Fix docstring. Fix the second element of
5056 the returned value (bug#2949).
5057
2cce8bfc
CY
50582009-04-14 Chong Yidong <cyd@stupidchicken.com>
5059
5060 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5061
d156542d
KH
50622009-04-14 Kenichi Handa <handa@m17n.org>
5063
5064 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5065 encoding charset is ascii_compatible.
5066
5067 * charset.c (Fdefine_charset_internal): Make charset
5068 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5069 code_offset is 0, and covers all ASCII characters.
5070
86fa089e
SM
50712009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5072
5073 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5074 (ns_string_to_pasteboard_internal):
5075 * nsmenu.m (process_dialog):
5076 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5077 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5078 * lisp.h (Fx_load_color_file): Declare.
5079
a8a3728b
KH
50802009-04-13 Kenichi Handa <handa@m17n.org>
5081
1ac9108a 5082 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5083 (font_select_entity): Suppress the code to optimize for the same
5084 kind of fonts.
5085 (font_load_for_lface): Get a font that supports at least ASCII
5086 characters.
5087
5088 * ftfont.c (Qja, Qko): New variables.
5089 (fc_charset_table): Delete uniquifier data for iso8859-1.
5090 (ftfont_get_latin1_charset): New function.
5091 (get_adstyle_property): New function.
5092 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5093 bitmap fonts.
5094 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5095 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5096 `ko' or `ja'.
5097 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5098 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5099 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5100 property.
5101 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5102 (syms_of_ftfont): DEFSYM Qja and Qko.
5103
483670b5
KH
51042009-04-09 Kenichi Handa <handa@m17n.org>
5105
12b55765
KH
5106 * charset.c (map_charset_chars): For a charset of `superset'
5107 method, fix calculation of code range.
5108
483670b5
KH
5109 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5110 from the list of extra properties.
5111 (font_clear_prop): Be sure to delete `:name' font property.
5112
57d3b93b
KH
51132009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5114
b4b2c2ca
YM
5115 * dispnew.c (redraw_overlapping_rows): Fix detection of
5116 overlapping for topmost and bottommost rows.
5117
1ac9108a 5118 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5119
472c3609
JR
51202009-04-06 Jason Rumney <jasonr@gnu.org>
5121
5122 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5123
ab193662
KH
51242009-04-06 Kenichi Handa <handa@m17n.org>
5125
5126 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5127
5128 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5129
0c26f026
KH
51302009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5131
5132 * ftfont.c (ftfont_open): Fix checking of the return value of
5133 FT_Load_Char. Fix setting font->underline_thickness.
5134
e173bbce
CY
51352009-04-04 Chong Yidong <cyd@stupidchicken.com>
5136
5137 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5138 (Fterminal_parameters, Fterminal_parameter)
5139 (Fset_terminal_parameter): In doc string, refer to terminal
5140 objects rather than terminal ids.
5141
693a2698
EZ
51422009-04-04 Eli Zaretskii <eliz@gnu.org>
5143
5144 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5145 ret_lim_data. (Bug#2867)
5146
d5221487
CY
51472009-04-03 Chong Yidong <cyd@stupidchicken.com>
5148
5149 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5150 so they don't get wider than the window, matching 2006-01-23
5151 change to the partner function in xdisp.c (Bug#2800).
5152
223509a3
KH
51532009-04-03 Kenichi Handa <handa@m17n.org>
5154
5155 * print.c (print_object): Make each lowest sub_char_table start a
5156 new line (Bug#2866).
5157
74fcd0b1
KH
51582009-04-02 Kenichi Handa <handa@m17n.org>
5159
5160 * fontset.c (fontset_font): Record no-font when a fontset
5161 explicitly tells not to try another font-specs.
5162
c542407d
SM
51632009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5164
5165 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5166
e3869731
KH
51672009-03-30 Kenichi Handa <handa@m17n.org>
5168
d8d2f142
KH
5169 * fontset.c (fontset_from_font): Specify only registry in a
5170 font-spec for all characters supported by that registry.
5171
e3869731
KH
5172 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5173 even if HAVE_M17N_FLT is not defined.
5174
5da5f805
CY
51752009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5176
5177 * ftfont.c: Conditionalize prototyping and use of
5178 ftfont_variation_glyphs.
5179
ab226c50
SM
51802009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5181
9628fed7
SM
5182 * frame.c (delete_frame): Work around compiler bug.
5183
5184 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5185 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5186 Some more EMACS_INT.
5187 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5188
5189 * xdisp.c (dump_glyph): Fix typo.
5190
ae19ba7c
SM
5191 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5192 (adjust_markers_gap_motion, adjust_markers_for_delete)
5193 (adjust_markers_for_insert, adjust_point)
5194 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5195 (make_gap, copy_text, count_size_as_multibyte, insert)
5196 (insert_and_inherit, insert_before_markers)
5197 (insert_before_markers_and_inherit, insert_1)
5198 (count_combining_before, count_combining_after, insert_1_both)
5199 (insert_from_string, insert_from_string_before_markers)
5200 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5201 (insert_from_buffer_1, adjust_after_replace)
5202 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5203 (replace_range_2, del_range, del_range_1, del_range_byte)
5204 (del_range_both, del_range_2, modify_region)
5205 (prepare_to_modify_buffer, signal_before_change)
5206 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5207 for buffer positions and sizes.
5208 * lisp.h: Adjust prototypes accordingly.
5209
5210 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5211 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5212 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5213
ab226c50
SM
5214 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5215
46dfb8fb
JD
52162009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5217
5218 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5219 lines and columns so we keep the same pixel height and width.
5220
5221 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5222 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5223 (x_handle_net_wm_state): New function to update frame parameter
5224 fullscreen.
5225 (x_term_init): Initialize atoms for _NET_WM_STATE.
5226
5227 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5228
d347e494
SM
52292009-03-27 Kevin Ryde <user42@zip.com.au>
5230
5231 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5232 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5233 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5234 (Fgpm_mouse_stop): Pass that new parameter.
5235 * termhooks.h (close_gpm): Adjust prototype.
5236
84db11d6
SM
52372009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5238
c95a5008
SM
5239 * lisp.h (Fx_focus_frame): Declare.
5240
84db11d6
SM
5241 * callint.c (Fcall_interactively): For '^' just delegate the work to
5242 handle-shift-selection.
5243 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5244
0a1958d6
CY
52452009-03-24 Chong Yidong <cyd@stupidchicken.com>
5246
0bfdff23
CY
5247 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5248
0a1958d6
CY
5249 * data.c (Qinteractive_form): New variable.
5250 (Finteractive_form): Use it.
5251
5252 * eval.c (Fcommandp): Use Qinteractive_form.
5253
58aec0d6
JR
52542009-03-24 Jason Rumney <jasonr@gnu.org>
5255
5256 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5257 Calculate total size precisely. Decode environment variables
5258 before substituting. (Bug#38)
5259
553dd618
KH
52602009-03-24 Kenichi Handa <handa@m17n.org>
5261
5262 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5263 encoding (Bug#2722).
553dd618 5264
c39ea606
JD
52652009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5266
5267 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5268 that gdpy is set.
5269
bc9b2b5e
AM
52702009-03-22 Alan Mackenzie <acm@muc.de>
5271
5272 * callint.c (Finteractive): Clarify the doc string - even
5273 promptless elements need \n separators.
5274
9f995a76
JR
52752009-03-22 Jason Rumney <jasonr@gnu.org>
5276
5277 * w32term.c (syms_of_w32term): Doc fix for
5278 x-use-underline-position-properties.
5279
22749e9a
EZ
52802009-03-21 Eli Zaretskii <eliz@gnu.org>
5281
5282 * w32.c (getpwuid): Change argument type to unsigned.
5283 (struct w32_id): Change type of `rid' member to unsigned.
5284 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5285 argument ID to unsigned. All callers changed.
5286 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5287
e00553bf
EZ
52882009-03-20 Eli Zaretskii <eliz@gnu.org>
5289
5290 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5291 negative, produce a float value.
5292
5293 * dired.c (make_uid, make_gid): New functions.
5294 (Ffile_attributes): Use them to avoid negative UID and GID.
5295
f761d6b6
JB
52962009-03-20 Juanma Barranquero <lekktu@gmail.com>
5297
5298 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5299 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5300 Fix typos in docstrings.
5301
d507f8d7
KH
53022009-03-19 Kenichi Handa <handa@m17n.org>
5303
5304 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5305 changed, use font_load_for_lface to get a new font object.
5306 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5307
5308 * frame.c (x_set_font): Handle the case that ARG is a cons.
5309
c68845e0
GM
53102009-03-19 Glenn Morris <rgm@gnu.org>
5311
5312 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5313
bfa49dd1
CY
53142009-03-19 Chong Yidong <cyd@stupidchicken.com>
5315
5316 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5317
8458d4c1
KH
53182009-03-19 Kenichi Handa <handa@m17n.org>
5319
5320 * charset.c (load_charset_map_from_file): When a mapfile can't be
5321 loaded, signal an error.
5322
78e7d1fe
EZ
53232009-03-18 Eli Zaretskii <eliz@gnu.org>
5324
5325 * dired.c (Ffile_attributes): Make sure UID and GID are always
5326 positive, even if the value is too large for a positive EMACS_INT.
5327 Doc fix.
5328
5329 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5330
5da9fdfa
YM
53312009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5332
5333 * xmenu.c (xdialog_show): Move Fredisplay call ...
5334 (Fx_popup_dialog): ... here.
5335
7519c40d
SM
53362009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5337
5338 * dired.c (file_name_completion): Disable the first optimization just
5339 installed, since it is not implemented correctly.
5340
2cd298e2
SM
53412009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5342
5343 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5344 only if the entry can affect bestmatch.
2cd298e2
SM
5345 Stop the search early, as Ftry_completion already does.
5346
48d37adf
CY
53472009-03-17 Chong Yidong <cyd@stupidchicken.com>
5348
e10c9c93 5349 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5350
9286b16a
CY
53512009-03-15 Chong Yidong <cyd@stupidchicken.com>
5352
5353 * keyboard.c (parse_menu_item): Don't display remappings as menu
5354 equivalent bindings (Bug#788).
5355
f7b146dc
JR
53562009-03-15 Jason Rumney <jasonr@gnu.org>
5357
5358 * w32term.h (WM_EMACS_PAINT): New message.
5359 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5360 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5361 before passing to lisp thread. (Bug#950)
5362
f761d6b6 53632009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5364
d93f9575
CY
5365 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5366 variable as it was never reset.
5367 (ns_term_init): Remove initialization of Lisp-settable defaults
5368 and ns_expand_space.
5369 (-setPanelFromDefaultValues): Remove ns_expand_space.
5370 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5371 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5372 i.e. no additional spacing, similar to Carbon port.
5373
d93f9575
CY
5374 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5375 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5376
305018ec
JD
53772009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5378
5379 * sound.c (alsa_configure): Remove call to deprecated
5380 snd_pcm_sw_params_set_xfer_align.
5381
f761d6b6 53822009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5383
5384 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5385 after clicking in a detached tool bar.
5386 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5387
46e722a9
SM
53882009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5389
348db3dd
SM
5390 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5391 int/Lisp_Object mixup).
46e722a9 5392
a3d16f39
KH
53932009-03-13 Kenichi Handa <handa@m17n.org>
5394
5395 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5396 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5397 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5398 (set_fontset_font): Change ARG to a vector. Handle range_list in
5399 ARG correctly.
5400 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5401 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5402 the above change.
5403 (fontset_from_font): Fix previous change.
fe24f56a 5404 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5405 entry. If FONTSET is the default fontset, don't set the extra
5406 slot of the returning char-table.
5407
b066e6b6
JB
54082009-03-12 Juanma Barranquero <lekktu@gmail.com>
5409
5410 * nsfns.m (Fx_close_connection): Doc fix.
5411 (Fns_do_applescript): Reflow docstring.
5412 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5413 (Fx_display_pixel_width, Fx_display_pixel_height)
5414 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5415 Fix typos in docstrings.
5416 (Fns_set_alpha): Fix typos in error messages.
5417
d472514e 54182009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5419
d472514e 5420 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5421 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5422 were used for such events.
5423
d472514e
JB
5424 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5425 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5426
d472514e 5427 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5428 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5429
fb930676
KH
54302009-03-11 Kenichi Handa <handa@m17n.org>
5431
ff85581a
KH
5432 * font.h (font_open_by_spec): Extern it.
5433
c50b7e98
KH
5434 * font.c (font_open_by_spec): New function.
5435 (font_open_by_name): Use font_open_by_spec.
5436
fb930676
KH
5437 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5438 fontset of the frame.
5439
5440 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5441 modify the default font of frames that use this fontset.
5442 (num_auto_fontsets): New variable.
5443 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5444 name. Be sure to set FONTSET_ASCII to the correct font name.
5445 (update_auto_fontset_alist): New function.
5446
df4e8455
JB
54472009-03-11 Juanma Barranquero <lekktu@gmail.com>
5448
5449 * makefile.w32-in: Update dependencies.
5450
0a375797
AR
54512009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5452
5453 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5454
61313fa3
SM
54552009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5456
5457 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5458
b55103fb
CY
54592009-03-10 Chong Yidong <cyd@stupidchicken.com>
5460
5461 * lread.c (Feval_buffer): Doc fix.
5462
dde2559c
KH
54632009-03-09 Kenichi Handa <handa@m17n.org>
5464
5465 * charset.c (Qfile_name_handler_alist): Extern it.
5466 (load_charset_map_from_file): Temporarily bind
5467 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5468
df4e8455 54692009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5470
47f588bb
GM
5471 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5472 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5473
4ddf94bd
AR
54742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5475
4c9bdfc2
AR
5476 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5477 (x_set_window_size): Change back to calculated method of setting
5478 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5479 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5480 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5481
fe41ae9e
AR
5482 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5483
4c9bdfc2
AR
5484 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5485 accelerator in parens under GNUstep.
5486
825d0875
KH
54872009-03-06 Kenichi Handa <handa@m17n.org>
5488
5489 These changes are to detect incorrect composition sequence without
f3b3be74 5490 looking ahead the source. (Bug#2370)
825d0875
KH
5491
5492 * coding.h: Include "composite.h".
5493 (enum compisition_state): New enum.
5494 (struct compisition_status): New struct.
5495 (struct iso_2022_spec): New member cmp_status.
5496 (struct emacs_mule_spec): New struct.
5497 (struct coding_system): New members ctext_extended_segment_len and
5498 embedded_utf_8. Change the union member
5499 spec.emacs_mule_full_support to spec.emacs_mule.
5500
5501 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5502 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5503 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5504 (ADD_COMPOSITION_DATA): New arg nbytes.
5505 (emacs_mule_char): New arg cmp_status.
5506 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5507 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5508 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5509 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5510 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5511 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5512 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5513 (EMACS_MULE_COMPOSITION_END): New macro.
5514 (emacs_mule_finish_composition): New function.
5515 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5516 (decode_coding_emacs_mule): Avoid long looking ahead while
5517 handling composition.
5518 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5519 (ENCODE_COMPOSITION_RULE): New macro.
5520 (finish_composition): New function.
5521 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5522 (DECODE_COMPOSITION_START): New implementation.
5523 (DECODE_COMPOSITION_END): Likewise.
5524 (STORE_COMPOSITION_RULE): New macro.
5525 (decode_coding_iso_2022): Avoid long looking ahead while handling
5526 composition, CTEXT extended segment, and embedded UTF-8.
5527 (setup_coding_system): For a coding of type iso-2022, reset
5528 CODING_ISO_EXTSEGMENT_LEN (coding) and
5529 CODING_ISO_EMBEDDED_UTF_8 (coding).
5530 (get_translation): Delete arguments last_block, from_nchars,
5531 to_nchars. Callers changed.
5532 (produce_chars): Don't modify charbuf. Adjusted for the change of
5533 get_translation.
98a326f7 5534 (produce_composition): Adjust for the new annotation sequence.
825d0875 5535 (handle_composition_annotation): Likewise.
98a326f7 5536 (consume_chars): Adjust for the change of get_translation.
825d0875 5537
ccbc4452
AR
55382009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5539
4ddf94bd 5540 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5541
988a7ddb
KH
55422009-03-05 Kenichi Handa <handa@m17n.org>
5543
5544 * font.c (font_select_entity): New function.
5545 (font_find_for_lface): Use font_select_entity to select a font.
5546
5547 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5548 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5549 font with C restriction.
5550
98a326f7 55512009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5552
be1bce46 5553 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5554
10ea2b82
JR
55552009-03-04 Jason Rumney <jasonr@gnu.org>
5556
2c93b248 5557 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5558 characters that have already been read. (Bug#2569)
2c93b248 5559
10ea2b82
JR
5560 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5561 Log an error message if check_image_size failed.
5562 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5563 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5564
71a0c011
EZ
55652009-03-02 Eli Zaretskii <eliz@gnu.org>
5566
5567 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5568 when decoding process output.
5569
2f63bba8
RS
55702009-03-01 Richard M Stallman <rms@gnu.org>
5571
5572 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5573
5574 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5575
0a9564cb
EZ
55762009-02-28 Eli Zaretskii <eliz@gnu.org>
5577
5578 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5579 (decode_coding_emacs_mule, decode_coding_iso_2022)
5580 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5581 (decode_coding_raw_text, decode_coding_charset)
5582 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5583 Honor inhibit-eol-conversion. (Bug #2186)
5584
449148b3
JR
55852009-02-28 Jason Rumney <jasonr@gnu.org>
5586
5587 * coding.c (detect_coding_charset): If not checking latin extra,
5588 fail on characters between 0x80 and 0xA0. (Bug#2354)
5589
a4aee864
EZ
55902009-02-28 Eli Zaretskii <eliz@gnu.org>
5591
5592 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5593 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5594
d88bee5a
GM
55952009-02-27 Glenn Morris <rgm@gnu.org>
5596
5597 * callint.c (Finteractive): Doc fix.
5598
a808f22d
KH
55992009-02-27 Kenichi Handa <handa@m17n.org>
5600
5601 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5602
caf8d60c
CY
56032009-02-27 Chong Yidong <cyd@stupidchicken.com>
5604
5605 * font.c (font_style_to_value): Set value for unknown symbols to
5606 100 instead of 255.
b61137ea
CY
5607 (weight_table, slant_table, width_table): Treat "unspecified" as
5608 the default value.
caf8d60c 5609
1a0de25c
JB
56102009-02-26 Juanma Barranquero <lekktu@gmail.com>
5611
5612 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5613
8fc45744
JB
56142009-02-25 Juanma Barranquero <lekktu@gmail.com>
5615
107bd7d1
JB
5616 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5617 error as soon as a recursive load is detected.
8fc45744 5618
f097e223
AR
56192009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5620
5621 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5622 before caching.
5623
8810a12f
KH
56242009-02-24 Kenichi Handa <handa@m17n.org>
5625
5626 * fontset.c (fontset_find_font): Fix the condition for checking
5627 unavailable font.
5628
2c7d1565
GM
56292009-02-24 Glenn Morris <rgm@gnu.org>
5630
5631 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5632 whitespace that confuses documentation.
5633
a20878b6
MB
56342009-02-23 Miles Bader <miles@gnu.org>
5635
5636 * process.c (Flist_system_processes, Fprocess_attributes)
5637 (syms_of_process): Rename `system-process-attributes' to
5638 `process-attributes'.
5639
b3b58c01
AS
56402009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5641
1b3b981b
AS
5642 * coding.h (struct coding_system): Make safe_charsets a pointer to
5643 unsigned char.
5644 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5645 being 255.
5646 (SAFE_CHARSET_P): Likewise.
5647 (setup_iso_safe_charsets): Properly setup safe_charsets.
5648 (Fdefine_coding_system_internal): Likewise.
5649 (setup_coding_system): Likewise. Remove unneeded casts.
5650 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5651 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5652 unneeded casts.
5653
b3b58c01
AS
5654 * insdel.c (del_range_2): Don't modify gap contents when called
5655 from decode_coding_object. (Bug#1809)
5656
0b6f228c
CY
56572009-02-21 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5660 Qfont_object.
5661 (Ftype_of): Recognize font objects.
5662
5663 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5664
5665 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5666 moved to data.c.
5667
52f8870b
AR
56682009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5669
5670 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5671 async_iconified. Based on a patch by Christian Lynbech
5672 <christian.lynbech@tieto.com>.
5673 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5674
7087d5e9
GM
56752009-02-20 Glenn Morris <rgm@gnu.org>
5676
5677 * syntax.c (Fskip_chars_forward): Fix doc typo.
5678
41d2ceef
CY
56792009-02-20 Chong Yidong <cyd@stupidchicken.com>
5680
5681 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5682
1a3b7ca6
CY
56832009-02-19 Chong Yidong <cyd@stupidchicken.com>
5684
5685 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5686
73cce38d
KH
56872009-02-19 Kenichi Handa <handa@m17n.org>
5688
5689 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5690 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5691
a51092ee
DN
56922009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5693
5694 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5695
c423ecca
KH
56962009-02-18 Kenichi Handa <handa@m17n.org>
5697
5698 * font.c (font_check_otf_features): Fix handling of `nil' element.
5699 (Ffont_spec): Describe :lang and :otf in the docstring.
5700
4c1958f4
AS
57012009-02-16 Andreas Schwab <schwab@suse.de>
5702
5703 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5704 string.
5705
5704f39a
KH
57062009-02-16 Kenichi Handa <handa@m17n.org>
5707
5708 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5709 (Bug#1723)
5704f39a 5710
8f0085aa
CY
57112009-02-14 Chong Yidong <cyd@stupidchicken.com>
5712
a057d86a 5713 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5714
5715 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5716 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5717
aff01dd9
EZ
57182009-02-14 Eli Zaretskii <eliz@gnu.org>
5719
5720 * msdos.c (MAX_SCREEN_BUF): New macro.
5721 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5722 Encode the entire run of glyphs sharing the same face, instead of
5723 doing that one glyph at a time (fixes a bug with displaying
5724 double-size characters).
5725
ba301db3
AR
57262009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5727
5728 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5729
5730 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5731 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5732 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5733
5734 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5735 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5736
51d861de
SM
57372009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5738
ac146f82 5739 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5740 invisible areas.
5741
7fed8996
JR
57422009-02-12 Jason Rumney <jasonr@gnu.org>
5743
631ea4fb
JR
5744 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5745 (add_font_entity_to_list): Call check_face_name even when family
5746 is unspecified.
5747
cb4a3e42
JR
5748 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5749 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5750 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5751
7fed8996 5752 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5753 raster fonts. (Bug#2219)
7fed8996 5754
895416e3
KH
57552009-02-12 Kenichi Handa <handa@m17n.org>
5756
5757 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5758 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5759 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5760 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5761 (find_automatic_composition): While looking forward and backward,
5762 check static composition. Fix where to stop looking forward.
5763 (composition_adjust_point): Fix checking of static composition.
5764 (Fcomposition_get_gstring): Pay attention to
1dacf998 5765 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5766
5767 * lisp.h (fast_looking_at): Extern it.
5768
5769 * search.c (fast_looking_at): New function.
5770
51d861de 5771 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5772 <struct glyph>.u.cmp.to.
5773 (append_composite_glyph): Likewise.
5774
51d861de 5775 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5776 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5777 composition.
51d861de 5778 (append_composite_glyph): Adjust for the change of
895416e3
KH
5779 <strcut glyph>.u.cmp.to.
5780
8510724d
JB
57812009-02-11 Juanma Barranquero <lekktu@gmail.com>
5782
5783 * casetab.c (init_casetab_once):
5784 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5785 * font.c (font_update_lface):
5786 * fontset.c (Fnew_fontset):
5787 * ftfont.c (ftfont_drive_otf):
5788 * xfont.c (xfont_open):
5789 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5790
294fa707
SM
57912009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5792
5793 * fileio.c (Fwrite_region): !NILP -> CONSP.
5794
b5bfebec
AS
57952009-02-10 Andreas Schwab <schwab@suse.de>
5796
5797 * process.c (send_process): Properly relocate pointer into data
adab88bd 5798 when using encoded data. (Bug#2272)
b5bfebec 5799
cb84a2be
KH
58002009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5801
5802 * coding.c (detect_coding_charset): Fix previous change.
5803
89e09428
JR
58042009-02-08 Jason Rumney <jasonr@gnu.org>
5805
5806 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5807 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5808
4470a277
AS
58092009-02-07 Andreas Schwab <schwab@suse.de>
5810
5811 * unexelf.c (unexec): Fix error message.
5812
3175b12a
AR
58132009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5814
5815 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5816 when modal window is active. (Bug #2152)
3175b12a
AR
5817 (applicationShouldTerminate:): Remove now-unneeded while loop
5818 around NSRunAlertPanel.
5819
5820 * nsmenu.m (popupSession): New file-global variable.
5821 (pop_down_menu): End the popupSession before closing dialog.
5822 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5823 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5824 don't query NSApp for events (just sleep instead).
5825
8434d0b8
EZ
58262009-02-07 Eli Zaretskii <eliz@gnu.org>
5827
51d861de
SM
5828 * coding.c (syms_of_coding) <translation-table-for-input>:
5829 Modify doc string to discourage use for character code unification.
8434d0b8 5830
aa82edfd
CY
58312009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5832
5833 * atimer.c (run_timers): Update pending_atimers.
5834
2d283c7c
CY
58352009-02-06 Chong Yidong <cyd@stupidchicken.com>
5836
eb306cab
CY
5837 * image.c (svg_load_image): Fix last change.
5838
2d283c7c
CY
5839 * xfns.c (Fx_create_frame): Signal an error if no font is
5840 found (Bug#2147).
5841
4d8e170e
JB
58422009-02-05 Juanma Barranquero <lekktu@gmail.com>
5843
5844 * character.c (syms_of_character) <script-representative-chars>:
5845 Fix typo in docstring.
5846
c96169a0
AR
58472009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5848
5849 * nsmenu.m (pop_down_menu): New function.
5850 (ns_popup_dialog): Call it on unwind.
5851 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5852 call timer_check() (Bug#2154).
5853 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5854 handling_signal is set.
5855 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5856
31fd7c5c 5857 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5858
5859 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5860
5861 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5862
51d861de
SM
5863 * keyboard.c (poll_for_input_1, handle_async_input):
5864 Set handling_signal under HAVE_NS.
c96169a0 5865
aacd8ba1
GM
58662009-02-04 Glenn Morris <rgm@gnu.org>
5867
5868 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5869
4cb75c4b
KH
58702009-02-04 Kenichi Handa <handa@m17n.org>
5871
5872 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5873
5874 * charset.c (Fchar_charset): New optional arg restriction.
5875
5876 * coding.h (coding_system_charset_list): Extern it.
5877
5878 * coding.c (coding_system_charset_list): New function.
5879
5880 * composite.c: Include coding.h and termhooks.h.
5881 (composition_gstring_p): Fix for the terminal case.
5882 (composition_gstring_width): Likewise.
5883 (fill_gstring_body): Likewise.
5884 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5885 the frame.
5886 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5887 is within a composition.
867d4bb3 5888 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5889
5890 * term.c (encode_terminal_code): Fix handling of composition.
5891 (produce_composite_glyph): For static composition, get pixel_width
5892 from struct composition.
5893
826ba17e
AS
58942009-02-02 Andreas Schwab <schwab@suse.de>
5895
5896 * unexelf.c (unexec): Handle unaligned bss offset.
5897
8ad093db
AR
58982009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5899
5900 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5901 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5902
8ad093db
AR
5903 * keyboard.c (handle_interrupt): Don't call
5904 quit_throw_to_read_char() under NS.
d0a76a6e 5905
8ad093db
AR
5906 * blockinput.h: Remove NS-specific code.
5907
4d18a7a2
DN
59082009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5909
db878925
DN
5910 * dispnew.c (window_change_signal): Don't try to get the size of a
5911 suspended tty frame.
5912 * term.c (Fresume_tty): Resize if the size has changed while the
5913 tty was suspended.
5914
4d18a7a2
DN
5915 * alloc.c (mark_stack): Properly conditionalize previous change.
5916
8984df7c
JB
59172009-01-30 Juanma Barranquero <lekktu@gmail.com>
5918
5919 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5920 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5921 Remove; this code is not used on Windows.
5922
75f4f1ac
EZ
59232009-01-30 Eli Zaretskii <eliz@gnu.org>
5924
5925 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5926 EOLs that also has stray ^M characters.
5927
07a1e794
JB
59282009-01-30 Juanma Barranquero <lekktu@gmail.com>
5929
5930 * atimer.c (run_timers, alarm_signal_handler):
5931 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5932 * w32inevt.c (w32_console_read_socket):
5933 * w32term.c (w32_read_socket):
5934 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5935
a8b11cc9
CY
59362009-01-30 Chong Yidong <cyd@stupidchicken.com>
5937
5938 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5939 Initialize it as a relative filename pattern.
5940 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5941 (Fcall_process_region): Simplify temp file creation using
5942 temporary-file-directory.
5943
c279587b
EZ
59442009-01-29 Eli Zaretskii <eliz@gnu.org>
5945
5946 * msdos.c: Rename pending_signals to msdos_pending_signals.
5947 (sig_suspender, sigprocmask): Adjust.
5948
a8fe3242
CY
59492009-01-29 Chong Yidong <cyd@stupidchicken.com>
5950
5951 * keyboard.c (pending_signals): New var.
5952 (poll_for_input, input_available_signal, init_keyboard): Set it.
5953 (process_pending_signals): New function.
5954
5955 * lisp.h (QUIT): Check pending_signals instead of
5956 interrupt_input_pending. Use process_pending_signals.
5957
51d861de 5958 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5959
51d861de 5960 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5961
5962 * sysdep.c (emacs_write): Use process_pending_signals.
5963
5964 * xterm.c (XTread_socket): Update pending_signals.
5965
5966 * w32term.c (w32_read_socket): Update pending_signals.
5967
5968 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5969
6570a1c4
KH
59702009-01-29 Kenichi Handa <handa@m17n.org>
5971
5972 * xftfont.c (xftfont_has_char): New function.
5973 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5974
d72a4afa
AR
59752009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5976
5977 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5978 under GNUstep.
5979 (ns_query_color): New declaration.
5980
5981 * nsterm.m (ns_confirm_quit): New variable.
5982 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5983 (EmacsApp-applicationShouldTerminate:): Use it.
5984 (EmacsPrefsController): Let user set it.
5985 (ns_query_color): New function.
5986 (ns_defined_color): Use it.
5987 (ns_initialize): Drop.
5988 (ns_term_init): Add two lines from ns_initialize(), and set
5989 input_interrupt_mode to nil.
5990
5991 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5992 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5993
9fe78804
KH
59942009-01-28 Kenichi Handa <handa@m17n.org>
5995
5996 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5997 (fontset_get_font_group): Remember that no font-group is specified
5998 for C.
9fe78804 5999
fa57de36
CY
60002009-01-27 Chong Yidong <cyd@stupidchicken.com>
6001
930600e9
CY
6002 * fns.c (concat): Check for string overflow (bug#1787).
6003
fa57de36
CY
6004 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6005 Quadruple undo limits (bug#1501).
6006
7179ce7b
KH
60072009-01-27 Kenichi Handa <handa@m17n.org>
6008
6009 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6010 directly use GT_Get_Char_index.
6011
6012 * xftfont.c (struct xftfont_info): New member `index'.
6013
6014 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6015 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6016
5be8fcc0
CY
60172009-01-26 Kenichi Handa <handa@m17n.org>
6018
6019 * fontset.c (fontset_find_font): Fix handling of non-cons return
6020 value of fontset_get_font_group.
6021 (fontset_font): Revert last change.
6022
19ae3e61
JR
60232009-01-26 Jason Rumney <jasonr@gnu.org>
6024
6025 * w32font.c (w32font_list_internal): Return quickly if registry is
6026 unknown. Simplify final return.
6027 (add_font_entity_to_list): Break complex logic down into more
6028 manageable chunks. Move unknown registry check to
6029 w32font_list_internal.
6030
8612b71a
AR
60312009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6032
6033 Changes to remove Feval calls from GUI under NS.
6034
d8038940
JB
6035 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6036 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6037 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6038
6039 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6040 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6041 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6042 instead of NON_ASCII_KEYSTROKE_EVENT.
6043 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6044 (EmacsApp-applicationShouldTerminate:): Query user.
6045 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6046 instead of Feval.
6047
6048 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6049
6050 * keyboard.c (kbd_buffer_get_event): Check for it.
6051 (keys_of_keyboard): Define lispy keys for
6052 ns-put/unput-working-text.
6053
6054 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6055 versions.
6056 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6057
6288ae55
CY
60582009-01-25 Chong Yidong <cyd@stupidchicken.com>
6059
6060 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6061 setting current_buffer directly. (Bug#2044)
6288ae55 6062
289e7f8f
CY
60632009-01-24 Chong Yidong <cyd@stupidchicken.com>
6064
5ce87308 6065 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6066 any work. (Bug#1952, bug#1990).
5ce87308 6067
64cc3cf6 6068 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6069
b3243e6f
AR
60702009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6071
6072 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6073 (ns_no_defaults): New declaration.
6074 (main): Use it.
e0d2e69a 6075
d900b2af 6076 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6077
d900b2af 6078 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6079
d900b2af
AR
6080 * nsterm.m (ns_no_defaults): New variable.
6081 (ns_initialize): Don't read defaults when ns_no_defaults.
6082 (EmacsView-readSelectionFromPasteboard:)
6083 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6084 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6085 (ns_dumpglyphs_stretch): New function.
6086 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6087 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6088
e0d2e69a
AR
6089 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6090
3ac71f5d
CY
60912009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6092
6093 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6094 call for Sparc64.
6095
3fe53a83
AR
60962009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6097
6098 * nsfns.m:
6099 * nsgui.h:
6100 * nsmenu.m:
6101 * nsselect.m:
6102 * nsterm.h:
6103 * nsterm.m: Remove '23' comments that indicated code added during
6104 update from emacs-20 -> emacs-23.
6105
10f87c6f 61062009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6107
6108 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6109 ns_alternate_modifier. (Bug#1217)
a3b53a85 6110
c7cef62d
AR
6111 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6112 Display all shortcuts, including those w/o super modifier.
6113
575fb8bd
AR
6114 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6115
918b848b
CY
61162009-01-22 Chong Yidong <cyd@stupidchicken.com>
6117
6118 * fileio.c (Vwrite_region_post_annotation_function)
6119 (Vwrite_region_annotation_buffers): New vars.
6120 (build_annotations_unwind): Just reset
6121 Vwrite_region_annotation_buffers.
6122 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6123 Call write-region-post-annotation-function.
6124 (build_annotations): Add to Vwrite_region_annotation_buffers if
6125 buffer changes.
6126
a39e2539
AR
61272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6128
6129 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6130 Tiger.
51d861de
SM
6131 * nsfns.m (ns_do_applescript):
6132 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6133
35ed44db
AR
61342009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6135
6136 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6137
cbe0b5bf
AR
61382009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6139
6140 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6141
6049d3a0
AR
6142 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6143
6144 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6145 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6146 handle Ctrl-tab. (Bug#1841)
6147 (ns_get_color): Use unsigned long long for scanned hex string value.
6148 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6149 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6150 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6151 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6152 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6153 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6154 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6155
d3810c21 6156 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6157 DPI. (Bug#1316)
d3810c21
AR
6158 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6159 values in onTiger section.
4c7077c3 6160
e301e634
CY
61612009-01-19 Chong Yidong <cyd@stupidchicken.com>
6162
7f82490b
CY
6163 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6164 Check return value of font_spec_from_name.
64cc3cf6 6165 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6166
6167 * font.c (font_spec_from_name): Return Qnil if font name could not
6168 be parsed.
6169 (font_parse_name): Treat a `?' character as part of an XLFD.
6170
e301e634
CY
6171 * fns.c (Fsubstring): Doc fix.
6172
1c0db158
KH
61732009-01-19 Kenichi Handa <handa@m17n.org>
6174
51d861de 6175 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6176 (ftfont_list): Likewise.
6177
acf20901
JB
61782009-01-18 Juanma Barranquero <lekktu@gmail.com>
6179
fff4e459
JB
6180 * dbusbind.c (Fdbus_register_signal):
6181 * process.c (conv_sockaddr_to_lisp):
6182 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6183
acf20901
JB
6184 * callproc.c (Fgetenv_internal): Doc fix.
6185
e7abcdfb
CY
61862009-01-16 Chong Yidong <cyd@stupidchicken.com>
6187
6188 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6189 it is not even used.
6190
b60861e6
GM
61912009-01-16 Glenn Morris <rgm@gnu.org>
6192
6193 * font.c (Ffont_variation_glyphs): Silence compiler.
6194
8db52afe
JB
61952009-01-15 Juanma Barranquero <lekktu@gmail.com>
6196
6197 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6198 Reported by David Robinow <drobinow@gmail.com>.
6199
4cddb209
KH
62002009-01-15 Kenichi Handa <handa@m17n.org>
6201
51d861de 6202 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6203
f247f67b
JR
62042009-01-14 Jason Rumney <jasonr@gnu.org>
6205
6206 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6207 never a fontset. (Bug#1562)
f247f67b 6208
f56a4450
KH
62092009-01-14 Kenichi Handa <handa@m17n.org>
6210
6211 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6212 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6213
4e99855e
CY
62142009-01-13 Chong Yidong <cyd@stupidchicken.com>
6215
6216 * font.c (font_clear_prop): If clearing the family, clear the font
6217 width index too.
6218
fff4e459 6219 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6220
24f01470
JB
62212009-01-12 Juanma Barranquero <lekktu@gmail.com>
6222
6223 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6224 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6225 functions, use sizeof.
6226
a41240a3
MR
62272009-01-12 Martin Rudalics <rudalics@gmx.at>
6228
6229 * keyboard.c (read_char): Fix case where last_nonmenu_event
6230 returned a bad value with submenus. (Bug#447)
6231
944636b8
CY
62322009-01-12 Chong Yidong <cyd@stupidchicken.com>
6233
6234 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6235 family, clear the font width index too.
6236
0dad7c6f
JR
62372009-01-11 Jason Rumney <jasonr@gnu.org>
6238
6239 * keyboard.c (cmd_error_internal): Exit when errors occur before
6240 frame creation and not in daemon mode. (Bug#1836)
6241
7c2363af
CY
62422009-01-10 Chong Yidong <cyd@stupidchicken.com>
6243
6244 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6245 of a display vector, backtrack.
6246 (try_window_reusing_current_matrix): Check glyph type before
6247 referencing charpos member.
6248
97b1b294
EZ
62492009-01-10 Eli Zaretskii <eliz@gnu.org>
6250
6251 Fix Bug #876:
6252
6253 * coding.c (inhibit_null_byte_detection): New variable.
6254 (detect_coding, detect_coding_system): Don't pay attention to null
6255 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6256 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6257 <inhibit-iso-escape-detection>: Doc fix.
6258
4624b6e3
JR
62592009-01-09 Jason Rumney <jasonr@gnu.org>
6260
6261 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6262 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6263 Only report Unicode Plane 2 fonts as unicode-sip.
6264
323b840c
CY
62652009-01-09 Chong Yidong <cyd@stupidchicken.com>
6266
51d861de
SM
6267 * xfaces.c (Fx_font_family_list): Delete function.
6268 Move compatibility version to faces.el.
323b840c 6269
51d861de 6270 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6271
eba7400d
MR
62722009-01-09 Martin Rudalics <rudalics@gmx.at>
6273
6274 * frame.c (x_set_frame_parameters): Remember requested value for
6275 fullscreen before it's reset by the parameter handler.
6276
4b09796d
GM
62772009-01-09 Glenn Morris <rgm@gnu.org>
6278
6279 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6280 (last_command_event): ... and update all users.
4b09796d
GM
6281 (last_input_char): For clarity, rename to...
6282 (last_input_event): ... and update all users.
6283 (last-command-char, last-input-char): Move to subr.el as aliases.
6284 * cmds.c, commands.h: Update for last_command_char rename.
6285
14ccea62
CY
62862009-01-08 Chong Yidong <cyd@stupidchicken.com>
6287
51d861de 6288 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6289
5f004711
JR
62902009-01-08 Jason Rumney <jasonr@gnu.org>
6291
6292 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6293 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6294 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6295 Don't declare.
fff4e459 6296 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6297 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6298
b71f6f73
KH
62992009-01-07 Kenichi Handa <handa@m17n.org>
6300
50b06221 6301 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6302 remember the coding system used for decoding in
50b06221
KH
6303 coding_system (Bug#1039).
6304
b71f6f73 6305 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6306 breaking the loop. (Bug#870)
b71f6f73
KH
6307 (decode_coding_utf_16, decode_coding_emacs_mule)
6308 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6309 (decode_coding_charset): Likewise.
6310
56f668f7
MR
63112009-01-05 Martin Rudalics <rudalics@gmx.at>
6312
6313 * frame.c (x_set_frame_parameters): Make sure height (width) get
6314 applied when fullwidth (fullheight) is set. (Bug#1522)
6315
5da9424d
JB
63162009-01-04 Juanma Barranquero <lekktu@gmail.com>
6317
6318 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6319 (utc_base): Declare as ULONGLONG, not long double.
6320 (convert_time_raw): Delete.
6321 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6322 (initialize_utc_base): New function.
6323 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6324 (convert_from_time_t): Use initialize_utc_base; compute result with
6325 64-bit arithmetic.
6326 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6327
c4605e09
EZ
63282009-01-03 Eli Zaretskii <eliz@gnu.org>
6329
9acef61c 6330 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6331 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6332 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6333 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6334 [!subprocesses]: Define.
6335 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6336 (Flist_system_processes, Fsystem_process_attributes)
6337 [!subprocesses]: Call list_system_processes and
6338 system_process_attributes instead of returning Qnil.
6339
9acef61c
JB
6340 * dosfns.c (system_process_attributes, list_system_processes):
6341 New functions.
c4605e09
EZ
6342
6343 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6344
6345 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6346 Don't use the default (no-op) implementation.
6347
8b7d0a16
JR
63482009-01-03 Jason Rumney <jasonr@gnu.org>
6349
a6d46bc1
JR
6350 * keyboard.c (parse_modifiers_uncached): Wheel events are
6351 clicks (bug#687).
6352
8b7d0a16
JR
6353 * w32term.c (x_query_colors, x_query_color): New functions.
6354
6355 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6356 (svg_load_image): Cast returned pointers from dynamically loaded
6357 functions. Eliminate W32 specific code.
6358
bfe11752
DN
63592009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6360
89e2438a
DN
6361 * nsfns.m (x_set_foreground_color, x_set_background_color)
6362 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6363 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6364 x_ prefix instead of ns_. Update references.
6365 (syms_of_nsfns): Add a FIXME comment.
6366
6367 * nsterm.m (x_set_cursor_type): New prototype.
6368 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6369
bfe11752
DN
6370 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6371 for Solaris instead of incorrectly providing Qutime and Qcutime.
6372
031da700
EZ
63732009-01-02 Eli Zaretskii <eliz@gnu.org>
6374
6375 * w32.c (process_times): Compute sum of utime and stime.
6376 (system_process_attributes): Add Qtime to the alist.
6377
6378 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6379 and add them to the alist.
6380
6381 * process.c (top level) <Qtime, Qctime>: New variables.
6382 (syms_of_process): staticpro them.
6383 (Fsystem_process_attributes): Add their documentation to the doc
6384 string.
6385
6386 * process.h: Declare Qtime and Qctime.
6387
df23bf08
JR
63882009-01-02 Jason Rumney <jasonr@gnu.org>
6389
9acef61c 6390 * image.c (Qgobject): New symbol.
df23bf08
JR
6391 (syms_of_image): Initialize it.
6392 (init_svg_functions): Load some functions from gobject library.
6393
5bbdf7aa
DN
63942009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6395
6396 * frame.c (make_terminal_frame): Remove redundant code and useless
6397 block.
6398
63136da6
AS
63992009-01-01 Andreas Schwab <schwab@suse.de>
6400
6401 * process.c (conv_sockaddr_to_lisp): Add workaround for
6402 getsockname bug on BSD.
6403
9ef69046
CY
64042009-01-01 Chong Yidong <cyd@stupidchicken.com>
6405
d6fafbe0
CY
6406 * xfns.c (x_create_tip_frame): Set border width of the X window.
6407
51d861de 6408 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6409
f9c34147
JR
64102009-01-01 Jason Rumney <jasonr@gnu.org>
6411
9acef61c 6412 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6413 Don't block input, as per earlier xterm.c changes.
6414
f5497e45
AR
64152008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6416
6417 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6418 (ns_appkit_version_int): New function.
6419 (x-server-version): Use ns_appkit_version_int and follow 21+
6420 convention of returning 3 integers.
6421
c19cab20
KH
64222008-12-30 Kenichi Handa <handa@m17n.org>
6423
6424 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6425 (CHAR_SURROGATE_PAIR_P): New macro.
6426
6427 * font.h (struct font_driver): New member get_variation_glyphs.
6428
9acef61c 6429 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6430 (Ffont_variation_glyphs): New function.
6431 (syms_of_font): Defsubr it.
6432
6433 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6434 ftfont_variation_glyphs.
6435 (setup_otf_gstring): New function.
6436 (ftfont_drive_otf): Use it.
6437 (ftfont_shape_by_flt): Handle variation selector.
6438 (ftfont_variation_glyphs): New function.
6439
28cd591f
MR
64402008-12-30 Martin Rudalics <rudalics@gmx.at>
6441
6442 * frame.c (Vemacs_iconified): Remove.
6443
7f714baf
JR
64442008-12-30 Jason Rumney <jasonr@gnu.org>
6445
6446 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6447 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6448
9d2d22ab
CY
64492008-12-30 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * indent.c (Fvertical_motion): Don't advance iterator if we have
6452 reseated to the desired position.
6453
6454 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6455 checking for pos match.
6456
545312c2
KH
64572008-12-30 Kenichi Handa <handa@m17n.org>
6458
1ede3eb6
KH
6459 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6460 just get the low 8-bit of the code.
6461
545312c2
KH
6462 * font.c (font_intern_prop): Validate str as multibyte.
6463
bd7bbf29
DN
64642008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6465
31e0750e
DN
6466 * dispextern.h (struct face): Move lface and hash from the middle
6467 of bitfields.
6468
bd7bbf29
DN
6469 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6470
b5672e7c
DN
64712008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6472
6473 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6474 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6475 instead of intervals.h.
6476
d704470f
AS
64772008-12-26 Andreas Schwab <schwab@suse.de>
6478
6479 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6480 cons.
6481
54b33868
MR
64822008-12-26 Martin Rudalics <rudalics@gmx.at>
6483
6484 * textprop.c (Qminibuffer_prompt): New variable.
6485 (syms_of_textprop): Initialize it.
6486 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6487 in minibuffer-prompt face. (Bug#1662)
6488
40b615d6
JR
64892008-12-25 Jason Rumney <jasonr@gnu.org>
6490
6491 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6492
baae5c2d
JR
64932008-12-24 Jason Rumney <jasonr@gnu.org>
6494
6495 * ralloc.c (r_alloc_reset_variable): New function.
6496
6497 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6498 record of what points where. (Bug#716)
baae5c2d 6499
a9051c88
DN
65002008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6501
6502 * minibuf.c (read_minibuf): Follow the non-interactive case when
6503 running as a daemon, before detaching.
6504
8b146312
AS
65052008-12-22 Andreas Schwab <schwab@suse.de>
6506
6507 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6508 * gtkutil.c (free_widget_value): Use xfree instead of free.
6509
56f2de10
MR
65102008-12-22 Martin Rudalics <rudalics@gmx.at>
6511
6512 * frame.c (delete_frame): New function derived from
6513 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6514 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6515 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6516 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6517 * frame.h: Extern delete_frame.
6518 * window.c (window_loop):
6519 * terminal.c (delete_terminal):
6520 * xterm.c (x_connection_closed):
6521 * xfns.c (Fx_hide_tip):
9acef61c 6522 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6523
1fc200d6
JR
65242008-12-21 Jason Rumney <jasonr@gnu.org>
6525
6526 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6527 when character maps to .notdef character.
6528
5e252df2
SM
65292008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6530
6531 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6532
99b72cc4
JR
65332008-12-20 Jason Rumney <jasonr@gnu.org>
6534
6535 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6536 a graphical frame on Windows. (Bug#1325)
99b72cc4 6537
acc49a52
JD
65382008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6539
6540 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6541
6ea15123
CY
65422008-12-20 Chong Yidong <cyd@stupidchicken.com>
6543
6544 * minibuf.c (Fread_buffer): Doc fix.
6545
b2dab6c8
JR
65462008-12-20 Jason Rumney <jasonr@gnu.org>
6547
54ea0c87 6548 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6549 server name in UNC paths. (Bug#719)
54ea0c87 6550
b2dab6c8 6551 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6552 charbuf. (Bug#1035)
b2dab6c8 6553
6d1921be
DN
65542008-12-19 Daniel Engeler <engeler@gmail.com>
6555
6556 * sysdep.c (serial_configure): Fix typo.
6557
53934c98
DN
65582008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6559
6560 * sysdep.c: Include alloca.h.
f4f634e8
DN
6561 (system_process_attributes): Add implementation for Solaris.
6562
6563 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6564
06e111a6
DN
65652008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6566
6567 Reorganize implementation of Flist_system_processes and
6568 Fsystem_process_attributes. No functional changes.
6569 * process.c: Don't #include pwd.h, grp.h and limits.h.
6570 (Flist_system_processes): Just call list_system_processes.
6571 (Fsystem_process_attributes): Just call system_process_attributes.
6572 (procfs_list_system_processes, time_from_jiffies)
6573 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6574 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6575
6576 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6577 (list_system_processes): Rename from
6578 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6579 Provide a do nothing implementation.
6580 (system_process_attributes): Rename from
6581 procfs_list_system_processes.
6582 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6583 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6584
6585 * w32.c (list_system_processes): Rename from
6586 w32_list_system_processes.
6587 (system_process_attributes): Rename from
6588 w32_system_process_attributes.
6589
6590 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6591
6592 * process.h (w32_list_system_processes)
6593 (w32_system_process_attributes): Remove.
362654a6
JB
6594 (list_system_processes, system_process_attributes):
6595 New prototypes.
06e111a6 6596
6a705b23
KH
65972008-12-19 Kenichi Handa <handa@m17n.org>
6598
6599 * xfont.c (xfont_decode_coding_xlfd): New function.
6600 (xfont_encode_coding_xlfd): New function.
6601 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6602 (xfont_list): Decode and encode XLFD by iso-8859-1.
6603 (xfont_match): Likewise.
6604 (xfont_list_family): Likewise.
6605 (xfont_open): Likewise.
6606
d66c0241 6607 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6608 names are utf-8.
6609
d66c0241 6610 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6611 names are utf-8.
6612
5a130941
JD
66132008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6614
6615 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6616 changed.
bfd20325
JD
6617 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6618 clicked on a detached tool bar button.
5a130941 6619
fd95644b
DN
66202008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6621
6622 * emacs.c (main): Print and error and exit when no data is read
6623 from the pipe.
6624
e6eee6ae
JR
66252008-12-17 Jason Rumney <jasonr@gnu.org>
6626
6627 * w32font.c (w32font_has_char): Always return -1.
6628
a35dd56b
KH
66292008-12-16 Kenichi Handa <handa@m17n.org>
6630
6631 * font.c (font_open_entity): Fix previous change.
6632
0e3635c2
DN
66332008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6634
6635 * process.c: Include <limits.h>.
6636
d4835507 66372008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6638
6639 * font.c (font_update_drivers): Fix mistake in reconstructing the
6640 driver list.
6641
66422008-12-16 Chong Yidong <cyd@stupidchicken.com>
6643
6644 * font.c (font_clear_cache): Fix format of font cache data.
6645
e2cbc401
CY
66462008-12-15 Chong Yidong <cyd@stupidchicken.com>
6647
6648 * xftfont.c (xftfont_open): Free Xft font pattern if
6649 XftFontOpenPattern fails.
6650
6651 * xterm.c (x_free_frame_resources): Remove extraneous call to
6652 free_frame_faces.
6653
b131d535
CY
66542008-12-13 Chong Yidong <cyd@stupidchicken.com>
6655
6656 * xterm.c (x_delete_display): Move xim_close_dpy call to
6657 x_delete_terminal.
6658 (x_delete_terminal): Call xim_close_dpy.
6659
e6df5336
JR
66602008-12-13 Jason Rumney <jasonr@gnu.org>
6661
6662 * w32font.c (intern_font_name): New function.
6663 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6664 (w32font_open_internal, Fx_select_font): Decode font name.
6665 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6666
6667 * w32font.h (intern_font_name): Declare new function.
6668
6669 * w32uniscribe.c (add_opentype_font_name_to_list):
6670 Use intern_font_name.
6671
20d68145
CY
66722008-12-13 Chong Yidong <cyd@stupidchicken.com>
6673
9f2554de
CY
6674 * frame.c (Fdelete_frame): Call free_font_driver_list.
6675
3d9bec9a
CY
6676 * font.c (free_font_driver_list): Implement missing function.
6677
20d68145
CY
6678 * w32term.c (w32_term_init): Don't initialize the image cache
6679 here; it will be done in init_frame_faces.
6680
6681 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6682 (struct x_display_info): Remove unused member null_pixel. New
6683 member xim_callback_data.
6684
6685 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6686 (xim_initialize): Save pointer to callback function data.
6687 (xim_close_dpy): Free callback function data. Call XCloseIM,
6688 reverting 2008-11-04 change by David Smith.
6689 (x_term_init): Don't initialize the image cache here; it will be
6690 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6691 (x_delete_display): Free x_dnd_atoms member.
6692
96f9306b
KH
66932008-12-13 Kenichi Handa <handa@m17n.org>
6694
6dec9044
JB
6695 * font.c (font_rescale_ratio): Moved from xfaces.c.
6696 Argument type changed. Handle a font-spec too.
96f9306b 6697 (font_score): Check Vface_font_rescale_alist.
6dec9044 6698 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6699
6700 * xfaces.c (font_rescale_ratio): Moved to font.c.
6701
8d5b4964
CY
67022008-12-13 Chong Yidong <cyd@stupidchicken.com>
6703
6704 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6705
e6df5336
JR
67062008-12-12 Jason Rumney <jasonr@gnu.org>
6707
6708 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6709 Vwindow_system_version to the real w32 major version.
6710
97c6058a
DN
67112008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6712
6713 * term.c (init_tty): Move setting the terminal name before the
6714 potential user: maybe_fatal.
6715
ec4e88d7
CY
67162008-12-11 Chong Yidong <cyd@stupidchicken.com>
6717
d4835507
JB
6718 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6719 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6720
b4233ec9
JR
67212008-12-11 Jason Rumney <jasonr@gnu.org>
6722
8ec71e23 6723 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6724 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6725
b4233ec9 6726 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6727 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6728
011a0143
JB
67292008-12-11 Juanma Barranquero <lekktu@gmail.com>
6730
6731 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6732
3c309f34
JB
67332008-12-11 Juanma Barranquero <lekktu@gmail.com>
6734
6735 * process.c (Fsystem_process_attributes, syms_of_process):
6736 Fix typo in name of Ssystem_process_attributes.
6737 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6738
fedc6ab5
JB
67392008-12-11 Juanma Barranquero <lekktu@gmail.com>
6740
6741 * syntax.c (Fmodify_syntax_entry): Doc fix.
6742
ba3de0e8
JB
67432008-12-10 Juanma Barranquero <lekktu@gmail.com>
6744
6745 * font.c (Ffont_spec): Move usage to end of docstring.
6746
174f1c74
JR
67472008-12-10 Jason Rumney <jasonr@gnu.org>
6748
6749 * w32font.c (Qcham): New symbol.
6750 (font_supported_scripts): Add cham, and comments for other new
6751 scripts in bitfield from OpenType spec.
9d32f818
JR
6752 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6753 contain characters beyond the bmp.
174f1c74 6754
7b649478
KH
67552008-12-10 Kenichi Handa <handa@m17n.org>
6756
6757 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6758 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6759 Qunicode_sip.
6760
2133e2d1
JB
67612008-12-10 Juanma Barranquero <lekktu@gmail.com>
6762
6763 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6764 (Fcoding_system_put): Use QCdefault_char.
6765 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6766
9af886ee
CY
67672008-12-09 Chong Yidong <cyd@stupidchicken.com>
6768
74d819eb
CY
6769 * xftfont.c (syms_of_xftfont): Fix typo.
6770
4ccfa1c0 6771 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6772
7c19d3ae
DN
67732008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6774
6775 * emacs.c (main): Close daemon_pipe on exec.
6776
567826bb
CY
67772008-12-08 Chong Yidong <cyd@stupidchicken.com>
6778
6779 * termchar.h (struct tty): New members termcap_term_buffer and
6780 termcap_strings_buffer.
6781
6782 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6783 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6784 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6785 All callers changed.
6786 (init_tty): Store termcap data and string buffers in new struct
6787 tty members termcap_term_buffer and termcap_strings_buffer.
6788 (delete_tty): Free them.
4ccfa1c0 6789 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6790
aa96c42b
SZ
67912008-12-07 Seiji Zenitani <zenitani@mac.com>
6792
6793 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6794 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6795
b7e1d896
CY
67962008-12-06 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * coding.c (make_conversion_work_buffer): Disable buffer
6799 modification hooks in the work buffer.
6800
b5ec91a5
EZ
68012008-12-05 Eli Zaretskii <eliz@gnu.org>
6802
6803 * process.c (procfs_system_process_attributes): If `nread' has a
6804 negative value, assign zero to it.
6805
a5d2a52b
CY
68062008-12-05 Chong Yidong <cyd@stupidchicken.com>
6807
68c5540b 6808 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6809
7bf1bb21
KH
68102008-12-05 Kenichi Handa <handa@m17n.org>
6811
6812 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6813 second character is a combining character.
6814
2fdc7d00
EZ
68152008-12-05 Eli Zaretskii <eliz@gnu.org>
6816
6817 * process.c (procfs_system_process_attributes): Don't use cmd,
6818 cmdsize, and q without initializing them first.
6819
bf6bfba8
JR
68202008-12-04 Jason Rumney <jasonr@gnu.org>
6821
6822 * w32font.c (w32font_draw): Initialize orig_clip before getting
6823 it, and delete it when finished.
6824
a3b1a468
DN
68252008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6826
6827 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6828 case when running as a daemon before detaching.
6829
8b8be8eb
JB
68302008-12-03 Juanma Barranquero <lekktu@gmail.com>
6831
805f2638 6832 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6833
b1bde622
KH
68342008-12-03 Kenichi Handa <handa@m17n.org>
6835
e500c47d
KH
6836 * font.c (font_at): Set `multibyte' at first.
6837
ca516334
KH
6838 * coding.c (decode_coding_charset): Check type of an element of
6839 vector VALIDS.
7bf1bb21 6840 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6841
4ccfa1c0 6842 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6843 (font_for_char): Likewise.
6844
1e5ecd37
CY
68452008-12-03 Chong Yidong <cyd@stupidchicken.com>
6846
d5b01609 6847 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6848 (font_update_lface): Handle fonts with corrupted size specs,
6849 i.e. non-int and non-float.
d5b01609 6850
11e3a6e4 6851 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6852 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6853 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6854
ab06788b
CY
6855 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6856
1e5ecd37 6857 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6858 underline_minimum_offset for underline position.
1e5ecd37 6859
63c125ab
DN
68602008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6861
6862 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6863
6864 * character.c (c_string_width): Specify the type for LEN.
6865
3a8406e1
KH
68662008-12-03 Kenichi Handa <handa@m17n.org>
6867
4ccfa1c0 6868 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6869 (decode_coding_utf_8): Likewise.
4ccfa1c0 6870 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6871 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6872
651df7d9
CY
68732008-12-02 Chong Yidong <cyd@stupidchicken.com>
6874
6875 * keyboard.c (make_lispy_position): Only use PT if the selected
6876 window is current.
6877
1f625c6c
AS
68782008-12-02 Andreas Schwab <schwab@suse.de>
6879
f7741ce9
AS
6880 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6881
1f625c6c
AS
6882 * doprnt.c (doprnt1): Fix size of charbuf.
6883
92bc2678
CY
68842008-12-02 Chong Yidong <cyd@stupidchicken.com>
6885
6886 * keyboard.c (timer_check): Revert last change.
6887
93b9e8cc
JB
68882008-12-02 Juanma Barranquero <lekktu@gmail.com>
6889
6890 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6891
fd7a37d5
JB
68922008-12-01 Juanma Barranquero <lekktu@gmail.com>
6893
6894 * makefile.w32-in: Update dependencies.
6895 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6896
c115043b
AS
68972008-12-01 Andreas Schwab <schwab@suse.de>
6898
6899 * font.c (register_font_driver): Use xmalloc.
6900 (font_put_frame_data): Likewise.
6901
f5668d2a
CY
69022008-12-01 Chong Yidong <cyd@stupidchicken.com>
6903
860d96be
CY
6904 * xfaces.c (realize_x_face): Make abort condition clearer.
6905
f5668d2a
CY
6906 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6907
379c17e7
CY
69082008-11-30 Chong Yidong <cyd@stupidchicken.com>
6909
6910 * keyboard.c (timer_check): After a timer runs, ensure that the
6911 selected window's buffer is current.
6912
35f36d65
JB
69132008-11-30 Juanma Barranquero <lekktu@gmail.com>
6914
f952c61c
JB
6915 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6916 It was accidentally restored by the Unicode merge.
6917
35f36d65
JB
6918 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6919
b23077df
JB
69202008-11-29 Juanma Barranquero <lekktu@gmail.com>
6921
6922 * w32proc.c: Include "coding.h".
6923 (Fw32_short_file_name): Encode filename passed to Windows API.
6924 (Fw32_long_file_name): Encode filename passed to Windows API and
6925 decode back the result. (Bug#1433)
6926
b8ebe9dd
KH
69272008-11-29 Kenichi Handa <handa@m17n.org>
6928
8cc53f96
KH
6929 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6930 not before accessing it.
6931
b8ebe9dd
KH
6932 * charset.c (Fdefine_charset_internal): After calculating
6933 min_char, max_char, and fastmap, copy the charset structure again.
6934 (encode_char): Fix the previous change.
6935
59bc82c0
SZ
69362008-11-28 Seiji Zenitani <zenitani@mac.com>
6937
6938 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6939
6940 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6941
6942 * nsterm.m (x_set_frame_alpha): New function.
6943
32247e3d
EZ
69442008-11-27 Eli Zaretskii <eliz@gnu.org>
6945
6946 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6947
b003e5ff
JB
69482008-11-27 Juanma Barranquero <lekktu@gmail.com>
6949
6950 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6951 pointer to check_face_name.
6952
708550f5
KH
69532008-11-27 Kenichi Handa <handa@m17n.org>
6954
6955 * category.h (SET_CATEGORY_SET): Call set_category_set.
6956 (set_category_set): Extern it.
6957
6958 * category.c (hash_get_category_set): New function.
6959 (Fmodify_category_entry): Adjusted for the change of
6960 char_table_ref_and_range. Call hash_get_category_set to get a
6961 category set to store in the table.
6962
6963 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6964 Funify_charset.
6965
2ae37cf0 6966 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6967 (DECODE_CHAR): Check if the decoder vector is ready.
6968 (ENCODE_CHAR): Check if the encoder char-table is ready.
6969 (maybe_unify_char): Extern it.
6970
6971 * charset.c (Vchar_unified_charset_table): Delete it.
6972 (inhibit_load_charset_map): New variable.
6973 (temp_charset_work): New variable.
6974 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6975 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6976 New macros.
6977 (load_charset_map): Meaning of control_flag changed. If
6978 inhibit_load_charset_map is nonzero, setup a table in
6979 temp_charset_work.
6980 (load_charset): New argument control_flag.
6981 (map_charset_for_dump): New function.
6982 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6983 map_charset_for_dump.
6984 (Fdefine_charset_internal): If the charset method is MAP, load
6985 mapping tables by calling load_charset.
6986 (Funify_charset): Don't load a mapping table but directly set
6987 Vchar_unify_table.
6988 (maybe_unify_char): New function.
6989 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6990 Handle the case of inhibit_load_charset_map being nonzero.
6991 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6992 Handle the case of inhibit_load_charset_map being nonzero.
6993 (Fclear_charset_maps): Just free temp_charset_work.
6994 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6995 variable.
6996
6997 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6998 change of char_table_ref_and_range.
6999 (char_table_ref_and_range): Change the meaning of argument FROM
7000 and TO. Now the caller must provide initial values for *FROM
7001 and *TO.
7002
7003 * fontset.c (fontset_add): Adjusted for the change of
7004 char_table_ref_and_range.
7005 (fontset_get_font_group): Likewise.
7006 (Ffontset_info): Likewise.
7007
7008 * keymap.c (describe_vector): Adjusted for the change of
7009 char_table_ref_and_range. For char-table, put boundary between
7010 non-ASCII and 8-bit characters.
7011
7012 * print.c (print_object): For bool-vector, delete unnecessary
7013 check of ASCII_BYTE_P.
7014
9196133b
JR
70152008-11-26 Jason Rumney <jasonr@gnu.org>
7016
7017 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7018 leading in font height. (Bug#879)
9196133b 7019
9f688acf
GM
70202008-11-26 Glenn Morris <rgm@gnu.org>
7021
7022 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7023 redefinition with ifdef. (Bug#1383)
7024
90d19aff
AR
70252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7026
7027 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7028
4ccfa1c0 70292008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7030
7031 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7032 New EmacsView methods.
7033 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7034 Fixes bug #1048,1357,1414.
7035
70362008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7037
7038 Fix bug #1362.
7039 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7040 is not an indexed color.
7041 * nsterm.m (free_indexed_color): Add argument checking.
7042 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7043
e7d5ecb3
CY
70442008-11-24 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7047 Document confirm-after-completion value for
7048 minibuffer-completion-confirm.
7049
c285743c
JR
70502008-11-24 Jason Rumney <jasonr@gnu.org>
7051
7052 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7053 warning.
7054
b0857706
JR
70552008-11-23 Jason Rumney <jasonr@gnu.org>
7056
7057 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7058 restored before returning.
7059
7060 * w32font.c (check_face_name): New function.
7061 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7062 fonts. (Bug#642)
b0857706 7063
ee50ff07
MR
70642008-11-22 Martin Rudalics <rudalics@gmx.at>
7065
7066 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7067 confirm-nonexistent-file-or-buffer in doc-string.
7068
b8ff72fa
SM
70692008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7070
7071 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7072 Fix copy/paste typo. Add checks.
7073
cee53ed4
KH
70742008-11-21 Kenichi Handa <handa@m17n.org>
7075
7076 * coding.c (detect_coding_iso_2022): Reject invalid composition
7077 sequence.
7078 (DECODE_COMPOSITION_START): If the current source is the last
7079 block, and the current composition doesn't end, regard this
7080 sequence as invalid.
7081 (decode_coding_iso_2022): Handle invalid composition sequence.
7082
f6ef1e65
MR
70832008-11-20 Martin Rudalics <rudalics@gmx.at>
7084
7085 * window.c (coordinates_in_window): Don't return
7086 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7087 line when the window is not the rightmost one. (Bug#1372)
7088
e08b1705
MR
70892008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7090
7091 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7092
ad98e89f
EZ
70932008-11-15 Eli Zaretskii <eliz@gnu.org>
7094
7095 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7096 and bright_bg if noninteractive is non-zero.
7097
fb098a4b
CY
70982008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7099
7100 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7101 x_draw_glyph_string_background.
7102
7103 * w32term.c (x_draw_glyph_string): Likewise.
7104
ce952b6e
CY
71052008-11-15 Chong Yidong <cyd@stupidchicken.com>
7106
7107 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7108 the next glyph string once past the overhang width.
7109
7110 * nsterm.m (ns_draw_glyph_string): Likewise.
7111
7112 * w32term.c (x_draw_glyph_string): Likewise.
7113
26ea7079
CY
71142008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7115
7116 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7117 double file close.
7118
1c33c906
MR
71192008-11-14 Martin Rudalics <rudalics@gmx.at>
7120
7121 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7122 dedicated status of window before attempting to display another
7123 buffer in it.
7124
8fc29035
JB
71252008-11-14 Juanma Barranquero <lekktu@gmail.com>
7126
7127 * msdos.c (Fmsdos_long_file_names):
7128 (syms_of_msdos) <dos-unsupported-char-glyph>:
7129 * dosfns.c (Fint86): Fix typos in docstrings.
7130
55fb4286
EZ
71312008-11-14 Eli Zaretskii <eliz@gnu.org>
7132
7133 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7134
3fda0315
KY
71352008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7136
7137 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7138
7e849c17
CY
71392008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7140
7141 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7142
7143 * frame.h: Negative alpha means "don't touch".
7144
7145 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7146
7147 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7148
b9fd67bd
DN
71492008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7150
7151 * hftctl.c:
7152 * chpdef.h:
7153 * acldef.h: Remove files used only for systems no longer supported.
7154
7155 * Makefile.in: Fix .o alphabetical ordering.
7156 (hftctl.o): Remove dependency, file removed.
7157 (keymap.o, print.o): Depend on charset.h.
7158
d5998e03
KH
71592008-11-10 Kenichi Handa <handa@m17n.org>
7160
2ae37cf0 7161 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7162
be70e183
CY
71632008-11-08 Chong Yidong <cyd@stupidchicken.com>
7164
7165 * dired.c (file_name_completion): If completion_ignore_case is
7166 enabled, ignore case when checking completion-regexp-list.
7167
7cf94eac
EZ
71682008-11-08 Eli Zaretskii <eliz@gnu.org>
7169
7170 * vm-limit.c (get_lim_data): Fix last change.
7171
ee107a89
KH
71722008-11-08 Kenichi Handa <handa@m17n.org>
7173
7174 * character.c (Fget_byte): New function.
7175 (syms_of_character): Defsubr Fget_byte.
7176
5fd15622
CY
71772008-11-07 Chong Yidong <cyd@stupidchicken.com>
7178
7179 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7180 cursor position is valid after scrolling.
7181
13d62fad
JB
71822008-11-06 Juanma Barranquero <lekktu@gmail.com>
7183
7184 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7185
a1dd2936
GM
71862008-11-06 Glenn Morris <rgm@gnu.org>
7187
7188 * xterm.c (handle_one_xevent): Don't let popup menus cause
7189 mouse-autoselect-window related window switching. (Bug#1261)
7190
860cd236
CY
71912008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7192
7193 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7194
653a3150
AS
71952008-11-04 Andreas Schwab <schwab@suse.de>
7196
7197 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7198
870f5cac
CY
71992008-11-03 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * xfns.c (Fx_wm_set_size_hint): New function.
7202
1e02f3cb
MR
72032008-11-03 Martin Rudalics <rudalics@gmx.at>
7204
7205 * textprop.c (Fprevious_single_char_property_change): Return 0
7206 when there's no change in a string. (Bug#1301)
7207
e630dfc6
MR
72082008-11-02 Martin Rudalics <rudalics@gmx.at>
7209
7210 * frame.c (do_switch_frame): New argument NORECORD passed to
7211 Fselect_window.
7212 (Fselect_frame): New argument NORECORD passed to
7213 do_switch_frame.
7214 (Fset_frame_selected_window): New argument NORECORD passed to
7215 Fselect_frame.
7216 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7217 in call of do_switch_frame.
7218 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7219 Handle NORECORD argument in call of Fselect_frame.
7220 * lisp.h (do_switch_frame, Fselect_frame)
7221 (Fset_frame_selected_window): Adjust declarations.
7222 * window.c (select_frame_norecord): New function.
7223 (run_window_configuration_change_hook): Use it and call
7224 Fselect_frame with NORECORD set.
7225 (Fselect_window): Pass NORECORD to Fselect_frame.
7226 (Fset_window_configuration): Handle NORECORD argument in call of
7227 do_switch_frame.
7228 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7229 Fset_frame_selected_window.
7230 * keyboard.c (command_loop_1): Handle NORECORD in call of
7231 Fselect_frame (currently ifdefd).
7232
9020b223
GM
72332008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7234
7235 * emacs.c (USAGE2): Untabify.
7236
793ffee8
SM
72372008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7238
7239 * composite.c (fill_gstring_header): Fix copy/paste typo.
7240
ab6d1131
MR
72412008-10-31 Martin Rudalics <rudalics@gmx.at>
7242
7243 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7244 (Fother_window): Rename argument and rewrite doc-string.
7245 (select_window_norecord): Fix return value. (Bug#1276)
7246
601a9cf1
JB
72472008-10-30 Juanma Barranquero <lekktu@gmail.com>
7248
7249 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7250 new frames overriding foreground for tooltips. Based on similar patch
7251 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7252
813b0652
CY
72532008-10-29 Chong Yidong <cyd@stupidchicken.com>
7254
7255 * emacs.c (Fdaemon_initialized): Initialize nfd.
7256
4414f58f
MR
72572008-10-29 Martin Rudalics <rudalics@gmx.at>
7258
7259 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7260 (Fwindow_text_height): Clarify doc-strings.
7261 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7262 doc-string of window-scroll-functions.
7263
ecdcaa09
RS
72642008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7265
7266 * category.c (syms_of_category): Fix typo in docstring.
7267
23fe745a
JB
72682008-10-28 Juanma Barranquero <lekktu@gmail.com>
7269
7270 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7271 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7272 Fix typos in docstrings.
7273
ff808935
DN
72742008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7275
7276 * emacs.c (daemon_pipe): Make non-static.
7277 (IS_DAEMON): Move definition ...
7278 * lisp.h (IS_DAEMON): ... here.
7279 (daemon_pipe): Declare.
7280 (is_daemon): Remove.
7281 * dispnew.c (init_display): Use IS_DAEMON.
7282
fc012771
SM
72832008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7284
7285 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7286 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7287
7288 * emacs.c (is_daemon): Remove.
7289 (main): Don't set is_daemon.
7290 (IS_DAEMON): New macro.
7291 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7292 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7293 parent exits.
7294 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7295
d8bdbe6f
CY
72962008-10-27 Chong Yidong <cyd@stupidchicken.com>
7297
d1a072bf
CY
7298 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7299 over-sized glyph, draw it with the default glyph width.
7300
e2e325aa
CY
7301 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7302 glyph, draw it with the default glyph width.
7303
7304 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7305 glyph, draw it with the default glyph width.
7306
d8bdbe6f
CY
7307 * xdisp.c (try_scrolling): When computing the distance from the
7308 scroll margin to PT, try moving some distance past the window
7309 bottom before giving up.
7310
7bfac547
MR
73112008-10-27 Martin Rudalics <rudalics@gmx.at>
7312
7313 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7314 (Fset_window_buffer): Explain in doc-string that a window can be
7315 "strongly" dedicated to its buffer.
7316
4ff029f6
DN
73172008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7318
7319 * emacs.c (daemon_name): New variable.
7320 (main): Deal with --daemon=SERVER_NAME.
7321 (Fdaemonp): Return a name if one was passed to --daemon.
7322
5790ef40
DN
73232008-10-26 Romain Francoise <romain@orebokech.com>
7324
f9bd0df9 7325 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7326 (main): Create a pipe before forking, make the parent exit only after
7327 the child has closed its end of the pipe. Move closing the
7328 descriptors ...
7329 (Fdaemon_initialized): ... here. New function.
7330
f5385255
SM
73312008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7332
4d632321
SM
7333 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7334 the previous unoptimized table.
7335
f5385255
SM
7336 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7337 the distinction between non-nil and non-t value of `dedicated'.
7338
6c56a0f3
CY
73392008-10-25 Chong Yidong <cyd@stupidchicken.com>
7340
7341 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7342 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7343
fec89261
MR
73442008-10-25 Martin Rudalics <rudalics@gmx.at>
7345
7346 * window.c (Fget_buffer_window, Fdelete_windows_on)
7347 (Freplace_buffer_in_windows): Make buffer argument optional and
7348 rename to buffer_or_name.
7349
34fcddd0
CY
73502008-10-24 Chong Yidong <cyd@stupidchicken.com>
7351
f5385255
SM
7352 * xdisp.c (handle_single_display_spec, handle_display_prop):
7353 Undo 2005-05-16 change.
34fcddd0
CY
7354 (handle_stop): Pop iterator if it's loaded with an empty string.
7355 (get_overlay_strings_1): Don't save iterator if it's loaded with
7356 an empty string (bug#1201).
7357
064766f2
KH
73582008-10-24 Kenichi Handa <handa@m17n.org>
7359
7360 * ftfont.c (ftfont_otf_features): Fix previous change.
7361 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7362 calling ftfont_otf_features.
7363
f9bd0df9 73642008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7365
7366 * font.c (font_match_p): Fix for the case that a vector of
7367 characters is in script-representative-chars.
7368
1dae9197
MA
73692008-10-24 Michael Albinus <michael.albinus@gmx.de>
7370
7371 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7372 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7373 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7374 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7375 macro. (Bug#1186)
1dae9197 7376
f9bd0df9 73772008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7378
7379 * s/sol2-10.h: New file.
7380
878a4584
JB
73812008-10-23 Juanma Barranquero <lekktu@gmail.com>
7382
7383 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7384 poor beast has survived 9+ years and the jump from xterm.c!).
7385
cd265ca6
MR
73862008-10-23 Martin Rudalics <rudalics@gmx.at>
7387
7388 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7389 Reword doc-string.
f5385255 7390 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7391
472a4dc9
JB
73922008-10-23 Juanma Barranquero <lekktu@gmail.com>
7393
7394 * character.c (syms_of_character) <script-representative-chars>:
7395 <unicode-category-table>: Doc fixes.
7396
159bd5a2
NF
73972008-10-23 Noah Friedman <friedman@splode.com>
7398
7399 * coding.c (make_conversion_work_buffer): Check that
7400 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7401 Fget_buffer_create.
7402
49f9c344
KH
74032008-10-23 Kenichi Handa <handa@m17n.org>
7404
7405 * font.c (font_add_log): Check the values of extra properties.
7406
12bb3111
MR
74072008-10-22 Martin Rudalics <rudalics@gmx.at>
7408
7409 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7410 Reword doc-string.
7411 (Fset_window_parameter): Use NILP.
7412 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7413 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7414
bbeb4e99
JB
74152008-10-22 Juanma Barranquero <lekktu@gmail.com>
7416
7417 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7418
74192008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7420
7421 * nsfns.m (ns_appkit_version): New function.
7422 (x-server-version): Use it.
7423 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7424 (x-server-vendor): Don't check_ns().
7425
7426 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7427
a9b555d3
JB
74282008-10-22 Juanma Barranquero <lekktu@gmail.com>
7429
7430 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7431 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7432
4626499f
KH
74332008-10-22 Kenichi Handa <handa@m17n.org>
7434
e3681952
KH
7435 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7436 scripts.
7437
4626499f
KH
7438 * category.c (word_boundary_p): Check scripts instead of charset.
7439 Handle nil value in word-separating-categories and
7440 word-combining-categories.
7441 (syms_of_category): Fix docstrings of word-separating-categories
7442 and word-combining-categories.
7443
1560f91a
EZ
74442008-10-21 Eli Zaretskii <eliz@gnu.org>
7445
7446 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7447 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7448
f4668441
MR
74492008-10-21 Martin Rudalics <rudalics@gmx.at>
7450
7451 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7452 Rename arg "buffer" to "buffer_or_name".
7453 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7454 it optional.
7455 (no_switch_window): Remove since the return value is not used.
a9b555d3 7456 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7457 Consider window as dedicated when Fwindow_dedicated_p returns a
7458 non-nil value.
7459 * lisp.h: Remove prototype for no_switch_window.
7460
fd75ddb2
JD
74612008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7462
7463 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7464 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7465
07295713
KH
74662008-10-21 Kenichi Handa <handa@m17n.org>
7467
7468 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7469 check Vlatin_extra_code_table.
7470
712adc82
EZ
74712008-10-20 Eli Zaretskii <eliz@gnu.org>
7472
7473 * fileio.c (Fset_file_modes): Doc fix.
7474
f549eb0b
MA
74752008-10-19 Michael Albinus <michael.albinus@gmx.de>
7476
7477 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7478 in arrays.
7479
aac0c6e3
MR
74802008-10-19 Martin Rudalics <rudalics@gmx.at>
7481
7482 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7483 Mention kill-buffer in doc-string.
7484 (Fset_window_buffer): Reinsert tem check removed in last commit.
7485 (Fenlarge_window, Fshrink_window): Have argument names and
7486 doc-string follow Elisp manual more closely.
7487
74882008-10-18 Eli Zaretskii <eliz@gnu.org>
7489
7490 * fileio.c (Fset_file_modes): Doc fix.
7491
74922008-10-18 Martin Rudalics <rudalics@gmx.at>
7493
7494 * window.c (Fwindow_width, Fset_window_start)
7495 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7496 (Fdelete_windows_on, Freplace_buffer_in_windows):
7497 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7498 (Fwindow_dedicated_p): Make window argument optional.
7499 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7500 (Fset_window_buffer): Respect any non-nil dedicated value for
7501 window. Rename "buffer" argument to "buffer_or_name".
7502
75032008-10-18 Ulrich Mueller <ulm@gentoo.org>
7504
7505 * m/sh3.h: New file, machine description for SuperH.
7506
75072008-10-17 Martin Rudalics <rudalics@gmx.at>
7508
7509 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7510
75112008-10-17 Kenichi Handa <handa@m17n.org>
7512
7513 * ftfont.c (ftfont_otf_features): Fix indexing
7514 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7515
75162008-10-16 Magnus Henoch <mange@freemail.hu>
7517
7518 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7519 (Fdbus_call_method_asynchronously): Ditto.
7520 This change makes C-h f display the argument list.
7521
75222008-10-16 Chong Yidong <cyd@stupidchicken.com>
7523
7524 * fileio.c (Fexpand_file_name): Doc fix.
7525
7526 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7527 of :foreground and :background equivalent to unspecified (20.x
7528 compatibility).
7529
75302008-10-15 Eli Zaretskii <eliz@gnu.org>
7531
7532 * buffer.c (syms_of_buffer): Doc fix.
7533
75342008-10-14 Kenichi Handa <handa@m17n.org>
7535
7536 * font.c (font_clear_prop): When clearing font width, clear the
7537 average width field too.
7538
75392008-10-12 Andreas Schwab <schwab@suse.de>
7540
7541 * ftfont.c (ftfont_shape_by_flt): Make static.
7542 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7543
7544 * font.c: Don't include <m17n-flt.h>.
7545
75462008-10-10 Eli Zaretskii <eliz@gnu.org>
7547
7548 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7549
75502008-10-09 Eli Zaretskii <eliz@gnu.org>
7551
7552 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7553 away code.
7554
75552008-10-09 Chong Yidong <cyd@stupidchicken.com>
7556
7557 * dispnew.c (update_text_area): Avoid looping due to large glyph
7558 overhangs (bug#1070).
7559
75602008-10-09 Kenichi Handa <handa@m17n.org>
7561
7562 * fontset.c (face_for_char): If face->fontset is negative, just
7563 return ascii_face.
7564
f5385255
SM
7565 * font.c (font_delete_unmatched): Fix previous change.
7566 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7567
75682008-10-09 Martin Rudalics <rudalics@gmx.at>
7569
7570 * frame.c (Fraise_frame): On text-only terminals select frame in
7571 order to make it visible. (Bug#1061)
7572
75732008-10-08 Chong Yidong <cyd@stupidchicken.com>
7574
7575 * fontset.c (fontset_find_font): Check frame validity.
7576
75772008-10-07 Chong Yidong <cyd@stupidchicken.com>
7578
a9b555d3 7579 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7580 (xg_display_close): Allow Emacs to close all displays (bug#985).
7581
75822008-10-06 Andreas Schwab <schwab@suse.de>
7583
f5385255 7584 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7585
75862008-10-06 Chong Yidong <cyd@stupidchicken.com>
7587
f5385255 7588 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7589
a9b555d3 7590 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7591
7592 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7593 during initialization.
7594
75952008-10-04 Eli Zaretskii <eliz@gnu.org>
7596
7597 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7598 whole thing on MSDOS frames as well as on a TTY.
7599
7600 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7601 well as for TTY.
7602 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7603 well as on a TTY.
7604
7605 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7606 as well as for TTY.
7607
7608 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7609
7610 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7611 MSDOS frames as well.
7612
76132008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7614
7615 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7616 correct arguments.
b71ac3dd 7617 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7618
76192008-10-03 Glenn Morris <rgm@gnu.org>
7620
7621 * emacs.c (USAGE1): Add --daemon.
7622
76232008-10-02 Eli Zaretskii <eliz@gnu.org>
7624
7625 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7626 100, so it's in percents as advertised.
7627
76282008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7629
7630 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7631 (ns_output.current_cursor, ns_output.desired_cursor)
7632 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7633 (FRAME_NEW_CURSOR_COLOR): Remove.
7634
7635 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7636 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7637 enumeration (HOLLOW_BOX_CURSOR, etc.).
7638
7639 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7640 (draw_window_cursor): Simplify code.
f5385255
SM
7641 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7642 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7643 updates manually.
a9b555d3
JB
7644 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7645 Use core Emacs cursor types.
aac0c6e3 7646
b8ff72fa 7647 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7648
76492008-10-02 Martin Rudalics <rudalics@gmx.at>
7650
7651 * process.c (Faccept_process_output): Fix doc-string.
7652
76532008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7654
7655 * gmalloc.c (__sbrk): Also define for uClibc.
7656
7657 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7658 for uClibc.
7659
76602008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7661
7662 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7663 styles.
7664 (nsfont_open): Reenable the cache.
7665
76662008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7667
7668 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7669 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7670
76712008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7672
7673 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7674 a suspended terminal.
7675
76762008-09-30 Michael Albinus <michael.albinus@gmx.de>
7677
7678 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7679
76802008-09-30 Eli Zaretskii <eliz@gnu.org>
7681
7682 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7683
76842008-09-30 Chong Yidong <cyd@stupidchicken.com>
7685
7686 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7687 in a continued line coincides with a line beginning.
7688
76892008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7690
7691 * nsfont.m (nsfont_trait_distance): Fix bug.
7692 (nsfont_list): Return a list rather than a vector (syncs with Handa
7693 changes of 2008-05-14).
7694 (nsfont_open): Improve logging.
7695
76962008-09-29 Andreas Schwab <schwab@suse.de>
7697
7698 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7699
77002008-09-28 Martin Rudalics <rudalics@gmx.at>
7701
7702 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7703 name as char-resolve-modifiers.
7704 Reported by: Markus Triska <markus.triska@gmx.at>
7705
77062008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7707
7708 * dispnew.c (init_display): Return earlier when running as a daemon.
7709
77102008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7711
7712 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7713
77142008-09-27 Eli Zaretskii <eliz@gnu.org>
7715
7716 * composite.c (Fcomposition_get_gstring)
7717 (Fcompose_region_internal, Fcompose_string_internal)
7718 (Ffind_composition_internal): Doc fix.
7719 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7720 (syms_of_composite) <auto-composition-function>: Doc fix.
7721 (syms_of_composite) <composition-function-table>: Doc fix.
7722
77232008-09-25 Chong Yidong <cyd@stupidchicken.com>
7724
7725 * search.c (wordify): New argument for lax word-ends.
7726 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7727
77282008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7729
7730 * lisp.h (is_daemon): Declare.
7731 * dispnew.c (init_display): Do not try to initialize the terminal
7732 when running as a daemon.
7733
77342008-09-22 Chong Yidong <cyd@stupidchicken.com>
7735
7736 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7737 x_display_pixel_height.
7738
77392008-09-22 Martin Rudalics <rudalics@gmx.at>
7740
7741 * undo.c (record_point): Don't call Fundo_boundary for first
7742 change. (Bug#731)
7743
77442008-09-22 Juanma Barranquero <lekktu@gmail.com>
7745
7746 * emacs.c (Fdaemonp): Doc fix.
7747
77482008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7749
7750 * emacs.c (main): Place #ifdef in the proper place.
7751
77522008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7753
7754 * emacs.c (standard_args): Add --daemon.
7755 (main): Disconnect from the terminal when --daemon is passed.
7756 (is_daemon): New variable.
7757 (Fdaemonp): New function.
7758 (syms_of_emacs): Defsubr it.
7759
77602008-09-20 Chong Yidong <cyd@stupidchicken.com>
7761
7762 * xdisp.c (get_next_display_element): Handle string display
7763 correctly when checking for the end of a box run.
7764
77652008-09-20 Glenn Morris <rgm@gnu.org>
7766
7767 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7768 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7769 (Frename_file): Avoid copying to trash if a rename involves
7770 a delete. (Bug#964).
7771
77722008-09-20 Eli Zaretskii <eliz@gnu.org>
7773
7774 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7775 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7776 frames as well as termcap frames.
7777 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7778 get_named_tty.
7779
77802008-09-19 Eli Zaretskii <eliz@gnu.org>
7781
7782 * process.c (procfs_system_process_attributes): Fix cmdline in
7783 case /proc/PID/cmdline is empty.
7784
7785 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7786 x_display_pixel_height.
7787
77882008-09-19 Juanma Barranquero <lekktu@gmail.com>
7789
7790 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7791
7792 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7793 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7794
77952008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * dispextern.h (struct it): Move line_wrap away from the middle of
7798 bitfields. Move voffset in struct iterator_stack_entry after the
7799 bitfields. Move tab_width near after another short.
7800
78012008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7802
7803 * frame.h (struct frame): Move alpha from the middle of bitfields.
7804
7805 * window.h (struct window): Move frozen_window_start_p after the
7806 rest of the bitfields to reduce padding.
7807
78082008-09-18 Chong Yidong <cyd@stupidchicken.com>
7809
7810 * xterm.h (x_display_info): Remove `height' and `width' members.
7811
7812 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7813
7814 * w32term.h (w32_display_info): Remove `height', `width',
7815 `height_in', and `width_in' members.
7816
b8ff72fa
SM
7817 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7818 New functions.
aac0c6e3
MR
7819 (x_calc_absolute_position): Use them.
7820 (x_term_init): Omit removed `height' and `width' members.
7821
b8ff72fa
SM
7822 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7823 New functions.
aac0c6e3
MR
7824 (w32_read_socket, x_calc_absolute_position): Use them.
7825 (w32_initialize_display_info, w32_term_init): Omit removed members
7826 of w32_display_info.
7827
b8ff72fa
SM
7828 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7829 New functions.
7830 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7831
b8ff72fa
SM
7832 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7833 New functions.
aac0c6e3
MR
7834 (x_calc_absolute_position): Use them.
7835 (x_term_init): Omit removed `height' and `width' members.
7836
7837 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7838 (compute_tip_xy):
7839 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7840 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7841 x_display_pixel_width.
7842
78432008-09-18 Kenichi Handa <handa@m17n.org>
7844
7845 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7846 (composition_compute_stop_pos): Fix handling of static composition.
7847 (Fcomposition_get_gstring): Check FROM and TO at first.
7848
78492008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7850
46e722a9 7851 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7852 mixup (YAILOM).
7853
78542008-09-17 Chong Yidong <cyd@stupidchicken.com>
7855
7856 * indent.c (Fvertical_motion): Use position reported by iterator
7857 instead of PT for determining screen motion (bug#943).
7858
78592008-09-17 Romain Francoise <romain@orebokech.com>
7860
7861 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7862
78632008-09-17 Kenichi Handa <handa@m17n.org>
7864
7865 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7866
7867 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7868 if necessary.
7869
78702008-09-16 Kenichi Handa <handa@m17n.org>
7871
7872 * coding.c (make_conversion_work_buffer): Avoid calling
7873 Fget_buffer_create if it is not necessary.
7874
78752008-09-15 Martin Rudalics <rudalics@gmx.at>
7876
7877 * window.c (Fselect_window): Don't update window_select_count and
7878 use_time when norecord is not nil.
7879
78802008-09-14 Kenichi Handa <handa@m17n.org>
7881
7882 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7883 specpdl_ptr.
7884
78852008-09-12 Kenichi Handa <handa@m17n.org>
7886
7887 * indent.c (scan_for_column): Don't handle automatic composition
7888 if the current buffer is not associated with a window.
7889
7890 * composite.c (composition_reseat_it): If the current buffer is
7891 not associated with a window, ignore the automatic composition.
7892 (find_automatic_composition): Likewise.
7893
78942008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7895
7896 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7897 (Fgpm_mouse_stop): Use it.
7898 * termhooks.h (close_gpm): Declare.
7899 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7900 connection if Gpm_GetEvent fails.
7901
7902 * window.c (set_window_buffer): Always preserve current-buffer.
7903
79042008-09-12 Glenn Morris <rgm@gnu.org>
7905
7906 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7907
79082008-09-11 Glenn Morris <rgm@gnu.org>
7909
7910 * charset.c (charset-map-path): Doc fix.
7911
79122008-09-10 Kenichi Handa <handa@m17n.org>
7913
7914 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7915
7916 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7917 compose a grapheme cluster with the preceding base glyph.
7918
7919 * composite.c (composition_compute_stop_pos): Fix previous change.
7920 Reset cmp_it->id to -1 at first.
7921
79222008-09-10 Glenn Morris <rgm@gnu.org>
7923
7924 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7925
79262008-09-09 Chong Yidong <cyd@stupidchicken.com>
7927
7928 * keyboard.c (read_key_sequence): Reapply translation maps when
7929 switching keyboards.
7930
79312008-09-09 Kenichi Handa <handa@m17n.org>
7932
7933 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7934 characters.
7935
7936 * composite.c (FORWARD_CHAR): Fix calculation
7937 of (POSITION).pos_byte.
7938 (composition_compute_stop_pos): Limit the search of composition to
7939 at most 500 characters ahead. If we reach the limit or find a
7940 newline, set cmp_it->ch to -2 and return 0.
7941 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7942
79432008-09-08 Kenichi Handa <handa@m17n.org>
7944
7945 * indent.c (Fvertical_motion): Be sure to set
7946 it_overshoot_expected if it.cmp_it.id is non-negative.
7947
79482008-09-07 Andreas Schwab <schwab@suse.de>
7949
7950 * callproc.c (Fcall_process): Don't hold references to string data
7951 across garbage collection. Move initialisation of new_argv down
7952 to avoid compiler bug.
7953
79542008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7955
7956 * process.c (Fsystem_process_attributes): Doc fix.
7957
79582008-09-07 Chong Yidong <cyd@stupidchicken.com>
7959
7960 * callproc.c (Fcall_process): Canonicalize current directory name.
7961
7962 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7963 iterator advances to the next line if the current line ends in a
7964 continued tab.
7965
79662008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7967
7968 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7969 member to point to cmp_from.
7970
7971 * xdisp.c: Doc fix for references to gidx data member.
7972
79732008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7974
7975 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7976
79772008-09-07 Kenichi Handa <handa@m17n.org>
7978
7979 * composite.c (FORWARD_CHAR): Check STOP after
7980 incrementing (POSITION).pos.
7981
79822008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7983
7984 * process.c (Fsystem_process_attributes): Doc fix.
7985
79862008-09-06 Chong Yidong <cyd@stupidchicken.com>
7987
7988 * keyboard.c (Ftop_level): Doc fix.
7989
79902008-09-06 Eli Zaretskii <eliz@gnu.org>
7991
7992 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7993 minibuffer, don't let lower part of menu invade the echo area.
7994
7995 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7996 "char *q" to access menu text and advance through it. Revert the
7997 change that displayed ">" instead of ASCII character 0x10.
7998
79992008-09-05 Eli Zaretskii <eliz@gnu.org>
8000
8001 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8002 toggle boxes and radio buttons on MS-DOS as well.
8003
80042008-09-05 Kenichi Handa <handa@m17n.org>
8005
8006 * composite.c (autocmp_chars): Check lookback count.
8007 (composition_compute_stop_pos): Set cmp_it->lookback.
8008 (composition_reseat_it): Check lookback count.
8009 (struct position_record): New struct.
8010 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8011 (find_automatic_composition): New function.
8012 (composition_adjust_point): Use find_automatic_composition.
8013
8014 * dispextern.h (struct composition_it): New member lookback.
8015
80162008-09-02 Chong Yidong <cyd@stupidchicken.com>
8017
8018 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8019 if moving by a single line.
8020
80212008-09-02 Andreas Schwab <schwab@suse.de>
8022
8023 * xterm.c (x_delete_display): Fix merge error.
8024
8025 * fileio.c (Fexpand_file_name): Remove unused variables.
8026
80272008-09-02 Eli Zaretskii <eliz@gnu.org>
8028
8029 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8030 storage on all platforms, not just on DOS_NT.
8031
80322008-09-02 Jason Rumney <jasonr@gnu.org>
8033
b8ff72fa
SM
8034 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8035 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8036
80372008-09-01 Chong Yidong <cyd@stupidchicken.com>
8038
8039 * xfaces.c (Finternal_set_alternative_font_family_alist)
8040 (Finternal_set_alternative_font_registry_alist): Properly copy
8041 entire alist structure.
8042
80432008-09-01 Kenichi Handa <handa@m17n.org>
8044
d66c0241 8045 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8046 representative chars of the script is a vector.
d66c0241
JB
8047 (ftfont_list): Handle the case where the representative chars of
8048 the script is a vector.
aac0c6e3
MR
8049
8050 * character.c (syms_of_character): Docstring of
8051 script-representative-chars fixed.
8052
80532008-08-31 Eli Zaretskii <eliz@gnu.org>
8054
8055 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8056 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8057 the menu. Allocate larger buffer for `text', to account for
8058 possible ^C characters.
8059
80602008-08-31 Martin Rudalics <rudalics@gmx.at>
8061
8062 * xdisp.c (prepare_menu_bars): Don't call
8063 Vwindow_size_change_functions with arg Qt.
8064
80652008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8066
8067 * font.h (font_range):
8068 * fileio.c (report_file_error):
46e722a9
SM
8069 * composite.c (composition_update_it): Yet another int/Lisp_Object
8070 mixup (YAILOM).
aac0c6e3
MR
8071
80722008-08-30 Glenn Morris <rgm@gnu.org>
8073
8074 * data.c (Fmake_variable_frame_local): Doc fix.
8075
8076 * frame.c (Fmodify_frame_parameters): Doc fix.
8077
80782008-08-30 Eli Zaretskii <eliz@gnu.org>
8079
8080 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8081 needed by GetTokenInformation.
8082 (w32_system_process_attributes): Check return values of all system
8083 APIs.
8084
8085 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8086 only when the state changes.
8087 (IT_update_begin, IT_update_end): Add termscript trace.
8088
8089 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8090 clipboard is unavailable. Set dst to NULL if it doesn't point to
8091 malloc'ed data.
8092 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8093 passing random values to xfree.
8094
8095 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8096 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8097
80982008-08-29 Jason Rumney <jasonr@gnu.org>
8099
8100 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8101
81022008-08-29 Eli Zaretskii <eliz@gnu.org>
8103
8104 * composite.c (fill_gstring_body): Avoid compiler warnings.
8105
8106 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8107 LGLYPH_SET_CODE to avoid compiler warnings.
8108
2ae37cf0 8109 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8110
8111 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8112
8113 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8114 LGLYPH_SET_CODE.
8115
81162008-08-29 Kenichi Handa <handa@m17n.org>
8117
8118 * fileio.c (report_file_error): Don't downcase the first character
8119 of errstring if it is still unibyte.
8120
81212008-08-29 Kenichi Handa <handa@m17n.org>
8122
8123 These changes are to re-implement the automatic composition so
8124 that it doesn't use text properties.
8125
8126 * Makefile.in (ftfont.o): Depend on composite.h.
8127 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8128
8129 * character.h (Vunicode_category_table): Extern it.
8130
8131 * character.c (Vunicode_category_table): New variable.
8132 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8133
8134 * chartab.c (optimize_sub_char_table): Perform more greedy
8135 optimization.
8136
b8ff72fa
SM
8137 * composite.h (enum composition_method):
8138 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8139 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8140 (Vcomposition_function_table): Extern it.
8141 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8142 (composition_gstring_put_cache, composition_gstring_from_id)
8143 (composition_gstring_p, composition_gstring_width)
8144 (composition_compute_stop_pos, composition_reseat_it)
8145 (composition_update_it, composition_adjust_point): Extern them.
8146 (Fcomposition_get_gstring): EXFUN it.
8147
d66c0241 8148 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8149 (Vcomposition_function_table)
8150 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8151 (gstring_hash_table, gstring_work, gstring_work_headers):
8152 New variables.
aac0c6e3
MR
8153 (gstring_lookup_cache, composition_gstring_put_cache)
8154 (composition_gstring_from_id, composition_gstring_p)
8155 (composition_gstring_width, fill_gstring_header)
8156 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8157 (composition_reseat_it, composition_update_it)
b8ff72fa 8158 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8159 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8160 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8161 Defsubr compostion_get_gstring.
8162
8163 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8164 cmp_id.
8165 (struct glyph_string): Delete the member gidx. New members
8166 cmp_id, cmp_from, and cmp_to.
8167 (enum it_method): Delete GET_FROM_COMPOSITION.
8168 (struct composition_it): New struct.
8169 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8170 Delete c, len, cmp_id, cmp_len in u.comp.
8171
8172 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8173 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8174 (enum lglyph_indices): Likewise.
b8ff72fa 8175 (font_range): Adjust extern.
aac0c6e3
MR
8176 (font_fill_lglyph_metrics): Extern it.
8177
8178 * font.c (QCf): New variable.
8179 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8180 (font_prepare_composition): Delete this function.
8181 (font_range): Type and arguments changed.
8182 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8183 (font_fill_lglyph_metrics): New function.
b8ff72fa 8184 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8185 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8186 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8187 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8188
8189 * fontset.h (font_for_char): Extern it.
8190
8191 * fontset.c (font_for_char): New function.
8192
8193 * ftfont.c: Include composite.h.
8194 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8195 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8196
8197 * indent.c: Include composite.h and dispextern.h.
8198 (check_composition): Delete this function.
8199 (scan_for_column): Handle composition by
8200 composition_compute_stop_pos, composition_reseat_it, and
8201 composition_update_it.
8202 (compute_motion): Likewise.
8203 (Fvertical_motion): Fix checking of composition.
8204
8205 * keyboard.c (adjust_point_for_property): Check composition by
8206 composition_adjust_point.
8207
b8ff72fa 8208 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8209 struct glyph_string.
8210
b8ff72fa
SM
8211 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8212 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8213 struct glyph.
8214 (produce_composite_glyph): Likewise.
8215
b8ff72fa
SM
8216 * w32term.c (x_draw_composite_glyph_string_foreground):
8217 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8218 (x_draw_glyph_string): Likewise.
8219
8220 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8221 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8222
8223 * xdisp.c: Include font.h.
8224 (it_props): Delete the entry for Qauto_composed.
8225 (init_iterator): Initialize it->cmp_it.id to -1.
8226 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8227 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8228 (handle_auto_composed_prop): Delete it.
8229 (handle_composition_prop): Handle only static composition.
8230 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8231 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8232 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8233 (pop_it): Likewise.
8234 (get_next_element): Delete next_element_from_composition.
8235 (CHAR_COMPOSED_P): New macro.
8236 (get_next_display_element): For automatic composition, get a face
8237 from the font in the glyph-string.
8238 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8239 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8240 (next_element_from_string): Check if the character at the current
8241 position is composed by CHAR_COMPOSED_P.
8242 (next_element_from_buffer): Likewise.
d66c0241
JB
8243 (next_element_from_composition): Adjust for the change of struct it.
8244 Update it->cmp_it.
b8ff72fa
SM
8245 (dump_glyph): Adjust for the change of struct glyph.
8246 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8247 it and struct glyph. Don't handle automatic composition here.
8248 (fill_gstring_glyph_string): New function.
8249 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8250 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8251 (BUILD_GSTRING_GLYPH_STRING): New macro.
8252 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8253 automatic composition.
b8ff72fa 8254 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8255 struct glyph.
b8ff72fa 8256 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8257
b8ff72fa 8258 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8259 the change of struct glyph_string.
8260 (x_draw_glyph_string): Likewise.
8261
82622008-08-29 Glenn Morris <rgm@gnu.org>
8263
8264 * buffer.c (word-wrap): Doc fix.
8265 * xdisp.c (truncate-partial-width-windows): Doc fix.
8266 Increase default to 50.
8267
82682008-08-29 Chong Yidong <cyd@stupidchicken.com>
8269
8270 * xdisp.c (update_tool_bar_unwind): New function.
8271 (update_tool_bar): Temporarily set selected frame before building
8272 tool-bar items.
8273
82742008-08-28 Michael Albinus <michael.albinus@gmx.de>
8275
8276 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8277 snprintf, respectively.
8278 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8279
82802008-08-28 Chong Yidong <cyd@stupidchicken.com>
8281
8282 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8283 LDFLAGS to GNUstep CC invocation.
8284
82852008-08-27 Chong Yidong <cyd@stupidchicken.com>
8286
8287 * indent.c (Fvertical_motion): Revert last change. Handle the
8288 general case where we are moving forward, and PT spans multiple
8289 screen lines.
8290
8291 * eval.c (find_handler_clause): Temporarily increase
8292 max-lisp-eval-depth while printing the backtrace buffer, to
8293 guarantee that help-mode code can run.
8294
82952008-08-27 Eli Zaretskii <eliz@gnu.org>
8296
8297 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8298 colors under -rv.
8299 (IT_set_frame_parameters): Don't swap foreground and background
8300 colors if `(reverse . t)' is present in the frame properties.
8301 (internal_terminal_init): Call init_frame_faces only for the
8302 initial frame.
8303
83042008-08-27 Andreas Schwab <schwab@suse.de>
8305
8306 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8307
83082008-08-27 Andreas Schwab <schwab@suse.de>
8309
8310 * search.c (search_buffer): Set char_base to zero only at the end.
8311
83122008-08-27 Kenichi Handa <handa@m17n.org>
8313
b8ff72fa 8314 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8315
83162008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8317
8318 * xterm.c (x_term_init): Temporarily hide the partially
8319 initialized terminal while calling vendor-specific-keysyms.
8320
83212008-08-26 Eli Zaretskii <eliz@gnu.org>
8322
8323 * msdos.c (internal_terminal_init): Most initializations done only
8324 once, especially initial_screen_colors[] and termscript open.
8325
83262008-08-26 Chong Yidong <cyd@stupidchicken.com>
8327
8328 * eval.c (Fcondition_case): Doc fix.
8329
8330 * widgetprv.h (EmacsFramePart): Change font member to the new font
8331 struct.
8332
8333 * widget.c: Include character.h and font.h for XSETFONT.
8334 (setup_frame_gcs): Compute X font id from font struct, just once.
8335
83362008-08-26 Eli Zaretskii <eliz@gnu.org>
8337
8338 * term.c (get_named_tty): Fix last change.
8339
83402008-08-26 Chong Yidong <cyd@stupidchicken.com>
8341
8342 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8343 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8344
83452008-08-25 Eli Zaretskii <eliz@gnu.org>
8346
8347 * frame.c (do_switch_frame): Mark previously displayed frame as
8348 obscured for FRAME_MSDOS_P frames as well.
8349
83502008-08-24 Eli Zaretskii <eliz@gnu.org>
8351
8352 * frame.c (make_terminal_frame): Initialize f->terminal,
8353 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8354 Set the top frame to newly created frame.
8355 (Fmake_terminal_frame): Reuse the_only_display_info.
8356
8357 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8358 estimating available memory.
8359
b97439ce 83602008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8361
8362 * nsterm.m (ns_draw_window_cursor): Don't call
8363 NSDisableScreenUpdates and NSEnableScreenUpdates on
8364 non-NS_IMPL_COCOA systems.
8365
83662008-08-23 Andreas Schwab <schwab@suse.de>
8367
8368 * process.c (procfs_system_process_attributes): Fix use of
8369 uninitialized variables.
8370
83712008-08-23 Eli Zaretskii <eliz@gnu.org>
8372
8373 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8374
8375 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8376 calling tty-set-up-initial-frame-faces.
8377
b8ff72fa
SM
8378 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8379 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8380
8381 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8382 addition to output_termcap.
8383
8384 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8385
8386 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8387 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8388 highlight.
8389
8390 * process.c [!subprocesses]: Define QCname.
8391 (syms_of_process): Intern and staticpro it.
8392
8393 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8394 Adjust for changes in encoding/decoding routines.
8395 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8396 encode_coding and decode_coding.
8397
b8ff72fa 8398 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8399
8400 * dosfns.c: Include frame.h before termhooks.h.
8401 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8402 variable termscript.
8403
8404 * s/msdos.h (USER_FULL_NAME): Define.
8405 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8406
8407 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8408 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8409 pw->pw_gecos.
8410
8411 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8412 SELECTED_FRAME as additional (1st) argument.
8413 (tty_read_avail_input): Handle output_msdos_raw in
8414 addition to output_termcap.
8415
8416 * msdos.c: Include frame.h before termhooks.h.
8417 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8418 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8419 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8420 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8421 (IT_set_terminal_modes, IT_reset_terminal_modes)
8422 (IT_set_frame_parameters): Use tty->termscript instead of a global
8423 variable termscript.
8424 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8425 global variable terminal_coding. Don't refer to
8426 Vnonascii_translation_table.
8427 (internal_terminal_init): Set Vwindow_system in current_kboard.
8428 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8429 Announce date and time of session start, if termscript is open.
8430 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8431 term.c:init_tty). Open termscript only of not already open.
8432 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8433 here instead of dos_ttraw. Don't initialize display if this is an
8434 initial tty. Don't set FRAME_FONT.
8435 (Vwindow_system_version): Bump to 23.
8436 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8437 is available, set up mouse_position_hook.
8438 (dos_ttraw, IT_set_terminal_modes): If called with initial
8439 terminal, do nothing.
8440 (IT_set_frame_parameters): Handle the Qtty_type frame
8441 parameter by calling internal_terminal_init.
8442 (dos_set_window_size, show_mouse_face)
8443 (clear_mouse_face, IT_note_mode_line_highlight)
8444 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8445 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8446 (initialize_msdos_display): New function.
8447 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8448 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8449 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8450 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8451 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8452 (request_sigio, unrequest_sigio): Don't define, now defined on
8453 sysdep.c.
8454 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8455
8456 * term.c [MSDOS]: Include msdos.h.
8457 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8458 conditional to DOS_NT. Allow only one call to this function in a
8459 session. Don't allocate a new struct tty_display_info; instead,
8460 reuse the_only_display_info. Call get_tty_size to get screen
8461 dimensions. Call init_baud_rate to set bad_rate.
8462 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8463 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8464 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8465 (get_tty_terminal, get_named_tty, Ftty_type)
8466 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8467 output_termcap.
b8ff72fa
SM
8468 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8469 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8470 only when subprocesses are supported.
aac0c6e3
MR
8471
8472 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8473 f->output_data.x.
8474 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8475 terminal devices.
8476
5582fbc7 8477 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8478 x_output.
8479 (FRAME_FONT): Use output_data.tty.
8480 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8481 (struct x_display_info): Rename from display_info. Update all users in
8482 msdos.c.
aac0c6e3 8483 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8484 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8485 (dos_ttraw): Update prototype.
8486
8487 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8488 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8489
84902008-08-23 Jason Rumney <jasonr@gnu.org>
8491
8492 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8493 (fn_TIFFSetDirectory): New library function used.
8494 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8495 (tiff_load): Use :index to select among multiple images. Set count
8496 property when multiple images exist.
8497 (gif_format): Use :index, not :image.
8498
84992008-08-23 Chong Yidong <cyd@stupidchicken.com>
8500
8501 * xdisp.c (try_scrolling): Check INT_MAX instead of
8502 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8503 to obtain INT_MAX.
8504
85052008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8506
8507 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8508
85092008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8510
8511 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8512 GNUstep library location.
8513
85142008-08-21 Chong Yidong <cyd@stupidchicken.com>
8515
8516 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8517 before using it.
8518
8519 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8520
85212008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8522
8523 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8524 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8525 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8526 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8527 (EmacsApp-cursor_blink_handler): Remove declaration.
8528 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8529 match 01 Feb 2008 changes in xterm.c.
8530 (ns_read_socket): Add cast to avoid warning.
8531 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8532 GNUstep.
8533
85342008-08-20 Chong Yidong <cyd@stupidchicken.com>
8535
8536 * xselect.c (x_get_foreign_selection): Return nil if desired
8537 selection could not be obtained, instead of signalling an error.
8538
85392008-08-20 David Reitter <david.reitter@gmail.com>
8540
8541 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8542 * nsterm.m: Remove ns-specific code for cursor blinking.
8543 (ns_draw_window_cursor): Clear cursor properly rather than
8544 redrawing the area. Respect width of bar cursors.
8545 These changes enable the use of generic blink-cursor-mode and
8546 generic cursor types in NS and support smooth cursor movements (do
8547 not blink off after command).
8548 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8549 Nextstep, too.
8550
85512008-08-19 Kenichi Handa <handa@m17n.org>
8552
8553 * font.c (Vfont_log_deferred): New variable.
8554 (font_add_log): Check Vfont_log_deferred.
8555 (font_deferred_log): New function.
8556
8557 * font.h (font_deferred_log): Extern it.
8558
8559 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8560 for sorting.
8561 (face_for_char): Use deferred log.
8562
85632008-08-18 Kenichi Handa <handa@m17n.org>
8564
8565 * fontset.c (face_for_char): Add font log.
8566
8567 * font.c (font_add_log): Add the font properties :script, :lang,
8568 and :otf in the log.
8569
85702008-08-17 Chong Yidong <cyd@stupidchicken.com>
8571
8572 * xdisp.c: Remove dead code.
8573 (handle_invisible_prop, next_overlay_string): Defer call to
8574 setup_for_ellipsis.
8575 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8576
85772008-08-15 Chong Yidong <cyd@stupidchicken.com>
8578
8579 * xfaces.c (lookup_derived_face): Properly handle possible zero
8580 return value of get_lface_attributes.
8581 (merge_faces): Don't tell lookup_derived_face to signal an error
8582 if face is not found.
8583
8584 * dired.c (Fdirectory_files): Doc fix.
8585
8586 * process.c (make_process): Initialize kill_without_query struct
8587 member.
8588
85892008-08-15 Eli Zaretskii <eliz@gnu.org>
8590
8591 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8592 Alternative calculation of totphys for Visual Studio 6.
8593
8594 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8595
8596 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8597 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8598 All users changed.
8599 (stat): Only root directory passed to GetDriveType. Allow RAM
8600 disk as well as local fixed disk when w32-get-true-file-attributes
8601 is set to `local'.
8602 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8603 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8604 (w32_cached_id, w32_add_to_cache): New functions.
8605 (get_name_and_id): Look account names in the cache before calling
8606 lookup_account_sid.
8607 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8608 New initialization flags.
8609 (globals_of_w32): Initialize them to zero.
8610 (w32_system_process_attributes): Use w32_cached_id and
8611 w32_add_to_cache.
8612
86132008-08-14 Lawrence Mitchell <wence@gmx.li>
8614
8615 * lread.c (Fread_char, Fread_char_exclusive): If no character
8616 event is read before timeout is reached, return nil, rather than
8617 converting to a number.
8618
86192008-08-14 Chong Yidong <cyd@stupidchicken.com>
8620
8621 * fns.c (use_dialog_box): Doc fix.
8622
8623 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8624 on OS X.
8625
86262008-08-13 Chong Yidong <cyd@stupidchicken.com>
8627
8628 * frame.c (Qns_parse_geometry): New var.
8629 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8630
86312008-08-11 Chong Yidong <cyd@stupidchicken.com>
8632
8633 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8634 space character in calculating tabs.
8635
86362008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8637
8638 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8639
86402008-08-10 Glenn Morris <rgm@gnu.org>
8641
8642 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8643 silence gcc "limited range of data type" warnings in some
8644 make_fixnum_or_float calls.
8645
86462008-08-09 Eli Zaretskii <eliz@gnu.org>
8647
8648 * w32.c (w32_system_process_attributes): If the process does not
8649 exist, return nil.
8650
8651 * w32.c: Include thelp32.h, psapi.h and coding.h.
8652 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8653 declarations.
8654 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8655 (Process32Next_Proc): New typedefs.
8656 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8657 (g_b_init_process32_next, g_b_init_open_thread_token)
8658 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8659 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8660 (g_b_init_get_process_working_set_size)
8661 (g_b_init_global_memory_status_ex): New static variables.
8662 (globals_of_w32): Initialize them.
8663 (create_toolhelp32_snapshot, process32_first, process32_next)
8664 (open_thread_token, impersonate_self, revert_to_self)
8665 (get_process_memory_info, get_process_working_set_size)
8666 (global_memory_status, global_memory_status_ex): New wrapper
8667 functions.
8668 (w32_list_system_processes, w32_system_process_attributes)
8669 (enable_privilege, restore_privilege, ltime, process_times):
8670 New functions.
8671 (convert_time_raw): New function.
8672 (convert_time): Remove conversion of FILETIME into time in 100
8673 nsec units, call convert_time_raw instead.
8674
8675 * process.h (w32_list_system_processes, w32_system_process_attributes):
8676 Add prototypes.
8677 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8678 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8679 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8680 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8681
8682 * process.c (Fsystem_process_attributes): Doc fix.
8683
86842008-08-08 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8687 a continued multi-char glyph; if so, advance to the actual glyph.
8688
86892008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8690
8691 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8692
8693 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8694 (.m.o): Use it.
8695 * config.in: Regenerate.
8696
86972008-08-07 Chong Yidong <cyd@stupidchicken.com>
8698
8699 * xdisp.c (redisplay_window): Revert last change.
8700 (try_window): Check bottom scroll margin too.
8701
87022008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8703
8704 * config.in: Regenerate.
8705
8706 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8707 -list-load-path-shadows'.
8708 (nsgui.h): Reduce number of things depending on it.
8709
87102008-08-06 Chong Yidong <cyd@stupidchicken.com>
8711
8712 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8713 instead of window-end which does the wrong thing at eob.
8714 (try_cursor_movement): Minor optimization.
8715 (redisplay_window): If scroll margin is defined, don't assume
8716 window doesn't need scrolling.
8717
87182008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8719
8720 * config.in: Regenerate.
8721
8722 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8723 (mostlyclean): Don't delete *.d under NS.
8724
8725 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8726
87272008-08-06 Kenichi Handa <handa@m17n.org>
8728
8729 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8730
87312008-08-06 Andreas Schwab <schwab@suse.de>
8732
8733 * config.in: Regenerate.
8734
87352008-08-05 Chong Yidong <cyd@stupidchicken.com>
8736
8737 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8738 forcing a window start.
8739
8740 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8741 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8742
87432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8744
8745 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8746 argument.
8747
87482008-08-05 Juanma Barranquero <lekktu@gmail.com>
8749
8750 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8751 <scroll-down-aggressively, before-change-functions>:
8752 <after-change-functions>: Reflow docstrings.
8753
87542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8755 Ken Raeburn <raeburn@gnu.org>
8756
8757 Dock menu customization, based on a patch by Ken Raeburn, plus some
8758 other fixes.
8759 * nsmenu.m (dockMenu): New variable.
8760 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8761
8762 * nsterm.h (dockMenu): Declare.
8763
8764 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8765 (ns_term_init): Initialize dockMenu.
8766 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8767 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8768 left.
8769
8770 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8771
87722008-08-04 Chong Yidong <cyd@stupidchicken.com>
8773
8774 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8775
8776 * config.in: Regenerate.
8777
87782008-08-04 Seiji Zenitani <zenitani@mac.com>
8779
8780 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8781
87822008-08-04 Chong Yidong <cyd@stupidchicken.com>
8783
8784 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8785
87862008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8787
8788 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8789
8790 * keyboard.h: Comment an #endif.
8791
8792 * lisp.h (have_menus_p): Adjust comment.
8793
8794 * menu.c (find_and_return_menu_selection): Fix comparison with
8795 client_data.
8796
8797 * nsmenu.m (popup_activated_flag): New variable.
8798 (popup_activated): New function.
8799 (menu-or-popup-active-p): New exported lisp definition.
8800 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8801 when popup done.
8802 (ns_popup_dialog): Set popup_activated_flag.
8803
8804 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8805 version for GNUstep (handled by conditional typedef in nsterm.m).
8806 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8807 in rgb.txt).
8808
8809 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8810
8811 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8812
8813 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8814
8815 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8816 shortcircuit if popup_activated like GTK and X toolkit.
8817
8818 * m/inter386.h: Change DARWIN to DARWIN_OS.
8819
8820 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8821 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8822 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8823 comment on NO_SOCK_SIGIO.
8824
88252008-08-03 Chong Yidong <cyd@stupidchicken.com>
8826
8827 * nsterm.m (windowDidResize): Remove stopModal call.
8828
88292008-08-03 Andreas Schwab <schwab@suse.de>
8830
8831 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8832 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8833
88342008-08-02 Chong Yidong <cyd@stupidchicken.com>
8835
8836 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8837 Don't use uninitialized pointer variable when using getrlimit.
8838
88392008-08-02 Jason Rumney <jasonr@gnu.org>
8840
8841 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8842
88432008-08-02 Eli Zaretskii <eliz@gnu.org>
8844
8845 * alloc.c (NSTATICS): Bump to 0x640.
8846
8847 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8848
8849 * lisp.h: Add prototype for directory_files_internal.
8850
8851 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8852 New functions.
8853 (syms_of_process): Defsubr them. Add initializations for various
8854 Q* symbols used in procfs_system_process_attributes.
8855 (procfs_list_system_processes, procfs_system_process_attributes)
8856 [HAVE_PROCFS]: New functions.
8857 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8858 (procfs_get_total_memory): New functions.
8859
88602008-08-01 Juanma Barranquero <lekktu@gmail.com>
8861
8862 * xfaces.c (Fx_load_color_file): Fix previous change;
8863 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8864
88652008-08-01 Michael Albinus <michael.albinus@gmx.de>
8866
8867 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8868
88692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8870
8871 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8872
88732008-08-01 Chong Yidong <cyd@stupidchicken.com>
8874
8875 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8876
8877 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8878 define NSApplicationDelegateReplySuccess.
8879 (EmacsView -converstationIdentifier): Use long instead of
8880 NSInteger for GNUstep, since it doesn't have NSInteger.
8881
8882 * xmenu.c: Revert last change.
8883
8884 * keyboard.h: Fix last change.
8885
88862008-08-01 Juanma Barranquero <lekktu@gmail.com>
8887
8888 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8889 on Windows.
8890
88912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8892
8893 Warning clearing and clean-up in NS port.
8894 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8895 Add prototypes.
8896 * nsgui.h (FACE_DEFAULT): Remove, unused.
8897 (XGCValues): Change colors to unsigned long.
8898 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8899 nsterm.m.
8900 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8901 (ns_list_fonts): Remove, unused.
8902 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8903 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8904 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8905 (nsfont_draw): Compare face colors to 0, not nil.
8906 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8907 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8908 (-addSubmenuWithTitle:): Use NSMenuItem class.
8909 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8910 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8911 (ns_clip_to_row): Make gc arg a BOOL.
8912 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8913 ns_clip_to_row() call.
8914 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8915 used). Cast FRAME_FONT assignments.
8916 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8917 (ns_string_to_lispmod): Change arg to const char.
8918 (ns_term_init): Use NSMenuItem class.
8919 (EmacsApp -openFile:): Move to different section of file.
8920 (EmacsApp -application:openFiles:): Don't return a value, call
8921 -replyToOpenOrPrint:.
8922 (EmacsView -keyDown:): Fix up cast.
8923 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8924 (EmacsView -menuDown:): Cast tag in call to
8925 find_and_call_menu_selection().
8926 (ns_list_fonts): Remove, unused.
8927 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8928 (ns_fontname_to_xlfd): Make static.
8929 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8930 Remove prototypes (now in keyboard.h).
8931 (next_menubar_widget_id): Remove, unused.
8932 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8933 Remove prototypes (now in keyboard.h).
8934 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8935
89362008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8937
8938 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8939 (floatfns.o): Depend on syssignal.h.
8940 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8941
8942 * systty.h: Fix previous change that removed BSD_TERMIOS.
8943 Add comments to #ifdefs.
8944
89452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8946
8947 * w32fns.c (w32-load-color-file): Remove.
8948 (x-open-connection): Use renamed Fx_load_color_file.
8949 * xfaces.c (x-load-color-file): Add.
8950 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8951 Emacs.clr.
8952 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8953
89542008-07-31 Michael Albinus <michael.albinus@gmx.de>
8955
8956 * dbusbind.c (Fdbus_call_method_asynchronously)
8957 (Fdbus_method_error_internal): New defuns.
8958 (xd_read_message): Handle also reply messages.
8959 (Vdbus_registered_functions_table): Extend docstring.
8960
89612008-07-31 Juanma Barranquero <lekktu@gmail.com>
8962
8963 * keyboard.c (gobble_input): Fix previous change.
8964
89652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8966
8967 * bitmaps/README:
8968 * xfns.c:
8969 * termcap.c:
8970 * term.c:
8971 * syswait.h:
8972 * systty.h:
8973 * systime.h:
8974 * syssignal.h:
8975 * sysdep.c:
8976 * process.h:
8977 * process.c:
8978 * print.c:
8979 * ndir.h:
8980 * lread.c:
8981 * keyboard.c:
8982 * getpagesize.h:
8983 * floatfns.c:
8984 * fileio.c:
8985 * emacs.c:
8986 * doc.c:
8987 * dispnew.c:
8988 * dired.c:
8989 * data.c:
8990 * callproc.c:
8991 * buffer.c:
8992 * README:
8993 * Makefile.in:
8994 * s/template.h:
8995 * s/msdos.h:
8996 * m/vax.h: Remove VMS support.
8997 * s/vms.h:
8998 * vlimit.h:
8999 * uaf.h:
9000 * temacs.opt:
9001 * param.h:
9002 * ioctl.h: Remove file.
9003
90042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9005
9006 * s/ms-w32.h (MULTI_KBOARD): Remove.
9007 * xterm.c:
9008 * xselect.c:
9009 * xfns.c:
9010 * window.c:
9011 * w32term.c:
9012 * w32fns.c:
9013 * terminal.c:
9014 * termhooks.h:
9015 * term.c:
9016 * sysdep.c:
9017 * keyboard.h:
9018 * keyboard.c:
9019 * frame.h:
9020 * frame.c:
9021 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9022 * config.in: Regenerate.
9023
90242008-07-30 Jason Rumney <jasonr@gnu.org>
9025
9026 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9027
9028 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9029 (w32font_open_internal): Get unicode version of textmetrics.
9030 Don't enable or disable glyph indices here.
9031 (w32font_open): Disable use of glyph indices.
9032
9033 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9034
90352008-07-30 Chong Yidong <cyd@stupidchicken.com>
9036
9037 * minibuf.c (Vread_buffer_function): Doc fix.
9038
90392008-07-30 John Paul Wallington <jpw@pobox.com>
9040
9041 * minibuf.c (read_buffer_completion_ignore_case): New var.
9042 (Fread_buffer): Use it.
9043
90442008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9045
9046 * systty.h (sensemode): Remove empty #if. Remove reference to
9047 BSD_TERMIOS, unused.
9048
9049 * sysdep.c: Remove reference to DGUX.
9050 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9051
9052 * config.in: Regenerate.
9053
90542008-07-30 Jason Rumney <jasonr@gnu.org>
9055
9056 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9057
90582008-07-29 Jason Rumney <jasonr@gnu.org>
9059
9060 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9061 is populated.
9062 (uniscribe_encode_char): Always use uniscribe.
9063 Avoid using context if cache is populated.
9064
90652008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9066
9067 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9068 open menu.
9069
9070 * gtkutil.c (menu_nav_ended): Remove.
9071 (create_menus): Remove signal connect for menu_nav_ended.
9072
90732008-07-28 Chong Yidong <cyd@stupidchicken.com>
9074
9075 * xdisp.c (redisplay_window): Check return value of
9076 compute_window_start_on_continuation_line before forcing a window
9077 start.
9078
90792008-07-28 Jason Rumney <jasonr@gnu.org>
9080
9081 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9082
9083 * w32term.c (w32_enable_unicode_output, cleartype_active):
9084 Remove obsolete display options.
9085 (x_draw_glyph_string_background): Don't use old cleartype_active
9086 workaround.
9087 (w32_initialize): Remove cleartype_active initialization.
9088 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9089
90902008-07-28 Andreas Schwab <schwab@suse.de>
9091
9092 * lisp.h (init_weak_hash_tables, syms_of_font)
9093 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9094 (remove_hash_entry): Don't declare.
9095 * eval.c (maybe_call_debugger): Make static and move before use.
9096 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9097 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9098 * xterm.h (x_set_frame_alpha): Declare.
9099
91002008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9101
9102 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9103 (create_menus): Connect selection-done to menu_nav_ended.
9104
91052008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9106
9107 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9108 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9109 parameter with read of 'alpha' one.
9110 (Qns_frame_parameter): Remove.
5582fbc7 9111 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9112 (next-selection-coding-system, Vselection_coding_system)
9113 (Vnext_selection_coding_system): Drop.
9114
91152008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9116
9117 * nsfns.m (do-applescript, do_applescript): Rename to
9118 ns-do-applescript, ns_do_applescript, and move within file.
9119
91202008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9121
9122 Remove support for Mac Carbon.
9123 * mactoolbox.c:
9124 * macterm.h:
9125 * macterm.c:
9126 * macselect.c:
9127 * macmenu.c:
9128 * macgui.h:
9129 * macfns.c:
9130 * mac.c: Remove file.
9131 * s/darwin.h:
9132 * m/intel386.h:
9133 * xfaces.c:
9134 * xdisp.c:
9135 * window.c:
9136 * tparam.c:
9137 * termhooks.h:
9138 * termcap.c:
9139 * term.c:
9140 * syssignal.h:
9141 * sysselect.h:
9142 * sysdep.c:
9143 * process.c:
9144 * lread.c:
9145 * lisp.h:
9146 * keyboard.c:
9147 * image.c:
9148 * fringe.c:
9149 * frame.h:
9150 * frame.c:
9151 * fontset.c:
9152 * font.h:
9153 * font.c:
9154 * fns.c:
9155 * fileio.c:
9156 * emacs.c:
9157 * dispnew.c:
9158 * dispextern.h:
9159 * config.in:
9160 * atimer.c:
2ae37cf0 9161 * Makefile.in: Remove code for Carbon.
aac0c6e3 9162
f0131492 91632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9164
9165 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9166
91672008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9168
9169 * macterm.h (kCGBitmapByteOrder32Host): New define for
9170 non-universal SDKs.
9171
9172 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9173 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9174
9175 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9176 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9177
91782008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9179
9180 * w32inevt.c: Include dispextern.h.
9181
91822008-07-26 Andreas Schwab <schwab@suse.de>
9183
9184 * print.c (print_object): Fix off-by-one in last change.
9185
91862008-07-25 Juanma Barranquero <lekktu@gmail.com>
9187
9188 * term.c (syms_of_term): Don't initialize default_orig_pair,
9189 default_set_foreground and default_set_background on Windows.
9190
91912008-07-25 Jason Rumney <jasonr@gnu.org>
9192
9193 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9194 ScriptItemize. Clean up return value checking. Remove unused
9195 variables.
9196 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9197 shaping engine.
9198
9199 * w32font.c (w32font_has_char): Handle the case where we can't
9200 determine the script for a character.
9201
92022008-07-25 Chong Yidong <cyd@stupidchicken.com>
9203
9204 * term.c (syms_of_term): Initialize default_orig_pair,
9205 default_set_foreground, and default_set_background.
9206
9207 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9208 clash (bug#86).
9209 (getloadavg): Callers changed.
9210
9211 * image.c (svg_load_image): Fix last change.
9212 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9213 image size is valid. Use g_object_unref instead of deprecated
9214 rsvg_handle_free to free rsvg handle.
9215 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9216
92172008-07-25 Jason Rumney <jasonr@gnu.org>
9218
9219 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9220 surrogates before looking up glyph index.
9221 (w32font_text_extents): Encode as surrogates if falling back to
9222 functions that need UTF-16 wide chars.
9223
9224 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9225 BMP as surrogates before looking up glyph index.
9226
92272008-07-25 Chong Yidong <cyd@stupidchicken.com>
9228
9229 * image.c (svg_load_image): Check for failure in return value of
9230 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9231
92322008-07-25 Jason Rumney <jasonr@gnu.org>
9233
9234 * w32font.c (Fx_select_font): Reverse sense of second arg.
9235
92362008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9237
9238 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9239 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9240
9241 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9242 (PURESIZE): Use it.
9243
92442008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9245
9246 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9247 * m/alpha.h (TEXT_END):
9248 * m/ibmrs6000.h (TEXT_END):
9249 * m/macppc.h (TEXT_END):
9250 * s/darwin.h (TEXT_END):
9251 * s/msdos.h (TEXT_END): Remove, unused.
9252 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9253 * s/cygwin.h: Remove comment.
9254
9255 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9256 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9257 * m/intel386.h (DOT_GLOBAL_START):
9258 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9259 (USG): Remove, file not used on USG platforms.
9260
9261 * Makefile.in (HAVE_X11): Remove empty #else.
9262
92632008-07-24 Andreas Schwab <schwab@suse.de>
9264
9265 * fileio.c (Finsert_file_contents): Properly adjust undo list
9266 after format conversion.
9267
92682008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9269
9270 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9271 (menu_nav_ended): Remove.
9272 (create_menus): Remove signal connect for menu_nav_ended.
9273 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9274 create_menus.
9275 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9276
92772008-07-23 Jason Rumney <jasonr@gnu.org>
9278
9279 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9280 with opened font.
9281 (w32font_open): Set font type to gdi.
9282
9283 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9284
92852008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9286
9287 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9288 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9289 defines it.
9290 * unexec.c (ADDR_CORRECT): Define unconditionally.
9291
9292 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9293
9294 * unexec.c: Remove code depending on !COFF and USG, the file is
9295 not used for such systems.
9296
9297 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9298 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9299 (LD_SWITCH_SYSTEM_1): Remove, update users.
9300
9301 * s/darwin.h (DATA_END):
9302 * m/intel386.h (DATA_END):
9303 * m/ibmrs6000.h (DATA_END):
9304 * m/alpha.h (DATA_END): Remove, unused.
9305
9306 * config.in: Regenerate.
9307 * s/ms-w32.h (subprocesses): Define unconditionally.
9308 * s/template.h (subprocesses): Update comment.
9309 * s/vms.h (subprocesses):
9310 * s/usg5-4.h (subprocesses):
9311 * s/hpux10-20.h (subprocesses):
9312 * s/gnu-linux.h (subprocesses):
9313 * s/cygwin.h (subprocesses):
9314 * s/bsd-common.h (subprocesses):
9315 * s/aix4-2.h (subprocesses):
9316 * s/darwin.h (subprocesses): Do not define, defined by default now.
9317
9318 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9319 Remove all references.
9320 (temacs): Add GNUstep specific ld flags.
9321
9322 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9323 similarly to what X does.
9324
93252008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9326
9327 * nsfns.m (x-list-fonts): Remove.
9328 (syms_of_nsfns): Drop the x-list-fonts declaration.
9329 * nsterm.m: Get rid of remaining "//" comments.
9330
93312008-07-22 Chong Yidong <cyd@stupidchicken.com>
9332
9333 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9334
9335 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9336 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9337 (Fns_own_selection_internal, Fx_disown_selection_internal)
9338 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9339
9340 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9341 ... */' style of docstrings. Doc fixes.
9342
93432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9344
9345 * terminfo.c (UP, BC, PC): Undo previous change.
9346
9347 * nsfns.m: Rename ns prefixed functions/variables to the
9348 corresponding x versions. Update references.
9349
93502008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9351
9352 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9353
93542008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9355
9356 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9357 Remove forwarding functions.
9358 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9359 non-static.
9360 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9361 non-static.
9362 (ns_frame_parm_handlers): Use the new names.
9363 (syms_of_nsfns): Move to the end of file.
9364
9365 * nsterm.m (syms_of_nsterm): Move to the end of file.
9366
9367 * dispnew.c (init_display): Remove code for X10.
9368
93692008-07-22 Jason Rumney <jasonr@gnu.org>
9370
9371 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9372 bare drive.
9373
93742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9375
9376 * nsterm.m (syms_of_nsterm): Remove debugging println.
9377
93782008-07-22 David Reitter <david.reitter@gmail.com>
9379
9380 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9381 Carbon implementation of the same functionality: execute arbitrary
9382 AppleScript code.
9383
93842008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9385
9386 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9387 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9388 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9389 (Fx_display_mm_height, Fx_display_mm_width)
9390 (Fx_display_backing_store, Fx_display_visual_class)
9391 (Fx_display_save_under, Fx_open_connection)
9392 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9393 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9394 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9395 (Fx_display_pixel_width, Fx_display_pixel_height)
9396 (Fx_display_usable_bounds, Fx_display_planes)
9397 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9398 ... */' style of docstrings.
9399
94002008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9401
9402 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9403 on this platform.
9404 (mips):
9405 * m/iris4d.h (mips): Do not define.
9406 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9407
9408 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9409
9410 * image.c:
9411 * nsfns.m:
9412 * nsselect.m:
9413 * nsterm.h:
9414 * nsterm.m: Rename ns prefixed functions/variables to the
9415 corresponding x versions. Update references.
9416
9417 * m/ibms390x.h (NO_REMAP): Do not undefine.
9418
9419 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9420
94212008-07-21 Chong Yidong <cyd@stupidchicken.com>
9422
9423 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9424 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9425 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9426 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9427 (Fns_display_mm_height, Fns_display_mm_width)
9428 (Fns_display_backing_store, Fns_display_visual_class)
9429 (Fns_display_save_under, Fns_open_connection)
9430 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9431 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9432 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9433 (Fns_display_pixel_width, Fns_display_pixel_height)
9434 (Fns_display_usable_bounds, Fx_display_planes)
9435 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9436
94372008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9438
9439 * print.c (print_object): Check print_depth before searching for
9440 circularities.
9441
94422008-07-21 Michael Albinus <michael.albinus@gmx.de>
9443
9444 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9445 only sprintf.
9446
94472008-07-21 Kenichi Handa <handa@m17n.org>
9448
9449 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9450
94512008-07-20 Andreas Schwab <schwab@suse.de>
9452
9453 * syntax.c (find_start_pos, find_start_value)
9454 (find_start_value_byte, find_start_begv, find_defun_start)
9455 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9456
94572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9458
9459 * s/sol2-3.h: Insert contents of s/sol2.h.
9460 (LD_SWITCH_SYSTEM): Remove redundant definition.
9461 * s/sol2.h: Remove, unused.
9462
94632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9464
9465 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9466
94672008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9468
9469 * Makefile.in (ns_appdir): Fix typo in find command.
9470
94712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9472
9473 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9474
9475 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9476 added not supported anymore.
9477
9478 * s/usg5-4-2.h (LIBS_SYSTEM):
9479 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9480
9481 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9482 * s/lynxos.h (GETPGRP_NO_ARG):
9483 * s/hpux10-20.h (NO_SIOCTL_H):
9484 * s/gnu.h (GETPGRP_NO_ARG):
9485 * s/gnu-linux.h (NO_SIOCTL_H):
9486 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9487 * s/cygwin.h (GETPGRP_NO_ARG):
9488 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9489 (C_DEBUG_SWITCH): Remove duplicate definition.
9490
9491 * m/ibms390.h: Remove boilerplate comments.
9492
9493 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9494
9495 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9496 (wait_reading_process_output): Remove code for SunOS, platform not
9497 supported anymore. Use SOLARIS2 instead of sun.
9498
94992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9500
9501 * font.c (font_open_by_name): Under NS, default lface height to zero.
9502 (font_open_for_lface): Under NS, set size based on frame fontsize.
9503 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9504 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9505
95062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9507
9508 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9509 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9510 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9511 YES/NO.
9512 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9513 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9514 * Makefile.in (clean): Clear out build destination dir.
9515
95162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9517
9518 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9519 xterm, xselect.
9520 * lisp.h: Remove declaration of hash_remove.
9521 * nsgui.h: Remove redefinitions of hash_remove.
9522 * fns.c (hash_remove): Rename to hash_remove_from_table.
9523
95242008-07-19 Seiji Zenitani <zenitani@mac.com>
9525
9526 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9527 strdup() the family UTF8String before modifying it.
9528
95292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9530
9531 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9532 NS_FACE_BACKGROUND with 0 instead of nil.
9533 * nsfont.m (nsfont_draw): Same.
9534
95352008-07-19 Chong Yidong <cyd@stupidchicken.com>
9536
9537 * nsfns.m (ns_set_background_color): Fix crash.
9538
95392008-07-18 Chong Yidong <cyd@stupidchicken.com>
9540
9541 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9542
95432008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9544
9545 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9546
95472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9548
9549 * gtkutil.c: Include <config.h> instead of "config.h".
9550
9551 * lisp.h (Foverlay_buffer): Add EXFUN.
9552
9553 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9554 child process to complete child_setup. Undo 2005-09-21 change.
9555
9556 * s/darwin.h: Mention setsid after vfork.
9557
95582008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9559
9560 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9561 Depend on macgui.h.
9562
9563 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9564 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9565
9566 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9567 and f19.
9568 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9569
9570 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9571 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9572 Remove enumerators.
9573
9574 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9575 Check if FACE_FROM_ID returns NULL.
9576
95772008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9578
9579 * w32inevt.c (change_frame_size): Remove extern declaration.
9580 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9581 change_frame_size.
9582
95832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9584
9585 * getloadavg.c: Revert last change (2008-07-15).
9586
95872008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9588
9589 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9590 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9591 from configure.
9592
95932008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9594
9595 * s/sol2.h:
9596 * s/sol2-4.h: Reorganize conditionals.
9597
9598 * ecrt0.c: Remove code depending on m68000, not used anymore.
9599
9600 * fns.c (hash_remove): Make static.
9601 * lisp.h (hash_remove): Don't prototype.
9602
9603 * m/ibmrs6000.h:
9604 * m/ibms390x.h:
9605 * m/macppc.h: Remove boilerplate comments.
9606
9607 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9608 Solaris, which does not need them.
9609
9610 * m/vax.h: Remove comments about unsupported systems.
9611
9612 * s/darwin.h: Reorganize ifdefs.
9613
96142008-07-17 Andreas Schwab <schwab@suse.de>
9615
9616 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9617
96182008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9619
9620 Use SDATA. Follow coding convention of placing operators at
9621 beginning of next line rather than end of previous line, and placing
9622 spaces around infix operators.
9623
9624 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9625 in case it was defined already.
9626 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9627 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9628 ns_default.
9629 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9630 Lisp_Objects.
9631 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9632 (ns_defined_color, ns_color_to_lisp): Declare.
9633 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9634 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9635 it's accepted even with USE_LISP_UNION_TYPE.
9636 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9637 (update_frame_tool_bar): Remove apparently obsolete tests for
9638 non-integerness of f->tool_bar_lines.
9639 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9640 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9641 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9642 (nsfont_open): Don't confuse NULL for Qnil.
9643 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9644 * menu.h (find_and_call_menu_selection):
9645 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9646 (find_and_return_menu_selection): Always return something.
9647 * frame.h: Include dispextern.h for Display_Info.
9648 (display_x_get_resource): Declare.
9649
96502008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9651
9652 * syntax.c: Remove stdio.h include accidentally introduced in
9653 Emacs.app commit.
9654 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9655 NS_IMPL_COCOA.
9656 * keyboard.c (handle_async_input, input_available_signal): Remove
9657 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9658
96592008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9660
9661 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9662 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9663 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9664 Use SDATA.
9665
9666 * keymap.c: Remove all NS-specific code.
9667 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9668 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9669 where_is_preferred_modifier, return a different value depending on how
9670 preferred is the binding.
9671 (where_is_internal): Adjust accordingly.
9672 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9673 Adjust to new preferred_sequence_p.
9674 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9675 * keyboard.c (parse_solitary_modifier): Not static any more.
9676 * keyboard.h (parse_solitary_modifier): Declare.
9677
96782008-07-16 Andreas Schwab <schwab@suse.de>
9679
9680 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9681 of easymenu.
9682
96832008-07-16 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9686 that we don't move off the line.
9687
96882008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9689
9690 * keyboard.c (Qsuper): Remove.
9691 (parse_menu_item): Don't call where_is_internal specially for NS.
9692
96932008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9694
9695 * s/gnu-linux.h: Remove boilerplate comments.
9696
9697 * m/alpha.h (__ELF__): Consolidate conditions.
9698
9699 * m/m68k.h (linux): Use GNU_LINUX instead.
9700 Remove boilerplate comments.
9701
9702 * m/intel386.h: Undo refactoring from previous change.
9703 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9704 too, remove dead code.
9705 (linux): Use GNU_LINUX instead.
9706
97072008-07-16 Jason Rumney <jasonr@gnu.org>
9708
9709 * w32gui.h: Repeat 26 June changes lost by last change.
9710
97112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9712
9713 * systty.h: Remove code for Aix on 386, unsupported platform.
9714
9715 * s/ms-w32.h: Remove boilerplate comments.
9716 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9717
9718 * s/gnu-linux.h (TERM): Remove support.
9719 (HAVE_SYSVIPC): Remove, unused.
9720 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9721 for this system.
9722
9723 * process.c: Remove support for IRIS, unused.
9724 Remove support for TERM, not relevant anymore.
9725
9726 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9727 used with the definition.
9728
9729 * s/aix4-2.h (static): Do not undef.
9730
9731 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9732 only used on Aix.
9733 (HAVE_SYSVIPC): Remove, unused.
9734
9735 * m/hp800.h (CANNOT_DUMP): Do not undef.
9736
9737 * m/alpha.h: Fix comment.
9738
9739 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9740 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9741 used by this configuration.
9742 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9743 * unexec.c: Remove code depending on HPUX and
9744 USG_SHARED_LIBRARIES, not used with this file. Remove code
9745 depending on IRIS, unused. Remove if 0-ed code.
9746
9747 * s/template.h: Remove comments about static.
9748
9749 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9750 Remove if 0-ed code.
9751 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9752 were the same as the default.
9753 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9754 Remove boilerplate comments.
9755 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9756 (HAVE_SYSVIPC): Remove, unused.
9757 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9758
9759 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9760 Remove boilerplate comments.
9761 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9762 Remove boilerplate comments.
9763 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9764 Remove boilerplate comments.
9765 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9766
9767 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9768 USG systems which do not use DATA_SEG_BITS.
9769 Refactor code. Remove boilerplate comments.
9770
9771 * m/ibms390.h:
9772 * m/m68k.h:
9773 * s/bsd-common.h:
9774 * s/cygwin.h:
9775 * s/darwin.h:
9776 * s/freebsd.h:
9777 * s/gnu.h:
9778 * s/msdos.h: Remove boilerplate comments.
9779
9780 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9781 do not use this file.
aac0c6e3
MR
9782 (IRIS_4D): Remove, unused.
9783
9784 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9785 do not use this file.
aac0c6e3
MR
9786 (SIGN_EXTEND_CHAR):
9787 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9788 * unexmips.c: Remove file, unused.
9789
9790 * editfns.c (Fuser_full_name): Replace the only use of
9791 USER_FULL_NAME with its value.
9792 * config.in: Regenerate.
9793
97942008-07-16 David Reitter <david.reitter@gmail.com>
9795
9796 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9797 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9798
97992008-07-16 Glenn Morris <rgm@gnu.org>
9800
9801 * emacs.c (system-type): Doc fix.
9802
98032008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9804
9805 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9806 If the cache doesn't work, let's fix it, rather than work around it.
9807
98082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9809
9810 * Makefile.in: Correct additions for nsfont.o in last commit.
9811 * nsfont.m: New file (forgot last commit).
9812
98132008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9814
9815 * callproc.c (set_initial_environment): Initialize
9816 Vprocess_environment under CANNOT_DUMP (fixes crash when
9817 batch-compiling for bootstrap).
9818
98192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9820 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9821
9822 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9823 fix crash due to different init order.
9824
98252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9826
9827 Changes and additions for NeXTstep windowing system (Cocoa and
9828 GNUstep) support.
9829
9830 * Makefile.in:
9831 * config.in: Support defines and build commands for NS port.
9832 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9833 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9834 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9835 windowing.
9836 (struct face): Add synth_ital field.
9837 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9838 (init_display): Initialize Vinitial_window_system to "ns" when so
9839 compiled.
9840 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9841 (display_arg): Use under NS.
9842 (main): Under NS, allocate autorelease pool and handle command line
9843 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9844 (standard_args): Add NS-specific args.
9845 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9846 * font.c (DEFAULT_ENCODING): New variable.
9847 (font_find_for_lface): Use it.
9848 (syms_of_font): Load syms_of_nsfont under NS.
9849 * font.h: Declare nsfont_driver when compiled under NS.
9850 * fontset.c: When compiling under NS, include nsterm.h.
9851 (fontset_from_font): Autoconstruct fontset under NS.
9852 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9853 symbol, document and use it.
9854 (do_switch_frame): When for_deletion under Cocoa, add
9855 Fraise_frame(Qnil).
9856 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9857 (x_get_arg): Allow "yes" and "no" as boolean values.
9858 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9859 Qright under Cocoa.
9860 (focus-follows-mouse): Default to 0 under NS.
9861 * frame.h (enum output_method): Add output_ns.
9862 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9863 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9864 (FRAME_WINDOW_P): NS-specific definition.
9865 * fringe.c (max_used_fringe_bitmap): Make public.
9866 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9867 (getloadavg): Use NeXT code under descendant OS's.
9868 * image.c (includes and header section, x_create_bitmap_from_data)
9869 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9870 (image_background_transparent, x_clear_image_1)
9871 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9872 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9873 (x_to_xcolors, x_from_xcolors, x_disable_image)
9874 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9875 other GUIs, including XPM support using code originally written for
9876 Carbon GUI.
9877 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9878 using NS API.
9879 (image_ascent): Use font metrics macros instead of direct struct field
9880 access.
9881 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9882 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9883 Also, handle NS as GTK for menu bar purposes.
9884 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9885 toolkit where they differ.
9886 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9887 use cachelist, still needed under NS.
9888 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9889 (struct widget_value): Define it here for menu.c.
9890 * keymap.c (includes): Include modifier internals.
9891 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9892 NS.
9893 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9894 support for preferring sequences using certain modifiers, specified by
9895 the FIRSTONLY argument.
9896 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9897 under NS GNUstep implementation.
9898 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9899 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9900 * menu.c: Include nsterm.h under NS.
9901 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9902 (free_menubar_widget_tree_value, update_submenu_strings)
9903 (find_and_call_menu_selection): Treat NS as X and NT.
9904 (find_and_return_menu_selection): New function, used for popup menus.
9905 * nsgui.h:
9906 * nsterm.h:
9907 * nsfns.m:
9908 * nsimage.m:
9909 * nsmenu.m:
9910 * nsselect.m:
9911 * nsterm.m: New files.
9912 * process.c (wait_reading_process_output): Under NS, call ns_select()
9913 instead of plain select().
9914 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9915 beginning of buffer.
9916 * sysselect.h (init_process): Rename when compiling under Cocoa to
9917 avoid name conflict.
9918 * termhooks.h (display_info): Add ns_display_info to union.
9919 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9920 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9921 COCOA environment.
9922 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9923 unexec() signature. (Note, this will dump, but the resulting file
9924 crashes; unexosx is used instead; keeping around for reference and
9925 possible aid in getting dump working under GNUstep.)
9926 * w32gui.h (button_type, widget_value): Remove definitions (now in
9927 keyboard.h).
9928 * window.c: Include nsterm.h when compiling under NS.
9929 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9930 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9931 other GUI windowing systems.
9932 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9933 GTK.
9934 (x_consider_frame_title): Under NS, set icon type and frame
9935 modified-state indicator; use ns_set_name_as_filename() when using
9936 formatted title.
9937 (update_window_cursor): Make public when compiling under NS.
9938 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9939 (hourglass_atimer, Vhourglass_delay
9940 * xfaces.c (header section, init_frame_faces, clear_font_table)
9941 (defined_color, unload_color, x_face_list_fonts)
9942 (prepare_face_for_display): Add NS support parallel to other GUIs.
9943 Emulate GCs like other non-X GUIs.
9944 (split_font_name): Don't lowercase font name under NS.
9945 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9946 under NS.
9947 * s/darwin.h: Add support for compilation under NS.
9948
99492008-07-15 Jason Rumney <jasonr@gnu.org>
9950
9951 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9952 (w32_show_hourglass): Rename from show_hourglass.
9953 (w32_hide_hourglass): Rename from hide_hourglass.
9954 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9955 (Vhourglass_delay): Declare extern.
9956 (hourglass_started): Remove.
9957
9958 * xdisp.c (Vhourglass_delay): Remove static.
9959 (hourglass_started, start_hourglass, cancel_hourglass):
9960 Don't include these versions on WINDOWSNT.
9961
99622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9963
9964 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9965 variables (formerly in xfns.c).
9966 (show_hourglass, hide_hourglass): New prototypes (same).
9967 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9968 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9969 in xfns.c).
9970 (syms_of_xdisp): Declare/initialize display-hourglass,
9971 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9972 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9973 formerly in xfns.c.
9974 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9975 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9976 (start_hourglass, cancel_hourglass): Remove.
9977 (show_hourglass, hide_hourglass): Remove prototypes and static
9978 modifiers.
9979 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9980 hourglass_atimer, hourglass_shown_p declaration/initialization.
9981 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9982 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9983 (start_hourglass, cancel_hourglass): Remove.
9984 (show_hourglass, hide_hourglass): Remove prototypes and static
9985 modifiers.
9986 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9987 hourglass_atimer, hourglass_shown_p declaration/initialization.
9988 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9989 (DEFAULT_HOURGLASS_DELAY): Remove.
9990 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9991 hourglass_shown_p declaration/initialization.
9992
99932008-07-14 Jason Rumney <jasonr@gnu.org>
9994
9995 * w32fns.c (w32_get_arg): Remove wrapper function.
9996 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9997 directly.
9998 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9999
100002008-07-14 Kenichi Handa <handa@m17n.org>
10001
10002 * xfont.c (xfont_open): Add workaround for X's bug.
10003
100042008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10005
10006 * fontset.c: Include <stdio.h> unconditionally.
10007
100082008-07-13 Michael Albinus <michael.albinus@gmx.de>
10009
10010 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10011 for filtering.
10012
100132008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10014
10015 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10016
10017 * m/macppc.h:
10018 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10019
10020 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10021 (SPECIAL_EMACS_INT):
10022 * m/ia64.h (SPECIAL_EMACS_INT):
10023 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10024 * s/gnu.h (NLIST_STRUCT):
10025 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10026 * s/gnu-linux.h (LINUX):
10027 * s/msdos.h (HAVE_FACES):
10028 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10029
10030 * systty.h:
10031 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10032 anymore.
10033
100342008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10035
10036 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10037 always defined as int.
10038
10039 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10040 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10041 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10042 * s/freebsd.h (HAVE_WAIT_HEADER):
10043 * s/bsd-common.h (HAVE_UNION_WAIT):
10044 * s/aix4-2.h (HAVE_WAIT_HEADER):
10045 * m/mips.h (HAVE_UNION_WAIT):
10046 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10047 (COFF, static): Do not define, they are undefined later in the file.
10048
10049 * process.c (update_status): Don't use a union.
10050 (status_convert):
10051 (sigchld_handler): Use int instead of WAITTYPE.
10052
100532008-07-12 Chong Yidong <cyd@stupidchicken.com>
10054
10055 * indent.c (Fvertical_motion): Restore hscroll before moving to
10056 goal column.
10057
100582008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10059
10060 * lisp.h: Remove left over code.
10061
100622008-07-11 Andreas Schwab <schwab@suse.de>
10063
10064 * lisp.h: Fix logic in last change.
10065
10066 * menu.h: New file.
10067 * menu.c: Include it.
10068 * xmenu.c: Likewise.
10069 * Makefile.in: Update dependencies.
10070
100712008-07-11 Kenichi Handa <handa@m17n.org>
10072
10073 * fontset.c (fontset_from_font): Cancel the previous change.
10074
100752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10076
10077 * lisp.h:
10078 * w32heap.c:
10079 * emacs.c:
10080 * alloc.c: Replace all references of NO_UNION_TYPE with
10081 USE_LISP_UNION_TYPE.
10082
10083 * m/xtensa.h (NO_UNION_TYPE):
10084 * m/vax.h (NO_UNION_TYPE):
10085 * m/template.h (NO_UNION_TYPE):
10086 * m/sparc.h (NO_UNION_TYPE):
10087 * m/mips.h (NO_UNION_TYPE):
10088 * m/macppc.h (NO_UNION_TYPE):
10089 * m/m68k.h (NO_UNION_TYPE):
10090 * m/iris4d.h (NO_UNION_TYPE):
10091 * m/intel386.h (NO_UNION_TYPE):
10092 * m/ibms390x.h (NO_UNION_TYPE):
10093 * m/ibms390.h (NO_UNION_TYPE):
10094 * m/ibmrs6000.h (NO_UNION_TYPE):
10095 * m/ia64.h (NO_UNION_TYPE):
10096 * m/hp800.h (NO_UNION_TYPE):
10097 * m/arm.h (NO_UNION_TYPE):
10098 * m/amdx86-64.h (NO_UNION_TYPE):
10099 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10100 defining it the same.
10101
101022008-07-10 Chong Yidong <cyd@stupidchicken.com>
10103
10104 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10105
101062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10107
10108 * fileio.c:
50426a04 10109 * sysdep.c:
aac0c6e3
MR
10110 * systty.h:
10111 * m/ibmrs6000.h:
10112 * m/iris4d.h:
10113 * s/aix4-2.h:
10114 * s/freebsd.h:
10115 * s/gnu-linux.h:
10116 * s/hpux10-20.h:
10117 * s/hpux11.h:
10118 * s/netbsd.h:
10119 * s/sol2-3.h:
10120 * s/sol2-4.h:
10121 * s/sol2.h:
10122 * s/usg5-4.h:
10123 * s/vms.h: Remove references to unused variables.
10124
101252008-07-10 Andreas Schwab <schwab@suse.de>
10126
10127 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10128 pattern before matching the generic family.
10129
101302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10131
10132 * unexec.c:
10133 * s/vms.h:
10134 * s/usg5-4-2.h:
10135 * s/sol2-5.h:
10136 * s/freebsd.h:
10137 * s/darwin.h: Remove dead code.
10138
10139 * m/template.h:
10140 * m/sparc.h:
10141 * m/mips.h:
10142 * m/m68k.h:
10143 * m/iris4d.h:
10144 * m/intel386.h:
10145 * m/ibms390x.h:
10146 * m/ibms390.h:
10147 * m/ia64.h:
10148 * m/hp800.h:
10149 * m/arm.h:
10150 * m/amdx86-64.h: Remove dead code and references to unused
10151 and compiler defined symbols.
10152
10153 * unexmips.c:
10154 * unexelf.c: Remove references to desupported systems.
10155
10156 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10157
10158 * m/powermac.h: Remove boilerplate comments.
10159 (NO_REMAP): Remove unused definition.
10160
10161 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10162 define them.
10163
101642008-07-10 Kenichi Handa <handa@m17n.org>
10165
10166 * xfont.c (xfont_open): Log the reason of failure.
10167
101682008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10169
10170 * fontset.c (fontset_get_font_group):
10171 * font.c (font_check_otf): Specify argument types.
10172
101732008-07-09 Kenichi Handa <handa@m17n.org>
10174
10175 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10176 non-ASCII char is found.
10177
10178 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10179 (reorder_font_vector): Change the arg preferred_family to font.
10180 Prefer the spec matching with font.
10181 (fontset_get_font_group): New function.
10182 (fontset_find_font): Change the format of an element of a realized
10183 fontset. Use fontset_get_font_group.
10184 (fontset_font): Try the current fontset, the default fontset, the
10185 fallbacks of the current fontset, and the fallbacks of the default
10186 fontset in this order.
10187 (face_for_char): Delete the shortcut to use the current font.
10188 (fontset_from_font): Don't set fonts for Latin in the fontset.
10189
10190 * font.h (font_make_object, font_match_p): Adjust prototypes.
10191
10192 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10193
10194 * font.c (font_make_object): New arg entity and pixelsize.
10195 (font_check_otf_features, font_check_otf): New functions.
10196 (font_match_p): Check :lang, :script, and :otf properties.
10197
10198 * xfont.c (xfont_open): Adjust it for the change of
10199 font_make_object.
10200 (xfont_text_extents): Fix initial setting of metrics.
10201
10202 * ftfont.c (struct ftfont_info): New member index, delete member
10203 fc_charset_idx. Make the member order compatible with struct
10204 xftfont_info.
10205 (fc_charset_table): Change charset names to registry names.
10206 (ftfont_pattern_entity): Delete the args registry and
10207 fc_charset_idx. Change the value of :font-entity property
10208 to (FONTNAME . INDEX). Always set :registry property to
10209 `iso10646-1'.
10210 (struct ftfont_cache_data): New struct.
10211 (ftfont_lookup_cache): New arg for_face.
10212 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10213 (ftfont_driver): Set the member otf_capability.
10214 (ftfont_get_charset): Adjust it for the change of
10215 fc_charset_table.
10216 (OTF_TAG_SYM): New macro.
10217 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10218 for the change of fc_charset_table.
10219 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10220 ftfont_pattern_entity. Add FC_INDEX to objset.
10221 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10222 and ftfont_pattern_entity.
10223 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10224 font_make_object, struct ftfont_info.
10225 (ftfont_has_char): Use ftfont_get_fc_charset.
10226 (ftfont_otf_features, ftfont_otf_capability): New functions.
10227 (ftfont_shape): Use ftfont_get_otf.
10228 (ftfont_text_extents): Fix initial setting of metrics.
10229
10230 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10231 member order compatible with struct ftfont_info.
10232 (xftfont_open): Add FC_CHARSET to the pattern. Set
10233 xftfont_info->ft_size. Don't unlock the face. Check BDF
10234 properties if appropriate.
10235 (xftfont_close): Unlock the face.
10236 (xftfont_anchor_point, xftfont_shape): Deleted.
10237 (syms_of_xftfont): Don't set members anchor_point and shape of
10238 xftfont_driver.
10239
10240 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10241 font_make_object.
10242
10243 * w32font.c (w32font_open): Adjust it for the change of
10244 font_make_object.
10245 (w32font_open_internal): Don't set properties of font_object here.
10246
102472008-07-08 Chong Yidong <cyd@stupidchicken.com>
10248
10249 * macfns.c (x_create_tip_frame):
10250 * w32fns.c (x_create_tip_frame):
10251 * xfns.c (x_create_tip_frame): Pass parameter argument to
10252 face-set-after-frame-default.
10253
10254 * xfaces.c (Finternal_merge_in_global_face): Save merged
10255 attributes for the default face back into the face vector.
10256
102572008-07-08 Andreas Schwab <schwab@suse.de>
10258
10259 * fontset.h: Declare fontset_from_font. Don't declare
10260 new_fontset_from_font and fontset_from_font_name.
10261 * xterm.c: Include "fontset.h".
10262 * Makefile.in (xterm.o): Update dependencies.
10263
102642008-07-08 Glenn Morris <rgm@gnu.org>
10265
10266 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10267 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10268
102692008-07-07 Chong Yidong <cyd@stupidchicken.com>
10270
10271 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10272 (x_set_frame_parameters): Don't bind it.
10273
102742008-07-07 Juanma Barranquero <lekktu@gmail.com>
10275
10276 * w32fns.c (map_w32_filename): Declare extern.
10277
102782008-07-07 Jason Rumney <jasonr@gnu.org>
10279
10280 * w32term.c (WS_EX_LAYERED): Define if not already.
10281
102822008-07-06 Chong Yidong <cyd@stupidchicken.com>
10283
10284 * xfaces.c (set_font_frame_param): Don't try to set the font
10285 parameter if it is still unspecified in the lface.
10286
102872008-07-05 Chong Yidong <cyd@stupidchicken.com>
10288
10289 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10290 face if it didn't already exist.
10291
10292 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10293
102942008-07-05 Andreas Schwab <schwab@suse.de>
10295
10296 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10297
102982008-07-05 Chong Yidong <cyd@stupidchicken.com>
10299
10300 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10301 word-wrapping.
10302 (IT_DISPLAYING_WHITESPACE): New macro.
10303 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10304 when word-wrapping. Simplify word-wrapping logic. Use correct
10305 pixel positions when saving copies of the iterator.
10306 (display_line): Use proper wrap point if the last character on a
10307 line was preceded by whitespace.
10308
103092008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10310
10311 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10312
103132008-07-04 Kenichi Handa <handa@m17n.org>
10314
10315 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10316
10317 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10318
103192008-07-02 Jason Rumney <jasonr@gnu.org>
10320
10321 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10322 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10323
10324 * xdisp.c (next_element_from_display_vector): Move assignment out
10325 of if statement.
10326
103272008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10328
10329 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10330
10331 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10332 (syms_of_fileio): Initialize and export them.
10333 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10334
10335 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10336 (Fsystem_move_file_to_trash): New function.
10337 (syms_of_w32fns): Export it to lisp.
10338
103392008-07-01 Jason Rumney <jasonr@gnu.org>
10340
10341 * w32font.c (w32font_text_extents): Don't count overhang as part
10342 of width.
10343
103442008-06-30 Miles Bader <miles@gnu.org>
10345
10346 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10347 Add `avoid_cursor_p' field.
10348
10349 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10350 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10351 (append_glyph, append_composite_glyph, produce_image_glyph)
10352 (append_stretch_glyph): Initialize avoid_cursor_p.
10353 (get_it_property): Rename from `get_line_height_property'.
10354 (x_produce_glyphs): Use get_it_property.
10355 (handle_line_prefix, push_display_prop): New functions.
10356 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10357 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10358 New variables.
10359 (syms_of_xdisp): Initialize them.
10360
103612008-06-30 Kenichi Handa <handa@m17n.org>
10362
10363 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10364 XftDefaultSubstitute (they are called in XftFontMatch).
10365 (xftfont_open): Fix args to ftfont_font_format.
10366
10367 * ftfont.c (fc_charset_table): New member lang.
10368 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10369 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10370 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10371 (ftfont_open): Fix args to ftfont_font_format.
10372 (ftfont_font_format): New arg filename.
10373
103742008-06-30 Chong Yidong <cyd@stupidchicken.com>
10375
10376 * xfaces.c (Finternal_merge_in_global_face): If default face was
10377 modified, realize it again. Update the font face attribute.
10378
103792008-06-29 Jason Rumney <jasonr@gnu.org>
10380
10381 * w32term.c (x_set_frame_alpha): Fix logic.
10382
103832008-06-29 Kenichi Handa <handa@m17n.org>
10384
10385 * fontset.c (Finternal_char_font): Return font-object instead of
10386 font-name.
10387
10388 * composite.c (get_composition_id): Fix the width calculation for TAB.
10389
103902008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10391
10392 * indent.c (Fvertical_motion): Properly handle float column arg.
10393
103942008-06-28 Jason Rumney <jasonr@gnu.org>
10395
10396 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10397 (pfnSetLayeredWindowAttributes): New function pointer.
10398 (w32_initialize): Initialize it when supported.
10399 (x_set_frame_alpha): New function.
10400
10401 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10402 (w32_frame_parm_handlers): Set alpha handler.
10403
10404 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10405
104062008-06-27 Jason Rumney <jasonr@gnu.org>
10407
10408 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10409 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10410 (w32_to_x_charset, x_to_w32_charset)
10411 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10412 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10413 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10414 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10415 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10416 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10417 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10418 (Qw32_charset_unicode): Remove.
10419 (syms_of_w32fns): Update for above changes.
10420
10421 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10422 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10423 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10424 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10425 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10426 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10427 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10428 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10429 (syms_of_w32font): Update for above changes.
10430
104312008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10432
10433 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10434 removed #if.
10435 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10436
104372008-06-26 Juanma Barranquero <lekktu@gmail.com>
10438 Eli Zaretskii <eliz@gnu.org>
10439
10440 * makefile.w32-in (LOCAL_FLAGS):
10441 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10442
10443 * sysdep.c (_spawnlp, _getpid):
10444 Declare with explicit _cdecl instead of _CRTAPI1.
10445
10446 * editfns.c (Fget_internal_run_time):
10447 Check for WINDOWSNT with #ifdef, not #if.
10448
104492008-06-26 Jason Rumney <jasonr@gnu.org>
10450
10451 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10452
10453 * w32term.c (x_draw_glyph_string_foreground)
10454 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10455 Use FONT_HANDLE macro.
10456 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10457
10458 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10459 (uniscribe_encode_char): Use FONT_HANDLE macro.
10460
10461 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10462 (w32font_text_extents): Use precast w32_font.
10463 (w32font_close): Free cached metrics.
10464 (w32font_open_internal): Allocate space for name on stack.
10465
104662008-06-26 Chong Yidong <cyd@stupidchicken.com>
10467
10468 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10469
104702008-06-26 Jason Rumney <jasonr@gnu.org>
10471
10472 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10473 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10474
104752008-06-26 Juanma Barranquero <lekktu@gmail.com>
10476
10477 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10478
104792008-06-26 Jason Rumney <jasonr@gnu.org>
10480
10481 * w32bdf.c, w32bdf.h: Remove obsolete files.
10482
10483 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10484
10485 * w32gui.h: Don't include w32bdf.h.
10486 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10487 Remove obsolete font support.
10488
10489 * w32font.h (struct w32font_info): Remove compat_w32_font.
10490 Add hfont member.
10491 (FONT_COMPAT): Remove obsolete macro.
10492
10493 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10494 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10495 (w32font_open_internal): Remove compat code. Set new hfont member.
10496 (Fx_select_font): Use new hfont member.
10497
10498 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10499 (uniscribe_encode_char): Use new hfont member.
10500
10501 * w32term.c (x_draw_glyph_string_foreground)
10502 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10503 (x_draw_glyph_string): Use metrics in w32font_info.
10504
105052008-06-26 Kenichi Handa <handa@m17n.org>
10506
10507 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10508
105092008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10510
10511 * unexnext.c:
10512 * m/ews4800.h:
10513 * m/hp9000s300.h:
10514 * m/ibm370aix.h:
10515 * m/mips-siemens.h:
10516 * m/ncr386.h:
10517 * m/next.h:
10518 * m/pmax.h:
10519 * m/powerpcle.h:
10520 * m/tandem-s2.h:
10521 * s/386bsd.h:
10522 * s/bsd386.h:
10523 * s/bsd4-1.h:
10524 * s/bsd4-2.h:
10525 * s/bsdos2-1.h:
10526 * s/bsdos2.h:
10527 * s/bsdos3.h:
10528 * s/bsdos4.h:
10529 * s/nextstep.h:
10530 * s/ultrix4-3.h:
10531 * s/usg5-0.h:
10532 * s/usg5-2-2.h:
10533 * s/usg5-2.h:
10534 * s/usg5-4-3.h:
10535 * s/ux4800.h:
10536 * s/uxpds.h:
10537 * s/uxpv.h: Remove support for obsolete systems.
10538 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10539 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10540 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10541 Remove, insert contents in s/aix4-2.h.
10542 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10543 * s/bsd4-3.h: Rename to ...
10544 * s/bsd-common.h: ... this.
10545 * data.c:
10546 * doc.c:
10547 * ecrt0.c:
10548 * emacs.c:
10549 * fileio.c:
10550 * floatfns.c:
10551 * keyboard.c:
10552 * mem-limits.h:
10553 * print.c:
10554 * process.c:
10555 * sysdep.c:
10556 * syssignal.h:
10557 * systty.h:
10558 * syswait.h:
10559 * term.c:
10560 * unexec.c:
10561 * unexelf.c:
10562 * unexhp9k800.c:
10563 * m/hp800.h:
10564 * m/ibmrs6000.h:
10565 * m/mips.h:
10566 * m/vax.h:
10567 * s/darwin.h:
10568 * s/freebsd.h:
10569 * s/gnu.h:
10570 * s/ms-w32.h:
10571 * s/msdos.h:
10572 * s/netbsd.h:
10573 * s/template.h: Remove references to obsolete variables.
10574
10575 * Makefile.in: Add dependencies for all unexec files.
10576 (admindir): Remove unused variable.
10577 (UNEXEC_SRC): Remove references.
10578
105792008-06-25 Chong Yidong <cyd@stupidchicken.com>
10580
10581 * xfns.c (x_default_font_parameter): If Xft is available, first
10582 try Monospace-12 for the default font.
10583
105842008-06-25 Jason Rumney <jasonr@gnu.org>
10585
10586 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10587
105882008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10589
10590 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10591
10592 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10593
105942008-06-25 Juanma Barranquero <lekktu@gmail.com>
10595
10596 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10597 <scroll-conservatively>: Fix typo in docstring.
10598
10599 * xselect.c (Fx_send_client_event): Doc fix.
10600
106012008-06-25 Kenichi Handa <handa@m17n.org>
10602
10603 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10604
10605 * font.c (font_parse_fcname): Remove unused variables.
10606 (font_sort_entites): Delete the arg SPEC. Caller changed.
10607 Fix for the case of ! best_only.
10608 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10609
10610 * lisp.h (Fstring_to_unibyte): EXFUN it.
10611
10612 * character.h (str_to_unibyte): Extern it.
10613
10614 * character.c (str_to_unibyte): New function.
10615
10616 * fns.c (Fstring_to_unibyte): New function.
10617 (syms_of_fns): Defsubr it.
10618
106192008-06-24 Kenichi Handa <handa@m17n.org>
10620
10621 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10622 DPI too.
10623 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10624
106252008-06-24 Andreas Schwab <schwab@suse.de>
10626
10627 * Makefile.in (${lispsource}loaddefs.el): Rename from
10628 ../lisp/loaddefs.el.
10629 (bootstrap-clean): Do what distclean does but don't remove
10630 Makefile.
10631 (distclean): Depend on bootstrap-clean and remove Makefile.
10632
106332008-06-24 Chong Yidong <cyd@stupidchicken.com>
10634
10635 * buffer.h (struct buffer): New member word_wrap.
10636
10637 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10638 word-wrap.
10639 (init_buffer_once): Initialize them.
10640
10641 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10642 line_wrap enum possessing three possible values.
10643
10644 * termopts.h: Replace truncate_partial_width_windows with
10645 Vtruncate_partial_width_windows.
10646
10647 * dispnew.c (direct_output_for_insert): Avoid direct output when
10648 inserting a space with word wrap on.
10649
10650 * indent.c (compute_motion): Obey integer values of
10651 truncate-partial-width-windows.
10652
10653 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10654 replacing truncate_partial_width_windows.
10655 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10656 truncate only if the window width is below that integer.
10657 (start_display, resize_mini_window, produce_stretch_glyph)
10658 (display_string, move_it_in_display_line_to): Use line_wrap.
10659 (back_to_previous_visible_line_start, reseat_1): Reset
10660 string_from_display_prop_p.
10661 (display_line): Extend default face to end of line when wrapping.
10662
106632008-06-24 Kim F. Storm <storm@cua.dk>
10664
10665 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10666 to wrap continued lines at word boundaries.
10667
106682008-06-24 Jason Rumney <jasonr@gnu.org>
10669
10670 * font.c (Ffont_face_attributes): Multiply pixel size before point
10671 conversion to avoid multiplying rounding error.
10672
106732008-06-23 Jason Rumney <jasonr@gnu.org>
10674
10675 * w32term.c (x_draw_glyph_string_background)
10676 (x_draw_glyph_string): Remove old bdf font code.
10677
10678 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10679
106802008-06-22 Kenichi Handa <handa@m17n.org>
10681
10682 * font.c (font_find_for_lface): Try the adstyle specified in
10683 the property of LFACE_FONT of LFACE (if any).
10684
106852008-06-21 Seiji Zenitani <zenitani@mac.com>
10686 Ryo Yoshitake <ryo@shiftmode.net>
10687
10688 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10689
106902008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10693 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10694 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10695 (witness-emacs): Remove.
10696 (lisp, shortlisp): Move loaddefs.el earlier.
10697 (mostlyclean): Forget about witness-emacs.
10698
106992008-06-22 Glenn Morris <rgm@gnu.org>
10700
10701 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10702 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10703
107042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * Makefile.in (PRECOMP): Remove.
10707 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10708 (witness-emacs): Run `compile-first'.
10709 (.el.elc): Use the new compile-onefile target.
10710
107112008-06-21 Kenichi Handa <handa@m17n.org>
10712
10713 * xftfont.c (xftfont_open): Handle QCembolden only when
10714 FC_EMBOLDEN is defined.
10715
107162008-06-21 Andreas Schwab <schwab@suse.de>
10717
10718 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10719 (.el.elc): Likewise.
10720
107212008-06-21 Miles Bader <miles@gnu.org>
10722
10723 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10724 build dir, not the lisp source dir.
10725
107262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10727
10728 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10729 (bootstrapclean): Remove.
10730 (.el.elc): New rule.
10731 (PRECOMP): New var.
10732 (../lisp/subdirs.el): Remove.
10733 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10734 (witness-emacs): New target.
10735 (mostlyclean): Remove witness-emacs as well.
10736 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10737 Add witness-emacs dependency.
10738
107392008-06-20 Chong Yidong <cyd@stupidchicken.com>
10740
10741 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10742 defined by the font.
10743
107442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10745
10746 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10747 (bootstrap-clean): New target that keeps TAGS around.
10748 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10749 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10750
107512008-06-20 Jason Rumney <jasonr@gnu.org>
10752
10753 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10754 Remove obsolete font code.
10755
10756 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10757 to determine language support.
10758
107592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10760
10761 * sysdep.c (cfsetspeed): New fun extracted from the code.
10762 (cfmakeraw): Move before first use.
10763
107642008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10765
10766 * sysdep.c (cfmakeraw): Provide fallback implementation.
10767 (serial_configure): Provide fallback implementation of cfsetspeed.
10768
107692008-06-20 Kenichi Handa <handa@m17n.org>
10770
10771 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10772 the pattern.
10773
10774 * fontset.c (fontset_from_font): Copy font_spec before changing
10775 the elements.
10776
10777 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10778
107792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10780
10781 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10782 for explicit `font' parameters.
10783
10784 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10785
107862008-06-19 Kenichi Handa <handa@m17n.org>
10787
10788 * frame.c: Include <ctype.h>.
10789 (x_set_font_backend): Allow spacing characters in the X resource
10790 for FontBackend.
10791
107922008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10793
10794 * w32fns.c, xfns.c (Qfont_param): New var.
10795 (syms_of_w32fns): Initialize it.
10796 (x_default_font_parameter): Record explicit `font' into
10797 `font-parameter'.
10798
107992008-06-18 Kenichi Handa <handa@m17n.org>
10800
10801 * font.c (font_parse_xlfd): Fix previous change.
10802 (font_parse_fcname): Don't use :fc-unknown-spec.
10803 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10804 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10805 (font_add_log): Prepend the driver name to the resulting fonts.
10806
10807 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10808 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10809 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10810
10811 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10812 (QCembolden): New variables.
10813 (syms_of_xftfont): DEFSYM them.
10814 (xftfont_open): Call XftFontMatch. Don't trust the result of
10815 XftTextExtents8 if the pixel_size is less than 5.
10816
108172008-06-18 Andreas Schwab <schwab@suse.de>
10818
10819 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10820 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10821
108222008-06-18 Jason Rumney <jasonr@gnu.org>
10823
10824 * w32font.c (w32font_list, w32font_match): Add logging.
10825
10826 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10827
108282008-06-17 Chong Yidong <cyd@stupidchicken.com>
10829
10830 * font.c (font_parse_fcname): Store divider characters for
10831 unknown-spec list. For known key symbols, intern using correct
10832 symbol name.
10833
108342008-06-17 Kenichi Handa <handa@m17n.org>
10835
10836 * xfaces.c (realize_default_face): If the frame is not on window
10837 system, set the fontset of face to nil.
10838
108392008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10840
10841 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10842
108432008-06-16 Juanma Barranquero <lekktu@gmail.com>
10844
10845 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10846 (build_font_name_from_vector): Delete externs.
10847
10848 * xfaces.c (struct font_name): Don't declare.
10849
108502008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10851
10852 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10853
108542008-06-16 Chong Yidong <cyd@stupidchicken.com>
10855
10856 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10857
108582008-06-16 Juanma Barranquero <lekktu@gmail.com>
10859
10860 * font.c (Ffont_spec): Fix usage in docstring.
10861 (Ffont_face_attributes): Doc fix.
10862
108632008-06-16 Andreas Schwab <schwab@suse.de>
10864
10865 * font.c (Ffont_face_attributes): Fix definition.
10866
108672008-06-16 Jason Rumney <jasonr@gnu.org>
10868
10869 * font.h (font_style_symbolic_from_value): Remove.
10870
10871 * font.c (font_style_symbolic_from_value): Remove.
10872 (font_style_symbolic): Revert to pre 2008-06-13 version.
10873
10874 * w32font.c (w32_to_fc_weight): New function.
10875 (w32font_full_name, logfont_to_fcname): Use it.
10876
108772008-06-16 Kenichi Handa <handa@m17n.org>
10878
10879 * font.c (font_check_object): Delete it.
10880 (font_clear_cache): Check if a font-object is alive.
10881 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10882 font-object to nil.
10883 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10884 (font_at): Don't call font_check_object.
10885 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10886
108872008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10888
10889 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10890
108912008-06-16 Chong Yidong <cyd@stupidchicken.com>
10892
10893 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10894
108952008-06-15 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * font.c (font_parse_fcname): Only one decimal point.
10898 (font_unparse_fcname): Handle data in family and foundry indices
10899 as symbols, not strings.
10900 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10901
10902 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10903
10904 * font.h (font_unparse_gtkname): Add prototype.
10905
109062008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10907
10908 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10909
109102008-06-15 Andreas Schwab <schwab@suse.de>
10911
10912 * font.c (font_update_drivers): Fix crash when no drivers match.
10913
109142008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10915
10916 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10917 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10918
109192008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10920
10921 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10922
109232008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10924
10925 * process.c (Fserial_process_configure, Fprocess_send_eof):
10926 Use EQ to compare Lisp_Objects.
10927
109282008-06-13 Jason Rumney <jasonr@gnu.org>
10929
10930 * w32fns.c (Fw32_select_font): Remove old font API function.
10931
10932 * w32font.c (logfont_to_fcname): New function.
10933 (Fx_select_font): New font dialog function compatible with
10934 GTK/fontconfig version.
10935
10936 * font.c (font_style_symbolic_from_value): New function.
10937 (font_style_symbolic): Use it.
10938
10939 * font.h (font_style_symbolic_from_value): Declare new function.
10940
109412008-06-13 Juanma Barranquero <lekktu@gmail.com>
10942
10943 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10944 <font-width-table>: Fix typos in docstrings.
10945
109462008-06-13 Daniel Engeler <engeler@gmail.com>
10947
10948 These changes add serial port access.
10949 * process.c: Add HAVE_SERIAL.
10950 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10951 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10952 (list_processes_1, select_wrapper, Fstop_process)
10953 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10954 (status_notify): Modify to handle serial processes.
10955 [HAVE_SERIAL] (Fserial_process_configure)
10956 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10957 New functions.
10958 * process.h (struct Lisp_Process): Add `type'.
10959 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10960 New functions.
10961 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10962 serial ports.
b71ac3dd 10963 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10964 * w32.h: Add FILE_SERIAL.
10965 (struct _child_process): Add ovl_read, ovl_write.
10966
109672008-06-13 Kenichi Handa <handa@m17n.org>
10968
10969 * dispextern.h (enum lface_attribute_index): New member
10970 LFACE_FOUNDRY_INDEX.
10971
10972 * font.c (font_score): Delete arg alternate_families. Check only
10973 weight, slant, width, and size. Ignore the difference of alias
10974 style symbols.
10975 (font_sort_entites): Adjust for the above change. Reflect the
10976 order of font-driver to scores.
10977 (font_list_entities): Don't check alternate_familes here.
10978 (font_clear_prop): Handle foundry.
10979 (font_update_lface): Don't parse "foundry-family" form here.
10980 Handle FONT_FOUNDRY_INDEX.
10981 (font_find_for_lface): Likewise. Handle alternate families here.
10982 If registry is nil, try iso8859-1 and ascii-0.
10983 (font_open_for_lface): Pay attention to size in ENTITY.
10984 (font_open_by_name): Simplify by calling font_load_for_lface.
10985 (free_font_driver_list): Delete it.
10986 (font_update_drivers): Preserve the order of backends.
10987 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10988 of font_score and font_sort_entites.
10989 (font_update_sort_order): Likewise.
10990
10991 * xfaces.c (LFACE_FOUNDRY): New macro.
10992 (check_lface_attrs): Check foundry.
10993 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10994 (merge_face_vectors): Check foundry.
10995 (merge_face_ref): Likewise.
10996 (Finternal_set_lisp_face_attribute): Likewise.
10997 (x_update_menu_appearance): Likewise.
10998 (Finternal_get_lisp_face_attribute): Likewise.
10999 (lface_hash): Likewise.
11000 (lface_same_font_attributes_p): Likewise.
11001 (x_supports_face_attributes_p): Likewise.
11002 (tty_supports_face_attributes_p): Likewise.
11003 (Finternal_set_alternative_font_family_alist): Intern strings.
11004 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11005 (realize_default_face): Set LFACE_FOUNDRY (lface).
11006
11007 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11008 font-driver at first.
11009
11010 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11011
110122008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11013
11014 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11015
110162008-06-12 Jim Meyering <meyering@redhat.com>
11017
11018 Make unexec_free handle NULL the same way free does.
11019 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11020
110212008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11022
11023 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11024 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11025 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11026 (WEAK_ALIAS): Simplify.
11027 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11028 when searching a unibyte buffer.
11029
110302008-06-12 Chong Yidong <cyd@stupidchicken.com>
11031
11032 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11033
110342008-06-12 Juanma Barranquero <lekktu@gmail.com>
11035
11036 * w32font.c: Include ctype.h.
11037
110382008-06-11 Jason Rumney <jasonr@gnu.org>
11039
11040 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11041 misreported as space.
11042 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11043 as aliases for registry iso10646-1.
11044
110452008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11046
11047 * buffer.c (clone_per_buffer_values): Skip `name'.
11048
110492008-06-11 Chong Yidong <cyd@stupidchicken.com>
11050
11051 * font.c (font_parse_fcname): Fix last change; accept decimal
11052 points in font size.
11053
110542008-06-10 Jason Rumney <jasonr@gnu.org>
11055
11056 * w32uniscribe.c (add_opentype_font_name_to_list):
11057 Skip non unicode fonts.
11058
110592008-06-10 Chong Yidong <cyd@stupidchicken.com>
11060
11061 * xfns.c (Fx_font_dialog): New function.
11062
11063 * gtkutil.c (xg_dialog_response_cb): Rename from
11064 xg_file_response_callback.
11065 (pop_down_dialog): Rename from pop_down_file_dialog.
11066 (xg_get_file_name): Callers changed.
11067 (xg_get_font_name): New function.
11068
11069 * gtkutil.h (xg_get_font_name): Insert prototype.
11070
110712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11072
11073 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11074 x_underline_minimum_display_offset.
11075 (syms_of_xdisp): Declare it here rather than in xterm.c.
11076 * dispextern.h (underline_minimum_offset): Declare it.
11077 * w32term.c (x_draw_glyph_string): Use it.
11078 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11079 (syms_of_xterm): Don't declare it any more.
11080 (x_draw_glyph_string): Adjust to the new name.
11081
8719abec 110822008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11083
11084 * xterm.c (x_underline_minimum_display_offset): New var.
11085 (x_draw_glyph_string): Use it.
11086 (syms_of_xterm): Declare it.
11087
110882008-06-10 Chong Yidong <cyd@stupidchicken.com>
11089
11090 * font.c (font_parse_fcname): Accept GTK-style font names too.
11091
110922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11093
11094 * dired.c (file_name_completion): Don't return t if the match is exact
11095 but with different capitalization.
11096 * minibuf.c (Ftry_completion): Simplify.
11097
11098 * window.c (Vwindow_point_insertion_type): New var.
11099 (set_window_buffer): Use it.
11100 (syms_of_window): Init and export it to Lisp.
11101
111022008-06-10 Kenichi Handa <handa@m17n.org>
11103
11104 * font.h (font_intern_prop): Prototype adjusted.
11105
11106 * font.c (font_intern_prop): New arg force_symbol.
11107 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11108 Adjust for the change of font_intern_prop.
11109
11110 * ftfont.c (ftfont_pattern_entity):
11111 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11112 (w32_registry):
11113 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11114 the change of font_intern_prop.
11115
111162008-06-09 Juanma Barranquero <lekktu@gmail.com>
11117
11118 * w32menu.c (digest_single_submenu): Declare extern.
11119
111202008-06-09 Jason Rumney <jasonr@gnu.org>
11121
11122 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11123
11124 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11125 (parse_single_submenu): Remove.
11126 (digest_single_submenu): Remove.
11127 (syms_of_w32menu): Don't initialise variables that have moved
11128 to menu.c.
11129 (set_frame_menubar): Sync with version in xmenu.c.
11130 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11131
11132 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11133 Make static again.
11134
111352008-06-09 Jason Rumney <jasonr@gnu.org>
11136
11137 Changes to w32 files related to the move of common menu code
11138 to menu.c on 2008-06-08 by Chong Yidong.
11139
11140 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11141 defs to w32gui.h.
11142 (single_keymap_panes, push_menu_item, push_menu_pane):
11143 Make globally visible.
11144
11145 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11146 (local_free, malloc_widget_value, free_widget_value)
11147 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11148 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11149 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11150 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11151 (menu_items, menu_items_allocated, menu_items_used)
11152 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11153 (init_menu_items, finish_menu_items, discard_menu_items)
11154 (grow_menu_items, push_submenu_start, push_submenu_end)
11155 (push_left_right_boundary, push_menu_pane, push_menu_item)
11156 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11157 (free_menubar_widget_tree_value, parse_single_submenu)
11158 (update_submenu_strings): Remove functions.
11159 (xmalloc_widget_value): Remove and declare extern.
11160
11161 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11162 (OBJ1): Build it.
11163
11164 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11165 (local_heap, local_alloc, local_free, malloc_widget_value)
11166 (free_widget_value): Define here.
11167
111682008-06-09 Kenichi Handa <handa@m17n.org>
11169
11170 * font.h (Qascii_0): Extern it.
11171
11172 * font.c (Qascii_0): New variable.
11173 (syms_of_font): DEFSYM it.
11174 (font_open_by_name): If the registry "iso8859-1" fails, try also
11175 "ascii-0".
11176
11177 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11178
111792008-06-08 Kenichi Handa <handa@m17n.org>
11180
11181 * .gdbinit (xfont): New command.
11182
111832008-06-08 Andreas Schwab <schwab@suse.de>
11184
11185 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11186 * Makefile.in (menu.o): Update dependencies.
11187
11188 * Makefile.in (obj): Always add menu.o.
11189 * emacs.c (main): Always call syms_of_menu.
11190 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11191
111922008-06-08 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * Makefile.in: Compile menu.c.
11195
11196 * lisp.h: Declare syms_of_menu.
11197
11198 * emacs.c (main): Call syms_of_menu.
11199
11200 * keyboard.h: Relocate platform-independent menu definitions from
11201 xmenu.c.
11202
11203 * menu.c: New file. Relocate platform-independent menu
11204 definitions from xmenu.c. Suggested by Adrian Robert.
11205
11206 * xmenu.c: Remove platform-independent menu definitions.
11207 (menu_items menu_items_inuse, menu_items_allocated)
11208 (menu_items_used, menu_items_n_panes)
11209 (menu_items_submenu_depth): Move to keyboard.h.
11210 (init_menu_items, finish_menu_items, unuse_menu_items)
11211 (discard_menu_items, restore_menu_items, save_menu_items)
11212 (grow_menu_items, push_submenu_start, push_submenu_end)
11213 (push_left_right_boundary, push_menu_pane, push_menu_item)
11214 (keymap_panes, single_keymap_panes, single_menu_item)
11215 (list_of_panes, list_of_items, find_and_call_menu_selection)
11216 (xmalloc_widget_value, free_menubar_widget_value_tree)
11217 (parse_single_submenu, digest_single_submenu)
11218 (update_submenu_strings): Move to menu.c.
11219
112202008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11221
11222 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11223
112242008-06-06 Miles Bader <miles@gnu.org>
11225
11226 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11227 face, not frame default.
11228
112292008-06-05 Martin Rudalics <rudalics@gmx.at>
11230
11231 * window.c (pop_up_windows, pop_up_frames)
11232 (display_buffer_reuse_frames, Vpop_up_frame_function)
11233 (Vdisplay_buffer_function, Veven_window_heights)
11234 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11235 (Vspecial_display_function, Vsame_window_buffer_names)
11236 (Vsame_window_regexps, split_height_threshold)
11237 (Vsplit_window_preferred_function): Move those vars to window.el.
11238 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11239 (Fdisplay_buffer): Move those functions to window.el.
11240 (syms_of_window): Remove corresponding declarations.
11241 (display_buffer): New function.
11242 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11243 * dispnew.c (Flast_nonminibuf_frame): New function.
11244 * buffer.c (Fpop_to_buffer): Move to window.el.
11245
112462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11247
11248 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11249
112502008-06-05 Kenichi Handa <handa@m17n.org>
11251
11252 * coding.c (detect_coding): Fix previous change.
11253 (detect_coding_system): Likewise.
11254
112552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11256
11257 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11258
11259 * keymap.c (Vminibuffer_local_filename_must_match_map):
11260 Rename from Vminibuffer_local_must_match_filename_map.
11261 (syms_of_keymap):
11262 * minibuf.c (Fcompleting_read): Adjust accordingly.
11263 * commands.h: Rename declaration as well.
11264
112652008-06-05 Kenichi Handa <handa@m17n.org>
11266
11267 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11268 family name.
11269 (Ffont_put): Likewise.
11270
11271 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11272 current font-spec.
11273
11274 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11275 is unspecified.
11276
11277 * xfaces.c (realize_x_face): If the font-related face attributes
11278 are the same as those of default face, realize a new fontset from
11279 default->fontset.
11280 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11281
112822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11283
11284 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11285 (move_it_in_display_line): New wrapper.
11286
11287 * window.c (window_scroll_pixel_based_preserve_x)
11288 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11289 (window_scroll_pixel_based, window_scroll_line_based):
11290 Use them to preserve column positions.
11291 (syms_of_window): Initialize them.
11292
11293 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11294 (HPOS . VPOS) pair.
11295
11296 * dispextern.h (move_it_in_display_line): Declare.
11297
112982008-06-05 Juanma Barranquero <lekktu@gmail.com>
11299
11300 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11301 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11302 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11303
113042008-06-04 Juanma Barranquero <lekktu@gmail.com>
11305
11306 * window.c (Fset_window_parameter): Doc fix.
11307 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11308
113092008-06-04 Joakim Verona <joakim@verona.se>
11310
11311 * window.h (struct window): Add new member window_parameters.
11312
11313 * window.c (Fwindow_parameters, Fwindow_parameter)
11314 (Fset_window_parameter): New defuns.
11315 (syms_of_window): Defsubr the new defuns.
11316 (make_window): Initialize window_parameters to nil.
11317
113182008-06-04 John Paul Wallington <jpw@pobox.com>
11319
11320 * eval.c (Fdefmacro): Doc fix.
11321
113222008-06-04 Kenichi Handa <handa@m17n.org>
11323
11324 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11325 Be sure to call setup_coding_system when we find a proper coding system.
11326 (detect_coding_system): Fix handling of coding->head_ascii.
11327
113282008-06-03 Andreas Schwab <schwab@suse.de>
11329
11330 * font.c (font_prop_validate_spacing): Fix last change.
11331
113322008-06-03 Kenichi Handa <handa@m17n.org>
11333
11334 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11335 (font_parse_fcname): Fix handling of unknown key.
11336
11337 * xfont.c (xfont_list): Try an alias.
11338
11339 * charset.c (char_charset): Return NULL if the arg charset_list is
11340 specified and C doesn't belong to any of them.
11341
113422008-06-02 Chip Coldwell <coldwell@redhat.com>
11343
11344 * font.c (font_pixel_size): Don't take cdr of an integer.
11345
113462008-06-02 Jim Meyering <meyering@redhat.com>
11347
11348 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11349 * alloc.c (xfree): Return right away for a NULL arg.
11350 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11351 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11352 * mac.c (create_apple_event_from_event_ref): Likewise.
11353 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11354 Likewise.
11355 * doprnt.c (doprnt1): Likewise.
11356 * frame.c (frame): Likewise.
11357 * keyboard.c (wipe_kboard): Likewise.
11358 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11359 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11360 * term.c (tty_default_color_capabilities, maybe_fatal)
11361 (delete_tty): Likewise.
11362 * w16select.c (string): Likewise.
11363 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11364 * w32bdf.c (w32_free_bdf_font): Likewise.
11365 * w32fns.c (w32_unload_font): Likewise.
11366 * w32font.c (w32font_close): Likewise.
11367 * window.c (size_window): Likewise.
11368 * xselect.c (receive_incremental_selection): Likewise.
11369 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11370 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11371 * w32.c (stat): Likewise.
11372
11373 Remove useless if-before-free tests.
11374 * editfns.c (Fset_time_zone_rule): Likewise.
11375 * lread.c (nosuffix): Likewise.
11376 * ralloc.c (get_bloc): Likewise.
11377 * regex.c (reg_free): Likewise.
11378 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11379 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11380 * xsmfns.c (smc_save_yourself_CB): Likewise.
11381
113822008-06-02 Kenichi Handa <handa@m17n.org>
11383
11384 * font.c (font_find_for_lface): Handle float font size.
11385 (font_open_for_lface): Likewise.
11386
11387 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11388 comparing the properties.
11389
113902008-06-01 Jason Rumney <jasonr@gnu.org>
11391
11392 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11393 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11394 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11395 Don't add empty script list.
11396 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11397
113982008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11399
11400 * Makefile.in (dot, dotdot): Remove, update users.
11401 ".." has been used elsewhere in the file for a long time.
11402 (LIBXT_STATIC): Remove conditional based on unused variable.
11403
114042008-06-01 Miles Bader <miles@gnu.org>
11405
11406 * xfaces.c (Vface_remapping_alist): New variable.
11407 (syms_of_xfaces): Initialize it.
11408 (enum named_merge_point_kind): New type.
11409 (struct named_merge_point): Add `named_merge_point_kind' field.
11410 (push_named_merge_point): Make cycle detection respect different
11411 named-merge-point kinds.
11412 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11413 Remove face-name alias resolution.
11414 (lface_from_face_name): New definition using
11415 `lface_from_face_name_no_resolve'.
11416 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11417 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11418 (get_lface_attributes): New definition that layers face-remapping on
11419 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11420 (lookup_basic_face): New function.
11421 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11422 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11423 `get_lface_attributes'.
11424 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11425 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11426 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11427
11428 * xdisp.c (init_iterator): Pass base_face_id through
11429 `lookup_basic_face' when we actually use it as a face-id.
11430 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11431 DEFAULT_FACE_ID.
11432
11433 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11434 lookup the initial face-id.
11435
11436 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11437
114382008-06-01 Juanma Barranquero <lekktu@gmail.com>
11439
11440 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11441 (Fremove_text_properties): Fix typos in docstrings.
11442
114432008-05-31 Kenichi Handa <handa@m17n.org>
11444
11445 * font.c (font_list_entities): Fix the car part of data to be
11446 stored in the cache.
11447
11448 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11449
114502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11451
11452 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11453 Add a `test' argument so another predicate than `equal' can be used.
11454 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11455 (map_char_table): Remove unused vars `c' and `i'.
11456 * lisp.h (Foptimize_char_table): Adjust declaration.
11457 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11458
114592008-05-30 Kenichi Handa <handa@m17n.org>
11460
11461 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11462 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11463 defined.
11464
114652008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11466
11467 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11468 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11469 frame-local settings for the same variable.
11470
114712008-05-30 Kenichi Handa <handa@m17n.org>
11472
11473 * fontset.c (Ffont_info): Move to font.c.
11474 (syms_of_fontset): Delete defsubr of Sfont_info.
11475
11476 * font.c (font_style_to_value, font_score): Delete casting of the
11477 args to xstcasecmp.
11478 (register_font_driver): Increment num_font_drivers only when
11479 registering the driver globally.
11480 (Ffont_info): Move from fontset.c. Handle a font object too.
11481 (syms_of_font): Defsubr Sfont_info.
11482
114832008-05-29 Kenichi Handa <handa@m17n.org>
11484
11485 * coding.h (enum define_coding_utf8_arg_index): New enum.
11486 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11487 coding_attr_utf_bom.
11488 (enum utf_bom_type): Rename from utf_16_bom_type.
11489 (struct utf_16_spec): Adjust for the above change.
11490 (struct coding_system): Add utf_8_bom in `spec' union.
11491
11492 * coding.c (CODING_UTF_8_BOM): New macro.
11493 (enum coding_category): Delete coding_category_utf_8, add
11494 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11495 coding_category_utf_8_sig.
11496 (CATEGORY_MASK_UTF_8): Delete it.
11497 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11498 (CATEGORY_MASK_UTF_8_SIG): New macros.
11499 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11500 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11501 CATEGORY_MASK_UTF_8_SIG.
11502 (CATEGORY_MASK_UTF_8): New macro.
11503 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11504 (detect_coding_utf_8): Check BOM.
11505 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11506 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11507 (encode_coding_utf_16): Likewise.
11508 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11509 (detect_coding, detect_coding_system): Handle utf-8-auto.
11510 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11511 (syms_of_coding): Fix setting up of Vcoding_category_table.
11512
115132008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11514
11515 * process.c (Faccept_process_output): If `millisec' is non-nil,
11516 `seconds' default to 0.
11517 (wait_reading_process_output): Also return non-nil if we read output
11518 from a non-running process.
11519
115202008-05-29 Jason Rumney <jasonr@gnu.org>
11521
11522 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11523 `raster' specified.
11524 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11525 in the uniscribe backend, but disallow any font that has no
11526 unicode subrange support.
11527
115282008-05-29 Juanma Barranquero <lekktu@gmail.com>
11529
11530 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11531 Fix typos in docstrings.
11532
115332008-05-29 Kenichi Handa <handa@m17n.org>
11534
11535 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11536 (Fx_family_fonts): Set frame correctly.
11537
115382008-05-28 Jason Rumney <jasonr@gnu.org>
11539
11540 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11541
115422008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11543
11544 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11545 calling build_annotations.
11546
115472008-05-28 Juanma Barranquero <lekktu@gmail.com>
11548
11549 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11550 (Fencode_coding_string):
11551 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11552 <latin-extra-code-table>: Fix typos in docstrings.
11553 (syms_of_coding) <coding-system-alist>: Doc fix.
11554 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11555
115562008-05-28 Kenichi Handa <handa@m17n.org>
11557
11558 * fontset.c (Ffont_info): Don't call font_close_object.
11559
11560 * font.c (font_parse_family_registry): Use Ffont_put to validate
11561 foundry and family.
11562 (font_delete_unmatched): Don't check spacing.
11563 (font_list_entities): Add spacing to the spec to list fonts.
11564
11565 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11566 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11567
11568 * coding.c (encode_coding_raw_text): Fix previous change.
11569 (encode_coding_object): When the dst_object is a buffer and is
11570 different from src_object, move gap to PT.
11571
115722008-05-27 Chong Yidong <cyd@stupidchicken.com>
11573
11574 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11575
115762008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11579 all branches. Compute it differently.
11580
11581 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11582
115832008-05-27 Juanma Barranquero <lekktu@gmail.com>
11584
11585 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11586 into "else if () ... else ...".
11587
115882008-05-27 Jason Rumney <jasonr@gnu.org>
11589
11590 * w32font.c (w32font_open_internal): Determine if glyph indices
11591 are likely to work here.
11592
115932008-05-27 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11596 draw overlap glyphs with appropriate highlighting.
11597
115982008-05-27 Kenichi Handa <handa@m17n.org>
11599
11600 * xfont.c (xfont_open): Fix calculation of font->average_width.
11601
116022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * casefiddle.c (casify_object): Try to guess better whether the
11605 argument is a byte or a char.
11606
116072008-05-26 Andreas Schwab <schwab@suse.de>
11608
11609 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11610 Always send multiples of format size.
11611
11612 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11613
116142008-05-26 Jason Rumney <jasonr@gnu.org>
11615
11616 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11617 (compute_metrics): Don't set failure if we just cleared the cache.
11618 (w32_weight_table): Remove unused variable.
11619 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11620 backwards compatibility.
11621
116222008-05-25 Kenichi Handa <handa@m17n.org>
11623
11624 * w32term.c (x_draw_glyph_string):
11625 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11626
11627 * xfaces.c: Delete unused function prototypes.
11628 (xstrlwr, font_frame): Delete them.
11629 (clear_face_cache): Delete unused variable.
11630
11631 * xftfont.c (xftfont_open): Delete unused variable.
11632 If underline_thickness is not 1, adjust underline_position.
11633
11634 * ftxfont.c (ftxfont_open): Delete unused variable.
11635
11636 * fontset.c (face_for_char): Optimize for the case of no charset
11637 property.
11638
11639 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11640 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11641 (otf_open, font_otf_capability, generate_otf_features)
11642 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11643 Comment out by surrounding "#if 0" and "#endif" for the moment.
11644 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11645 (syms_of_font): Codes for accessing above commented out.
11646
116472008-05-24 Eli Zaretskii <eliz@gnu.org>
11648
11649 * w32proc.c: Include dispextern.h.
11650
11651 * w32.c: Include dispextern.h.
11652
116532008-05-23 Juanma Barranquero <lekktu@gmail.com>
11654
11655 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11656 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11657 Fix typos in docstrings.
11658
116592008-05-23 Jason Rumney <jasonr@gnu.org>
11660
11661 * xsmfns.c: Remove includes that are already included by config.h.
11662
116632008-05-23 Kenichi Handa <handa@m17n.org>
11664
11665 * charset.c (Qemacs, charset_emacs): New variables.
11666 (char_charset): Fix for non-Unicode characters.
11667 (syms_of_charset): Define charset_emacs.
11668
11669 * w32term.c (x_draw_glyph_string): Be sure to update
11670 s->underline_thickness and s->underline_position. Be sure to draw
11671 underline within the current line area.
11672
11673 * xterm.c (x_draw_glyph_string): Be sure to update
11674 s->underline_thickness and s->underline_position. Be sure to draw
11675 underline within the current line area.
11676
11677 * fontset.c: Delete unused variables and add casting for char *
11678 throughout the file.
11679 (fontset_font): Try the fallback fonts of the current fontset
11680 before consulting the default fontset.
11681
11682 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11683
11684 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11685
116862008-05-22 Jason Rumney <jasonr@gnu.org>
11687
11688 * font.c: Don't include strings.h.
11689
11690 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11691
11692 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11693 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11694 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11695 to call xstrcasecmp.
11696
11697 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11698
11699 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11700
11701 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11702
11703 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11704
117052008-05-22 Kenichi Handa <handa@m17n.org>
11706
11707 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11708
11709 * font.c (font_prop_validate_style): Adjust for the format
11710 change of font_style_table.
11711
11712 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11713 two args.
11714
11715 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11716 two args.
11717
117182008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11719
11720 * minibuf.c (keys_of_minibuf): Delete.
11721 * lisp.h (keys_of_minibuf): Delete.
11722 * emacs.c (main): Don't call keys_of_minibuf.
11723
117242008-05-22 Kenichi Handa <handa@m17n.org>
11725
11726 * ftfont.c (ftfont_resolve_generic_family): Rename from
11727 ftfont_list_generic_family. Return a single family for each
11728 generic family.
11729 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11730 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11731 Call font_add_log.
11732 (ftfont_match): Call font_add_log.
11733
11734 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11735 (FONT_DEBUG): Define it.
11736 (font_add_log): Extern it.
11737 (font_assert): Rename from xassert.
11738
11739 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11740 (xfont_list_family): Call font_add_log.
11741 (xfont_match): Likewise.
11742 (memq_no_quit): Delete.
11743
11744 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11745 call of Ffont_xlfd_name.
11746
11747 * xfaces.c (struct table_entry, slant_table, weight_table)
11748 (swidth_table): Move to font.c.
11749
11750 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11751 xassert are changed to font_assert. Delete many unused variables.
11752 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11753 New variables.
11754 (struct table_entry): Move from xfaces.c and modified.
11755 (weight_table, slant_table, width_table): Move from xfaces.c and
11756 contents adjusted for the change of struct table_entry.
11757 (font_style_to_value, font_style_symbolic): Adjust for the
11758 format change of font_style_table.
11759 (font_parse_family_registry): Don't overwrite existing foundry and
11760 family of font_spec.
11761 (font_score): Fix calculation of diff for sizes.
11762 (font_sort_entites): Call font_add_log.
11763 (font_delete_unmatched): Return a newly created list.
11764 (font_list_entities): Fix previous change. Call font_add_log.
11765 (font_matching_entity, font_open_entity, font_close_entity):
11766 Call font_add_log.
11767 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11768 (Finternal_set_font_style_table): Delete.
11769 (BUILD_STYLE_TABLE): New macro.
11770 (build_style_table): New function.
11771 (Vfont_log, font_log_env_checked): New variables.
11772 (font_add_log): New function.
11773 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11774 Declare Lisp variables "font-weight-table", "font-slant-table",
11775 "font-width-table", and "font-log". Initialize font_style_table.
11776
117772008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11778
11779 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11780
117812008-05-21 Seiji Zenitani <zenitani@mac.com>
11782 Ryo Yoshitake <ryo@shiftmode.net>
11783
11784 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11785 (Vframe_alpha_lower_limit): New variable.
11786 (x_set_alpha): New function.
11787
11788 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11789
11790 * xfns.c (x-create-frame, Qalpha):
11791 Initialize the frame parameter `alpha'.
11792 * xterm.c (OPAQUE, OPACITY): New.
11793 (x_set_frame_alpha): New function.
11794 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11795
11796 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11797 * w32fns.c (w32_frame_parm_handlers): Likewise.
11798
117992008-05-20 Jason Rumney <jasonr@gnu.org>
11800
11801 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11802 truetype fonts to opentype list.
11803
118042008-05-20 Juanma Barranquero <lekktu@gmail.com>
11805
11806 * fontset.c (Ffontset_info): Doc fix.
11807 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11808 <ignore-relative-composition>: Fix typos in docstrings.
11809
11810 * font.c (syms-of-font) <font-encoding-alist>:
11811 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11812 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11813 (Ffont_otf_alternates): Doc fixes.
11814
118152008-05-20 Kenichi Handa <handa@m17n.org>
11816
11817 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11818 font.h through out the file.
11819 (FONT_DRIVERS): Rename from FONTOBJ.
11820 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11821 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11822
11823 * emacs.c (main): Call syms_of_font unconditionally.
11824
11825 * font.h (find_font_encoding): Extern it.
11826
11827 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11828 fontset.c.
194d44e7 11829 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11830 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11831 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11832 only when HAVE_WINDOW_SYSTEM is defined.
11833 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11834 when HAVE_WINDOW_SYSTEM is defined.
11835
11836 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11837 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11838
11839 * xfaces.c: Include font.h unconditionally.
11840 (merge_face_ref, merge_face_vectors)
11841 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11842
118432008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11844
11845 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11846 indirect_variable.
11847 * eval.c (lisp_indirect_variable): New fun.
11848 (Fuser_variable_p): Use it.
11849
118502008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11851
11852 * lisp.h (indirect_variable):
11853 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11854 Use Lisp_Symbol pointers rather than Lisp_Object.
11855 Adjust callers.
11856 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11857 To this end, change calling-convention.
11858
11859 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11860 if some non-hidden buffers are selected by string&pred.
11861
118622008-05-19 Chong Yidong <cyd@stupidchicken.com>
11863
11864 * process.c (wait_reading_process_output): Always check status
11865 when in batch mode.
11866
118672008-05-19 Kenichi Handa <handa@m17n.org>
11868
11869 * font.c (font_list_entities): Fix handling of cache.
11870 (font_matching_entity): Likewise.
11871
11872 * ftfont.c (cs_iso8859_1): Delete.
11873 (ft_face_cache): New variable.
11874 (struct ftfont_info): New member fc_charset_idx.
11875 (ftfont_build_basic_charsets): Delete.
11876 (fc_charset_table): New variable.
11877 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11878 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11879 Callers changed.
11880 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11881 (ftfont_spec_pattern): New argument fc_charset_idx.
11882 Check registry more rigidly. Change callers.
11883 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11884 change of :font-entity property of the font.
11885
11886 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11887 property of the font.
11888
118892008-05-18 Juanma Barranquero <lekktu@gmail.com>
11890
11891 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11892 (Funencodable_char_position, Fcheck_coding_systems_region)
11893 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11894 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11895 (Ffind_operation_coding_system, Fset_coding_system_priority)
11896 (Fcoding_system_eol_type): Doc fixes.
11897
118982008-05-17 Glenn Morris <rgm@gnu.org>
11899
11900 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11901
119022008-05-16 Eli Zaretskii <eliz@gnu.org>
11903
11904 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11905 and st_gid.
11906
11907 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11908 HAVE_WINDOW_SYSTEM is not defined.
11909
11910 * xfaces.c (merge_face_ref, merge_face_vectors)
11911 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11912 HAVE_WINDOW_SYSTEM is defined.
11913 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11914
119152008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11916
11917 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11918
119192008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11920
11921 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11922
119232008-05-15 Kenichi Handa <handa@m17n.org>
11924
11925 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11926 preference.
11927
119282008-05-15 Glenn Morris <rgm@gnu.org>
11929
11930 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11931
119322008-05-15 Chong Yidong <cyd@stupidchicken.com>
11933
11934 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11935 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11936
11937 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11938
119392008-05-15 Kenichi Handa <handa@m17n.org>
11940
11941 * ftfont.c (ftfont_list): Downcase family name to check generic
11942 families.
11943
11944 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11945 font-spec for QCfont value.
11946
11947 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11948 buffer. Check the return value of it.
11949
119502008-05-14 Jason Rumney <jasonr@gnu.org>
11951
11952 * w32term.c (w32_get_glyph_overhangs): Remove.
11953 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11954
119552008-05-14 Kenichi Handa <handa@m17n.org>
11956
11957 * font.c (font_prop_validate): Make nil a valid value.
11958 (font_clear_cache): Check if the cached vector of entities is nil
11959 or not.
11960
119612008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11962
11963 * emacs.c (main_thread): Conditionalize on
11964 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11965 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11966
11967 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11968 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11969 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11970
119712008-05-14 Kenichi Handa <handa@m17n.org>
11972
11973 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11974 has no corresponding coding system.
11975
119762008-05-14 Jason Rumney <jasonr@gnu.org>
11977
11978 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11979
11980 * w32font.h (w32font_open_internal): Update declaration.
11981
11982 * w32font.c (w32font_open_internal): Change last argument from
11983 w32font_info struct to font object. Fill in font object from
11984 font_entity. Get Outline metrics if possible. Use them to
11985 calculate underline position and thickness. Use xlfd name as name
11986 property. Don't set codepage.
11987 (w32font_open): Pass font_object to w32font_open_internal. Don't
11988 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11989 (w32font_draw): Use s->font.
11990 (clear_cached_metrics): Don't clear non-existent blocks.
11991
11992 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11993 font was not found.
11994 (x_draw_glyph_string): Use underline position and thickness from font.
11995
11996 * w32uniscribe.c (uniscribe_open): Pass font_object to
11997 w32font_open_internal.
11998
119992008-05-14 Kenichi Handa <handa@m17n.org>
12000
12001 These changes are to delete all legacy font-handling codes, and
12002 make Emacs use only font-backends.
12003
12004 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12005 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12006
12007 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12008
12009 * charset.h (Vcharset_non_preferred_head)
12010 (Vcurrent_iso639_language): Extern them.
12011
12012 * charset.c (Vcharset_non_preferred_head): New variable.
12013 (Vcurrent_iso639_language): New variable.
12014 (syms_of_charset): Declare it as a Lisp variable.
12015 (char_charset): Don't check non preferred charsets. As a last
12016 resort, return charset_unicode.
12017 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12018
12019 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12020 conditionals. Don't check enable_font_backend. Delete all codes
12021 used only when USE_FONT_BACKEND is not defined.
12022
12023 * dispextern.h (struct glyph_string): Change type of `font' to
12024 `struct font *'.
12025 (struct glyph_string): New member underline_position and
12026 underline_thickness.
12027 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12028 (struct face): Change type of `font' to `struct font *'. Remove
12029 members `font_name', `font_info_id'.
12030 (per_char_metric, encode_char): Delete externs.
12031 (calc_pixel_width_or_height): Adjust the prototype.
12032
12033 * emacs.c (enable_font_backend): Delete extern.
12034 (main): Don't set enable_font_backend. Don't check the command
12035 line argument "-disable-font-backend".
12036
12037 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12038 (enum font_property_index): New members FONT_DPI_INDEX,
12039 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12040 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12041 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12042 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12043 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12044 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12045 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12046 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12047 (struct font_spec, struct font_entity): New structs.
12048 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12049 (struct font): Many members from old "struct font_info" moved to
12050 here. Members font and entity deleted.
12051 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12052 the new font-related objects.
12053 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12054 (CHECK_FONT_GET_OBJECT): Likewise.
12055 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12056 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12057 (struct font_driver): New members case_sensitive anc check. Type
12058 of the member list and open changed.
12059 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12060 (font_symbolic_width, font_find_object, font_get_spec)
12061 (font_set_lface_from_name): Delete extern.
12062 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12063
12064 * font.c: Include <strings.h>.
12065 (enable_font_backend): Delete it.
12066 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12067 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12068 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12069 (null_string): Delete it.
12070 (null_vector): Make it static.
12071 (font_family_alist): Delete it.
12072 (Qnormal): Extern it.
12073 (QCextra, QClanguage): Delete it.
12074 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12075 (font_make_spec, font_make_entity, font_make_object)
12076 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12077 the string. Callers changed.
12078 (font_pixel_size): Adjusted for the format change of font-related
12079 objects.
12080 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12081 (font_style_to_value, font_style_symbolic): New function.
12082 (build_font_family_alist): Delete it.
12083 (font_registry_charsets): Use Fassoc_string instead of
12084 assq_no_quit.
12085 (font_prop_validate_symbol): Don't return null_string.
12086 (font_prop_validate_style): Adjusted for the change of
12087 style-related values in a font vector.
12088 (font_property_table): Delete entries for QClanguage and
12089 QCantialias, add entries for QCavgwidth.
12090 (get_font_prop_index): Delete the 2nd argument FROM.
12091 (font_prop_validate): Arguments changed.
12092 (font_put_extra): Adjusted for the change of font-related objects.
12093 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12094 (font_parse_fcname, font_unparse_fcname)
12095 (font_prepare_composition): Likewise.
12096 (font_parse_family_registry): Renamed from font_merge_old_spec.
12097 (otf_open): Delete the 1st arg entity.
12098 (font_otf_capability): Adjusted for the above change.
12099 (font_score): New arg alternate_families. Adjusted for the change
12100 of font-related objects.
12101 (font_sort_entites): New arg best_only.
12102 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12103 Delete them.
12104 (font_match_p): Check alternate families.
12105 (font_find_object): Delete it.
12106 (font_check_object): New function.
12107 (font_clear_cache): Adjusted for the change of font-related objects.
12108 (font_delete_unmatched): New arg.
12109 (font_list_entities): Call font_driver->list with a spec that
12110 doesn't specify style-related properties.
12111 (font_matching_entity): Arguments changed. Caller changed.
12112 (font_open_entity): Adjusted for the change of font-related objects.
12113 (font_close_object, font_has_char, font_encode_char)
12114 (font_get_name, font_get_spec): Likewise.
12115 (font_spec_from_name, font_clear_prop, font_update_lface):
12116 New functions.
12117 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12118 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12119 (font_at): Adjusted for the change of font-related objects.
12120 (font_range): New function.
12121 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12122 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12123 (Fcopy_font_spec, Fmerge_font_spec): New function.
12124 (Ffont_family_list): Renamed from list-families.
12125 (Finternal_set_font_style_table): Arguments changed.
12126 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12127 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12128 change of font-related objects.
12129 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12130
12131 * fontset.h (struct font_info): Delete it. Most members go to
12132 struct font.
12133 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12134 (enum FONT_SPEC_INDEX): Delete it.
12135 (font_info, list_fonts_func, load_font_func, query_font_func)
12136 (set_frame_fontset_func, find_ccl_program_func)
12137 (get_font_repertory_func, new_fontset_from_font_name): Delete
12138 externs.
12139 (fontset_from_font_name): Extern it.
12140 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12141 (FONT_INFO_FROM_FACE): Deleted.
12142 (face_for_font): Adjust prototype.
12143
12144 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12145 conditionals. Don't check enable_font_backend. Delete all codes
12146 used only when USE_FONT_BACKEND is not defined.
12147 (get_font_info_func, list_font_func, load_font_func)
12148 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12149 (get_font_repertory_func): Delete them.
12150 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12151 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12152 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12153 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12154 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12155 (fontset_compare_rfontdef): New function.
12156 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12157 rfont-defs by qsort. Adjusted for the change of font-group vector.
12158 (load_font_get_repertory): Deleted.
12159 (fontset_find_font): Use new macros to ref/set elements of
12160 font-def and rfont-def.
12161 (fontset_font): Fix the timing of remembering that no font for C.
12162 (free_face_fontset): Do nothing if the face has no fontset.
12163 (face_suitable_for_char_p): Use new macros to ref/set elements of
12164 rfont-def.
12165 (face_for_char): Likewise. Call face_for_char with font_object.
12166 (fs_load_font): Delete. Delete #pragma surrounding it.
12167 (fs_query_fontset): Use strcasecmp instead of strcmp.
12168 (generate_ascii_font_name): Adjusted for the format change of
12169 font-spec.
12170 (Fset_fontset_font): Likewise. Use new macros to set elements of
12171 font-def.
12172 (Fnew_fontset): Use font_unparse_xlfd to generate
12173 FONTSET_ASCII (fontset).
12174 (new_fontset_from_font_name): Deleted.
12175 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12176 a fontset is already created for the font. FIx updating of
12177 Vfontset_alias_alist.
12178 (fontset_ascii_font): Deleted.
12179 (Ffont_info): Adjusted for the format change of font-spec.
12180 (Finternal_char_font): Likewise.
12181 (Ffontset_info): Likewise.
12182 (syms_of_fontset): Don't check load_font_func.
12183
12184 * fns.c (internal_equal): Handle PREV_FONT.
12185
12186 * frame.h: Delete USE_FONT_BACKEND conditional.
12187
12188 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12189 conditionals. Don't check enable_font_backend. Delete all codes
12190 used only when USE_FONT_BACKEND is not defined.
12191 (x_set_font): Call x_new_font, not x_new_fontset2.
12192 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12193 already set for the frame.
12194
12195 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12196 a font-entity by font_make_entity. Use font_intern_prop instead
12197 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12198 font property. If a font is scalable, set avgwidth property to 0.
12199 Set font-entity property by font_put_extra.
12200 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12201 (ffont_driver): Adjusted for the change of struct font_driver.
12202 (ftfont_spec_pattern): New function.
12203 (ftfont_list): Return a list, not vector.
12204 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12205 (ftfont_list_family): Don't downcase names.
12206 (ftfont_free_entity): Deleted.
12207 (ftfont_open): Return a font-object. Adjusted for the change of
12208 struct font. Get underline_thickness and underline_position from
12209 font property. Don't update dpyinfo->smallest_font_height and
12210 dpyinfo->smallest_char_width.
12211 (ftfont_close): Don't free `struct font'.
12212 (ftfont_has_char): Adjusted for the format change of font-entity.
12213 (ftfont_encode_char, ftfont_text_extents): Likewise.
12214
12215 * ftxfont.c (ftxfont_list): Return a list, not vector.
12216 (ftxfont_open): Return a font-object. Adjusted for the change of
12217 struct font. Get underline_thickness and underline_position from
12218 font property. Don't update dpyinfo->smallest_font_height and
12219 dpyinfo->smallest_char_width.
12220 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12221 (ftxfont_draw): Adjusted for the change of struct font.
12222
12223 * image.c (image_ascent): Don't include "charset.h". Include
12224 "character.h" and "font.h".
12225
12226 * lisp.h (enum pvec_type): New member PREV_FONT.
12227 (Fassoc_string): EXFUN it.
12228
12229 * print.c: Include font.h.
12230 (print_object): Handle font-related objects.
12231
12232 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12233 conditionals. Don't check enable_font_backend. Delete all codes
12234 used only when USE_FONT_BACKEND is not defined.
12235 (handle_auto_composed_prop): Do nothing if it->f is not on a
12236 window system. Check how many following characters can be
12237 displayed by the same font.
12238 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12239 'struct font *'.
12240 (get_char_face_and_encoding): Assign the whole encoding task to
12241 the `encode-char' method of a font driver.
12242 (fill_composite_glyph_string): Adjusted for the change of `struct
12243 face' and `struct glyph_string'.
12244 (fill_glyph_string): Likewise.
12245 (get_per_char_metric): Arguments changed.
12246 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12247 and `struct glyph_string'.
12248 (produce_stretch_glyph, calc_line_height_property)
12249 (x_produce_glyphs): Likewise.
12250
12251 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12252 conditionals. Don't check enable_font_backend. Delete all codes
12253 used only when USE_FONT_BACKEND is not defined. Use
12254 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12255 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12256 (Qp): Extern them.
12257 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12258 Deleted.
12259 (struct font_name): Deleted.
12260 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12261 (compare_fonts_by_sort_order): New function.
12262 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12263 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12264 Deleted.
12265 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12266 compare_fonts_by_sort_order.
12267 (Fx_font_family_list): Call Ffont_family_list.
12268 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12269 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12270 (face_symbolic_slant, face_symbolic_swidth)
12271 (split_font_name_into_vector, build_font_name_from_vector)
12272 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12273 (font_rescale_ratio, split_font_name, build_font_name)
12274 (free_font_names, sort_fonts, x_face_list_fonts)
12275 (face_font_available_p, sorted_font_list, cmp_font_names)
12276 (font_list_1, concat_font_list, font_list, remove_duplicates):
12277 Deleted.
12278 (Fx_list_fonts): Use Ffont_list.
12279 (LFACE_AVGWIDTH): Deleted.
12280 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12281 by FONTP.
12282 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12283 (set_lface_from_font_name): Delete it.
12284 (set_lface_from_font): Renamed from
12285 set_lface_from_font_and_fontset. Caller changed. Don't set
12286 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12287 for face.
12288 (merge_face_vectors): Copy font-spec if necessary.
12289 Clear properties of the font-spec if necessary.
12290 (merge_face_ref): Clear properties of the font-spec if necessary.
12291 (Finternal_set_lisp_face_attribute): Likewise.
12292 (set_font_frame_param): Use font_load_for_lface to load a
12293 font-object, and call Fmodify_frame_parameters with it.
12294 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12295 font name by Ffont_xlfd_name.
12296 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12297 QCslant, and QCwidth.
12298 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12299 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12300 Compare fonts by EQ.
12301 (lookup_non_ascii_face): Deleted.
12302 (face_for_font): The 2nd argument changed.
12303 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12304 Check atomic font properties by case insensitive.
12305 (realize_non_ascii_face): Set face->overstrike correctly.
12306 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12307 (dump_realized_face): Get font name from
12308 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12309
12310 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12311 conditionals. Don't check enable_font_backend. Delete all codes
12312 used only when USE_FONT_BACKEND is not defined.
12313 (xic_create_xfontset): Original code deleted and renamed from
12314 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12315 (x_make_gc): Don't set GCFont in GCs.
12316 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12317 opened by "fixed".
12318 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12319 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12320 get_font_repertory_func.
12321
12322 * xfont.c: Include <stdlib.h> and "ccl.h".
12323 (struct xfont_info): New structure.
12324 (xfont_query_font): Deleted.
12325 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12326 moved from xterm.c.
12327 (xfont_driver): Adjusted for the change of struct font_driver.
12328 (compare_font_names): New function.
12329 (xfont_list_pattern): Sort font names case insensitively. Make
12330 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12331 (xfont_list): Return a list, not vector.
12332 (xfont_match): If the font doesn't have QCname property, generate
12333 a name from the other font properties.
12334 (xfont_open): Return a font-object. Adjusted for the change of
12335 struct font. Get underline_thickness and underline_position from
12336 font property. Don't update dpyinfo->smallest_font_height and
12337 dpyinfo->smallest_char_width.
12338 (xfont_close): Don't free struct font.
12339 (xfont_prepare_face): Adjusted for the change of struct font.
12340 (xfont_done_face): Deleted.
12341 (xfont_has_char): Adjusted for the change of struct font.
12342 (xfont_encode_char, xfont_draw): Likewise.
12343 (xfont_check): New function.
12344
12345 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12346 callback function.
12347 (xftfont_match): Adjusted for the format change of font-entity.
12348 (xftfont_open): Adjusted for the format change of font-entity and
12349 font-object. Adjusted for the change of struct font. Return a
12350 font-object. Don't update dpyinfo->smallest_font_height and
12351 dpyinfo->smallest_char_width.
12352 (xftfont_close): Block input while calling XftFontClose.
12353 (xftfont_prepare_face): Don't block input while calling
12354 xftfont_get_colors. Adjusted for the change of struct font.
12355 (xftfont_shape): Return value of error case fixed.
12356
12357 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12358
12359 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12360 conditionals.
12361 (FONT_WIDTH): Return (f)->max_width.
12362 (struct x_display_info): Delete member `font'.
12363 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12364 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12365 (struct x_output): Change type of `font' to `struct font *'.
12366
12367 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12368 conditionals. Don't check enable_font_backend. Delete all codes
12369 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12370 (x_per_char_metric, x_encode_char): Deleted.
12371 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12372 (x_compute_glyph_string_overhangs): Adjusted for the change of
12373 `struct face'.
12374 (x_draw_glyph_string_foreground)
12375 (x_draw_composite_glyph_string_foreground): Likewise.
12376 (x_draw_glyph_string): Likewise. Use font->underline_position and
12377 font->underline_thickness.
12378 (x_new_font): Renamed from x_new_fontset2.
12379 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12380 (x_check_font): Call `check' method of a font driver.
12381 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12382 (x_query_font, x_get_font_repertory): Deleted.
12383 (x_find_ccl_program): Renamed and moved to xfont.c.
12384 (x_redisplay_interface): Adjusted for the change of `struct
12385 redisplay_interface'.
12386
12387 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12388 conditionals. Don't check enable_font_backend. Delete all codes
12389 used only when USE_FONT_BACKEND is not defined. Surround non-used
12390 code by "#ifdef OLD_FONT" and "endif".
12391 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12392
12393 * w32font.h (struct w32font_info): New member.
12394 (FONT_COMPAT): New macro.
12395 (w32font_open_internal): Prototype adjusted.
12396
12397 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12398 OLD_FONT" and "endif".
12399
12400 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12401 conditionals. Don't check enable_font_backend. Delete all codes
12402 used only when USE_FONT_BACKEND is not defined.
12403 (w32font_open): Return a font-object. Make a font-object by
12404 font_make_object. Adjusted for the change of struct w32font_info.
12405 (w32font_close): Don't free struct font. Adjusted for the change
12406 of struct w32font_info.
12407 (w32font_encode_char, w32font_text_extents, w32font_draw):
12408 Adjusted for the change of struct w32font_info.
12409 (w32font_draw): Likewise.
12410 (w32font_list_internal): Return a list, not vector.
12411 (w32font_open_internal): Change the 4th arg to font-object.
12412 Adjusted for the change of struct w32font_info and font-object format.
12413 (add_font_name_to_list): Don't downcase names.
12414 (w32_enumfont_pattern_entity): Make a font-entity by
12415 font_make_entity. Adjusted for the format change of font-entity.
12416 Use FONT_SET_STYLE to set a style-related font property. If a
12417 font is scalable, set avgwidth property to 0. Set font-entity
12418 property by font_put_extra.
12419 (font_matches_spec): Adjusted for the format change of font-entity.
12420 (w32_weight_table, w32_decode_weight): New variables.
12421 (w32_encode_weight): New function.
12422 (fill_in_logfont): Adjusted for the format change of font-spec.
12423 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12424 weight value.
12425 (w32font_driver): Adjusted for the change of struct font_driver.
12426
12427 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12428 conditionals. Don't check enable_font_backend. Surround non-used
12429 code by "#ifdef OLD_FONT" and "endif".
12430 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12431 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12432
12433 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12434 conditionals. Don't check enable_font_backend. Delete all codes
12435 used only when USE_FONT_BACKEND is not defined. Surround non-used
12436 code by "#ifdef OLD_FONT" and "endif".
12437
12438 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12439 (uniscribe_open): Return value changed to font-object.
12440 Adjusted for the format change of font-object.
12441 (uniscribe_otf_capability): Adjusted for the change of struct font.
12442 (add_opentype_font_name_to_list): Don't downcase names.
12443 (uniscribe_font_driver): Adjusted for the change of struct
12444 font_driver.
12445
124462008-05-13 Chong Yidong <cyd@stupidchicken.com>
12447
12448 * dispnew.c (update_frame_1): Check if tty output is still valid
12449 before flushing it.
12450
124512008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12452
12453 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12454 to Gtk+ menus.
12455
124562008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12457
12458 * dired.c (file_name_completion): Tweak the code so as to always do it
12459 in a single pass. Tighten the scope of some variables.
12460
12461 * dired.c (Qdefault_directory): New var.
12462 (file_name_completion): Use it instead of Fexpand_file_name.
12463 (syms_of_dired): Initialize it.
12464
124652008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12466
12467 * fileio.c (double_dollars): Remove dead code.
12468
124692008-05-10 Eli Zaretskii <eliz@gnu.org>
12470
12471 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12472 Mention w32-get-true-file-attributes in doc string.
12473
12474 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12475
124762008-05-09 Glenn Morris <rgm@gnu.org>
12477
12478 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12479 2008-04-23.
12480
124812008-05-09 Eli Zaretskii <eliz@gnu.org>
12482
12483 Support for reporting owner and group of each file on MS-Windows:
12484 * dired.c (stat_uname, stat_gname): New functions, with special
12485 implementation for w32.
12486 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12487
12488 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12489 (dflt_group_name): New static variable.
12490 (dflt_group): Rename from the_group.
12491 (init_user_info): Init dflt_group fields. Get user's group name
12492 from LookupAccountSid.
12493 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12494 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12495 New initialization states.
12496 (globals_of_w32): Initialize them to zero. Initialize the default
12497 group name to "None".
12498 (GetFileSecurity_Name): New global var, the name of the function
12499 to call for GetFileSecurity.
12500 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12501 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12502 (get_file_security, get_security_descriptor_owner)
12503 (get_security_descriptor_group, is_valid_sid)
12504 (get_file_security_desc, get_rid, get_name_and_id)
12505 (get_file_owner_and_group): New functions.
12506 (stat): Use get_file_security_desc and get_file_owner_and_group to
12507 report the owner and primary group of each file. Don't ignore the
12508 high 32 bits of file's size, now that st_size is 64-bit wide.
12509 Fix test when to get true file attributes.
12510 (init_user_info): Use get_rid instead of equivalent inline code.
12511 (fstat): Don't ignore the high 32 bits of file's size.
12512
125132008-05-09 Chong Yidong <cyd@stupidchicken.com>
12514
12515 * image.c (png_load): Use correct bit-depth for setting background
12516 color.
12517
125182008-05-08 Eli Zaretskii <eliz@gnu.org>
12519
12520 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12521 epa-hook.elc.
12522
125232008-05-08 Juanma Barranquero <lekktu@gmail.com>
12524
12525 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12526
125272008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12528
12529 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12530 because the original parameters are in pure storage now.
12531 (mac_window): Remove unused params. Update callers.
12532
125332008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12534
12535 * lread.c (substitute_object_recurse): Use lower-level primitives.
12536 Don't signal errors when traversing sub-char-tables.
12537 Don't loop over all the possible characters when traversing char-tables.
12538
12539 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12540 just like we do in print.c.
12541
125422008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12543
12544 * minibuf.c (Ftry_completion): Remove code left over from when we used
12545 scmp instead of Fcompare_strings.
12546
125472008-05-04 Juanma Barranquero <lekktu@gmail.com>
12548
12549 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12550
125512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12552
12553 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12554 Create bitmap context in native byte order.
12555
12556 * macterm.c (XDrawLine)
12557 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12558 context in native byte order.
12559
125602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12561
12562 * config.in: Regenerate.
12563
12564 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12565 New definitions for Image I/O support.
12566 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12567 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12568 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12569 (mac_data_provider_release_data, image_load_image_io)
12570 [USE_MAC_IMAGE_IO]: New functions.
12571 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12572 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12573 (init_image_func_pointer) [MAC_OSX]: Remove function.
12574 (image_load_quartz2d) [MAC_OSX]: Check availability of
12575 CGImageCreateWithPNGDataProvider at compile time.
12576 Use lowercase `false' for boolean constant.
12577 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12578 Use image_load_image_io.
12579 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12580 Don't check MyCGImageCreateWithPNGDataProvider.
12581 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12582 Don't call init_image_func_pointer.
12583
12584 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12585
12586 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12587 Make variable non-static.
12588 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12589 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12590
12591 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12592 (RED_FROM_ULONG): Mask off higher bits.
12593 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12594
12595 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12596 Include AvailabilityMacros.h.
12597 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12598 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12599
126002008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * chartab.c (Fset_char_table_range): If range is t, really set all
12603 chars to that value.
12604
126052008-05-03 Eli Zaretskii <eliz@gnu.org>
12606
12607 * dired.c (Ffile_attributes): Don't allow the device number become
12608 negative.
12609
126102008-05-02 Daiki Ueno <ueno@unixuser.org>
12611
12612 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12613
126142008-05-02 Juri Linkov <juri@jurta.org>
12615
12616 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12617 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12618 DEFAULT argument as a list of default values in docstrings.
12619
126202008-05-01 Chong Yidong <cyd@stupidchicken.com>
12621
12622 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12623
126242008-05-01 Martin Rudalics <rudalics@gmx.at>
12625
12626 * dispnew.c (change_frame_size_1): Preserve small windows when
12627 shrinking frames by calling set_window_height|width with third
12628 arg 2.
12629
12630 * window.h (struct window): Replace field too_small_ok by field
12631 resize_proportionally.
12632
12633 * window.c (make_window): Initialize resize_proportionally.
12634 (enlarge_window): Temporarily set resize_proportionally to make
12635 sure that shrink_windows does scale the window proportionally.
12636 (shrink_windows): When window has resize_proportionally set try
12637 to shrink it proportionally by stealing from other windows.
12638 (struct saved_window, Fset_window_configuration)
12639 (compare_window_configurations): Handle resize_proportionally.
12640 (WINDOW_TOTAL_SIZE): New macro.
12641 (window_min_size, shrink_windows, size_window): Use it.
12642 (check_min_window_sizes): Remove. Invalid values of
12643 window-min-height|width are handled by window_min_size_2 now.
12644 (size_window, Fsplit_window, enlarge_window)
12645 (adjust_window_trailing_edge, grow_mini_window): Don't call
12646 check_min_window_sizes.
12647 (window_min_size_2, window_min_size_1, window_min_size):
12648 New argument safe_p for retrieving "safe" minimum sizes.
12649 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12650 (adjust_window_trailing_edge, grow_mini_window):
12651 Adjust arguments of window_min_size... functions.
12652 (shrink_windows): Argument min_size removed. New argument
12653 safe_p allows shrinking windows to their safe minimum sizes.
12654 Calculate minimum size and decide whether a window shall be
12655 deleted for each window individually.
12656 (size_window): When nodelete_p equals 2, tell shrink_windows to
12657 delete windows only if their new minimum size is no more safe.
12658 (shrink_window_lowest_first): Call window_min_size_1 to make
12659 sure to preserve modeline of bottom-most window when resizing
12660 the minibuffer.
12661 (Fset_window_configuration, Fcurrent_window_configuration)
12662 (compare_window_configurations): Do not handle
12663 window-min-height|width any more.
12664 (syms_of_window): Clarify window-min-height|width doc-strings.
12665
126662008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12667
12668 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12669 some more. Copy some of the code from Ftry_completions.
12670 Remove special case code that dates back to initial revision when the
12671 slash was only added when necessary and that can't trigger nowadays.
12672
126732008-04-27 Kenichi Handa <handa@m17n.org>
12674
12675 * font.c (font_prop_validate): Signal `error' instead of `font'.
12676
126772008-04-29 Jason Rumney <jasonr@gnu.org>
12678
12679 * w32fns.c (Fw32_battery_status): New defun.
12680 (syms_of_w32fns): Defsubr it.
12681
126822008-04-28 Andreas Schwab <schwab@suse.de>
12683
12684 * dired.c (file_name_completion): Fix another mixing of encoded
12685 and decoded names.
12686
126872008-04-28 Juanma Barranquero <lekktu@gmail.com>
12688
12689 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12690
126912008-04-27 Juanma Barranquero <lekktu@gmail.com>
12692
12693 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12694
126952008-04-27 Andreas Schwab <schwab@suse.de>
12696
12697 * dired.c (file_name_completion): Fix inappropriate mixing of
12698 encoded and decoded names.
12699
12700 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12701
12702 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12703
127042008-04-26 Eli Zaretskii <eliz@gnu.org>
12705
12706 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12707 2008-03-31, it's not needed anymore with `struct stat' definition
12708 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12709 for the same reasons.
12710
127112008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12712
12713 * m/sparc.h: Additional redefinitions for GNU/Linux.
12714
127152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12716
12717 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12718 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12719 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12720 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12721 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12722 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12723 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12724 Likewise.
12725
12726 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12727 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12728 (mac_ax_number_of_characters): Add externs.
12729 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12730 [USE_MAC_TSM]: Likewise.
12731 (mac_handle_text_input_event) [MAC_OSX]:
12732 Handle kEventTextInputOffsetToPos for no active input area case.
12733 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12734 (mac_handle_document_access_event)
12735 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12736 (install_application_handler) [MAC_OSX]: Register handlers for
12737 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12738 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12739 Register mac_handle_document_access_event.
12740
12741 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12742 Make functions non-static.
12743
127442008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12745
12746 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12747 (read_file_name_completion_ignore_case, insert_default_directory)
12748 (Qdefault_directory): Move to minibuffer.el.
12749 (Fread_file_name): Call the new `read-file-name' instead.
12750
127512008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12752
12753 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12754 Make function non-static.
12755 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12756 Remove function.
12757 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12758 Move to mactoolbox.c.
12759 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12760
12761 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12762 (mac_rect_make): New macro.
12763
12764 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12765 instead of float.
12766 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12767 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12768 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12769 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12770 CGRectMake.
12771 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12772 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12773 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12774 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12775 instead of WindowRef in argument type.
12776 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12777 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12778 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12779 instead of DISPLAY. All uses changed.
12780 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12781 (x_calc_absolute_position): Simplify so as not to use
12782 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12783
12784 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12785 instead of WindowRef in argument type.
12786 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12787 [TARGET_API_MAC_CARBON]: Remove externs.
12788 (create_apple_event, mac_event_parameters_to_lisp)
12789 [TARGET_API_MAC_CARBON]: Add externs.
12790
12791 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12792 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12793 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12794 is clicked.
12795 (x_activate_menubar): Remove extern for saved_menu_event_location.
12796 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12797 Move from mac.c.
12798
127992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12800
12801 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12802 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12803
128042008-04-23 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12807 attributes only for local files.
12808
12809 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12810 default to Qlocal.
12811
128122008-04-22 Juri Linkov <juri@jurta.org>
12813
12814 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12815 read-buffer-to-switch instead of using the letter "B".
12816
128172008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12818
12819 * fileio.c (Qdefault_directory): New variable.
12820 (Fread_file_name): Use it to pass `dir' to the completion functions.
12821
128222008-04-20 Chong Yidong <cyd@stupidchicken.com>
12823
12824 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12825
128262008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12827
12828 * keyboard.c (Vpre_help_message): Remove.
12829 (show_help_echo): Remove default C code.
12830
12831 * dired.c (directory_files_internal, file_name_completion):
12832 Only call ENCODE_FILE if the string is indeed decoded.
12833
128342008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12835
12836 * Makefile.in (TOOLKIT_DEFINES): Remove.
12837 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12838
128392008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12840
12841 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12842 (mactoolbox.o): New target.
12843
12844 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12845 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12846
12847 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12848 Use mac_set_frame_window_background instead of XSetWindowBackground.
12849 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12850 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12851 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12852 instead of SetWindowTitleWithCFString.
12853 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12854 Move function to mactoolbox.c.
12855 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12856 Use mac_set_window_modified instead of SetWindowModified.
12857 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12858 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12859 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12860 FrontNonFloatingWindow. Use mac_activate_window instead of
12861 ActivateWindow. Use mac_active_non_floating_window instead of
12862 ActiveNonFloatingWindow.
12863 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12864 Use mac_show_hourglass and mac_hide_hourglass.
12865 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12866 instead of GetGlobalMouse.
12867 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12868 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12869 Use mac_bring_window_to_front instead of BringToFront.
12870 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12871 mactoolbox.c.
12872 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12873 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12874 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12875 mactoolbox.c.
12876
12877 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12878 (XtPointer): Move typedef from macmenu.c.
12879 (enum button_type): Move enum from macmenu.c.
12880 (widget_value): Move typedef from macmenu.c.
12881 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12882 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12883 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12884 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12885 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12886 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12887 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12888 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12889 (Selection): Move typedef from macselect.c.
12890 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12891 macterm.c.
12892 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12893 (mac_is_window_collapsed, mac_bring_window_to_front)
12894 (mac_send_window_behind, mac_hide_window, mac_show_window)
12895 (mac_collapse_window, mac_front_non_floating_window)
12896 (mac_active_non_floating_window, mac_activate_window)
12897 (mac_move_window_structure, mac_move_window, mac_size_window)
12898 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12899
12900 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12901 (enum mac_menu_kind): Move enum to mactoolbox.c.
12902 (min_menu_id): Move variable to mactoolbox.c.
12903 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12904 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12905 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12906 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12907 [TARGET_API_MAC_CARBON]: Likewise.
12908 (XtPointer): Move typedef to macgui.h.
12909 (enum button_type): Move enum to macgui.h.
12910 (widget_value): Move typedef to macgui.h.
12911 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12912 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12913 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12914 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12915 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12916 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12917 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12918 (popup_activated_flag): Make variable non-static.
12919 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12920 (add_menu_item, fill_menu, dispose_menus):
12921 Move functions to mactoolbox.c.
12922 (restore_show_help_function, menu_target_item_handler)
12923 (install_menu_target_item_handler, mac_handle_dialog_event)
12924 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12925 [TARGET_API_MAC_CARBON]: Likewise.
12926 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12927 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12928 (find_and_call_menu_selection, name_is_separator): Make function
12929 non-static.
12930 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12931 to mactoolbox.c.
12932 (set_frame_menubar): Don't call install_menu_quit_handler.
12933 (menu_item_selection): New variable.
12934 (mac_menu_show): Use create_and_show_popup_menu.
12935 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12936 selection but set variable menu_item_selection. All uses changed.
12937 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12938 Call install_menu_quit_handler. Move to mactoolbox.c.
12939
12940 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12941 (Selection): Move typedef to macgui.h.
12942 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12943 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12944 Make variables non-static.
12945 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12946 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12947 Make functions non-static.
12948 (Vmac_service_selection) [MAC_OSX]: Likewise.
12949 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12950 (mac_valid_selection_target_p, mac_clear_selection)
12951 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12952 (mac_put_selection_value, mac_selection_has_target_p)
12953 (mac_get_selection_value, mac_get_selection_target_list)
12954 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12955 Move functions to mactoolbox.c.
12956 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12957 Likewise.
12958 (copy_scrap_flavor_data, mac_handle_service_event)
12959 (install_service_handler) [MAC_OSX]: Likewise.
12960 (syms_of_macselect) <Vmac_dnd_known_types>:
12961 Use mac_dnd_default_known_types.
12962
12963 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12964 Move to mactoolbox.c.
12965 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12966 (Fx_selection_owner_p): Add EXFUN.
12967 (install_window_handler, remove_window_handler, XSetWindowBackground):
12968 Remove externs.
12969 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12970 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12971 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12972 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12973 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12974 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12975 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12976 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12977 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12978 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12979 (mac_valid_selection_target_p, mac_clear_selection)
12980 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12981 (mac_put_selection_value, mac_selection_has_target_p)
12982 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12983 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12984 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12985 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12986 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12987 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12988 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12989 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12990 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12991
12992 * mactoolbox.c: New file.
12993
129942008-04-18 Jason Rumney <jasonr@gnu.org>
12995
12996 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12997
129982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * character.c (Fmultibyte_char_to_unibyte):
13001 Return latin1 chars unchanged.
13002
13003 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13004 relocated if it points to `name'.
13005
130062008-04-17 Kenichi Handa <handa@m17n.org>
13007
13008 * data.c (Faset): Allow setting a multibyte character in an
13009 ASCII-only unibyte string.
13010
13011 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13012
130132008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13014
13015 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13016 done in config.h.
13017
130182008-04-16 Juanma Barranquero <lekktu@gmail.com>
13019
13020 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13021 (Fchar_direction): Add usage in the docstring.
13022
130232008-04-15 Chong Yidong <cyd@stupidchicken.com>
13024
13025 * keyboard.c (read_key_sequence): Remove always-true checks.
13026
130272008-04-14 Jason Rumney <jasonr@gnu.org>
13028
13029 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13030 compatibility struct, for better underline positioning.
13031
130322008-04-13 David Hansen <david.hansen@gmx.net>
13033
13034 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13035 string.
13036
130372008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13038
13039 * m/hp800.h (XUINT, XSET): Remove.
13040
130412008-04-12 Juanma Barranquero <lekktu@gmail.com>
13042
13043 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13044 previous change.
13045
130462008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13047
13048 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13049 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13050
130512008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13052
13053 * keymap.h (map_keymap_canonical): Declare.
13054 * xmenu.c (single_keymap_panes): Use it.
13055
130562008-04-11 Glenn Morris <rgm@gnu.org>
13057
13058 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13059 set the target's value to that of the alias.
13060
130612008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13062
13063 * term.c (set_tty_color_mode): Left over typo.
13064
130652008-04-10 Michael Albinus <michael.albinus@gmx.de>
13066
13067 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13068 only after check for file name handler functions. Signal, when
13069 native functionality is not supported.
13070 (syms_of_fileio): Declare it unconditionally.
13071
130722008-04-10 Jason Rumney <jasonr@gnu.org>
13073
13074 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13075 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13076
13077 * w32.c (logon_network_drive): Also logon to remote drives that
13078 are mapped to drive letters.
13079
130802008-04-10 Glenn Morris <rgm@gnu.org>
13081
13082 * xdisp.c (truncate-partial-width-windows): Doc fix.
13083
130842008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13085
13086 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13087 Move functions to minibuffer.el.
13088 (syms_of_fileio): Don't declare them.
13089
130902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13091
13092 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13093 (syms_of_minibuf): Remove its initialization.
13094
13095 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13096
130972008-04-09 Juanma Barranquero <lekktu@gmail.com>
13098
13099 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13100
131012008-04-09 Jason Rumney <jasonr@gnu.org>
13102
13103 * makefile.w32-in (distclean): Delete makefile too.
13104 (maintainer-clean): New target.
13105
13106 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13107
13108 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13109 for new font backend and composite cases.
13110
131112008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13112
13113 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13114 Most of the code moved to run_timers.
13115 (do_pending_atimers): Call run_timers.
13116 (run_timers): New function.
13117
13118 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13119 run atimers.
13120
13121 * process.c (wait_reading_process_output): The same as above.
13122
131232008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13124
13125 * minibuf.c (last_exact_completion): Remove variable.
13126 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13127 (complete_and_exit_1, complete_and_exit_2)
13128 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13129 (Fdisplay_completion_list, display_completion_list_1)
13130 (Fminibuffer_completion_help, Fself_insert_and_exit)
13131 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13132 minibuffer.el.
13133 (syms_of_minibuf): Remove corresponding initializations.
13134
13135 * keyboard.c (Qdeactivate_mark): New var.
13136 (command_loop_1): Use it to call `deactivate-mark'.
13137 (syms_of_keyboard): Initialize it.
13138
13139 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13140 to another frame.
13141 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13142 Don't call set_tty_color_mode.
13143 (store_frame_param): Reset previous_frame rather than call
13144 set_tty_color_mode.
13145 * term.c (set_tty_color_mode): Rewrite.
13146 * dispextern.h (set_tty_color_mode): New type.
13147 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13148
131492008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13150
13151 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13152 for generic chars, which do not exist any more in emacs-unicode.
13153
131542008-04-08 Michael Albinus <michael.albinus@gmx.de>
13155
13156 * coding.c (detect_coding_emacs_mule)
13157 (Ffind_operation_coding_system): Fix typo.
13158
131592008-04-08 Jason Rumney <jasonr@gnu.org>
13160
13161 * w32uniscribe.c (SNAME): Extract only symbol name.
13162
13163 * w32font.h (struct w32_metric_cache): New struct.
13164 (w32font_info): Use it.
13165 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13166 (CACHE_BLOCKSIZE): New constants.
13167
13168 * w32font.c (Qja, Qko, Qzh): New symbols.
13169 (syms_of_w32font): Initialise them.
13170 (font_matches_spec): Use them to filter by language.
13171 (recompute_cached_metrics): Remove function.
13172 (compute_metrics, clear_cached_metrics): New functions.
13173 (w32font_encode_char): Use them to manage metric cache.
13174 (w32font_text_extents): Cache metrics for all glyphs on demand.
13175 Delay converting glyph indices to WORD until needed.
13176 (w32font_open_internal): Initialize metric cache to empty.
13177 (registry_to_w32_charset): Charset should always be a symbol.
13178 (fill_in_logfont, list_all_matching_fonts): Family should
13179 always be a symbol.
13180
131812008-04-06 Jason Rumney <jasonr@gnu.org>
13182
13183 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13184 Give up if glyph indices not supported. Use uniscribe obtained
13185 ABC widths for individual metrics. Map glyph clusters back to
13186 characters using fClusterStart flag. Return number of glyphs
13187 produced, not chars processed.
13188 (uniscribe_shape): Map char at FROM to current glyph.
13189
131902008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13191
13192 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13193 Use SetMenuItemHierarchicalMenu.
13194
131952008-04-05 Jason Rumney <jasonr@gnu.org>
13196
13197 * image.c (pbm_load): Allow color values up to 65535.
13198 Throw an error if max_color_idx is outside the supported range.
13199 Report an error when image size is invalid.
13200 Read two bytes at a time when raw images have max_color_idx above 255.
13201
132022008-04-05 Eli Zaretskii <eliz@gnu.org>
13203
13204 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13205 cFileName a file name that includes `?' characters, use the 8+3
13206 alias in cAlternateFileName instead.
13207
132082008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13209
13210 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13211 append "CCL: Quitted" when the CCL program is quitted.
13212 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13213
13214 * ccl.h (struct ccl_program): New member quit_silently.
13215
132162008-04-05 Chong Yidong <cyd@stupidchicken.com>
13217
13218 * search.c (compile_pattern_1): Treat non-nil and non-string of
13219 search-spaces-regexp as nil.
13220
13221 * minibuf.c (Fassoc_string): Tweak docstring.
13222
132232008-04-05 Eli Zaretskii <eliz@gnu.org>
13224
13225 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13226 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13227 2008-03-14 to force inode be positive.
13228
13229 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13230 _S_* ones, since we now use our own sys/stat.h.
13231 (stat, fstat): Don't mangle the inode number.
13232 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13233
132342008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13235
13236 * frame.h (struct frame): Give one more bit to `visible' since we use
13237 values larger than 1 to indicate obscured frames on ttys.
13238
13239 * keymap.c (Qkeymap_canonicalize): New var.
13240 (Fmap_keymap_internal): New fun.
13241 (describe_map): Use keymap-canonicalize.
13242
13243 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13244 (Fundo_boundary): Set them.
13245 (syms_of_undo): Initialize them.
13246 (record_point): Use them instead of last_point_position*.
13247 (last_undo_buffer): Change type.
13248
132492008-04-04 Jason Rumney <jasonr@gnu.org>
13250
13251 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13252 (recompute_cached_metrics): Don't set ascent and descent per char.
13253
13254 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13255 (uniscribe_check_otf): Add GC protection before consing.
13256 Rearrange loop for counting features.
13257
132582008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13259
13260 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13261 buffer with byte-size of source buffer.
13262
132632008-04-03 Chong Yidong <cyd@stupidchicken.com>
13264
13265 * callint.c (Fcall_interactively): Handle temporary region even
13266 when shift-select-mode is off.
13267
132682008-04-03 Jason Rumney <jasonr@gnu.org>
13269
13270 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13271
132722008-04-03 Kenichi Handa <handa@m17n.org>
13273
13274 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13275 (CATEGORY_MASK_UTF_16): Likewise.
13276 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13277 binary file.
13278 (detect_coding): Add null-byte detection for a binary file.
13279 (detect_coding_system): Likewise.
13280
132812008-04-03 Jason Rumney <jasonr@gnu.org>
13282
13283 * w32uniscribe.c: New file.
13284
13285 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13286
13287 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13288
13289 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13290 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13291 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13292 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13293 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13294 (Qphonetic): New symbols.
13295 (syms_of_w32font): Initialize them.
13296 (font_supported_scripts): Use them.
13297 (w32font_list_family): List all charsets.
13298 (w32font_text_extents, recompute_cached_metrics): Fix metric
13299 calculations.
13300 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13301 Give opentype fonts their own format.
13302 (font_matches_spec): New arguments backend and logfont.
13303 Handle :otf spec for uniscribe backend.
13304 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13305 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13306
13307 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13308 font backend.
13309 (globals_of_w32fns): Initialize uniscribe font backend.
13310
13311 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13312 dependencies.
13313 (w32uniscribe.$(O)): New file to build.
13314 (FONT_OBJ): Include w32uniscribe.$(O).
13315 (LIBS): Add uniscribe libraries.
13316
13317 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13318
133192008-04-02 Chong Yidong <cyd@stupidchicken.com>
13320
13321 * callint.c (Vshift_select_mode): New var.
13322 (Finteractive): Document new ^ spec.
13323 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13324 is present.
13325
13326 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13327 (command_loop_1): Avoid running the direct display versions of
13328 forward-char and backward-char if shift-selection may occur.
13329 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13330 shift-translation takes place.
13331
13332 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13333 avoid clobbering by define-minor-mode.
13334
13335 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13336 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13337
13338 * syntax.c (Fforward_word): Add ^ interactive spec.
13339
13340 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13341 (Fscroll_right): Add ^ interactive spec.
13342
133432008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13346
13347 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13348
13349 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13350
133512008-03-31 Juri Linkov <juri@jurta.org>
13352
13353 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13354
133552008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13356
13357 * gtkutil.c (xg_set_geometry): Fix indentation.
13358 (xg_resize_outer_widget): Remove.
13359 (x_wm_size_hint_off): Fix indentation.
13360 (xg_frame_set_char_size): Call flush_and_sync after
13361 gtk_window_resize.
13362 (x_wm_set_size_hint): Pass NULL as geometry window to
13363 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13364 Add menu bar and tool bar height to base height.
13365 (xg_update_frame_menubar, free_frame_menubar)
13366 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13367 (update_frame_tool_bar, free_frame_tool_bar):
13368 Change xg_resize_outer_widget to xg_frame_set_char_size.
13369
133702008-03-30 Michael Albinus <michael.albinus@gmx.de>
13371
13372 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13373 (Fdbus_call_method): New parameter TIMEOUT.
13374 (dbus-send-signal): Optimize UNGCPRO call.
13375
133762008-03-29 Juri Linkov <juri@jurta.org>
13377
13378 * window.c (Fdisplay_buffer): Move call to
13379 Vsplit_window_preferred_function out of conditions that check
13380 if window is eligible for vertical splitting.
13381 When Vsplit_window_preferred_function is non-nil, call it and use
13382 its non-nil return value as window. Otherwise, continue doing
13383 vertical splitting using Fsplit_window with arg horflag=nil.
13384 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13385 default value from `split-window' to nil.
13386
133872008-03-29 Juri Linkov <juri@jurta.org>
13388
13389 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13390 for interactive code letters 'b' and 'B'.
13391
133922008-03-29 Eli Zaretskii <eliz@gnu.org>
13393
13394 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13395 multibyte string.
13396
133972008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13398
13399 * keyboard.c (pending_funcalls): New var.
13400 (timer_check): Run it.
13401 (syms_of_keyboard): Initialize it.
13402 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13403 (Vdelete_terminal_functions): New vars.
13404 (syms_of_terminal): Initialize them.
13405 (Fdelete_terminal): Run delete-terminal-functions.
13406 * xdisp.c (safe_eval): Rewrite.
13407 (safe_call2): New fun.
13408 * frame.c (Qdelete_frame_functions): New var.
13409 (syms_of_frame): Initialize it.
13410 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13411 * lisp.h (safe_call2, pending_funcalls): Declare.
13412
134132008-03-28 Andreas Schwab <schwab@suse.de>
13414
13415 * indent.c (Fmove_to_column): Move declaration before statements.
13416
134172008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13418
13419 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13420 (struct frame): Use bit fields for boolean vars.
13421
13422 * process.c (server_accept_connection): Simplify naming.
13423 (emacs_get_tty_pgrp): Use SDATA.
13424
13425 * coding.c (decode_coding_object): Fix last change.
13426
134272008-03-27 Jason Rumney <jasonr@gnu.org>
13428
13429 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13430
134312008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13432
13433 * charset.c (Fdefine_charset_internal): Change the way of
13434 registering charsets in Vcharset_order_list.
13435 (syms_of_charset): Make the charset `eight-bit' supplementary.
13436
134372008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13438
13439 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13440 operations, to avoid having the difference between pointers
13441 overflow.
13442
134432008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13444
13445 * indent.c (check_display_width): New fun.
13446 (scan_for_column): Use it.
13447
13448 * data.c (syms_of_data): Mark most-positive-fixnum and
13449 most-negative-fixnum as constants.
13450
13451 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13452
13453 * indent.c (scan_for_column): Extract from current_column_1.
13454 Merge with the same code from Fmove_to_column.
13455 (current_column_1, Fmove_to_column): Use it.
13456
134572008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13458
13459 * keymap.c (map_keymap_internal): New fun.
13460 (map_keymap): Use it.
13461 (Fmap_keymap_internal): New fun.
13462 (Fmap_keymap): Remove left-out test from before make_save_value.
13463
13464 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13465
13466 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13467 Use XCAR/XCDR.
13468
13469 * process.h (struct Lisp_Process): Remove filter_multibyte.
13470 * process.c (QCfilter_multibyte): Remove.
13471 (setup_process_coding_systems): Don't use filter_multibyte.
13472 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13473 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13474 (Fset_process_filter_multibyte): Change the coding-system to
13475 approximate the previous behavior.
13476 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13477 coding-system.
13478
13479 * coding.c (decode_coding_object): When not decoding into a buffer,
13480 obey the coding system's preference of (uni|multi)byte.
13481
134822008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13483
13484 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13485 every char is changed and has a different byte-length.
13486 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13487 Fix int -> EMACS_INT.
13488
134892008-03-23 David Hansen <david.hansen@gmx.net>
13490
13491 * dbusbind.c (xd_read_message): Remove extra copying of message
13492 strings. Check for NULL `interface' or `member'.
13493
134942008-03-22 Eli Zaretskii <eliz@gnu.org>
13495
13496 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13497 cFileName a file name that includes `?' characters, use the 8+3
13498 alias in cAlternateFileName instead.
13499
135002008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13503
135042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13505
13506 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13507 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13508 work on current_buffer only instead (that was already the case
13509 for some of the code anyway).
13510 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13511 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13512 (SET_PT, SET_PT_BOTH): Adjust.
13513 * intervals.h (set_point, temp_set_point, set_point_both)
13514 (temp_set_point_both): Remove redundant declarations.
13515
135162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13517
13518 * fileio.c (Finsert_file_contents):
13519 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13520 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13521 when buffer != current_buffer anyway.
13522
135232008-03-20 Andreas Schwab <schwab@suse.de>
13524
13525 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13526 as default.
13527
135282008-03-19 Jason Rumney <jasonr@gnu.org>
13529
13530 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13531 (syms_of_w32fns): Initialize them.
13532 (HOURGLASS_ID): New constant.
13533 (x_window_to_frame): Don't check hourglass_window.
13534 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13535 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13536 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13537 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13538 Only change the cursor if hourglass is not active.
13539 (Fx_create_frame): Initialize frame's current_cursor.
13540 (hourglass_atimer): Remove.
13541 (hourglass_started): New function.
13542 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13543 (show_hourglass): Adapt to w32, changing argument to frame.
13544
13545 * w32term.h (struct w32_output): Remove hourglass_window.
13546 Add current_cursor.
13547
13548 * eval.c (call_debugger, Fsignal):
13549 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13550 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13551 (Fexecute_extended_command, cancel_hourglass_unwind):
13552 * minibuf.c (read_minibuf):
13553 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13554
135552008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13556
13557 * window.c (run_funs): New fun.
13558 (run_window_configuration_change_hook): Use it to run the buffer-local
13559 and the global part of the hook.
13560
13561 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13562 (unwind_format_mode_line): Restore selected window.
13563 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13564
135652008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13566
13567 * editfns.c (Fchar_equal): Check they are valid characters.
13568
13569 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13570
135712008-03-17 Andreas Schwab <schwab@suse.de>
13572
13573 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13574 against a charset.
13575
13576 * lisp.h (Fbuffer_list): Declare.
13577
135782008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13579
aac0c6e3
MR
13580 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13581 handlebox_widget is != 0.
13582
135832008-03-16 Juri Linkov <juri@jurta.org>
13584
13585 * callint.c (Fcall_interactively): For interactive code letters
13586 'b' and 'B' put the buffer list into the list of default "future"
13587 values of the minibuffer.
13588
135892008-03-16 Andreas Schwab <schwab@suse.de>
13590
13591 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13592 modifiers.
13593
13594 * regex.c (re_match_2_internal): Correct matching of a charset
13595 against latin-1 characters.
13596
135972008-03-16 Kenichi Handa <handa@m17n.org>
13598
13599 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13600 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13601 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13602 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13603 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13604 CHAR_STRING_ADVANCE.
13605 (produce_chars): Fix for the case that the source and the
13606 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13607 instead of CHAR_STRING_ADVANCE.
13608 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13609 STRING_CHAR_ADVANCE.
13610
136112008-03-15 Andreas Schwab <schwab@suse.de>
13612
13613 * regex.c (re_match_2_internal): Correct matching of eight bit
13614 characters in unibyte strings.
13615
136162008-03-15 Martin Rudalics <rudalics@gmx.at>
13617
13618 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13619 at end of range when it coincides with the end of the buffer.
13620
136212008-03-14 Eli Zaretskii <eliz@gnu.org>
13622
13623 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13624
13625 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13626
136272008-03-14 Jason Rumney <jasonr@gnu.org>
13628
13629 * editfns.c (initial_tz): New variable.
13630 (syms_of_editfns): Initialize it.
13631 (Fset_time_zone_rule): Set it when first called.
13632 Use it when TZSTRING is nil.
13633
13634 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13635 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13636 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13637 (globals_of_w32fns): Initialize them.
13638 (compute_tip_xy): Use them to position tooltips.
13639
136402008-03-14 Glenn Morris <rgm@gnu.org>
13641
13642 * emacs.c (main): Revert previous change.
13643 (standard_args): Revert -internal-script back to -scriptload,
13644 and remove the long-option form.
13645
136462008-03-13 Glenn Morris <rgm@gnu.org>
13647
13648 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13649 Remove option -enable-font-backend.
13650
136512008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13652
13653 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13654
136552008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13656
13657 * xterm.c (x_connection_closed): For GTK: If this is the last
13658 terminal just exit without closing the display.
13659
136602008-03-11 Jason Rumney <jasonr@gnu.org>
13661
13662 * w32font.c (w32font_full_name): Use floor to round.
13663
f0131492 136642008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13665
13666 * sound.c (alsa_configure): Declare vol at beginning of block.
13667
13668 * fontset.c (Ffontset_info): Remove extra semicolon.
13669
136702008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13671
13672 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13673 size of resulting string.
13674
136752008-03-10 Jason Rumney <jasonr@gnu.org>
13676
13677 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13678
136792008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13680
13681 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13682 Don't pretend as if characters with display property haven't been
13683 consumed for string-replacing-string case.
13684
136852008-03-08 Kim F. Storm <storm@cua.dk>
13686
13687 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13688 (get_next_display_element, next_element_from_string)
13689 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13690
136912008-03-08 Andreas Schwab <schwab@suse.de>
13692
13693 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13694
136952008-03-06 Jason Rumney <jasonr@gnu.org>
13696
13697 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13698 when charset not specified. Only translate ANSI to unicode when
13699 font_type is truetype.
13700 (w32font_coverage_ok): New function.
13701 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13702
137032008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13704
13705 * lread.c (Fread_char): Resolve modifiers.
13706 (Fread_char_exclusive): Likewise.
13707
13708 * character.c (char_resolve_modifier_mask): New function.
13709 (char_string): Use char_resolve_modifier_mask.
13710 (Fchar_resolve_modifiers): New function.
13711 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13712 function.
13713
137142008-03-04 Jason Rumney <jasonr@gnu.org>
13715
13716 * makefile.w32-in: Always include w32font.c in the build.
13717 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13718
137192008-03-04 Andreas Schwab <schwab@suse.de>
13720
13721 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13722 (versionclean): Likewise.
13723
137242008-03-04 Juanma Barranquero <lekktu@gmail.com>
13725
13726 * .cvsignore: Add oo.
13727
137282008-03-03 Andreas Schwab <schwab@suse.de>
13729
13730 * coding.c (decode_coding_object): Inhibit gap shrinking while
13731 decoding in place.
13732
137332008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13734
13735 * w32term.c: Remove unused include "gnu.h".
13736 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13737
13738 * gnu.h: Rename to ...
13739 * emacs-icon.h: ... this.
13740 * xterm.c: Use emacs-icon.h instead of gnu.h.
13741 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13742
137432008-03-03 Juanma Barranquero <lekktu@gmail.com>
13744
13745 * w32font.c: Include math.h.
13746
137472008-03-03 Jason Rumney <jasonr@gnu.org>
13748
13749 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13750 Compute options separately.
13751 (w32font_open_internal): Set glyph_idx before caching metrics.
13752
13753 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13754 Define if system headers don't.
13755 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13756 (w32font_encode_char): Don't declare here.
13757
13758 * w32font.c (Quniscribe, QCformat): New symbols.
13759 (syms_of_w32font): Define them.
13760 (w32font_has_char): Indicate uncertainty.
13761 (w32font_encode_char): Encode as glyph point. Make static.
13762 (recompute_cached_metrics): New function.
13763 (w32font_open_internal): Use it. Set font to use glyph points
13764 initially. Set format based on type of font.
13765 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13766 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13767 on it. Set format based on information available here.
13768 (add_font_entity_to_list): Identify backend based on opentype_only.
13769
137702008-03-02 Andreas Schwab <schwab@suse.de>
13771
13772 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13773
13774 * coding.c (decode_coding_big5, produce_chars):
13775 Fix typos in last change.
13776
137772008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13778
13779 * gnu.h: New icon.
13780
137812008-03-02 Kenichi Handa <handa@m17n.org>
13782
13783 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13784 `dos', don't decode '\r' if that is the last in the source.
13785 (decode_coding_utf_16, decode_coding_emacs_mule)
13786 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13787 (decode_coding_raw_text, decode_coding_charset): Likewise.
13788 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13789
137902008-03-01 Jason Rumney <jasonr@gnu.org>
13791
13792 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13793
137942008-03-01 Kim F. Storm <storm@cua.dk>
13795
13796 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13797
137982008-03-01 Jason Rumney <jasonr@gnu.org>
13799
13800 * w32font.c (w32font_full_name): New function.
13801 (w32font_open_internal): Use it.
13802
138032008-03-01 Kim F. Storm <storm@cua.dk>
13804
13805 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13806
138072008-03-01 Jason Rumney <jasonr@gnu.org>
13808
13809 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13810
138112008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13812
13813 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13814 xg_frame_resized when the event is for the edit widget.
13815
13816 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13817
13818 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13819 set_char_size.
13820 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13821 operations on widgets here. Just set frame size if needed.
13822 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13823 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13824 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13825 the whole frame.
13826 (xg_create_tool_bar): Move attachment of the tool bar to
13827 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13828 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13829
138302008-03-01 Jason Rumney <jasonr@gnu.org>
13831
13832 * w32fns.c (w32_msg_pump): Disable debug code.
13833
138342008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13835
13836 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13837
138382008-02-29 Chong Yidong <cyd@stupidchicken.com>
13839
13840 * xdisp.c (next_overlay_string): Don't set
13841 overlay_strings_at_end_processed_p if we're currently reading from
13842 a display string.
13843
138442008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * xdisp.c (get_overlay_strings_1): Fix typo.
13847
138482008-02-29 Chong Yidong <cyd@stupidchicken.com>
13849
13850 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13851
138522008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13853
13854 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13855
13856 * xdisp.c (display_mode_element): Cancel the previous change.
13857 (decode_mode_spec): Likewise.
13858 (handle_auto_composed_prop): Don't make composition if it->string
13859 is a string.
13860
138612008-02-27 Kim F. Storm <storm@cua.dk>
13862
13863 * lisp.h (GLYPH): Change type from int to struct with separate char
13864 and face_id members.
13865 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13866 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13867 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13868 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13869 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13870 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13871 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13872 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13873 handle new Lisp glyph code encoding, either an integer or a cons.
13874
13875 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13876 (GLYPH_ALIAS): Delete.
13877 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13878 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13879 (GLYPH_FROM_CHAR): Replace macro by ...
13880 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13881
13882 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13883 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13884 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13885 (GLYPH_INVALID_P): New macro.
13886 (spec_glyph_lookup_face): Update prototype.
13887
13888 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13889 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13890 new glyph code encoding.
13891 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13892 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13893
13894 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13895 Adapt to new glyph type and new glyph code encoding.
13896
13897 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13898
13899 * indent.c (current_column, current_column_1, Fmove_to_column)
13900 (compute_motion): Adapt to new glyph code encoding.
13901
13902 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13903
139042008-02-27 Chong Yidong <cyd@stupidchicken.com>
13905
13906 * process.c (wait_reading_process_output): Check for window
13907 changes caused by timers.
13908 Suggested by Johan Bockgård.
13909
139102008-02-27 Glenn Morris <rgm@gnu.org>
13911
13912 * emacs.c (USAGE1): Add `--disable-font-backend'.
13913
139142008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13915
13916 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13917 is made to the buffer.
13918
139192008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13920
13921 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13922 (face_at_string_position):
13923 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13924 (face_at_string_position):
13925 * xdisp.c (display_string, next_overlay_change):
13926 * buffer.h (overlays_at):
13927 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13928 Update callers.
13929
139302008-02-26 Chong Yidong <cyd@stupidchicken.com>
13931
13932 * editfns.c (Fformat): Doc fix.
13933
139342008-02-26 Juanma Barranquero <lekktu@gmail.com>
13935
13936 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13937 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13938 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13939
139402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13941
13942 * buffer.c (Fbuffer_swap_text): New function.
13943 (syms_of_buffer): Defsubr it.
13944
139452008-02-25 Chong Yidong <cyd@stupidchicken.com>
13946
13947 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13948
139492008-02-25 Jason Rumney <jasonr@gnu.org>
13950
13951 * w32font.c (w32font_draw): Draw one character at a time when padding.
13952
139532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13954
13955 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13956 Handle a nil arg. Use run_window_configuration_change_hook.
13957 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13958 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13959 Use run_window_configuration_change_hook.
13960
139612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13962
13963 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13964 1-pixel width.
13965
139662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13967
13968 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13969 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13970 if the glyph in the font is zero pixel with.
13971
13972 * dispextern.h (struct glyph_string): New member padding_p.
13973
13974 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13975
13976 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13977
13978 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13979
13980 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13981
13982 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13983
139842008-02-25 Jason Rumney <jasonr@gnu.org>
13985
13986 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13987
139882008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13989
13990 Allow fine-grained image-cache flushing.
13991 * dispextern.h (struct image): Add `dependencies' field.
13992 (clear_image_caches): Change arg to Lisp_Object.
13993 * image.c (make_image): Initialize `dependencies' field.
13994 (clear_image_cache): Change arg to allow fine-grained flushing.
13995 Perform the flush even if image-cache-eviction-delay is nil.
13996 (clear_image_caches): Change arg to Lisp_Object.
13997 (Fclear_image_cache): Expand meaning of the argument.
13998 (mark_image): Mark `dependencies' field.
13999 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14000 (lface_hash): Use XHASH rather than XFASTINT.
14001 (face_at_buffer_position): Fix int -> EMACS_INT position.
14002 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14003 (select_frame_for_redisplay): Remove code duplication.
14004 (redisplay_internal): Adapt arg to call to clear_image_caches.
14005
140062008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14007
14008 * s/vms4-0.h:
14009 * s/vms4-2.h:
14010 * s/vms4-4.h:
14011 * s/vms5-5.h: Remove, unused.
14012
14013 * s/irix5-2.h:
14014 * s/irix6-0.h:
14015 * s/riscos5.h:
14016 * s/mach-bsd4-3.h:
14017 * m/mips4.h: Remove files for obsolete systems.
14018
14019 * Makefile.in:
14020 * filelock.c:
14021 * unexmips.c:
14022 * m/hp9000s300.h:
14023 * m/iris4d.h:
14024 * s/aix3-1.h:
14025 * s/hpux.h:
14026 * s/msdos.h:
14027 * s/usg5-0.h:
14028 * s/usg5-2-2.h:
14029 * s/usg5-2.h:
14030 * s/usg5-3.h: Remove references to obsolete variables.
14031
14032 * s/irix5-0.h: Remove, move all the contents ...
14033 * s/irix6-5.h: ... here. Simplify.
14034 * config.in: Regenerate.
14035
140362008-02-24 Jason Rumney <jasonr@gnu.org>
14037
14038 * w32term.c (x_draw_glyph_string_background): Clear the background
14039 manually when cleartype is in use.
14040 (x_draw_glyph_string_foreground): Draw text transparently when
14041 cleartype is in use.
14042
14043 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14044 a font into it unless we have to.
14045
140462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14047
14048 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14049 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14050
aac0c6e3
MR
140512008-02-18 Jason Rumney <jasonr@gnu.org>
14052
14053 * w32fns.c (Fw32_shell_execute): Encode parameters.
14054
140552008-02-09 Eli Zaretskii <eliz@gnu.org>
14056
14057 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14058
140592008-02-05 Juanma Barranquero <lekktu@gmail.com>
14060
14061 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14062
140632008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14064
14065 * xterm.c (x_set_offset): Don't change the gravity if
14066 CHANGE_GRAVITY is -1.
14067
140682008-02-23 Chong Yidong <cyd@stupidchicken.com>
14069
14070 * fileio.c (auto_save_error_occurred): New var.
14071 (auto_save_error): Set it.
14072 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14073 error occurred.
14074
140752008-02-23 Eli Zaretskii <eliz@gnu.org>
14076
14077 * w32.c (globals_of_w32): Add initializations for
14078 g_b_init_get_sid_sub_authority and
14079 g_b_init_get_sid_sub_authority_count.
14080
140812008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14082
14083 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14084 (font_parse_xlfd): Use them for sanity check.
14085 (Finternal_set_font_style_table): Make sure the table is bijective.
14086
14087 Consolidate the image_cache to the terminal struct.
14088 * termhooks.h (P_): Remove redundant def.
14089 (struct terminal): New field `image_cache'.
14090 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14091 of FRAME_X_IMAGE_CACHE.
14092 * xterm.h (struct x_display_info): Remove image_cache field.
14093 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14094 * w32term.h (struct w32_display_info): Remove image_cache field.
14095 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14096 * macterm.h (struct mac_display_info): Remove image_cache field.
14097 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14098 * xterm.c (x_term_init):
14099 * w32term.c (w32_term_init):
14100 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14101 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14102 Remove declarations.
14103 (clear_image_caches, mark_image_cache): New declarations.
14104 * xfaces.c (clear_face_cache):
14105 * xdisp.c (redisplay_internal): Use clear_image_caches.
14106 * image.c (clear_image_cache): Don't check that a frame is on
14107 a window-system before checking if it shares the same cache.
14108 (clear_image_caches): New function.
14109 (Fclear_image_cache): Use it.
14110 (mark_image): Move from allo.c.
14111 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14112 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14113 (mark_object): Don't call mark_image_cache for frames.
14114 (mark_terminals): Call mark_image_cache.
14115
14116 * lisp.h (Fdelete_terminal): Declare.
14117
14118 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14119 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14120 wrong_type_argument.
14121
141222008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14123
14124 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14125 malayalam.el, and tamil.el. Add sinhala.el.
14126
141272008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14128
14129 * xterm.c (x_connection_closed): Consolidate identical tests.
14130 (x_delete_terminal): Don't crash if called via x_connection_closed.
14131
141322008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14133
14134 * xdisp.c (decode_mode_spec): New arg string.
14135 (display_mode_element): Adjust for the above change.
14136
141372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14138
14139 * callint.c (Fcall_interactively): Use AREF.
14140
141412008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14142
14143 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14144
141452008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14146
14147 * xfns.c (Fx_show_tip): Set string to " " if empty.
14148
141492008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14150
14151 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14152 with Qt.
14153
141542008-02-17 Kenichi Handa <handa@m17n.org>
14155
14156 * ftfont.c (ftfont_shape): Return Lispy number.
14157
14158 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14159 for GCs.
14160 (Finternal_set_font_selection_order): Call font_update_sort_order
14161 only when enable_font_backend is set.
14162 (realize_x_face): Set face->font_info to that of default face only
14163 when enable_font_backend is set.
14164
14165 * xdisp.c (handle_composition_prop): Set it->c to the fist
14166 character of the composed region.
14167 (fill_composite_glyph_string): Set base_face->font_info to
14168 s->font_info. Get a face for ascii from base_face->ascii_face.
14169 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14170 with a face already decided.
14171 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14172 non-negative.
14173 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14174 call font_prepare_composition unconditionally.
14175
14176 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14177
14178 * xterm.h (struct x_display_info): New member font.
14179
14180 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14181 (x_set_mouse_face_gc, x_new_font): Likewise.
14182 (x_term_init): Setup display_info->font.
14183 (x_delete_terminal): Free display_info->font.
14184
14185 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14186
14187 * ftxfont.c (ftxfont_default_fid): Delete it.
14188 (ftxfont_open): Set xfont->fid to 0.
14189 (ftxfont_end_for_frame): Clear data specific to the frame and the
14190 font-driver.
14191
14192 * xftfont.c (xftfont_default_fid): Delete it.
14193 (xftfont_open): Set xfont->fid to 0.
14194
14195 * fontset.c (FONTSET_OBJLIST): New macro.
14196 (fontset_find_font): Update font-object list of the fontset.
14197 (free_realized_fontset): New function.
14198 (free_face_fontset): Call free_realized_fontset.
14199 (Ffont_info): Call font_close_object only when enable_font_backend
14200 is set.
14201
14202 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14203 [HAVE_NTGUI]: Include w32term.h.
14204 [MAC_OS]: Include macterm.ch.
14205 (font_otf_ValueRecord): Use make_number.
14206 (font_finish_cache): Fix handling of reference count.
14207 (font_clear_cache): Update num_fonts.
14208 (font_open_entity): Update smallest_char_width and
14209 smallest_font_height of the frame.
14210 (font_close_object): Update num_fonts.
14211 (Fclear_font_cache): Fix finding the target cache data.
14212
142132008-02-16 Glenn Morris <rgm@gnu.org>
14214
14215 * fontset.c (Finternal_char_font): Fix compilation warning.
14216
142172008-02-16 Eli Zaretskii <eliz@gnu.org>
14218
14219 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14220 instead of char arrays. Enlarge the size of array passed to
14221 get_token_information.
14222
14223 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14224 warnings.
14225
142262008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14227
14228 * .gdbinit: Don't set `args', it breaks gdb --args.
14229
142302008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14231
14232 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14233 within a narrowed buffer.
14234
142352008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14236
14237 * coding.c (decode_coding_object, encode_coding_object):
14238 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14239
142402008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14241
14242 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14243 hardcoding 1.
14244 (detect_coding_system):
14245 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14246 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14247 * insdel.c (insert_from_gap):
14248 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14249 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14250 (string_to_multibyte):
14251 * character.c (chars_in_text, multibyte_chars_in_text):
14252 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14253
14254 * character.h (FETCH_STRING_CHAR_ADVANCE)
14255 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14256 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14257 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14258
14259 * casefiddle.c (casify_region): Only call after-change and composition
14260 functions on the part of the region that was changed.
14261
14262 * keyboard.c (read_avail_input):
14263 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14264
142652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14266
14267 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14268 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14269
142702008-02-11 Juanma Barranquero <lekktu@gmail.com>
14271
14272 * w32menu.c (push_submenu_start, push_submenu_end)
14273 (push_left_right_boundary, push_menu_pane, push_menu_item):
14274 * keyboard.c (read_key_sequence): Don't pass args with side effects
14275 to AREF, it fails when compiling with -DENABLE_CHECKING.
14276
142772008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14278
14279 * Makefile.in (${lispsource}international/charprop.el):
14280 Delete this target.
14281
14282 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14283 emacs-unicode-2.
14284
142852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14286
14287 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14288
142892008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * frame.c (Qnoelisp): New symbol.
14292 (syms_of_frame): Initialize it.
14293 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14294 harmless Elisp code, from a strong `force' from x_connection_closed.
14295 * frame.h (Qnoelisp): Declare.
14296 * xterm.c (x_connection_closed): Pass `noelisp'.
14297
14298 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14299 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14300 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14301 rather than `int' for the type of `type'.
14302
143032008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14304
14305 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14306
14307 * Makefile.in (GNUC): Remove support for gcc-1.x.
14308
143092008-02-10 Richard Stallman <rms@gnu.org>
14310
14311 * lisp.h (ASET): Use AREF, not ASLOT.
14312
143132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14314
14315 * lisp.h (ASET): Check bounds.
14316
143172008-02-10 Glenn Morris <rgm@gnu.org>
14318
14319 * buffer.c (mode-name): Doc fix.
14320
143212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14322
14323 * Makefile.in:
14324 * emacs.c:
14325 * gmalloc.c:
14326 * keyboard.c:
14327 * lisp.h:
14328 * m/ibm370aix.h:
14329 * process.c:
14330 * regex.c:
14331 * s/hpux.h:
14332 * sysdep.c:
14333 * sysselect.h:
14334 * systty.h:
14335 * unexec.c:
14336 * w32term.c:
14337 * xsmfns.c:
14338 * xterm.c: Remove code that deals with obsolete variables.
14339
14340 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14341
14342 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14343 nothing else needs it anymore.
14344
143452008-02-09 Eli Zaretskii <eliz@gnu.org>
14346
14347 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14348 instead of unibyte_char_to_multibyte.
14349
143502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14351
14352 * s/gnu-linux.h: Remove commented out code.
14353
14354 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14355
14356 * Makefile.in: Update what RMS says about using autoconf.
14357 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14358 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14359 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14360 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14361
143622008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14363
14364 * keymap.c (Fkey_description): Move side effect outside of macro call.
14365
14366 * xfaces.c (Finternal_make_lisp_face):
14367 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14368
14369 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14370 (syms_of_fontset): Use ASET.
14371
14372 * fns.c (concat): Move side effect outside of macro call.
14373 (hash_clear): Use ASET.
14374
143752008-02-08 Richard Stallman <rms@gnu.org>
14376
14377 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14378 If FORCE, and frame has a surrogate minibuffer for another frame,
14379 delete the other frame first.
14380
143812008-02-07 Timo Savola <timo.savola@iki.fi>
14382
14383 * xterm.c (x_detect_focus_change): Handle embed client message.
14384 (handle_one_xevent): Ditto.
14385 (handle_one_xevent): If embedded and we get a button press/release,
14386 request focus.
14387 (xembed_set_info, xembed_send_message): New functions.
14388 (x_make_frame_visible): Call xembed_set_info if embedded.
14389 (x_make_frame_invisible): Call xembed_set_info if embedded.
14390 (x_term_init): Initialize Xatom_XEMBED.
14391 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14392 (x_iconify_frame): Ditto.
14393
14394 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14395 (enum xembed_info, enum xembed_message, enum xembed_focus)
14396 (enum xembed_modifier, enum xembed_accelerator): New.
14397 (xembed_set_info, xembed_send_message): Declare.
14398 (FRAME_X_EMBEDDED_P): New.
14399
14400 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14401 gtk_plug_new.
14402
14403 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14404 window ID of a frame.
14405 (x_window): Reparent frame if embedded.
14406 (Fx_create_frame): Don't set border width if embedded.
14407
14408 * emacs.c (USAGE3): Add --parent-id.
14409 (standard_args): Ditto.
14410
144112008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14412
14413 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14414
144152008-02-07 Jim Meyering <meyering@redhat.com>
14416
14417 Use "do...while (0)", not "if (1)...else" in macro definitions.
14418 The latter provokes a warning from gcc about the empty else, when
14419 followed by ";". Also, without that trailing semicolon, it would
14420 silently swallow up any following statement.
14421 * syntax.h (SETUP_SYNTAX_TABLE)
14422 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14423 * buffer.h (DECODE_POSITION): Likewise.
14424 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14425 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14426 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14427 (FETCH_CHAR_ADVANCE): Likewise.
14428 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14429
144302008-02-07 Jim Meyering <meyering@redhat.com>
14431
14432 * lread.c [lint]: Don't include <sys/inode.h>.
14433
144342008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14435
14436 * xselect.c (x_handle_dnd_message):
14437 * xmenu.c (digest_single_submenu, xmenu_show):
14438 * xdisp.c (with_echo_area_buffer_unwind_data)
14439 (format_mode_line_unwind_data, unwind_format_mode_line)
14440 (display_menu_bar):
14441 * eval.c (Ffetch_bytecode):
14442 * doc.c (store_function_docstring):
14443 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14444 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14445 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14446
144472008-02-07 Kenichi Handa <handa@m17n.org>
14448
14449 * ftxfont.c (ftxfont_open): Don't set
14450 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14451
14452 * ftfont.c (ftfont_open): Fix previous change.
14453
144542008-02-06 Jason Rumney <jasonr@gnu.org>
14455
14456 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14457 Use cached metrics for ASCII characters.
14458 (w32font_open_internal): Don't set font's owning_frame.
14459 Cache metrics for ASCII characters.
14460
14461 * w32font.h (struct w32font_info): Add ascii_metrics.
14462 Remove owning_frame.
14463
144642008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14465
14466 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14467 to negative value.
14468
14469 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14470
14471 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14472
14473 * charset.c (syms_of_charset): Set QCtest and Qeq.
14474
144752008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14476
14477 * process.c (Fstart_process):
14478 * callproc.c (Fcall_process): Handle the case where
14479 Funhandled_file_name_directory returns nil.
14480
14481 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14482 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14483 * font.c (check_gstring): Use them and AREF to access the vector before
14484 we know it's really a gstring.
14485 (Ffont_shape_text): Fix typo.
46e722a9 14486 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14487
14488 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14489 Declare.
14490
14491 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14492
144932008-02-05 Jason Rumney <jasonr@gnu.org>
14494
14495 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14496 Set smallest_font_height and smallest_char_width in display info.
14497
144982008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14499
14500 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14501
145022008-02-05 Miles Bader <miles@gnu.org>
14503
14504 * xfaces.c (get_lface_attributes, merge_named_face)
14505 (lookup_named_face, lookup_derived_face, realize_named_face):
14506 Revert 2008-02-01 change by cyd@stupidchicken.com.
14507
145082008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14509
14510 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14511 fallback fonts.
14512 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14513
145142008-02-04 Jason Rumney <jasonr@gnu.org>
14515
14516 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14517 set full_name.
14518 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14519
145202008-02-03 Jason Rumney <jasonr@gnu.org>
14521
14522 * makefile.w32-in (OBJ1): Include font.o here.
14523 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14524
145252008-02-02 Jason Rumney <jasonr@gnu.org>
14526
14527 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14528
145292008-02-01 Jason Rumney <jasonr@gnu.org>
14530
14531 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14532
14533 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14534
145352008-02-01 Andreas Schwab <schwab@suse.de>
14536
14537 * Makefile.in (shortlisp, lisp): Update for rename of
14538 ../lisp/language/myanmar.el.
14539
145402008-02-01 Chong Yidong <cyd@stupidchicken.com>
14541
14542 * xfaces.c (get_lface_attributes): Delete function.
14543 (merge_named_face, lookup_named_face, lookup_derived_face)
14544 (realize_named_face): Call lface_from_face_name directly, and use
14545 the fact that merge_face_vectors does not alter its FROM argument.
14546
145472008-02-01 Jason Rumney <jasonr@gnu.org>
14548
14549 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14550 input in the default locale. Handle non-Unicode multibyte input.
14551
145522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14553
14554 * fontset.c (reorder_font_vector): Exclude nil elements from the
14555 font group. Don't try multiple fonts.
14556 (fontset_font): Adjust for the above change.
14557 (Finternal_char_font): Return nil if the found font doesn't
14558 contain the character ch.
14559
14560 * Makefile.in (lisp, shortlisp): Add cham.el.
14561
145622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14563
14564 * font.h (FONTP): Make it return 1 also for a font-object.
14565
14566 * .gdbinit (xfontset): New function.
14567
14568 * font.c (font_find_for_lface): Check if the character C is
14569 supported or not only for the first font.
14570
14571 * fontset.c (reorder_font_vector): Fix typo.
14572 (fontset_find_font): Don't add a font-spec specifying a script.
14573 Use 0 (not Qt) for the indication of empty font-group. Change the
14574 format of RFONT-DEF. Return Qt if no font in the font-group
14575 support the character.
14576 (fontset_font): Adjust for the above change. If no font was
14577 found the character, remember that.
14578 (face_for_char): Adjust for the change of RFONT-DEF.
14579 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14580 no font for the target.
14581 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14582
145832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14584
14585 * font.c (font_load_for_face): Handle the case that the font in
14586 face->lface is a string.
14587
145882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14589
14590 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14591
145922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14593
14594 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14595 Fix previous change. If the frame is not on a window system,
14596 signal an error.
14597
145982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14599
14600 * coding.c (decode_coding_object, encode_coding_object): Adjust
14601 marker positions after conversion.
14602
14603 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14604
146052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14606
14607 * font.c (font_find_for_lface): Fix the handling of the return
14608 value of font_has_char.
14609 (Ffont_shape_text): Fix previous change.
14610
14611 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14612 (fontset_ref_and_range): Delete it.
14613 (fontset_find_font): Call char_table_ref_and_range instead of
14614 FONTSET_REF_AND_RANGE.
14615 (make_fontset): Don't setup font groups of Latin here.
14616 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14617 (new_fontset_from_font): Make the specified font the default for
14618 all Latin characters.
14619
146202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14621
14622 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14623 is on a window system before accessing the fontset of the frame.
14624
146252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14626
14627 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14628
14629 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14630 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14631
14632 * font.c (Ffont_shape_text): If the font driver doesn't have a
14633 shaper function, make zero-width glyphs to have at least one-pixel
14634 width. Fix setting of `to' field of glyphs.
14635
146362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14637
14638 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14639 glyphs.
14640
14641 * font.h (struct font_driver): Improve docstring of member `shape'.
14642
146432008-02-01 Kenichi Handa <handa@m17n.org>
14644
14645 * composite.c (syms_of_composite): Fix docstring of
14646 auto-composition-function.
14647
14648 * font.h (LGLYPH_SIZE): New macro.
14649
14650 * font.c (Ffont_fill_gstring): Stop filling when a character not
14651 supported by the font is found.
14652 (Ffont_shape_text): When a shape callback function returns nil,
14653 try at most two more times with larger gstring.
14654 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14655
14656 * xdisp.c (handle_auto_composed_prop): Change the argument to
14657 auto-composition-function.
14658
14659 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14660 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14661 Lispy glyph and store it in the lgstring.
14662
14663 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14664
14665 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14666
146672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14668
14669 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14670
14671 * fontset.c (Vfont_encoding_charset_alist): New variable.
14672 (syms_of_fontset): DEFVAR it.
14673 (reorder_font_vector, fontset_find_font): Optimize for the case of
14674 no need of reordering.
14675 (face_for_char): Map the charset property by
14676 Vfont_encoding_charset_alist.
14677
146782008-02-01 Jason Rumney <jasonr@gnu.org>
14679
14680 * w32font.c (logfonts_match): Don't check adstyle here.
14681 (font_matches_spec): Check here against physical font instead.
14682 (add_font_entity_to_list): Avoid some substitutions.
14683
14684 * font.c (font_parse_fcname): Default weight and slant to normal.
14685 (font_score): Prefer normal fonts if weight or slant unspecified.
14686 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14687 match freetype scores.
14688
146892008-02-01 Jason Rumney <jasonr@gnu.org>
14690
14691 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14692 font, as it may have been deleted.
14693 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14694 most common hyphenless variation.
14695 (logfonts_match): Check generic family.
14696 (font_matches_spec): Don't check generic family here.
14697 (fill_in_logfont): Set generic family based on adstyle.
14698
14699 * w32font.h (w32font_get_cache): Update declaration.
14700
147012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14702
14703 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14704
14705 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14706 If none of the new drivers are available, call font_update_drivers
14707 with the old drivers.
14708
14709 * w32font.c (w32font_get_cache): Adjust the argument type.
14710
14711 * xfont.c (xfont_get_cache): Adjust the argument type.
14712
14713 * font.h (struct font_driver): Change argument type of get_cache.
14714
14715 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14716
14717 * font.c (Ffont_get): Fix arguments to Fassoc.
14718 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14719 (font_clear_cache): New function.
14720 (font_list_entities, font_matching_entity): Use font_get_cache.
14721 (font_update_drivers): Call font_clear_cache when finishing a driver.
14722
14723 * fontset.c (fontset_find_font): Fix previous change.
14724
147252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14726
14727 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14728 dpyinfo->font_table.
14729 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14730 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14731
14732 * font.c (font_at): Handle the case that the arg C is negative.
14733 Handle the unibyte case.
14734 (Ffont_at): Call font_at with the arg C -1.
14735
14736 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14737 the position here, and call font_at with the arg C -1.
14738 Don't check the range of the existing composition at the point.
14739
147402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14741
14742 * fontset.c (fontset_add): New args charset_id and family.
14743 Change caller.
14744 (load_font_get_repertory, fontset_find_font): Assume that
14745 font_spec is always a font-spec object.
14746 (Fset_fontset_font): Always store a font-spec object in a fontset.
14747
14748 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14749 instead of get_property_and_range.
14750
147512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14752
14753 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14754 (xftfont_open): Don't keep locking face.
14755 (xftfont_close): Don't unlock face.
14756 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14757
14758 * fontset.c (fontset_find_font): Don't prefer a font of
14759 supplementary charset.
14760
147612008-02-01 Kenichi Handa <handa@m17n.org>
14762
14763 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14764 script, langsys_tag to langsys, new member script.
14765 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14766 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14767 listing to the script specified in that property. Fix arg to
14768 OTF_check_features.
14769
147702008-02-01 Jason Rumney <jasonr@gnu.org>
14771
14772 * w32font.h: New file.
14773
14774 * w32font.c: Include it.
14775 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14776 (w32font_open): Set owning_frame.
14777 (w32font_text_extents): Use owning_frame.
14778 (struct font_callback_data): Add opentype_only field.
14779 (add_font_entity_to_list): Use it to filter fonts.
14780 Don't check against full name.
14781 (w32font_list_internal): New function.
14782 (w32font_list): Use it.
14783 (w32font_match_internal): New function.
14784 (w32font_match): Use it.
14785 (w32font_open_internal): New function.
14786 (w32font_open): Use it.
14787 (w32font_get_cache, w32font_close, w32font_has_char)
14788 (w32font_encode_char, w32font_text_extents, w32font_draw):
14789 Make non-static.
14790
14791 * makefile.w32-in (w32font.o): Depend on w32font.h.
14792
147932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14794
14795 * charset.c (Fdefine_charset_internal): Record a supplementary
14796 charset at the tail of Vcharset_order_list.
14797
14798 * font.c (Ffont_shape_text): Fix the return value.
14799
14800 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14801
14802 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14803
148042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14805
14806 * ftfont.c (struct OpenTypeSpec): New struct.
14807 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14808 (ftfont_get_open_type_spec): New function.
14809 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14810
14811 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14812
148132008-02-01 Jason Rumney <jasonr@gnu.org>
14814
14815 * w32font.c (add_font_entity_to_list): Compare only the beginning
14816 of full name.
14817
148182008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14821 Never return HANDLED_RECOMPUTE_PROPS.
14822
148232008-02-01 Kenichi Handa <handa@m17n.org>
14824
14825 * font.c (font_gstring_produce): Delete it.
14826
14827 * composite.h (COMPOSITION_METHOD):
14828 Handle COMPOSITION_WITH_GLYPH_STRING.
14829
148302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14831
14832 * xfont.c (Qx): Delete.
14833 (syms_of_xfont): Don't initialize Qx.
14834
14835 * composite.h (enum composition_method):
14836 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14837
148382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14839
14840 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14841 (choose_face_font): Accept new form of font-spec.
14842
14843 * frame.h (font_driver_list): Declare it unconditionally.
14844 (struct frame): Define members font_driver_list and font_data_list
14845 unconditionally.
14846
14847 * fontset.c: Include "font.h" unconditionally.
14848 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14849 (Fset_fontset_font): Accept a font-spec object.
14850
14851 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14852 PIXEL_SIZE part a wild card.
14853
14854 * dispextern.h (struct glyph_string): Define members clip and
14855 num_clips unconditionally.
14856 (struct face): Define members font_info and extra unconditionally.
14857
14858 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14859 ftfont_info only when HAVE_LIBOTF is defined.
14860
148612008-02-01 Andreas Schwab <schwab@suse.de>
14862
14863 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14864 and end.
14865
148662008-02-01 Jason Rumney <jasonr@gnu.org>
14867
14868 * w32font.c (w32font_driver): Add new fields.
14869
148702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14871
14872 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14873 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14874 (LIBES): Add @M17N_FLT_CFLAGS@.
14875
14876 * composite.c (compose_text): Don't treat the new style
14877 composition specially.
14878
14879 * emacs.c (main): Call syms_of_font unconditionally.
14880
14881 * font.h (FONT_ENTITY_NOT_LOADABLE)
14882 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14883 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14884 (struct font_driver): New member shape.
14885 (font_registry_charsets): Extern it.
14886 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14887 (font_otf_capability, font_drive_otf): Delete their externs.
14888
14889 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14890 (font_charset_alist, font_registry_charsets): Move from xfont.c
14891 and rename.
14892 (font_prop_validate_otf): New function.
14893 (font_property_table): Register it for QCotf.
14894 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14895 (font_drive_otf): Delete.
14896 (font_prepare_composition): New arg F. Adjust for the change of
14897 lispy gstring.
14898 (font_find_for_lface): New arg C.
14899 (font_load_for_face): Adjust for the change of font_find_for_lface.
14900 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14901 lispy gstring.
14902 (Ffont_shape_text): New function.
14903 (Fopen_font): If the font size is not given, use 12-pixel.
14904 (Ffont_at): New arg STRING.
14905 (syms_of_font): Initalize font_charset_alist.
14906 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14907 conditionally.
14908
14909 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14910 fonts of the same font-spec. Change the format of RFONT-DEF.
14911 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14912 Adjust for the change of RFONT-DEF.
14913 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14914
14915 * ftfont.h: New file.
14916
14917 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14918 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14919 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14920 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14921 font_otf_capability and font_drive_otf, set ftfont_shape.
14922 (ftfont_list): Adjust for the change of :otf property value.
14923 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14924 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14925 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14926 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14927 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14928 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14929
14930 * w32term.c (x_draw_composite_glyph_string_foreground):
14931 Adjust for the change of lispy gstring.
14932
14933 * xdisp.c (handle_composition_prop): Adjust for the change of
14934 lispy gstring. Call a function for auto-composition with the
14935 third arg it->window.
14936 (fill_composite_glyph_string): Adjust for the change of lispy string.
14937 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14938
14939 * xfaces.c (set_font_frame_param): Adjust for the change of
14940 font_find_for_lface.
14941
14942 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14943 (xfont_registry_charsets): Likewise. Change caller.
14944 (syms_of_xfont): Don't handle x_font_charset_alist.
14945
14946 * xftfont.c: Include "ftfont.h".
14947 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14948 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14949 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14950 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14951 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14952 Set xftfont_driver.shape to xftfont_shape.
14953
14954 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14955 the change of lispy gstring.
14956
149572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14958
14959 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14960
149612008-02-01 Jason Rumney <jasonr@gnu.org>
14962
14963 * w32font.c (w32font_draw): Fill background manually.
14964
149652008-02-01 Jason Rumney <jasonr@gnu.org>
14966
14967 * font.c (Qfontp): Remove unused symbol.
14968 (QCantialias): New symbol.
14969 (syms_of_font): Define it.
14970 (font_property_table): Set a validator for QCantialias.
14971
14972 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14973 Define if not already.
14974 (QCfamily): Share with xfaces.c.
14975 (Qstandard, Qsubpixel, Qnatural): New symbols.
14976 (syms_of_w32font): Define them. Don't define QCfamily here.
14977 (w32_antialias_type, lispy_antialias_type): New functions.
14978 (w32_enumfont_pattern_entity): New arg requested_font.
14979 Set antialias parameter if non-default was requested.
14980 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14981
149822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14983
14984 * lread.c (read1): Undo the previous change.
14985
149862008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14987
14988 * frame.c (Fdelete_frame): Call font_update_drivers only when
14989 USE_FONT_BACKEND is defined.
14990
149912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14992
14993 * font.h (struct font_bitmap): New member bits_per_pixel.
14994 (struct font_driver): New members start_for_frame and end_for_frame.
14995 (struct font_data_list): New struct.
14996 (font_put_frame_data, font_get_frame_data): Extern them.
14997
14998 * frame.h (struct frame): New member font_data_list.
14999
15000 * font.c (font_update_drivers): Call driver->start_for_frame and
15001 driver->end_for_frame at proper timings.
15002 (font_put_frame_data, font_get_frame_data): New functions.
15003 (Ffont_spec): Add usage in the docstring.
15004
15005 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15006 (Fdelete_frame): Call font_update_drivers.
15007
15008 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15009 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15010 (xftfont_get_xft_draw): New function.
15011 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15012 (xftfont_end_for_frame): New function.
15013 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15014
15015 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15016 Change argument. Cache GCs in the per-frame data.
15017 (struct ftxfont_frame_data): New struct.
15018 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15019 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15020 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15021 (ftxfont_end_for_frame): New function.
15022 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15023
15024 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * xselect.c (Vselection_coding_system)
15029 (Vnext_selection_coding_system): Delete them.
15030 (syms_of_xselect): Don't declare selection-coding-system and
15031 next-selection-coding-system. They are declared in select.el.
15032
150332008-02-01 Jason Rumney <jasonr@gnu.org>
15034
15035 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15036
15037 * w32fns.c: Include imm.h.
15038 (get_composition_string_fn, get_ime_context_fn): New optional
15039 system functions.
15040 (globals_of_w32fns): Load them from imm32.dll.
15041 (ignore_ime_char): New flag.
15042 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15043 WM_IME_ENDCOMPOSITION messages.
15044
15045 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15046 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15047
150482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15049
15050 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15051 (READCHAR_REPORT_MULTIBYTE): New macro.
15052 (readchar): New 2nd arg MULTIBYTE.
15053 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15054 Make symbol's name multibyte according to the multibyteness of the
15055 source.
15056
150572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15058
15059 * xfaces.c (face_for_overlay_string): Call lookup_face with
15060 correct arguments (fix of synching with the trunk).
15061
150622008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15065 (font_prop_validate_non_neg, font_prop_validate_spacing):
15066 Delete argument prop_index.
15067 (font_property_table): Change arguments to validater. Change Callers.
15068 (font_lispy_object): Delete.
15069 (font_at): Use font_find_object instead fo font_lispy_object.
15070
150712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15072
15073 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15074 and file names.
15075
150762008-02-01 Jason Rumney <jasonr@gnu.org>
15077
15078 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15079 (font_matches_spec): Remove debug output.
15080 (add_font_entity_to_list): Avoid using substituted fonts.
15081
150822008-02-01 Jason Rumney <jasonr@gnu.org>
15083
15084 * doc.c (Fsnarf_documentation):
15085 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15086
150872008-02-01 Miles Bader <miles@gnu.org>
15088
15089 * dispextern.h (struct glyph_row): Only define "clip" field if
15090 HAVE_WINDOW_SYSTEM is defined.
15091
150922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15093
15094 Fix up multi-tty merge.
15095
15096 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15097 and indentation.
15098
15099 * xfaces.c (free_realized_face, clear_face_gcs):
15100 Include font_done_for_face in the input_blocked section, just in case.
15101
15102 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15103 (get_char_face_and_encoding): Undo last change and remove the *other*
15104 duplicate definition (i.e. keep the one that's better scoped and that
15105 includes code for the font-backend).
15106
15107 * terminal.c (create_terminal): Default keyboard_coding to
15108 `no-conversion' and terminal_coding to `undecided'.
15109
15110 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15111
15112 * fontset.c (free_realized_fontsets): Check that the table entry does
15113 contain a fontset before trying to compare it to `base'.
15114
15115 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15116 syms_of_charset, and syms_of_coding earlier because init_window_once
15117 now needs Vcoding_system_hash_table to be setup.
15118
15119 * coding.h (default_buffer_file_coding): Remove.
15120
15121 * coding.c (default_buffer_file_coding): Remove.
15122 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15123 than ->symbol, and use the terminal-local coding system.
15124 (syms_of_coding): Don't setup the coding-systems that are not
15125 terminal-local.
15126 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15127
15128 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15129 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15130
15131 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15132 in chartab.c and were re-added here by mistake.
15133 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15134
15135 * doc.c (Fsnarf_documentation):
15136 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15137 src to etc.
15138
15139 * ChangeLog.10: Add mistakenly removed entry.
15140
151412008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15142
15143 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15144
151452008-02-01 Miles Bader <miles@gnu.org>
15146
15147 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15148 Add extra args to FACE_FOR_CHAR.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15153 in sequence.
15154
15155 * chartab.c (map_sub_char_table, map_char_table): If the range
15156 contains just one character, call the function with that character
15157 even if the depth is not 3.
15158
151592008-02-01 Jason Rumney <jasonr@gnu.org>
15160
15161 * w32font.c (w32font_text_extents): Calculate metrics for the
15162 whole string.
15163
151642008-02-01 Jason Rumney <jasonr@gnu.org>
15165
15166 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15167
151682008-02-01 Jason Rumney <jasonr@gnu.org>
15169
15170 * w32term.c (x_set_glyph_string_clipping): Use
15171 get_glyph_string_clip_rects.
15172 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15173 Adjust for the change of struct glyph_string.
15174
15175 * w32font.c (w32font_draw): Do clipping here.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * xftfont.c (xftfont_draw): Adjust for the change of struct
15180 glyph_string.
15181
15182 * xterm.c (x_set_glyph_string_clipping): Use
15183 get_glyph_string_clip_rects.
15184 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15185 Adjust for the change of struct glyph_string.
15186
15187 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15188 the resulting clip(s}.
15189 (expose_overlaps): Add arg r. Change callers. Set it to
15190 row->clip temporarily.
15191 (expose_window): Redraw rows overlapping the exposed area.
15192
15193 * dispextern.h (struct glyph_row): New member clip.
15194 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15195 clip_height, new member clip, and num_clips.
15196
151972008-02-01 Kenichi Handa <handa@m17n.org>
15198
15199 * data.c (Fchar_or_string_p): Fix docstring.
15200
152012008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15204 create a temporary XftDraw object.
15205
152062008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 * font.c (Ffontp): Fix docstring.
15209
15210 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15211 strong evidence of ISO-2022.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15216 SYNTAX_ENTRY_FOLLOW_PARENT.
15217
152182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15219
15220 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15221 its type.
15222 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15223 Update to the new type of weak_hash_tables and next_weak.
15224
15225 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15226 a plain C pointer to Lisp_Hash_Table.
15227
15228 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15229 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15230 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15231 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15232 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15233 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15234 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15235 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15236 (GC_EQ): Remove since they've been identical to their non-GC_
15237 alter-egos ever since the markbit was eradicated.
15238
15239 * alloc.c:
15240 * buffer.c:
15241 * buffer.h:
15242 * data.c:
15243 * fileio.c:
15244 * filelock.c:
15245 * fns.c:
15246 * frame.h:
15247 * lisp.h:
15248 * macterm.c:
15249 * print.c:
15250 * process.c:
15251 * w32fns.c:
15252 * w32menu.c:
15253 * w32term.c:
15254 * xfns.c:
15255 * xmenu.c:
15256 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15257
152582008-02-01 Kenichi Handa <handa@m17n.org>
15259
15260 * chartab.c (map_sub_char_table): Make it work for the top-level
15261 char-table. Fix handling of parent char-table.
15262 (map_char_table): Adjust for the above change.
15263
152642008-02-01 Jason Rumney <jasonr@gnu.org>
15265
15266 * w32font.c (Qgdi): Rename from Qw32.
15267
152682008-02-01 Jason Rumney <jasonr@gnu.org>
15269
15270 * w32bdf.c (get_quoted_string): Make function static.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15275 bigger ascent and descent than those of the font, use them as
15276 font's ascent and descent.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * Makefile.in (${lispsource}international/charprop.el): Move this
15281 target within "#ifdef HAVE_UNIDATA" and "#endif".
15282
152832008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15286 (shortlisp): Add ../lisp/language/tai-viet.el.
15287
152882008-02-01 Ulrich Mueller <ulm@gentoo.org>
15289
15290 * Makefile.in (${lispsource}international/charprop.el): Depend on
15291 temacs${EXEEXT}.
15292
152932008-02-01 Jason Rumney <jasonr@gnu.org>
15294
15295 * w32font.c (w32font_close): Delete the GDI font object.
15296
15297 * w32menu.c: Include character.h.
15298
15299 * w32proc.c: Likewise.
15300
15301 * w32select.c: Likewise.
15302
15303 * makefile.w32-in (w32proc.o): Depend on character.h.
15304
153052008-02-01 Jason Rumney <jasonr@gnu.org>
15306
15307 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15308
15309 * w32menu.c (syms_of_w32menu): Likewise.
15310
15311 * w32proc.c (syms_of_ntproc): Likewise.
15312
15313 * w32select.c (syms_of_w32select): Likewise.
15314
15315 * w32term.c (syms_of_w32term): Likewise.
15316
153172008-02-01 Jason Rumney <jasonr@gnu.org>
15318
15319 * w32font.c (w32font_draw): Delete brush after using it.
15320
153212008-02-01 Jason Rumney <jasonr@gnu.org>
15322
15323 * w32font.c (w32font_open): Don't set font_idx.
15324 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15325 to font settings.
15326 (w32font_draw): Fill background explicitly.
15327
153282008-02-01 Jason Rumney <jasonr@gnu.org>
15329
15330 * w32term.c (w32_initialize): Don't call w32font_initialize.
15331
15332 * w32font.c (w32font_info): Remove subranges.
15333 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15334 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15335 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15336 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15337 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15338 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15339 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15340 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15341 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15342 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15343 New symbols.
15344 (font_callback_data): New struct.
15345 (w32font_list, w32font_match): Use it.
15346 (w32font_open): Don't populate subranges.
15347 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15348 (w32font_encode_char): Always return unicode code-point as-is.
15349 (w32font_text_extents): Supply a transformation matrix to
15350 GetGlyphOutline. Never look up by glyph index. Avoid looping
15351 twice. Use unicode version of GetTexExtentPoint32 instead of
15352 glyph index version.
15353 (set_fonts_frame): Remove.
15354 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15355 set frame parameter. Use backward compatible fake foundries.
15356 Save generic family in extra slot under QCfamily. Make width slot
15357 constant. Save QCspacing value. Save list of scripts instead of
15358 binary subranges.
15359 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15360 (add_font_entity_to_list): Use font_callback_data struct. Filter
15361 unwanted fonts.
15362 (add_one_font_entity_to_list): Use font_callback_data struct.
15363 (w32_registry): Default to iso10646_1.
15364 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15365 string font registries. Don't fill in font name if it is a generic
15366 family name, fill family instead. Use spacing, family and script
15367 extra info to fill pitch, family and charset fields.
15368 (list_all_matching_fonts): Use font_callback_data struct.
15369 (unicode_range_for_char): Remove.
15370 (font_supported_scripts): New function.
15371 (w32font_initialize): Remove.
15372 (syms_of_w32font): Update which symbols are defined.
15373
153742008-02-01 Jason Rumney <jasonr@gnu.org>
15375
15376 * font.c (font_pixel_size): Reverse assq_no_quit args.
15377
15378 * w32term.h (FONT_WIDTH): Report max width, not average.
15379 (FONT_MAX_WIDTH): Remove.
15380 (FONT_AVG_WIDTH): New macro.
15381
15382 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15383 redefinition of FONT_WIDTH.
15384
15385 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15386 (w32_cache_char_metrics): Use FONT_WIDTH.
15387
15388 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15389
153902008-02-01 Jason Rumney <jasonr@gnu.org>
15391
15392 * w32font.c (w32font_open): Make lfHeight negative.
15393
15394 * w32fns.c (x_default_font_parameter): Use new style font name.
15395 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15396
153972008-02-01 Jason Rumney <jasonr@gnu.org>
15398
15399 * w32font.c (QCsubranges): New symbol.
15400 (w32font_open, w32font_has_char): Get subranges from subproperty
15401 of extra.
15402 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15403 (syms_of_w32font): Define :subranges symbol.
15404
15405 * font.c (font_put_extra): Expose externally.
15406
15407 * font.h (font_put_extra): Move declaration from font.c.
15408
15409 * font.c (Ffont_get): Use font driver to determine otf capability.
15410 (adjust_anchor): Check if driver defines anchor_point before using.
15411
15412 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15413 (w32font_draw): Use options.
15414 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15415 Fix detection of truetype fonts.
15416 (registry_to_w32_charset): Handle charsets other than iso8859-1
15417 expressed as lisp symbols.
15418 (w32_registry): Express charset as lisp symbol.
15419 (fill_in_logfont): Reverse pixel and point height logic.
15420 Don't set width here. Set quality to default.
15421
15422 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15423 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15424
15425 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15426 Remove redundant loop and allocation.
15427
15428 * makefile.w32-in (font.o, w32font.o): New objects.
15429 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15430 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15431
15432 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15433 STORE_XCHARB a valid l-value.
15434
15435 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15436 calculations for non-Truetype fonts.
15437 (x_draw_glyph_string): Sync with xterm.c.
15438 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15439 Remove redundant code.
15440 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15441
15442 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15443 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15444
15445 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15446 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15447
15448 * w32font.c: New file for w32 font backend.
15449
154502008-02-01 Kenichi Handa <handa@m17n.org>
15451
15452 * term.c: Don't include "buffer.h" twice.
15453
154542008-02-01 Kenichi Handa <handa@m17n.org>
15455
15456 * character.c (Funibyte_string): New function.
15457 (syms_of_character): Defsubr it.
15458
154592008-02-01 Jason Rumney <jasonr@gnu.org>
15460
15461 * w32term.c [USE_FONT_BACKEND]:
15462 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15463 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15464 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15465 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15466 (x_free_frame_resources): Sync with xterm.c.
15467
154682008-02-01 Andreas Schwab <schwab@suse.de>
15469
15470 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15471 char-table size.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15476
154772008-02-01 Kenichi Handa <handa@m17n.org>
15478
15479 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15480 font_otf_gpos, add font_drive_otf.
15481
15482 * fontset.c (fontset_find_font): Pay attention to font size
15483 specified for a font.
15484 (reorder_font_vector): Check contents of font_def.
15485
15486 * font.c (struct otf_list): Delete it.
15487 (otf_list): Make it a lisp variable.
15488 (otf_open): Use lispy otf_list.
15489 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15490 (check_otf_features): New function.
15491 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15492 New functions.
15493 (font_drive_otf): New function merging font_otf_gsub and
15494 font_otf_gpos.
15495 (font_open_for_lface): New arg spec. Change argument order.
15496 (font_load_for_face): Adjust for the change of font_open_for_lface.
15497 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15498 Ffont_otf_gpos.
15499 (syms_of_font): Staticpro otf_list. Delete defsubr of
15500 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15501
15502 * xfaces.c (set_font_frame_param): Adjust for the change of
15503 font_open_for_lface.
15504
15505 * font.h (font_open_for_lface): Adjust prototype.
15506 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15507 member otf_drive.
15508 (font_otf_gsub, font_otf_gpos): Delete externs.
15509 (font_drive_otf): Extern it.
15510
155112008-02-01 Kenichi Handa <handa@m17n.org>
15512
15513 * font.c (font_at): If the window W is not on a window system,
15514 return Qnil.
15515
15516 * coding.c (produce_chars, encode_coding): Don't call
15517 insert_from_gap if no characters to produce.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15522 Fclear_face_cache.
15523
15524 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15525
155262008-02-01 Miles Bader <miles@gnu.org>
15527
15528 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15529 Parse "--disable-font-backend" option.
15530 (standard_args): Add "--disable-font-backend" option.
15531
155322008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * fontset.c (fontset_find_font): New function.
15535 (fontset_font): Use fontset_find_font.
15536 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15537 Register the specified font for all Latin characters.
15538 (new_fontset_from_font): Register the specified font for all Latin
15539 characters.
15540 (dump_fontset): For a realized fontset, include the base fontset
15541 name in the returned vector.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * character.h (CHAR_STRING): Cast C to unsigned on calling
15546 char_string.
15547
15548 * character.c (char_string): Type of arg C changed to unsigned.
15549 Signal an error if C is an invalid character code.
15550
15551 * editfns.c (general_insert_function, Fchar_to_string):
15552 Use CHARACTERP, not INTEGERP.
15553
155542008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15557 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15558
15559 * regex.c (analyse_first): Fix for multibyte characters in "case
15560 charset:" and "case categoryspec:".
15561
155622008-02-01 Andreas Schwab <schwab@suse.de>
15563
15564 * Makefile.in (LIBES): Move standard libraries to the end.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15569 nonzero, don't shrink the buffer nextb.
15570
15571 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15572
15573 * coding.c (coding_alloc_by_making_gap): New arg offset.
15574 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15575 offset.
15576 (decode_coding_iso_2022): Update coding->safe_charsets.
15577 (decode_coding_gap): Temporarily set
15578 current_buffer->text->inhibit_shrinking to 1.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15583 indexing into elements of s->cmp and s->char2b.
15584
155852008-02-01 Juanma Barranquero <lekktu@gmail.com>
15586
15587 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15588
155892008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15592 target_multibyte instead of multibyte.
15593 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15594 (bcmp_translate): Change the argument name from multibyte to
15595 target_multibyte.
15596
155972008-02-01 Kenichi Handa <handa@m17n.org>
15598
15599 These changes are to compile a regexp into a pattern that can be
15600 used both for multibyte and unibyte targets.
15601
15602 * Makefile.in (search.o): Depend on charset.h.
15603
15604 * character.c (multibyte_char_to_unibyte_safe): New function.
15605
15606 * search.c: Include "charset.h".
15607 (compile_pattern_1): Delete argument multibyte. Don't set
15608 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15609 (compile_pattern): Don't compare cp->buf.target_multibyte.
15610 Compare cp->buf.charset_unibyte.
15611 (compile_pattern): Set cp->buf.target_multibyte.
15612
15613 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15614
15615 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15616
15617 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15618 multibyte. Change callers.
15619 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15620 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15621 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15622 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15623 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15624 (regex_compile): Make the compiled pattern usable both for
15625 multibyte and unibyte targets.
15626 (analyse_first): Make the fastmap usable both for multibyte and
15627 unibyte targets.
15628 (TRANSLATE_VIA_MULTIBYTE): Delete.
15629 (re_match_2_internal): Pay attention to the case that the
15630 multibyteness of bufp and target may be different.
15631
156322008-02-01 Kenichi Handa <handa@m17n.org>
15633
15634 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15635 empty box occupy at least one column width.
15636
156372008-02-01 Miles Bader <miles@gnu.org>
15638
15639 * Makefile.in: Remove redundant HAVE_XFT clause.
15640
156412008-02-01 Kenichi Handa <handa@m17n.org>
15642
15643 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15644
156452008-02-01 Kenichi Handa <handa@m17n.org>
15646
15647 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15648 being nil.
15649
156502008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15653
156542008-02-01 Kenichi Handa <handa@m17n.org>
15655
15656 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15657
156582008-02-01 Kenichi Handa <handa@m17n.org>
15659
15660 * search.c (simple_search): Fix previous change.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * xftfont.c (ftfont_font_format): Extern declaration.
15665
15666 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15667
15668 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15669 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15670
15671 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15672 (ftfont_font_format): Fix previous change.
15673
15674 * font.h (Ffont_xlfd_name): EXFUN it.
15675
15676 * font.c (font_parse_xlfd): Fix the array size of `f'.
15677 (register_font_driver): Use EQ to compare driver->type.
15678
15679 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15680 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15681 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15682
156832008-02-01 Kenichi Handa <handa@m17n.org>
15684
15685 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15686 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * xfont.c (xfont_open): Set font->format.
15691
15692 * xftfont.c (xftfont_open): Set font->format.
15693
15694 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15695 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15696 (ftfont_open): Set font->format.
15697 (ftfont_font_format): New function.
15698
15699 * font.h (struct font): New member format.
15700
15701 * font.c (Qopentype): New variable.
15702 (syms_of_font): Defsym it.
15703 (Fquery_font): Change the format of the last element of the return
15704 value.
15705
157062008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15709 last resort.
15710
157112008-02-01 Kenichi Handa <handa@m17n.org>
15712
15713 * coding.c (detect_coding_charset): Fix detection of multi-byte
15714 charset.
15715
157162008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15717
15718 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15719
157202008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * xdisp.c (get_next_display_element): Set it->face_id for the
15723 first component of a composition.
15724 (x_produce_glyphs): Check if the font is changed or not for composition.
15725
157262008-02-01 Kenichi Handa <handa@m17n.org>
15727
15728 * fontset.c (Qlatin): New variable.
15729 (syms_of_fontset): Define it as a lisp symbol.
15730 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15731
157322008-02-01 Kenichi Handa <handa@m17n.org>
15733
15734 * font.c (font_unparse_fcname): Pay attention to the case that
15735 some of font property is a null string.
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * term.c: Include "composite.h".
15740 (encode_terminal_code): Output all components of composition.
15741 Check the size of encode_terminal_src.
15742 (produce_glyphs): For composition, call produce_composite_glyph.
15743 (append_composite_glyph, produce_composite_glyph): New functions.
15744
15745 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15746 is not found, get font_info from the current ascii face.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15751 buffer-file-name to Qnil before calling insert_from_buffer.
15752
15753 * font.c (font_unparse_fcname): Pay attention to the case that
15754 foundry is a null string.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15759
15760 * font.c (Qunicode_sip): New variable.
15761 (syms_of_font): Declare it as a Lisp symbol.
15762
15763 * font.h (Qunicode_sip): Extern it.
15764
157652008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * composite.c (get_composition_id): Pay attention to TAB component.
15768
15769 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15770 TAB. Adjust for the change of s->char2b which always points to
15771 the first element of allocated memory.
15772
15773 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15774
15775 * xdisp.c (handle_composition_prop): Set it->c to the first
15776 non-TAB component.
15777 (fill_composite_glyph_string): Change argument.
15778 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15779 (x_produce_glyphs): Fix handling of left/right padding.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * coding.c (detect_coding_system): Fix for handling off
15784 inhibit_iso_escape_detection. Fix for the case that no coding
15785 system is defined for a specific coding category.
15786
157872008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * font.c (font_matching_entity): Delete unused local var.
15790
15791 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15792 opening a font.
15793
15794 * fileio.c (Finsert_file_contents): On recovering a file, assume
15795 Unix-like eol.
15796 (choose_write_coding_system): On auto-saving a file, force
15797 Unix-like eol.
15798
15799 * coding.c (setup_coding_system): Fix setting of
15800 coding->common_flags based on eol_type.
15801 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15802 inherit from it.
15803
158042008-02-01 Kenichi Handa <handa@m17n.org>
15805
15806 * alloc.c (NSTATICS): Increas to 0x600.
15807
158082008-02-01 Kenichi Handa <handa@m17n.org>
15809
15810 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15811 (ftfont_list): Don't check :name property.
15812 (ftfont_match): New function.
15813 (ftfont_pattern_entity): If the pattern doesn't contain
15814 FC_SPACING, don't assume FC_MONO.
15815
15816 * font.h (struct font_driver): New member `match'.
15817 (font_update_drivers): Adjust prototype.
15818
15819 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15820 property of FONT.
15821 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15822 them unconditionally.
15823 (font_matching_entity): New function.
15824 (font_open_by_name): Try font_matching_entity if exact match is
15825 not found.
15826 (font_update_drivers): Delete the arg FONT. Return a list of
15827 actually used backends. Don't free faces, font caches here.
15828 Don't store data in frame parameters. Don't call x_set_font.
15829 (Ffont_spec): Store :name property as is.
15830 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15831 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15832 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15833 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15834 Call font->driver->otf_gsub instead of font_otf_gsub.
15835
15836 * frame.c (x_set_font_backend): Do more works that were done in
15837 font_update_drivers before.
15838
15839 * xfont.c (xfont_match): New function.
15840 (xfont_driver): Set xfont_driver.match to xfont_match.
15841 (xfont_draw): Set font in GC if necessary.
15842
15843 * ftxfont.c (ftxfont_match): New function.
15844 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15845
15846 * xftfont.c (xftfont_match): New function.
15847 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15848
158492008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * font.h (struct font): New member scalable.
15852 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15853 (font_otf_gsub): Adjust prototype.
15854
15855 * font.c (font_otf_capability): Fix handling of the default langsys.
15856 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15857 Check the contents of SPEC.
15858 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15859 (check_gstring): New function.
15860 (REPLACEMENT_CHARACTER): New macro.
15861 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15862 glyph codes of GSTRING.
15863 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15864 (font_prepare_composition): Set cmp->glyph_len.
15865 (font_open_entity): Set font->scalable.
15866 (Ffont_get): Handle :otf property.
15867 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15868 functions.
15869 (Fquery_font): Use font->font.full_name.
15870 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15871 Sfont_otf_alternates.
15872
15873 * ftfont.c (ftfont_open): Set font->font.full_name and
15874 font->font.name properly. Fix calculation of font->font.height
15875 and font->min_width.
15876
15877 * ftxfont.c (ftxfont_create_gcs): New function.
15878 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15879 (ftxfont_draw_backgrond): Fix filling region.
15880 (ftxfont_default_fid): New function.
15881 (ftxfont_open): Set xfont->fid to the return value of
15882 ftxfont_default_fid.
15883 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15884 (ftxfont_done_face): Free only GCs that are created by
15885 ftxfont_create_gcs.
15886 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15887
15888 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15889 Clip to src->width, etc (not src->clip_XXX).
15890
15891 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15892 FontBackend frame parameter.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * font.h (struct font_driver_list): New member `on'.
15897 (Fclear_font_cache): EXFUN it.
15898 (font_update_drivers): Extern it.
15899
15900 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15901 (font_list_entities): Check driver_list->on.
15902 (register_font_driver): Initalize `on' member to 0.
15903 (font_update_drivers): New function.
15904 (Fclear_font_cache): Check driver_list->on.
15905
15906 * frame.h (Qfont_backend): Extern it.
15907 (x_set_font_backend): Extern it.
15908
15909 * frame.c (Qfont_backend): New variable.
15910 (frame_parms): New element for font-backend.
15911 (x_set_font_backend): New function.
15912
15913 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15914 FontBackend frame parameter.
15915 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15916 x_set_font_backend.
15917
15918 * xfont.c (xfont_list): Don't try listing by :name property if the
15919 name is not for XLFD.
15920
159212008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15924 (LGLYPH_SET_TO): New macros.
15925 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15926 element of G is vector or not.
15927 (font_at): Extern it.
15928
15929 * font.c: Include window.h.
15930 (font_lispy_object): New function.
15931 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15932 end of valid glyph.
15933 (font_close_object): Fix getting (struct font *).
15934 (font_at): New function.
15935 (Ffont_get): If FONT is a font-object, get entity from it.
15936 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15937 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15938 range check.
15939 (Ffont_at): New function.
15940 (syms_of_font): Defsubr Sfont_at.
15941
15942 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15943 before the entry for Qcomposition.
15944 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15945 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15946 the font in gstring.
15947 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15948 LGLYPH_FORM (g) to detect the end of valid glyph.
15949 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15950 we are composing with gstring.
15951
15952 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15953 Check if adjustment is vector or not.
15954
15955 * Makefile.in (font.o): Make it depends on window.h.
15956
159572008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15960 adjustment is vector or not.
15961
159622008-02-01 Miles Bader <miles@gnu.org>
15963
15964 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15969 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15970 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15971
15972 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15973 (DEVICE_DELTA): Fix typo.
15974 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15975 LGLYPH format.
15976
15977 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15978 the change of LGLYPH format.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * ftfont.c (ftfont_list): Fix typo.
15983 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15984
159852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15986
15987 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15988
15989 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15990 xftface_info is non-NULL.
15991
159922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15993
15994 * ftfont.c (ftfont_list): Move misplaced #endif.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * ftfont.c (ftfont_list): Pay attention to the case that
15999 FC_CAPABILITY is not defined.
16000
160012008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * xftfont.c (xftfont_open): Set charset related members to -1.
16004
16005 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16006 QCname.
16007 (ftfont_open): Set charset related members to -1.
16008
16009 * fontset.c (Votf_script_alist): New variable.
16010 (syms_of_fontset): Initialize it.
16011 (fontset_font): Delete unused variable.
16012
16013 * fontset.h (Votf_script_alist): Extern it.
16014
16015 * font.c (font_find_for_lface): Optimize code.
16016
16017 * font.h (font_close_object, font_merge_old_spec): Extern them.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16022 (syms_of_font): Initialize them.
16023 (font_pixel_size): Allow float value in dpi.
16024 (font_prop_validate_type): Delete.
16025 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16026 Change caller.
16027 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16028 (font_prop_validate_extra): Delete.
16029 (font_prop_validate_spacing): New function.
16030 (font_property_table): Add elements for all known properties.
16031 (get_font_prop_index): Rename from check_font_prop_name. New
16032 argument FROM. Change caller.
16033 (font_prop_validate): Validate all known properties.
16034 (font_put_extra): Delete argument force. Change caller.
16035 (font_expand_wildcards): Make it static. Fix the way of shrinking
16036 the possible range.
16037 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16038 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16039 Change caller.
16040 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16041 (font_parse_fcname): Delete argument merge. Fix parsing of point
16042 size. Don't validate properties values here. Change caller.
16043 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16044 (font_open_by_name): Delete unused variable.
16045 (Ffont_spec): Likewise. Validate property values.
16046 (Ffont_match_p): New function.
16047
16048 * font.h (QCscalable): Extern it.
16049 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16050
16051 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16052
16053 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16054 (xfont_list_pattern): New function.
16055 (xfont_list): Use xfont_list_pattern.
16056
160572008-02-01 Kenichi Handa <handa@m17n.org>
16058
16059 * font.h (Flist_fonts): EXFUN it.
16060
160612008-02-01 Jason Rumney <jasonr@gnu.org>
16062
16063 * w32term.c (w32_initialize): Add back smoothing_type and
16064 smoothing_enabled definitions.
16065
160662008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16069 s->face->font on determining underline position.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16074 (font_has_char): Accept font-object too.
16075 (font_find_for_lface): Try at first with a size specified in face.
16076
160772008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16080 font_open_by_name.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * font.h (QCspacing, QCdpi): Extern them.
16085 (enum font_spacing): New enum.
16086 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16087
16088 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16089 (QCspacing, QCdpi): New variables.
16090 (syms_of_font): Initialize them.
16091 (font_pixel_size): New function.
16092 (font_put_extra): New function.
16093 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16094 in FONT_EXTRA.
16095 (font_parse_fcname): Handle enumerated values (e.g. bold).
16096 Fix handling font size. Add QCname property that contains only
16097 unknown properties.
16098 (font_score): Change argument. Change caller. Pay attention to
16099 FONT_PIXEL_SIZE_QUANTUM.
16100 (font_sort_entites, font_list_entities, font_find_for_lface)
16101 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16102 (Ffont_spec): Add QCname property that contains only unknown properties.
16103
16104 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16105 include weight in listing pattern, instead check weight of each
16106 listed font. Don't include scalable in pattern. Pay attention to
16107 FONT_PIXEL_SIZE_QUANTUM.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * font.c (font_parse_fcname): Fix parsing of point-size.
16112 (font_unparse_fcname): Produce symbolic names for style properties.
16113 (font_list_entities): Handle float size correctly.
16114 (font_open_by_name): Prefer `normal' property values if the name
16115 doesn't specify them.
16116
16117 * fontset.c (Finternal_char_font): Use font_get_name, not
16118 Ffont_xlfd_name.
16119
16120 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16121 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16122 pattern. Don't force scalable.
16123
16124 * xftfont.c (xftfont_open): For generating a name, start from
16125 96-byte buffer.
16126
161272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16128
16129 * frame.h (x_new_fontset2): Fix prototype.
16130
161312008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * font.h (struct font_driver): Delete member parse_name.
16134 (font_match_p, font_get_spec, font_parse_fcname)
16135 (font_unparse_fcname): Extern them.
16136 (font_get_name): Adjust prototype.
16137
16138 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16139 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16140 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16141 unnecessary checks for weight, slant, and swidth.
16142 (font_parse_fcname): New function.
16143 (font_unparse_fcname): New function.
16144 (font_parse_name): New function.
16145 (font_match_p): New function.
16146 (font_get_name): Change return value to Lisp string.
16147 (font_get_spec): New function.
16148 (Qunspecified, Qignore_defface): Don't extern them.
16149 (font_find_for_lface): Assume that LFACE is fully specified.
16150 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16151 object, use it for FACE.
16152 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16153 driver->parse_name.
16154 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16155
16156 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16157 prototype.
16158
16159 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16160 argument F. Don't call Fnew_fontset. Instead, directly call
16161 make_fontset.
16162
16163 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16164
16165 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16166 of x_new_fontset2.
16167
16168 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16169 (Qsans__serif): New variables.
16170 (ftfont_generic_family_list): New variable.
16171 (syms_of_ftfont): Initialize the above variables.
16172 (ftfont_pattern_entity): Delete argument NAME.
16173 (ftfont_list_generic_family): New function.
16174 (ftfont_parse_name): Delete this function.
16175 (ftfont_list): Try generic family only when FcFontList found no font.
16176 (ftfont_list_family): Fix args to FcObjectSetBuild.
16177
16178 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16179 object in attrs[LFACE_FONT_INDEX].
16180 (set_lface_from_font_name): Cancel all changes for font-backend.
16181 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16182 function.
16183 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16184 font object in QCfont attribute.
16185 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16186 (realize_default_face) [USE_FONT_BACKEND]: Call
16187 set_lface_from_font_and_fontset.
16188
16189 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16190 "fixed", and signal error here if no suitable font was found.
16191
16192 * xfont.c (xfont_parse_name): Delete this function.
16193
16194 * xftfont.c (xftfont_open): Change coding style of error
16195 handling. Generate fontconfig's fontname pattern.
16196
16197 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16198 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16199
16200 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16201 Both args FONTSET and FONT_OBJECT must be existing ones.
16202
162032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16204
16205 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16206
162072008-02-01 Kenichi Handa <handa@m17n.org>
16208
16209 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16210
16211 * font.h (struct font): Fix typo.
16212
16213 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16214 XLFD_XXX_INDEX.
16215 (enum xlfd_field_mask): New enum.
16216 (intern_font_field): Changed argument. Change caller. If digits
16217 are followed by non-digits, return a symbol.
16218 (font_expand_wildcards): New function.
16219 (font_parse_xlfd): Fix wildcard handling.
16220 (Ffont_spec): If :name is specified, reflect the info in the other
16221 properties.
16222
16223 * ftfont.c (ftfont_pattern_entity): Fix typo.
16224 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16225 locale.
16226
162272008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16230
16231 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16232 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16233 registry doesn't specify encoding part.
16234 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16235 (font_open_by_name): At first try parsing the name.
16236 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16237 as Lisp symbols.
16238
16239 * fontset.c (reorder_font_vector): Pay attention to the case that
16240 the 3rd element of font_def is nil.
16241 (fontset_font): For the default fontset, append one more fontset
16242 elements for a script-based font specification. Don't add script
16243 attribute on finding a font.
16244 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16245 font name.
16246 (fontset_ascii_font): If a font can't be opened, return nil.
16247
16248 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16249 (ftfont_pattern_entity): New function.
16250 (ftfont_get_cache): Assume that freetype_font_cache is already
16251 initialized.
16252 (ftfont_list): Handle the case that a file is specified in font
16253 name. Use ftfont_pattern_entity to generate entities.
16254 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16255 (syms_of_ftfont): Initialize freetype_font_cache.
16256
16257 * xftfont.c (xftfont_open): Make the font name fontconfig's
16258 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16259 (xftfont_close): Free font->font.name if not NULL.
16260
16261 * xfont.c (xfont_list): If script is specified for a font, return
16262 null_vector.
16263 (xfont_list_family): Declare argument type.
16264
16265 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16266 name, set LFACE_FONT (lface) to nil.
16267
16268 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16269 return Qnil.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16274 (standard_args): Add "-enable-font-backend".
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16279 (struct xftdraw_list, xftdraw_list): Delete them.
16280 (register_xftdraw, check_xftdraw): Delete them.
16281 (xftfont_prepare_face): Don't call register_xftdraw.
16282 (xftfont_done_face): Don't call check_xftdraw.
16283 (xftfont_draw): Get background color only when with_background is
16284 nonzero.
16285
16286 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 These changes are for the new font handling codes.
16291
16292 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16293 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16294 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16295 (FONTSRC, FONTOBJ): New variables.
16296 (obj): Add $(FONTOBJ).
16297 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16298 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16299 @LIBOTF_LIBS@.
16300 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16301 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16302
16303 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16304
16305 * character.h (Vscript_representative_chars): Extern it.
16306
16307 * character.c (Vscript_representative_chars): New variable.
16308 (syms_of_character): Declare it as a Lisp variable.
16309
16310 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16311 enable_font_backend is nonzero, accept the composition method
16312 COMPOSITION_WITH_GLYPH_STRING.
16313
16314 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16315 enumeration COMPOSITION_WITH_GLYPH_STRING.
16316
16317 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16318 members clip_x, clip_y, clip_width, and clip_height.
16319 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16320
16321 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16322 --enable-font-backend. Call syms_of_font.
16323
16324 * fns.c (assoc_no_quit): New function.
16325
16326 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16327 (face_for_font, new_fontset_from_font)
16328 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16329
16330 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16331 (fontset_font, fontset_ascii, face_for_char)
16332 (make_fontset_for_ascii_face, Ffont_info)
16333 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16334 is nonzero, use font-backend mechanism.
16335 (find_font_encoding): Make it non-static.
16336 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16337 New functions.
16338
16339 * frame.h (struct frame): New members resx and resy.
16340 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16341 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16342
16343 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16344 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16345
16346 * lisp.h (assoc_no_quit): Extern it.
16347
16348 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16349 Through out the file, use FONT_INFO_FROM_FACE instead of
16350 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16351 rif->per_char_metric.
16352 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16353 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16354 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16355 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16356 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16357 nonzero, use font-backend mechanism.
16358 (get_per_char_metric): New function.
16359
16360 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16361 (set_lface_from_font_name)
16362 (set_font_frame_param, free_realized_face)
16363 (prepare_face_for_display, clear_face_gcs)
16364 (Finternal_set_font_selection_order, realize_x_face)
16365 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16366 font-backend mechanism.
16367 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16368 (load_face_font) [USE_FONT_BACKEND]: Abort.
16369 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16370 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16371
16372 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16373 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16374 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16375 nonzero, register all available font drivers. Call
16376 x_default_font_parameter for deciding a font.
16377 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16378
16379 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16380 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16381 (x_set_glyph_string_clipping_exactly)
16382 (x_compute_glyph_string_overhangs)
16383 (x_draw_glyph_string_foreground)
16384 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16385 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16386 enable_font_backend is nonzero, use font-backend mechanism.
16387 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16392 system_eol_type.
16393 (syms_of_coding): Initialize system_eol_type.
16394
16395 * process.c (Fset_process_coding_system): Inherit system's eol
16396 format if necessary.
16397
163982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16399
16400 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * coding.c (decode_eol): Pay attention to buffer relocation in
16405 del_range_2.
16406 (decode_coding): Call decode_eol before restoring undo_list.
16407
164082008-02-01 Kenichi Handa <handa@m17n.org>
16409
16410 * charset.c (Fdefine_charset_internal): Fix setting of
16411 emacs_mule_bytes.
16412
164132008-02-01 Kenichi Handa <handa@m17n.org>
16414
16415 * keyboard.c (read_char): Check if C is a character or not before
16416 looking up Vkeyboard_translate_table.
16417
164182008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16421 condition to terminate the loop.
16422
164232008-02-01 Kenichi Handa <handa@m17n.org>
16424
16425 * coding.c (produce_composition): Compare charbuf[i] instead of
16426 args[i] against 0.
16427 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16428
164292008-02-01 Kenichi Handa <handa@m17n.org>
16430
16431 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16432 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16433 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16434 detect_coding.
16435 (emacs_mule_char): Handle old style (Emacs 20) component character
16436 of a composition.
16437 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16438 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16439 composition rule.
16440 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (encode_coding_ccl): Allocate destination dynamically
16445 when necessary.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16450 the loop. When quitted, show a proper error message.
16451
164522008-02-01 Kenichi Handa <handa@m17n.org>
16453
16454 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16455 src->clip_head and src->clip_tail temporarily instead of src->hl.
16456
16457 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16458 character sequence.
16459 (Fccl_execute_on_string): Use ASET, not XSET.
16460
164612008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16464
164652008-02-01 Kenichi Handa <handa@m17n.org>
16466
16467 * coding.c (decode_coding): Fix the condition of terminating the
16468 decoding loop.
16469
164702008-02-01 Kenichi Handa <handa@m17n.org>
16471
16472 * data.c (Faset): On setting a character bigger than 255 in a
16473 unibyte string, signal an error instead of make the string multibyte.
16474
164752008-02-01 Kenichi Handa <handa@m17n.org>
16476
16477 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16478 made by a mapping table.
16479
164802008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16483 not.
16484 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16485 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16486
16487 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16488 s->face is NULL or not.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16493 (x_draw_glyph_string): Fix drawing of right_overhang and
16494 left_overhang around/on cursor.
16495
16496 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16497
164982008-02-01 Kenichi Handa <handa@m17n.org>
16499
16500 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16501
165022008-02-01 Kenichi Handa <handa@m17n.org>
16503
16504 * coding.c (Fdefine_coding_system_internal)
16505 (Fdefine_coding_system_alias): Avoid a duplicated element in
16506 Vcoding_system_alist.
16507
165082008-02-01 Kenichi Handa <handa@m17n.org>
16509
16510 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16511
16512 * coding.c (Qcoding_system_define_form): New variable.
16513 (syms_of_coding): Intern and staticpro it.
16514 (Fcoding_system_p): Check Qcoding_system_define_form.
16515 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16516
16517 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16518 Fcoding_system_p.
16519 (CHECK_CODING_SYSTEM): If ID is not available, call
16520 Fcheck_coding_system.
16521 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16522 Try also Fcheck_coding_system.
16523
165242008-02-01 Kenichi Handa <handa@m17n.org>
16525
16526 * coding.c (code_conversion_restore): GCPRO arg.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * character.c (lisp_string_width): Check multibyteness of STRING.
16531
165322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16533
16534 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16535 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16536 (decode_mac_font_name): Use decode_coding_c_string instead of
16537 decode_coding.
16538 (x_load_font): Initialize fontp->fontset to -1. Set
16539 fontp->encoding_type.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * search.c (search_buffer): Give up BM search on case-fold-search
16544 if one of a target character has a case-equivalence of different
16545 byte length even if that target charcter is an ASCII.
16546 (simple_search): Fix calculation of byte length of matched text.
16547 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16548
165492008-02-01 Kenichi Handa <handa@m17n.org>
16550
16551 * coding.c (decode_coding): Fix handling of invalid bytes.
16552
165532008-02-01 Kenichi Handa <handa@m17n.org>
16554
16555 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16556 Unicode characters.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * coding.c (encode_coding_object): If a pre-write-conversion
16561 function makes a new buffer, kill it.
16562
165632008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * coding.c (QCascii_compatible_p): New variable.
16566 (syms_of_coding): Initialize it.
16567 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16568 calling string_char.
16569 (record_conversion_result): Add `default:' case.
16570 (coding_charset_list): Delete unused variable `coding_type'.
16571 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16572 property in the plist of the coding system.
16573 (Fcoding_system_put): Check QCascii_compatible_p.
16574
165752008-02-01 Miles Bader <miles@gnu.org>
16576
16577 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16578 removed calculation of frame `f', as it's now used.
16579
165802008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16583 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16584 (UNIDATA): New variable.
16585 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16586 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16587 $(RUN_TEMACS) unconditionally.
16588
165892008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16592 (admindir): New variable.
16593 ($(lispsource)international/charprop.el): New target.
16594
165952008-02-01 Miles Bader <miles@gnu.org>
16596
16597 * character.c (chars-in-region): Remove obsolete function.
16598 (syms_of_character): Remove its initialization.
16599
166002008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16601
16602 * w32select.c (validate_coding_system)
16603 (setup_windows_coding_system): New functions.
16604 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16605 setup_windows_coding_system.
16606 (setup_config, Fw32_get_clipboard_data): Use
16607 validate_coding_system.
16608 (Fx_selection_exists): Move call to setup_config to a place
16609 where signals are allowed.
16610
16611 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16612 (Fcheck_coding_system): Add declarations.
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16617
166182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16619
16620 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16621 string as the second argument for x_new_fontset.
16622
166232008-02-01 Kenichi Handa <handa@m17n.org>
16624
16625 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16626 (encode_coding_object): Use safe_call instead of call2.
16627
166282008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16631
16632 * Makefile.in (lisp): Include charprop.el.
16633
166342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16635
16636 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16637 Not sure if it's unnecessary.
16638
166392008-02-01 Steven Tamm <steventamm@mac.com>
16640
16641 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16642 some possibly unnecessary fontset checking code that crashed
16643 when creating a new frame.
16644
166452008-02-01 Kenichi Handa <handa@m17n.org>
16646
16647 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16648 lookup_face.
16649
16650 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16651
16652 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16657 (coding_charset_list): New function.
16658
16659 * coding.h (coding_charset_list): Extern it.
16660
166612008-02-01 Kenichi Handa <handa@m17n.org>
16662
16663 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16664 concatenation of family and registry.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * character.h (BYTE8_STRING): Fix typo.
16669
16670 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16671 string to multibyte (sync to HEAD).
16672
16673 * casefiddle.c (casify_region): Handle changes in byte-length
16674 using replace_range_2 (sync to HEAD).
16675
166762008-02-01 Andreas Schwab <schwab@suse.de>
16677
16678 * chartab.c (map_char_table): GCPRO table and arg.
16679
166802008-02-01 Kenichi Handa <handa@m17n.org>
16681
16682 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16683 already at limit.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16688 instead of fast_c_string_match_ignore_case.
16689 (find_font_encoding): Change argument to Lisp_Object. Use
16690 fast_string_match_ignore_case instead of
16691 fast_c_string_match_ignore_case. Change caller.
16692
166932008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 * xdisp.c (get_next_display_element): In unibyte case, decide to
16696 display in octal form by checking a character by
16697 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16698
16699 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16700
16701 * character.c (unibyte_has_multibyte_table): New variable.
16702
16703 * character.h (unibyte_has_multibyte_table): Extern it.
16704 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16705
167062008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * coding.c (encode_coding_iso_2022): Fix handling of charset
16709 annotation.
16710
167112008-02-01 Kenichi Handa <handa@m17n.org>
16712
16713 * coding.c (setup_coding_system): If coding_system is nil, use
16714 Qundecided.
16715 (Fterminal_coding_system): Return nil if terminal coding system is
16716 `undecided'.
16717 (syms_of_coding): Define coding-system `undecided' here. Setup
16718 terminal_coding as `undecided'.
16719
167202008-02-01 Kenichi Handa <handa@m17n.org>
16721
16722 * xdisp.c (message_dolog, set_message_1): Call
16723 unibyte_char_to_multibyte with arg type int.
16724
16725 * lread.c (read1): Fix reading of a char-table.
16726
16727 * print.c (print_object): Include sub char-table in circularities
16728 detection.
16729
167302008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16733 Append the found sequences in car of ARGS instead of prepending.
16734
167352008-02-01 Kenichi Handa <handa@m17n.org>
16736
16737 * fileio.c (report_file_error): Make a unibyte string from
16738 strerror (errorno).
16739 (Fsubstitute_in_file_name): Fix the arg to
16740 unibyte_char_to_multibyte. It is evaluated twice.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16745
167462008-02-01 Kenichi Handa <handa@m17n.org>
16747
16748 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16749 BOM is not found.
16750 (detect_coding, detect_coding_system): Optimization for ISO-2022
16751 when no 8-bit data is found.
16752
167532008-02-01 Jason Rumney <jasonr@gnu.org>
16754
16755 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16760 CHARS.
16761
167622008-02-01 Steven Tamm <steventamm@mac.com>
16763
16764 * macterm.c (mac_encode_char): Add charset argument and update
16765 to use encoding_type.
16766 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16767 switch to pure fontset.
16768 (decode_mac_font_name): Temporarily remove decoding.
16769 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16770 (x_load_font): Temporarily remove encoding.
16771
167722008-02-01 Kenichi Handa <handa@m17n.org>
16773
16774 * xfaces.c (Fface_font): If frame is not on a window system,
16775 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16776 refer to face->font.
16777 (split_font_name_into_vector, build_font_name_from_vector)
16778 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16779 when HAVE_WINDOW_SYSTEM is defined.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16784 (x_produce_glyphs): Fix setting of members of cmp in case
16785 cmp->glyph_len is zero.
16786
16787 * fontset.c (Fset_fontset_font): Fix docstring.
16788 (Ffontset_info): Make it backward compatible. New arg ALL.
16789
167902008-02-01 Kim F. Storm <storm@cua.dk>
16791
16792 * process.c (read_process_output): Grow decoding_buf when needed;
16793 this could cause a crash in allocate_string and compact_small_strings.
16794
167952008-02-01 Kenichi Handa <handa@m17n.org>
16796
16797 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * coding.c (setup_coding_system): Set coding->common_flags
16802 correctly for raw-text.
16803 (consume_chars): On encoding unibyte text by raw-text, don't check
16804 multibyte form.
16805 (encode_coding): On encoding by raw-text, never use translation tables.
16806
16807 * fileio.c (e_write): Short cut for the case of no encoding.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * coding.c (detect_coding, detect_coding_system): Delete unused
16812 variables.
16813
168142008-02-01 Kenichi Handa <handa@m17n.org>
16815
16816 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16817 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16818
168192008-02-01 Kenichi Handa <handa@m17n.org>
16820
16821 * coding.c (Ffind_coding_systems_region_internal): Include
16822 raw-text and no-conversion in the result.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16827 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16828 FONT_DEF.
16829 (font_def_arg, add_arg, from_arg, to_arg): New args.
16830 (set_fontset_font): Change argument.
16831 (Fset_fontset_font): Fix for the case that TARGET is a script
16832 name and charset name.
16833 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16834
168352008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * fontset.c (fontset_font): Rename from fontset_face. Change return
16838 value.
16839 (face_suitable_for_char_p, face_for_char): Adjust for the change
16840 of fontset_font.
16841 (make_fontset_for_ascii_face): Fix setting of the fontset element
16842 for ASCII.
16843 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16844 to get a font name.
16845 (Ffontset_info): Adjust for the change of fontset_font.
16846
16847 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16848
16849 * character.h (LEADING_CODE_LATIN_1_MIN)
16850 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16851
168522008-02-01 Kenichi Handa <handa@m17n.org>
16853
16854 * editfns.c (check_translation): New function.
16855 (Ftranslate_region_internal): Handle M:N mapping.
16856
168572008-02-01 Kenichi Handa <handa@m17n.org>
16858
16859 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16860
168612008-02-01 Kenichi Handa <handa@m17n.org>
16862
16863 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16864 goto invalid_code.
16865 (decode_coding_iso_2022): Fix handling of invalid designation.
16866
16867 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16868 after calling code_conversion_save.
16869
168702008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16873
16874 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16875
16876 * fontset.c: Include "intervals.h".
16877 (fontset_face): Fix comparing of Lisp_Objects.
16878 (free_face_fontset, new_fontset_from_font_name): Fix
16879 Lisp_Object/int mixup.
16880
16881 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16882
16883 * coding.c: Add many prototypes for static functions.
16884 (get_translation_table): Allow max_lookup to be NULL.
16885 (decode_coding, Ffind_coding_systems_region_internal)
16886 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16887 get_translation_table with max_lookup NULL.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * coding.c (get_translation_table): Declare it as Lisp_Object.
16892 (LOOKUP_TRANSLATION_TABLE): New macro.
16893 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16894 instead of CHAR_TABLE_REF.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16899 annotation data format.
16900 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16901 Change arguments FROM and TO to single argument NCHARS. Change caller.
16902 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16903 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16904 (decode_coding_ccl, decode_coding_charset): Pay attention to
16905 coding->charbuf_used.
16906 (get_translation): New function.
16907 (produce_chars): New arguments translation_table and last_block.
16908 Translate characters here. Return number of carryover chars.
16909 Change caller.
16910 (produce_composition): New argument pos. Change caller.
16911 Adjust for the change of annotation data format.
16912 (produce_charset, produce_annotation): Likewise.
16913 (decode_coding, encode_coding): Don't call translate_chars.
16914 (consume_chars): New arg translation_table. Change caller.
16915 (translate_chars): Delete.
16916 (syms_of_coding): Make translation-table's number of extra slots 2.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * search.c (simple_search): Fix setting this_pos_byte in backward
16921 search.
16922
16923 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16924 byte sequence.
16925 (detect_coding_ccl): Fix setting of the variable valids.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16930
16931 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16932
16933 * editfns.c (Ftranslate_region_internal): Rename from
16934 Ftranslate_region. Accept a char-table in TABLE.
16935 (syms_of_editfns): Defsubr Stranslate_region_internal.
16936
16937 * xfaces.c (set_lface_from_font_name): If a font is specified for
16938 a frame, generate a fontset from the font.
16939 (build_scalable_font_name): If the scalable font is requested for
16940 a specific size, don't change that size.
16941 (try_font_list): Try a scalable font also in the case that a
16942 pattern string is specified.
16943
169442008-02-01 Kenichi Handa <handa@m17n.org>
16945
16946 * xfaces.c (Fface_font): New optional arg CHARACTER.
16947
169482008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * charset.h (CHARSET_OFFSET): New macro.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16955
16956 * fontset.c (fontset_face): Handle the case that repertory is a
16957 char-table.
16958 (find_font_encoding): Return nil for unknown encoding.
16959 (Fset_fontset_font): Ignore a font of unknown encoding.
16960
169612008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * keymap.c (describe_vector): Handle default value of a char table.
16964
16965 * fontset.c (fontset_face): Handle fallback fonts correctly.
16966 (Ffontset_info): Return infomation about fallback fonts.
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * fontset.c (FONTSET_DEFAULT): New macro.
16971 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16972 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16973 the case that it is nil.
16974 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16975 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16976
16977 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16978 subset or superset.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * emacs.c (main): Call init_charset after syms_of_XXX.
16983
16984 * charset.c (Vcharset_map_directory): Delete.
16985 (Vcharset_map_path): New variable.
16986 (load_charset_map_from_file): Use Vcharset_map_path instead.
16987 (init_charset): Initialize Vcharset_map_path.
16988 (syms_of_charset): Delete declaration of "charset-map-directory",
16989 add declaration of "charset-map-path".
16990
169912008-02-01 Kenichi Handa <handa@m17n.org>
16992
16993 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16994 ASCII only string.
16995
16996 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16997
16998 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16999 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17000
170012008-02-01 Kenichi Handa <handa@m17n.org>
17002
17003 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17004
17005 * coding.c (QCmnemonic, QCdefalut_char)
17006 (QCdecode_translation_table, QCencode_translation_table)
17007 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17008 (get_translation_table): Return a list of translation tables if
17009 necessary.
17010 (decode_coding): Call get_translation_table with ENCODEP 0.
17011 (char_encodable_p): If translation_table is non-nil, always call
17012 translate_char.
17013 (Fdefine_coding_system_internal): Accept list of translation
17014 tables as :encode-translation-table and :decode-translation-table.
17015 (Fcoding_system_put): New function.
17016 (syms_of_coding): Declare new symbols. Defsubr
17017 Scoding_system_put.
17018 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17019 typically JISX0212.
17020
17021 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17022 when the charset is superset type.
17023
17024 * character.c (translate_char): Accept list of translation tables.
17025
170262008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17029 (CODING_ATTR_TRANS_TBL): New macro.
17030
17031 * coding.c (get_translation_table): New function.
17032 (translate_chars): Fix the bug of skipping annotation data.
17033 (decode_coding, encode_coding): Utilize get_translation_table.
17034 (char_encodable_p, Funencodable_char_position): Translate char if
17035 necessary.
17036 (Ffind_coding_systems_region_internal)
17037 (Fcheck_coding_systems_region): Setup translation table for encode
17038 in a coding system attribute vector in advance.
17039 (Fdefine_coding_system_internal): Allow a symbol as translation
17040 table. For shift-jis type coding system, allow 4th charset.
17041
170422008-02-01 Kenichi Handa <handa@m17n.org>
17043
17044 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17045
17046 * xdisp.c (get_next_display_element): Pass -1 as POS to
17047 FACE_FOR_CHAR if displaying a C-string.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * composite.c (get_composition_id): Handle xoff and yoff in a
17052 composition rule.
17053
17054 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17055 (struct composition): New member lbearing and rbearing.
17056
17057 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17058 (x_get_glyph_overhangs): Handle a composition glyph.
17059 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17060
17061 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17062 composition glyph.
17063
170642008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * print.c: Include charset.h.
17067 (Vprint_charset_text_property): New variable.
17068 (Qdefault): Extern it.
17069 (PRINT_STRING_NON_CHARSET_FOUND)
17070 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17071 (print_check_string_result): New variable.
17072 (print_check_string_charset_prop): New function.
17073 (print_prune_charset_plist): New variable.
17074 (print_prune_string_charset): New function.
17075 (print_object): Call print_prune_string_charset if
17076 Vprint_charset_text_property is not t.
17077 (print_interval): Print nothing if interval->plist is nil.
17078 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17079 variable. Init and staticpro print_prune_charset_plist.
17080
170812008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * fontset.c (new_fontset_from_font_name): Use the specified font
17084 for all characters in the new fontset.
17085
17086 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17087 OBJECT args.
17088
17089 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17090 OBJECT args for composition too.
17091
17092 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17093 OBJECT args.
17094
170952008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17098
17099 * fontset.c (reorder_font_vector): Adjust for the change of
17100 FONT_DEF format.
17101 (fontset_face): New arg id. Change caller.
17102 (face_for_char): New args pos and object.
17103 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17104 (fs_query_fontset): Check NAME by Fassoc too.
17105 (Fset_fontset_font): Allow non-XLFD font name.
17106 (Ffontset_info): Adjust for the change of FONT_DEF format.
17107
17108 * fontset.h (face_for_char): Adjust prototype.
17109
17110 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17111 (append_space, extend_face_to_end_of_line)
17112 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17113 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17114
17115 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17116 POS and OBJECT args.
17117
17118 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17119 POS and OBJECT args.
17120
171212008-02-01 Jason Rumney <jasonr@gnu.org>
17122
17123 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17124 of GlobalAlloc'ed memory.
17125
171262008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17129
17130 * charset.h (charset_table_used): Delete extern.
17131
17132 * charset.c (charset_table_used): Make it static.
17133 (map_charset_chars): Fix args to c_function with.
17134
17135 * chartab.c (map_sub_char_table_for_charset): Fix args to
17136 c_function with.
17137
17138 * coding.h (enum coding_result_code): Delete
17139 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17140
17141 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17142 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17143 (Vlast_code_conversion_error): New variables.
17144 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17145 (ONE_MORE_BYTE): Record error if any instead of signaling an
17146 error. If non-ASCII multibyte char is found, return the negative
17147 value of the code. All callers changed to check it.
17148 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17149 (record_conversion_result): New function. Change all codes setting
17150 coding->result to call this function.
17151 (detect_coding_utf_8, decode_coding_utf_8)
17152 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17153 Don't use the local variable incomplete.
17154 (emacs_mule_char): Change the second arg to `const'.
17155 (decode_coding): Fix of flushing out unprocessed data.
17156 (make_conversion_work_buffer): Fix making of a work buffer.
17157 (decode_coding_object): Return coding->dst_object.
17158
17159 * fontset.c (set_fontset_font): Fix args.
17160
17161 * lisp.h (CHARACTERBITS): Define as 22.
17162
17163 * process.c (send_process): Be sure to set coding->src_multibyte.
17164
17165 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17166
171672008-02-01 Kenichi Handa <handa@m17n.org>
17168
17169 * xdisp.c (handle_auto_composed_prop): Give limit to
17170 Fnext_single_char_property_change.
17171
171722008-02-01 Kenichi Handa <handa@m17n.org>
17173
17174 * composite.c (syms_of_composite): Don't make the composition hash
17175 table weak.
17176
17177 * fontset.c (Fset_fontset_font): Fix docstring.
17178
17179 * lisp.h (detect_coding_system): Adjust prototype.
17180
17181 * fileio.c (kill_workbuf_unwind): Delete this function.
17182 (Finsert_file_contents): Adjust the call of detect_coding_system.
17183 Get conversion_buffer by code_conversion_save. Use the macro
17184 CODING_MAY_REQUIRE_DECODING. After decoding, update
17185 coding_system.
17186
17187 * coding.h (make_conversion_work_buffer): Delete extern.
17188 (code_conversion_save): Extern it.
17189
17190 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17191 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17192 (decode_coding_utf_8): Don't do eol converion.
17193 (detect_coding_utf_16): Check coding->src_chars, not
17194 coding->src_bytes. Add heuristics for those that have no signature.
17195 (decode_coding_emacs_mule, decode_coding_iso_2022)
17196 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17197 Don't do eol converion.
17198 (adjust_coding_eol_type): Return a new coding system.
17199 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17200 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17201 each change.
17202 (decode_coding): Pay attention to undo_list. Do eol conversion for
17203 all types of coding-systems (if necessary).
17204 (Vcode_conversion_work_buf_list): Delete it.
17205 (Vcode_conversion_reused_workbuf): Rename from
17206 Vcode_conversion_reused_work_buf.
17207 (Vcode_conversion_workbuf_name): New variable.
17208 (reused_workbuf_in_use): New variable.
17209 (make_conversion_work_buffer): Delete the arg DEPTH.
17210 (code_conversion_restore): Change argument to cons.
17211 (code_conversion_save): Delete the argument BUFFER. Change callers.
17212 (detect_coding_system): New argument src_chars. Change callers.
17213 Fix for utf-16 detection.
17214 (init_coding_once): Don't use ISO_carriage_return.
17215 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17216 reused_workbuf_in_use.
17217
172182008-02-01 Kenichi Handa <handa@m17n.org>
17219
17220 * keymap.c (store_in_keymap): Pay attention to the case that idx
17221 is a cons specifying a character range.
17222
172232008-02-01 Kenichi Handa <handa@m17n.org>
17224
17225 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17226 HANDLED_RECOMPUTE_PROPS.
17227
17228 * coding.c (Fdefine_coding_system_internal): Fix checking of
17229 ascii compatibility.
17230
172312008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * charset.c (find_charsets_in_text): Delete unused locale variable.
17234 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17235
17236 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17237 Resync charset_list to Vemacs_mule_charset_list.
17238
17239 * keymap.c (store_in_keymap): Pay attention to the case that idx
17240 is a cons specifying a character range.
17241
172422008-02-01 Kenichi Handa <handa@m17n.org>
17243
17244 * composite.c (update_compositions): Bind inhibit-read-only, etc
17245 to t before calling remove-list-of-text-properties.
17246
17247 * print.c (print_object): Always print ASCII chars as is.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17252
17253 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17254 is a char table.
17255
172562008-02-01 Kenichi Handa <handa@m17n.org>
17257
17258 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17259
172602008-02-01 Kenichi Handa <handa@m17n.org>
17261
17262 * xfaces.c (set_lface_from_font_name): Fix for the case that
17263 FONTNAME is not fontset name.
17264
172652008-02-01 Kenichi Handa <handa@m17n.org>
17266
17267 * fns.c (base64_encode_1): Fix previous change.
17268
172692008-02-01 Kenichi Handa <handa@m17n.org>
17270
17271 * fontset.c (set_fontset_font): New function.
17272 (Fset_fontset_font): If a font is specified for a charset, use
17273 map_charset_chars to store the font spec in a fontset.
17274
172752008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * fontset.c (fontset_face): Create a fallback fontset on demand.
17278 (make_fontset): Don't create a fallback fontset here.
17279 (free_face_fontset): Free a fallback fontset (if any) too.
17280 (n_auto_fontsets): Delete this variable.
17281 (auto_fontset_alist): New variable.
17282 (new_fontset_from_font_name): Check auto_fontset_alist.
17283 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17284 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17285 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17286 Defsubr Sfontset_list_all.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17295
172962008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * editfns.c (Fgoto_char): Fix docstring.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * insdel.c (insert_from_gap): Adjust intervals correctly.
17303
173042008-02-01 Jason Rumney <jasonr@gnu.org>
17305
17306 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17307 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17308 (w32_initialize): Try to load it.
17309 (x_get_font_repertory): Use it if available.
17310 (w32_encode_char): Add shortcut for unicode output.
17311
17312 * w32fns.c (w32_load_system_font): Default charset to -1.
17313 (x_to_w32_charset): Match all fonts for unicode.
17314 (w32_to_x_charset): New parameter matching. Don't return partial
17315 or wildcard charsets.
17316 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17317 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17318 (w32_to_x_font): Match charset to real charset.
17319 (enum_font_cb2): Always list unicode versions.
17320
17321 * makefile.w32-in (temacs): Increase EMHEAP.
17322
173232008-02-01 Jason Rumney <jasonr@gnu.org>
17324
17325 * w32term.c (w32_encode_char): New charset parameter.
17326 font_info.encoding becomes encoding_type.
17327 (x_get_font_repertory): New function. Warning: stub only!
17328 (x_new_font): Return quickly if font already set.
17329 (x_new_fontset): fontsetname parameter is Lisp_Object.
17330 Use new fs_query_fontset. Try new_fontset_from_font_name.
17331 Use fontset_name for return value.
17332
17333 * w32term.h: Declare x_get_font_repertory.
17334
17335 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17336 place of find_charset_in_text. Use encode_coding_object in place
17337 of encode_coding.
17338 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17339 decode_coding.
17340
17341 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17342 of x_new_fontset.
17343 (w32_load_system_font): Initialize charset as unicode.
17344 font_info.encoding becomes encoding_type.
17345 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17346 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17347 (syms_of_w32fns): Set get_font_repertory_func.
17348
17349 * w32console.c: Include character.h. Use terminal_encode_buffer
17350 from term.c.
17351 (write_glyphs): Use new version of encode_terminal_code. Use
17352 encode_coding_object in place of encode_coding.
17353
17354 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17355 encoding becomes encoding_type.
17356
17357 * term.c (terminal_encode_buffer): Make externally visible.
17358
17359 * makefile.w32-in: Add character.h dependancies.
17360 (character.o, chartab.o): New targets.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17365 CODING_ID_EOL_TYPE.
17366
173672008-02-01 Andreas Schwab <schwab@suse.de>
17368
17369 * coding.c (produce_chars): Revert last change.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * charset.h (charset_unicode): Extern it.
17374
17375 * charset.c (string_xstring_p): Check by (C >= 0x100).
17376 (find_charsets_in_text): Change format of the arc CHARSETS. New
17377 arg MULTIBYTE.
17378 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17379 change of find_charsets_in_text.
17380 (Fsplit_char): Fix doc. Never return unknown.
17381
17382 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17383
17384 * coding.c (Fdefine_coding_system_alias): Update
17385 Vcoding_system_list.
17386
17387 * fontset.c (load_font_get_repertory): Pay attention to the case
17388 that ENCODING of a font is specified by a char-table.
17389
17390 * xterm.c (x_get_font_repertory): Handle the case that the
17391 encoding of font is other than Unicode.
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17396 if a character is encodable by the terminal coding system. If
17397 not, produces proper number of `?'s. Update
17398 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17399 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17404 variables.
17405 (encode_terminal_code): Change argument. Encode multiple
17406 characters at once. Store the result of encoding in
17407 terminal_encode_buffer.
17408 (write_glyphs, insert_glyphs): Adjust for the change of
17409 encode_terminal_code.
17410 (term_init): Initialize terminal_encode_buffer and
17411 terminal_encode_buf_size.
17412
17413 * coding.c (consume_chars): If coding->src_object is nil, don't
17414 check annotation.
17415
174162008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * character.c (char_string): Use ASCII_CHAR_P instead of
17419 SINGLE_BYTE_CHAR_P.
17420
174212008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * xdisp.c (handle_auto_composed_prop): Check if the last
17424 characters of auto-composed region is newly composed with the
17425 following characters.
17426 (handle_composition_prop): Fix checking of point being inside
17427 composition.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * fns.c (concat): Don't change multibyteness of the result by
17432 concatenating an 8-bit character.
17433
17434 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17435 multibyteness of the result when newelt is an 8-bit character.
17436
174372008-02-01 Dave Love <fx@gnu.org>
17438
17439 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17440 EMACS_INT.
17441
17442 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17443
17444 * xfaces.c (face_numeric_value): Declare dim size_t.
17445 (Finternal_lisp_face_equal_p): Remove unused f.
17446
17447 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17448 (MATRIX_ROW): Remove unused vars.
17449 (draw_glyphs, x_insert_glyphs, fast_find_position)
17450 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17451 byte/char counts.
17452
17453 * regex.c (regex_compile): Remove unused var.
17454
17455 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17456
17457 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17458 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17459
17460 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17461
17462 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17463
17464 * fileio.c (Fwrite_region): Remove unused var.
17465
17466 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17467 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17468
17469 * composite.c (Fremove_list_of_text_properties): Declare.
17470
17471 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17472 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17473 (coding_inherit_eol_type): Remove unused attrs.
17474 (detect_coding): Cast arg of detect_eol.
17475
17476 * charset.c (syms_of_charset): Remove unused var p.
17477 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17478 byte/char counts.
17479
17480 * casetab.c (set_case_table): Remove unused var.
17481
17482 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17483 unused vars.
17484
174852008-02-01 Dave Love <fx@gnu.org>
17486
17487 * xterm.c (x_bitmap_mask): Declare.
17488
174892008-02-01 Dave Love <fx@gnu.org>
17490
17491 * xterm.c (x_term_init): Fix type error.
17492
17493 * lisp.h: Add Funibyte_char_to_multibyte.
17494
17495 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17496 (Fset_coding_system_priority): Doc fix.
17497
17498 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17499
17500 * indent.c (check_composition): Make start and end EMACS_INT.
17501
17502 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17503
17504 * xdisp.c (handle_composition_prop, check_point_in_composition):
17505 Make buffer positions EMACS_INT.
17506
17507 * composite.c (find_composition, run_composition_function)
17508 (update_compositions, Ffind_composition_internal): Make buffer
17509 positions EMACS_INT.
17510
17511 * composite.h (find_composition, update_compositions): Make
17512 position args EMACS_INT.
17513
17514 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17515
17516 * intervals.c (get_property_and_range):
17517 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17518
17519 * unexalpha.c: Don't include varargs.h.
17520
175212008-02-01 Dave Love <fx@gnu.org>
17522
17523 * coding.h (ENCODE_UTF_8): New.
17524
17525 * Makefile.in (gtkutil.o): Depend on coding.h.
17526
17527 * coding.c (Fset_coding_system_priority): Doc fix.
17528
175292008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17532 the case of auto saving.
17533
175342008-02-01 Andreas Schwab <schwab@suse.de>
17535
17536 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17537 `range' from GC.
17538
175392008-02-01 Kenichi Handa <handa@m17n.org>
17540
17541 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17542
175432008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 * fileio.c (choose_write_coding_system): Return a decided coding system.
17546 (Fwrite_region): Set Vlast_coding_system_used to the return value
17547 of choose_write_coding_system.
17548
175492008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * charset.c (Fset_charset_priority): Pay attention to duplicated
17552 arguments.
17553
17554 * coding.c (QCcategory): New variable.
17555 (syms_of_coding): Defsym it. Set all elements of
17556 Vcoding_category_table and their symbol values.
17557 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17558 coding-category-XXX, and coding-category-list.
17559 (Fdefine_coding_system_internal): Add category in the plist.
17560
175612008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * callproc.c (Fcall_process): Handle carryover correctly.
17564
17565 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17566 (raw_text_coding_system): Check NILP (coding_system).
17567 (coding_inherit_eol_type): Check NILP (coding_system) and
17568 NILP (parent).
17569 (consume_chars): Fix for the case of raw-text.
17570
17571 * process.c (read_process_output): Handle carryover correctly.
17572
175732008-02-01 Dave Love <fx@gnu.org>
17574
17575 * regex.c (re_search_2): Fix last change.
17576
175772008-02-01 Kenichi Handa <handa@m17n.org>
17578
17579 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17580 target_multibyte. Even in a unibyte case, return a converted
17581 multibyte char.
17582 (GET_CHAR_AFTER): New macro.
17583 (PATFETCH): Translate via multibyte char.
17584 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17585 (SETUP_MULTIBYTE_RANGE): New macro.
17586 (regex_compile): Setup compiled code so that its multibyteness
17587 matches that of a target. Fix the handling of "[X-YZ]" using
17588 SETUP_MULTIBYTE_RANGE.
17589 (analyse_first) <charset>: For filling fastmap for all multibyte
17590 characters, don't check by BASE_LEADING_CODE_P.
17591 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17592 the same as RE_MULTIBYTE_P (bufp) now.
17593 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17594 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17595 (TRANSLATE_VIA_MULTIBYTE): New macro.
17596 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17597 It is the same as RE_MULTIBYTE_P (bufp) now.
17598 <exactn>: Translate via multibyte.
17599 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17600 translate it.
17601 <charset, charset_not>: Fetch a character by
17602 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17603 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17604 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17605 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17606 by GET_CHAR_AFTER.
17607 (bcmp_translate): Likewise.
17608
17609 * search.c (compile_pattern): Check the member target_multibyte,
17610 not the member multibyte of buf.
17611
17612 * lread.c (read1): While reading a string, set force_singlebyte
17613 and force_multibyte correctly.
17614
17615 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17616 up of unibyte_to_multibyte_table.
17617
176182008-02-01 Kenichi Handa <handa@m17n.org>
17619
17620 * coding.c (setup_coding_system): If coding has
17621 post-read-conversion or pre-write-conversion, set
17622 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17623 respectively.
17624 (decode_coding_gap): Run post-read-conversion if any.
17625
17626 * fileio.c (Finsert_file_contents): Even if we read into a
17627 unibyte buffer, check if we must decode the result or not.
17628
176292008-02-01 Kenichi Handa <handa@m17n.org>
17630
17631 * coding.c (make_conversion_work_buffer): Change the work buffer
17632 name to the same one as that of Emacs 21.
17633
176342008-02-01 Kenichi Handa <handa@m17n.org>
17635
17636 * coding.h (make_conversion_work_buffer): Adjust prototype.
17637 (code_conversion_restore): Don't extern it.
17638
17639 * coding.c (detected_mask): Delete unused variable.
17640 (decode_coding_iso_2022): Pay attention to the byte sequence of
17641 CTEXT extended segment, and retain those bytes as is.
17642 (decode_coding_ccl): Delete unused variable `valids'.
17643 (setup_coding_system): Delete unused variable `category'.
17644 (consume_chars): Delete unused variable `category'. Make it work
17645 for non-multibyte case.
17646 (make_conversion_work_buffer): Change argument.
17647 (saved_coding): Delete unused variable.
17648 (code_conversion_restore): Don't check saved_coding->destination.
17649 (code_conversion_save): New function.
17650 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17651 instead of record_unwind_protect.
17652 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17653 (detect_coding_system): Delete unused variable `mask'.
17654 (Fdefine_coding_system_internal): Delete unused variable id.
17655
17656 * fileio.c (kill_workbuf_unwind): New function.
17657 (Finsert_file_contents): On replacing, call
17658 make_conversion_work_buffer with correct args, and call
17659 record_unwind_protect with the first arg kill_workbuf_unwind.
17660
17661 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17666 (fontset_add): Fix for the case that TO is less than TO1.
17667 (Ffontset_info): Don't use fallback fontset on checking the
17668 default fontset.
17669 (dump_fontset): New function for debugging.
17670
17671 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17672 coding_type is Qcharset.
17673
176742008-02-01 Kenichi Handa <handa@m17n.org>
17675
17676 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17677 (map_char_table): Don't inherit the value from the parent on
17678 initializing VAL. Adjust for the above change.
17679
176802008-02-01 Kenichi Handa <handa@m17n.org>
17681
17682 * coding.c (Qsignature, Qendian): Delete these variables.
17683 (syms_of_coding): Don't initialize them.
17684 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17685 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17686 detect_info->found.
17687 (decode_coding_utf_16): Don't detect BOM here.
17688 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17689 is NOT utf_16_without_bom.
17690 (setup_coding_system): For a coding system of type utf-16, check
17691 if the attribute :endian is Qbig or not (not nil or not), and set
17692 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17693 (detect_coding): If coding type is utf-16 and BOM detection is
17694 required, detect it.
17695 (Fdefine_coding_system_internal): For a coding system of type
17696 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17697
176982008-02-01 Kenichi Handa <handa@m17n.org>
17699
17700 * coding.c (coding_set_source): Fix for the case that the current
17701 buffer is different from coding->src_object.
17702 (decode_coding_object): Don't use the conversion work buffer if
17703 DST_OBJECT is a buffer.
17704
177052008-02-01 Dave Love <fx@gnu.org>
17706
17707 * lread.c (read_emacs_mule_char) [len==2]: Index
17708 emacs_mule_charset correctly.
17709
177102008-02-01 Dave Love <fx@gnu.org>
17711
17712 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17713 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17714 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17715 treated specially.)
17716 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17717 (detected_mask): Remove Big5 bits.
17718
177192008-02-01 Kenichi Handa <handa@m17n.org>
17720
17721 The following changes are to make the font rescaling facility
17722 compatible with Emacs 21.
17723
17724 * xfaces.c (Vface_font_rescale_alist): Rename from
17725 Vface_resizing_fonts.
17726 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17727 (font_rescale_ratio): Rename from font_resizing_ratio.
17728 (split_font_name): Set font->rescale_ratio.
17729 (better_font_p): Pay attention to font->rescale_ratio.
17730 (build_scalable_font_name): Likewise. Change RESX, and RESY
17731 fields.
17732 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17733
177342008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17737 (Qutf_16_le): Remove these variables.
17738 (syms_of_coding): Don't DEFSYM them.
17739 (decode_coding_utf_16): Fix handling of BOM.
17740 (encode_coding_utf_16): Fix handling of BOM.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * fileio.c (Finsert_file_contents): On replacing, before decoding
17745 the file into the work buffer, set point of the work buffer to the end.
17746
177472008-02-01 Dave Love <fx@gnu.org>
17748
17749 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17750
177512008-02-01 Dave Love <fx@gnu.org>
17752
17753 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17754 and fix C types.
17755
177562008-02-01 Kenichi Handa <handa@m17n.org>
17757
17758 * xdisp.c (SKIP_GLYPHS): New macro.
17759 (set_cursor_from_row): Pay attention to string display properties.
17760
17761 * category.c (copy_category_entry): Fix for the case that RANGE
17762 is an integer.
17763
17764 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17765
17766 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17767
177682008-02-01 Kenichi Handa <handa@m17n.org>
17769
17770 * charset.c (Fcharset_id_internal): New function.
17771 (syms_of_charset): Defsubr it.
17772
17773 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17774 with the last arg charset_list acquired from coding.
17775 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17776 the attribute coding_attr_ccl_valids.
17777
17778 * coding.h (enum define_coding_ccl_arg_index): Set the first
17779 member coding_arg_ccl_decoder to coding_arg_max.
17780
17781 * ccl.h (ccl_driver): Adjust prototype.
17782
17783 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17784 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17785 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17786 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17787 last arg Qnil.
17788
177892008-02-01 Kenichi Handa <handa@m17n.org>
17790
17791 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17792 call encode_char.
17793
17794 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17795
177962008-02-01 Dave Love <fx@gnu.org>
17797
17798 * composite.c (syms_of_composite): Make composition_hash_table weak.
17799
178002008-02-01 Kenichi Handa <handa@m17n.org>
17801
17802 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17803 (font_name_registry): Don't extern them.
17804 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17805
17806 * fontset.h (Qfontset): Don't extern it.
17807 (new_fontset_from_font_name): Extern it.
17808
17809 * fontset.c: Give 8 extra slots to fontset objects.
17810 (Qfontset_info): New variable.
17811 (syms_of_fontset): Defsym it.
17812 (FONTSET_FALLBACK): New macro.
17813 (fontset_face): Try also the default fontset.
17814 (make_fontset): Realize a fallback fontset from the default fontset.
17815 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17816 using split_font_name_into_vector and build_font_name_from_vector.
17817 (Fset_fontset_font): Access the elements of font_spec by enum
17818 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17819 name by using split_font_name_into_vector.
17820 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17821 generate a proper font name from the fontset name. Update
17822 Vfontset_alias_alist.
17823 (n_auto_fontsets): New variable.
17824 (new_fontset_from_font_name): New function.
17825 (Ffont_info): Store the information about fonts generated from the
17826 default fontset in the first extra slot of the returned char-table.
17827
17828 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17829 (font_name_registry): Delete function.
17830 (split_font_name_into_vector): New function.
17831 (build_font_name_from_vector): New function.
17832 (font_list): The argument REGISTRY is now a list of registry names.
17833 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17834 specifies an explicit font name, return the name as is. Make a
17835 list of registy names.
17836
17837 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17838 of x_new_fontset.
17839 (Fx_create_frame): Don't call x_new_fontset here. Just use
17840 x_list_fonts to check the existence of fonts.
17841
17842 * xterm.h (x_new_fontset): Adjust prototype.
17843
17844 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17845 string. Use new_fontset_from_font_name to create a fontset from a
17846 font name.
17847
178482008-02-01 Kenichi Handa <handa@m17n.org>
17849
17850 * syntax.c (Vfind_word_boundary_function_table): New name for
17851 Vnext_word_boundary_function_table.
17852 (find-word-boundary-function-table): New name for
17853 next-word-boundary-function-table.
17854
178552008-02-01 Dave Love <fx@gnu.org>
17856
17857 * Makefile.in: Fix some dependencies.
17858
17859 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17860 set it to nil before returning.
17861
17862 * composite.c (update_compositions): Fix type error.
17863
17864 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17865
178662008-02-01 Kenichi Handa <handa@m17n.org>
17867
17868 * xterm.c (x_new_font): Optimize for the case that the font is
17869 already set for the frame.
17870
178712008-02-01 Kenichi Handa <handa@m17n.org>
17872
17873 * chartab.c (char_table_ascii): Check if the char table contents
17874 is sub-char-table or not.
17875 (char_table_set, char_table_set_range): Fix argument to
17876 char_table_ascii.
17877
17878 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17879 (detect_coding_utf_8, detect_coding_utf_16)
17880 (detect_coding_emacs_mule, detect_coding_iso_2022)
17881 (detect_coding_sjis, detect_coding_big5)
17882 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17883 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17884 sequence is valid in this coding system. Change callers.
17885 (MAX_ANNOTATION_LENGTH): New macro.
17886 (ADD_ANNOTATION_DATA): New macro.
17887 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17888 ADD_ANNOTATION_DATA. Change the format of annotation data.
17889 (ADD_CHARSET_DATA): New macro.
17890 (emacs_mule_char): New argument ID. Change callers.
17891 (decode_coding_emacs_mule, decode_coding_iso_2022)
17892 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17893 Produce charset annotation data in coding->charbuf.
17894 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17895 to charset annotation data in coding->charbuf.
17896 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17897 coding->common_flags if the coding system is iso-2022 based and
17898 uses designation.
17899 (produce_composition): Adjust for the new annotation data format.
17900 (produce_charset): New function.
17901 (produce_annotation): Handle charset annotation.
17902 (handle_composition_annotation, handle_charset_annotation): New
17903 functions.
17904 (consume_chars): Handle charset annotation. Utilize the above two
17905 functions.
17906 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17907 buffer, get the deleted text as a string and set
17908 coding->src_object to that string.
17909 (detect_coding, detect_coding_system): Use the new struct
17910 coding_detection_info.
17911
17912 * coding.h (struct coding_detection_info): New structure.
17913 (struct coding_system): Adjust prototype of the member `detector'.
17914 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17919
179202008-02-01 Dave Love <fx@gnu.org>
17921
17922 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17923 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17924 to new local and nullify apropos_accumulate before returning.
17925 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17926
179272008-02-01 Kenichi Handa <handa@m17n.org>
17928
17929 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17930 correctly.
e3eea1fc 17931
aac0c6e3
MR
179322008-02-01 Dave Love <fx@gnu.org>
17933
17934 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 The following changes are to make character composition happen
17939 automatically on displaying.
17940
17941 * Makefile.in (lisp, shortlisp): Add composite.elc.
17942
17943 * composite.h (Qauto_composed, Vauto_composition_function)
17944 (Qauto_composition_function): Extern them.
17945
17946 * composite.c (Vcomposition_function_table)
17947 (Qcomposition_function_table): Delete variables.
17948 (Qauto_composed, Vauto_composition_function)
17949 (Qauto_composition_function): New variables.
17950 (run_composition_function): Don't call
17951 compose-chars-after-function.
17952 (update_compositions): Clear `auto-composed' text property.
17953 (compose_chars_in_text): Delete this function.
17954 (syms_of_composite): Staticpro Qauto_composed and
17955 Qauto_composition_function. Declare Vauto_composition_function as
17956 a Lisp variable.
17957
17958 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17959
17960 * xdisp.c (it_props): Add an entry for Qauto_composed.
17961 (handle_auto_composed_prop): New function.
17962
17963 * xselect.c (selection_data_to_lisp_data): Don't call
17964 compose_chars_in_text.
17965
179662008-02-01 Dave Love <fx@gnu.org>
17967
17968 * keyboard.c (read_char): Modify checking around use of
17969 Vkeyboard_translate_table.
17970
17971 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17972 and fix C types.
17973
179742008-02-01 Kenichi Handa <handa@m17n.org>
17975
17976 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17977 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17978 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17979 the case that the last byte is '\r' correctly.
17980 (decode_coding): Flush out the unprocessed data correctly.
17981 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17982
179832008-02-01 Dave Love <fx@gnu.org>
17984
17985 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17986 Add XK_ISO... case.
17987 (xaw_scroll_callback): Revert last change.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17992
179932008-02-01 Kenichi Handa <handa@m17n.org>
17994
17995 * xfaces.c (Vface_resizing_fonts): New variable.
17996 (struct font_name): New member `resizing_ratio'.
17997 (font_resizing_ratio): New function.
17998 (split_font_name): Set font->resizing_ratio.
17999 (better_font_p): Pay attention to font->resizing_ratio.
18000 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18001 RESX, and RESY fields.
18002 (try_alternative_families): Try scalable fonts if
18003 Vscalable_fonts_allowed is not Qt.
18004 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18005
180062008-02-01 Dave Love <fx@gnu.org>
18007
18008 * xterm.c (xaw_scroll_callback): Cast correctly.
18009
180102008-02-01 Dave Love <fx@gnu.org>
18011
18012 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18013 (lispy_kana_keys): Comment out.
18014 (make_lispy_event) [XK_kana_A]: Comment out.
18015
18016 * xterm.c (xaw_scroll_callback): Cast call_data.
18017 (XTread_socket): Deal with ASCII keysyms.
18018 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18019
180202008-02-01 Dave Love <fx@gnu.org>
18021
18022 * xterm.c (Vx_keysym_table): New.
18023 (syms_of_xterm): Initialize it.
18024 (XTread_socket): Use it.
18025 From head: Eliminate incorrect optimization that tried to avoid
18026 decoding the output of X*LookupString.
18027 (x_get_font_repertory): Delete charset declaration.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18032 return 0.
18033 (Fdefine_coding_system_internal): Setup
18034 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18035
180362008-02-01 Dave Love <fx@gnu.org>
18037
18038 * coding.c (Fcheck_coding_system): Doc fix.
18039
18040 * editfns.c (Finsert_byte): Return a proper value.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * coding.c (decode_coding): Fix args to translate_chars. Pay
18045 attention to Vstandard_translation_table_for_decode.
18046 (encode_coding): Fix args to translate_chars. Pay attention to
18047 Vstandard_translation_table_for_encode.
18048
18049 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18050 SINGLE_BYTE_CHAR_P.
18051
18052 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18053 not by SINGLE_BYTE_CHAR_P.
18054
18055 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18056 SINGLE_BYTE_CHAR_P.
18057
18058 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18059 SINGLE_BYTE_CHAR_P.
18060
18061 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18062 by SINGLE_BYTE_CHAR_P.
18063
18064 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18065 SINGLE_BYTE_CHAR_P.
18066
180672008-02-01 Dave Love <fx@gnu.org>
18068
18069 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18070
180712008-02-01 Dave Love <fx@gnu.org>
18072
18073 * fns.c (Flanginfo): Fix typo.
18074
18075 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18076
180772008-02-01 Kenichi Handa <handa@m17n.org>
18078
18079 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18080 (detect_coding_emacs_mule, detect_coding_iso_2022)
18081 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18082 incomplete byte sequence. Don't update *mask when correctly detected.
18083 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18084 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18085 (detect_coding, detect_coding_system): Adjust for the changes above.
18086
180872008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * character.c (char_string): Rename from
18090 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18091 (string_char): Rename from string_char.
18092
18093 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18094 if C is greater than MAX_3_BYTE_CHAR.
18095 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18096 string_char instead of string_char_with_unification.
18097
180982008-02-01 Dave Love <fx@gnu.org>
18099
18100 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18101
181022008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * keymap.c (push_key_description): Pay attention to force_multibyte.
18105
18106 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18107
181082008-02-01 Dave Love <fx@gnu.org>
18109
18110 * charset.c (define_charset_internal): Rename `supprementary'.
18111
18112 * Makefile.in (lisp, shortlisp): Remove latin-N.
18113
181142008-02-01 Dave Love <fx@gnu.org>
18115
18116 * xfns.c (x_window, x_window): Use use_xim.
18117
18118 * xterm.c (use_xim): Initialize.
18119 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18120 (x_term_init): Maybe set use_xim.
18121
18122 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18123
181242008-02-01 Kenichi Handa <handa@m17n.org>
18125
18126 * search.c (search_buffer): Fix case-fold-search of multibyte
18127 characters.
18128 (boyer_moore): Rename the last argument to char_high_bits.
18129
181302008-02-01 Kenichi Handa <handa@m17n.org>
18131
18132 * xdisp.c (display_string): Fix for the case of zero width glyph.
18133
18134 * xfns.c (x_set_font): Change the error message of the case that
18135 x_new_fontset returns Qt.
18136
18137 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18138 (Finternal_set_lisp_face_attribute): Use signal_error for the
18139 error of invalid fontset.
18140
18141 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18142 fontset, return Qt.
18143
181442008-02-01 Dave Love <fx@gnu.org>
18145
18146 * unexelf.c (unexec): Make .got handling not SGI-specific.
18147
18148 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18149
18150 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18151
18152 * keyboard.c (read_key_sequence): Fix type error.
18153
18154 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18155 type error.
18156
18157 * fontset.c (fontset_add): Return Lisp_Object.
18158
181592008-02-01 Dave Love <fx@gnu.org>
18160
18161 * charset.h (charset_ordered_list_tick): Declare extern.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 The following changes (and some of 2008-02-01 changes of mine) are
18166 for handling syntax, category, and case conversion for unibyte
18167 characters by converting them to multibyte on the fly. With these
18168 changes, we don't have to setup syntax and case tables for unibyte
18169 characters in each language environment.
18170
18171 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18172 multibyte if necessary.
18173
18174 * bytecode.c (Fbyte_code): Likewise.
18175
18176 * character.h (LEADING_CODE_LATIN_1_MIN)
18177 (LEADING_CODE_LATIN_1_MAX): New macros.
18178 (unibyte_to_multibyte_table): Extern it.
18179 (unibyte_char_to_multibyte): New macro.
18180 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18181 (CHAR_LEADING_CODE): New macro.
18182 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18183
18184 * character.c (unibyte_to_multibyte_table): New variable.
18185 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18186 (multibyte_char_to_unibyte): If C is an eight-bit character,
18187 convert it to the corresponding byte value.
18188
18189 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18190 not 1, signals an error. Update the elements of
18191 unibyte_to_multibyte_table.
18192 (init_charset_once): Initialize unibyte_to_multibyte_table.
18193 (syms_of_charset): Define the charset `iso-8859-1'.
18194
18195 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18196 as is without converting it to unibyte. In a unibyte buffer,
18197 convert C to multibyte before checking the syntax.
18198
18199 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18200
18201 * minibuf.c (Fminibuffer_complete_word): Use the macro
18202 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18203
18204 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18205
18206 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18207 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18208 that is zero, convert an eight-bit char to multibyte.
18209 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18210 non-emacs case.
18211 (PATFETCH): Convert an eight-bit char to multibyte.
18212 (HANDLE_UNIBYTE_RANGE): New macro.
18213 (regex_compile): Setup the compiled pattern for multibyte chars
18214 even if the given regex string is unibyte. Use PATFETCH_RAW
18215 instead of PATFETCH in many places. To handle `charset'
18216 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18217 only for ASCII chars.
18218 (analyse_first) <exactn>: Simplify because the compiled pattern
18219 is multibyte.
18220 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18221 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18222 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18223 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18224 multibyte always 1.
18225 (re_search_2): In emacs, set the locale variable multibyte to 1,
18226 otherwise to 0. New local variable target_multibyte. Check it
18227 to decide the multibyteness of STR1 and STR2. If
18228 target_multibyte is zero, convert unibyte chars to multibyte
18229 before translating and checking fastmap.
18230 (TARGET_CHAR_AND_LENGTH): New macro.
18231 (re_match_2_internal): In emacs, set the locale variable multibyte
18232 to 1, otherwise to 0. New local variable target_multibyte. Check
18233 it to decide the multibyteness of STR1 and STR2. Use
18234 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18235 <charset, charset_not>: If multibyte is nonzero, check fastmap
18236 only for ASCII chars. Call bcmp_translate with
18237 target_multibyte, not with multibyte.
18238 <begline>: Declare the local variable C as `unsigned'.
18239 (bcmp_translate): Change the last arg name to target_multibyte.
18240
18241 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18242 the regexp pattern and the matching target. Set cp->buf.multibyte
18243 to the multibyteness of the regexp pattern. Set
18244 cp->but.target_multibyte to the multibyteness of the matching target.
18245 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18246 FETCH_STRING_CHAR_ADVANCE.
18247 (Freplace_match): Convert unibyte chars to multibyte.
18248
18249 * syntax.c (char_quoted, back_comment, scan_words)
18250 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18251 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18252 unibyte chars to multibyte.
18253 (skip_chars): Delete the arg syntaxp, and move the code for
18254 handling syntaxes to skip_syntaxes. Change callers.
18255 Fix the case that the multibyteness of STRING and the current
18256 buffer doesn't match.
18257 (skip_syntaxes): New function.
18258 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18259 SINGLE_BYTE_CHAR_P.
18260
182612008-02-01 Kenichi Handa <handa@m17n.org>
18262
18263 * xfaces.c (QCfontset): New variable.
18264 (LFACE_FONTSET): New macro.
18265 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18266 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18267 (Finternal_set_lisp_face_attribute)
18268 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18269 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18270 check also LFACE_FONTSET_INDEX.
18271 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18272 attrs[LFACE_FONT_INDEX].
18273 (syms_of_xfaces): Intern and staticpro QCfontset.
18274
18275 * dispextern.h (enum lface_attribute_index): New member
18276 LFACE_FONTSET_INDEX.
18277
18278 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18279
182802008-02-01 Kenichi Handa <handa@m17n.org>
18281
18282 * coding.c (coding_set_destination): Fix coding->destination for
18283 the case converting a region.
18284 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18285 (encode_coding_object): Fix coding->dst_pos and
18286 coding->dst_pos_byte for the case converting a region.
18287
18288 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18289
18290 * character.h (BYTE8_STRING): New macro.
18291
18292 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18293
182942008-02-01 Kenichi Handa <handa@m17n.org>
18295
18296 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18297 characters by octal form.
18298
18299 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18300
18301 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18302 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18303 _fetch_multibyte_char_len.
18304 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18305
18306 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18307
18308 * casefiddle.c (casify_object): Simplify. Handle the case that
18309 the case conversion change the byte length.
18310 (casify_region): Likewise.
18311
18312 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18313
18314 * character.c (_fetch_multibyte_char_len): Delete this variable.
18315 (syms_of_character): Setup Vprintable_chars.
18316
18317 * editfns.c (Fchar_equal): Fix for the unibyte case.
18318 (Finsert_byte): New function.
18319 (syms_of_editfns): Defsubr it.
18320
18321 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18322 of direct code 0x3ffff.
18323
18324 * search.c (Freplace_match): Fix for the unibyte case.
18325
183262008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * lread.c (safe_to_load_p): Fix the logic.
18329
18330 * syntax.c (scan_words): Don't treat characters belonging to
18331 different scripts as constituting a word.
18332
18333 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18334
18335 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18336
18337 * emacs.c (main): In the case of --unibyte, instead of aborting on
18338 finding non-empty buffer, make it unibyte.
18339
183402008-02-01 Kenichi Handa <handa@m17n.org>
18341
18342 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18343 to create a fontset.
18344
183452008-02-01 Dave Love <fx@gnu.org>
18346
18347 * character.c (Funibyte_char_to_multibyte): Doc fix.
18348
18349 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18350
183512008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * fontset.c (fontset_add): Make the type `int'.
18354 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18355
18356 * character.c (unibyte_char_to_multibyte)
18357 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18358 charset_unibyte, not charset_primary.
18359
18360 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18361
18362 * charset.c (charset_unibyte): Rename from charset_primary.
18363 (Funibyte_charset): Rename from Fprimary_charset.
18364 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18365 (syms_of_charset): Adjust for the above changes.
18366
18367 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18368 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18369 it->multibyte_p is zero.
18370
18371 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18372 Delete extern.
18373
183742008-02-01 Kenichi Handa <handa@m17n.org>
18375
18376 * coding.c (Fdefine_coding_system_internal): Fix category setting
18377 for a coding system of type iso-2022.
18378
183792008-02-01 Kenichi Handa <handa@m17n.org>
18380
18381 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18382
183832008-02-01 Kenichi Handa <handa@m17n.org>
18384
18385 * syntax.c (Vnext_word_boundary_function_table): New variable.
18386 (next-word-boundary-function-table): Declare it as a Lisp variable
18387 in syms_of_syntax.
18388 (scan_words): Call functions in Vnext_word_boundary_function_table
18389 if any.
18390
18391 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18392
18393 * fontset.c (fs_load_font): If fontp->charset is not negative,
18394 return fontp without setting its members.
18395
183962008-02-01 Dave Love <fx@gnu.org>
18397
18398 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18399
18400 * m/sparc.h (HAVE_ALLOCA): Delete.
18401
18402 * s/irix6-5.h: Don't include strings.h.
18403 (bcopy, bzero, bcmp): Don't undef.
18404
18405 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18406
18407 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18408 (TIOCSIGSEND): Don't test IRIX6.
18409 (bcopy, bzero, bcmp): Define conditionally.
18410
184112008-02-01 Kenichi Handa <handa@m17n.org>
18412
18413 * buffer.c (Qas, Qmake, Qto): New variables.
18414 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18415 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18416
18417 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18418 we are inserting a process output into a multibyte buffer.
18419
18420 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18421 multibyte_char_to_unibyte.
18422
18423 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18424 by the primary charset, make it eight-bit char.
18425 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18426
18427 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18428 (charset_8_bit__control, charset_8_bit_graphic)
18429 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18430 (define_charset_internal): New function.
18431 (syms_of_charset): Call define_charset_internal for pre-defined
18432 charsets.
18433
18434 * charset.h (charset_8_bit): Extern it.
18435
18436 * coding.c (make_conversion_work_buffer): Adjust for the change
18437 of Fset_buffer_multibyte.
18438 (encode_coding_raw_text): Increment p0 in the loop.
18439
18440 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18441
18442 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18443 for the change of Fset_buffer_multibyte.
18444
18445 * fns.c (Fstring_to_multibyte): New function.
18446 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18447
184482008-02-01 Dave Love <fx@gnu.org>
18449
18450 * xfns.c (x_put_x_image): Declare args.
18451
18452 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18453 (try_font_list): Declare an arg.
18454
18455 * xdisp.c (message2_nolog, set_message): Declare an arg.
18456
18457 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18458
18459 * syntax.c (scan_sexps_forward): Declare an arg.
18460
18461 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18462 Declare an arg.
18463
18464 * lisp.h (Fnew_fontset): Declare.
18465
18466 * keymap.c (push_key_description): Call CHARACTERP correctly.
18467
18468 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18469 (face_for_char): Delete unused vars.
18470 (Fset_fontset_font): Doc fix. Delete unused vars.
18471
18472 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18473
18474 * composite.c (update_compositions): Declare arg.
18475
18476 * cm.c (calccost, cmgoto): Declare args.
18477
18478 * charset.c: Remove `emacs' conditional. Doc fixes.
18479 (map_char_table_for_charset): Declare.
18480
18481 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18482
18483 * ccl.c: Remove `emacs' conditional.
18484
184852008-02-01 Kenichi Handa <handa@m17n.org>
18486
18487 The following changes are to allow specifying multiple font
18488 patterns for a character range (specified by script or charset).
18489
18490 * Makefile.in (abbrev.o): Depend on syntax.h.
18491 (xfaces.o): Depend on charset.h.
18492
18493 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18494 SINGLE_BYTE_CHAR_P.
18495
18496 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18497
18498 * character.h (Vchar_script_table): Extern it.
18499
18500 * character.c (Vscript_alist): Delete.
18501 (Vchar_script_table, Qchar_script_table): New variable.
18502 (syms_of_character): Declare Vchar_script_table as a lisp variable
18503 and initialize it.
18504
18505 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18506 have property char-table-extra-slots, make no extra slot.
18507
18508 * dispextern.h (struct face): Delete member `charset'.
18509 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18510 SINGLE_BYTE_CHAR_P.
18511 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18512 Add prototypes.
18513 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18514 (generate_ascii_font_name): Rename from generate_ascii_font.
18515
18516 * fontset.h (get_font_repertory_func): New prototype.
18517 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18518 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18519
18520 * fontset.c (Qprepend, Qappend): New variables.
18521 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18522 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18523 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18524 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18525 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18526 (load_font_get_repertory): New functions.
18527 (fontset_set): Delete.
18528 (fontset_face): New arg FACE. Return face ID, not face.
18529 Complete re-write to handle new fontset structure. Change caller.
18530 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18531 (face_for_char): Don't call lookup_face.
18532 (make_fontset_for_ascii_face): New arg FACE.
18533 (fs_load_font): New arg CHARSET_ID. Don't check
18534 Vfont_encoding_alist here.
18535 (find_font_encoding): New function.
18536 (list_fontsets): Use STRINGP, not ! NILP.
18537 (accumulate_script_ranges): New function.
18538 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18539 re-written to handle new fontset structure.
18540 (Ffontset_font): Return a copy of element.
18541 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18542 docstring of font-encoding-alist.
18543
18544 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18545 (Fset_fotset_font): Fix arguments to 5.
18546
18547 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18548
18549 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18550 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18551 (highlight_trailing_whitespace): Adjust for the change of
18552 lookup_named_face.
18553
18554 * xfaces.c: Include charset.h.
18555 (load_face_font): Delete argument C. Change caller.
18556 (generate_ascii_font_name): Rename from generate_ascii_font.
18557 (font_name_registry): New function.
18558 (cache_face): Store ascii faces before non-ascii faces in buckets.
18559 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18560 Lookup only ascii faces.
18561 (lookup_non_ascii_face): New function.
18562 (lookup_named_face): Delete argument C. Change caller.
18563 (lookup_derived_face): Delete argument C. Change caller.
18564 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18565 a string, just call font_list with it.
18566 (choose_face_font): Delete arguments FACE and C. New arg
18567 FONT_SPEC. Change caller.
18568 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18569 Change caller.
18570 (realize_non_ascii_face): New function.
18571 (realize_x_face): Call load_face_font here.
18572 (realize_tty_face): Delete argument C. Change caller.
18573 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18574 get a face ID.
18575 (dump_realized_face): Don't print charset of FACE.
18576
18577 * xfns.c (x_set_font): Always call x_new_fontset and
18578 store_frame_parameter.
18579 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18580 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18581
18582 * xterm.h (x_get_font_repertory): Extern it.
18583
18584 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18585 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18586 it->multibyte_p is zero.
18587 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18588 (x_new_fontset): If FONTSETNAME doesn't match any existing
18589 fontsets, create a new one.
18590 (x_get_font_repertory): New function.
18591
185922008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * coding.c (Ffind_coding_systems_region_internal): Detect an
18595 ASCII only string correctly.
18596
18597 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18598 version is 0.
18599
186002008-02-01 Kenichi Handa <handa@m17n.org>
18601
18602 * lread.c: Include "coding.h".
18603 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18604 (load_each_byte, unread_char): New variables.
18605 (readchar_backlog): Delete.
18606 (readchar): Return a character unless load_each_byte is nonzero.
18607 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18608 cons. If unread_char is not -1, simply return it.
18609 (unreadchar): Handle the case that readcharfun is
18610 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18611 (read_multibyte): Delete.
18612 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18613 (read_emacs_mule_char): New functions.
18614 (Fload): Even if the file doesn't have the extension ".elc", if
18615 safe_to_load_p returns a positive version number, assume that the
18616 file contains bytecompiled code. If the version is less than 22,
18617 load the file while decoding multibyte sequences by emacs-mule.
18618 (readevalloop): Don't use readchar_backlog.
18619 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18620 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18621 (read_escape): Delete the arg BYTEREP.
18622 (read1): Set load_each_byte to 1 temporarily while handling
18623 #@NUMBER. Don't call read_multibyte.
18624 (read_vector): Call Fread with a cons. If readcharfun is
18625 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18626 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18627 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18628 and Qload_force_doc_strings.
18629
186302008-02-01 Kenichi Handa <handa@m17n.org>
18631
18632 * xdisp.c (face_before_or_after_it_pos): Call
18633 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * character.h (TRAILING_CODE_P): New macro.
18638 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18639 (string_char_with_unification): Fix prototype.
18640 (Vscript_alist): Extern it.
18641
18642 * character.c (Vscript_alist): New variable.
18643 (string_char_with_unification, str_as_unibyte)
18644 (string_escape_byte8): Add `const' to local variables.
18645 (syms_of_character): Declare script-alist as a Lisp variable.
18646
18647 * charset.h (Vcharset_ordered_list): Extern it.
18648 (charset_ordered_list_tick): Extern it.
18649 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18650 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18651 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18652 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18653 (Funify_charset): Adjust for the change of Funify_charset.
18654
18655 * charset.c (charset_ordered_list_tick): New variable.
18656 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18657 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18658 deunify intead of unify a charset.
18659 (string_xstring_p): Add `const' to local variables.
18660 (find_charsets_in_text): Add `const' to arguments and local variables.
18661 (encode_char): Adjust for the change of Funify_charset. Fix
18662 detecting of invalid code.
18663 (Fset_charset_priority): Increment charset_ordered_list_tick.
18664 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18665 and TO_CODE.
18666
18667 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18668 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18669 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18670 (decode_coding_ccl, consume_chars)
18671 (Ffind_coding_systems_region_internal)
18672 (Fcheck_coding_systems_region): Add `const' to local variables.
18673
18674 * print.c (print_object): Use octal form for printing the
18675 contents of a bool vector.
18676
186772008-02-01 Dave Love <fx@gnu.org>
18678
18679 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18680 <version == 20>: Refuse to load.
18681
186822008-02-01 Dave Love <fx@gnu.org>
18683
18684 * fns.c: Move coding.h.
18685 (Qcodeset, Qdays, Qmonths): New.
18686 (concat): Use CHARACTERP instead of INTEGERP.
18687 (Flocale_codeset): Delete.
18688 (Flanginfo): New function.
18689 (syms_of_fns): Change accordingly.
18690
18691 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18692
186932008-02-01 Dave Love <fx@gnu.org>
18694
18695 * casetab.c (init_casetab_once, init_casetab_once): Fix
18696 CHAR_TABLE_SET call.
18697
18698 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18699
18700 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18701
18702 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18703 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18704 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18705
18706 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18707
18708 * coding.c (ENCODE_DESIGNATION, decode_eol)
18709 (make_conversion_work_buffer, code_conversion_restore)
18710 (Fdefine_coding_system_internal): Convert Lisp types.
18711 (code_conversion_restore): Use EQ, not ==.
18712 (Fencode_coding_string): Fix code_convert_string call.
18713
18714 * coding.h (code_convert_region): Fix prototype.
18715
18716 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18717
18718 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18719 (Ffontset_info): Convert Lisp types.
18720
18721 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18722
18723 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18724
18725 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18726
18727 * chartab.c: Include "...h", not <...h> in some cases.
18728
18729 * callproc.c (Fcall_process): Remove unused variables.
18730
187312008-02-01 Dave Love <fx@gnu.org>
18732
18733 * coding.c (Fset_coding_system_priority): Allow null arg list.
18734
187352008-02-01 Dave Love <fx@gnu.org>
18736
18737 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18738 (Fself_insert_and_exit): Use CHARACTERP.
18739
18740 * callproc.c (Fcall_process): Remove unused vars.
18741
18742 * xterm.c (XTread_socket): Add extra dead keysyms.
18743
18744 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18745
18746 * dispextern.h: Remove prototypes for redraw_frame,
18747 redraw_garbaged_frames.
18748
18749 * cmds.c (Fself_insert_command): Use CHARACTERP.
18750
18751 * chartab.c (make_sub_char_table): Remove unused var.
18752 (Fset_char_table_default, Fmap_char_table): Doc fix.
18753
18754 * keymap.c (access_keymap): Remove generic char code.
18755 (push_key_description): Use CHARACTERP.
18756
187572008-02-01 Dave Love <fx@gnu.org>
18758
18759 * charset.c: Doc fixes.
18760 (Funify_charset): Extra checking.
18761
187622008-02-01 Dave Love <fx@gnu.org>
18763
18764 * lread.c: Remove some unused variables.
18765 (safe_to_load_p): If safe, return the magic number version byte.
18766 (Fload): Maybe use load-with-code-conversion.
18767
187682008-02-01 Kenichi Handa <handa@m17n.org>
18769
18770 * category.c (Fmodify_category_entry): Don't modify the contents
18771 of category_set for characters out of the range. Avoid
18772 unnecessary modification.
18773
18774 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18775 Vchar_unify_table. The default value of the table is now nil.
18776
18777 * character.c (syms_of_character): Setup Vchar_width_table for
18778 eight-bit-control and raw-byte chars.
18779
18780 * charset.h (enum define_charset_arg_index): Delete
18781 charset_arg_parents and add charset_arg_subset and
18782 charset_arg_superset.
18783 (enum charset_attr_index): Delete charset_parents and add
18784 charset_subset and charset_superset.
18785 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18786 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18787 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18788 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18789 (CHARSET_SUPERSET): New macros.
18790 (charset_work): Extern it.
18791 (ENCODE_CHAR): Use charset_work.
18792 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18793 (map_charset_chars): Extern it.
18794
18795 * charset.c (load_charset_map): Set the default value of encoder
18796 and deunifier char-tables to nil.
18797 (map_charset_chars): Change argument. Change callers. Use
18798 map_char_table_for_charset instead of map_char_table.
18799 (Fmap_charset_chars): New optional args from_code and to_code.
18800 (Fdefine_charset_internal): Adjust for the change of
18801 `define-charset' (:parents -> :subset or :superset).
18802 (charset_work): New variable.
18803 (encode_char, syms_of_charset): Adjust for the change of
18804 Fdefine_charset_internal.
18805 (Ffind_charset_string): Setup the vector `charsets' correctly.
18806
18807 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18808 the previous change.
18809 (char_table_ref_and_range): Adjust for the above change.
18810 (map_sub_char_table_for_charset): New function.
18811 (map_char_table_for_charset): New function.
18812
18813 * keymap.c (describe_vector): Handle a char-table directly here.
18814 (describe_char_table): Delete.
18815
18816 * lisp.h (map_charset_chars): Delete.
18817
188182008-02-01 Dave Love <fx@gnu.org>
18819
18820 * fns.c (count_combining): Comment out (unused).
18821 (Flocale_codeset): New.
18822 (syms_of_fns): Defsubr it.
18823
18824 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18825 (size_t): Remove.
18826
188272008-02-01 Dave Love <fx@gnu.org>
18828
18829 * Makefile.in (chartab.o): Depend on charset.h.
18830
188312008-02-01 Kenichi Handa <handa@m17n.org>
18832
18833 * character.c (syms_of_character): Set the default value of
18834 Vprintable_chars to Qnil.
18835
188362008-02-01 Dave Love <fx@gnu.org>
18837
18838 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * charset.c (load_charset_map): Handle the case that from < to
18843 correctly.
18844
18845 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18846 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18847 Pay attention to raw-8-bit chars.
18848
188492008-02-01 Kenichi Handa <handa@m17n.org>
18850
18851 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18852 It is not bytecompiled now.
18853
18854 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18855 (charset_jisx0208): New variables.
18856 (Fdefine_charset_internal): Setup them if appropriate.
18857 (init_charset_once): Initialize them to -1.
18858
18859 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18860 (charset_jisx0208): Extern them.
18861
18862 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18863 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18864 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18865 (setup_iso_safe_charsets): Fix arguments to Fassq.
18866 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18867 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18868 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18869 (encode_coding_iso_2022): Change the 1st arg to
18870 ENCODE_ISO_CHARACTER to a variable.
18871
188722008-02-01 Kenichi Handa <handa@m17n.org>
18873
18874 * charset.h (enum define_charset_arg_index): New enums
18875 charset_arg_min_code and charset_arg_max_code.
18876 (struct charset): New member char_index_offset.
18877
18878 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18879 Take charset->char_index_offset into account.
18880 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18881 args[charset_arg_max_code]. Setup charset.char_index_offset.
18882 (syms_of_charset): Fix args to Fdefine_charset_internal.
18883
188842008-02-01 Dave Love <fx@gnu.org>
18885
18886 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18887
188882008-02-01 Dave Love <fx@gnu.org>
18889
18890 * coding.c: Doc fixes.
18891 (Fcoding_system_aliases): Fix return value.
18892 (Qmac): Remove (duplicated) definition.
18893
188942008-02-01 Dave Love <fx@gnu.org>
18895
362654a6
JB
18896 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18897 New functions.
aac0c6e3
MR
18898
18899 * character.c (Fstring): Doc fix.
18900
18901 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18902
362654a6 18903 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18904 (font-encoding-alist): Doc fix.
18905
189062008-02-01 Dave Love <fx@gnu.org>
18907
18908 * term.c (costs_set): Declare static, non-initialized for pcc.
18909 (encode_terminal_code): Remove unused var.
18910
18911 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18912 for K&R.
18913
18914 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18915
18916 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18917 (suffixes): Move out of make_subsidiaries for K&R.
18918
18919 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18920
18921 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18922
189232008-02-01 Dave Love <fx@gnu.org>
18924
18925 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18926
18927 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18928
189292008-02-01 Yong Lu <lyongu@asia-infonet.com>
18930
18931 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18932
18933 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18934
189352008-02-01 Kenichi Handa <handa@m17n.org>
18936
18937 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18938 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18939
189402008-02-01 Kenichi Handa <handa@m17n.org>
18941
18942 * coding.c (decode_coding_charset): Adjust for the change of
18943 Fdefine_coding_system_internal.
18944 (Fdefine_coding_system_internal): For a coding system of
18945 `charset' type, store a list of charset IDs in
18946 `charset_attr_charset_valids' element of coding attributes.
18947
189482008-02-01 Kenichi Handa <handa@m17n.org>
18949
18950 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18951 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18952 caller. Handle 2-byte and 3-byte charsets correctly.
18953 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18954 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18955 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18956 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18957 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18958 sequence.
18959 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18960 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18961 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18962 and alt&rule composition.
18963 (decode_coding_iso_2022): Handle composition correctly.
18964 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18965
18966 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18967 re-defining a charset. If the charset has :emacs-mule-id, setup
18968 emacs_mule_bytes.
18969 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18970
189712008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18974 (encode_coding_big5, encode_coding_charset): If coding requires safe
18975 encoding, produce a character specified by
18976 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18977
189782008-02-01 Dave Love <fx@gnu.org>
18979
18980 * xterm.c (XSetIMValues): Declare.
18981
18982 * process.c: Conditionally include sys/wait.h, pty.h.
18983
18984 * print.c (print_object): Fix print format for 64-bit systems.
18985
18986 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18987
18988 * buffer.c (emacs_strerror): Declare.
18989
18990 * fontset.c (Fclear_face_cache): Declare.
18991 (accumulate_font_info): Comment-out (unused).
18992 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18993 variables.
18994
18995 * character.h (string_escape_byte8): Declare.
18996
18997 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18998 unused vars.
18999 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19000 (Fmap_charset_chars): Doc fix.
19001
19002 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19003 (Fset_coding_system_priority, Fset_coding_system_priority)
19004 (Fdefine_coding_system_internal): Doc fix.
19005
190062008-02-01 Dave Love <fx@gnu.org>
19007
19008 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19009
190102008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * character.c (string_escape_byte8): Make multibyte string with
19013 correct size.
19014
19015 * charset.c (Fmake_char): Delete unnecessary code.
19016
190172008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * xfns.c (x_encode_text): Allocate coding.destination here, and
19020 call encode_coding_object with dst_object Qnil.
19021
19022 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19023 multibyte form correctly.
19024
19025 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19026 against Vfont_encoding_alist.
19027
19028 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19029 handling of charset list.
19030 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19031 (decode_coding_object): Move point to coding->dst_pos before
19032 calling post-read-conversion function.
19033 (encode_coding_object): Give correct arguments to
19034 pre-write-conversion. Ignore the return value of
19035 pre-write-conversion function. Pay attention to the case that
19036 pre-write-conversion changes the current buffer. If dst_object is
19037 Qt, even if coding->src_bytes is zero, allocate at least one byte
19038 to coding->destination.
19039
19040 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19041
19042 * charset.c (Fmake_char): Make it more backward compatible.
19043 (Fmap_charset_chars): Fix docstring.
19044
190452008-02-01 Dave Love <fx@gnu.org>
19046
19047 * coding.c: Doc fixes.
19048 (Fdefine_coding_system_alias): Use names, not symbols, in
19049 coding-system-alist.
19050
190512008-02-01 Kenichi Handa <handa@m17n.org>
19052
19053 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19054 of calling free_realized_face.
19055
190562008-02-01 Yong Lu <lyongu@asia-infonet.com>
19057
19058 * charset.c (read_hex): Don't treat SPC as a comment starter.
19059 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19060 (Fdecode_char): Fix typo.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * charset.h (struct charset): New member `code_space_mask'.
19065
19066 * coding.c (coding_set_source): Delete the local variable beg_byte.
19067 (encode_coding_charset, Fdefine_coding_system_internal):
19068 Delete the local variable charset.
19069 (Fdefine_coding_system_internal): Setup
19070 attrs[coding_attr_charset_valids] correctly.
19071
19072 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19073 member to check if CODE is valid or not.
19074 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19075 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19076 is within the range of charset->min_code and carset->max_code.
19077
190782008-02-01 Dave Love <fx@gnu.org>
19079
19080 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19081
19082 * dispextern.h (generate_ascii_font): Fix return type.
19083
19084 * xfaces.c (generate_ascii_font): Fix arg declaration.
19085
19086 * coding.c (coding_inherit_eol_type)
19087 (Fset_terminal_coding_system_internal)
19088 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19089
190902008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19093 multiple charsets correctly.
19094
190952008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * search.c (boyer_moore): Fix handling of multibyte character
19098 translation.
19099
19100 * xdisp.c (display_mode_element): When the variable `elt' is
19101 changed, update `this' and `lisp_string'.
19102
191032008-02-01 Kenichi Handa <handa@m17n.org>
19104
19105 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19106
19107 * callproc.c (Fcall_process): Be sure to give the current buffer
19108 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19109
19110 * charset.c (struct charset_map_entries): New struct.
19111 (load_charset_map): Rename from parse_charset_map. New args
19112 entries and n_entries. Change caller.
19113 (load_charset_map_from_file): Rename from load_charset_map.
19114 Change caller. New arg control_flag. Call load_charset_map at
19115 the tail.
19116 (load_charset_map_from_vector): New function.
19117 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19118 (encode_char): If the charset is compact, change a character index
19119 to a code point.
19120
19121 * coding.c (coding_alloc_by_making_gap): Check the case that the
19122 source and destination are the same correctly.
19123 (decode_coding_raw_text): Set coding->consumed_char and
19124 coding->consumed to 0.
19125 (produce_chars): If coding->chars_at_source is nonzero, update
19126 coding->consumed_char and coding->consumed before calling
19127 alloc_destination.
19128 (Fdefine_coding_system_alias): Register ALIAS in
19129 Vcoding_system_alist.
19130 (syms_of_coding): Define `no-conversion' coding system at the tail.
19131
19132 * fileio.c (Finsert_file_contents): Set coding_system instead of
19133 val. If the current buffer is multibyte, always call
19134 decode_coding_gap.
19135
19136 * xfaces.c (try_font_list): Give higher priority to fontset's
19137 family than face's family.
19138
191392008-02-01 Kenichi Handa <handa@m17n.org>
19140
19141 * callproc.c (Fcall_process): Be sure to give the current buffer
19142 to decode_coding_c_string.
19143
19144 * xfaces.c (try_font_list): Give a family specified in a fontset
19145 higher priority than a family specified in a face.
19146
191472008-02-01 Kenichi Handa <handa@m17n.org>
19148
19149 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19150 Fix arguments to insert_from_buffer.
19151
19152 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19157 (decode_coding_gap): Set coding->dst_multibyte correctly.
19158
191592008-02-01 Kenichi Handa <handa@m17n.org>
19160
19161 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19162 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19163 (encode_coding_utf_16): Substitute coding->default_char for
19164 non-Unicode characters.
19165 (decode_coding): Don't call record_insert here.
19166 (setup_coding_system): Initialize `surrogate' of
19167 coding->spec.utf_16 to 0.
19168 (EMIT_ONE_BYTE): Fix for multibyte case.
19169
19170 * insdel.c (insert_from_gap): Call record_insert.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * casefiddle.c (casify_region): Fix multibyte case.
19175
19176 * character.c (c_string_width): Add return type `int'.
19177 (char_string_with_unification): Delete arg ADVANCED.
19178
19179 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19180 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19181 (CHAR_STRING_ADVANCE): Make it do-while statement.
19182
19183 * chartab.c (sub_char_table_set_range): Optimize for the case
19184 DEPTH == 3. Add workaround code for a GCC optimization bug.
19185
19186 * charset.c (parse_charset_map): Remove an unused variable.
19187
19188 * coding.c: Delete unused variables.
19189
19190 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19191 earlier. If inserted is zero and the coding system doesn't
19192 require flushing, don't call decode_coding_gap.
19193
19194 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19195
191962008-02-01 Kenichi Handa <handa@m17n.org>
19197
19198 The following changes are for using Unicode as an internal
19199 character model, and use UTF-8 format for buffer/string
19200 representation.
19201
19202 * .gdbinit (xchartable): Adjust for the change of char table structure.
19203 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19204
19205 * Makefile.in (obj): Add character.o and chartab.o.
19206 (lisp, shortlisp): Remove utf-8.elc.
19207 (*.o): For many files, change dependency on charset.h to
19208 character.h, and add dependency on character.h.
19209 (character.o, chartab.o): New targets.
19210
19211 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19212 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19213 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19214 of "charset.h".
19215
19216 * dired.c, filelock.c: Include "character.h".
19217
19218 * alloc.c: Include "character.h" instead of "charset.h".
19219 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19220 (syms_of_alloc): Remove defsubr for Smake_char_table.
19221
19222 * buffer.c: Include "character.h" instead of "charset.h", don't
19223 include "coding.h".
19224 (Fset_buffer_multibyte): Adjust for UTF-8.
19225
19226 * buffer.h: EXFUN Fbuffer_live_p.
19227
19228 * callproc.c: Include "character.h" instead of "charset.h".
19229 (Fcall_process): Big change for the new code-conversion APIs.
19230
19231 * casetab.c: Include "character.h" instead of "charset.h".
19232 (set_canon, set_identity, shuffle): Adjust for the new
19233 map_char_table spec.
19234 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19235 accessing the char table structure.
19236
19237 * chartab.c: New file that implements char table.
19238
19239 * category.c: Include "character.h".
19240 (copy_category_entry): New function.
19241 (copy_category_table): Call map_char_table and copy_category_entry.
19242 (Fmake_category_table): Initialize all top-level slots.
19243 (char_category_set): New function.
19244 (modify_lower_category_set): Delete.
19245 (Fmodify_category_entry): Call char_table_ref_and_range.
19246
19247 * category.h (CATEGORY_SET): Just call char_category_set.
19248
19249 * ccl.c: Include "character.h".
19250 (Qccl, Qcclp): New variables.
19251 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19252 it's less than 256.
19253 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19254 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19255 and DST type.
19256 (ccl_driver): Change types of argument, adjust code accordingly.
19257 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19258 ccl_driver.
19259 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19260
19261 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19262 New members src_multibyte, dst_multibyte, consumed, and produced.
19263 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19264 (CODING_SPEC_CCL_PROGRAM): New macro.
19265 (ccl_driver): Update prototype.
19266 (Qccl, Qcclp, Fccl_program_p): Extern them.
19267 (CHECK_CCL_PROGRAM): New macro.
19268
19269 * character.c, character.h, chartab.c: New files.
19270
19271 * charset.c: Mostly re-written. Move character and multibyte sequence
19272 handling codes to character.c.
19273
19274 * charset.h: Mostly re-written. Move character and multibyte sequence
19275 handling codes to character.h.
19276
19277 * coding.c, coding.h: Mostly re-written.
19278
19279 * composite.c: Include "character.h" instead of "charset.h".
19280 (CHAR_WIDTH): Move to character.h.
19281 (HASH_KEY, HASH_VALUE): Delete.
19282
19283 * composite.h (enum composition_method): Change order of enumeration
19284 symbols.
19285
19286 * data.c: Include "character.h" instead of "charset.h".
19287 (Faref): Call CHAR_TABLE_REF for a char table.
19288 (Faset): Call CHAR_TABLE_SET for a char table.
19289
19290 * dispextern.h (free_realized_face, check_face_attribytes)
19291 (generate_ascii_font): Extern them.
19292 (free_realized_multibyte_face): Delete extern.
19293
19294 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19295 table structure.
19296
19297 * editfns.c: Include "character.h" instead of "charset.h".
19298 (Fchar_to_string): Always call CHAR_STRING.
19299
19300 * emacs.c (main): Call init_charset_once, init_charset,
19301 syms_of_chartab, and syms_of_character.
19302
19303 * fileio.c: Include "character.h" instead of "charset.h".
19304 (Finsert_file_contents): Big change for the new code-conversion API.
19305 (choose_write_coding_system, Fwrite_region): Likewise.
19306 (build_annotations_2): Delete.
19307 (e_write): Big change for the new code-conversion API.
19308
19309 * fns.c: Include "character.h" instead of "charset.h".
19310 (copy_sub_char_table): Move to chartab.c.
19311 (Fcopy_sequence): Call copy_char_table for a char table.
19312 (concat): Delete codes calling count_multibyte.
19313 (string_char_to_byte, string_byte_to_char): Adjust for the new
19314 multibyte form.
19315 (internal_equal): Adjust for the change of char table structure.
19316 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19317 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19318 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19319 (char_table_translate, optimize_sub_char_table)
19320 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19321 chartab.c.
19322 (char_table_ref_and_index): Delete.
19323 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19324 (Fmd5): Call preferred_coding_system instead of accessing
19325 Vcoding_category_list. Adjust for the new code-conversion API.
19326 (syms_of_fns): Move defsubr for char table related functions to
19327 chartab.c.
19328
19329 * fontset.c: Mostly re-written.
19330
19331 * fontset.h (struct font_info): Change type of the member encoding_type.
19332 (enum FONT_SPEC_INDEX): New enum.
19333 (fontset_font_pattern, fs_load_font): Update prototype.
19334 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19335
19336 * indent.c: Include "character.h" instead of "charset.h".
19337 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19338
19339 * insdel.c: Include "character.h" instead of "charset.h".
19340 (copy_text): Don't refer to Vnonascii_translation_table.
19341 (insert_from_gap): New function.
19342
19343 * keyboard.c: Include "character.h" instead of "charset.h".
19344 (command_loop_1): Never call direct_output_forward_char before
19345 a non-ASCII character.
19346 (read_char): If Vkeyboard_translate_table is a char table, always
19347 translate a character.
19348
19349 * keymap.c: Include "character.h".
19350 (store_in_keymap): Handle the case that IDX is a cons.
19351 (Fdefine_key): Handle the case that KEY is a cons and the car part
19352 is also a cons (range).
19353 (push_key_description): Adjust for the new character code.
19354 (describe_vector): Call describe_char_table for a char table.
19355 (describe_char_table): New function.
19356
19357 * keymap.h (describe_char_table): Extern it.
19358
19359 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19360 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19361 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19362 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19363 Delete.
19364 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19365 structure.
19366 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19367 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19368 (CHARTAB_SIZE_BITS_3): New macros.
19369 (chartab_size): Extern it.
19370 (struct Lisp_Char_Table): Re-design.
19371 (struct Lisp_Sub_Char_Table): New structure.
19372 (HASH_KEY, HASH_VALUE): Move from fns.c.
19373 (CHARACTERBITS): Define as 22.
19374 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19375 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19376 (GC_SUB_CHAR_TABLE_P): New macro.
19377 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19378 (code_convert_string_norecord): Deleted extern.
19379 (init_character_once, syms_of_character, init_charset)
19380 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19381
19382 * lread.c: Include "character.h".
19383 (read_multibyte): New arg NBYTES.
19384 (read_escape): Change the meaning of returned *BYTEREP.
19385 (to_multibyte): Delete.
19386 (read1): Adjust the handling of char table and string.
19387
19388 * print.c: Include "character.h" instead of "charset.h".
19389 (print_string): Convert 8-bit raw bytes to octal form by
19390 string_escape_byte8.
19391 (print_object): Adjust for the new multibyte form. Print 8-bit
19392 raw bytes always in octal form. Handle sub char table correctly.
19393
19394 * process.c: Include "character.h" instead of "charset.h".
19395 (read_process_output, send_process): Adjust for the new
19396 code-conversion API.
19397
19398 * puresize.h (BASE_PURESIZE): Increase.
19399
19400 * regex.c: Include "character.h" instead of "charset.h".
19401 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19402 (regex_compile): Accept a range whose starting and ending
19403 character have different leading bytes.
19404 (analyse_first): Adjust for the above change.
19405
19406 * search.c: Include "character.h" instead of "charset.h".
19407 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19408 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19409
19410 * syntax.c: Include "character.h" instead of "charset.h".
19411 (syntax_parent_lookup): Delete.
19412 (Fmodify_syntax_entry): Accept a cons as CHAR.
19413 (skip_chars): Adjust for the new multibyte form.
19414 (init_syntax_once): Call char_table_set_range instead of directly
19415 accessing the structure of a char table.
19416
19417 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19418 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19419 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19420 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19421
19422 * term.c: Include "buffer.h" and "character.h".
19423 (encode_terminal_code, write_glyphs): Adjust for the new
19424 code-conversion API.
19425 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19426
19427 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19428
19429 * xdisp.c: Include "character.h".
19430 (get_next_display_element): Adjust for the new multibyte form.
19431 (disp_char_vector): Adjust for the new char table structure.
19432 (decode_mode_spec_coding): Adjust for the new structure of
19433 coding system.
19434 (decode_mode_spec): Adjust for the new code-conversion API.
19435
19436 * xfaces.c: Include "character.h" instead of "charset.h".
19437 (load_face_font): Adjust for the change of choose_face_font and
19438 FS_LOAD_FONT.
19439 (generate_ascii_font): New function.
19440 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19441 (set_font_frame_param): Adjust for the change of choose_face_font.
19442 (free_realized_face): Make it public.
19443 (free_realized_faces_for_fontset): Rename from
19444 free_realized_multibyte_face. Free also faces realized for ASCII.
19445 (choose_face_font): Change arguments. Adjust for the change of
19446 fontset_font_pattern and FS_LOAD_FONT.
19447
19448 * xfns.c: Include "character.h".
19449 (x_encode_text): Adjust for the new code-conversion API.
19450
19451 * xselect.c: Don't include "charset.h".
19452 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19453
19454 * xterm.c: Include "character.h".
19455 (x_encode_char): New argument CHARSET. Change caller.
19456 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19457 Call ENCODE_CHAR instead of SPLIT_CHAR.
19458 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19459 CHAR_WIDTH instead of CHARSET_WIDTH.
19460 (XTread_socket): Adjust for the new code-conversion API.
19461 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19462 (x_load_font): Adjust for the change of struct font.
19463
194642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19465
19466 * xfaces.c (face_at_buffer_position): Remove unused vars.
19467
194682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19469
19470 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19471 Fix overflow checking.
19472
194732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19474
19475 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19476 Cancel previous change.
19477
194782008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19479
19480 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19481 ccl->eight_bit_control. Fix check for buffer overflow.
19482 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19483 (ccl_driver): Initialize extra_bytes to 0.
19484
194852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19486
19487 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19488 return it ORed with ctrl_modifier.
19489
194902008-01-29 Miles Bader <miles@gnu.org>
19491
19492 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19493
194942008-01-28 Jason Rumney <jasonr@gnu.org>
19495
19496 * w32.c (stat): Don't double check for networked drive.
19497
194982008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19499
19500 * window.c (run_window_configuration_change_hook): New function.
19501 Code extracted from set_window_buffer. Set the selected frame.
19502 (set_window_buffer): Use it.
19503 * window.h (run_window_configuration_change_hook): Declare.
19504 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19505
19506 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19507
195082008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19509
19510 * Makefile.in: Remove references to unused macros.
19511
195122008-01-26 Eli Zaretskii <eliz@gnu.org>
19513
19514 * w32.c (g_b_init_get_sid_sub_authority)
19515 (g_b_init_get_sid_sub_authority_count): New static variables.
19516 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19517 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19518 (init_user_info): Use them to retrieve uid and gid.
19519 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19520 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19521 st_uid and st_gid of the file.
19522
195232008-01-26 Jason Rumney <jasonr@gnu.org>
19524
19525 * w32.c (logon_network_drive): New function.
19526 (stat): Use it.
19527
195282008-01-26 Chong Yidong <cyd@stupidchicken.com>
19529
19530 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19531 invisible text covered with an ellipsis.
19532
195332008-01-25 Richard Stallman <rms@gnu.org>
19534
19535 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19536 jump back to beginning. Move some other initializations after that.
19537 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19538 New variables.
19539 (syms_of_xdisp): Init them.
19540
19541 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19542
19543 * buffer.c (reset_buffer_local_variables):
19544 Implement `permanent-local-hook'.
19545 (Qpermanent_local_hook): New variable.
19546 (syms_of_buffer): Init and staticpro it.
19547
195482008-01-25 Michael Albinus <michael.albinus@gmx.de>
19549
19550 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19551
195522008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19553
19554 * fns.c (Fclrhash): Return TABLE.
19555
195562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19557
19558 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19559 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19560 is set even without positional changes.
19561 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19562
19563 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19564
195652008-01-23 Jason Rumney <jasonr@gnu.org>
19566
19567 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19568
19569 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19570 the unicode range available in MULE by locale-coding-system.
19571 Improve dbcs lead byte detection. Set event timestamp and modifiers
19572 earlier.
19573
195742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19575
19576 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19577 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19578 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19579 when used on child processes.
19580
195812008-01-21 Michael Albinus <michael.albinus@gmx.de>
19582
19583 * dbusbind.c (Fdbus_method_return_internal): Rename from
19584 Fdbus_method_return.
19585 (Fdbus_unregister_object): Move to dbus.el.
19586 (Fdbus_call_method, Fdbus_method_return_internal)
19587 (Fdbus_send_signal): Improve debug messages.
19588
195892008-01-20 Martin Rudalics <rudalics@gmx.at>
19590
19591 * undo.c (undo_inhibit_record_point): New variable.
19592 (syms_of_undo): Initialize it.
19593 (record_point): Don't record point when undo_inhibit_record_point
19594 is set.
19595
195962008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19597
19598 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19599
19600 * xdisp.c (Qauto_hscroll_mode): New var.
19601 (syms_of_xdisp): Initialize it.
19602 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19603 window's buffer.
19604 (hscroll_windows): Don't check automatic_hscrolling_p here.
19605
19606 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19607 vscroll if we're setting window-buffer to the value it already has.
19608
196092008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19610
19611 * m/intel386.h: Remove references to XENIX.
19612
196132008-01-17 Andreas Schwab <schwab@suse.de>
19614
19615 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19616 instead of HAVE_X86_64_LIB64_DIR.
19617 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19618
196192008-01-17 Glenn Morris <rgm@gnu.org>
19620
19621 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19622 to HAVE_X86_64_LIB64_DIR.
19623
196242008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19625
19626 * s/irix3-3.h:
19627 * s/irix4-0.h:
19628 * s/386-ix.h:
19629 * s/domain.h:
19630 * s/hpux9-x11r4.h:
19631 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19632
19633 * sysdep.c: Remove code containing references to symbols defined
19634 by unsupported systems.
19635
196362008-01-16 Glenn Morris <rgm@gnu.org>
19637
19638 * coding.c (select-safe-coding-system-function): Doc fix.
19639
196402008-01-15 Glenn Morris <rgm@gnu.org>
19641
19642 * config.in: Revert 2008-01-13 change: this is a generated file.
19643
196442008-01-13 Tom Tromey <tromey@redhat.com>
19645
19646 * lisp.h: Fix typo.
19647
196482008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19649
19650 * m/sequent-ptx.h:
19651 * m/sequent.h:
19652 * s/ptx.h:
19653 * s/ptx4-2.h:
19654 * s/ptx4.h: Remove files for systems no longer supported.
19655
19656 * callproc.c (Fcall_process): Fix previous change.
19657
196582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19659
19660 * unexsunos4.c: Remove file, system not supported anymore.
19661
19662 * m/mips.h:
19663 * m/intel386.h:
19664 * callproc.c:
19665 * config.in:
19666 * ecrt0.c:
19667 * emacs.c:
19668 * fileio.c:
19669 * frame.c:
19670 * getpagesize.h:
19671 * keyboard.c:
19672 * lread.c:
19673 * process.c:
19674 * puresize.h:
19675 * sysdep.c:
19676 * systty.h:
19677 * syswait.h:
19678 * unexec.c:
19679 * xdisp.c:
19680 * alloc.c: Remove code containing references to symbols defined by
19681 unsupported systems.
19682
196832008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19684
19685 * coding.c (detect_coding_mask): Fix previous change.
19686
196872008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19688
19689 * coding.c (detect_coding_iso2022): New arg
19690 latin_extra_code_state. Allow Latin extra codes only
19691 when *latin_extra_code_state is nonzero.
19692 (detect_coding_mask): If there is a NULL byte, detect the encoding
19693 as UTF-16 or binary. If Latin extra codes exist, detect the
19694 encoding as ISO-2022 only when there's no other proper encoding is
19695 found.
19696
196972008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19698
19699 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19700 #ifdef MAC_OS.
19701
197022008-01-08 Richard Stallman <rms@gnu.org>
19703
19704 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19705
197062008-01-06 Nick Roberts <nickrob@snap.net.nz>
19707
19708 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19709 menu bar in parentheses.
19710
197112008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19712
19713 * m/7300.h:
19714 * m/acorn.h:
19715 * m/alliant-2800.h:
19716 * m/alliant.h:
19717 * m/alliant1.h:
19718 * m/alliant4.h:
19719 * m/altos.h:
19720 * m/amdahl.h:
19721 * m/apollo.h:
19722 * m/att3b.h:
19723 * m/aviion-intel.h:
19724 * m/aviion.h:
19725 * m/celerity.h:
19726 * m/clipper.h:
19727 * m/cnvrgnt.h:
19728 * m/convex.h:
19729 * m/cydra5.h:
19730 * m/delta88k.h:
19731 * m/dpx2.h:
19732 * m/dual.h:
19733 * m/elxsi.h:
19734 * m/f301.h:
19735 * m/gould-np1.h:
19736 * m/gould.h:
19737 * m/i860.h:
19738 * m/ibmps2-aix.h:
19739 * m/ibmrt-aix.h:
19740 * m/ibmrt.h:
19741 * m/irist.h:
19742 * m/is386.h:
19743 * m/isi-ov.h:
19744 * m/mega68.h:
19745 * m/mg1.h:
19746 * m/news-r6.h:
19747 * m/news-risc.h:
19748 * m/news.h:
19749 * m/nh3000.h:
19750 * m/nh4000.h:
19751 * m/ns16000.h:
19752 * m/ns32000.h:
19753 * m/nu.h:
19754 * m/orion.h:
19755 * m/orion105.h:
19756 * m/paragon.h:
19757 * m/pfa50.h:
19758 * m/plexus.h:
19759 * m/pyramid.h:
19760 * m/pyrmips.h:
19761 * m/sh3el.h:
19762 * m/sps7.h:
19763 * m/sr2k.h:
19764 * m/stride.h:
19765 * m/sun1.h:
19766 * m/sun2.h:
19767 * m/sun3-68881.h:
19768 * m/sun3-fpa.h:
19769 * m/sun3-soft.h:
19770 * m/sun3.h:
19771 * m/sun386.h:
19772 * m/symmetry.h:
19773 * m/tad68k.h:
19774 * m/tahoe.h:
19775 * m/targon31.h:
19776 * m/tek4300.h:
19777 * m/tekxd88.h:
19778 * m/tower32.h:
19779 * m/tower32v3.h:
19780 * m/ustation.h:
19781 * m/wicat.h:
19782 * m/xps100.h:
19783 * s/cxux.h:
19784 * s/cxux7.h:
19785 * s/dgux.h:
19786 * s/dgux4.h:
19787 * s/dgux5-4-3.h:
19788 * s/dgux5-4r2.h:
19789 * s/esix.h:
19790 * s/esix5r4.h:
19791 * s/hiuxmpp.h:
19792 * s/hiuxwe2.h:
19793 * s/iris3-5.h:
19794 * s/iris3-6.h:
19795 * s/isc2-2.h:
19796 * s/isc3-0.h:
19797 * s/isc4-0.h:
19798 * s/isc4-1.h:
19799 * s/newsos5.h:
19800 * s/newsos6.h:
19801 * s/osf1.h:
19802 * s/osf5-0.h:
19803 * s/riscix1-1.h:
19804 * s/riscix12.h:
19805 * s/sco4.h:
19806 * s/sco5.h:
19807 * s/sunos4-0.h:
19808 * s/sunos4-1.h:
19809 * s/sunos413.h:
19810 * s/sunos4shr.h:
19811 * s/umax.h:
19812 * s/unipl5-2.h:
19813 * s/xenix.h:
19814 * cxux-crt0.s:
19815 * unexapollo.c:
19816 * unexconvex.c:
19817 * unexenix.c:
19818 * unexsni.c: Remove files for systems no longer supported.
19819
19820 * m/intel386.h: Remove references to unsupported systems.
19821
19822 * w32.c (get_emacs_configuration): Remove reference to i860.
19823
19824 * sysdep.c: Remove dead code.
19825
198262008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19827
19828 * s/rtu.h:
19829 * m/masscomp.h: Remove files. Platform is obsolete.
19830
198312008-01-04 Michael Albinus <michael.albinus@gmx.de>
19832
19833 * dbusbind.c (Fdbus_method_return): New function.
19834 (xd_read_message): Add the serial number to the event.
19835 (Fdbus_register_method): Activate the function.
19836
198372008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19838
19839 * keyboard.c (read_key_sequence): Fix typo.
19840
198412008-01-03 Michael Albinus <michael.albinus@gmx.de>
19842
19843 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19844 (xd_signature, xd_append_arg): Handle element type detection for
19845 empty arrays.
19846 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19847 SDATA () calls; this must be solved more general.
19848 (Fdbus_register_signal): Use SBYTES instead of strlen.
19849
198502008-01-03 Magnus Henoch <magnus@zemdatav>
19851
19852 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19853 unsigned int for byte values (necessary for big-endian platform).
19854 (Fdbus_call_method): Handle the case of no returned arguments.
19855
198562007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19857
19858 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19859
198602007-12-31 Magnus Henoch <mange@freemail.hu>
19861
19862 * dbusbind.c (xd_signature): Signature of variant is just "v".
19863
198642007-12-30 Michael Albinus <michael.albinus@gmx.de>
19865
19866 * dbusbind.c: Fix several errors and compiler warnings.
19867 Reported by Tom Tromey <tromey@redhat.com>.
19868 (XD_ERROR, XD_DEBUG_MESSAGE)
19869 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19870 (xd_append_arg): Part for basic D-Bus types rewritten.
19871 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19872 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19873 appropriate.
19874 (xd_read_message): Return Qnil. Don't signal an error; it is not
19875 useful during event reading.
19876 (Fdbus_register_signal): Signal an error if the check for
19877 FUNCTIONP fails.
19878 (Fdbus_register_method): New function. The implementation is not
19879 complete, the call of the function signals an error therefore.
19880 (Fdbus_unregister_object): New function, renamed from
19881 Fdbus_unregister_signal. The initial check signals an error, if
19882 the object is not well formed.
19883
198842007-12-30 Richard Stallman <rms@gnu.org>
19885
19886 * textprop.c (get_char_property_and_overlay):
19887 Signal error if POSITION is out of range in a buffer.
19888
198892007-12-29 Martin Rudalics <rudalics@gmx.at>
19890
19891 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19892 because the original parameters are in pure storage now.
19893
198942007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19895
19896 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19897
198982007-12-22 Eli Zaretskii <eliz@gnu.org>
19899
19900 * callint.c (syms_of_callint) <command-history>: Add reference to
19901 history-length in the doc string.
19902
199032007-12-17 Jason Rumney <jasonr@gnu.org>
19904
19905 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19906 before passing as wParam.
19907
199082007-12-22 Michael Albinus <michael.albinus@gmx.de>
19909
19910 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19911 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19912 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19913 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19914 as number.
19915 (Fdbus_call_method): Fix docstring.
19916
199172007-12-21 Michael Albinus <michael.albinus@gmx.de>
19918
19919 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19920 New macros.
19921 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19922 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19923 Simplify.
19924 (xd_signature): New function.
19925 (xd_append_arg): Compute also signatures. Major rewrite.
19926 (xd_retrieve_arg): Make debug messages friendly.
19927 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19928 Check for signatures of arguments.
19929
199302007-12-19 Michael Albinus <michael.albinus@gmx.de>
19931
19932 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19933 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19934 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19935 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19936 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19937 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19938 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19939 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19940 (xd_retrieve_value): Remove. Functionality included in ...
19941 (xd_append_arg): New function.
19942 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19943
199442007-12-16 Michael Albinus <michael.albinus@gmx.de>
19945
19946 * dbusbind.c (top): Include <stdio.h>.
19947 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19948 dbus_message_new_method_call and dbus_message_new_signal.
19949 (Fdbus_register_signal): Rename unique_name to uname.
19950 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19951 non-existing unique name. Fix typos in matching rule. Return an
19952 object which is useful in Fdbus_unregister_signal.
19953 (Fdbus_unregister_signal): Reimplementation, in order to remove
19954 only the corresponding entry.
19955 (Vdbus_registered_functions_table): Change the order of entries.
19956 Apply these changes in xd_read_message and Fdbus_register_signal.
19957
199582007-12-16 Andreas Schwab <schwab@suse.de>
19959
19960 * fileio.c (Finsert_file_contents): Fix overflow check to not
19961 depend on undefined integer overflow.
19962
199632007-12-14 Jason Rumney <jasonr@gnu.org>
19964
19965 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19966 for characters above 127.
19967
199682007-12-13 Jason Rumney <jasonr@gnu.org>
19969
19970 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19971 before dereferencing array.
19972 (lookup_vk_code): Remove zero comparison.
19973
199742007-12-14 Michael Albinus <michael.albinus@gmx.de>
19975
19976 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19977 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19978 Use `unsigned int' instead of `uint'.
19979 (xd_read_message, Fdbus_register_signal): Split expressions into
19980 multiple lines before operators "&&" and "||", according to the
19981 GNU Coding Standards.
19982
199832007-12-14 Eli Zaretskii <eliz@gnu.org>
19984
19985 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19986
199872007-12-12 Juri Linkov <juri@jurta.org>
19988
19989 * buffer.c (Frename_buffer): In interactive spec replace
19990 `read-buffer' with `read-string' that uses `buffer-name-history'
19991 as history, and the current buffer's name as default.
19992
199932007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19994
19995 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19996 manipulating the backtrace manually.
19997 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19998 (struct backtrace, backtrace_list): Remove.
19999 (command_loop_1): Remove dead var `no_direct'.
20000
20001 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20002 preserve non-built-in buffer-local variables.
20003 (Fkill_all_local_variables): Don't re-create&re-set permanent
20004 buffer-local variables.
20005
200062007-12-09 Juri Linkov <juri@jurta.org>
20007
20008 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20009 Lisp code that uses `read-buffer' with current buffer as default.
20010
200112007-12-08 Michael Albinus <michael.albinus@gmx.de>
20012
20013 * dbusbind.c (xd_read_message): Generate an event for every
20014 registered handler. There might be several handlers registered
20015 for the same signal.
20016 (Fdbus_register_signal): Don't overwrite a registration for the
20017 same signal. Add a new registration if handlers are different.
20018 (Vdbus_registered_functions_table): Rework doc string.
20019
200202007-12-07 Michael Albinus <michael.albinus@gmx.de>
20021
20022 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20023 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20024 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20025 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20026 Unify argument lists.
20027 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20028 arguments and hash table keys. Use unique name for service.
20029 (Fdbus_unregister_signal): Remove checks.
20030 (Vdbus_registered_functions_table): Fix doc string.
20031
200322007-12-05 Magnus Henoch <mange@freemail.hu>
20033
20034 * process.c (make_process): Initialize pty_flag to 0.
20035
200362007-12-05 Jason Rumney <jasonr@gnu.org>
20037
20038 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20039 specified XBMs.
20040
200412007-12-05 Richard Stallman <rms@gnu.org>
20042
20043 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20044
200452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20046
20047 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20048 New variable.
20049 (mac_try_close_socket) [MAC_OSX]: New function.
20050 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20051 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20052
20053 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20054 Use mac_try_close_socket.
20055
200562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20057
20058 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20059 reloc_base.
20060 (copy_dysymtab): Compute relocation base here.
20061 (rebase_reloc_address) [__ppc64__]: New function.
20062 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20063 changed.
20064
200652007-12-05 Jason Rumney <jasonr@gnu.org>
20066
20067 * w32proc.c (sys_spawnve): Quote args with wildcards.
20068
200692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20070
20071 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20072 __objc_* sections.
20073 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20074
200752007-12-05 Michael Albinus <michael.albinus@gmx.de>
20076
20077 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20078 Move check for Vdbus_registered_functions_table to
20079 xd_read_queued_messages.
20080 (xd_read_queued_messages): Protect xd_read_message calls by
20081 internal_condition_case_1.
20082
200832007-12-04 Michael Albinus <michael.albinus@gmx.de>
20084
20085 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20086 Qdbus_system_bus and Qdbus_session_bus, respectively.
20087 (Vdbus_intern_symbols): Remove.
20088 (Vdbus_registered_functions_table): New hash table.
20089 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20090 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20091 Rewrite in order to manage registered functions by hash table
20092 Vdbus_registered_functions_table.
20093
200942007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20095
20096 * xterm.c: Update URL to Window Manager Specification in comment.
20097
200982007-12-02 Michael Albinus <michael.albinus@gmx.de>
20099
20100 * config.in (HAVE_DBUS): Add.
20101
20102 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20103 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20104 (obj): Add $(DBUS_OBJ).
20105 (LIBES): Add $(DBUS_LIBS).
20106 (dbusbind.o): New target.
20107
20108 * dbusbind.c: New file.
20109
20110 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20111
20112 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20113 (Qdbus_event): New Lisp symbol.
20114 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20115 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20116 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20117
20118 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20119
201202007-12-01 Richard Stallman <rms@gnu.org>
20121
20122 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20123
201242007-11-30 Jason Rumney <jasonr@gnu.org>
20125
20126 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20127 (w32con_reset_terminal_modes): Clear screen buffer.
20128 (w32_face_attributes): Don't use color indexes that are out of range.
20129 Only reverse the default colors.
20130
20131 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20132 WINDOWSNT.
20133
20134 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20135
201362007-11-29 Jason Rumney <jasonr@gnu.org>
20137
20138 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20139 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20140 if the terminal colors are initialized.
20141 (unspecified_fg, unspecified_bg): Remove unused declarations.
20142
201432007-11-29 Andreas Schwab <schwab@suse.de>
20144
20145 * keyboard.c (apply_modifiers): Fix typo.
20146
201472007-11-29 Richard Stallman <rms@gnu.org>
20148
20149 * keymap.c (Fcurrent_local_map): Doc fix.
20150
201512007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20152
20153 * s/gnu-kfreebsd.h: New file.
20154
201552007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20156
20157 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20158 Don't cast redundantly.
20159
20160 * keyboard.c (KEY_TO_CHAR): New macro.
20161 (parse_modifiers, apply_modifiers): Accept integer arguments.
20162 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20163 for chars and symbol keys.
20164 After doing such remapping, apply function-key-map again.
20165
201662007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20167
20168 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20169 compiled anymore.
20170
201712007-11-26 Andreas Schwab <schwab@suse.de>
20172
20173 * process.c (list_processes_1): Fix indentation level of the
20174 command column.
20175
201762007-11-23 Andreas Schwab <schwab@suse.de>
20177
20178 * editfns.c (Fformat): Handle %c specially since it requires the
20179 argument to be of type int.
20180
201812007-11-23 Markus Triska <markus.triska@gmx.at>
20182
20183 * emacs.c (main): Call init_editfns before init_process, since
20184 init_process sets Vprocess_connection_type depending on OS release.
20185
201862007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20187
20188 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20189 (find_symbol_value): Use do_symval_forwarding.
20190
20191 * data.c (set_internal): Set the value in the `cons-cell' (for
20192 Buffer_Local_values) not only for frame-local variables.
20193
201942007-11-22 Andreas Schwab <schwab@suse.de>
20195
20196 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20197 values to sprintf.
20198 * keymap.c (Fsingle_key_description): Likewise.
20199 * print.c (print_object): Likewise.
20200
202012007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20202
20203 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20204 file for image is nil.
20205
202062007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20207
20208 * term.c: Include stdarg.h.
20209 (fatal): Implement using varargs.
20210 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20211
202122007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20213
20214 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20215 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20216 Update call to buffer_slot_type_mismatch.
20217 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20218 (buffer_slot_type_mismatch): Update.
20219 * buffer.c (buffer_local_types): Remove.
20220 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20221 (defvar_per_buffer): Set the type in the buffer_objfwd.
20222
202232007-11-21 Jason Rumney <jasonr@gnu.org>
20224
20225 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20226 CreateFileMapping returns NULL on failure.
20227
202282007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20229
20230 * search.c (Fset_match_data): Remove the `evaporate' feature.
20231 (unwind_set_match_data): Don't use the `evaporate' feature.
20232
202332007-11-21 Jason Rumney <jasonr@gnu.org>
20234
20235 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20236
20237 * w32console.c (w32con_write_glyphs): Remove unused variables.
20238
202392007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20240
20241 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20242
20243 * s/darwin.h (MULTI_KBOARD): Remove.
20244
20245 * macfns.c (x_create_tip_frame, Fx_create_frame)
20246 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20247
202482007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20249
20250 * buffer.c (Fbuffer_local_value): Remove redundant test.
20251 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20252 than in `current-buffer' to match the comment.
20253 Do the swap using swap_in_global_binding.
20254
20255 * data.c (store_symval_forwarding, set_internal):
20256 * eval.c (specbind): Remove dead code.
20257
20258 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20259 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20260 Since we do not want to see internal Lisp_*fwd objects here.
20261
202622007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20263
20264 * sysdep.c (init_system_name): Use getaddrinfo if available.
20265
20266 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20267 (x_scroll_bar_note_movement): start, end, with, height in struct
20268 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20269
202702007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20271
20272 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20273
202742007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20275
20276 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20277 This undoes Richard's change of 14-Oct-2002.
20278
20279 * alloc.c (allocate_other_vector):
20280 * lisp.h (allocate_other_vector): Remove.
20281
20282 * window.c (struct save_window_data): Move non-lisp data to the end
20283 and make it `int' rather than Lisp_Object.
20284 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20285 Done wrap/unwrap integer values.
20286 (Fset_window_configuration, compare_window_configurations):
20287 Update use of fields to their new types.
20288
20289 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20290 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20291 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20292 (SET_SCROLL_BAR_X_WINDOW): Remove.
20293 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20294 Access the new x_window field directly.
20295 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20296 Don't wrap/unwrap integers into Lisp_Objects.
20297 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20298 (x_scroll_bar_report_motion):
20299 Don't wrap/unwrap integers into Lisp_Objects.
20300 (x_term_init): Use SDATA.
20301 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20302 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20303 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20304 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20305 * xfns.c (x_set_background_color):
20306 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20307 Access the new x_window field directly.
20308
20309 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20310 (allocate_pseudovector): Make non-static.
20311
20312 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20313 (allocate_pseudovector): Declare.
20314 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20315
203162007-11-15 Andreas Schwab <schwab@suse.de>
20317
20318 * editfns.c (Fformat): Correctly format EMACS_INT values.
20319 Also take precision into account when formatting an integer.
20320
20321 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20322
203232007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20324
20325 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20326 (syms_of_keyboard): Defsubr it.
20327
20328 * data.c (swap_in_global_binding): Fix longstanding bug where
20329 store_symval_forwarding was not called with the right second argument,
20330 thus causing objfwd-ing from being dropped.
20331
203322007-11-14 Juanma Barranquero <lekktu@gmail.com>
20333
20334 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20335 (Fx_display_pixel_height, Fx_display_planes)
20336 (Fx_display_color_cells, Fx_server_max_request_size)
20337 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20338 (Fx_display_visual_class, Fx_display_save_under):
20339 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20340 (Fx_display_pixel_height, Fx_display_planes)
20341 (Fx_display_color_cells, Fx_server_max_request_size)
20342 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20343 (Fx_display_mm_height, Fx_display_mm_width)
20344 (Fx_display_backing_store, Fx_display_visual_class)
20345 (Fw32_select_font, Fx_display_save_under):
20346 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20347 (Fx_display_pixel_height, Fx_display_planes)
20348 (Fx_display_color_cells, Fx_server_max_request_size)
20349 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20350 (Fx_display_save_under): Fix typos in docstrings.
20351
203522007-11-14 Juanma Barranquero <lekktu@gmail.com>
20353
20354 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20355 corresponding to deleted entries; they are an implementation detail.
20356 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20357 Remove variables.
20358 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20359 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20360 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20361 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20362 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20363 (Fw32_define_rgb_color, Fw32_load_color_file)
20364 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20365 Fix typos in docstrings.
20366 (Fx_server_version): Reflow docstring.
20367 (Fw32_shell_execute): Doc fixes.
20368
203692007-11-13 Juanma Barranquero <lekktu@gmail.com>
20370
20371 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20372 if w32_parse_hot_key returned nil.
20373
203742007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20375
20376 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20377
203782007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20379
aac0c6e3
MR
20380 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20381
20382 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20383
20384 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20385 Remove W32_SCROLL_BAR_CLICK_EVENT.
20386
20387 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20388 Add MULTIMEDIA_KEY_EVENT.
20389
20390 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20391 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20392 (make_lispy_event) [WINDOWSNT]: Use it to translate
20393 MULTIMEDIA_KEY_EVENT.
20394
20395 * w32term.h (WM_APPCOMMAND): Define if not already.
20396 (GET_APPCOMMAND_LPARAM): Likewise.
20397
20398 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20399 WM_APPCOMMAND.
20400
20401 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20402 (syms_of_w32fns): Export and initialize it.
20403 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20404
204052007-11-09 Chong Yidong <cyd@stupidchicken.com>
20406
20407 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20408 twice.
20409
20410 * xdisp.c (handle_face_prop): Fix last change.
20411
204122007-11-09 Richard Stallman <rms@gnu.org>
20413
20414 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20415 not just for after-strings and before-strings.
20416 Call face_for_overlay_string and pass the overlay to it.
20417 (handle_display_prop): Determine whether property came from an overlay.
20418 Pass OVERLAY arg to handle_single_display_spec.
20419 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20420 (load_overlay_strings): Fill in it->string_overlays.
20421 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20422
20423 * xfaces.c (face_for_overlay_string): Function renamed from
20424 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20425
20426 * dispextern.h (struct it): New elt string_overlays.
20427 New elt from_overlay, also in stack.
20428 Rearrange a few elements.
20429 (face_for_overlay_string): Decl renamed from
20430 face_at_buffer_position_no_overlays, and add argument.
20431
204322007-11-09 Richard Stallman <rms@gnu.org>
20433
20434 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20435 to get the base face for an overlay string.
20436
20437 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20438
20439 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20440
20441 * xdisp.c (handle_stop): Move some code out of loop.
20442
204432007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20444
20445 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20446 Fix conversion from Lisp object to ATSUFontID.
20447
204482007-11-09 Jason Rumney <jasonr@gnu.org>
20449
20450 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20451
204522007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20453
20454 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20455 Don't assume regions are aligned to page boundary.
20456 (print_load_command_name): Add LC_UUID if defined.
20457
204582007-11-09 Richard Stallman <rms@gnu.org>
20459
20460 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20461
204622007-11-07 Jason Rumney <jasonr@gnu.org>
20463
20464 * s/windows95.h: Remove.
20465
204662007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20467
20468 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20469 abort with a message on unhandled store_type values.
20470
204712007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20472
20473 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20474 Remove HAVE_X11R5 and HAVE_X11R4.
20475
204762007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20477
20478 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20479
204802007-11-01 Johan Bockgård <bojohan@gnu.org>
20481
20482 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20483 Don't set s->stippled_p here, since it has already been set by
20484 x_set_glyph_string_gc from x_draw_glyph_string.
20485
204862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20487
20488 * sunfns.c: Remove file.
20489
20490 * m/sun386.h:
20491 * m/sun2.h:
20492 * m/sparc.h: Remove Sun windows code.
20493
204942007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20495
20496 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20497 (init_keyboard): Set current_kboard's window-system to nil.
20498 (tty_read_avail_input): Typo.
20499 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20500
205012007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20502
20503 * s/usg5-4.h:
20504 * s/usg5-3.h:
20505 * s/ptx.h:
20506 * m/is386.h:
20507 * m/ibmps2-aix.h:
20508 * Makefile.in: Remove all mentions of X10.
20509
20510 * dispnew.c (syms_of_display): Don't mention version 10.
20511
205122007-10-28 Juanma Barranquero <lekktu@gmail.com>
20513
20514 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20515 ($(BLD)/abbrev.$(O)): Remove.
20516
205172007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20518
20519 Rewrite abbrev.c in Elisp.
20520 * image.c (Qcount): Don't declare as extern.
20521 (syms_of_image): Initialize and staticpro `Qcount'.
20522 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20523 * emacs.c (main): Don't call syms_of_abbrev.
20524 * Makefile.in (obj): Remove abbrev.o.
20525 (abbrev.o): Remove.
20526 * abbrev.c: Remove.
20527
205282007-10-26 Martin Rudalics <rudalics@gmx.at>
20529
20530 * window.c (window_min_size_2): Don't count header-line.
20531
205322007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20533
20534 * frame.h (struct frame): Move all bit fields after the first bit
20535 field to take advantage of the available space. Group all the
20536 chars together to reduce wasted space due to padding.
20537
205382007-10-26 Juanma Barranquero <lekktu@gmail.com>
20539
20540 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20541
20542 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20543 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20544 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20545 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20546 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20547 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20548 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20549 (last_marked, mark_object_loop_halt): Make static.
20550
20551 * frame.c (syms_of_frame) <delete-frame-functions>:
20552 Fix typo in docstring.
20553
205542007-10-25 Juanma Barranquero <lekktu@gmail.com>
20555
20556 * w32.c (init_environment): Fix tiny memory leak.
20557 (w32_get_resource): Remove unused variable `ok'.
20558
205592007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20560
20561 Make `window-system' into a keyboard-local variable (rather than
20562 frame-local as done originally by multi-tty).
20563
20564 * keyboard.h (struct kboard): Add Vwindow_system.
20565 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20566 (mark_kboards): Mark Vwindow_system.
20567
20568 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20569 (init_display): Don't set the obsolete `window-system' frame-param.
20570
20571 * xterm.c (x_term_init):
20572 * w32term.c (w32_create_terminal):
20573 * term.c (init_tty): Set Vwindow_system.
20574 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20575 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20576
20577 * xfns.c (Fx_create_frame, x_create_tip_frame):
20578 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20579 * macfns.c (Fx_create_frame):
20580 Don't set the obsolete `window-system' frame-param.
20581
20582 * frame.h (Qwindow_system): Remove.
20583 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20584 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20585
205862007-10-24 Richard Stallman <rms@gnu.org>
20587
20588 * frame.c (x_figure_window_size): For fullscreen case,
20589 set USPosition | PPosition without clobbering rest of window_prompting.
20590
20591 * keyboard.c (Fcurrent_idle_time): Doc fix.
20592
20593 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20594
205952007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20596
20597 * process.c (unwind_request_sigio): Only define if __ultrix__.
20598
20599 * callproc.c (child_setup): Remove spurious *.
20600
20601 * lisp.h (Fget_text_property): Declare.
20602 (have_menus_p): Declare it here rather than in sys-dep header files.
20603 * macterm.h (have_menus_p):
20604 * msdos.h (have_menus_p):
20605 * xterm.h (have_menus_p): Remove.
20606
20607 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20608 (Fmake_variable_frame_local): Just check the variable's const-ness
20609 rather than checking nil or t.
20610
206112007-10-22 Jason Rumney <jasonr@gnu.org>
20612
20613 * w32fns.c: Include math.h.
20614 (w32_abort): Declaration moved to nt/config.nt.
20615
20616 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20617 (abort): Redefinition moved to nt/config.nt.
20618
20619 * m/windowsnt.h: Remove.
20620
206212007-10-22 Juanma Barranquero <lekktu@gmail.com>
20622
20623 * emacs.c (Fdump_emacs): Fix typo in message.
20624 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20625 <installation-directory>: Reflow docstring.
20626
206272007-10-22 Juri Linkov <juri@jurta.org>
20628
20629 * minibuf.c: Allow minibuffer default to be a list of default values.
20630 With empty input use the first element of this list as returned default.
20631 (string_to_object)
20632 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20633 (read_minibuf): If defalt is cons, set histstring to its car.
20634 (Fread_string): If default_value is cons, set val to its car.
20635 (Fread_buffer): If def is cons, use its car.
20636 (Fcompleting_read): If defalt is cons, set val to its car.
20637
206382007-10-21 Michael Albinus <michael.albinus@gmx.de>
20639
20640 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20641
206422007-10-20 Juanma Barranquero <lekktu@gmail.com>
20643
20644 * doc.c (Fdocumentation): Check for advice in all cases.
20645
206462007-10-19 Chong Yidong <cyd@stupidchicken.com>
20647
20648 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20649
206502007-10-19 Richard Stallman <rms@gnu.org>
20651
20652 * doc.c (Fdocumentation): Check for and handle an advised function.
20653
206542007-10-19 Juanma Barranquero <lekktu@gmail.com>
20655
20656 * process.c (Fset_process_filter): Doc fix.
20657
206582007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20659
20660 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20661 which caused key-translation-map to applied repeatedly (thus breaking
20662 double-mode).
20663
206642007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20665
20666 * xselect.c (x_own_selection, x_handle_selection_clear)
20667 (x_clear_frame_selections):
20668 * w32menu.c (list_of_panes, list_of_items):
20669 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20670 * textprop.c (validate_plist, interval_has_all_properties)
20671 (interval_has_some_properties, interval_has_some_properties_list)
20672 (add_properties, text_property_list):
20673 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20674 * minibuf.c (Fassoc_string):
20675 * macselect.c (x_own_selection, x_clear_frame_selections)
20676 (Fx_disown_selection_internal):
20677 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20678 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20679
206802007-10-17 Chong Yidong <cyd@stupidchicken.com>
20681
20682 * process.c: Link to libs for calling res_init() if available.
20683 (Fmake_network_process): Call res_init() before getaddrinfo or
20684 gethostbyname, if possible.
20685
206862007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20687
20688 * lread.c (read1): Set pvectype for char_tables.
20689
20690 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20691 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20692 Add type checks.
20693 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20694
20695 * alloc.c (free_misc): Use XMISCTYPE.
20696 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20697
206982007-10-17 Glenn Morris <rgm@gnu.org>
20699
20700 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20701 (syms_of_minibuf): Add Qcompletion_ignore_case.
20702 * dired.c (Qcompletion_ignore_case): Change to external.
20703 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20704 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20705 (Fread_file_name): Use it rather than intern'ing.
20706
20707 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20708 (Fread_coding_system): Ignore case of user input.
20709
207102007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20711
20712 * xdisp.c (handle_display_prop): Ignore display specs after
20713 replacing one when string text is being replaced.
20714 (handle_single_display_spec): Pretend as if characters with display
20715 property haven't been consumed only when buffer text is being replaced.
20716
207172007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20718
20719 * xfns.c (Fx_create_frame, Fx_display_list):
20720 * window.c (window_fixed_size_p, enlarge_window)
20721 (shrink_window_lowest_first):
20722 * macterm.c (init_font_name_table):
20723 * macfns.c (Fx_create_frame, Fx_display_list):
20724 * lread.c (close_load_descs):
20725 * keyboard.c (read_char_x_menu_prompt):
20726 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20727 * coding.c (code_convert_region_unwind): Test the type of an object
20728 rather than just !NILP before extracting data from it.
20729
20730 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20731
20732 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20733 (XMISCANY): New macro.
20734 (XMISCTYPE): Use it.
20735 (struct Lisp_Misc_Any): New type.
20736 (union Lisp_Misc): Use it.
20737 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20738 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20739 (find_symbol_value, set_internal, default_value, Fset_default)
20740 (Fmake_variable_buffer_local, Fmake_local_variable)
20741 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20742 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20743 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20744 * alloc.c (allocate_buffer): Set the size and tag.
20745 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20746 Use XMISCANY.
20747 (die): Follow the GNU convention for error messages.
20748 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20749 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20750 tag any more.
20751 (set_buffer_internal_1):
20752 * frame.c (store_frame_param):
20753 * eval.c (specbind):
20754 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20755
20756 * doc.c (Fsnarf_documentation): Simplify.
20757
207582007-10-14 Juanma Barranquero <lekktu@gmail.com>
20759
20760 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20761 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20762
207632007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20764
20765 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20766
207672007-10-14 Juanma Barranquero <lekktu@gmail.com>
20768
20769 * eval.c (do_autoload): Don't save autoloads.
20770
20771 * data.c (Ffset): Save autoload of the function being set.
20772
207732007-10-07 John Paul Wallington <jpw@pobox.com>
20774
20775 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20776 parameter before setting up faces.
20777
207782007-10-13 Eli Zaretskii <eliz@gnu.org>
20779
20780 * ccl.c (Fregister_code_conversion_map):
20781 * keyboard.c (append_tool_bar_item): Reformat last change.
20782
20783 * lisp.h (eabs): Rename from `abs'. All callers changed.
20784
207852007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20786
20787 * buffer.c (add_overlay_mod_hooklist):
20788 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20789 * fontset.c (make_fontset):
20790 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20791 (append_tool_bar_item):
20792 * macmenu.c (grow_menu_items):
20793 * w32menu.c (grow_menu_items):
20794 * xmenu.c (grow_menu_items): Use larger_vector.
20795
207962007-10-13 Eli Zaretskii <eliz@gnu.org>
20797
20798 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20799 selected frame'' on MSDOS).
20800
208012007-10-12 Martin Rudalics <rudalics@gmx.at>
20802
20803 * frame.c (Qexplicit_name): New variable.
20804 (x_report_frame_params): Report it in parameter alist.
20805 (syms_of_frame): Intern and staticpro it.
20806
208072007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20808
20809 * macfns.c (x_create_tip_frame): Set terminal for frame.
20810
208112007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20812
20813 * frame.c (Qenvironment): Remove.
20814 (syms_of_frame) <Qenvironment>: Don't initialize.
20815 (Fdelete_frame): Don't treat the `environment' param specially.
20816 * frame.h (Qenvironment): Don't declare.
20817 * callproc.c (set_initial_environment): Don't set unused frame param.
20818
20819 * frame.c (Fframe_with_environment): Remove.
20820 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20821
20822 * lisp.h (Fframe_with_environment): Don't declare.
20823
208242007-10-10 Juanma Barranquero <lekktu@gmail.com>
20825
20826 * indent.c (indent_tabs_mode, last_known_column)
20827 (last_known_column_modified): Make static.
20828 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20829
208302007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20831
20832 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20833
208342007-10-09 Jason Rumney <jasonr@gnu.org>
20835
20836 * w32term.c (x_set_window_size): Disable code that attempts to tell
20837 Lisp code about a size change before it actually happens.
20838
208392007-10-09 Richard Stallman <rms@gnu.org>
20840
20841 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20842 return HANDLED_RETURN.
20843
208442007-10-08 Martin Rudalics <rudalics@gmx.at>
20845
20846 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20847 when there's an unread command event.
20848
20849 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20850 window autoselection act appropriately when leaving selected frame.
20851 (syms_of_frame): Initialize focus_follows_mouse.
20852 * frame.h (focus_follows_mouse): Extern it.
20853 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20854 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20855 * msdos.c (dos_rawgetc): Likewise.
20856 * w32term.c (w32_read_socket): Likewise.
20857 * xterm.c (handle_one_xevent): Likewise.
20858 * xdisp.c (syms_of_xdisp): In doc-string of
20859 mouse-autoselect-window mention focus-follows-mouse.
20860
208612007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20862
20863 * macterm.c (mac_load_query_font): Fix missing return value.
20864 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20865 Add BLOCK_INPUT.
20866
208672007-10-08 Richard Stallman <rms@gnu.org>
20868
20869 * xdisp.c (get_window_cursor_type): Implement documented behavior
20870 for cursor-in-non-selected-windows = t.
20871
208722007-10-08 Jason Rumney <jasonr@gnu.org>
20873
20874 * w32.c (w32_get_resource): Always close registry keys.
20875
208762007-10-08 Jason Rumney <jasonr@gnu.org>
20877
20878 * makefile.w32-in (LIBS): Add COMCTL32.
20879
20880 * w32fns.c (globals_of_w32fns): Init common controls.
20881
208822007-10-08 Richard Stallman <rms@gnu.org>
20883
20884 * image.c (our_memory_buffer): Rename from omfib_buffer.
20885
208862007-10-08 Richard Stallman <rms@gnu.org>
20887
20888 * buffer.c (Foverlays_at): Doc fix.
20889
208902007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20891
20892 * fns.c (Fplist_put): Preserve uneven tail data.
20893
208942007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20895
20896 * termhooks.h (enum event_kind): Remove trailing comma.
20897
20898 * frame.h (enum): Remove trailing comma.
20899
209002007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20901
20902 * w32proc.c (delete_child): Don't terminate threads of zombies.
20903
209042007-10-08 Martin Rudalics <rudalics@gmx.at>
20905
20906 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20907
20908 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20909 last-repeatable-command.
20910 (init_kboard): Initialize Vlast_repeatable_command.
20911 (command_loop_1): Set it to real_this_command unless that was
20912 bound to an input event.
20913 (mark_kboards): Mark it.
20914
209152007-10-08 Richard Stallman <rms@gnu.org>
20916
20917 * eval.c (condition-case): Doc fix.
20918
209192007-10-08 Masatake YAMATO <jet@gyve.org>
20920
20921 * xfaces.c (tty_supports_face_attributes_p): Fix code
20922 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20923 was copied and not edited.
20924
209252007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20926
20927 Add new `input-decode-map' keymap and use it for terminal
20928 escape sequences.
20929 * keyboard.h (struct kboard): Add Vinput_decode_map.
20930 Remove Vlocal_key_translation_map.
20931 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20932 (init_kboard): Init input-decode-map.
20933 Replace local-key-translation-map back with key-translation-map.
20934 (syms_of_keyboard): Declare input-decode-map.
20935 Remove local-key-translation-map. Update docstrings.
20936 (mark_kboards): Mark Vinput_decode_map.
20937 Don't mark Vlocal_key_translation_map.
20938 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20939 Replace local-key-translation-map back with key-translation-map.
20940 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20941 Bind in input-decode-map rather than function-key-map.
20942
20943 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20944 This was made redundant by the previous introduction of XSETPVECTYPE.
20945
209462007-10-09 Richard Stallman <rms@gnu.org>
20947
20948 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20949
209502007-09-29 Richard Stallman <rms@gnu.org>
20951
20952 * eval.c (internal_condition_case_2, internal_condition_case_1)
20953 (internal_condition_case): Reenable abort if x_catching_errors ()
20954 to see if that really happens and why.
20955
209562007-10-06 Andreas Schwab <schwab@suse.de>
20957
20958 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20959
209602007-10-04 Juanma Barranquero <lekktu@gmail.com>
20961
20962 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20963
209642007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20965
20966 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20967
209682007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20969
20970 * window.h (struct window):
20971 * window.c (struct save_window_data, struct saved_window):
20972 * termhooks.h (struct terminal):
20973 * process.h (struct Lisp_Process):
20974 * frame.h (struct frame):
20975 * buffer.h (struct buffer):
20976 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20977 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20978 The size field of (pseudo)vectors is now unsigned.
20979 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20980
20981 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20982 Turn `count' into an integer.
20983
20984 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20985 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20986 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20987 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20988 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20989
20990 * alloc.c (allocate_pseudovector): New fun.
20991 (ALLOCATE_PSEUDOVECTOR): New macro.
20992 (allocate_window, allocate_terminal, allocate_frame)
20993 (allocate_process): Use it.
20994 (mark_vectorlike): New function.
20995 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20996 (mark_terminals): Use it.
20997 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20998 (Fmake_byte_code): Use XSETPVECTYPE.
20999
21000 * frame.c (Fframe_parameters): Minor simplification.
21001
21002 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21003
21004 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21005
21006 * buffer.c (Fget_buffer_create, init_buffer_once):
21007 * lread.c (defsubr):
21008 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21009
21010 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21011 defined differently in the m/*.h files.
21012 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21013 (XSETPVECTYPE): New macro.
21014 (XSETPSEUDOVECTOR): Use it.
21015
21016 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21017 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21018
21019 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21020 * lread.c (defvar_per_buffer):
21021 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21022
21023 * window.c (candidate_window_p): Only consider as visible frames that
21024 are on the same terminal.
21025
21026 * m/ibms390x.h (MARKBIT): Remove unused macro.
21027
210282007-10-01 Juanma Barranquero <lekktu@gmail.com>
21029
21030 * lread.c (Fload): Fix typo in docstring.
21031
210322007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21033
21034 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21035 of a non-zero value can't yield zero.
21036
210372007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21038
21039 * term.c (term_clear_mouse_face, term_mouse_highlight)
21040 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21041
21042 * print.c (safe_debug_print): Use XHASH.
21043
21044 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21045 Lisp elements such as tags.
21046 (XHASH): New macro.
21047 (EQ): Use it.
21048 (SREF, SSET, STRING_COPYIN): Use SDATA.
21049 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21050
21051 * alloc.c (mark_terminal): Remove left-over declaration.
21052 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21053 (allocate_vectorlike): Remove type argument. Adjust callers.
21054 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21055 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21056
21057 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21058 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21059 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21060 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21061 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21062 Use them.
21063
21064 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21065 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21066 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21067
210682007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21069
21070 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21071 loaded by default.
21072
210732007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21074
21075 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21076 on this tty.
21077 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21078
21079 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21080 Update all users.
21081 (handle_one_term_event): Use Gpm_DrawPointer.
21082 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21083 Signal errors instead of returning nil. Always return nil.
21084 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21085 Make it a noop if gpm-mouse was not activated.
21086 (syms_of_term): Update names.
21087
210882007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21089
21090 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21091 (init_sys_modes): Check that gpm_tty is the current tty.
21092
21093 * alloc.c (allocate_terminal): Set the vector size to only count the
21094 lisp fields. Initialize those to nil.
21095 (mark_object): Don't treat terminals specially.
21096 (mark_terminal): Remove.
21097 (mark_terminals): Use mark_object instead.
21098
21099 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21100 the GC to the beginning.
21101
21102 * indent.h:
21103 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21104
21105 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21106
211072007-09-25 Jason Rumney <jasonr@gnu.org>
21108
21109 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21110
21111 * w32console.c (create_w32cons_output): Remove.
21112
21113 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21114
21115 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21116 (reset_sys_modes): Use reset_terminal_modes_hook.
21117
211182007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21119
21120 * eval.c (do_autoload): Don't output any message.
21121
211222007-09-24 Juri Linkov <juri@jurta.org>
21123
21124 * emacs.c (standard_args): Change priority of "--no-splash"
21125 from 40 to 3. Add "--no-desktop" with the same priority.
21126
211272007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21128
21129 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21130 and optimize the case where they are all 1.
21131
211322007-09-23 Johannes Weiner <hannes@saeurebad.de>
21133
21134 * lisp.h (abs): Define if not defined.
21135 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21136 Don't define `abs', since it's defined in lisp.h.
21137
211382007-09-22 Eli Zaretskii <eliz@gnu.org>
21139
21140 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21141 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21142 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21143 (init_tty): Use DEV_TTY instead of "/dev/tty".
21144 [WINDOWSNT]: No need to protect from NAME arg being null.
21145
211462007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21147
21148 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21149 up the tty state.
21150
211512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21152
21153 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21154 (gpm_tty): Change its type.
21155 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21156 (gpm_tty): Change its type and initialize it.
21157 (Fterm_open_connection): Check the frame is indeed a tty.
21158 Use the new gpm_tty.
21159 (Fterm_close_connection): Use the new gpm_tty.
21160 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21161 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21162
211632007-09-21 Juanma Barranquero <lekktu@gmail.com>
21164
21165 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21166 underline_color, to draw strike-through.
21167
211682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21169
21170 * lisp.h (allocate_terminal): Declare.
21171
21172 * window.c (candidate_window_p): Consider frames that are being placed
21173 by the user as somewhere between visible and iconified.
21174 (window_loop): Prefer windows on the current frame.
21175 (Fselect_window): Move the use of select-frame to the beginning so we
21176 can just delegate all the work (it'll call us back anyway).
21177
21178 * frame.c (Qdisplay_environment_variable):
21179 * frame.h (Qdisplay_environment_variable): Delete.
21180
21181 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21182 of the first arg, since that value may be a union.
21183
21184 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21185 parameter rather than Qdisplay_environment_variable. If all else
21186 fails, look for DISPLAY in initial-environment.
21187
211882007-09-21 Glenn Morris <rgm@gnu.org>
21189
21190 * Makefile.in (emacstool): Remove target.
21191 (lisp, shortlisp): Remove termdev.elc.
21192
211932007-09-21 Markus Triska <markus.triska@gmx.at>
21194
21195 * xterm.c (x_delete_display): Compile session management conditionally.
21196
211972007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21198
21199 * callproc.c (getenv_internal_1): New function.
21200 (getenv_internal): Use it.
21201 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21202
21203 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21204 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21205 (Fset_terminal_parameter): Work with dead terminals as well.
21206 (Fmodify_terminal_parameters): Remove.
21207
21208 * terminal.c (get_terminal): Handle terminals.
21209 Make sure the terminal returned is live.
21210 (create_terminal): Use allocate_terminal.
21211 (mark_terminals): Move to alloc.c.
21212 (delete_terminal): Use terminal->name as liveness status.
21213 NULL out fields after freeing their contents.
21214 Don't deallocate the object.
21215 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21216 rather than an int.
21217 (Fterminal_live_p): Accept non-integer arguments.
21218 (Fterminal_list): Return terminal objects rather than an ints.
21219
21220 * alloc.c (enum mem_type): New member for `terminal' objects.
21221 (allocate_terminal): New function.
21222 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21223 Handle terminals.
21224 (mark_terminal): New fun.
21225 (mark_terminals): Move from terminal.c.
21226
21227 * term.c (get_tty_terminal): Don't treat output_initial specially.
21228 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21229 (delete_tty): Use terminal->name as liveness status.
21230
21231 * termhooks.h (struct terminal): Make it into a pseudovector.
21232 Remove `deleted' replaced by checking `name's nullness.
21233
21234 * print.c (print_object): Handle terminals.
21235
21236 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21237 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21238
21239 * frame.c (make_terminal_frame):
21240 * keyboard.c (tty_read_avail_input):
21241 * w32term.c (x_delete_terminal):
21242 * xfns.c (Fx_create_frame, x_create_tip_frame):
21243 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21244
212452007-09-20 Glenn Morris <rgm@gnu.org>
21246
21247 * process.c (Fmake_network_process): Doc fix.
21248
212492007-09-19 Jason Rumney <jasonr@gnu.org>
21250
21251 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21252
212532007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21254
21255 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21256 Fix a C warning regarding variable constness.
21257
21258 * xterm.c (handle_one_xevent): Fix a C warning.
21259
212602007-09-18 Jason Rumney <jasonr@gnu.org>
21261
21262 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21263
212642007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21265
21266 * gtkutil.c (gdpy_def): New variable.
21267 (xg_initialize): Initialize gdpy_def.
21268 (xg_display_close): If no other display exists, set gdpy_def to a
21269 new connection.
21270
212712007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21272
21273 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21274 when we have no file name for the icon.
21275 (xg_tool_bar_expose_callback): Remove.
21276 (xg_create_tool_bar): Don't connect expose signal to
21277 xg_tool_bar_expose_callback.
21278 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21279
212802007-09-16 Andreas Schwab <schwab@suse.de>
21281
21282 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21283 values instead of zapping them.
21284
212852007-09-14 Glenn Morris <rgm@gnu.org>
21286
21287 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21288 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21289 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21290 scope and rename to omfib_buffer for clarity.
21291 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21292
212932007-09-14 Kenichi Handa <handa@m17n.org>
21294
21295 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21296
212972007-09-13 Jason Rumney <jasonr@gnu.org>
21298
21299 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21300
21301 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21302
21303 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21304 (mac_term_init): Call here instead, passing rif.
21305
213062007-09-13 Glenn Morris <rgm@gnu.org>
21307
21308 * s/hpux.h: No longer define `static' as nothing.
21309
213102007-09-13 Johan Bockgård <bojohan@gnu.org>
21311
21312 * callint.c (Fcall_interactively): Remove unused var `fun'.
21313
213142007-09-12 Romain Francoise <romain@orebokech.com>
21315
21316 * window.c (prefer_window_split_horizontally, display_buffer):
21317 Revert 2007-09-08 change.
21318
213192007-09-12 Glenn Morris <rgm@gnu.org>
21320
21321 * alloca.c: Remove file.
21322 * Makefile.in (alloca): Do not undef.
21323 (allocaobj, alloca.o): Remove.
21324 (otherobj): Remove allocaobj.
21325 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21326 * regex.c (C_ALLOCA): Remove all references and code that was only
21327 used when this was defined.
21328 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21329 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21330 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21331
21332 * Makefile.in (SOURCES, unlock, relock): Delete.
21333
21334 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21335 (menu_grab_callback): All uses changed.
21336
21337 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21338 (x_reply_selection_request): All uses changed.
21339
213402007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21341
21342 * lread.c (load_warn_old_style_backquotes): Change message to look
21343 better when it appears in the middle of byte-compiler messages.
21344
213452007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21346
21347 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21348
21349 * xterm.c (x_create_terminal): Add comment.
21350
21351 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21352
213532007-09-10 Richard Stallman <rms@gnu.org>
21354
21355 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21356
213572007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21358
21359 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21360 (DEFUN): Document `intspec', use it instead of `prompt'.
21361
21362 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21363
21364 * data.c (Finteractive_form): If the interactive specification starts
21365 with a `(', use it as a Lisp form.
21366
21367 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21368 name and file modes.
21369
21370 * callint.c (Fcall_interactively): Comment fixes.
21371
213722007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21373
21374 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21375 and compiled functions.
21376
213772007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21378
21379 * window.c (prefer_window_split_horizontally): New variable.
21380 (display_buffer): Consider splitting window horizontally depending
21381 on prefer_window_split_horizontally.
21382
213832007-09-08 Eli Zaretskii <eliz@gnu.org>
21384
21385 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21386
213872007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21388
21389 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21390
21391 * frame.c (x_set_frame_parameters): Check number is positive before
21392 using XFASTINT.
21393
21394 * window.c (freeze_window_start): Don't presume selected_window holds
21395 a window object.
21396 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21397
213982007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21399
21400 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21401
214022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21403
21404 * window.c (Vsplit_window_preferred_function): New var.
21405 (Fdisplay_buffer): Use it.
21406 (syms_of_window): Export, and initialize it.
21407
214082007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21409
21410 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21411
214122007-09-06 Glenn Morris <rgm@gnu.org>
21413
21414 * gtkutil.c (menu_grab_callback) <cnt>:
21415 * xselect.c (x_reply_selection_request) <cnt>: Move static
21416 variable to file scope.
21417
214182007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21419
21420 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21421 consistent values of selected_frame and selected_window.
21422
214232007-09-04 Jason Rumney <jasonr@gnu.org>
21424
21425 * w32console.c (initialize_w32_display): Zero unused hooks.
21426
214272007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21428
21429 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21430 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21431
214322007-09-04 Jason Rumney <jasonr@gnu.org>
21433
21434 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21435 in w32console.c. Set up input. Remove XXX comments that have been
21436 confirmed as correct.
21437
21438 * s/ms-w32.h (MULTI_KBOARD): Define.
21439
21440 * w32console.c (one_and_only_w32cons): Remove.
21441 (initialize_w32_display): Take terminal argument.
21442
21443 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21444 initialize_w32_display.
21445 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21446
21447 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21448
21449 * keyboard.c (discard_mouse_events): Discard it.
21450 (make_lispy_event): Translate it to a lisp event.
21451 (lispy_wheel_names): Add wheel-left and right events.
21452 (syms_of_keyboard): Enlarge wheel_syms.
21453
21454 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21455 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21456
21457 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21458
21459 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21460 from WM_MOUSEHWHEEL.
21461 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21462
21463 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21464 terminal.
21465
21466 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21467 keyboard for the terminal.
21468
214692007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21470
21471 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21472 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21473 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21474 and resume-tty-function to resume-tty-hook.
21475 (Fsuspend_tty, Fresume_tty): Use new names.
21476
214772007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21478
21479 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21480 if it starts with "n:".
21481
214822007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21483
21484 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21485
214862007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21487
21488 * frame.h:
21489 * frame.c (Qterm_environment_variable): Remove.
21490 (syms_of_frame): Don't init and staticpro it.
21491
21492 * callproc.c (getenv_internal): Remove special case for $TERM.
21493
21494 * callproc.c (Vinitial_environment): New variable.
21495 (set_initial_environment): Initialize it.
21496 (syms_of_callproc): Declare it.
21497 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21498 TERM under which a process runs is never related to the TERM in which
21499 Emacs is running.
21500
215012007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21502
21503 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21504 * s/darwin.h: ... do it here.
21505
215062007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21507
21508 * lisp.h (set_initial_environment): Rename from set_global_environment.
21509
21510 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21511 removed by mistake on the multi-tty branch.
21512
21513 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21514 (Fmodify_frame_parameters): Return a value.
21515
21516 * image.c (png_load): Comment-out var only used in commented-out code.
21517
21518 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21519 before passing it to mark_object.
21520
21521 * xfaces.c (internal_resolve_face_name): Return a value.
21522 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21523
21524 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21525 (x_icon): Comment-out var only used in commented-out code.
21526
215272007-08-29 Romain Francoise <romain@orebokech.com>
21528
21529 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21530 QUIT hasn't been provided.
21531
215322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21533
21534 * callproc.c (child_setup, getenv_internal): Use the
21535 display-environment-variable and term-environment-variable frame params.
21536 (set_initial_environment): Initialise Vprocess_environment.
21537
21538 * config.in: Disable multi-keyboard support on a mac.
21539
21540 * frame.c (Qterm_environment_variable)
21541 (Qdisplay_environment_variable): New variables.
21542 (syms_of_frame): Intern and staticpro them.
21543 (Fmake_terminal_frame): Disable output method test.
21544
21545 * frame.h: Declare them here.
21546
21547 * macfns.c (x_set_mouse_color): Get rif from the frame.
21548 (x_set_tool_bar_lines): Don't use updating_frame.
21549 (mac_window): Add 2 new parameters for consistency with other systems.
21550 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21551 frame parameters following what is done in X11 and w32. Don't use
21552 FRAME_MAC_DISPLAY_INFO.
21553 (Fx_open_connection, start_hourglass): Remove window-system check.
21554 (x_create_tip_frame): Get the keyboard from the terminal.
21555
21556 * macmenu.c: Reorder includes.
21557 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21558
21559 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21560 terminal parameter.
21561 (x_clear_frame): Add a frame parameter.
21562 (note_mouse_movement): Get rif from the frame.
21563 (mac_term_init): Initialize the terminal.
21564 (mac_initialize): Make static and move terminal initialization ...
21565 (mac_create_terminal): ... to this new function.
21566
21567 * macterm.h (struct mac_display_info): Add terminal.
21568 (mac_initialize): Delete declaration.
21569
21570 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21571
21572 * sysdep.c: Comment out text after #endif.
21573
21574 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21575 is defined. Better initialize ttys in windows. Use terminal
21576 specific mouse_position_hook.
21577
21578 * termhooks.h (union display_info): Add mac_display_info.
21579
21580 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21581 Set the default minibuffer frame, window_system and the rest of the
21582 frame parameters following what is done in X11.
21583
21584 * w32term.c (w32_initialize): Make static.
21585
21586 * xselect.c (x_handle_selection_clear): Only access
21587 terminal->kboard when MULTI_KBOARD is defined.
21588
21589 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21590 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21591
215922007-08-29 Jason Rumney <jasonr@gnu.org>
21593
21594 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21595 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21596
21597 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21598 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21599
21600 * keyboard.c (restore_kboard_configuration): Only define when
21601 MULTI_KBOARD defined.
21602
21603 * makefile.w32-in: Update dependancies from Makefile.in.
21604 (OBJ1): Add terminal.$(O)
21605
21606 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21607 Don't define function body.
21608 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21609
21610 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21611
21612 * w32.c (request_sigio, unrequest_sigio): Remove.
21613
21614 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21615 (w32con_clear_frame, w32con_clear_end_of_line)
21616 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21617 (w32con_delete_glyphs, w32con_set_terminal_window)
21618 (scroll_line, w32_sys_ring_bell): Add frame arg.
21619 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21620 Add terminal arg.
21621 (PICK_FRAME): Remove.
21622 (w32con_write_glyphs): Use frame specific terminal coding.
21623 (one_and_only_w32cons): New global variable.
21624 (initialize_w32_display): Use it for storing hooks.
21625 (create_w32cons_output): New function.
21626
21627 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21628 arg a frame.
21629
21630 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21631 Set window_system.
21632 (x_set_tool_bar_lines): Don't use updating_frame.
21633 (Fx_create_frame): Set terminal and ref count.
21634 (Fx_open_connection): Remove window-system check.
21635
21636 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21637
21638 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21639 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21640 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21641 Add frame arg.
21642 (x_delete_terminal, w32_create_terminal): New functions.
21643 (w32_term_init): Create a terminal.
21644 (w32_initialize): Move terminal specific initialization to
21645 w32_create_terminal.
21646
21647 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21648 (w32_clear_rect, w32_clear_area): Use background from frame.
21649 (w32_display_info): Add terminal.
21650 (w32_sys_ring_bell, x_delete_display): Declare here.
21651
21652 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21653
21654 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21655
216562007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21657
21658 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21659 Fix get_named_tty calls for the controlling tty.
21660
216612007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21662
194d44e7 21663 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21664
216652007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21666
21667 * term.c (tty_insert_glyphs): Add missing first parameter.
21668
216692007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21670
21671 * buffer.c (Fbuffer_list, Fbury_buffer):
21672 Take frame->buried_buffer_list into account.
21673
21674 * cm.c (current_tty): New variable, for cmputc().
21675 (cmputc): Use it.
21676 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21677 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21678 (cmgoto): Add tty parameter. Pass it on to calccost().
21679 Use emacs_tputs() instead of tputs().
21680
21681 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21682 tputs().
21683 (current_tty): New variable, for cmputc().
21684 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21685
21686 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21687 (internal_condition_case, internal_condition_case_1)
21688 (internal_condition_case_2): Don't abort when x_catching_errors.
21689
21690 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21691 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21692 prevent crashes caused by bogus longjmps in read_char.
21693
21694 * keymap.h (Fset_keymap_parent): Add EXFUN.
21695
21696 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21697 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21698 Remove redundant definition.
21699
21700 * macfns.c (x_set_mouse_color, x_make_gc):
21701 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21702
21703 * w32term.c (x_free_frame_resources):
21704 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21705 (w32_initialize): Use the accessor macros for terminal characteristics.
21706
21707 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21708 Use the accessor macros for terminal characteristics.
21709 * msdos.c (internal_terminal_init): Use the accessor macros for
21710 terminal characteristics.
21711 (ScreenVisualBell, internal_terminal_init):
21712 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21713
21714 * termopts.h (no_redraw_on_reenter): Declare.
21715
21716 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21717 (mark_terminals, mark_ttys): Declare.
21718 (Fgarbage_collect): Call them.
21719 (mark_object): Mark buried_buffer_list.
21720
21721 * prefix-args.c: Include stdlib.h for exit.
21722
21723 * syssignal.h: Add comment.
21724
21725 * indent.c: Include stdio.h.
21726
21727 * window.h (Vinitial_window_system): Declare.
21728 (Vwindow_system): Delete declaration.
21729
21730 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21731
21732 * image.c (lookup_image): Don't initialize `c' until the xasserts
21733 have been run.
21734
21735 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21736 FRAME_FOREGROUND_PIXEL.
21737
21738 * print.c (print_preprocess): Don't lose print_depth levels while
21739 iterating.
21740
21741 * widget.c (update_from_various_frame_slots):
21742 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21743
21744 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21745 frames.
21746 (window_internal_height): Remove bogus make_number call.
21747 (init_window_once): Call make_terminal_frame with two zero parameters.
21748
21749 * fileio.c (Fread_file_name): Update comment.
21750
21751 * callint.c (Fcall_interactively):
21752 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21753 Make sure it is correctly unwound.
21754
21755 * xsmfns.c (x_session_close): New function.
21756
21757 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21758 Delete declarations.
21759
21760 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21761 (x_output): Remove background_pixel and foreground_pixel fields.
21762 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21763 (x_delete_device, x_session_close): Declare.
21764
21765 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21766 (read_filtered_event): Call `read_char' with a local
21767 `wrong_kboard_jmpbuf'.
21768
21769 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21770 Don't call single_kboard_state. Use FRAME_RIF.
21771
21772 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21773 systems.
21774
21775 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21776 (Fframe_with_environment, Fset_input_meta_mode)
21777 (Fset_quit_char): EXFUN.
21778 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21779 (init_sys_modes, reset_sys_modes): Update prototypes.
21780 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21781
21782 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21783 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21784 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21785 Delete declarations.
21786 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21787 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21788 New declarations.
21789
21790 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21791 already does that during init_display(). Call syms_of_keymap
21792 before syms_of_keyboard. Call `syms_of_terminal'.
21793 Call set_initial_environment, not set_process_environment.
21794 (shut_down_emacs): Call reset_all_sys_modes() instead of
21795 reset_sys_modes().
21796
21797 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21798 (internal_resolve_face_name, resolve_face_name_error): New functions.
21799 (resolve_face_name): Protect against loops and errors thrown by Fget.
21800 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21801 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21802
21803 * scroll.c: Replace CURTTY() with local variables throughout the
21804 file (where applicable).
21805 (calculate_scrolling, calculate_direct_scrolling)
21806 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21807 characteristics.
21808
21809 * keymap.c (Vfunction_key_map): Remove.
21810 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21811 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21812 (Vkey_translation_map): Remove.
21813 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21814 (Fdescribe_buffer_bindings)
21815 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21816 Update for terminal-local key-translation-map.
21817
21818 * Makefile.in (callproc.o): Update dependencies.
21819 (lisp, shortlisp): Add termdev.elc.
21820 (obj): Add terminal.o.
21821 (terminal.o): Add dependencies.
21822 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21823 (data.o, fns.o): Add termhooks.h dependency.
21824 (SOME_MACHINE_LISP): Add dnd.elc.
21825 (minibuf.o): Fix typo.
21826 Update dependencies.
21827
21828 * data.c (do_symval_forwarding, store_symval_forwarding)
21829 (find_symbol_value): Use the selected frame's keyboard, not
21830 current_kboard.
21831
21832 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21833 Vwindow_system.
21834
21835 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21836 Fmenu_bar_open.
21837 (syms_of_xmenu): Update defsubr.
21838 (mouse_position_for_popup, Fx_popup_menu)
21839 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21840 (set_frame_menubar, free_frame_menubar)
b97439ce 21841 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21842 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21843 an X frame.
21844
21845 * xselect.c (x_own_selection): Abort if not an X frame.
21846 (some_frame_on_display): Check if it is an X frame.
21847 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21848
21849 * coding.c: Include frame.h and termhooks.h.
21850 (terminal_coding, keyboard_coding): Delete.
21851 (Fset_terminal_coding_system_internal)
21852 (Fset_keyboard_coding_system_internal)
21853 (Fkeyboard_coding_system)
21854 (Fterminal_coding_system): Add a terminal parameter.
21855 Get terminal_coding from the terminal.
21856 (init_coding_once): Don't call setup_coding_system here.
21857
21858 * dispextern.h (set_scroll_region, turn_off_insert)
21859 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21860 (tty_clear_end_of_line, tty_setup_colors)
21861 (delete_tty, updating_frame)
21862 (produce_special_glyphs, produce_glyphs, write_glyphs)
21863 (insert_glyphs): Remove.
21864 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21865 (tty_turn_off_highlight, get_tty_size): Add declaration.
21866 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21867
21868 * frame.h (enum output_method): Add output_initial.
21869 (struct x_output): Delete.
21870 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21871 Access foreground_pixel and background_pixel directly from the frame.
21872 (tty_display): Delete.
21873 (struct frame): Add buried_buffer_list, foreground_pixel,
21874 background_pixel and terminal. Delete kboard.
21875 (union output_data): Add tty.
21876 (FRAME_KBOARD): Get the kboard from the terminal.
21877 (FRAME_INITIAL_P): New macro.
21878 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21879 (Qterm_environment_variable, Qdisplay_environment_variable)
21880 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21881 New declarations.
21882
21883 * termchar.h (tty_output, tty_display_info): New structures.
21884 (tty_list): Declare.
21885 (FRAME_TTY, CURTTY): New macros.
21886 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21887 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21888 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21889 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21890
21891 * callproc.c: Include frame.h and termhooks.h, for terminal
21892 parameters.
21893 (add_env): New function.
21894 (child_setup): Use it.
21895 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21896 (getenv_internal): Fix get_terminal_param call.
21897 (Fgetenv_internal, egetenv): Update doc.
21898 (syms_of_callproc): Initialize Vprocess_environment to nil.
21899 Register and initialize them. Remove obsolete defvars. Update doc
21900 strings.
21901 (child_setup): Handle Vlocal_environment_variables.
21902 (getenv_internal): Add terminal parameter.
21903 Handle Vlocal_environment_variables.
21904 (Fgetenv_internal): Add terminal parameter.
21905 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21906 environment in a frame (not terminal) parameter. Update doc strings.
21907 (set_initial_environment): Rename from set_global_environment.
21908 Store Emacs environment in initial frame parameter.
21909
21910 * xdisp.c (redisplay_internal): Update references to
21911 `previous_terminal_frame'.
21912 (display_mode_line, Fformat_mode_line): Replace calls to
21913 `push_frame_kboard' with `push_kboard'.
21914 (get_glyph_string_clip_rects): Add extra parentheses and
21915 braces to prevent compiler warnings.
21916 (calc_pixel_width_or_height): Add xassert to check that the
21917 frame is alive. Don't call `lookup_image' on a termcap frame.
21918 (message2_nolog, message3_nolog, redisplay_internal)
21919 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21920 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21921 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21922 (Fx_display_pixel_width, Fx_display_pixel_height)
21923 (Fx_display_planes, Fx_display_color_cells)
21924 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21925 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21926 (Fx_display_backing_store, Fx_display_visual_class)
21927 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21928 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21929
21930 * xfns.c (x_set_foreground_color x_set_background_color)
21931 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21932 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21933 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21934 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21935 terminal that is being deleted.
21936 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21937 frame parameter, and make sure it overrides any user-supplied setting.
21938 (Fx_close_connection, Fx_synchronize): Unify argument names with
21939 the rest of the DEFUNs.
21940
21941 * dispnew.c (Fsend_string_to_terminal): Update call to
21942 `get_tty_terminal'.
21943 (Fredraw_frame, Fsend_string_to_terminal)
21944 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21945 FRAME_TERMCAP_P and FRAME_TTY.
21946 (window_change_signal): Don't believe width/height values that are
21947 impossibly small.
21948 (Vinitial_window_system): Rename from Vwindow_system.
21949 (termscript, Wcm, rif): Delete.
21950
21951 * termhooks.h (struct terminal): New struct containing the
21952 previously global text display hooks and new members NAME,
21953 DELETED and PARAM_ALIST.
21954 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21955 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21956 (FRAME_RIF): New macros.
21957 (get_terminal_param, get_device): New declarations.
21958 (termscript): Delete declaration.
21959
21960 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21961 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21962 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21963 FRAME_FOREGROUND_PIXEL.
21964 (x_fully_uncatch_errors): Disable definition.
21965 (x_scroll_bar_expose): Fix reference to foreground pixel.
21966 (XTread_socket): Disable loop on all X displays.
21967 (x_delete_terminal): Don't set terminal->deleted and let
21968 delete_terminal delete the frames on the terminal.
21969 (x_delete_display): Doc update to reflect changes in
21970 delete_terminal.
21971 (x_display_info) <terminal>: Move member earlier in the struct.
21972 (deleting_tty): Remove old variable.
21973 (Fsuspend_tty): Call clear_tty_hooks.
21974 (Fresume_tty, init_tty): Call set_tty_hooks.
21975 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21976 errors on X frames.
21977 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21978 (handle_one_xevent): Initialize `f' to NULL.
21979 (x_delete_terminal, x_create_terminal): New functions.
21980 (XTset_terminal_modes, XTreset_terminal_modes)
21981 (XTread_socket, x_connection_closed, x_term_init)
21982 (x_term_init, x_delete_display): Add terminal parameter.
21983 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21984 X connections.
21985
21986 * frame.c: Include termchar.h.
21987 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21988 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21989 (Qdisplay_environment_variable): New vars.
21990 (Fframep): Deal with output_initial.
21991 (Fframe-live-p): Doc fix.
21992 (Fwindow-system): New function.
21993 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21994 (make_terminal_frame): Don't create frames on a terminal that is
21995 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21996 (store_frame_param): Check for found_for_frame before calling XFRAME.
21997 (Fmake_terminal_frame): Handle NULL tty names correctly.
21998 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21999 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22000 frames to refer to a deleted frame in their 'environment parameter.
22001 (Fframe_with_environment): New function.
22002 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22003 (get_future_frame_param): New function.
22004 (Fmake_terminal_frame): Use it.
22005 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22006
22007 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22008 * sysdep.c (reset_sys_modes): Update for renames.
22009
22010 * keyboard.c (tty_read_avail_input): New function.
22011 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22012 (syms_of_keyboard): Defsubr them.
22013 (Fset_input_meta_mode, Fset_quit_char): New functions.
22014 (Fset_input_mode): Split to above functions.
22015 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22016 parameter. Use it in call to `read_char'.
22017 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22018 Set wrong_kboard_jmpbuf correctly in recursive calls.
22019 Use current_kboard to access Vkeyboard_translate_table.
22020 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22021 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22022 Update longjmp invocations. Remember the original current_kboard,
22023 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22024 changes it. Comment out unnecessary calls to
22025 `record_single_kboard_state' and `any_kboard_state'.
22026 Update recursive calls.
22027 (wrong_kboard_jmpbuf): Remove global variable.
22028 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22029 Handle deleted interrupted_kboards correctly; that is a legal
22030 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22031 and read_char calls. Abort if interrupted_kboard died in read_char.
22032 (any_kboard_state, single_kboard_state)
22033 (push_frame_kboard): Remove function.
22034 (pop_kboard): Switch out of single_kboard mode if the kboard has
22035 been deleted. Remove unused variable. Help debugging by not
22036 changing current_kboard unnecessarily. Set current_kboard to the
22037 kboard of the selected frame when the stored kboard object has
22038 been deleted before pop_kboard.
22039 (temporarily_switch_to_single_kboard): Change first parameter to a
22040 frame pointer. Throw an error when caller wants to change kboards
22041 while in single_kboard mode. Don't push_kboard if we weren't in
22042 single kboard state. Don't pop_kboard if we popped into any
22043 kboard state.
22044 (restore_kboard_configuration): Abort if pop_kboard changed the
22045 kboard in single_kboard mode. Call pop_kboard only after setting
22046 up single_kboard mode.
22047 (Frecursive_edit): Switch to single_kboard mode only in nested
22048 command loops.
22049 (cmd_error, command_loop, command_loop_1, timer_check):
22050 Comment out unnecessary call to `any_kboard_state' and
22051 `record_single_kboard_state'.
22052 (delete_kboard): Exit single_kboard mode if we have just deleted
22053 that kboard. Use FRAME_KBOARD.
22054 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22055 `fatal_error_signal'.
22056 (record_single_kboard_state): Don't push_kboard if we weren't in
22057 single kboard state. Don't pop_kboard if we popped into any
22058 kboard state.
22059 (push_frame_kboard): Rename to push_kboard.
22060 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22061 (read_avail_input): Read input from all terminals.
22062 (mark_kboards): Also mark Vkeyboard_translate_table.
22063 (kbd_buffer_store_event_hold): Simplify condition.
22064 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22065 (Vkeyboard_translate_table): Move to struct kboard.
22066 (init_kboard): Initialize Vkeyboard_translate_table.
22067 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22068 Vkeyboard_translate_table. Update doc strings. Update docs of
22069 local-function-key-map and function-key-map.
22070
22071 * terminal.c: New file.
22072
22073 * term.c: Include errno.h.
22074 (Vring_bell_function, device_list, initial_device)
22075 (next_device_id, ring_bell, update_begin, update_end)
22076 (set_terminal_window, cursor_to, raw_cursor_to)
22077 (clear_to_end, clear_frame, clear_end_of_line)
22078 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22079 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22080 (syms_of_term): Move their initialization to terminal.c.
22081 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22082 (Ftty_display_color_cells)
22083 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22084 (clear_tty_hooks, set_tty_hooks)
22085 (init_tty, maybe_fatal): New functions.
22086 (Ftty_type): Return nil if terminal is not on a tty instead of
22087 throwing an error. Doc update.
22088 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22089 Doc update. Initialize new subrs and variables.
22090 (delete_tty): Use terminal->deleted.
22091 (tty_set_terminal_modes): Rename from set_terminal_modes.
22092 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22093 (set_scroll_region): Rename to `tty_set_scroll_region'.
22094 (turn_on_insert): Rename to `tty_turn_on_insert'.
22095 (turn_off_insert): Rename to `tty_turn_off_insert'.
22096 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22097 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22098 (toggle_highligh): Rename to `tty_toggle_highlight'.
22099 (background_highlight): Rename to `tty_background_highlight'.
22100 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22101 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22102 (tty_set_scroll_region, tty_background_highlight)
22103 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22104 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22105 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22106 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22107 Add static modifier.
22108 (tty_reset_terminal_modes, tty_set_terminal_window)
22109 (tty_set_scroll_region, tty_background_highlight)
22110 (tty_highlight_if_desired, tty_cursor_to)
22111 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22112 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22113 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22114 renames.
22115
221162007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22117
22118 * keyboard.c: Qrtl is new.
22119 (parse_tool_bar_item): Handle :rtl keyword.
22120 (syms_of_keyboard): Intern :rtl keyword.
22121
22122 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22123
22124 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22125 so no Lisp code is executed.
22126 (file_for_image, find_rtl_image): New functions.
22127 (xg_get_image_for_pixmap): Use file_for_image.
22128 (update_frame_tool_bar): If direction is RTL, use RTL image if
22129 defined. Use Gtk stock images if defined.
22130
221312007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22132
22133 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22134 for nonexistent or zero-width glyph in composition glyph.
22135
221362007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22137
22138 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22139
22140 * xdisp.c (Finvisible_p): New function.
22141 (syms_of_xdisp): defsubr it.
22142
221432007-08-24 Juanma Barranquero <lekktu@gmail.com>
22144
22145 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22146 Doc fixes.
22147
221482007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22149
22150 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22151
221522007-08-24 Martin Rudalics <rudalics@gmx.at>
22153
22154 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22155 whether decoding has modified buffer contents.
22156
221572007-08-24 Jason Rumney <jasonr@gnu.org>
22158
22159 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22160 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22161 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22162 (init_svg_functions) [HAVE_NTGUI]: New function.
22163 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22164 (svg_load_image): Use them.
22165 (svg_load_image) [HAVE_NTGUI]: Implement background.
22166
221672007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22168
22169 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22170 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22171 (LIBX): Remove @RSVG_LIBS@.
22172 (LIBES): Add $(RSVG_LIBS).
22173
22174 * image.c (svg_load_image): Blend with specified background if exists.
22175 Use IMAGE_BACKGROUND. Add Mac OS Support.
22176
22177 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22178 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22179 Remove macros.
22180 [MAC_OSX] (socket_callback): Do nothing.
22181 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22182 ReceiveNextEvent.
22183 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22184 socket_callback.
22185 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22186
221872007-08-22 Glenn Morris <rgm@gnu.org>
22188
22189 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22190
221912007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22192
22193 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22194
22195 * image.c: Add support for SVG images. Some additional comments
22196 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22197 (svg_image_p): New function to test for SVG image.
22198 (svg_load): New function to load SVG image.
22199 (svg_load_image): New function, helper for svg_load.
22200 (Qsvg): New Lisp_object.
22201 (svg_keyword_index): New enum.
22202 (svg_format): New static `image_keyword' struct.
22203 (svg_type): New static `image_type' struct.
22204 (librsvg/rsvg.h): Include it.
22205
222062007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22207
22208 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22209
222102007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22211
22212 * lread.c (Qold_style_backquotes): New var.
22213 (syms_of_lread): Init and staticpro it.
22214 (load_warn_old_style_backquotes): New fun.
22215 (Fload): Use them to warn about old style backquotes.
22216 (end_of_file_error, Fload): Remove unused vars.
22217
22218 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22219
22220 * lread.c (Vold_style_backquotes): New var.
22221 (syms_of_lread): Init and export it to Elisp.
22222 (read1): Set it when we find an old-style (back)quote.
22223
222242007-08-22 Jason Rumney <jasonr@gnu.org>
22225
22226 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22227
222282007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22229
22230 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22231
222322007-08-19 Richard Stallman <rms@gnu.org>
22233
22234 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22235
222362007-08-19 Andreas Schwab <schwab@suse.de>
22237
22238 * alloc.c (pure): Round PURESIZE up.
22239
222402007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22241
22242 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22243 active frame.
22244
222452007-08-16 Richard Stallman <rms@gnu.org>
22246
22247 * eval.c (Fcommandp): Add parens to clarify.
22248
22249 * minibuf.c (Fall_completions): Use enum for type of table.
22250
22251 * emacs.c (USAGE2): Improve text.
22252
222532007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22254
22255 * term.c (tty_default_color_capabilities): Declare static
22256 variables in file scope, to avoid HPUX compiler problem.
22257
222582007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22259
22260 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22261 to gtk_toolbar_insert.
22262
222632007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22264
22265 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22266
22267 * insdel.c (reset_var_on_error): New fun.
22268 (signal_before_change, signal_after_change):
22269 Use it to reset (after|before)-change-functions to nil in case of error.
22270 Bind inhibit-modification-hooks to t.
22271 Don't bind (after|before)-change-functions to nil while they run.
22272
222732007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22274
22275 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22276 filling pixmap with stippled background.
22277
222782007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22279
22280 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22281 Don't use invisible frame as parent window for repositioning.
22282
222832007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22284
22285 * print.c (new_backquote_output): Rename from old_backquote_output.
22286 (print): Inverse its logic (according to its name) so as to match the
22287 behavior of new_backquote_flag in lread.c.
22288
222892007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22290
22291 * gmalloc.c (posix_memalign): New function.
22292
22293 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22294 ActivateControl/DeactivateControl here.
22295 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22296 frame-notice-user-settings is non-nil.
22297 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22298 for kEventParamFMFontStyle.
22299 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22300 mac_pass_command_to_system and mac_pass_control_to_system here.
22301 (XTread_socket): Call ActivateControl/DeactivateControl here.
22302 (XTread_socket) [TARGET_API_MAC_CARBON]:
22303 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22304 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22305 for window repositioning.
22306
223072007-08-08 Glenn Morris <rgm@gnu.org>
22308
22309 * Replace `iff' in doc-strings and comments.
22310
223112007-08-07 Chong Yidong <cyd@stupidchicken.com>
22312
22313 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22314
223152007-08-07 Martin Rudalics <rudalics@gmx.at>
22316
22317 * fileio.c (Finsert_file_contents): Run format-decode and
22318 after_insert_file_functions on entire buffer when REPLACE is
22319 non-nil and inhibit modification_hooks and point_motion_hooks.
22320 For consistency, run after_insert_file_functions iff something
22321 got inserted. Move signal_after_change and update_compositions
22322 after code running after_insert_file_functions. Make sure that
22323 undo_list doesn't record intermediate steps of the decoding process.
22324
223252007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22326
22327 * emacs.c (main)
22328 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22329 Call malloc_enable_thread on interactive startup.
22330
22331 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22332 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22333 [USE_PTHREAD]: Conditionalize with it.
22334 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22335 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22336 New functions.
22337
223382007-08-06 Chong Yidong <cyd@stupidchicken.com>
22339
22340 * xdisp.c (redisplay_window): When restoring original buffer
22341 position, make sure it is still valid.
22342
22343 * image.c (png_load): Ignore png-supplied background color.
22344
223452007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22346
22347 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22348 Use kCFAbsoluteTimeIntervalSince1970.
22349
22350 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22351 New variable.
22352 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22353 event loop should be quit.
22354 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22355 Quit dialog event loop if quit_dialog_event_loop is set.
22356
22357 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22358 (Selection): New typedef. Use instead of ScrapRef.
22359 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22360 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22361 (mac_clear_selection): Rename from clear_scrap.
22362 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22363 scrap_has_target_type. All uses changed.
22364 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22365 (mac_selection_has_target_p): New functions.
22366 (mac_put_selection_value): Rename from put_scrap_string.
22367 (mac_get_selection_value): Rename from get_scrap_string.
22368 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22369 (put_scrap_private_timestamp, scrap_has_target_type)
22370 (get_scrap_private_timestamp): Remove functions.
22371 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22372 (x_own_selection, x_get_local_selection):
22373 Use mac_valid_selection_value_p.
22374 (x_own_selection): Don't use put_scrap_private_timestamp.
22375 Record OWNERSHIP-INFO into Vselection_alist instead.
22376 (x_get_local_selection): Don't check type if request is local.
22377 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22378 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22379
223802007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22381
22382 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22383 add comment explaining why.
22384
223852007-08-03 Richard Stallman <rms@gnu.org>
22386
22387 * fileio.c (Fvisited_file_modtime): Use make_time.
22388
223892007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22390
22391 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22392 build.
22393
223942007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22395
22396 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22397
223982007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22399
22400 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22401
224022007-07-30 Richard Stallman <rms@gnu.org>
22403
22404 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22405
224062007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22407
22408 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22409
224102007-07-28 Nick Roberts <nickrob@snap.net.nz>
22411
22412 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22413 remote default-directory.
22414
22415 * buffer.c (mode-line-format): Update doc string.
22416
224172007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22418
22419 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22420 scroll bar gap.
22421 (x_scroll_bar_create): Set bar->fringe_extended_p.
22422 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22423 on frame edge. Check fringe background extension. Don't clear
22424 extended fringe background area.
22425
22426 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22427 (w32_fill_area): Enclose multiple statements with do ... while (0).
22428
22429 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22430 Extend fringe background to scroll bar gap.
22431 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22432 Set bar->fringe_extended_p.
22433 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22434 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22435 background extension. Don't clear extended fringe background area.
22436
22437 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22438 New member fringe_extended_p.
22439
224402007-07-25 Glenn Morris <rgm@gnu.org>
22441
22442 * Relicense all FSF files to GPLv3 or later.
22443
22444 * COPYING: Switch to GPLv3.
22445
224462007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22447
22448 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22449
22450 * data.c (Finteractive_form): Check for the presence of an
22451 `interactive-form' symbol property more thoroughly.
22452
22453 * data.c (Finteractive_form): Use an `interactive-form' property if
22454 present, analogous to the function-documentation property.
22455
224562007-07-24 Jason Rumney <jasonr@gnu.org>
22457
22458 * w32fns.c (x_real_positions): Get real position from OS instead of
22459 calculating it.
22460
224612007-07-23 Jason Rumney <jasonr@gnu.org>
22462
22463 * filelock.c (current_lock_owner): Allow for @ sign in username.
22464
224652007-07-22 Nick Roberts <nickrob@snap.net.nz>
22466
22467 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22468 remote default-directory.
22469
22470 * buffer.c (mode-line-format): Describe above case in doc string.
22471
224722007-07-20 Eli Zaretskii <eliz@gnu.org>
22473
22474 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22475 Define if not defined.
22476
224772007-07-18 Jason Rumney <jasonr@gnu.org>
22478
22479 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22480
224812007-07-18 Richard Stallman <rms@gnu.org>
22482
22483 * data.c (Fsetq_default): Doc fix.
22484
22485 * eval.c (Fsetq): Doc fix.
22486
224872007-07-18 Juanma Barranquero <lekktu@gmail.com>
22488
22489 * coding.c (Ffind_operation_coding_system):
22490 * eval.c (For, Fand): Doc fixes.
22491 Reported by Johan Bockgård.
22492
224932007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22494
22495 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22496
22497 * xterm.h: Declare x_ewmh_activate_frame.
22498
22499 * xterm.c (x_ewmh_activate_frame): New function.
22500 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22501
225022007-07-17 Martin Rudalics <rudalics@gmx.at>
22503
22504 * window.c (Fdisplay_buffer): If largest or LRU window is the
22505 only window, split it even if it is not eligible for splitting.
22506 This restores the original behavior broken by the 2007-07-15
22507 change.
22508
225092007-07-17 Glenn Morris <rgm@gnu.org>
22510
22511 * abbrev.c (abbrev_check_chars): New function.
22512 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22513 Call abbrev_check_chars to check abbrev characters are word
22514 constituents. Doc fix.
22515
225162007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22517
22518 * process.c (Fstart_process, Fmake_network_process)
22519 (read_process_output): Fix up last changes.
22520
225212007-07-16 Eli Zaretskii <eliz@gnu.org>
22522
22523 * makefile.w32-in (clean): Don't delete *~.
22524
225252007-07-16 Andreas Schwab <schwab@suse.de>
22526
22527 * window.c (Fdisplay_buffer): Use NILP.
22528 (Fset_window_scroll_bars): Likewise.
22529
225302007-07-15 Martin Rudalics <rudalics@gmx.at>
22531
22532 * window.c (window_min_size_2): New function.
22533 (window_min_size_1, size_window, Fdisplay_buffer)
22534 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22535 windows without mode- or header-lines when window-min-height is
22536 too small.
22537 (size_window): Reset nodelete_p after testing it, following an
22538 earlier note by Kim F. Storm.
22539 (display_buffer): Do not set split_height_threshold to twice the
22540 value of window_min_height to avoid changing the value of a
22541 customizable variable. Rather explicitly check whether the
22542 height of the window that shall be splitted is at least as large
22543 as split_height_threshold.
22544 (Fwindow_full_width_p): New defun.
22545 (syms_of_window): Defsubr it.
22546
22547 * window.h: Add EXFUN for Fwindow_full_width_p.
22548
225492007-07-14 Jason Rumney <jasonr@gnu.org>
22550
22551 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22552
225532007-07-14 Richard Stallman <rms@gnu.org>
22554
22555 * eval.c (maybe_call_debugger): New function.
22556 (find_handler_clause): Use maybe_call_debugger.
22557 Call it when the handler says `debug'.
22558 Eliminate DEBUGGER_VALUE_PTR.
22559 (Fsignal): Eliminate debugger_value.
22560 (Qdebug): New variable.
22561 (syms_of_eval): Initialize it.
22562
225632007-07-14 Juanma Barranquero <lekktu@gmail.com>
22564
22565 * eval.c (Fprogn):
22566 * keyboard.c (Ftrack_mouse):
22567 * print.c (Fwith_output_to_temp_buffer):
22568 * window.c (Fsave_window_excursion): Doc fix.
22569
225702007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22571
22572 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22573
225742007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22575
22576 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22577 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22578 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22579 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22580 Remove unused encoding_carryover.
22581 * process.c: Adjust all functions accordingly.
22582
225832007-07-12 Richard Stallman <rms@gnu.org>
22584
22585 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22586
225872007-07-11 Jason Rumney <jasonr@gnu.org>
22588
22589 * makefile.w32-in (LIBS): Include OLE32.
22590
22591 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22592 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22593
225942007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22595
22596 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22597 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22598 from a Lisp_Object into a bare pointer.
22599 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22600 Adjust the code correspondingly.
22601
22602 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22603
22604 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22605 (term_show_mouse_face): Remove unused var `j'.
22606 (handle_one_term_event): Remove unused vars `i' and `j'.
22607 Don't cast return value of ttyname since it's not necessary.
22608
226092007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22610
22611 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22612 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22613
22614 * fns.c (map_char_table): Use an array of int for `indices' rather than
22615 an array of Lisp_Objects (which are only ever integers anyway).
22616 (Fmap_char_table): Update caller.
22617 * lisp.h: Update prototype.
22618 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22619 * fontset.c (Ffontset_info):
22620 * casetab.c (set_case_table): Update callers.
22621
22622 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22623
22624 * keymap.c (struct accessible_keymaps_data)
22625 (struct where_is_internal_data): New structures.
22626 (accessible_keymaps_1, where_is_internal_1): Use them to change
22627 interface to adhere to the one used by map_keymap.
22628 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22629 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22630
22631 * keymap.h (map_keymap_function_t): More informative prototype.
22632
226332007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22634
22635 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22636 (looking_at_1): Don't change search_regs and last_thing_searched
22637 if `inhibit-changing-match-data' is non-nil.
22638 (string_match_1, search_buffer, set_search_regs): Likewise.
22639 (syms_of_search): Add Lisp level definition for
22640 `inhibit-changing-match-data' and set it to nil.
22641 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22642 start and end of the match, instead of using values in search_regs.
22643
226442007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22645
22646 * minibuf.c (Fcompleting_read): New value `confirm-only'
22647 for `require-match'.
22648
226492007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22650
22651 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22652 part of the 2007-06-27 change to syms_of_fileio.
22653
226542007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22655
22656 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22657 Check WINDOWP before using XWINDOW. Consolidate return statements.
22658
226592007-06-27 Richard Stallman <rms@gnu.org>
22660
22661 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22662
226632007-06-27 Juanma Barranquero <lekktu@gmail.com>
22664
22665 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22666
226672007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22668
22669 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22670 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22671 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22672 (_free_internal, memalign): Use them.
22673 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22674 Initialize to PTHREAD_MUTEX_INITIALIZER.
22675 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22676 (morecore_nolock): Rename from morecore. All uses changed.
22677 Use only nolock versions of internal allocation functions.
22678 (_malloc_internal_nolock, _realloc_internal_nolock)
22679 (_free_internal_nolock): New functions created from
22680 _malloc_internal, _realloc_internal, and _free_internal.
22681 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22682 Copy hook value to automatic variable before its use.
22683 (memalign): Copy hook value to automatic variable before its use.
22684
226852007-06-26 Kenichi Handa <handa@m17n.org>
22686
22687 * coding.c (Ffind_operation_coding_system): Docstring improved.
22688 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22689
226902007-06-25 David Kastrup <dak@gnu.org>
22691
22692 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22693 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22694 cater for additional parameter.
22695
22696 * keymap.h: Adjust number of parameters to `current-active-maps'.
22697
22698 * doc.c (Fsubstitute_command_keys): Adjust call of
22699 `current-active-maps'.
22700
227012007-06-25 David Kastrup <dak@gnu.org>
22702
22703 * callint.c (Fcall_interactively): Make the parsing of interactive
22704 specs somewhat more readable.
22705
227062007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22707
22708 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22709 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22710 if extended background has already been filled.
22711
227122007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22713
22714 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22715 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22716
22717 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22718 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22719 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22720 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22721 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22722 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22723 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22724 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22725 Run timers during dialog popup.
22726 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22727
227282007-06-21 Jason Rumney <jasonr@gnu.org>
22729
22730 * image.c (convert_mono_to_color_image): Swap fore and background.
22731
227322007-06-20 Jason Rumney <jasonr@gnu.org>
22733
22734 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22735 (w32_free_bdf_font): Unmap memory not handle.
22736
227372007-06-20 Sam Steingold <sds@gnu.org>
22738
22739 * gmalloc.c (__morecore): Fix the declaration to comply with the
22740 definition.
22741
227422007-06-20 Juanma Barranquero <lekktu@gmail.com>
22743
22744 * w32term.c (w32_delete_display): Remove leftover declaration.
22745 (w32_define_cursor, w32_initialize): Make static.
22746
22747 * w32.c (_wsa_errlist): Fix typo in error message.
22748 (init_environment): Ignore any environment variable from the
22749 registry having a null value.
22750
227512007-06-20 Glenn Morris <rgm@gnu.org>
22752
22753 * Makefile.in (LIBGIF): Default to -lgif.
22754
227552007-06-17 Jason Rumney <jasonr@gnu.org>
22756
22757 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22758 unicode strings.
22759
227602007-06-16 Juanma Barranquero <lekktu@gmail.com>
22761
22762 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22763 Fix typo in docstring.
22764
227652007-06-16 Eli Zaretskii <eliz@gnu.org>
22766
22767 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22768 and their keybindings.
22769
227702007-06-15 Chong Yidong <cyd@stupidchicken.com>
22771
22772 * composite.c (update_compositions): Fix last fix.
22773
227742007-06-14 Jason Rumney <jasonr@gnu.org>
22775
22776 * w32.c (get_process_times_fn): New function pointer.
22777 (globals_of_w32): Intialize it if present in kernel32.dll.
22778 (w32_get_internal_run_time): New function.
22779
22780 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22781
227822007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22783
22784 * composite.c (update_compositions): Check the validness of
22785 compositions.
22786
227872007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22788
22789 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22790 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22791
22792 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22793 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22794
22795 * macgui.h (USE_MAC_TOOLBAR): New define.
22796
22797 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22798 Return immediately unless popup is activated.
22799
22800 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22801 background to scroll bar gap.
22802 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22803 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22804 scroll bars on frame edge. Check fringe background extension.
22805 Don't clear extended fringe background area.
22806 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22807 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22808 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22809 [USE_MAC_TOOLBAR]: New macros.
22810 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22811 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22812 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22813 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22814 [USE_MAC_TOOLBAR]: New functions.
22815 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22816 manually if previous repositioning has failed.
22817 (mac_handle_keyboard_event): Use precomputed event kind.
22818 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22819 as tool bar item click. Handle mouse movement over tool bar items.
22820
22821 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22822 toolbar_win_gravity.
22823 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22824 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22825 Add externs.
22826
22827 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22828 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22829
228302007-06-14 Chong Yidong <cyd@stupidchicken.com>
22831
22832 * image.c (search_image_cache): Remove unused variable.
22833
228342007-06-13 Chong Yidong <cyd@stupidchicken.com>
22835
22836 * xfns.c, xmenu.c: Link to xaw3d if available.
22837
228382007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22839
22840 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22841 frame_foreground and frame_background.
22842
22843 * image.c (lookup_image): Save frame foreground and background colors.
22844 (search_image_cache): Check if saved and current frame colors match.
22845
228462007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22847
22848 * regex.c (regex_compile): Remove the `regnum' counter.
22849 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22850
228512007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22852
22853 * term.c: Include intervals.h to declare Fget_text_property.
22854
228552007-06-10 Jason Rumney <jasonr@gnu.org>
22856
22857 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22858
228592007-06-08 Juanma Barranquero <lekktu@gmail.com>
22860
22861 * callint.c (Fcall_interactively):
22862 * editfns.c (Fdelete_and_extract_region):
22863 * fileio.c (Fread_file_name):
22864 * fns.c (Fmapconcat):
22865 * keyboard.c (cmd_error_internal):
22866 * keymap.c (Fkey_description):
22867 * lread.c (openp):
22868 * minibuf.c (read_minibuf):
22869 * search.c (wordify):
22870 * sunfns.c (sel_read):
22871 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22872 * xfns.c (x_default_scroll_bar_color_parameter):
22873 * xmenu.c (menu_help_callback):
22874 * xselect.c (Fx_get_atom_name):
22875 * xterm.c (x_term_init): Use empty_unibyte_string.
22876
228772007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22878
22879 * alloc.c (init_strings): Initialize canonical empty strings.
22880 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22881 canonical empty string when the requested size is 0.
22882
22883 * emacs.c (empty_unibyte_string): Rename from empty_string.
22884 (empty_multibyte_string): New canonical empty string.
22885 (syms_of_emacs): Don't initialize empty_string.
22886
22887 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22888 string, if appropriate.
22889 (empty_unibyte_string, empty_multibyte_string): New externs.
22890 (empty_string): Remove extern.
22891
22892 * lread.c (syms_of_lread): Use empty_unibyte_string.
22893
228942007-06-07 Jason Rumney <jasonr@gnu.org>
22895
22896 * s/ms-w32.h: Don't define HAVE_TZNAME.
22897
22898 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22899
229002007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22901
22902 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22903
22904 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22905 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22906
22907 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22908 Don't call next handler.
22909 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22910 Remove argument. Install handler to application.
22911 (set_frame_menubar): Don't change deep_p.
22912 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22913 FRAME_OUTER_TO_INNER_DIFF_Y.
22914 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22915 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22916 [HAVE_DIALOGS]: New macros.
22917 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22918 Use them.
22919 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22920
22921 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22922 init_service_handler. All callers changed. Return OSStatus value.
22923
22924 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22925 All callers changed so as not to call SetPortWindowPort.
22926 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22927 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22928 mac_draw_string_common.
22929 (mac_draw_image_string_qd): Likewise.
22930 (mac_draw_string_common): Use them. Add INLINE.
22931 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22932 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22933 GetGlobalMouse.
22934 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22935 and FRAME_OUTER_TO_INNER_DIFF_Y.
22936 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22937 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22938 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22939 repositioning window to mac_handle_window_event.
22940 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22941 saving window location to mac_handle_window_event
22942 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22943 (install_menu_target_item_handler): Remove argument in extern.
22944 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22945 Also accept command events.
22946 (do_keystroke): New function created from XTread_socket.
22947 (init_command_handler): Remove functions.
22948 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22949 and save window location by kEventWindowShowing and kEventWindowHiding
22950 handlers here. Don't call next handler for window state change and
22951 focus events.
22952 (mac_handle_application_event, mac_handle_keyboard_event)
22953 [TARGET_API_MAC_CARBON]: New functions.
22954 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22955 kEventWindowShowing and kEventWindowHiding events. Move installation
22956 of mouse, font, text input and menu target item handlers to
22957 install_application_handler.
22958 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22959 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22960 New function.
22961 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22962 Register it.
22963 (XTread_socket) [TARGET_API_MAC_CARBON]:
22964 Consolidate SendEventToEventTarget calls.
22965 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22966 Move application activation handler to mac_handle_application_event.
22967 Move keyboard handler to mac_handle_keyboard_event.
22968 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22969 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22970 init_command_handler. Call install_application_handler.
22971
22972 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22973 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22974
229752007-06-07 Glenn Morris <rgm@gnu.org>
22976
22977 * emacs.c (main): Use `emacs-copyright' in --version output.
22978
229792007-06-06 Chong Yidong <cyd@stupidchicken.com>
22980
22981 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22982
229832007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22984
22985 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22986
22987 * macgui.h: Replace WindowPtr with WindowRef.
22988
22989 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22990 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22991 Replace ControlHandle with ControlRef.
22992 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22993
22994 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22995 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22996 Replace ControlHandle with ControlRef.
22997 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22998 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22999
23000 * macterm.h (struct scroll_bar): Rename member control_handle_low
23001 and control_handle_high to control_ref_low and control_ref_high.
23002 All uses changed.
23003 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23004 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23005 respectively. All uses changed.
23006 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23007 (install_window_handler, remove_window_handler): Replace WindowPtr
23008 with WindowRef in externs.
23009
230102007-06-05 Juanma Barranquero <lekktu@gmail.com>
23011
23012 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23013
230142007-06-03 Nick Roberts <nickrob@snap.net.nz>
23015
23016 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23017
23018 * frame.c (Fmouse_position, Fmouse_pixel_position):
23019 Condition on HAVE_GPM too.
23020
23021 * term.c (term_mouse_highlight): Remove unused variables.
23022 (Fterm_open_connection): Set gpm_zerobased to 1.
23023 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23024 Use zero based co-ordinates.
23025 (handle_one_term_event): Report a drag as mouse movement too.
23026
23027 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23028
230292007-06-03 Chong Yidong <cyd@stupidchicken.com>
23030
23031 * image.c (search_image_cache): New function. Require background
23032 color match if background color is unspecified in the image spec.
23033 (uncache_image, lookup_image): Use it.
23034
230352007-06-01 Juanma Barranquero <lekktu@gmail.com>
23036
23037 * window.c (Fshrink_window): Reflow docstring.
23038
230392007-06-02 Chong Yidong <cyd@stupidchicken.com>
23040
23041 * Version 22.1 released.
23042
230432007-06-01 Richard Stallman <rms@gnu.org>
23044
23045 * xfns.c (x_encode_text): Add GCPRO.
23046
230472007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23048
23049 * xfns.c (x_set_name_internal): Save encoded name before
23050 x_encode_text in case string data is relocated.
23051
230522007-05-31 Richard Stallman <rms@gnu.org>
23053
23054 * buffer.c (syms_of_buffer): Doc fix.
23055
230562007-05-30 Nick Roberts <nickrob@snap.net.nz>
23057
23058 * sysdep.c (init_sys_modes): Add rather than replace with
23059 O_NONBLOCK.
23060
23061 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23062 term_mouse_moveto.
23063
23064 * termhooks.h (term_mouse_moveto): New extern.
23065
23066 * term.c (mouse_face_window): Rename...
23067 (Qmouse_face_window): ...to this.
23068 (term_show_mouse_face, term_clear_mouse_face)
23069 (term_mouse_highlight): Use Qmouse_face_window.
23070 (term_mouse_moveto): New function.
23071 (term_mouse_position): Make it work.
23072 (syms_of_term): Uncomment assignment to mouse_position_hook.
23073 Staticpro Qmouse_face_window.
23074
230752007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23076
23077 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23078 around current_column call.
23079
230802007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23081
23082 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23083 * xdisp.c (next_element_from_buffer):
23084 * window.c (delete_window):
23085 * term.c (term_mouse_highlight):
23086 * msdos.c (getdefdir):
23087 * macterm.c (mac_create_bitmap_from_bitmap_data)
23088 (init_font_name_table):
23089 * fns.c (Fsxhash):
23090 * data.c (Fmake_local_variable):
23091 * ccl.c (ccl_driver): Likewise.
23092
230932007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23094
23095 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23096 Call mac_wakeup_from_rne on window size change.
23097
230982007-05-25 Chong Yidong <cyd@stupidchicken.com>
23099
23100 * image.c (uncache_image): Fix typo.
23101
231022007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23103
23104 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23105
231062007-05-22 Richard Stallman <rms@gnu.org>
23107
23108 * xterm.c (x_connection_closed): Remove NO_RETURN.
23109
231102007-05-22 Martin Rudalics <rudalics@gmx.at>
23111
23112 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23113
231142007-05-21 Chong Yidong <cyd@stupidchicken.com>
23115
23116 * image.c (uncache_image): New function.
23117 (Fimage_refresh): New function.
23118
231192007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23120
23121 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23122
231232007-05-20 Nick Roberts <nickrob@snap.net.nz>
23124
23125 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23126 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23127
231282007-05-20 Nick Roberts <nickrob@snap.net.nz>
23129
23130 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23131 conditional on [HAVE_GPM_H].
23132
231332007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23134
23135 * syntax.c (skip_chars): Update syntax-table only after we checked that
23136 the new location is valid.
23137
231382007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23139
23140 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23141 mac_get_window_bounds.
23142
231432007-05-20 Nick Roberts <nickrob@snap.net.nz>
23144
23145 * Makefile.in (LIBGPM): Allow it to be set from configure.
23146 If set then link Emacs with it.
23147
23148 * config.in: Regenerate.
23149
23150 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23151 New externs.
23152
23153 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23154 Include gpm.h.
23155 (handle_one_term_event, term_gpm): New externs.
23156
23157 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23158 and allow it to be interrupted by SIGIO.
23159
23160 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23161 (wait_reading_process_output): Wait on gpm_fd too.
23162 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23163 (add_gpm_wait_descriptor_called_flag): New variable.
23164 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23165
23166 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23167 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23168 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23169 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23170 (make_lispy_event): Add case GPM_CLICK_EVENT.
23171 (read_avail_input): Handle mouse input.
23172
23173 * term.c (write_glyphs_with_face): New function.
23174 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23175 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23176 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23177 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23178 (last_mouse_x, last_mouse_y): New variables.
23179 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23180 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23181 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23182 (Fterm_close_connection): New functions.
23183 (term_init): Initialise mouse_face_window.
23184
231852007-05-19 Chong Yidong <cyd@stupidchicken.com>
23186
23187 * xdisp.c (redisplay_window): If first window line is a
23188 continuation line, recompute the new window start instead of
23189 recentering.
23190
231912007-05-18 Glenn Morris <rgm@gnu.org>
23192
23193 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23194 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23195
231962007-05-17 Glenn Morris <rgm@gnu.org>
23197
23198 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23199
232002007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23201
23202 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23203 dead key repeat and up events.
23204
232052007-05-14 Chong Yidong <cyd@stupidchicken.com>
23206
23207 * image.c (pbm_load): Check image size for monochrome pbm.
23208
232092007-05-13 Chong Yidong <cyd@stupidchicken.com>
23210
23211 * xterm.c (XTread_socket): Revert last change.
23212
232132007-05-12 Chong Yidong <cyd@stupidchicken.com>
23214
23215 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23216
23217 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23218
232192007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23220
23221 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23222 mixup (YAILOM).
23223
232242007-05-07 Andreas Schwab <schwab@suse.de>
23225
23226 * keymap.c (Flookup_key): Fix typo in last change.
23227
232282007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23229
23230 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23231 mapping for unibyte strings.
23232
232332007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23234
23235 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23236 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23237
232382007-04-29 Richard Stallman <rms@gnu.org>
23239
23240 * insdel.c (replace_range): For undo, record insertion first.
23241
232422007-04-29 Andreas Schwab <schwab@suse.de>
23243
23244 * lisp.h (VECSIZE): Use OFFSETOF.
23245
232462007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23247
23248 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23249 disabled lines.
23250
232512007-04-28 Richard Stallman <rms@gnu.org>
23252
23253 * lread.c (read_escape): In a string, \s is always space.
23254
232552007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23256
23257 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23258
23259 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23260 submenu for menu bar items.
23261
23262See ChangeLog.10 for earlier changes.
23263
23264;; Local Variables:
23265;; coding: utf-8
23266;; add-log-time-zone-rule: t
aac0c6e3
MR
23267;; End:
23268
e3eb1dae 23269 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23270
23271 This file is part of GNU Emacs.
23272
23273 GNU Emacs is free software: you can redistribute it and/or modify
23274 it under the terms of the GNU General Public License as published by
23275 the Free Software Foundation, either version 3 of the License, or
23276 (at your option) any later version.
23277
23278 GNU Emacs is distributed in the hope that it will be useful,
23279 but WITHOUT ANY WARRANTY; without even the implied warranty of
23280 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23281 GNU General Public License for more details.
23282
23283 You should have received a copy of the GNU General Public License
23284 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23285
23286;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40